body.overlay-open { overflow: hidden; }
.business-quote-card > .table-scroll > table { table-layout: fixed; width: 1420px; min-width: 1420px; }
.business-quote-card > .table-scroll > table th:nth-child(1) { width: 60px; }
.business-quote-card > .table-scroll > table th:nth-child(2) { width: 150px; }
.business-quote-card > .table-scroll > table th:nth-child(3) { width: 260px; }
.business-quote-card > .table-scroll > table th:nth-child(4) { width: 180px; }
.business-quote-card > .table-scroll > table th:last-child { width: 160px; }
.business-quote-card > .table-scroll > table th { white-space: normal; overflow-wrap: anywhere; }
.directory-expand { min-width: 0; width: 100%; text-align: left; }
.directory-expand summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; white-space: nowrap; }
.directory-expand summary::-webkit-details-marker { display: none; }
.directory-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.directory-more,.directory-less { flex: none; color: #205782; font-size: 12px; }
.directory-less,.directory-expand[open] .directory-more { display: none; }
.directory-expand[open] .directory-less { display: inline; }
.directory-full { white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 8px; }
.directory-short { white-space: nowrap; }
.directory-identity { white-space: normal; overflow-wrap: anywhere; }
.directory-expand .insole-text-preview { flex: 1; }
:is([data-entity-list="customers"],[data-entity-list="paymentObjects"],.supplier-table-wrap) td { vertical-align: top; }
[data-entity-list="customers"] table { table-layout: fixed; width: 2020px; min-width: 2020px; }
[data-entity-list="paymentObjects"] table { table-layout: fixed; width: 2240px; min-width: 2240px; }
.supplier-table-wrap table { table-layout: fixed; width: 2260px; min-width: 2260px; }
:is([data-entity-list="customers"],[data-entity-list="paymentObjects"],.supplier-table-wrap) .col-actions { width: 200px; white-space: nowrap; }
:is([data-entity-list="customers"],[data-entity-list="paymentObjects"],.supplier-table-wrap) .col-actions .action-row { flex-wrap: nowrap; }
#modalForm.warehouse-movement-form .movement-note { grid-column: 1 / -1; }
#modalForm.warehouse-movement-form fieldset { min-width: 0; }
#modalForm.purchase-item-picker table { width: 100%; }
#modal[data-presentation="compact"] .modal-card { width: min(520px, calc(100vw - 32px)); }
#modal[data-presentation="form"] .modal-card { width: min(760px, calc(100vw - 32px)); }
#modal[data-presentation="wide"] .modal-card { width: min(1440px, calc(100vw - 32px)); }
#modal .modal-card:has(#modalForm > .order-exceptions) {
  width: calc(100vw - 32px);
  max-width: none;
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#modal:has(.order-exceptions) .modal-head { flex: none; }
#modalForm:has(> .order-exceptions) { flex: 1; min-height: 0; display: flex; overflow: hidden; }
#modalForm > .order-exceptions { display: flex; flex-direction: column; min-height: 0; gap: 8px; }
#modal .order-exceptions-scroll { flex: 1; min-height: 0; max-height: none; overflow: auto; }
#modal .order-exceptions :is(.tabs, .filters, .form-actions) { flex: none; margin: 0; }
#modal .order-exceptions .form-actions { padding: 8px 0 0; }
#modal[data-presentation="drawer"] { justify-content: flex-end; padding: 0; }
#modal[data-presentation="drawer"] .modal-card { width: min(620px, 100vw); height: 100dvh; max-height: 100dvh; border-radius: 0; }
#modal[data-presentation="drawer"] .detail-list { grid-column: 1 / -1; }
#modal .modal-head { gap: 12px; }
#modal .modal-head h2 { margin: 0; min-width: 0; }
#modalForm > .form-actions { position: sticky; bottom: 0; z-index: 3; background: #f5f8fa; border-top: 1px solid #cbd7e0; padding: 12px; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.discard-dialog { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; border: 1px solid #b8cbdc; border-radius: 6px; padding: 20px; color: #243746; }
.discard-dialog::backdrop { background: rgb(20 35 45 / 48%); }
.discard-dialog h3 { font-size: 16px; line-height: 1.5; margin: 0 0 20px; }
.discard-dialog .form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.discard-dialog button { min-height: 36px; padding: 6px 12px; border: 1px solid #aebfcd; border-radius: 4px; background: #fff; color: #234864; }
.discard-dialog button.danger { color: #a32d2d; border-color: #d69b96; }
.discard-dialog :focus-visible { outline: 2px solid #24649a; outline-offset: 2px; }
#feedback-toasts { position: fixed; top: 72px; right: 20px; z-index: 20000; pointer-events: none; max-width: min(420px, calc(100vw - 32px)); }
.feedback-toast { background: #f0faf4; border: 1px solid #8cbaa0; color: #225c3a; padding: 12px 16px; border-radius: 6px; box-shadow: 0 4px 16px #152c391f; overflow-wrap: anywhere; }
@media(max-width:600px){
  #modal[data-presentation] { padding: 8px; }
  #modal[data-presentation] .modal-card { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  #modal[data-presentation="drawer"] { padding: 0; }
  #modal[data-presentation="drawer"] .modal-card { width: 100vw; max-height: 100dvh; }
  #modalForm > .form-actions button,.discard-dialog button { min-height: 44px; }
}
