/* Keep the desktop detail table unchanged; phones use its aligned native columns. */
.dashboard-printing-detail-modal {
  --printing-detail-ink: #10223e;
  width: min(1120px, 100%);
  min-width: 0;
}
html[data-theme="dark"] .dashboard-printing-detail-modal,
html[data-theme="dark"] .dashboard-production-choice-modal,
html[data-theme="dark"] .dashboard-production-quick-modal { --printing-detail-ink: #f4f7ff; }
.dashboard-printing-detail-modal .modal-header,
.dashboard-printing-detail-modal .modal-footer { flex: 0 0 auto; }
.dashboard-printing-detail-modal .modal-body { min-width: 0; min-height: 0; }
.printing-detail-identity { min-width: 0; flex: 1; }
.printing-detail-identity h2,
.printing-detail-identity p { display: flex; gap: 10px; align-items: baseline; margin: 0 0 5px; min-width: 0; }
.printing-detail-identity h2 { font-size: var(--zkl-font-17, 17px); }
.printing-detail-identity p { font-size: var(--zkl-font-15, 15px); }
.printing-detail-identity h2 > span,
.printing-detail-identity p > span { flex: 0 0 43px; font-size: var(--zkl-font-11, 11px); font-weight: 700; }
.printing-detail-identity strong { min-width: 0; overflow-wrap: anywhere; color: var(--printing-detail-ink) !important; }
.printing-detail-identity > small { display: block; margin-top: 8px; font-size: var(--zkl-font-10, 10px); }
.dashboard-production-quick-modal { --printing-detail-ink: #10223e; width: min(540px, calc(100vw - 32px)) !important; min-width: 0; }
.dashboard-production-quick-modal .modal-footer .button { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.production-quick-locked-field strong { display: block; min-width: 0; color: var(--printing-detail-ink) !important; overflow-wrap: anywhere; line-height: 1.4; }
.printing-detail-group { min-width: 0; margin: 0 0 16px; }
.printing-detail-group:last-child { margin-bottom: 0; }
.printing-detail-group h3 { margin: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--surface-2); color: var(--printing-detail-ink); font-size: var(--zkl-font-13, 13px); font-weight: 800; overflow-wrap: anywhere; }
.printing-detail-table-wrap { width: 100%; min-width: 0; }
.dashboard-printing-detail-table { width: 100%; min-width: 0 !important; table-layout: fixed; border-collapse: collapse !important; }
.dashboard-printing-detail-table .printing-color-col { width: 20%; }
.dashboard-printing-detail-table .printing-quantity-col { width: 10%; }
.dashboard-printing-detail-table .printing-money-col { width: 13.333%; }
.dashboard-printing-detail-table .printing-action-col { width: 10%; }
.dashboard-printing-detail-table[data-has-actions="false"] .printing-color-col { width: 25%; }
.dashboard-printing-detail-table[data-has-actions="false"] .printing-quantity-col { width: 11%; }
.dashboard-printing-detail-table[data-has-actions="false"] .printing-money-col { width: 14%; }
.dashboard-printing-detail-table th,
.dashboard-printing-detail-table td,
.dashboard-printing-detail-table tfoot th {
  padding: 9px 5px !important;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  color: var(--printing-detail-ink) !important;
  font-size: var(--zkl-font-12, 12px) !important;
  line-height: 1.4;
  letter-spacing: 0 !important;
  vertical-align: middle;
}
.dashboard-printing-detail-table thead th { font-size: var(--zkl-font-10, 10px) !important; text-transform: none; text-align: right; }
.dashboard-printing-detail-table thead th:first-child,
.dashboard-printing-detail-table th[scope="row"] { text-align: left; }
.dashboard-printing-detail-table th[scope="row"] { position: static; z-index: auto; }
.dashboard-printing-detail-table .printing-detail-color-row > th { background: transparent !important; }
.dashboard-printing-detail-table .number-cell { text-align: right; font-variant-numeric: tabular-nums; }
.dashboard-printing-detail-modal .dashboard-printing-detail-table th strong,
.dashboard-printing-detail-modal .dashboard-printing-detail-table td strong { color: var(--printing-detail-ink) !important; font-size: inherit; overflow-wrap: anywhere; white-space: normal !important; }
.dashboard-printing-detail-modal .dashboard-printing-detail-table .balance-negative,
.dashboard-printing-detail-modal .dashboard-printing-detail-table .balance-negative strong { color: var(--red, #b42318) !important; }
.dashboard-printing-detail-table .detail-price-review { display: block; max-width: 100%; font-size: var(--zkl-font-9, 9px); line-height: 1.35; white-space: normal !important; overflow-wrap: anywhere; }
.dashboard-printing-detail-modal .dashboard-printing-detail-table .dashboard-detail-subtotal-row > * { background: var(--surface-2) !important; font-weight: 750; }
.printing-detail-grand-total .dashboard-printing-detail-table tbody > tr > * { font-weight: 800; }
.dashboard-printing-detail-table .printing-entry-action-cell { padding: 2px !important; text-align: center; }
.printing-entry-action.icon-button { box-sizing: border-box; width: min(42px, 100%); max-width: 100%; min-width: 0 !important; min-height: 44px !important; height: 44px; padding: 5px !important; display: inline-flex; align-items: center; justify-content: center; }
.printing-entry-action svg { width: 18px; height: 18px; flex: 0 0 auto; }
.printing-entry-action:focus-visible,
.printing-entry-action-mobile:focus-visible,
.dashboard-production-choices button:focus-visible { outline: 2px solid var(--ci-primary, #4f46e5); outline-offset: 2px; }
.printing-entry-action-mobile { display: none; }
.printing-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dashboard-production-choice-modal { --printing-detail-ink: #10223e; width: min(540px, 100%); min-width: 0; }
.printing-choice-context { display: grid; gap: 7px; margin-bottom: 18px; min-width: 0; overflow-wrap: anywhere; color: var(--printing-detail-ink); }
.printing-choice-context strong,
.dashboard-production-choices strong { color: var(--printing-detail-ink) !important; }
.dashboard-production-choices .entry-type-card { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 74px; font: inherit; color: var(--printing-detail-ink); background: var(--surface-2); cursor: pointer; }
.dashboard-production-choices .entry-type-card:hover { border-color: var(--ci-primary, #4f46e5); }
.dashboard-production-choices .entry-type-card:disabled { cursor: wait; opacity: .6; }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .modal-backdrop:has(> .dashboard-printing-detail-modal) { grid-template-columns: minmax(0, 1fr); padding-left: max(4px, env(safe-area-inset-left)) !important; padding-right: max(4px, env(safe-area-inset-right)) !important; }
  .dashboard-printing-detail-modal { width: 100% !important; max-width: 100%; justify-self: stretch; }
  .dashboard-printing-detail-modal .modal-header { padding: 12px; gap: 8px; }
  .dashboard-printing-detail-modal .modal-body { padding: 10px 7px; }
  .dashboard-printing-detail-modal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .dashboard-printing-detail-modal .modal-footer { padding: 10px; gap: 8px; flex-wrap: wrap; }
  .printing-detail-identity h2 { font-size: var(--zkl-font-15, 15px); }
  .printing-detail-identity p { font-size: var(--zkl-font-13, 13px); }
  .printing-detail-identity h2 > span,
  .printing-detail-identity p > span { flex-basis: 35px; font-size: var(--zkl-font-10, 10px); }
  .printing-detail-identity > small { font-size: var(--zkl-font-9, 9px); }
  .printing-detail-group { margin-bottom: 12px; }
  .printing-detail-group h3 { padding: 8px 6px; font-size: var(--zkl-font-12, 12px); }
  .printing-detail-table-wrap { display: block; width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .dashboard-printing-detail-table { width: max-content; min-width: 760px !important; table-layout: fixed; }
  .dashboard-printing-detail-table th,
  .dashboard-printing-detail-table td,
  .dashboard-printing-detail-table tfoot th { padding: 6px 5px !important; }
  .dashboard-printing-detail-modal .dashboard-printing-detail-table .balance-positive,
  .dashboard-printing-detail-modal .dashboard-printing-detail-table .balance-positive strong { color: var(--green, #16805d) !important; }
  .dashboard-printing-detail-modal .dashboard-printing-detail-table .balance-negative,
  .dashboard-printing-detail-modal .dashboard-printing-detail-table .balance-negative strong { color: var(--red, #b42318) !important; }
}
@media (max-width: 360px) {
  .dashboard-printing-detail-table th,
  .dashboard-printing-detail-table td,
  .dashboard-printing-detail-table tfoot th { padding: 5px 3px !important; }
}
