.daily-package-workbench {
  --dp-muted: #58687d;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  padding: 20px;
  font-size: 13px;
}
.daily-package-workbench * {
  box-sizing: border-box;
}
.daily-package-workbench [hidden] {
  display: none !important;
}
.dp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dp-section-head h2 {
  margin: 0;
  font-size: 18px;
}
.dp-section-head h3,
.dp-confirm h3 {
  margin: 0;
  font-size: 16px;
}
.dp-note,
.dp-muted {
  color: var(--dp-muted);
  line-height: 1.65;
}
.dp-note {
  margin: 10px 0 16px;
  max-width: 90ch;
}
.dp-warning,
.dp-error {
  color: #884016;
}
.dp-method,
.dp-price-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border: 0;
  padding: 8px 0 16px;
  margin: 0;
}
.dp-method legend,
.dp-price-choice legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.dp-method label,
.dp-price-choice label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
}
.daily-package-workbench
  :is(input, select, textarea, summary, button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.daily-package-workbench ::selection {
  color: #172e51;
  background: #d5e3fa;
}
.daily-package-workbench :is(input, textarea) {
  border: 1px solid #bbc6d5;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  caret-color: var(--blue);
  padding: 8px 10px;
  min-height: 38px;
  max-width: 100%;
  transition:
    border-color 160ms,
    background-color 160ms;
}
.daily-package-workbench :is(input, textarea):hover:not(:disabled) {
  border-color: #8197b4;
}
.daily-package-workbench :is(input, textarea):disabled {
  background: #f0f3f7;
  color: #526176;
  opacity: 1;
}
.daily-package-workbench :is(input[type="radio"], input[type="checkbox"]) {
  min-height: 16px;
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.dp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
}
.dp-field > span {
  color: var(--dp-muted);
}
.dp-field :is(input, textarea) {
  width: 100%;
  font-size: 13px;
}
.dp-field textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 76px;
}
.dp-lock-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}
.dp-table-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dp-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.dp-table caption {
  text-align: left;
  padding: 12px;
  color: #435671;
  background: #f7f9fc;
  font-weight: 600;
}
.dp-table :is(th, td) {
  text-align: start;
  padding: 12px;
  border-bottom: 1px solid #dfe5ee;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dp-table thead th {
  background: #f1f4f9;
  color: #435671;
  font-size: 12px;
  font-weight: 600;
}
.dp-table tbody tr:last-child > * {
  border-bottom: 0;
}
.dp-table tbody th {
  font-weight: 600;
}
.dp-lock-table input {
  width: 100%;
  min-width: 150px;
  font-variant-numeric: tabular-nums;
}
.dp-scope {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.dp-scope legend {
  font-weight: 600;
  padding: 0;
}
.dp-scope > p {
  margin: 8px 0;
  font-size: 12px;
}
.dp-scope-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e5eaf1;
  line-height: 1.55;
}
.dp-scope-line input {
  margin-top: 3px;
}
.dp-scope-line small {
  display: block;
  color: var(--dp-muted);
  font-size: 12px;
  margin-top: 3px;
}
.dp-scope-line:has(input:disabled) {
  color: #526176;
}
.dp-scope-line.dp-child {
  padding-inline-start: 26px;
}
.dp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.dp-form-grid > :last-child:nth-child(3) {
  grid-column: 1 / -1;
}
.dp-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.dp-feedback {
  min-height: 0;
  margin: 12px 0 0;
  line-height: 1.6;
  color: #36597f;
  overflow-wrap: anywhere;
}
.dp-feedback:empty {
  margin: 0;
}
.dp-days-table {
  min-width: 1050px;
  table-layout: fixed;
}
.dp-days-table th:nth-child(1) {
  width: 112px;
}
.dp-days-table th:nth-child(2) {
  width: 125px;
}
.dp-days-table th:nth-child(3) {
  width: 29%;
}
.dp-days-table th:nth-child(4) {
  width: 125px;
}
.dp-days-table th:nth-child(5) {
  width: 120px;
}
.dp-days-table th:nth-child(6) {
  width: 135px;
}
.dp-days-table th:nth-child(7) {
  width: 165px;
}
.dp-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
}
.dp-number .dp-muted {
  display: block;
  font-size: 11px;
  white-space: normal;
  margin-top: 6px;
}
.daily-package-workbench summary {
  cursor: pointer;
  color: #3c5274;
  padding-block: 4px;
  line-height: 1.6;
}
.dp-line-list,
.dp-diff {
  margin: 10px 0;
  padding: 0;
  list-style: none;
}
.dp-equipment-summary {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.dp-equipment-summary li {
  overflow-wrap: anywhere;
}
.dp-equipment-unchanged {
  margin: 0 0 6px;
  color: var(--dp-muted);
  font-size: 12px;
}
.dp-line-list li,
.dp-diff li {
  margin: 8px 0;
  line-height: 1.6;
}
.dp-line-list span,
.dp-diff span {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.dp-line-list span {
  color: var(--dp-muted);
}
.dp-row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.dp-row-actions .button {
  white-space: normal;
  text-align: center;
}
.dp-summary {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px 32px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 0;
}
.dp-summary > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.dp-summary dt {
  color: var(--dp-muted);
  font-size: 12px;
}
.dp-summary dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dp-summary > div:last-child dd {
  color: #36557f;
  font-size: 18px;
}
.dp-editor,
.dp-confirm {
  margin-top: 24px;
  border-top: 1px solid #c7d2e1;
  padding-top: 22px;
}
.dp-config-table {
  min-width: 760px;
}
.dp-config-table td:nth-child(1) {
  width: 25%;
}
.dp-config-table td:nth-child(2) {
  width: 100px;
}
.dp-config-table td:nth-child(3) {
  width: 45%;
}
.dp-config-table td:nth-child(4) {
  width: 140px;
}
.dp-config-table input[type="number"] {
  width: 72px;
  margin-right: 6px;
}
.dp-config-table .dp-field {
  margin-bottom: 8px;
}
.dp-config-table p {
  font-size: 12px;
  margin: 6px 0;
}
.dp-catalog {
  margin-top: 18px;
  border-block: 1px solid var(--line);
  padding-block: 10px;
}
.dp-catalog-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin: 12px 0;
}
.dp-catalog-toolbar .dp-field {
  flex: 1;
}
.dp-catalog-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.dp-catalog-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e1e7ef;
  padding: 12px 0;
  min-width: 0;
}
.dp-catalog-row > div {
  min-width: 0;
}
.dp-catalog-row strong {
  overflow-wrap: anywhere;
}
.dp-catalog-row span {
  display: block;
  color: var(--dp-muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.6;
}
.dp-catalog-row .button {
  flex-shrink: 0;
}
.dp-pager {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--dp-muted);
}
.dp-history {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.dp-history article {
  padding: 14px 0;
  border-bottom: 1px solid #e1e7ef;
}
.dp-history h4 {
  margin: 0 0 8px;
}
.dp-history p {
  margin: 6px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.dp-history article > p:first-of-type {
  color: var(--dp-muted);
  font-size: 12px;
}
.daily-package-workbench .button:disabled {
  cursor: default;
  opacity: 0.6;
}
@media (max-width: 760px) {
  .daily-package-workbench {
    padding: 16px;
  }
  .dp-lock-grid,
  .dp-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dp-form-grid > :last-child:nth-child(3) {
    grid-column: auto;
  }
  .dp-catalog-results {
    grid-template-columns: minmax(0, 1fr);
  }
  .dp-summary {
    justify-content: flex-start;
    gap: 14px 24px;
  }
  .dp-summary > div {
    justify-content: space-between;
    flex: 1 1 210px;
  }
  .dp-catalog-toolbar {
    flex-wrap: wrap;
  }
  .dp-catalog-toolbar .dp-field {
    flex-basis: 100%;
  }
  .daily-package-workbench :is(input, textarea) {
    font-size: 16px;
    min-height: 44px;
  }
  .daily-package-workbench .button {
    min-height: 44px;
  }
  .dp-method label,
  .dp-price-choice label {
    min-height: 44px;
  }
  .dp-scope-line {
    padding-block: 12px;
  }
  .dp-days-table {
    min-width: 1120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .daily-package-workbench * {
    transition: none !important;
  }
}
