:root{--ink:#17312d;--muted:#6f7d78;--green:#123c36;--green2:#1e665a;--blue:#2f80ed;--lime:#dce9b7;--paper:#fff;--bg:#f3f5f0;--line:#dfe5dd;--danger:#b54a3d;--shadow:0 12px 30px rgba(25,52,46,.08)}
@media(min-width:1001px){.expense-tabs+.section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,"Noto Sans KR",Arial,sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--green);color:#fff;padding:28px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 30px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:var(--lime);color:var(--green);font-weight:900;font-size:20px}.brand small{display:block}.brand small{min-height:21px;color:#bdd0ca;margin-top:2px}.sidebar nav{display:grid;gap:6px}.nav-button{border:0;background:transparent;color:#c7d7d2;text-align:left;padding:12px 14px;border-radius:10px;cursor:pointer;font-weight:650}.nav-button:hover,.nav-button.active{background:#fff;color:var(--green)}.nav-button span{display:inline-block;width:24px}.sidebar-foot{margin-top:auto;color:#bed2cb;padding:10px}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#84d391;margin-right:8px}.status-dot.offline{background:#f2ae62}main{margin-left:238px;min-height:100vh}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between;padding:22px 34px;border-bottom:1px solid var(--line);background:rgba(243,245,240,.93);position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}h1,h2,h3,p{margin:0}.eyebrow{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}.top-actions{display:flex;gap:10px;align-items:center}select,input,button,textarea{font:inherit}.language{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:10px;color:var(--ink)}.language{font-weight:800;cursor:pointer}.avatar{width:38px;height:38px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800}.mobile-menu{display:none}.content{padding:28px 34px 60px}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.stat small{color:var(--muted);font-weight:650}.stat strong{display:block;font-size:26px;margin:8px 0 3px}.stat em{font-style:normal;font-size:12px;color:var(--green2)}.section-grid{grid-template-columns:1.4fr 1fr;margin-top:18px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.card-head h2{font-size:17px}.pill{font-size:11px;padding:5px 9px;background:#edf3e0;color:#506428;border-radius:999px}.chart{height:220px;display:flex;align-items:end;gap:12px;padding-top:18px;border-bottom:1px solid var(--line)}.bar{background:linear-gradient(#93b47f,#1e665a);border-radius:7px 7px 0 0;margin-bottom:7px;min-height:4px}.activity{display:grid;gap:14px}.form-shell{display:grid;grid-template-columns:1fr 310px;gap:18px}.form-card{padding:24px}.field-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.field{display:grid;gap:6px}.field label{font-size:12px;font-weight:750;color:var(--muted)}.field input,.field select,.line-table input,.line-table select{width:100%;border:1px solid var(--line);background:#fbfcfa;padding:10px 11px;border-radius:9px;color:var(--ink)}.line-table{width:100%;border-collapse:collapse}.line-table th{color:var(--muted);font-size:11px;text-align:left;border-bottom:1px solid var(--line);padding:9px}.line-table td{padding:7px 5px}.line-table .num{text-align:right}.icon-button{border:0;background:transparent;color:var(--danger);cursor:pointer;font-size:18px}.add-line{padding:10px;width:100%;border-radius:10px;cursor:pointer;margin-top:10px}.summary{display:grid;gap:13px}.summary-row{display:flex;justify-content:space-between;color:var(--muted)}.summary-row.total{border-top:1px solid var(--line);padding-top:14px;color:var(--ink);font-weight:850;font-size:17px}.primary{border:0;background:var(--green);color:white;border-radius:10px;padding:12px 16px;font-weight:800;cursor:pointer;width:100%}.primary:disabled{opacity:.45;cursor:not-allowed}.secondary{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:9px 12px;cursor:pointer}.notice{padding:12px;border-radius:10px;background:#fff7dd;color:#705b1f;font-size:12px}.data-toolbar{display:flex;gap:10px;margin-bottom:15px}.data-toolbar input{min-width:250px;border:1px solid var(--line);padding:10px 12px;border-radius:9px}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line)}.data-table th{font-size:11px;color:var(--muted)}.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;background:#edf3e0;color:#506428}.danger{color:var(--danger)}.toast{position:fixed;right:24px;bottom:24px;background:var(--ink);color:#fff;padding:13px 18px;border-radius:10px;box-shadow:var(--shadow);transform:translateY(90px);opacity:0;transition:.25s;z-index:30}.toast.show{transform:none;opacity:1}.empty{text-align:center;color:var(--muted);padding:36px}
@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.section-grid,.form-shell{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr 1fr}.form-shell aside{order:-1}}
@media(max-width:720px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.sidebar.open:after{content:"";position:fixed;left:238px;right:-100vw;top:0;bottom:0;background:#102a2677}.mobile-menu{display:block;border:0;background:transparent;font-size:22px}.avatar{display:none}.stats{grid-template-columns:1fr}.data-card{overflow:auto}.section-grid{grid-template-columns:1fr}.data-toolbar{flex-direction:column}.data-toolbar input{min-width:0;width:100%}}
.tab-row{display:flex;gap:8px;width:50%;min-width:360px;margin:-4px -2px 14px;padding:4px 2px 14px;position:sticky;top:112px;z-index:4;background:var(--bg);box-shadow:0 -42px 0 0 var(--bg)}.tab-row:before{content:"";position:absolute;top:-42px;bottom:0;left:0;right:-100vw;background:var(--bg);z-index:-1}.tab-row>.secondary{flex:1}.active-tab{background:var(--green);color:#fff;border-color:var(--green)}.data-toolbar{align-items:end}.data-toolbar .field{min-width:160px}.data-toolbar .field input{min-width:0}.permission-table input{width:18px;height:18px;accent-color:var(--green)}
@media(max-width:720px){.tab-row{top:96px;}}
.dashboard-three{grid-template-columns:repeat(3,minmax(0,1fr))}.yesterday{display:block;color:#a1aaa6!important;margin-top:3px;font-size:14px!important;text-align:right;font-variant-numeric:tabular-nums}.history-totals{display:flex;justify-content:flex-start;gap:16px;margin-top:18px}.history-totals div{min-width:180px;background:#f3f6f1;border-radius:12px;padding:14px}.history-totals small,.history-totals strong{display:block}.history-totals small{color:var(--muted);margin-bottom:5px}.history-totals strong{font-size:18px}.partner-price{max-width:180px;border:1px solid var(--line);padding:9px;border-radius:8px}.detail-history{min-width:1050px}
@media(max-width:1000px){.dashboard-three{grid-template-columns:1fr}.history-totals{justify-content:stretch}.history-totals div{flex:1}}
.nav-group{color:#83a69d;font-size:11px;font-weight:800;letter-spacing:.08em;padding:15px 14px 4px}.nav-button.sub{padding-left:26px;font-size:13px}.logged-out .sidebar,.logged-out main{display:none}#loginError{margin-top:10px;text-align:center}
.action-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.action-grid .primary{width:auto}.secondary:disabled{opacity:.4}.recent-orders{margin-top:18px}#printArea{display:none}@media print{@page{size:A5 portrait;margin:10mm}body>*:not(#printArea){display:none!important}#printArea{display:block!important;}#printArea table{width:100%;border-collapse:collapse}#printArea th,#printArea td{padding:5px;border-bottom:1px solid #bbb;text-align:left}}

.account-table input,.account-table select,.grade-price{width:100%;border:1px solid var(--line);padding:8px;border-radius:7px}.modal-backdrop{position:fixed;inset:0;background:#102a2688;z-index:80;display:grid;place-items:center;padding:20px}.modal-card{position:relative;background:#fff;border-radius:18px;padding:24px;width:min(760px,100%);max-height:90vh;overflow:auto;box-shadow:var(--shadow)}.modal-top-close{position:absolute;top:18px;right:18px;z-index:8;display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-size:28px;font-weight:400;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(20,31,43,.08)}.modal-top-close:hover{border-color:#b9c6d1;background:#f6f8fa;color:var(--ink)}.modal-top-close:focus-visible{outline:3px solid rgba(47,128,237,.24);outline-offset:2px}.modal-card.has-modal-top-close>.card-head{padding-right:54px}.history-totals.top{margin:0 0 16px}.recent-orders{overflow:auto}.receivable-total{display:flex;justify-content:space-between;align-items:center;background:#edf3e0;border-radius:12px;padding:14px 18px;margin-bottom:14px}.receivable-total small{color:var(--muted)}.receivable-total strong{font-size:20px}.receivables-table{table-layout:fixed}.receivables-table th:nth-child(1),.receivables-table td:nth-child(1){width:30%}.receivables-table th:nth-child(2),.receivables-table td:nth-child(2){width:20%}.receivables-table th:nth-child(n+3),.receivables-table td:nth-child(n+3){width:12.5%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.receivables-table thead th{position:sticky;top:176px;z-index:3;background:var(--paper);box-shadow:0 1px 0 var(--line)}.data-card:has(.receivables-table){overflow:visible!important}.data-card:has(.receivables-table)>.card-head,.data-card:has(.receivables-table)>.data-toolbar,.data-card:has(.receivables-table)>.receivable-total{position:sticky;}.data-card:has(.receivables-table)>.card-head{top:176px;margin-bottom:0;padding:4px 0 12px}.data-card:has(.receivables-table)>.data-toolbar{top:232px;margin-bottom:0;padding:0 0 12px}.data-card:has(.receivables-table)>.receivable-total{top:294px;z-index:7;margin-bottom:0}.data-card:has(.receivables-table) .receivables-table thead th{top:366px;}
.logout-button{width:auto;height:38px;border:0;border-radius:10px;padding:0 15px;background:var(--green);color:#fff;cursor:pointer;white-space:nowrap}
.inline-actions{display:flex;gap:7px;align-items:center;white-space:nowrap}.request-approval-table td:last-child{width:1%}
@media(max-width:720px){.logout-button{display:inline-grid}}
.data-toolbar select{min-width:250px;border:1px solid var(--line);padding:10px 12px;border-radius:9px;background:#fff}
.receipt-link{border:0;background:transparent;color:var(--green2);font-weight:800;text-decoration:underline;cursor:pointer;padding:0}.three-actions{grid-template-columns:repeat(3,1fr);margin-top:18px}.four-actions{grid-template-columns:repeat(4,1fr);margin-top:18px}.receipt-modal .field-grid strong{display:block;margin-top:4px}
.stacked-date-time{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.2;white-space:nowrap}.stacked-date-time small{margin-top:3px;color:var(--muted);font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}
.outbound-lines{table-layout:fixed;min-width:760px}.outbound-lines th:nth-child(1){width:auto}.outbound-lines th:nth-child(2){width:150px}.outbound-lines th:nth-child(3){width:105px}.outbound-lines th:nth-child(4){width:220px}.outbound-lines th:nth-child(5){width:42px}.outbound-lines td:nth-child(4){text-align:right;white-space:nowrap;font-size:15px}
.two-actions{grid-template-columns:repeat(2,1fr);margin-top:18px}
.company-settings{margin-top:18px}.company-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.company-address,.company-logo-field{grid-column:1/-1}.company-logo-field input{padding:9px;background:#fff}.company-logo-field small{color:var(--muted)}#companyLogoPreview{margin-top:10px;min-height:90px;border:1px dashed var(--line);border-radius:12px;display:grid;place-items:center;background:#fafbf9;color:var(--muted)}#companyLogoPreview img{max-width:220px;max-height:100px;object-fit:contain}.company-actions{max-width:360px}@media(max-width:720px){.company-settings-grid{grid-template-columns:1fr}}

.print-status{white-space:nowrap}.print-status.printed{background:#dcebd5;color:#276239}.outbound-tabs,.partner-tabs,.admin-tabs{z-index:4}

@media(max-width:720px){.topbar>div:nth-child(2){min-width:0}.topbar .eyebrow{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
.top-heading{display:grid;justify-items:start}.request-three-level{display:flex;flex-direction:column}.request-three-level>aside{order:initial}.request-three-level .request-summary-card{width:100%}.request-line-table{table-layout:fixed}.request-line-table th:nth-child(1),.request-line-table td:nth-child(1){width:24%}.request-filter-bar{display:grid;grid-template-columns:minmax(220px,560px);gap:10px;margin-bottom:16px}.request-filter-bar input{width:100%;border:1px solid var(--line);background:#fbfcfa;padding:10px 11px;border-radius:9px;color:var(--ink)}.request-summary-note{min-height:42px;resize:vertical}.request-summary-card .request-actions>*{width:100%}
.request-summary-card .summary{grid-template-columns:minmax(220px,1fr) minmax(260px,1fr);grid-template-rows:auto auto auto;column-gap:32px;row-gap:14px;align-items:center}.request-summary-card .summary>.summary-row:nth-child(1){grid-column:1;grid-row:1}.request-summary-card .summary>.summary-row:nth-child(2){grid-column:1;grid-row:2}.request-summary-card .summary>.summary-row.total{grid-column:2;grid-row:1/span 2;align-self:stretch;border-top:0;border-left:1px solid var(--line);padding:8px 0 8px 32px;align-items:center;font-size:20px}.request-summary-card .summary>.field{grid-column:1;grid-row:3}.request-summary-card .summary>.request-actions{grid-column:2;grid-row:3;align-self:end}.request-summary-card .card-head{margin-bottom:12px}
.request-summary-card .outbound-tax-mode{max-width:420px;margin-bottom:18px}
.inbound-three-level{display:flex;flex-direction:column}.inbound-three-level>aside{order:initial;width:100%}.inbound-three-level>.recent-orders{width:100%}.inbound-note-field{grid-column:2;grid-row:1;width:100%}.inbound-summary-note{width:100%;min-height:42px;resize:vertical}.weight-unit{font-size:16px;font-weight:800;color:var(--muted)}.inbound-weight-total{display:grid;grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:10px}.inbound-weight-total>span:first-child{white-space:nowrap;font-size:16px;font-weight:850;color:var(--ink)}.inbound-weight-total strong{text-align:right;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}.inbound-transport-field{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;align-items:center;gap:10px}.inbound-transport-field label{white-space:nowrap;font-size:16px;font-weight:850;color:var(--ink)}.inbound-transport-field input{width:100%;text-align:right;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}.inbound-summary-card .inbound-actions{grid-column:2;grid-row:2;align-self:end}.inbound-summary-card .inbound-actions>*{width:100%}
@media(max-width:900px){.request-filter-bar{grid-template-columns:1fr}.request-line-table{min-width:920px}}
@media(max-width:650px){.request-summary-card .summary{grid-template-columns:1fr}.request-summary-card .summary>.summary-row:nth-child(1),.request-summary-card .summary>.summary-row:nth-child(2),.request-summary-card .summary>.summary-row.total,.request-summary-card .summary>.field,.request-summary-card .summary>.request-actions{grid-column:1;grid-row:auto}.request-summary-card .summary>.summary-row.total{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}}
@media(max-width:650px){.inbound-summary-card .summary>.inbound-weight-total,.inbound-summary-card .summary>.inbound-transport-field,.inbound-note-field,.inbound-summary-card .inbound-actions{grid-column:1;grid-row:auto}}
@media(max-width:650px){.inbound-summary-card .summary>*{grid-column:1/-1}}.overwrite-option{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:700}.overwrite-option input{width:16px;height:16px}
.supplier-settings{margin-top:18px}.supplier-settings textarea{width:100%;border:1px solid var(--line);background:#fbfcfa;padding:11px;border-radius:9px;resize:vertical}.supplier-settings .primary{width:180px;margin-top:14px}
.partner-import-guide{margin-bottom:14px;font-size:12px}
.inventory-table{table-layout:fixed}.inventory-category-col{width:18%}.inventory-code-col{width:13%}.inventory-number-col{width:16%}.inventory-table th:nth-child(n+3),.inventory-table td:nth-child(n+3){font-variant-numeric:tabular-nums}.inventory-table .badge{background:transparent;color:var(--ink);border-radius:0;padding:0;font-size:inherit}.inventory-total-row th{vertical-align:middle!important;}.inventory-total-row th:not(:first-child){text-align:right;font-weight:850;color:var(--ink);line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.inventory-tabs{min-width:0}.inventory-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.inventory-summary-card{position:relative;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:14px;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);}.inventory-summary-card:after{position:absolute;inset:auto -24px -34px auto;width:96px;height:96px;border-radius:50%;background:rgba(220,233,183,.28)}.inventory-summary-card small{display:block;color:var(--muted);font-weight:800;line-height:1.25}.inventory-summary-card strong{display:block;margin-top:7px;font-size:27px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.inventory-summary-card strong em{font-size:13px;font-style:normal;color:var(--muted);font-weight:800}.inventory-summary-card p{margin-top:8px;color:var(--muted);font-size:11px;font-weight:650}.inventory-summary-card.negative strong{color:var(--danger)}.inventory-card{padding:0;overflow:hidden}.inventory-card-head{padding:22px 24px 18px;margin:0;border-bottom:1px solid var(--line)}.inventory-card-head>div{min-width:0}.inventory-card-head p{margin-top:4px;color:var(--muted);font-size:12px}.inventory-table-wrap{width:100%;overflow:auto}.inventory-table{min-width:940px}.inventory-table th,.inventory-table td{padding:14px 18px}.inventory-table thead th{background:#f6f8f4;color:var(--muted);font-size:11px;font-weight:800}.inventory-product-row{transition:background-color .15s ease}.inventory-product-row:hover{background:#fafcf8}.inventory-product-row.negative{background:#fffafa}.inventory-product-row.negative:hover{background:#fff5f3}.inventory-category-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#edf3e0;color:#506428;font-size:11px;font-weight:800}.inventory-product-code{font-size:14px;letter-spacing:.01em}.inventory-quantity,.inventory-movement-value{font-variant-numeric:tabular-nums;white-space:nowrap}.inventory-quantity{font-size:15px}.inventory-quantity.negative{color:var(--danger)}.inventory-quantity.positive{color:var(--green2)}.inventory-quantity small,.inventory-movement-value small,.inventory-total-row small{font-size:10px;color:var(--muted);font-weight:750}.inventory-total-row{background:linear-gradient(90deg,#edf3e0,#f7faf1)}.inventory-total-row th{padding:16px 18px!important;border-top:1px solid #d1dcc5;border-bottom:0!important}.inventory-total-row th:first-child{text-align:left!important}.inventory-total-row th:first-child span{display:block;font-size:14px;font-weight:900;color:var(--ink)}.inventory-total-row th:first-child small{display:block;margin-top:2px}.inventory-total-row th:not(:first-child){font-size:20px!important}.inventory-total-row th:not(:first-child) small{font-size:10px!important}.inventory-table tbody tr:last-child td{border-bottom:0}@media(max-width:1100px){.inventory-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.inventory-summary-grid{grid-template-columns:1fr;gap:10px}.inventory-summary-card{grid-template-columns:42px minmax(0,1fr)}.inventory-summary-card strong{font-size:24px}.inventory-card-head{padding:18px 16px}.inventory-card-head p{max-width:250px}.inventory-table th,.inventory-table td{padding:12px 14px}}
.inventory-tabs>.secondary{flex:1 1 100%;width:100%}body:not(.logged-out) .inventory-tabs>.secondary{flex:1 1 0;width:auto;min-width:0;white-space:normal}@media(max-width:720px){body:not(.logged-out) .inventory-tabs>.secondary{padding-inline:6px;font-size:12px}}.inventory-card-head>.pill{flex:0 0 auto;white-space:nowrap}
.inventory-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.inventory-target-settings-button{white-space:nowrap}.inventory-target-readonly{display:block;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}.inventory-target-readonly small{color:var(--muted);font-size:10px}.inventory-target-modal-card{display:flex;flex-direction:column;width:min(920px,100%);max-height:90vh;padding:0;overflow:hidden}.inventory-target-modal-head{flex:0 0 auto;margin:0;padding:22px 24px 18px;border-bottom:1px solid var(--line)}.inventory-target-modal-head p{margin-top:4px;color:var(--muted);font-size:12px}.inventory-target-modal-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;flex:0 0 auto;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid var(--line);background:#fbfcfd}.inventory-target-modal-toolbar input{width:100%;min-width:0}.inventory-target-modal-toolbar span{color:var(--green);font-size:12px;font-weight:850;white-space:nowrap}.inventory-target-modal-table-wrap{flex:1 1 auto;min-height:160px;overflow:auto}.inventory-target-modal-table{min-width:680px}.inventory-target-modal-table thead{position:sticky;top:0;z-index:2}.inventory-target-modal-table th{background:#f6f8f4}.inventory-target-modal-table th:first-child,.inventory-target-modal-table td:first-child{width:64px;text-align:center}.inventory-target-modal-table th:last-child,.inventory-target-modal-table td:last-child{width:190px;text-align:right}.inventory-target-modal-table tr.is-changed{background:#f5faec}.inventory-target-modal-table tr.is-invalid{background:#fff4f2}.inventory-target-setting-field{display:flex;align-items:center;justify-content:flex-end;gap:7px}.inventory-target-setting-field input{width:130px;text-align:right;font-variant-numeric:tabular-nums;font-weight:800}.inventory-target-setting-field span{color:var(--muted);font-size:11px;font-weight:750}.inventory-target-modal-table tr.is-changed input{border-color:#9bbd83;box-shadow:0 0 0 3px rgba(155,189,131,.13)}.inventory-target-modal-table tr.is-invalid input{border-color:var(--danger);box-shadow:0 0 0 3px rgba(234,91,80,.1)}.inventory-target-modal-status{flex:0 0 auto;min-height:44px;padding:13px 24px;color:var(--muted);font-size:12px;font-weight:750;border-top:1px solid var(--line)}.modal-card .inventory-target-modal-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));flex:0 0 auto;gap:10px;margin:0;padding:0 24px 24px}.inventory-target-modal-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;padding:0 12px!important}.inventory-target-modal-actions .labeled-action-button span{display:inline!important;font-size:13px;font-weight:800;white-space:nowrap}@media(max-width:620px){.inventory-card-actions{width:100%;justify-content:space-between}.inventory-target-settings-button{font-size:12px!important;padding:0 12px!important}.inventory-target-modal-card{max-height:94vh}.inventory-target-modal-head{padding:18px 16px 14px}.inventory-target-modal-toolbar{grid-template-columns:1fr;padding:12px 16px}.inventory-target-modal-table-wrap{min-height:140px}.inventory-target-modal-status{padding:11px 16px}.modal-card .inventory-target-modal-actions.compact-action-grid{padding:0 16px 16px;gap:7px}.inventory-target-modal-actions .labeled-action-button{height:46px!important;padding:0 6px!important}.inventory-target-modal-actions .labeled-action-button span{font-size:12px}}
.inventory-filter-reset{width:auto!important;min-width:104px;height:42px;padding:0 16px!important;white-space:nowrap}.inventory-filter-count{align-self:center;justify-self:end;color:var(--muted);font-size:12px;font-weight:750;white-space:nowrap}.inventory-table th:nth-child(n+3),.inventory-table td:nth-child(n+3){text-align:right}.inventory-table th:nth-child(n+3) .table-sort-button{justify-content:flex-end}.inventory-table .table-sort-button{white-space:nowrap}.inventory-table .table-sort-indicator{flex:0 0 10px}@media(max-width:1100px){.inventory-filter-reset{justify-self:start}.inventory-filter-count{align-self:center}}@media(max-width:620px){.inventory-filter-reset{width:100%!important}.inventory-filter-count{justify-self:start}}
.dashboard-main-grid{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:18px;margin-top:18px;align-items:stretch}.dashboard-employee-card{overflow:auto}.dashboard-number-table th:nth-child(n+2),.dashboard-number-table td:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:1000px){.dashboard-main-grid{grid-template-columns:1fr}}
.payment-method-settings{margin-top:18px}.payment-method-table input{width:100%;border:1px solid var(--line);background:#fbfcfa;padding:10px 11px;border-radius:9px;color:var(--ink)}.payment-method-table th:last-child,.payment-method-table td:last-child{width:110px;text-align:right}
.product-category-table th:first-child,.product-category-table td:first-child{width:48px;padding-right:0}.product-category-drag{width:38px;height:38px;border:0;background:transparent;color:var(--muted);cursor:grab;touch-action:none;font-size:18px}.product-category-drag:active{cursor:grabbing}.product-category-table tr.is-dragging{background:#edf4ff}
.payment-form-actions{grid-column:3;align-self:end;justify-self:end;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;max-width:420px;margin:0}.payment-form-actions button{width:100%;margin:0}
@media(max-width:1000px){.payment-form-actions{grid-column:2}}
@media(max-width:720px){.payment-form-actions{grid-column:1;max-width:none}}
.product-import-guide{font-size:12px}
.money-input,input[inputmode="numeric"],input[type="number"],.partner-price,.grade-price{text-align:right;font-variant-numeric:tabular-nums}.summary-row strong,.stat strong,.history-totals strong,.receivable-total strong{font-variant-numeric:tabular-nums}.request-approval-table th:nth-child(6),.request-approval-table td:nth-child(6),.price-grade-table th:nth-child(n+4),.price-grade-table td:nth-child(n+4),.receipt-modal .data-table th:nth-child(2),.receipt-modal .data-table td:nth-child(2),.receipt-modal .data-table th:nth-child(3),.receipt-modal .data-table td:nth-child(3),.receipt-modal .data-table th:nth-child(4),.receipt-modal .data-table td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.detail-history th:nth-last-child(4),.detail-history td:nth-last-child(4),.detail-history th:nth-last-child(3),.detail-history td:nth-last-child(3),.detail-history th:last-child,.detail-history td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.partner-combobox{position:relative}.partner-combobox input{padding-right:42px!important}.partner-combo-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:var(--green);font-size:16px;cursor:pointer;border-radius:8px}.partner-combo-toggle:hover{background:#edf3e0}.partner-combo-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;max-height:280px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 38px rgba(25,52,46,.16);padding:6px}.partner-combo-menu button{display:block;width:100%;border:0;background:#fff;color:var(--ink);text-align:left;padding:10px 12px;border-radius:8px;cursor:pointer}.partner-combo-menu button:hover,.partner-combo-menu button:focus{background:#edf3e0;outline:0}.partner-combo-empty{padding:12px;color:var(--muted);font-size:12px}
.outbound-partner-name{display:inline-flex;max-width:100%;min-width:0;align-items:baseline;flex-wrap:wrap;gap:2px 8px;vertical-align:baseline}.outbound-partner-name>.outbound-partner-official{min-width:0;margin:0!important;overflow-wrap:anywhere}.outbound-partner-short-name{color:var(--muted);font-size:11px;font-weight:600;line-height:1.35;opacity:.72}.outbound-partner-name.is-stacked{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.receipt-modal .field-grid .outbound-partner-name{margin-top:4px}.partner-combo-menu button strong .outbound-partner-short-name{margin-left:7px}
.partner-list-short-name{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:600;line-height:1.35}
.product-search-combobox{position:relative;width:100%;min-width:0}.product-search-source{display:none!important}.product-search-input{width:100%!important;min-width:0!important;padding-right:42px!important;text-align:left!important;text-align-last:left!important}.product-search-toggle{position:absolute;right:6px;top:50%;z-index:2;transform:translateY(-50%);width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--blue);font-size:16px;cursor:pointer}.product-search-toggle:hover,.product-search-toggle:focus-visible{background:#edf4ff;outline:0}.product-search-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:90;max-height:300px;overflow:auto;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 16px 38px rgba(25,52,46,.18);text-align:left}.product-search-menu button{display:grid;width:100%;gap:2px;padding:9px 11px;border:0;border-radius:8px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.product-search-menu button:hover,.product-search-menu button:focus{background:#edf4ff;outline:0}.product-search-menu button strong{font-size:14px;font-weight:900}.product-search-menu button small{color:var(--muted);font-size:11px}.product-search-empty{padding:12px;color:var(--muted);font-size:12px}.request-line-table td:has(.product-search-combobox){overflow:visible}
.product-search-menu button:disabled{background:#f6f8f7;color:var(--muted);cursor:not-allowed;opacity:.72}.request-product-stock{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:750}.request-product-stock.is-shortage{color:var(--danger)}.line-table input.request-stock-invalid{border-color:var(--danger);box-shadow:0 0 0 3px rgba(181,74,61,.1)}
.history-totals.top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:100%}.history-totals.top div{min-width:0}.history-totals strong{text-align:right}
.inbound-detail-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.inbound-detail-totals div{min-width:0}
.request-detail-totals{justify-content:flex-end;width:100%}.request-detail-totals div{min-width:260px}
.request-detail-totals.tax-breakdown{justify-content:stretch;flex-wrap:wrap}.request-detail-totals.tax-breakdown>div{flex:1 1 180px;min-width:0}
.partner-compact-table th:nth-child(1){width:11%;text-align:center}.partner-compact-table th:nth-child(2){width:13%}.partner-compact-table th:nth-child(3){width:33%}.partner-compact-table th:nth-child(4){width:18%}.partner-compact-table th:nth-child(5){width:11%}.partner-compact-table th:nth-child(6){width:14%}.partner-month-activity-cell{text-align:center!important}.partner-month-activity-dot{display:inline-block;width:9px;height:9px;border-radius:50%;vertical-align:middle}.partner-month-activity-dot.is-active{background:#2f80ed}.partner-month-activity-dot.is-inactive{background:var(--danger)}.partner-name-link{text-align:left}.partner-detail-card{width:min(920px,100%)}.partner-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.partner-detail-wide{grid-column:1/-1}.partner-detail-prices-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:18px 0 10px}.partner-detail-prices-title{font-size:17px;margin:0}.partner-price-override-note{color:var(--danger);font-size:12px;font-weight:800;text-align:right}.partner-detail-price-table input{width:180px;border:1px solid var(--line);background:#fbfcfa;padding:9px;border-radius:8px;color:var(--ink)}.partner-detail-price-table input.partner-price-overridden{border-color:rgba(255,70,78,.38);background:#fff6f6;color:var(--danger);font-weight:900}.partner-detail-price-table th:last-child,.partner-detail-price-table td:last-child{text-align:right}.partner-delete-warning{margin:14px 0 0;padding:12px;border-radius:10px;background:#fff1ed;color:var(--danger);font-weight:750}.partner-detail-actions{margin-top:18px}@media(max-width:820px){.partner-detail-grid{grid-template-columns:1fr}.partner-detail-prices-heading{align-items:flex-start;flex-direction:column}.partner-price-override-note{text-align:left}.partner-detail-price-table{min-width:620px}}
.partner-summary-grid{display:grid;gap:14px;margin-bottom:18px}.partner-summary-card{min-width:0;min-height:150px}.partner-summary-card>small{display:block;margin-bottom:14px;color:var(--muted);font-weight:800}.partner-summary-total{display:flex;flex-direction:column;justify-content:center}.partner-summary-total strong{font-size:36px;line-height:1.05;font-variant-numeric:tabular-nums}.partner-summary-total span{margin-top:8px;color:var(--muted);font-size:12px}.partner-summary-breakdown{display:flex;align-content:flex-start;flex-wrap:wrap;gap:8px}.partner-summary-item{display:inline-flex;align-items:center;gap:9px;max-width:100%;padding:7px 10px;border:0;border-radius:999px;background:#f3f6f1;color:var(--ink);cursor:pointer}.partner-summary-item:hover,.partner-summary-item:focus-visible{background:#e8f0e7;outline:0}.partner-summary-item.is-selected{background:#2f80ed;color:#fff}.partner-summary-item b{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.partner-summary-item strong{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#fff;color:var(--green2);font-size:12px;font-variant-numeric:tabular-nums}.partner-summary-item.is-selected strong{color:#2f80ed}.partner-summary-empty{color:var(--muted);font-size:12px}.partner-filter-reset{min-height:30px!important;padding:5px 9px!important;font-size:12px!important}@media(max-width:1100px){.partner-summary-total{min-height:120px}}@media(max-width:720px){.partner-summary-grid{gap:10px}.partner-summary-card{min-height:0}.partner-summary-item b{max-width:190px}}
.add-line{border:1px solid var(--blue);background:var(--blue);color:#fff;font-weight:800}
.dashboard-three .stat>small,.dashboard-main-grid .card-head h2{font-size:17px!important;font-weight:850!important;line-height:1.25;color:var(--ink)!important}
.dashboard-three .stat:nth-child(3)>strong{color:#e53935!important}
.dashboard-three .stat>strong:has(.dashboard-goal-rate){display:flex;align-items:baseline;justify-content:space-between;gap:12px}.dashboard-goal-rate{flex:0 0 auto;color:#2f80ed!important;font-size:15px!important;font-weight:850!important;white-space:nowrap}.dashboard-three .stat>strong>span{min-width:0;font:inherit;color:inherit;white-space:nowrap}@media(max-width:520px){.dashboard-three .stat>strong:has(.dashboard-goal-rate){align-items:flex-start;flex-direction:column;gap:2px}}
.dashboard-goal-progress{display:flex!important;align-items:center;justify-content:flex-end;gap:9px;min-width:150px!important;font:inherit}.dashboard-goal-track{display:block!important;width:96px;min-width:96px!important;height:10px;border-radius:999px;background:#e8edf3;overflow:hidden;font:inherit}.dashboard-goal-track>span{display:block;height:100%;min-width:0;border-radius:inherit;background:#3182f6;transition:width .35s ease}.dashboard-goal-progress .dashboard-goal-rate{min-width:52px;text-align:right}@media(max-width:900px){.dashboard-three .stat>strong:has(.dashboard-goal-rate){align-items:flex-start;flex-direction:column;gap:7px}.dashboard-goal-progress{width:100%;justify-content:flex-start}.dashboard-goal-track{width:min(150px,70%);min-width:90px!important}}@media(max-width:520px){.dashboard-goal-progress{gap:7px}.dashboard-goal-track{height:9px}}
.employee-form-note{grid-column:1/-1}
.employee-photo-field{grid-row:span 2}.employee-photo-uploader{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:start}.employee-photo-preview{width:120px;aspect-ratio:3/4;border:1px dashed var(--line);border-radius:12px;background:#f7faf6;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-weight:850}.employee-photo-icon{position:relative;width:46px;height:58px;display:block;color:var(--muted)}.employee-photo-icon:before{content:"";position:absolute;left:50%;top:4px;width:22px;height:22px;border:3px solid currentColor;border-radius:50%;transform:translateX(-50%)}.employee-photo-icon:after{content:"";position:absolute;left:50%;bottom:4px;width:38px;height:25px;border:3px solid currentColor;border-radius:22px 22px 8px 8px;transform:translateX(-50%)}.employee-photo-preview img,.employee-detail-photo img{width:100%;height:100%;object-fit:cover}.employee-photo-actions{display:grid;gap:8px}.employee-photo-actions .secondary{width:100%}.employee-photo-actions small{color:var(--muted);font-size:11px}.employee-detail-photo{grid-row:span 2;aspect-ratio:3/4;display:grid!important;place-items:center;overflow:hidden;color:var(--muted);font-weight:850}
.employee-search-toolbar{margin:0 0 16px}.employee-search-toolbar input{width:min(420px,100%)}.employee-list-table th:nth-child(1){width:13%}.employee-list-table th:nth-child(2){width:23%}.employee-list-table th:nth-child(3){width:14%}.employee-list-table th:nth-child(4){width:14%}.employee-list-table th:nth-child(5){width:14%}.employee-list-table th:nth-child(6){width:14%}.employee-list-table th:nth-child(7){width:8%}.employee-name-link{text-align:left}.employee-detail-modal-card{width:min(980px,100%)}
.employee-detail-sheet{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}.employee-detail-sheet .employee-detail-photo{width:220px;aspect-ratio:3/4;border:0;border-radius:0;overflow:hidden;display:grid;place-items:center;background:transparent;color:var(--muted);font-weight:850}.employee-detail-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:34px;row-gap:0}.employee-detail-line{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:baseline;min-height:36px;padding:7px 0;border-bottom:1px solid var(--line)}.employee-detail-line span{color:var(--muted);font-size:13px;font-weight:800}.employee-detail-line strong{font-size:13px;font-weight:800;overflow-wrap:anywhere}.employee-detail-line:last-child{grid-column:1/-1}

@media(max-width:760px){.employee-detail-sheet{grid-template-columns:1fr}.employee-detail-sheet .employee-detail-photo{width:150px}.employee-detail-lines{grid-template-columns:1fr}}
@media(max-width:620px){.employee-modal-card .field-grid{grid-template-columns:1fr}.employee-photo-field{grid-row:auto}.employee-photo-uploader{grid-template-columns:110px minmax(0,1fr)}.employee-detail-line{grid-template-columns:96px minmax(0,1fr)}}

.localized-date-field{position:relative}.localized-date-button{position:absolute;border:0;cursor:pointer;display:grid;place-items:center}.localized-date-button:before{content:"";}.localized-date-button:after{content:"";position:absolute;}.localized-date-picker{position:absolute;z-index:120;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(25,52,46,.22);padding:12px}.localized-date-picker-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;margin-bottom:10px}.localized-date-picker-head strong{text-align:center;text-transform:capitalize}.localized-date-picker-head button{width:38px;height:34px;border:1px solid var(--line);background:#fbfcfa;border-radius:9px;color:var(--green);font-size:20px;font-weight:900;cursor:pointer}.localized-date-weekdays,.localized-date-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.localized-date-weekdays span{text-align:center;color:var(--muted);font-size:11px;font-weight:850}.localized-date-days button{height:36px;border:0;background:#fbfcfa;border-radius:9px;color:var(--ink);font-weight:750;cursor:pointer}.localized-date-days button:hover{background:#edf3e0}.localized-date-days button.today{box-shadow:inset 0 0 0 2px var(--lime)}.localized-date-days button.selected{background:var(--green);color:#fff}
input[type="date"],.localized-date-input{text-align:center!important;font-variant-numeric:tabular-nums}.field input[type="date"]{padding-left:42px!important;padding-right:42px!important}.localized-date-input{padding-left:48px!important;padding-right:48px!important}.localized-date-button{color:#111!important;background:transparent!important;border-radius:4px!important}.localized-date-button:hover,.localized-date-field.open .localized-date-button{background:transparent!important}.localized-date-button:after{width:10px!important;height:2px!important;top:6px!important;left:6px!important;background:currentColor!important;border-radius:2px!important}
.localized-date-button{right:13px!important;bottom:12px!important;width:24px!important;height:24px!important}.localized-date-button:before{width:20px!important;height:20px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='3.5' y='4.5' width='13' height='12' rx='1.5' stroke='%23111111' stroke-width='2'/%3E%3Cpath d='M6 2.8v3.4M14 2.8v3.4M4 8h12' stroke='%23111111' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px 20px no-repeat!important}.localized-date-button:after{display:none!important}.inbound-summary-card .inbound-weight-total strong,.inbound-summary-card .weight-unit{font-size:14px!important;font-weight:650!important;color:var(--muted)!important;line-height:1.5}.inbound-summary-card .inbound-transport-field input{font-size:14px!important;font-weight:400!important;color:var(--ink)!important;}.inbound-summary-card .inbound-weight-total{grid-template-columns:auto minmax(40px,1fr) auto auto!important;align-items:center}.inbound-summary-card .inbound-weight-total strong{text-align:right;font-variant-numeric:tabular-nums}.inbound-summary-card .inbound-transport-field{grid-template-columns:auto minmax(40px,1fr) 128px auto!important;align-items:center}.inbound-summary-card .inbound-transport-field label{grid-column:1}.inbound-note-field{align-self:center}
.payment-table th:nth-child(5),.payment-table td:nth-child(5){text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.inbound-three-level #receipt,.inbound-three-level #party{text-align:center!important;text-align-last:center}
.request-line-table th,.request-line-table td{text-align:center!important}.request-line-table th:nth-child(2),.request-line-table td:nth-child(2),.request-line-table th:nth-child(3),.request-line-table td:nth-child(3),.request-line-table th:nth-child(4),.request-line-table td:nth-child(4){text-align:right!important;font-variant-numeric:tabular-nums}.request-line-table td:nth-child(2) input,.request-line-table td:nth-child(3) input{text-align:right!important;font-variant-numeric:tabular-nums}.request-line-table td:nth-child(1) select,.request-line-table td:nth-child(5) input{text-align:center!important;text-align-last:center}
@media(max-width:720px){html,body{width:100%;max-width:100%;overflow-x:hidden}main,.topbar,.content{width:100%;max-width:100vw;min-width:0;overflow-x:hidden}main{margin-left:0}.topbar{height:auto;min-height:86px;padding:12px 10px;gap:8px;align-items:flex-start}.top-heading{min-width:0}.topbar h1{max-width:150px;font-size:20px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .eyebrow{max-width:170px}.top-actions{gap:5px;flex-shrink:0}.language,.logout-button{height:34px;padding:0 8px;border-radius:9px;font-size:13px}.content{padding:14px 10px 48px}.tab-row{width:100%;min-width:0;margin:0 0 14px;padding:4px 0 12px;gap:8px}.tab-row>.secondary{min-width:0;padding:10px 8px}.card,.form-card,.data-card,.recent-orders,.form-shell,.section-grid,.request-three-level,.request-three-level>*,.request-summary-card{max-width:100%;min-width:0}.card,.form-card{padding:16px;border-radius:14px}.field-grid{grid-template-columns:1fr;gap:12px}.field input,.field select,.line-table input,.line-table select{min-width:0}.line-table{width:100%;min-width:0!important;table-layout:fixed}.line-table th,.line-table td{min-width:0;padding:6px 3px}.line-table th{font-size:10px;line-height:1.2}.line-table input,.line-table select{padding:8px 6px;font-size:13px}.request-line-table{min-width:0!important;width:100%!important}.request-line-table th:nth-child(1),.request-line-table td:nth-child(1){width:35%!important}.request-line-table th:nth-child(2),.request-line-table td:nth-child(2){width:19%!important}.request-line-table th:nth-child(3),.request-line-table td:nth-child(3){width:15%!important}.request-line-table th:nth-child(4),.request-line-table td:nth-child(4){width:16%!important}.request-line-table th:nth-child(5),.request-line-table td:nth-child(5){width:15%!important}.request-line-table td:nth-child(5) input{font-size:12px}.outbound-lines{min-width:0!important;width:100%!important}.request-summary-card .summary{grid-template-columns:1fr}.request-summary-card .summary>.summary-row:nth-child(1),.request-summary-card .summary>.summary-row:nth-child(2),.request-summary-card .summary>.summary-row.total,.request-summary-card .summary>.field,.request-summary-card .summary>.request-actions{grid-column:1;grid-row:auto}.request-summary-card .summary>.summary-row.total{border-left:0;border-top:1px solid var(--line);padding:12px 0 0}.request-filter-bar{grid-template-columns:1fr}.request-approval-table{min-width:620px}}
@media(max-width:720px){.data-toolbar{align-items:stretch!important}.data-toolbar .field{width:100%;min-width:0!important}.data-toolbar input,.data-toolbar select,.data-toolbar button{width:100%;min-width:0!important}.data-toolbar .localized-date-field{width:100%;min-width:0}.data-toolbar .localized-date-input{width:100%}}
@media(max-width:390px){.content{padding-left:8px;padding-right:8px}.card,.form-card{padding:14px}.topbar h1{max-width:132px;font-size:19px}.language,.logout-button{padding:0 7px;font-size:12px}.line-table input,.line-table select{font-size:12px;padding:7px 4px}.request-line-table th:nth-child(1),.request-line-table td:nth-child(1){width:34%!important}.request-line-table th:nth-child(2),.request-line-table td:nth-child(2){width:20%!important}.request-line-table th:nth-child(3),.request-line-table td:nth-child(3){width:14%!important}.request-line-table th:nth-child(4),.request-line-table td:nth-child(4){width:17%!important}.request-line-table th:nth-child(5),.request-line-table td:nth-child(5){width:15%!important}}
.receipt-total-summary{width:70%;margin:18px 0 0 auto;background:#f3f6f1;border-radius:12px;padding:28px 34px;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);column-gap:28px;align-items:start}.receipt-total-summary h3{grid-column:2;font-size:15px;margin:0 0 10px;color:var(--ink)}.receipt-total-summary div{grid-column:2;display:grid;grid-template-columns:auto minmax(130px,1fr);align-items:center;column-gap:18px;padding:5px 0;color:var(--muted)}.receipt-total-summary strong{display:block;width:100%;text-align:right;font-variant-numeric:tabular-nums;color:var(--ink)}.receipt-total-final{border-top:1px solid var(--line);margin-top:6px;padding-top:11px!important;color:var(--ink)!important;font-weight:850}.receipt-total-final strong{font-size:20px}@media(max-width:720px){.receipt-total-summary{width:100%;grid-template-columns:1fr;padding:18px}.receipt-total-summary h3,.receipt-total-summary div{grid-column:1}}.partner-register-launch button{font-size:22px;cursor:pointer}.partner-pending-card{margin-top:18px}.partner-register-modal-card{width:min(1080px,100%)}.partner-register-modal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.partner-register-price-head{margin-top:8px}.partner-register-price-table .partner-price{width:180px;text-align:right}.partner-register-modal-actions{margin-top:18px}@media(max-width:760px){.partner-register-launch button{font-size:18px}.partner-register-modal-grid{grid-template-columns:1fr}.partner-register-price-table{min-width:620px}}
.locked-manager-field{background:#f6f8f5!important;cursor:default}
@media(max-width:720px){.receivables-table thead th{top:150px}.data-card:has(.receivables-table)>.card-head{top:150px}.data-card:has(.receivables-table)>.data-toolbar{top:202px}.data-card:has(.receivables-table)>.receivable-total{top:266px}.data-card:has(.receivables-table) .receivables-table thead th{top:338px}}
@media(max-width:900px){.history-totals.top{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.history-totals.top{grid-template-columns:1fr}}
.data-card:has(.receivables-table){background:var(--paper)}.data-card:has(.receivables-table)>.card-head,.data-card:has(.receivables-table)>.data-toolbar,.data-card:has(.receivables-table)>.receivable-total{background:var(--paper)!important;box-shadow:0 -18px 0 18px var(--paper),0 12px 0 0 var(--paper)}.data-card:has(.receivables-table)>.receivable-total{background:#edf3e0!important;box-shadow:0 -18px 0 18px var(--paper),0 12px 0 0 var(--paper)}.data-card:has(.receivables-table) .receivables-table{border-collapse:separate!important;border-spacing:0;background:var(--paper)}.data-card:has(.receivables-table) .receivables-table thead,.data-card:has(.receivables-table) .receivables-table thead tr{background:var(--paper)!important}.data-card:has(.receivables-table) .receivables-table thead th{background:var(--paper)!important;background-clip:padding-box;box-shadow:0 -20px 0 20px var(--paper),0 1px 0 var(--line)!important;}.data-card:has(.receivables-table) .receivables-table thead th:first-child{box-shadow:-20px -20px 0 20px var(--paper),0 1px 0 var(--line)!important}.data-card:has(.receivables-table) .receivables-table thead th:last-child{box-shadow:20px -20px 0 20px var(--paper),0 1px 0 var(--line)!important}
.data-card:has(.receivables-table){position:relative;isolation:isolate}.data-card:has(.receivables-table)::before{content:"";position:sticky;display:block;top:160px;height:286px;margin:0 -28px -286px;background:var(--paper);z-index:4;pointer-events:none}.data-card:has(.receivables-table)>.card-head,.data-card:has(.receivables-table)>.data-toolbar,.data-card:has(.receivables-table)>.receivable-total{z-index:12!important}.data-card:has(.receivables-table)>.card-head:before,.data-card:has(.receivables-table)>.data-toolbar:before,.data-card:has(.receivables-table)>.receivable-total:before{content:"";position:absolute;inset:-18px -28px -14px;background:inherit;z-index:-1}.data-card:has(.receivables-table) .receivables-table thead{position:relative;z-index:11}.data-card:has(.receivables-table) .receivables-table thead th{z-index:13!important}.data-card:has(.receivables-table) .receivables-table tbody td{background:var(--paper)}
@media(max-width:720px){.data-card:has(.receivables-table)::before{display:none}.data-card:has(.receivables-table)>.card-head:before,.data-card:has(.receivables-table)>.data-toolbar:before,.data-card:has(.receivables-table)>.receivable-total:before{display:none}}
.receivables-card{--receivables-top:176px;overflow:visible!important;padding:0!important;background:#fff!important;border-color:#e5ebe3;border-radius:14px;box-shadow:0 10px 26px rgba(23,49,45,.06)}.data-card.receivables-card::before{display:none!important}.receivables-sticky-panel{position:sticky;top:var(--receivables-top);z-index:20;background:#fff;padding:18px 24px 16px;border-bottom:1px solid #e7ece4;box-shadow:0 12px 18px rgba(23,49,45,.05)}.receivables-sticky-panel .card-head{position:static!important;z-index:auto!important;margin:0 0 12px;padding:0!important;background:transparent!important;box-shadow:none!important}.receivables-sticky-panel .card-head h2{font-size:18px;letter-spacing:0}.receivables-sticky-panel .pill{background:#eef5dd;color:#556929;font-weight:850}.receivables-sticky-panel .data-toolbar{position:static!important;z-index:auto!important;margin:0 0 14px;padding:0!important;background:transparent!important;box-shadow:none!important;align-items:center}.receivables-sticky-panel .data-toolbar input{width:min(360px,100%);min-width:0;background:#fbfcfa;border-color:#dce4da;border-radius:10px}.receivables-sticky-panel .receivable-total{position:static!important;z-index:auto!important;margin:0;padding:15px 18px;min-height:60px;background:#f0f6e6!important;border:1px solid #dfe9cf;border-radius:10px;box-shadow:none!important}.receivables-sticky-panel .receivable-total small{font-weight:750;color:#64746e}.receivables-sticky-panel .receivable-total strong{font-size:21px;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}.receivables-sticky-panel .receivable-total.is-negative strong{color:var(--danger)}.receivables-card .receivables-table{width:calc(100% - 48px);margin:0 24px 0;border-collapse:separate!important;border-spacing:0;background:#fff;table-layout:fixed}.receivables-card .receivables-table th,.receivables-card .receivables-table td{padding:13px 14px;border-bottom:1px solid #e2e8e0}.data-card.receivables-card .receivables-table thead th{position:sticky;top:var(--receivables-head-top)!important;z-index:19!important;background:#fff!important;color:#63736e;font-size:11px;font-weight:850;box-shadow:0 1px 0 #d8e1d7,0 7px 0 #fff!important}.data-card.receivables-card .receivables-table thead th:first-child,.data-card.receivables-card .receivables-table thead th:last-child{box-shadow:0 1px 0 #d8e1d7,0 7px 0 #fff!important}.receivables-card .receivables-table tbody td{background:#fff;color:#203a35}.receivables-card .receivables-table tbody tr:hover td{background:#fbfdf8}.receivables-card .receivables-table th:nth-child(n+3),.receivables-card .receivables-table td:nth-child(n+3){width:14.25%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.receivables-card .receivables-table td:first-child strong{font-weight:850}.receivables-card .empty{background:#fff!important}@media(max-width:720px){.receivables-card{overflow:auto!important;padding:16px!important}.receivables-sticky-panel{position:static;padding:0 0 14px;border-bottom:0;box-shadow:none}.receivables-sticky-panel .card-head{margin-bottom:12px}.receivables-sticky-panel .data-toolbar{align-items:stretch;margin-bottom:12px}.receivables-sticky-panel .receivable-total{align-items:flex-start;gap:6px;flex-direction:column}.receivables-sticky-panel .receivable-total strong{font-size:18px}.receivables-card .receivables-table{margin:0}.receivables-card .receivables-table thead th{position:static!important;top:auto!important;box-shadow:0 1px 0 #d8e1d7!important}.receivables-card .receivables-table th,.receivables-card .receivables-table td{padding:10px 9px}}
.payment-management-tabs{width:min(920px,100%);min-width:0}.payment-management-tabs::after{content:"";position:absolute;left:0;right:-100vw;bottom:-18px;height:18px;background:#fff;z-index:-1;pointer-events:none}.payment-management-tabs>.secondary{min-width:0}.daily-status-toolbar{align-items:end;flex-wrap:wrap}.daily-status-toolbar .field{min-width:150px}.daily-status-toolbar select{min-width:150px;border:1px solid var(--line);padding:10px 12px;border-radius:9px;background:#fff;color:var(--ink)}.daily-status-toolbar button{width:auto;height:40px}.daily-status-table{min-width:var(--daily-status-min-width,980px);table-layout:fixed}.daily-status-table th:first-child,.daily-status-table td:first-child{width:15%;text-align:left}.daily-status-table th:nth-child(n+2),.daily-status-table td:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.daily-status-table tfoot th,.daily-status-table tfoot td{position:sticky;bottom:0;background:#f0f6e6;border-top:1px solid #dfe9cf;font-weight:850;color:var(--ink)}@media(max-width:720px){.payment-management-tabs{width:100%;gap:6px}.payment-management-tabs::after{display:none}.payment-management-tabs>.secondary{font-size:12px;padding:10px 6px}.daily-status-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.daily-status-toolbar button{grid-column:1/-1;width:100%}.daily-status-table{min-width:var(--daily-status-min-width,820px)}}
.daily-status-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin:4px 0 20px}.daily-status-summary-card{min-width:0;padding:18px 16px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:var(--shadow)}.daily-status-summary-card small{display:block;min-height:18px;color:var(--muted);font-size:12px;font-weight:800;line-height:1.25}.daily-status-summary-card strong{display:block;margin-top:9px;color:var(--ink);font-size:21px;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap}.daily-status-summary-card strong em{font-size:12px;font-style:normal;color:var(--muted);font-weight:800}@media(max-width:720px){.daily-status-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.daily-status-summary-card{padding:15px 14px;border-radius:14px}.daily-status-summary-card strong{font-size:18px}}@media(max-width:390px){.daily-status-summary-grid{grid-template-columns:1fr}}
.daily-status-card{--daily-status-top:176px;--daily-status-head-top:332px;--daily-status-total-top:376px;overflow:visible!important;position:relative;isolation:isolate}.daily-status-card::before{content:"";position:sticky;top:160px;height:260px;margin:0 -20px -260px;background:#fff;z-index:14;pointer-events:none}.daily-status-sticky-panel{position:sticky;top:var(--daily-status-top);z-index:24;background:#fff;padding:0 0 16px;border-bottom:1px solid #e7ece4;box-shadow:0 12px 18px rgba(23,49,45,.05)}.daily-status-sticky-panel .card-head{margin-bottom:16px}.daily-status-sticky-panel .data-toolbar{margin-bottom:0;background:#fff}.daily-status-table{border-collapse:separate!important;border-spacing:0;background:#fff}.daily-status-table thead th{position:sticky;top:var(--daily-status-head-top);z-index:23;background:#fff!important;box-shadow:0 1px 0 #d8e1d7,0 8px 0 #fff!important}.daily-status-total-row th,.daily-status-total-row td{position:sticky;top:var(--daily-status-total-top);z-index:22;background:#f0f6e6!important;border-top:1px solid #dfe9cf;border-bottom:1px solid #dfe9cf;font-weight:850;color:var(--ink);box-shadow:0 8px 0 #fff}.daily-status-table tbody tr:not(.daily-status-total-row) td{background:#fff}.daily-status-table tbody tr:not(.daily-status-total-row):hover td{background:#fbfdf8}@media(max-width:720px){.daily-status-card{overflow:auto!important}.daily-status-sticky-panel{position:static;padding:0 0 14px;border-bottom:0;box-shadow:none}.daily-status-table thead th,.daily-status-total-row th,.daily-status-total-row td{position:static!important;top:auto!important;box-shadow:none}}
.daily-status-table thead tr:first-child th{box-shadow:0 1px 0 #d8e1d7!important}.daily-status-table thead .daily-status-total-row th{top:var(--daily-status-total-top)!important;z-index:22;background:#fff!important;border-top:0;border-bottom:1px solid #e2e8e0;box-shadow:none!important;font-weight:850}
.daily-status-table-sticky{position:sticky;top:var(--daily-status-head-top);z-index:23;min-width:var(--daily-status-min-width,980px);background:#fff;border-bottom:1px solid #e2e8e0;box-shadow:0 10px 14px rgba(23,49,45,.04);isolation:isolate}.daily-status-table-sticky::before{content:"";position:absolute;left:0;right:0;top:-96px;height:96px;background:#fff;z-index:-1;pointer-events:none}.daily-status-grid{display:grid;align-items:center;background:#fff}.daily-status-grid>span{padding:13px 14px;background:#fff;color:#63736e;font-size:11px;font-weight:850;line-height:1.2}.daily-status-grid>span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.daily-status-header-row>span{border-bottom:1px solid #d8e1d7}.daily-status-total-row>span{color:var(--ink);font-size:13px;border-bottom:1px solid #e2e8e0}.daily-status-table{margin-top:0}.daily-status-table tbody tr:first-child td{border-top:0!important}@media(max-width:720px){.daily-status-table-sticky{position:static;min-width:var(--daily-status-min-width,820px);box-shadow:none;isolation:auto}.daily-status-table-sticky::before{display:none}}
.daily-status-card::before{display:none!important}
.expense-tabs{width:100%;min-width:0;overflow-x:auto;gap:8px;padding-bottom:12px;scrollbar-width:none}.expense-tabs::-webkit-scrollbar{display:none}.expense-tabs>.secondary{min-width:136px;white-space:nowrap}.expense-layout{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(520px,1.1fr);gap:18px}.expense-form-card .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-wide-field{grid-column:1/-1}.expense-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}.expense-stats>div{background:#f3f6f1;border-radius:12px;padding:16px 18px}.expense-stats small{display:block;color:var(--muted);font-weight:750;margin-bottom:8px}.expense-stats strong{font-size:20px;font-variant-numeric:tabular-nums}.expense-stats .negative strong{color:var(--danger)}.expense-dashboard-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0}.expense-dashboard-card{min-height:126px;padding:24px 28px;display:flex;flex-direction:column;justify-content:center;gap:10px;background:#f8fafc;border:1px solid #e7edf3;border-radius:18px}.expense-dashboard-card small{color:var(--muted);font-size:15px;font-weight:750}.expense-dashboard-card strong{font-size:29px;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.expense-dashboard-total{background:#eef5ff;border-color:#d8e8ff}.expense-dashboard-total strong{color:var(--blue)}.expense-table th:nth-last-child(1),.expense-table td:nth-last-child(1),.expense-table th:nth-last-child(2),.expense-table td:nth-last-child(2){text-align:right;font-variant-numeric:tabular-nums}.expense-history-table{width:100%;table-layout:fixed!important}.expense-history-table th:nth-child(1){width:12%!important}.expense-history-table th:nth-child(2){width:15%!important}.expense-history-table th:nth-child(3){width:12%!important}.expense-history-table th:nth-child(4){width:22%!important}.expense-history-table th:nth-child(5){width:8%!important}.expense-history-table th:nth-child(6){width:8%!important}.expense-history-table th:nth-child(7){width:12%!important}.expense-history-table th:nth-child(8){width:11%!important}.expense-history-table th:nth-child(-n+3),.expense-history-table td:nth-child(-n+3){white-space:nowrap}.cash-balance-table th:nth-child(n+5),.cash-balance-table td:nth-child(n+5){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cash-balance-table .cash-entry-in td:nth-child(5),.cash-balance-table .cash-entry-out td:nth-child(6){font-weight:850}.cash-balance-table .cash-entry-out td:nth-child(6){color:var(--danger)}.expense-category-table input,.expense-category-table select{width:100%;border:1px solid var(--line);background:#fbfcfa;padding:9px 10px;border-radius:8px;color:var(--ink)}.expense-filter-bar{align-items:end;flex-wrap:wrap}.expense-filter-bar .field{min-width:170px}.expense-filter-bar button{width:auto;height:40px}@media(max-width:1100px){.expense-layout{grid-template-columns:1fr}}@media(max-width:720px){.expense-tabs>.secondary{min-width:118px;font-size:12px}.expense-form-card .field-grid,.expense-stats,.expense-dashboard-cards{grid-template-columns:1fr}.expense-dashboard-cards{gap:12px;margin:18px 0}.expense-dashboard-card{min-height:104px;padding:20px}.expense-dashboard-card strong{font-size:25px}.expense-filter-bar{display:grid;grid-template-columns:1fr}.expense-filter-bar button{width:100%}.expense-table{min-width:760px}.expense-history-table{min-width:900px}}
.expense-detail-modal{max-width:760px}.expense-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}.expense-detail-grid>div{background:#f3f6f1;border-radius:11px;padding:13px 15px;min-width:0}.expense-detail-grid>div:last-child{grid-column:1/-1}.expense-detail-grid small{display:block;color:var(--muted);font-weight:750;margin-bottom:5px}.expense-detail-grid strong{display:block;overflow-wrap:anywhere}@media(max-width:640px){.expense-detail-grid{grid-template-columns:1fr}.expense-detail-grid>div:last-child{grid-column:auto}.expense-detail-modal .four-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.inbound-tabs{min-width:0}.inbound-tabs>.secondary{min-width:0}
.permission-role-tabs{display:grid;gap:8px;margin:0 0 14px;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}.permission-role-tab{min-width:112px;display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:.18s}.permission-role-tab:hover{border-color:#a9bbb2;background:#fbfcfa}.permission-role-tab.active{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 9px 22px rgba(16,75,66,.16)}.permission-role-code{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#edf3e0;color:var(--green);font-size:13px;font-weight:900}.permission-role-code.large{width:42px;height:42px;border-radius:12px;font-size:15px}.permission-role-tab.active .permission-role-code{background:var(--lime)}.permission-role-tab>span:last-child{display:grid;min-width:0}.permission-role-tab strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.permission-role-tab small{margin-top:1px;color:var(--muted);font-size:9px;font-weight:750}.permission-role-tab.active small{color:#cfe0db}.permission-overview{display:grid;grid-template-columns:minmax(280px,1.25fr) minmax(420px,1fr);gap:18px;align-items:center;margin-bottom:16px;padding:20px 22px;border:1px solid #d9e3d7;border-radius:16px;background:linear-gradient(135deg,#f8fbf4 0%,#eef4ec 100%);box-shadow:var(--shadow)}.permission-role-copy>div{display:flex;align-items:center;gap:9px;margin-bottom:8px}.permission-role-copy h2{font-size:21px}.permission-role-copy p{margin-top:5px;color:var(--muted);font-size:12px}.permission-fixed-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff;color:var(--green2);font-size:10px;font-weight:850;border:1px solid #d6e2d3}.permission-fixed-badge.fixed{background:#fff4e9;color:#8a5724;border-color:#efdbc5}.permission-count-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.permission-count-grid>div{padding:12px 10px;border:1px solid #dce5da;border-radius:12px;background:rgba(255,255,255,.76);text-align:center}.permission-count-grid small{display:block;color:var(--muted);font-size:10px;font-weight:800}.permission-count-grid strong{display:block;margin-top:4px;font-size:22px;line-height:1.1;font-variant-numeric:tabular-nums}.permission-card{padding:0;overflow:hidden}.permission-card-head{gap:20px;align-items:flex-start;margin:0;padding:19px 22px 16px;border-bottom:1px solid var(--line)}.permission-card-head h2{font-size:18px}.permission-card-head p{margin-top:4px;max-width:660px;color:var(--muted);font-size:11px}.permission-legend{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.permission-legend span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:#fbfcfa;color:var(--muted);font-size:10px;font-weight:750}.permission-legend i{width:7px;height:7px;border-radius:50%;background:#81968f}.permission-legend i.edit{background:#658d79}.permission-legend i.delete{background:#bd7368}.permission-legend i.approve{background:#567e49}.permission-fixed-notice{margin:14px 20px 0;padding:10px 12px;border-radius:10px;background:#fff6e8;color:#7d5d2d;font-size:11px;font-weight:750}.permission-table-wrap{width:100%;overflow:auto}.permission-table-compact{min-width:840px;table-layout:fixed}.permission-table-compact th,.permission-table-compact td{height:43px;padding:8px 14px!important;line-height:1.2;vertical-align:middle}.permission-table-compact th:first-child{width:48%;text-align:left}.permission-table-compact th:nth-child(n+2),.permission-table-compact td:nth-child(n+2){width:13%;text-align:center}.permission-table-compact thead th{position:sticky;top:0;z-index:2;background:#f5f7f3!important;color:var(--muted);font-weight:850}.permission-menu-row td{background:#f4f7ed;border-top:1px solid #dce5d8}.permission-menu-row:first-child td{border-top:0}.permission-menu-row .permission-menu-cell strong{display:inline-flex;align-items:center;gap:8px;font-size:13px}.permission-menu-row .permission-menu-cell strong:before{content:"";display:inline-block;width:7px;height:7px;border-radius:2px;background:#78936a}.permission-sub-row td{background:#fff}.permission-sub-row:hover td{background:#fbfcfa}.permission-sub-row .permission-menu-cell span{display:inline-block;padding-left:28px;color:#50615c;font-size:12px}.permission-check{position:relative;display:inline-grid;place-items:center;width:24px;height:24px;margin:0;cursor:pointer}.permission-check input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.permission-check span{display:grid;place-items:center;width:20px;height:20px;border:1.5px solid #a9b8b2;border-radius:6px;background:#fff;transition:.15s}.permission-check input:checked+span{border-color:var(--green);background:var(--green)}.permission-check input:checked+span:after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}.permission-check input:indeterminate+span{border-color:#738b82;background:#edf3e0}.permission-check input:indeterminate+span:after{content:"";width:9px;border-top:2px solid var(--green)}.permission-check input:focus-visible+span{outline:3px solid rgba(32,102,89,.18);outline-offset:2px}.permission-check input:disabled{cursor:not-allowed}.permission-check input:disabled+span{opacity:.72}.permission-na{color:#bec8c3;font-weight:800}.permission-save-bar{position:sticky;z-index:6;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:18px;margin:16px 0 0;padding:13px 15px;border:1px solid #dce5da;border-radius:14px;background:rgba(255,255,255,.95);box-shadow:0 14px 32px rgba(26,53,48,.16);backdrop-filter:blur(14px)}.permission-save-bar.dirty{border-color:#d6b574;background:rgba(255,250,237,.96)}.permission-save-state{display:flex;align-items:center;gap:10px;min-width:0}.permission-save-state>span:last-child{display:grid}.permission-save-state strong{font-size:12px}.permission-save-state small{margin-top:1px;color:var(--muted);font-size:10px}.permission-save-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:#7aad86;box-shadow:0 0 0 4px rgba(122,173,134,.13)}.permission-save-bar.dirty .permission-save-dot{background:#d29a3b;box-shadow:0 0 0 4px rgba(210,154,59,.14)}.permission-save-actions{display:flex;gap:8px;flex:0 0 auto}.permission-save-actions .primary,.permission-save-actions .secondary{width:auto;min-width:116px;height:40px}.permission-save-actions .secondary:disabled,.permission-save-actions .primary:disabled{opacity:.45;cursor:not-allowed}@media(max-width:1000px){.permission-overview{grid-template-columns:1fr}.permission-count-grid{max-width:620px}}@media(max-width:720px){.permission-role-tabs{margin-right:-10px;padding-right:10px}.permission-role-tab{min-width:122px}.permission-overview{padding:16px;gap:14px}.permission-count-grid{grid-template-columns:repeat(2,1fr)}.permission-card-head{display:grid;padding:16px}.permission-legend{justify-content:flex-start}.permission-fixed-notice{margin:12px 12px 0}.permission-save-bar{bottom:8px;align-items:stretch;flex-direction:column;margin-top:12px}.permission-save-actions{display:grid;grid-template-columns:1fr 1fr}.permission-save-actions .primary,.permission-save-actions .secondary{width:100%;min-width:0}.permission-save-state small{line-height:1.35}}
.delivery-tabs{width:min(520px,100%);min-width:0}.delivery-card{margin-bottom:18px}.delivery-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 14px}.delivery-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}.delivery-summary-grid.compact{margin:10px 0 18px}.delivery-summary-grid>div{background:#f3f6f1;border-radius:12px;padding:18px 20px}.delivery-card>.delivery-summary-grid>div{position:relative;min-height:132px;padding:20px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#fff 0%,#f8faf6 100%);box-shadow:var(--shadow);overflow:hidden}.delivery-card>.delivery-summary-grid>div:after{content:"";position:absolute;inset:auto -24px -34px auto;width:96px;height:96px;border-radius:50%;background:rgba(220,233,183,.28)}.delivery-card>.delivery-summary-grid small,.delivery-card>.delivery-summary-grid strong,.delivery-card>.delivery-summary-grid em{position:relative;z-index:1}.delivery-summary-grid small{display:block;color:var(--muted);font-weight:800;margin-bottom:6px}.delivery-summary-grid strong{display:block;font-size:28px;line-height:1.15;font-variant-numeric:tabular-nums}.delivery-summary-grid em{display:block;margin-top:6px;color:var(--muted);font-style:normal;font-size:12px;font-weight:700}.delivery-route-table{min-width:1320px}.delivery-route-table input{width:100%;border:1px solid var(--line);background:#fbfcfa;padding:8px 9px;border-radius:8px;color:var(--ink)}.delivery-confirm-field{display:grid;gap:6px;align-items:center}.delivery-confirm-field input{min-width:0}.delivery-confirm-field .secondary{height:38px;padding:0 10px;white-space:nowrap}.delivery-route-table th:nth-child(1),.delivery-route-table td:nth-child(1){text-align:center}.delivery-route-table th:nth-child(3),.delivery-route-table td:nth-child(3),.delivery-route-table th:nth-child(5),.delivery-route-table td:nth-child(5),.delivery-route-table th:nth-child(6),.delivery-route-table td:nth-child(6),.delivery-route-table th:nth-child(7),.delivery-route-table td:nth-child(7){width:108px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-route-table td:nth-child(3) input,.delivery-route-table td:nth-child(5) input,.delivery-route-table td:nth-child(7) input{text-align:right}.delivery-route-table th:nth-child(8),.delivery-route-table td:nth-child(8),.delivery-route-table th:nth-child(9),.delivery-route-table td:nth-child(9){width:86px;text-align:center}.delivery-route-table th:nth-child(10),.delivery-route-table td:nth-child(10){width:190px}.delivery-route-table th:nth-child(11),.delivery-route-table td:nth-child(11){text-align:right}.delivery-route-table input[type="checkbox"]{width:18px;height:18px;accent-color:var(--green)}.delivery-history-table th:nth-child(3),.delivery-history-table td:nth-child(3),.delivery-history-table th:nth-child(4),.delivery-history-table td:nth-child(4),.delivery-history-table th:nth-child(5),.delivery-history-table td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-detail-modal{max-width:1120px}.delivery-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}@media(max-width:900px){.delivery-meta-grid,.delivery-summary-grid,.delivery-detail-meta{grid-template-columns:1fr}.delivery-route-table,.delivery-history-table{min-width:1080px}}
.delivery-route-table thead th{text-align:center!important;white-space:normal!important;overflow-wrap:anywhere;word-break:keep-all;line-height:1.25;vertical-align:middle}.delivery-confirm-field .secondary,.delivery-route-table td:nth-child(11) .secondary{display:inline-flex;align-items:center;justify-content:center;width:68px;min-width:68px;height:38px;padding:0 10px;white-space:nowrap}.delivery-route-table td:nth-child(11){text-align:center}.delivery-route-table td:nth-child(11) .secondary{justify-self:center}
@media print{@page{size:A4 portrait;margin:14mm}#printArea{color:#111827!important;background:#fff!important}#printArea h1,#printArea h2{text-align:left}.print-invoice{flex-direction:column;print-color-adjust:exact;-webkit-print-color-adjust:exact}.print-invoice-head{grid-template-columns:1.08fr .92fr;gap:48px;}.print-invoice-company h1{color:#020617;letter-spacing:0}.print-invoice-logo{display:block;object-fit:contain;object-position:left top;}.print-invoice-company p,.print-invoice-recipient p{margin:0 0 6px;color:#111827}.print-invoice-recipient h2{font-weight:550;color:#111827}.print-invoice-recipient strong{display:block;margin:0 0 8px;color:#020617}.print-invoice-meta{display:flex;align-items:center;}.print-invoice-meta h2{margin:0;color:#020617}.print-invoice-meta span{color:#111827}.print-invoice-table{width:100%;border-collapse:collapse;margin:0}.print-invoice-table th{background:#eef1f5!important;color:#1f2937;font-weight:750;border-bottom:0!important}.print-invoice-table td{border-bottom:1px solid #d6dbe3!important;vertical-align:top;color:#111827}.print-invoice-table th:nth-child(3),.print-invoice-table th:nth-child(4),.print-invoice-table th:nth-child(5),.print-invoice-table td:nth-child(3),.print-invoice-table td:nth-child(4),.print-invoice-table td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.print-invoice-summary{display:grid;gap:36px;}.print-invoice-totals{border-top:1px solid #d6dbe3}.print-invoice-totals div{display:grid;grid-template-columns:1fr auto;gap:22px;color:#111827}.print-invoice-totals strong{text-align:right;font-variant-numeric:tabular-nums}.print-invoice-total{border-top:1px solid #d6dbe3;}.print-invoice-total span,.print-invoice-total strong{font-weight:500;color:#020617}.print-invoice-footer{margin-top:auto;border-top:1px solid #d6dbe3;}}
@media print{.print-invoice-time{color:#111827;}.print-invoice-head{display:block!important;}.print-brand-row{display:flex;}.print-invoice-logo{margin:0!important}.print-invoice-company h1{margin:0!important;font-weight:850!important}.print-invoice-recipient{padding-top:0!important;}.print-invoice-meta h2{font-weight:750!important}.print-invoice-meta h2 strong{margin-left:0;font-weight:850}.print-signatures{display:grid;grid-template-columns:repeat(4,1fr);}.print-signatures div{display:flex;flex-direction:column;align-items:center;text-align:center;color:#111827}.print-signatures i{display:block;width:86%;border-top:1px solid #d6dbe3}.print-invoice-footer{align-items:center;text-align:left!important;color:#111827!important;}.print-footer-item{display:inline-flex;align-items:center;min-width:0}.print-footer-address{color:#334155}.print-footer-icon{display:inline-block;flex:0 0 18px;background-position:center;background-repeat:no-repeat;}.print-footer-phone{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.2 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.57 2.61a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.47-1.14a2 2 0 0 1 2.11-.45c.84.25 1.71.45 2.61.57A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E")}.print-footer-map{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}}
@media print{.print-invoice{display:block!important;padding-bottom:56px!important;font-size:12px!important;line-height:1.24!important;letter-spacing:0!important}.print-invoice-time{margin:0 0 22px!important;font-size:11px!important}.print-invoice-head{margin:0 0 24px!important}.print-brand-row{gap:16px!important}.print-invoice-logo{max-width:220px!important;max-height:92px!important}.print-invoice-company h1{font-size:20px!important;line-height:1.12!important}.print-invoice-recipient{margin:0 0 24px!important}.print-invoice-recipient h2{font-size:14px!important;margin:0 0 8px!important;letter-spacing:.1em!important}.print-invoice-recipient strong{font-size:16px!important;margin-bottom:6px!important}.print-invoice-recipient p{font-size:12px!important;margin:0 0 3px!important}.print-invoice-meta{gap:18px!important;margin:0 0 12px!important}.print-invoice-meta h2{font-size:20px!important}.print-invoice-meta h2 strong{font-size:25px!important}.print-invoice-meta span{font-size:18px!important}.print-invoice-table th{font-size:12px!important;padding:8px 10px!important}.print-invoice-table td{font-size:13px!important;padding:9px 10px!important}.print-invoice-summary{margin-top:24px!important;grid-template-columns:1fr minmax(320px,45%)!important}.print-invoice-totals div{font-size:14px!important;padding:5px 0!important}.print-invoice-total{margin-top:5px!important;padding-top:10px!important}.print-invoice-total span,.print-invoice-total strong{font-size:22px!important}.print-signatures{gap:24px!important;margin-top:38px!important;margin-bottom:24px!important}.print-signatures div{gap:22px!important;font-size:14px!important}.print-invoice-footer{position:fixed!important;display:grid!important;gap:12px!important;padding-top:8px!important;background:#fff!important;font-size:11px!important;line-height:1.25!important}.print-invoice-footer strong{font-size:10px!important;font-weight:600!important}.print-footer-icon{width:14px!important;height:14px!important;flex-basis:14px!important;background-size:14px 14px!important}.print-footer-item{gap:5px!important}}
@media print{.print-table-note{margin:7px 0 0!important;font-size:11px!important;color:#334155!important;line-height:1.25!important}}
@media print{.print-invoice-table th{text-align:center!important}.print-invoice-table td:nth-child(1),.print-invoice-table td:nth-child(2),.print-invoice-table td:nth-child(4){text-align:center!important}.print-invoice-table td:nth-child(3),.print-invoice-table td:nth-child(5){text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}}
@media print{.print-delivery-log .print-invoice-head{margin-bottom:20px!important}.print-delivery-log .print-invoice-meta{margin-bottom:12px!important}.print-delivery-meta{display:grid;gap:8px;margin:0 0 14px!important}.print-delivery-meta div{background:#f3f4f6!important;padding:8px 10px!important}.print-delivery-meta span{display:block;font-size:10px;color:#475569;margin-bottom:3px}.print-delivery-meta strong{font-size:13px;color:#111827}.print-delivery-table th,.print-delivery-table td{font-size:10px!important;padding:6px 7px!important}.print-delivery-table th:nth-child(3),.print-delivery-table td:nth-child(3),.print-delivery-table th:nth-child(5),.print-delivery-table td:nth-child(5),.print-delivery-table th:nth-child(6),.print-delivery-table td:nth-child(6),.print-delivery-table th:nth-child(7),.print-delivery-table td:nth-child(7){text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}.print-delivery-table th:nth-child(8),.print-delivery-table td:nth-child(8),.print-delivery-table th:nth-child(9),.print-delivery-table td:nth-child(9){text-align:center!important}}
@media print{@page{size:A4 portrait;margin:0}.print-invoice{box-sizing:border-box!important;width:210mm!important;min-height:297mm!important;margin:0 auto!important;padding:14mm 14mm 18mm!important}.print-invoice-time{display:none!important}.print-brand-row{align-items:flex-end!important}.print-invoice-company h1{padding-bottom:5px!important}.print-invoice:not(.print-expense-voucher):not(.print-delivery-log) .print-invoice-meta{display:flex!important;align-items:baseline!important;justify-content:space-between!important;width:100%!important;gap:18px!important}.print-invoice:not(.print-expense-voucher):not(.print-delivery-log) .print-invoice-meta span{margin-left:auto!important;text-align:right!important;white-space:nowrap!important}.print-invoice-footer{left:14mm!important;right:14mm!important;bottom:8mm!important}}
@media print{.print-invoice-footer{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr)!important;justify-items:stretch!important;column-gap:16px!important}.print-invoice-footer strong{justify-self:start!important;white-space:normal!important}.print-invoice-footer .print-footer-item{display:flex!important;width:100%!important;min-width:0!important;overflow-wrap:anywhere}.print-invoice-footer .print-footer-item:nth-of-type(1){justify-content:center!important;text-align:center!important}.print-invoice-footer .print-footer-address{justify-content:flex-end!important;text-align:right!important}}
.receivable-head-actions{display:flex;align-items:center;gap:8px}.mini-icon-button{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border-radius:11px!important;display:inline-grid!important;place-items:center!important}.import-upload-icon{position:relative;display:block;width:16px;height:16px}.import-upload-icon:before{content:"";position:absolute;left:7px;top:2px;width:2px;height:10px;background:currentColor;border-radius:2px}.import-upload-icon:after{content:"";position:absolute;left:3px;top:2px;width:8px;height:8px;border-left:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg);border-radius:1px}.mini-icon-button .import-upload-icon{color:var(--green)}@media(max-width:720px){.receivable-head-actions{gap:6px}.mini-icon-button{width:32px!important;height:32px!important;min-width:32px!important}}
.table-sort-button{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:5px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:inherit;cursor:pointer}.receivables-table th:nth-child(n+5) .table-sort-button{justify-content:flex-end}.table-sort-button:hover,.table-sort-button:focus-visible{color:var(--green)}.table-sort-button:focus-visible{outline:2px solid #9bbd83;outline-offset:4px;border-radius:3px}.table-sort-indicator{display:inline-block;width:10px;color:#9aa9a4}.table-sort-indicator:after{content:'↕';font-size:11px}.table-sort-button[data-direction="asc"] .table-sort-indicator:after{content:'↑';color:var(--green)}.table-sort-button[data-direction="desc"] .table-sort-indicator:after{content:'↓';color:var(--green)}
.receivables-card .receivables-table th:nth-child(1),.receivables-card .receivables-table td:nth-child(1){text-align:center;font-weight:400}.receivables-card .receivables-table th:nth-child(2),.receivables-card .receivables-table td:nth-child(2){text-align:left}.receivables-card .receivables-table th:nth-child(3),.receivables-card .receivables-table td:nth-child(3){text-align:left}.receivables-card .receivables-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere;line-height:1.35}.receivables-card .receivables-table th:nth-child(n+5),.receivables-card .receivables-table td:nth-child(n+5){width:13%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.receivables-card .receivables-table th:nth-child(4) .table-sort-button{justify-content:flex-start}.receivables-card .receivables-table th:nth-child(n+5) .table-sort-button{justify-content:flex-end}@media(max-width:720px){.receivables-card .receivables-table{width:820px;min-width:820px}}
.grid.receivables-dashboard-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.receivables-dashboard-grid .receivables-dashboard-card{min-width:0;min-height:144px;padding:18px 16px}.receivables-dashboard-grid .receivables-dashboard-card small{color:var(--muted);font-size:12px;font-weight:750}.receivables-dashboard-grid .receivables-dashboard-card strong{font-size:clamp(18px,1.45vw,22px);line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}.receivables-dashboard-grid .receivables-dashboard-card strong.negative-number{color:var(--danger)}.receivables-dashboard-grid .receivables-dashboard-card em{display:block;margin-top:10px;color:var(--muted);font-size:11px;font-style:normal;font-weight:650}.receivable-filter-reset{min-height:34px!important;padding:6px 12px!important;font-size:12px!important}.receivable-filter-reset.is-filtered{color:var(--danger)!important;border-color:#f3d1cf!important;background:#fff7f6!important}.receivables-sticky-panel .card-head h2 .pill{vertical-align:middle;margin-left:6px}.receivables-sticky-panel .receivable-total strong{min-width:140px;text-align:right}@media(max-width:1280px){.grid.receivables-dashboard-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.receivables-dashboard-grid .receivables-dashboard-card{grid-column:span 2}.receivables-dashboard-grid .receivables-dashboard-card:nth-last-child(-n+2){grid-column:span 3}}@media(max-width:960px){.grid.receivables-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.receivables-dashboard-grid .receivables-dashboard-card,.receivables-dashboard-grid .receivables-dashboard-card:nth-last-child(-n+2){grid-column:auto}.receivables-dashboard-grid .receivables-dashboard-card:first-child{grid-column:1/-1}}@media(max-width:720px){.grid.receivables-dashboard-grid{grid-template-columns:1fr;gap:10px}.receivables-dashboard-grid .receivables-dashboard-card{min-height:112px;padding:16px}.receivables-dashboard-grid .receivables-dashboard-card strong{font-size:22px}}
.delivery-route-table th:nth-child(1),.delivery-route-table td:nth-child(1){width:72px}.delivery-route-table td:nth-child(1) strong{display:inline-grid;place-items:center;font-size:28px;font-weight:900;line-height:1;color:var(--ink)}
.delivery-history-table{width:100%;table-layout:fixed}.delivery-history-table th:nth-child(6),.delivery-history-table td:nth-child(6){overflow-wrap:anywhere;word-break:normal;line-height:1.5}
.compact-action-button{position:relative;display:inline-grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;padding:0!important;border-radius:11px!important;line-height:1!important;vertical-align:middle;transition:transform .15s ease,background-color .15s ease,border-color .15s ease}.compact-action-button:hover{transform:translateY(-1px);background:#f3f6f1;border-color:#cbd8cc}.compact-action-button:focus-visible{outline:3px solid rgba(30,102,90,.24);outline-offset:2px}.compact-action-button svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.compact-action-button.primary{background:var(--green);border:1px solid var(--green);color:#fff}.compact-action-button.danger{background:#fff7f5;border-color:#ead2cd;color:var(--danger)}.compact-action-button[data-action-icon="approve"]{background:var(--green);border-color:var(--green);color:#fff}.modal-card .compact-action-grid{display:flex!important;align-items:center;justify-content:flex-end;gap:9px;margin-top:18px}.data-table td>.compact-action-button+.compact-action-button,.delivery-route-row-actions>.compact-action-button+.compact-action-button{margin-left:7px}.delivery-route-table th:nth-child(11),.delivery-route-table td:nth-child(11){width:112px}@media(max-width:720px){.compact-action-button{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important}.modal-card .compact-action-grid{justify-content:center}}
.request-detail-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.modal-card .request-detail-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));width:100%;gap:10px}.modal-card .request-detail-actions .labeled-action-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;padding:0 14px!important}.request-detail-actions .labeled-action-button span{font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:1000px){.request-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.request-detail-meta{grid-template-columns:1fr}.modal-card .request-detail-actions.compact-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .request-detail-actions .labeled-action-button{height:48px!important}}
.modal-card .outbound-detail-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:10px}.modal-card .outbound-detail-actions.readonly-actions{grid-template-columns:1fr}.modal-card .outbound-detail-actions.readonly-actions:has(#recentDetailPrint){grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .outbound-detail-actions .labeled-action-button,.modal-card .outbound-edit-actions .labeled-action-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;padding:0 14px!important}.outbound-detail-actions .labeled-action-button span,.outbound-edit-actions .labeled-action-button span{font-size:14px;font-weight:800;white-space:nowrap}.outbound-edit-meta{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:720px){.modal-card .outbound-detail-actions.compact-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.outbound-edit-meta{grid-template-columns:1fr}.modal-card .outbound-detail-actions .labeled-action-button,.modal-card .outbound-edit-actions .labeled-action-button{height:48px!important}}
.outbound-edit-table th:last-child,.outbound-edit-table td:last-child{width:76px;text-align:center}.outbound-edit-table td:last-child .compact-action-button{margin:0 auto}.outbound-edit-table td:first-child{overflow-wrap:anywhere}@media(max-width:720px){.outbound-edit-table{min-width:680px}.outbound-edit-modal{overflow-x:auto}}
.delivery-meta-grid,.delivery-detail-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.delivery-departure-field{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center}.delivery-departure-field .compact-action-button,.delivery-confirm-field .compact-action-button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;background:#fff!important;border-color:var(--line)!important;color:var(--green)!important}.delivery-history-table th:nth-child(1),.delivery-history-table td:nth-child(1){width:11%}.delivery-history-table th:nth-child(2),.delivery-history-table td:nth-child(2){width:10%;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}.delivery-history-table th:nth-child(3),.delivery-history-table td:nth-child(3){width:10%;text-align:left}.delivery-history-table th:nth-child(4),.delivery-history-table td:nth-child(4){width:8%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-history-table th:nth-child(5),.delivery-history-table td:nth-child(5){width:10%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-history-table th:nth-child(6),.delivery-history-table td:nth-child(6){width:11%;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.delivery-history-table th:nth-child(7),.delivery-history-table td:nth-child(7){width:auto;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.5}.delivery-history-table th:nth-child(8),.delivery-history-table td:nth-child(8){width:64px;text-align:center;white-space:nowrap}@media(max-width:900px){.delivery-meta-grid,.delivery-detail-meta{grid-template-columns:1fr}.delivery-history-table{min-width:1180px}}@media print{.print-delivery-meta{grid-template-columns:repeat(6,1fr)}}
@media print{@page deliveryLog{size:A4 landscape;margin:0}.print-delivery-log{page:deliveryLog;box-sizing:border-box!important;width:297mm!important;min-height:210mm!important;margin:0 auto!important;padding:10mm 12mm 12mm!important;font-size:11px!important;line-height:1.25!important}.print-delivery-header{display:block!important;margin:0 0 10mm!important}.print-delivery-brand{display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;gap:14px!important;min-width:0!important}.print-delivery-logo{display:block!important;max-width:100px!important;max-height:42px!important;width:auto!important;height:auto!important;object-fit:contain!important}.print-delivery-brand h1{margin:0!important;padding:0 0 3px!important;font-size:10px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.02em!important;white-space:nowrap!important}.print-delivery-log .print-invoice-meta{display:flex!important;align-items:baseline!important;justify-content:flex-start!important;width:100%!important;gap:14px!important;margin:0 0 8px!important;padding:0 0 7px!important;border-bottom:2px solid #263c37!important}.print-delivery-log .print-invoice-meta h2{margin:0!important;font-size:18px!important;line-height:1!important;font-weight:850!important}.print-delivery-log .print-invoice-meta span{margin-left:auto!important;font-size:11px!important;line-height:1!important;font-weight:650!important;white-space:nowrap!important}.print-delivery-log .print-delivery-meta{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;margin:0 0 10px!important}.print-delivery-log .print-delivery-meta div{padding:7px 9px!important}.print-delivery-log .print-delivery-meta span{font-size:9px!important}.print-delivery-log .print-delivery-meta strong{font-size:11px!important}.print-delivery-log .print-delivery-table{width:100%!important;table-layout:auto!important}.print-delivery-log .print-delivery-table th,.print-delivery-log .print-delivery-table td{font-size:9px!important;padding:6px 7px!important}.print-delivery-log .print-delivery-table tr{break-inside:avoid}.print-delivery-log .print-signatures{margin-top:18mm!important;margin-bottom:0!important;gap:24px!important}.print-delivery-log .print-signatures div{gap:18px!important;font-size:11px!important}.print-delivery-log .print-invoice-footer{display:none!important}}
@media print{.print-invoice:not(.print-expense-voucher):not(.print-delivery-log):not(.print-outbound-receipt){display:flex!important;flex-direction:column!important;height:297mm!important;min-height:297mm!important}.print-invoice:not(.print-expense-voucher):not(.print-delivery-log):not(.print-outbound-receipt) .print-invoice-head{margin-bottom:72px!important}.print-invoice:not(.print-expense-voucher):not(.print-delivery-log):not(.print-outbound-receipt) .print-signatures{margin-top:auto!important;margin-bottom:auto!important;flex:0 0 auto}}
@media print{@page outboundReceipt{size:A5 landscape;margin:8mm 10mm 10mm}body:has(#printArea .print-outbound-receipt){background:#fff!important}.print-invoice.print-outbound-receipt{page:outboundReceipt;box-sizing:border-box!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;font-size:10px!important;line-height:1.2!important}.print-outbound-receipt .print-invoice-head{margin:0 0 5mm!important}.print-outbound-receipt .print-brand-row{align-items:flex-end!important;gap:10px!important}.print-outbound-receipt .print-invoice-logo{max-width:100px!important;max-height:42px!important;width:auto!important;height:auto!important;margin:0!important}.print-outbound-receipt .print-invoice-company h1{margin:0!important;padding:0 0 2px!important;font-size:10px!important;line-height:1.15!important;letter-spacing:.01em!important;white-space:nowrap!important}.print-outbound-receipt .print-invoice-recipient{margin:0 0 4mm!important;padding:0!important}.print-outbound-receipt .print-invoice-recipient h2{margin:0 0 4px!important;font-size:9px!important;letter-spacing:.08em!important}.print-outbound-receipt .print-invoice-recipient strong{margin:0 0 3px!important;font-size:11px!important}.print-outbound-receipt .print-invoice-recipient p{margin:0 0 2px!important;font-size:9px!important}.print-outbound-receipt .print-invoice-meta{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:12px!important;width:100%!important;margin:0 0 5px!important}.print-outbound-receipt .print-invoice-meta h2,.print-outbound-receipt .print-invoice-meta h2 strong{margin:0!important;font-size:16px!important;line-height:1!important;font-weight:850!important}.print-outbound-receipt .print-invoice-meta span{margin-left:auto!important;font-size:10px!important;line-height:1!important;white-space:nowrap!important}.print-outbound-receipt .print-invoice-table thead{display:table-header-group}.print-outbound-receipt .print-invoice-table tbody tr{break-inside:avoid;page-break-inside:avoid}.print-outbound-receipt .print-invoice-table th{padding:5px 8px!important;font-size:8px!important}.print-outbound-receipt .print-invoice-table td{padding:6px 8px!important;font-size:9px!important}.print-outbound-receipt .print-table-note{margin:4px 0 0!important;font-size:8px!important;line-height:1.2!important}.print-outbound-receipt .print-invoice-summary{display:block!important;break-inside:avoid;page-break-inside:avoid}.print-outbound-receipt .print-invoice-summary>div:first-child{display:none!important}.print-outbound-receipt .print-invoice-totals div{gap:14px!important;padding:3px 0!important;font-size:10px!important}.print-outbound-receipt .print-invoice-total{margin-top:2px!important;padding-top:5px!important}.print-outbound-receipt .print-invoice-total span,.print-outbound-receipt .print-invoice-total strong{font-size:15px!important}.print-outbound-receipt .print-outbound-approval{margin-top:auto!important;break-inside:avoid;page-break-inside:avoid}.print-invoice.print-outbound-receipt .print-signatures{gap:16px!important;margin:0 0 8mm!important;flex:0 0 auto!important}.print-outbound-receipt .print-signatures div{gap:10px!important;font-size:9px!important}.print-outbound-receipt .print-invoice-footer{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;gap:10px!important;padding-top:4px!important;font-size:8px!important;line-height:1.15!important}.print-outbound-receipt .print-invoice-footer strong{font-size:8px!important}.print-outbound-receipt .print-footer-icon{width:10px!important;height:10px!important;flex-basis:10px!important;background-size:10px 10px!important}.print-outbound-receipt .print-footer-item{gap:4px!important}}
@media print{.print-outbound-receipt .print-invoice-summary{width:100%!important;margin:3mm 0 0!important}.print-outbound-receipt .print-invoice-totals{display:grid!important;grid-template-columns:70mm 64mm!important;grid-template-rows:auto auto!important;justify-content:space-between!important;column-gap:0!important;width:100%!important}.print-outbound-receipt .print-invoice-totals>div:nth-child(1){grid-column:1;grid-row:1;padding:5px 0 3px!important}.print-outbound-receipt .print-invoice-totals>div:nth-child(2){grid-column:1;grid-row:2;padding:3px 0 5px!important;border-bottom:1px solid #d6dbe3!important}.print-outbound-receipt .print-invoice-totals>.print-invoice-total{grid-column:2;grid-row:1 / span 2;align-items:center!important;align-self:stretch!important;margin:0!important;padding:0!important;border-top:0!important;border-bottom:1px solid #d6dbe3!important}}
@media print{.print-outbound-receipt .print-invoice-totals{border-top:1px solid #d6dbe3!important;border-bottom:1px solid #d6dbe3!important}.print-outbound-receipt .print-invoice-totals>div:nth-child(2),.print-outbound-receipt .print-invoice-totals>.print-invoice-total{border-bottom:0!important}.print-outbound-receipt .print-invoice-footer{grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:8mm!important}.print-outbound-receipt .print-invoice-footer strong{justify-self:start!important}.print-outbound-receipt .print-invoice-footer .print-footer-item:nth-of-type(1){justify-content:center!important;text-align:center!important}.print-outbound-receipt .print-invoice-footer .print-footer-address{justify-content:flex-end!important;text-align:right!important}}
@media print{.print-invoice.print-outbound-receipt .print-signatures{margin-bottom:8mm!important}.print-outbound-receipt .print-invoice-table tbody td:nth-child(4),.print-outbound-receipt .print-invoice-table tbody td:nth-child(5){font-size:11px!important;font-weight:850!important}.print-outbound-receipt .print-invoice-total strong{font-size:18px!important;font-weight:850!important}}
@media print{.print-outbound-receipt .print-invoice-recipient .outbound-partner-name{display:flex!important;align-items:flex-start!important;gap:1px!important;margin:0 0 3px!important}.print-outbound-receipt .print-invoice-recipient .outbound-partner-official{margin:0!important;color:#6b7280!important;font-size:9px!important;font-weight:500!important;line-height:1.2!important;opacity:1!important}.print-outbound-receipt .print-invoice-recipient .outbound-partner-short-name{color:#020617!important;font-size:11px!important;font-weight:700!important;line-height:normal!important;opacity:1!important}}
.product-code-cell,.product-code-cell strong,.product-code-cell input,.product-code-cell select,.product-code-control,.inventory-product-code{font-weight:900!important;color:var(--ink)}.product-code-header{font-weight:850!important}@media print{.product-code-cell,.product-code-cell strong,.product-code-cell input,.product-code-cell select,.product-code-control,.inventory-product-code{font-weight:800!important;color:#111827!important}}
@media screen and (max-width:720px){html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}body:not(.logged-out),body:not(.logged-out) main,body:not(.logged-out) .topbar,body:not(.logged-out) .content{width:100%;max-width:100%;min-width:0}body:not(.logged-out):has(.delivery-card) .content{padding-left:10px;padding-right:10px}body:not(.logged-out):has(.delivery-card) .delivery-tabs,body:not(.logged-out):has(.delivery-card) .delivery-card,body:not(.logged-out):has(.delivery-card) .delivery-history-card{width:100%;max-width:100%;min-width:0}.delivery-summary-grid>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.delivery-summary-grid small,.delivery-summary-grid strong,.delivery-summary-grid em{width:100%;text-align:center}.delivery-route-table td.delivery-route-row-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;max-width:none!important}.delivery-route-table td.delivery-route-row-actions .compact-action-button{width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;min-height:48px!important;margin:0!important;border-radius:14px!important}.delivery-route-table td.delivery-route-row-actions>.compact-action-button+.compact-action-button{margin-left:0!important}}
.permission-role-tabs{grid-template-columns:repeat(8,minmax(108px,1fr))}
.observer-read-only .content input:disabled,.observer-read-only .content select:disabled,.observer-read-only .content textarea:disabled{color:var(--ink);background:#f7f8fa;opacity:1;cursor:default;-webkit-text-fill-color:var(--ink)}
.outbound-request-partner-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
.outbound-request-partner-grid{align-items:start}
.outbound-request-partner-grid>.field:nth-child(-n+2){grid-column:span 6}
.outbound-request-partner-grid>.field:nth-child(3){grid-column:1/-1}
.outbound-request-partner-grid>.field:nth-child(n+4){grid-column:span 2}
.current-receivable-amount{color:var(--danger)!important;-webkit-text-fill-color:var(--danger)!important;font-weight:850;font-variant-numeric:tabular-nums}
.outbound-month-sales-amount{font-weight:850;font-variant-numeric:tabular-nums}
@media(max-width:1000px){.outbound-request-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.outbound-request-partner-grid>.field:nth-child(n){grid-column:auto}.outbound-request-partner-grid>.field:nth-child(3){grid-column:1/-1}}
@media(max-width:720px){
  .outbound-request-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 12px!important}
  .outbound-request-partner-grid>.field{grid-column:auto!important;min-width:0}
  .outbound-request-partner-grid>.field:has(.partner-combobox){grid-column:span 2!important}
  .outbound-request-partner-grid>.field input,
  .outbound-request-partner-grid>.field select{width:100%;min-width:0;text-overflow:ellipsis}
  .request-line-table{display:block!important}
  .request-line-table tbody{display:grid;width:100%;gap:14px}
  .request-line-table tbody tr[data-line]{display:grid;width:100%;border:1px solid var(--line);border-radius:16px;background:#fff}
  .request-line-table tbody tr[data-line]>td{display:grid;align-content:start;gap:7px;width:100%!important;min-width:0;padding:0!important;border:0!important;text-align:left!important}
  .request-line-table tbody td::before{content:attr(data-mobile-label);color:var(--muted);font-size:12px;font-weight:750;line-height:1.35;text-align:left}
  .request-line-table tbody td:nth-child(5){grid-column:1/-1}
  .request-line-table tbody input,
  .request-line-table tbody select{width:100%!important;min-width:0!important;height:48px;padding:10px 12px!important;border-radius:12px!important;font-size:16px!important;text-align:left!important;text-align-last:left!important}
  .request-line-table tbody td:nth-child(2) input,
  .request-line-table tbody td:nth-child(3) input{text-align:right!important}
  .request-line-table .line-amount strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}

/* Work report: use the same roomy, centered date-field treatment as partner transaction history. */
.work-report-head-actions .work-report-period-filter{
  width:min(480px,100%);
  gap:12px;
}
.work-report-period-filter input{
  font-variant-numeric:tabular-nums;
}

.work-report-period-filter span{
  font-weight:700;
}
@media(max-width:720px){
  .work-report-head-actions .work-report-period-filter{width:100%;gap:8px}
}
.request-line-table input.supply-price-overridden,.outbound-edit-table input.supply-price-overridden{border-color:rgba(255,70,78,.38)!important;background:#fff6f6!important;color:var(--danger)!important;font-weight:900}
.request-detail-modal .data-table td.supply-price-overridden,.outbound-detail-modal .data-table td.supply-price-overridden{color:var(--danger)!important;font-weight:900}

/* Cross-platform Korean and Vietnamese font stack. Windows resolves system-ui to Segoe UI. */
:root{--app-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,Tahoma,sans-serif}
body{font-family:var(--app-font);line-height:1.6}
@media print{#printArea{font-family:var(--app-font)!important}}
@media print{
  @page partnerInfo{size:A4 portrait;margin:0}
  #printArea .print-partner-info{page:partnerInfo;box-sizing:border-box;width:210mm;min-height:297mm;margin:0 auto;padding:14mm 14mm 18mm;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#111827;font-size:10pt;line-height:1.4}
  #printArea .print-partner-info-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16mm;padding:0 0 5mm;border-bottom:2px solid #1f2937}
  #printArea .print-partner-info-head small{display:block;margin-bottom:1mm;color:#475569;font-size:8pt;font-weight:700}
  #printArea .print-partner-info-head h1{margin:0;text-align:left;font-size:22pt;letter-spacing:.04em}
  #printArea .print-partner-info-head time{color:#475569;font-size:8pt;white-space:nowrap}
  #printArea .print-partner-info-name{margin:7mm 0 5mm}
  #printArea .print-partner-info-name h2{margin:0;text-align:left;font-size:16pt}
  #printArea .print-partner-info-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm 5mm}
  #printArea .print-partner-info-fields>div{min-width:0;padding:3mm 3.5mm;border:1px solid #cbd5e1;background:#f8fafc}
  #printArea .print-partner-info-fields>div.wide{grid-column:1/-1}
  #printArea .print-partner-info-fields span,#printArea .print-partner-info-fields strong{display:block;overflow-wrap:anywhere}
  #printArea .print-partner-info-fields span{margin-bottom:1mm;color:#475569;font-size:8pt;font-weight:700}
  #printArea .print-partner-info-fields strong{font-size:10pt}
  #printArea .print-partner-info-prices{margin-top:7mm}
  #printArea .print-partner-info-prices h2{margin:0 0 3mm;text-align:left;font-size:13pt}
  #printArea .print-partner-info-prices table{table-layout:fixed}
  #printArea .print-partner-info-prices th,#printArea .print-partner-info-prices td{padding:2.5mm 3mm;border:1px solid #94a3b8;vertical-align:middle}
  #printArea .print-partner-info-prices th{background:#e9edf2;font-size:8pt;text-align:left}
  #printArea .print-partner-info-prices th:last-child,#printArea .print-partner-info-prices td:last-child{text-align:right;font-variant-numeric:tabular-nums}
  #printArea .print-partner-info-prices tr{break-inside:avoid;page-break-inside:avoid}
  #printArea .print-partner-info-prices thead{display:table-header-group}
}
.required-field-label::after{content:" *";color:#ff3b4d;font-weight:900;line-height:1;vertical-align:baseline}
.modal-card .partner-detail-actions.compact-action-grid,.modal-card .partner-register-modal-actions.compact-action-grid{display:grid!important;width:100%;gap:10px}.modal-card .partner-detail-actions.three-actions,.modal-card .partner-register-modal-actions.three-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.modal-card .partner-register-modal-actions.two-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .partner-detail-actions .compact-action-button,.modal-card .partner-register-modal-actions .compact-action-button{display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;max-height:none!important;padding:0 14px!important}.partner-register-modal-actions .labeled-action-button{gap:8px}.partner-register-modal-actions .labeled-action-button span{font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:720px){.modal-card .partner-detail-actions .compact-action-button,.modal-card .partner-register-modal-actions .compact-action-button{height:48px!important}.modal-card .partner-detail-actions.three-actions,.modal-card .partner-register-modal-actions.three-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
.modal-card .expense-detail-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:10px;margin-top:18px}.modal-card .expense-detail-actions.three-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.modal-card .expense-detail-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;max-height:none!important;padding:0 14px!important}.expense-detail-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:640px){.modal-card .expense-detail-actions.compact-action-grid,.modal-card .expense-detail-actions.three-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .expense-detail-actions .labeled-action-button{height:48px!important;padding:0 8px!important}}
.modal-card .expense-edit-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin-top:18px}.modal-card .expense-edit-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;max-height:none!important;padding:0 14px!important}.expense-edit-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:640px){.modal-card .expense-edit-actions.compact-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .expense-edit-actions .labeled-action-button{height:48px!important;padding:0 8px!important}}
.modal-card .delivery-detail-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:10px;margin-top:18px}.modal-card .delivery-detail-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;max-height:none!important;padding:0 14px!important}.delivery-detail-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:640px){.modal-card .delivery-detail-actions.compact-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .delivery-detail-actions .labeled-action-button{height:48px!important;padding:0 6px!important}.delivery-detail-actions .labeled-action-button{gap:5px}.delivery-detail-actions .labeled-action-button span{font-size:13px}}
.modal-card .expense-approval-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:10px}.modal-card .expense-approval-actions.actions-2{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .expense-approval-actions.actions-3{grid-template-columns:repeat(3,minmax(0,1fr))}.modal-card .expense-approval-actions.actions-5{grid-template-columns:repeat(5,minmax(0,1fr))}.modal-card .expense-approval-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;max-height:none!important;padding:0 12px!important}.expense-approval-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:640px){.modal-card .expense-approval-actions.compact-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .expense-approval-actions .labeled-action-button{height:48px!important;padding:0 8px!important}}
@media(min-width:721px){.daily-status-card{overflow:visible!important;isolation:auto!important}.daily-status-card::before{display:none!important}.daily-status-sticky-panel{position:static!important;top:auto!important;z-index:auto!important;box-shadow:none!important}.daily-status-table-sticky{position:sticky!important;top:258px!important;z-index:60!important;background:#fff!important;opacity:1!important;isolation:isolate!important;border-bottom:1px solid #d8e1d7!important;box-shadow:0 10px 16px rgba(23,49,45,.08)!important}.daily-status-table-sticky::before{content:""!important;display:block!important;position:absolute!important;left:0!important;right:0!important;top:-14px!important;height:14px!important;background:#fff!important;z-index:-1!important;opacity:1!important}.daily-status-table-sticky .daily-status-grid,.daily-status-table-sticky .daily-status-grid>span{background:#fff!important;opacity:1!important}.daily-status-table-sticky .daily-status-total-row,.daily-status-table-sticky .daily-status-total-row>span{background:#f7f9f5!important;opacity:1!important}}
.partner-detail-actions .labeled-action-button,.partner-register-modal-actions .labeled-action-button{gap:8px}.partner-detail-actions .labeled-action-button span,.partner-register-modal-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}
.modal-card .receipt-total-summary,.modal-card .history-totals>div,.modal-card .delivery-summary-grid>div{background:transparent!important;box-shadow:none!important}
.expense-approval-rule{display:block;margin-top:6px;color:var(--muted);font-size:13px;font-weight:600;line-height:1.5}
.request-line-table th.request-line-number-head,.request-line-table td.request-line-number-cell{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center!important}.request-line-number-head{padding:8px!important}.request-line-number-cell{color:var(--muted);font-size:14px;font-weight:400;font-variant-numeric:tabular-nums}.request-line-table th:nth-child(2),.request-line-table td:nth-child(2){width:24%;text-align:center!important}.request-line-table th:nth-child(3),.request-line-table td:nth-child(3){width:15%;text-align:right!important}.request-line-table th:nth-child(4),.request-line-table td:nth-child(4){width:14%;text-align:right!important}.request-line-table th:nth-child(5),.request-line-table td:nth-child(5){width:22%;text-align:right!important}.request-line-table th:nth-child(6),.request-line-table td:nth-child(6){width:25%;text-align:center!important}
@media(max-width:720px){.request-line-table .request-line-number-cell{grid-column:1!important;grid-row:1/-1;align-items:flex-start;justify-content:center;padding-top:7px!important;}.request-line-table .request-line-number-cell::before{display:none}.request-line-table tbody tr[data-line]>td:not(.request-line-number-cell){grid-column:auto!important}.request-line-table tbody tr[data-line]>td:nth-child(2){grid-column:2/-1!important}}
@media(max-width:720px){.request-line-table thead{display:block!important;margin-bottom:10px}.request-line-table thead tr{display:flex!important}.request-line-table thead th:not(.request-line-number-head){display:none!important}.request-line-table thead .request-line-number-head{display:block!important;width:52px!important;min-width:52px!important;max-width:52px!important;padding:4px!important;background:transparent!important}}
.approval-count{white-space:nowrap;color:inherit;font-weight:inherit}
.approval-count strong{color:#ff3b4f;font-weight:800}
.dashboard-three .stat:has(>.dashboard-goal-progress){display:grid!important;align-content:center;grid-template-columns:1fr;row-gap:11px!important}.dashboard-three .stat:has(>.dashboard-goal-progress)>small,.dashboard-three .stat:has(>.dashboard-goal-progress)>strong,.dashboard-three .stat:has(>.dashboard-goal-progress)>.dashboard-goal-progress,.dashboard-three .stat:has(>.dashboard-goal-progress)>em{margin:0!important}.dashboard-three .stat:has(>.dashboard-goal-progress)>strong{display:block!important;line-height:1.15!important}.dashboard-three .stat:has(>.dashboard-goal-progress)>.dashboard-goal-progress{width:100%;justify-content:flex-start!important;min-width:0!important}.dashboard-three .stat:has(>.dashboard-goal-progress) .dashboard-goal-track{width:min(210px,calc(100% - 66px));min-width:96px!important}
.dashboard-goal-progress.is-green .dashboard-goal-rate{color:#00a86b!important}.dashboard-goal-progress.is-green .dashboard-goal-track>span{background:#00b976!important}.dashboard-goal-progress.is-red .dashboard-goal-rate{color:#ff3b4f!important}.dashboard-goal-progress.is-red .dashboard-goal-track>span{background:#ff3b4f!important}.dashboard-goal-progress.is-blue .dashboard-goal-rate{color:#3182f6!important}.dashboard-goal-progress.is-blue .dashboard-goal-track>span{background:#3182f6!important}.dashboard-goal-progress.is-neutral .dashboard-goal-rate{color:var(--muted)!important}.dashboard-goal-progress.is-neutral .dashboard-goal-track>span{background:var(--muted)!important}
.dashboard-month-forecast{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:3px;padding-top:10px;border-top:1px solid var(--line)}.dashboard-month-forecast span{display:grid;gap:3px;min-width:0}.dashboard-month-forecast small{color:var(--muted)!important;font-size:11px!important;font-weight:700!important;line-height:1.25!important}.dashboard-month-forecast b{color:var(--ink);font-size:14px;font-weight:850;line-height:1.25;white-space:nowrap;font-variant-numeric:tabular-nums}.dashboard-month-forecast b.is-shortfall{color:#ff3b4f}@media(max-width:520px){.dashboard-month-forecast{grid-template-columns:1fr;gap:8px}.dashboard-month-forecast b{font-size:13px}}
.dashboard-three .stat{display:grid!important;align-content:center!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(22px,auto) minmax(39px,auto) minmax(20px,auto) minmax(20px,auto)!important;row-gap:11px!important}.dashboard-three .stat>small,.dashboard-three .stat>strong,.dashboard-three .stat>.dashboard-goal-progress,.dashboard-three .stat>em,.dashboard-three .stat>.dashboard-receivable-kpi{margin:0!important}.dashboard-three .stat>strong{display:block!important;line-height:1.15!important}.dashboard-receivable-kpi{flex-wrap:wrap;min-height:20px;font-size:14px;font-weight:750;line-height:1.35;font-variant-numeric:tabular-nums}.dashboard-three .stat:nth-child(3)>strong{align-self:start}@media(max-width:520px){.dashboard-three .stat{grid-template-rows:auto!important}.dashboard-receivable-kpi{font-size:13px}}
.dashboard-three .stat>.dashboard-today-orders{margin:0!important}.dashboard-today-orders{display:flex;align-items:baseline;gap:18px;font-variant-numeric:tabular-nums}.dashboard-order-count{display:flex;align-items:baseline;gap:8px}.dashboard-today-orders small{color:var(--muted);font-size:13px;font-weight:700}.dashboard-today-orders strong{color:var(--ink);font-size:18px;font-weight:850;line-height:1.2}@media(max-width:520px){.dashboard-today-orders{gap:13px}.dashboard-order-count{gap:6px}.dashboard-today-orders small{font-size:12px}.dashboard-today-orders strong{font-size:16px}}
.dashboard-three .dashboard-sales-benchmarks{display:grid;align-self:start;gap:6px;margin:15px 0 0!important}.dashboard-sales-benchmark{display:grid!important;width:100%!important;margin:0!important;color:var(--muted)!important;font-style:normal!important}.dashboard-sales-benchmark>span{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:baseline;column-gap:16px;width:100%!important;min-width:0}.dashboard-sales-benchmark small{min-width:0!important;color:var(--muted)!important;font-size:12px!important;font-weight:700!important;line-height:1.35!important}.dashboard-sales-benchmark b{justify-self:end!important;color:var(--ink)!important;font-size:14px!important;font-weight:800!important;line-height:1.35!important;text-align:right!important;white-space:nowrap}.dashboard-sales-benchmark b.is-below-target{color:#ff3b4f!important}.dashboard-sales-benchmark b.is-above-target{color:#246fe5!important}.dashboard-sales-benchmarks>.yesterday,.dashboard-sales-benchmarks>.dashboard-month-average{margin:0!important}
.dashboard-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px;align-items:stretch}.dashboard-secondary-grid>.dashboard-top-receivables{width:100%;height:720px;min-width:0;margin-top:0;overflow:auto}.dashboard-region-card{margin-top:18px;min-width:0}.dashboard-region-head{grid-template-columns:minmax(0,1fr) auto}.dashboard-region-total{margin-left:auto}.region-sales-share-number{display:block;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;text-align:right}.dashboard-top-receivables .card-head small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.dashboard-top-receivables-table th,.dashboard-top-receivables-table td{padding:11px 9px}.dashboard-top-receivables-table th:first-child,.dashboard-top-receivables-table td:first-child{color:var(--muted);font-variant-numeric:tabular-nums}@media(max-width:1100px){.dashboard-secondary-grid{grid-template-columns:1fr}.dashboard-secondary-grid>.dashboard-top-receivables{height:auto;max-height:720px}}@media(max-width:720px){.dashboard-region-table{min-width:650px}.dashboard-region-card{overflow:auto}}
.dashboard-compact-table th,.dashboard-compact-table td{padding:12px 9px;vertical-align:middle}.dashboard-compact-table th:first-child,.dashboard-compact-table td:first-child{width:50px;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}.dashboard-party-cell{text-align:left!important;white-space:normal!important;min-width:0}.dashboard-party-cell>strong{display:block;overflow-wrap:anywhere;line-height:1.35}@media(max-width:720px){.dashboard-compact-table th,.dashboard-compact-table td{padding:10px 6px}.dashboard-compact-table th:first-child,.dashboard-compact-table td:first-child{width:38px}}
.recent-activity-card{padding:28px 32px;min-height:560px}
.recent-activity-head{align-items:flex-start;margin-bottom:18px}
.recent-activity-head h2{margin:0 0 6px}
.recent-activity-head p{margin:0;color:var(--muted);font-size:14px}
.recent-activity-toolbar{display:flex;gap:12px;margin-bottom:16px}
.recent-activity-toolbar input[type="search"]{flex:1;min-width:0;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.recent-activity-date-controls{display:flex;align-items:center;gap:7px}.recent-activity-date-field{display:block;position:relative;flex:0 0 174px;min-width:174px}.recent-activity-date-controls input{width:100%;min-height:44px;padding:0 40px 0 12px!important;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:center;font-weight:800}.recent-activity-date-controls .localized-date-button{right:10px!important;bottom:10px!important}.recent-activity-date-nav{display:grid!important;place-items:center;width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;font-size:28px!important;line-height:1!important}
.recent-activity-table th:nth-child(1){width:6%}
.recent-activity-table th:nth-child(2){width:13%}
.recent-activity-table th:nth-child(3){width:15%}
.recent-activity-table th:nth-child(4){width:20%}
.recent-activity-table th:nth-child(5){width:31%}
.recent-activity-table th:nth-child(6){width:15%}
.recent-activity-table th{padding:10px 8px;font-size:14px;line-height:1.2}
.recent-activity-table tbody td{padding:6px 8px;vertical-align:middle;font-size:14px;line-height:1.3}
.recent-activity-table tbody tr{height:44px}
.recent-activity-table tbody strong,.recent-activity-table tbody time{font-size:inherit;line-height:inherit}
.recent-activity-table time{color:var(--muted);white-space:nowrap}
.recent-activity-number{color:var(--muted);font-weight:800;font-variant-numeric:tabular-nums}
.activity-user{display:inline-flex;align-items:center;min-height:17px;padding:1px 5px;border-radius:999px;background:#eef5ff;color:var(--primary);font-size:inherit;font-weight:700;line-height:1}
.recent-activity-table .empty-state{text-align:center;color:var(--muted);padding:48px 12px}
@media(max-width:760px){.recent-activity-card{padding:20px 16px}.recent-activity-toolbar{align-items:stretch;flex-direction:column}.recent-activity-date-controls{width:100%}.recent-activity-date-field{flex:1;min-width:0}.recent-activity-date-controls input{width:100%}.recent-activity-table-wrap{overflow-x:auto}.recent-activity-table{min-width:1100px}}
.inbound-line-entry-table{table-layout:fixed}
.inbound-line-entry-table th.inbound-line-number-head,.inbound-line-entry-table td.inbound-line-number-cell{width:64px!important;min-width:64px!important;max-width:64px!important;text-align:center!important}
.inbound-line-entry-table th:nth-child(2),.inbound-line-entry-table td:nth-child(2){width:42%}
.inbound-line-entry-table th:nth-child(3),.inbound-line-entry-table td:nth-child(3){width:22%}
.inbound-line-entry-table th:nth-child(4),.inbound-line-entry-table td:nth-child(4){width:30%}
.inbound-line-entry-table th:nth-child(5),.inbound-line-entry-table td:nth-child(5){width:56px;text-align:center}
@media(max-width:720px){
  .inbound-line-entry-table{display:block!important}
  .inbound-line-entry-table thead{display:block!important;margin-bottom:10px}
  .inbound-line-entry-table thead tr{display:flex!important}
  .inbound-line-entry-table thead th:not(.inbound-line-number-head){display:none!important}
  .inbound-line-entry-table thead .inbound-line-number-head{display:block!important;width:52px!important;min-width:52px!important;max-width:52px!important;padding:4px!important;background:transparent!important}
  .inbound-line-entry-table tbody{display:grid;width:100%;gap:14px}
  .inbound-line-entry-table tbody tr[data-line]{display:grid;width:100%;border:1px solid var(--line);border-radius:16px;background:#fff}
  .inbound-line-entry-table tbody tr[data-line]>td{display:grid;align-content:start;gap:7px;width:100%!important;min-width:0;padding:0!important;border:0!important;text-align:left!important}
  .inbound-line-entry-table .inbound-line-number-cell{grid-column:1!important;grid-row:1/-1;align-items:flex-start;justify-content:center;padding-top:7px!important;}
  .inbound-line-entry-table .inbound-line-number-cell::before{display:none}
  .inbound-line-entry-table tbody tr[data-line]>td:nth-child(2),.inbound-line-entry-table tbody tr[data-line]>td:nth-child(4){grid-column:2/-1!important}
  .inbound-line-entry-table tbody input,.inbound-line-entry-table tbody select{width:100%!important;min-width:0!important;height:48px;padding:10px 12px!important;border-radius:12px!important;font-size:16px!important}
}
.line-entry-with-delete .line-delete-head,.line-entry-with-delete .line-delete-cell{width:58px!important;min-width:58px!important;max-width:58px!important;padding-left:7px!important;padding-right:7px!important;text-align:center!important;vertical-align:middle!important}.line-entry-with-delete .line-delete-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;padding:0!important;border:1px solid #ffd8dd!important;border-radius:12px!important;background:#fff1f3!important;color:#ff3b4f!important;font-family:Arial,sans-serif!important;font-size:25px!important;font-weight:400!important;line-height:1!important;cursor:pointer!important;transition:background-color .15s ease,border-color .15s ease,transform .15s ease}.line-entry-with-delete .line-delete-button:hover{background:#ffe4e8!important;border-color:#ffb7c0!important;transform:translateY(-1px)}.line-entry-with-delete .line-delete-button:focus-visible{outline:3px solid rgba(255,59,79,.18)!important;outline-offset:2px!important}
@media(max-width:720px){.request-line-table tbody tr[data-line]>td:nth-child(6){grid-column:2!important}.line-entry-with-delete .line-delete-cell::before{display:none!important}.line-entry-with-delete .line-delete-button{width:48px!important;height:48px!important}}
.outbound-tabs.outbound-workflow-tabs{width:100%;min-width:0;display:grid;grid-template-columns:repeat(var(--outbound-tab-count,3),minmax(0,1fr));gap:12px;padding:8px 0 16px;margin:-4px 0 14px}
.outbound-workflow-tabs .outbound-tab,.inbound-tabs .inbound-tab{min-width:0;min-height:56px;border:1px solid var(--blue);border-radius:14px;display:flex;align-items:center;justify-content:center;padding:12px 18px;background:#fff;color:var(--blue);font-size:16px;font-weight:800;box-shadow:none;transition:transform .15s ease,border-color .15s ease,background-color .15s ease}
.outbound-workflow-tabs .outbound-tab:hover{transform:translateY(-1px)}
.outbound-workflow-tabs .outbound-tab.active-tab,.inbound-tabs .inbound-tab.active-tab{border-color:var(--blue);background:var(--blue);color:#fff}
@media(max-width:720px){.outbound-tabs.outbound-workflow-tabs{grid-template-columns:repeat(var(--outbound-tab-count,3),minmax(112px,1fr));overflow-x:auto;padding-bottom:10px}.outbound-workflow-tabs .outbound-tab,.inbound-tabs .inbound-tab{min-height:50px;padding:10px;font-size:13px}}
.dashboard-three .stat{position:relative}
.dashboard-cloud-status{display:flex;align-items:center;min-height:42px;margin:0 0 12px;padding:10px 14px;border:1px solid #dfe7f2;border-radius:12px;background:#f7faff;color:#52647a;font-size:13px;font-weight:750;line-height:1.45}.dashboard-cloud-status.is-offline{border-color:#eadfca;background:#fffaf0;color:#806a43}@media(max-width:520px){.dashboard-cloud-status{font-size:12px}}
.request-approval-date-notice{min-width:0;white-space:normal;overflow-wrap:anywhere}
.queued-outbound-card{margin:0 0 18px;border-color:#ead9a7;background:#fffdf6;box-shadow:0 10px 24px rgba(112,91,31,.08)}.queued-outbound-card.is-legacy-only{margin:18px 0 0}.queued-outbound-card .card-head{margin-bottom:14px}.queued-outbound-card .card-head small{display:block;margin-top:4px;color:#705b1f;font-size:12px}.queued-outbound-list{display:grid;gap:9px}.queued-outbound-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:14px;align-items:center;padding:13px 14px;border:1px solid #eadfbd;border-radius:11px;background:#fff}.queued-outbound-info{display:grid;min-width:0}.queued-outbound-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queued-outbound-info small{margin-top:3px;color:var(--muted)}.queued-outbound-status{padding:5px 9px;border-radius:999px;background:#fff3c8;color:#705b1f;font-size:11px;font-weight:850;white-space:nowrap}.queued-outbound-status.is-failed{background:#fff0ed;color:var(--danger)}.queued-outbound-actions{display:flex;gap:7px}.queued-outbound-legacy{display:grid;gap:4px;margin-top:12px;padding:12px 14px;border:1px solid #efc7bd;border-radius:11px;background:#fff5f2;color:#7c3e32;font-size:12px}.queued-outbound-legacy span{line-height:1.5}@media(max-width:720px){.queued-outbound-card{padding:16px}.queued-outbound-row{grid-template-columns:1fr}.queued-outbound-status{justify-self:start}.queued-outbound-actions{display:grid;grid-template-columns:1fr 1fr}.queued-outbound-actions .secondary{width:100%}}
.dashboard-three .stat.dashboard-receivable-card>strong{color:#e53935!important;align-self:start!important}
.dashboard-three .stat.dashboard-today-card>strong,.dashboard-three .stat.dashboard-month-card>strong{color:var(--ink)!important;align-self:auto!important}
.dashboard-period-change{position:absolute;top:28px;right:28px;display:grid;justify-items:end;gap:3px;max-width:150px;text-align:right;line-height:1.2}
.dashboard-period-change small{color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap}
.dashboard-period-change b{font-size:15px;font-weight:800;white-space:nowrap}
.dashboard-period-change.is-up b{color:var(--primary)}
.dashboard-period-change.is-down b{color:#e53935}
.dashboard-period-change.is-neutral b{color:var(--muted)}
.dashboard-three .stat.has-dashboard-period-change>small:first-child{padding-right:140px}
@media(max-width:720px){.dashboard-period-change{top:22px;right:22px}.dashboard-period-change small{font-size:10px}.dashboard-period-change b{font-size:14px}.dashboard-three .stat.has-dashboard-period-change>small:first-child{padding-right:125px}}
/* Dashboard section titles and paired comparison tables */
.dashboard-main-grid .card-head h2,
.dashboard-secondary-grid .card-head h2,
.dashboard-region-card .card-head h2{margin:0!important;color:var(--ink)!important;font-size:17px!important;font-weight:850!important;line-height:1.25!important}
.dashboard-region-card .region-active-count{color:var(--muted);font-size:.88em;font-weight:750;white-space:nowrap}
.dashboard-secondary-grid .card-head{min-height:47px;margin-bottom:18px;align-items:flex-start}
.dashboard-secondary-grid .card-head small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}

.dashboard-main-grid>.dashboard-top-receivables{min-width:0;overflow:auto}.dashboard-main-grid .dashboard-top-receivables .card-head{min-height:0;margin-bottom:18px;align-items:flex-start}.dashboard-top-receivables-basis{display:inline!important;margin:0!important;color:var(--muted)!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;white-space:nowrap}
.dashboard-receivable-change{font-weight:750}.dashboard-receivable-change.is-increase{color:#e53935}.dashboard-receivable-change.is-decrease{color:#246fe5}

/* Delivery log split layout and daily accordion */
.delivery-log-page{display:grid;gap:24px}
.delivery-history-card{padding:28px 30px}
.delivery-point-input{width:150px!important;max-width:150px}
.delivery-route-actions,.delivery-confirm-wrap{display:flex;gap:8px;align-items:center}
.delivery-route-actions>button{white-space:nowrap}.delivery-route-photo-button.has-photo{position:relative;color:#087f5b!important}.delivery-route-photo-button.has-photo:after{content:"";position:absolute;right:4px;top:4px;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#16a34a}.delivery-route-row-actions .compact-action-button.labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:7px;width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;padding:0 10px!important}.delivery-route-row-actions .labeled-action-button span{display:inline!important;font-size:13px;font-weight:800;white-space:nowrap}.delivery-route-photo-card{width:min(680px,100%)}.delivery-route-photo-preview{display:grid;place-items:center;min-height:260px;max-height:60vh;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#f3f6f1;color:var(--muted);font-weight:750}.delivery-route-photo-preview img{display:block;width:100%;height:100%;max-height:60vh;object-fit:contain}.modal-card .delivery-route-photo-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin-top:16px}.delivery-route-photo-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:7px;width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;padding:0 8px!important}.delivery-route-photo-actions .labeled-action-button span{display:inline!important;font-size:13px;font-weight:800}.delivery-detail-route-metrics.has-photo{grid-template-columns:repeat(4,minmax(0,1fr))}.delivery-detail-photo-button{min-height:32px;margin-top:3px;padding:0 9px;font-size:11px}@media(max-width:620px){.delivery-route-photo-card{padding:16px}.delivery-route-photo-preview{min-height:220px}.modal-card .delivery-route-photo-actions.compact-action-grid{grid-template-columns:1fr}.delivery-detail-route-metrics.has-photo{grid-template-columns:repeat(2,minmax(0,1fr))}}
.delivery-confirm-field{grid-template-columns:minmax(92px,1fr) 96px}.delivery-confirm-time-field{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;align-items:center;min-width:0}.delivery-confirm-field .delivery-route-photo-button.labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:6px;width:96px!important;min-width:96px!important;max-width:none!important}.delivery-confirm-field .delivery-route-photo-button.labeled-action-button span{display:inline!important;font-size:12px;font-weight:800;white-space:nowrap}
.delivery-confirm-control{min-width:0}.delivery-confirm-control-label{display:none}.delivery-confirm-field .delivery-route-photo-button{display:grid!important;place-items:center;width:96px!important;min-width:96px!important;max-width:none!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#fbfcfa!important;color:var(--green)!important}
.delivery-gps-status{display:block;margin-top:5px;font-size:11px;color:#8a96a8}
.delivery-gps-status.is-saved{color:#16a34a;font-weight:700}

.delivery-history-month-nav{display:flex;align-items:center;gap:8px}.delivery-history-month-nav .secondary{width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;font-size:23px!important;line-height:1}.delivery-history-month-label{display:grid;place-items:center;min-width:128px;height:34px;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:420px){.delivery-history-month-nav{gap:5px}.delivery-history-month-label{min-width:116px;font-size:12px}}
.delivery-day-card{border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;background:#fff}
.delivery-day-summary{width:100%;border:0;background:#fff;display:grid;grid-template-columns:1.25fr repeat(5,1fr) 32px;align-items:center;gap:14px;padding:18px 20px;text-align:left;cursor:pointer;color:inherit}
.delivery-day-summary>span:not(.delivery-day-date):not(.delivery-day-chevron){display:grid;gap:5px;border-left:1px solid #e5e7eb;padding-left:16px}
.delivery-day-summary small{color:#8a96a8}
.delivery-day-summary strong{font-size:18px}
.delivery-day-date{display:grid;gap:3px}
.delivery-day-date strong{font-size:20px}
.delivery-day-chevron{font-size:24px;transition:transform .2s}
.delivery-day-card.is-open .delivery-day-chevron{transform:rotate(180deg)}
.delivery-day-detail[hidden]{display:none}
.delivery-day-detail{padding:0 20px 20px;border-top:1px solid #e5e7eb}
.delivery-day-routes{padding-top:18px}
.delivery-day-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
@media(max-width:900px){
  .delivery-day-summary{grid-template-columns:1fr 1fr 32px}
  .delivery-day-summary>span:nth-child(n+4):not(.delivery-day-chevron){display:none}
}

/* Outbound request product rows: keep every field legible on phone screens. */
@media(max-width:720px){
  .request-line-table tbody tr[data-line]{
    position:relative;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .request-line-table .request-line-number-cell{
    position:absolute!important;
    top:15px;
    left:16px;
    display:block!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:0!important;
    font-size:15px!important;
    line-height:42px;
  }
  .request-line-table tbody tr[data-line]>td:not(.request-line-number-cell):not(.line-delete-cell){grid-column:auto!important}
  .request-line-table tbody tr[data-line]>td:nth-child(2),
  .request-line-table tbody tr[data-line]>td:nth-child(6){grid-column:1/-1!important}
  .request-line-table tbody tr[data-line]>td:nth-child(3){grid-column:1/3!important}
  .request-line-table tbody tr[data-line]>td:nth-child(4){grid-column:3/5!important}
  .request-line-table tbody tr[data-line]>td:nth-child(5){grid-column:5/-1!important}
  .request-line-table tbody tr[data-line]>.line-delete-cell{
    position:absolute!important;
    top:10px;
    right:10px;
    display:flex!important;
    grid-column:auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    padding:0!important;
  }
.request-line-table .line-delete-button{width:42px!important;height:42px!important}
}

/* Partner registration overview */
.partner-register-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.partner-register-overview>.card{margin:0}
.partner-new-manager-stats{min-height:120px;padding:20px 24px}
.partner-new-manager-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.partner-new-manager-head h2{margin:0;font-size:17px}
.partner-new-manager-head small{color:var(--muted);font-weight:700;white-space:nowrap}
.partner-new-manager-table-wrap{width:100%;overflow-x:auto}
.partner-new-manager-table{width:100%;border-collapse:collapse;table-layout:fixed}
.partner-new-manager-table th,.partner-new-manager-table td{padding:9px 10px;border-top:1px solid var(--line);text-align:center;white-space:nowrap}
.partner-new-manager-table thead th{color:var(--muted);font-size:12px;font-weight:800}
.partner-new-manager-table th:first-child{width:136px;text-align:left}
.partner-new-manager-table tbody th{color:var(--ink);font-weight:800}
.partner-new-manager-table td{font-weight:800;font-variant-numeric:tabular-nums}
.partner-register-launch{min-height:120px;display:grid;place-items:center;background:#2f80ed!important;border-color:#2f80ed!important}
.partner-register-launch button{width:100%;height:100%;min-height:80px;border:0;background:transparent!important;color:#fff!important;font-weight:800}
.partner-register-launch button:hover{background:rgba(255,255,255,.1)}
@media(max-width:760px){.partner-register-overview{grid-template-columns:1fr}.partner-new-manager-stats{padding:18px}.partner-new-manager-table{min-width:520px}.partner-register-launch{min-height:84px}.partner-register-launch button{min-height:62px}}
.partner-pending-count{color:var(--muted);font-size:.9em;font-weight:700;white-space:nowrap}.partner-pending-count b{color:#ff4652;font-weight:900}
.partner-pending-card .partner-approve-button.compact-action-button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:120px!important;min-width:120px!important;max-width:none!important;height:50px!important;min-height:50px!important;padding:0 18px!important;border-radius:14px!important;font-weight:850!important;white-space:nowrap}
.partner-pending-card .partner-approve-button svg{width:18px;height:18px}
.partner-pending-card .partner-approve-button span{display:inline!important;font-size:15px;font-weight:850;line-height:1;white-space:nowrap}
@media(max-width:760px){.partner-pending-card .partner-approve-button.compact-action-button{width:104px!important;min-width:104px!important;height:46px!important;min-height:46px!important;padding:0 12px!important}.partner-pending-card .partner-approve-button span{font-size:14px}}

/* Inventory summaries are intentionally data-only, matching the dashboard cards. */
.inventory-summary-card{display:block;min-height:132px;padding:22px 24px;overflow:visible}
.inventory-summary-card:after{content:none}
@media(max-width:620px){.inventory-summary-card{min-height:112px;padding:16px}}

.partner-month-statuses{display:grid;justify-items:start;gap:4px;margin-top:8px}.partner-month-status{border:0;background:transparent;padding:0;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.partner-month-status:hover,.partner-month-status:focus-visible{text-decoration:underline;outline:0}.partner-month-status.is-selected{border-radius:5px;box-shadow:0 0 0 2px rgba(47,128,237,.18)}.partner-month-status.partner-month-active{color:#2f80ed}.partner-month-status.partner-month-inactive{color:var(--danger)}.partner-month-status.partner-month-inactive.is-selected{box-shadow:0 0 0 2px rgba(181,74,61,.18)}.partner-import-details{background:#f5f6f7!important;color:var(--muted)!important}.partner-import-details[open] summary{border-bottom-color:var(--line)!important}

/* Keep inventory summary cards visually consistent with the detail card below. */
.inventory-summary-card{background:var(--paper)!important}
.tab-row>.standard-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px}.standard-tab-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.standard-tab-icon svg{display:block;width:19px;height:19px}@media(max-width:720px){.tab-row>.standard-tab{gap:7px}.standard-tab-icon svg{width:17px;height:17px}}
@media(max-width:720px){.dashboard-three .stat{align-items:stretch!important;text-align:left!important}.dashboard-three .stat>small,.dashboard-three .stat>strong,.dashboard-three .stat>em,.dashboard-three .stat .yesterday,.dashboard-three .stat .dashboard-receivable-kpi{text-align:left!important}.dashboard-three .stat>.dashboard-goal-progress{justify-content:flex-start!important}.dashboard-three .stat .dashboard-goal-rate{text-align:right!important}}
.data-table .currency-column{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}.data-table th.currency-column .table-sort-button{justify-content:flex-end}
.outbound-daily-sales-dashboard{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:20px 24px;border:1px solid #d8e8ff;border-radius:16px;background:linear-gradient(135deg,#eef5ff 0%,#f8fbff 100%);overflow:hidden}.outbound-daily-sales-dashboard:after{content:"";position:absolute;right:-36px;bottom:-58px;width:150px;height:150px;border-radius:50%;background:rgba(49,130,246,.09)}.outbound-daily-sales-dashboard>div{position:relative;z-index:1;display:grid;gap:6px}.outbound-daily-sales-dashboard small{color:#55729a;font-size:12px;font-weight:800}.outbound-daily-sales-dashboard strong{color:#2f80ed;font-size:30px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.outbound-daily-sales-dashboard strong em{font-size:13px;font-style:normal;color:var(--muted);font-weight:800}.outbound-daily-sales-dashboard>span{position:relative;z-index:1;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}@media(max-width:620px){.outbound-daily-sales-dashboard{align-items:flex-start;flex-direction:column;padding:17px 18px}.outbound-daily-sales-dashboard strong{font-size:25px}}
.outbound-list-controls{display:flex;align-items:end;gap:12px}.outbound-manager-filter{display:grid;gap:4px;min-width:150px;color:var(--muted);font-size:11px;font-weight:800}.outbound-manager-filter select{height:42px;width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 10px;color:var(--ink);font:inherit;font-size:14px;font-weight:700}@media(max-width:720px){.outbound-list-controls{width:100%;align-items:stretch;flex-direction:column;gap:8px}.outbound-manager-filter{width:100%}.outbound-date-controls{width:100%}}
.partner-new-manager-table td.partner-new-manager-zero{color:var(--danger)}
.recent-outbound-table .outbound-row-number-column{width:54px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.delivery-tab-emoji{display:inline-block;margin-right:6px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:.95em;line-height:1;vertical-align:-.04em}
.partner-info-heading{display:flex;align-items:center;gap:16px;min-width:0;flex:1}.partner-info-heading h2{white-space:nowrap}.partner-info-filter-count{color:var(--muted);font-size:.72em;font-weight:750}.partner-info-filter-controls{display:flex;align-items:center;gap:8px;margin-left:28px}.partner-info-search{width:min(180px,19vw);min-width:150px}.partner-info-search input{width:100%;min-height:42px;border:1px solid var(--line);border-radius:12px;background:#fbfcfa;padding:9px 12px;color:var(--ink)}.partner-filter-reset.is-filtered{color:var(--danger)!important;border-color:#f3d1cf!important;background:#fff7f6!important}.partner-import-details{margin:-4px 0 16px;border-radius:12px;background:#fff7dd;color:#705b1f}.partner-import-details summary{padding:12px 14px;cursor:pointer;font-size:12px;font-weight:800;user-select:none}.partner-import-details[open] summary{border-bottom:1px solid rgba(112,91,31,.16)}.partner-import-details .partner-import-guide{margin:0;padding:0 14px 14px;background:transparent;color:inherit}.partner-info-compact{--partner-info-table-head-top:176px;position:relative;isolation:isolate;overflow:visible!important;background:#fff!important}.partner-info-compact .partner-compact-table{border-collapse:separate!important;border-spacing:0;background:#fff}.partner-info-compact .partner-compact-table thead,.partner-info-compact .partner-compact-table thead tr{background:#fff!important}.partner-info-compact .partner-compact-table thead th{position:sticky;top:var(--partner-info-table-head-top)!important;z-index:14!important;background:#fff!important;background-clip:padding-box;box-shadow:0 -14px 0 14px #fff,0 1px 0 var(--line),0 7px 0 #fff!important}.partner-info-compact .partner-compact-table tbody td{background:#fff}.partner-info-compact .partner-compact-table tbody tr:hover td{background:#fbfdf8}@media(max-width:900px){.partner-info-heading{align-items:stretch;flex-direction:column;gap:10px}.partner-info-filter-controls{margin-left:0}.partner-info-search{width:100%}}@media(max-width:720px){.partner-info-compact{overflow:auto!important}.partner-info-compact .partner-compact-table thead th{position:static!important;box-shadow:0 1px 0 var(--line)!important}.partner-import-details{margin-top:0}}
.history-monthly-partner-card{overflow:visible!important}.history-monthly-partner-card>.card-head{align-items:flex-end}.history-monthly-grand-total{display:grid;justify-items:end;gap:4px}.history-monthly-grand-total small{color:var(--muted);font-size:11px;font-weight:800}.history-monthly-grand-total strong{font-size:22px;font-variant-numeric:tabular-nums;white-space:nowrap}.history-monthly-filters{margin-bottom:16px}.history-monthly-filters select{min-width:180px}.history-monthly-empty{margin:0 0 12px;padding:12px 14px;border-radius:10px;background:#f7f9fb;color:var(--muted);font-size:13px}.history-monthly-table-wrap{max-height:calc(100dvh - 330px);overflow:auto;border:1px solid var(--line);border-radius:12px}.history-monthly-partner-table{width:max(100%,2050px);border-collapse:separate!important;border-spacing:0}.history-monthly-partner-table th,.history-monthly-partner-table td{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}.history-monthly-partner-table thead th{position:sticky!important;top:0!important;z-index:5!important;background:#f7f9fb!important;box-shadow:0 1px 0 var(--line)!important}.history-monthly-partner-table .history-monthly-number-column{position:sticky;left:0;z-index:3;width:54px;min-width:54px;text-align:center!important;background:#fff}.history-monthly-partner-table .history-monthly-partner-code-column{position:sticky;left:54px;z-index:3;width:110px;min-width:110px;text-align:left!important;background:#fff}.history-monthly-partner-table .history-monthly-partner-name-column{position:sticky;left:164px;z-index:3;text-align:left!important;background:#fff}.history-monthly-partner-table thead .history-monthly-number-column,.history-monthly-partner-table thead .history-monthly-partner-code-column,.history-monthly-partner-table thead .history-monthly-partner-name-column{z-index:7!important;background:#f7f9fb!important}.history-monthly-partner-table .history-monthly-month-column,.history-monthly-partner-table .history-monthly-sales-column{min-width:124px}.history-monthly-partner-table .history-monthly-total-column{min-width:170px;background:#f4f8ff;font-weight:850}.history-monthly-partner-table tfoot th,.history-monthly-partner-table tfoot td{border-top:2px solid #d7e2d8;background:#eef6e8;font-weight:850}.history-monthly-partner-table tfoot .history-monthly-number-column{background:#eef6e8}.history-monthly-partner-table tbody tr:hover td,.history-monthly-partner-table tbody tr:hover th{background:#fbfdf8}.history-monthly-partner-table tbody tr:hover .history-monthly-total-column{background:#edf4ff}@media(max-width:720px){.history-monthly-partner-card{padding:16px!important;overflow:hidden!important}.history-monthly-partner-card>.card-head{align-items:flex-start}.history-monthly-grand-total{justify-items:start}.history-monthly-filters{display:grid;grid-template-columns:1fr 1fr}.history-monthly-filters .field{min-width:0}.history-monthly-filters select{width:100%;min-width:0}.history-monthly-table-wrap{max-height:calc(100dvh - 390px)}.history-monthly-partner-table{width:max(100%,1700px)}.history-monthly-partner-table .history-monthly-number-column{min-width:42px;width:42px}.history-monthly-partner-table .history-monthly-partner-code-column{left:42px;min-width:72px;width:72px;max-width:72px;overflow:hidden;text-overflow:ellipsis}.history-monthly-partner-table .history-monthly-partner-name-column{left:114px;}.history-monthly-partner-table .history-monthly-month-column,.history-monthly-partner-table .history-monthly-sales-column{min-width:104px}}
.history-monthly-partner-table .history-monthly-partner-name-column{width:184px;min-width:184px;max-width:184px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35}
.history-monthly-header-total{display:block;margin-top:3px;color:var(--ink);font-size:12px;font-weight:850}
.inbound-summary-card .card-head{margin-bottom:12px}.inbound-summary-card .card-head h2,.inbound-entry-card-head h2{font-size:20px!important;font-weight:800}.inbound-summary-card .summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:32px!important;row-gap:14px!important;align-items:center}.inbound-summary-card .summary>.inbound-weight-total{grid-column:1!important;grid-row:1!important}.inbound-summary-card .summary>.inbound-transport-field{grid-column:2!important;grid-row:1!important}.inbound-summary-card .summary>.inbound-note-field{grid-column:1!important;grid-row:2!important}.inbound-summary-card .summary>.inbound-actions{grid-column:2!important;grid-row:2!important;margin:0;width:100%}.inbound-summary-card .inbound-weight-total,.inbound-summary-card .inbound-transport-field{min-height:42px;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center;gap:8px;color:var(--tds-grey-600,var(--muted))}.inbound-summary-card .inbound-weight-total>span:first-child,.inbound-summary-card .inbound-transport-field label{min-width:0;white-space:normal;font-size:15px!important;font-weight:500!important;line-height:1.5;color:inherit!important}.inbound-summary-card .inbound-weight-total strong,.inbound-summary-card .inbound-transport-field input,.inbound-summary-card .weight-unit{font-size:15px!important;font-weight:700!important;line-height:1.5;color:inherit!important}.inbound-summary-card .inbound-weight-total strong{grid-column:2!important}.inbound-summary-card .inbound-weight-total .weight-unit{grid-column:3!important;margin-left:0}.inbound-summary-card .inbound-transport-field input{grid-column:2!important;width:128px!important;max-width:128px!important}.inbound-summary-card .inbound-transport-field .weight-unit{grid-column:3!important;margin-left:0}.inbound-summary-card .inbound-summary-note{width:100%;min-width:0;resize:vertical}@media(max-width:900px){.inbound-summary-card .summary{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}.inbound-summary-card .summary>.inbound-weight-total,.inbound-summary-card .summary>.inbound-transport-field,.inbound-summary-card .summary>.inbound-note-field,.inbound-summary-card .summary>.inbound-actions{grid-column:1!important;grid-row:auto!important}}@media(max-width:650px){.inbound-summary-card .card-head h2,.inbound-entry-card-head h2{font-size:18px!important}}
.modal-card .inbound-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin-top:18px}.modal-card .inbound-detail-actions button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;padding:0 14px!important}.inbound-detail-actions button{font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:640px){.modal-card .inbound-detail-actions button{height:48px!important;padding:0 8px!important}}
@media(max-width:720px){.sidebar.open{z-index:100!important}}

/* Active controls need an explicit application blue; legacy palettes do not define --blue. */

/* Keep receivables search and the visible-total summary in the title row. */
.inventory-report-filter .inventory-filter-reset.is-active{color:var(--danger)!important;border-color:rgba(255,70,78,.28)!important;background:#fff7f6!important}
.inventory-table .inventory-row-number{font-weight:400}
.receivables-card{--receivables-head-top:250px}
.receivables-sticky-panel .card-head.receivables-inline-head{display:grid;grid-template-columns:auto minmax(0,1fr) max-content;gap:12px;align-items:center;margin-bottom:0}
.receivables-sticky-panel .receivables-inline-head h2{margin:0;white-space:nowrap}

.receivables-sticky-panel .receivable-total.receivable-inline-total{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:10px;min-height:42px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.receivables-sticky-panel .receivable-total.receivable-inline-total small{font-size:12px;white-space:nowrap}
.receivables-sticky-panel .receivable-total.receivable-inline-total strong{min-width:0;font-size:20px;white-space:nowrap}
.receivables-sticky-panel .receivables-inline-head .receivable-head-actions{justify-self:end}
@media(max-width:860px){.receivables-sticky-panel .card-head.receivables-inline-head{grid-template-columns:auto minmax(0,1fr) auto}.receivables-sticky-panel .receivable-total.receivable-inline-total{justify-content:center!important}}
@media(max-width:720px){.receivables-sticky-panel .card-head.receivables-inline-head{grid-template-columns:auto 1fr auto;gap:10px}.receivables-sticky-panel .receivables-inline-head h2{align-self:center}.receivables-sticky-panel .receivables-inline-head .receivable-head-actions{align-self:center}.receivables-sticky-panel .receivable-total.receivable-inline-total{grid-column:1/-1;width:100%;justify-content:space-between!important}.receivables-sticky-panel .receivable-total.receivable-inline-total small{white-space:normal}}

/* Payment register: separate the entry and date-based voucher list cards. */
.payment-register-card{margin-bottom:18px}
.payment-partner-picker{position:relative}
.payment-partner-picker>input[type="search"]{width:100%}
.payment-partner-results{position:absolute;z-index:35;top:calc(100% + 6px);left:0;right:0;max-height:300px;overflow:auto;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 16px 38px rgba(31,48,65,.16)}
.payment-partner-results button,.partner-combo-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:9px 11px;border:0;border-radius:8px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.payment-partner-results button:hover,.payment-partner-results button:focus,.partner-combo-menu button:hover,.partner-combo-menu button:focus{background:#eef5ff;outline:none}
.payment-partner-results button strong,.partner-combo-menu button strong{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.payment-partner-results button small,.partner-combo-menu button small{flex:0 1 auto;min-width:0;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
/* Keep official names and short names readable in history/payment search results. */
.payment-partner-results button{align-items:flex-start}
.payment-partner-results button>strong{white-space:normal;overflow:visible;overflow-wrap:anywhere}
.payment-partner-results .outbound-partner-name{display:inline}
.payment-partner-results button .outbound-partner-short-name{display:block;max-width:none;margin-top:3px;overflow:visible;white-space:normal;overflow-wrap:anywhere}
.payment-partner-results button>small{flex-shrink:0;max-width:28%;white-space:normal;overflow-wrap:anywhere}
.payment-partner-message{padding:11px;color:var(--muted);font-size:13px}
.payment-voucher-card{overflow:hidden}
.payment-voucher-head{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:14px}
.payment-voucher-date-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;width:100%}
.payment-voucher-date-picker{display:grid;margin:0;gap:6px;font-size:13px;font-weight:700;color:var(--muted)}
.payment-voucher-date-picker input{width:180px;min-width:0;min-height:40px;text-align:center;font-weight:800}
.payment-voucher-date-picker .localized-date-input{padding-left:10px!important;padding-right:38px!important;cursor:pointer}
.payment-voucher-table-wrap{overflow:auto}
.payment-voucher-table{min-width:1040px;table-layout:fixed}
.payment-voucher-table .payment-row-number-column{width:58px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.payment-voucher-table .payment-voucher-receipt-column{width:150px}
.payment-voucher-table .payment-voucher-date-column{width:120px}
.payment-voucher-table .payment-voucher-party-column{width:190px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.45}
.payment-voucher-table .payment-voucher-manager-column{width:130px}
.payment-voucher-table .payment-voucher-inputter-column{width:105px}
.payment-voucher-table .payment-voucher-amount-column{width:165px}
.payment-voucher-table .payment-voucher-method-column{width:190px;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.payment-voucher-detail-link{white-space:normal;overflow-wrap:anywhere;text-align:left}
.payment-voucher-detail-modal{width:min(760px,100%)}
.payment-voucher-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.payment-voucher-detail-party{grid-column:1/-1}
.modal-card .payment-voucher-detail-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:10px;margin-top:20px}
.modal-card .payment-voucher-detail-actions.one-action{grid-template-columns:1fr}
.modal-card .payment-voucher-detail-actions .compact-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;max-height:none!important;padding:0 14px!important}
.payment-voucher-detail-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}
.payment-daily-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:18px}
.payment-daily-summary-card{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.8fr);gap:0 18px;min-width:0;overflow:hidden;background:linear-gradient(155deg,#fff 0%,#f7faff 100%)}
.payment-daily-summary-card>.payment-daily-summary-head{grid-column:1/-1}
.payment-daily-summary-head{align-items:flex-start;margin-bottom:16px}.payment-daily-summary-head>div>small{display:block;margin-bottom:5px;color:var(--muted);font-size:11px;font-weight:750}.payment-daily-summary-head h2{font-size:18px;line-height:1.3}.payment-daily-summary-head .pill{flex:0 0 auto}
.payment-daily-total{position:relative;display:grid;gap:7px;padding:20px;border:1px solid #d9e8ff;border-radius:16px;background:linear-gradient(135deg,#eef5ff 0%,#f8fbff 100%);overflow:hidden}.payment-daily-total:after{content:"";position:absolute;right:-34px;bottom:-48px;width:130px;height:130px;border-radius:50%;background:rgba(49,130,246,.09)}.payment-daily-total small{position:relative;z-index:1;color:#55729a;font-size:12px;font-weight:800}.payment-daily-total strong{position:relative;z-index:1;color:var(--blue);font-size:28px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.payment-daily-total strong em,.payment-daily-method-card strong em{font-size:12px;font-style:normal;color:var(--muted);font-weight:800}.payment-daily-total>span{position:relative;z-index:1;color:var(--muted);font-size:11px;font-weight:750}
.payment-daily-method-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:0}.payment-daily-method-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:#fff}.payment-daily-method-card>div{display:grid;gap:3px;min-width:0}.payment-daily-method-card small{overflow:hidden;color:var(--ink);font-size:13px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.payment-daily-method-card span{color:var(--muted);font-size:10px;font-weight:700}.payment-daily-method-card strong{font-size:16px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.payment-daily-method-card>i{grid-column:1/-1;display:block;height:5px;border-radius:999px;background:#edf1f5;overflow:hidden}.payment-daily-method-card>i>b{display:block;height:100%;min-width:0;border-radius:inherit;background:var(--blue)}.payment-daily-method-card.accent-1>i>b{background:#16a085}.payment-daily-method-card.accent-2>i>b{background:#f2a33a}.payment-daily-method-card.accent-3>i>b{background:#8b6fd6}
@media(max-width:900px){.payment-daily-summary-card{grid-template-columns:1fr}.payment-daily-summary-card>.payment-daily-summary-head{grid-column:auto}.payment-daily-method-list{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}}
@media(max-width:720px){.payment-voucher-head{align-items:flex-start;gap:12px;flex-direction:column}.payment-voucher-date-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.payment-voucher-date-controls>button:last-child{grid-column:1/-1}.payment-voucher-date-picker{flex:1;min-width:0}.payment-voucher-date-picker input{width:100%;min-width:0}.payment-voucher-card{padding:18px 16px}.payment-daily-bottom-grid{gap:14px}.payment-daily-summary-card{padding:18px 16px}.payment-daily-summary-head{gap:10px}.payment-daily-summary-head h2{font-size:16px}.payment-daily-total{padding:17px}.payment-daily-total strong{font-size:24px}.payment-daily-method-list{grid-template-columns:1fr}.payment-daily-method-card{padding:13px}.payment-voucher-detail-grid{grid-template-columns:1fr}.payment-voucher-detail-party{grid-column:auto}.modal-card .payment-voucher-detail-actions.compact-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-card .payment-voucher-detail-actions .compact-action-button{height:48px!important;padding:0 8px!important}.payment-voucher-detail-actions button:last-child:nth-child(odd){grid-column:1/-1}}

/* Annual leave application sheet */
.leave-request-card{padding:26px 30px}.leave-request-card .card-head{margin-bottom:18px}.leave-request-card .card-head small{color:var(--muted);font-size:13px;font-weight:650}.leave-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px}.leave-form-grid .field{margin:0}.leave-form-grid input,.leave-form-grid textarea{width:100%;background:#fff}.leave-days-field output{display:flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#f6f8f7;color:var(--ink);font-weight:850;font-variant-numeric:tabular-nums}.leave-reason-field{grid-column:span 2}.leave-form-actions{margin-top:20px;max-width:520px;margin-left:auto}.leave-pending-card,.leave-completed-card{overflow:hidden}.leave-pending-card{margin-top:20px}.leave-completed-card{margin-top:20px}.leave-pending-count{color:var(--danger);font-size:.8em;font-weight:900}.leave-table-wrap{overflow:auto}.leave-table{min-width:900px}.leave-table th,.leave-table td{vertical-align:middle}.leave-table td small{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:650}.leave-table .leave-days{text-align:center;font-variant-numeric:tabular-nums;font-weight:800}.leave-table .leave-reason{white-space:normal;min-width:220px}.leave-actions{display:flex;justify-content:flex-end;gap:7px}.leave-action{min-height:34px!important;padding:6px 11px!important;font-size:12px!important;white-space:nowrap}.leave-completed-table td:last-child{white-space:nowrap}.hr-tabs button[data-hr-tab="leave"]{white-space:nowrap}@media(max-width:760px){.leave-request-card{padding:20px 16px}.leave-form-grid{grid-template-columns:1fr 1fr;gap:12px}.leave-reason-field{grid-column:span 2}.leave-form-actions{max-width:none}.leave-table{min-width:820px}}
.leave-form-grid input{min-height:44px}.leave-days-field input[readonly]{background:#f6f8f7;color:var(--ink);font-weight:850;font-variant-numeric:tabular-nums}.leave-month-nav{display:flex;align-items:center;gap:8px}.leave-month-nav strong{min-width:118px;text-align:center;font-size:13px}.leave-month-nav .secondary{width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;font-size:23px!important;line-height:1}.leave-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}.leave-identity-grid input[readonly]{background:#f6f8f7;color:var(--ink);font-weight:750}.leave-tab-pending-count{margin-left:4px;color:var(--muted);font-weight:800}.leave-tab-pending-count b{color:var(--danger)}@media(max-width:760px){.leave-month-nav{gap:5px}.leave-month-nav strong{min-width:98px;font-size:12px}.leave-identity-grid{grid-template-columns:1fr}}
.leave-table .leave-number-column{white-space:nowrap;min-width:122px}.leave-number-link{display:inline;width:auto!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--blue)!important;font:inherit;font-weight:850;text-decoration:underline!important;text-underline-offset:3px;cursor:pointer}.leave-number-link:hover{color:var(--blue)!important}.leave-number-link:focus-visible{outline:2px solid rgba(47,128,237,.45);outline-offset:3px}.leave-detail-modal{width:min(760px,100%)}.leave-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}.leave-detail-meta>div{display:grid;gap:3px;padding:10px 0;border-bottom:1px solid var(--line)}.leave-detail-meta small{color:var(--muted);font-size:12px;font-weight:750}.leave-detail-meta strong{font-size:14px;line-height:1.5;white-space:pre-wrap}.leave-detail-actions{margin-top:22px}.leave-detail-actions button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:640px){.leave-detail-modal{padding:20px 16px}.leave-detail-meta{grid-template-columns:1fr}.leave-detail-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.leave-detail-actions button{padding:0 6px!important;font-size:12px!important}}
.leave-form-grid select{width:100%;min-height:44px;background:#fff}.leave-reason-field textarea{min-height:44px!important;height:44px!important;resize:none}
.modal-card .leave-detail-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:10px;margin-top:22px}.modal-card .leave-detail-actions button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-width:0!important;max-width:none!important;height:52px!important;padding:0 12px!important;font-size:14px!important;font-weight:800!important;white-space:nowrap}.modal-card .leave-detail-actions button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:640px){.modal-card .leave-detail-actions{gap:7px}.modal-card .leave-detail-actions button{height:48px!important;padding:0 6px!important;font-size:12px!important}}
.travel-basic-grid,.travel-extra-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}.travel-basic-grid .field,.travel-extra-grid .field,.travel-cost-grid .field{margin:0}.travel-wide-field{grid-column:span 2}.travel-basic-grid textarea,.travel-extra-grid textarea{width:100%;min-height:72px;resize:vertical}.travel-form-section{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.travel-section-label{display:block;margin-bottom:10px;font-weight:800}.travel-schedule-row{display:grid;grid-template-columns:46px minmax(135px,.8fr) minmax(100px,.6fr) minmax(160px,1fr) minmax(240px,1.8fr) 48px;gap:10px;align-items:end;margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfc}.travel-schedule-row label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:750}.travel-schedule-row input{width:100%;min-width:0}.travel-cost-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.travel-total-field output{display:flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#f6f8f7;color:var(--ink);font-weight:850;font-variant-numeric:tabular-nums}.travel-extra-grid{margin-top:18px}.travel-table{min-width:1040px}.travel-cost{white-space:nowrap;text-align:right;font-weight:800;font-variant-numeric:tabular-nums}.hr-tabs button[data-hr-tab="travel"]{white-space:nowrap}@media(max-width:900px){.travel-basic-grid,.travel-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.travel-schedule-row{grid-template-columns:40px minmax(130px,1fr) minmax(100px,.7fr) 48px}.travel-schedule-row label:nth-of-type(3),.travel-schedule-row label:nth-of-type(4){grid-column:span 2}.travel-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.travel-total-field{grid-column:span 2}}@media(max-width:640px){.hr-tabs>.secondary{font-size:11px!important;padding:9px 4px!important}.travel-basic-grid,.travel-extra-grid{grid-template-columns:1fr}.travel-wide-field{grid-column:auto}.travel-schedule-row{grid-template-columns:32px 1fr 42px;padding:10px 8px}.travel-schedule-row label{grid-column:2}.travel-schedule-row label:nth-of-type(3),.travel-schedule-row label:nth-of-type(4){grid-column:2}.travel-schedule-row .leave-schedule-number{grid-column:1;grid-row:1}.travel-schedule-row .leave-entry-remove{grid-column:3;grid-row:1}.travel-cost-grid{grid-template-columns:1fr 1fr}.travel-total-field{grid-column:1/-1}.travel-detail-modal{max-height:calc(100vh - 24px);overflow:auto}}
.device-storage-card{margin-top:18px}.device-storage-card p{margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.65}.device-storage-card #deviceStorageStatus.is-warning{color:var(--danger);font-weight:800}.device-storage-modal{width:min(620px,100%)}.device-storage-modal>p{color:var(--ink);line-height:1.7}.device-storage-guard{margin-top:16px;padding:14px 16px;border-radius:12px;background:#f4f7fa;color:var(--muted);font-size:13px;font-weight:750;line-height:1.6}.device-storage-guard.is-warning{background:#fff4f2;color:#b83b32}.device-storage-guard details,.queued-outbound-legacy details{margin-top:8px}.device-storage-guard ul,.queued-outbound-legacy ul{margin:8px 0 0;padding-left:20px;font-weight:600}.device-storage-guard li,.queued-outbound-legacy li{margin:4px 0;overflow-wrap:anywhere}.modal-card .device-storage-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin-top:22px}.modal-card .device-storage-actions button{width:100%!important;max-width:none!important;min-width:0!important;height:50px!important}@media(max-width:640px){.device-storage-card .card-head{align-items:stretch;flex-direction:column}.device-storage-card .card-head button{width:100%}.device-storage-modal{padding:20px 16px}}

.leave-schedule-field{grid-column:span 3}
.leave-request-fields-grid{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,9fr)}
.leave-request-fields-grid .leave-schedule-field{grid-column:1/-1}
.leave-request-fields-grid .leave-reason-field{grid-column:auto}
.leave-schedule-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:10px}
.leave-schedule-heading>div{display:grid;gap:3px}
.leave-schedule-heading small{color:var(--muted);font-size:11px;font-weight:650}
.leave-schedule-heading button{width:auto!important;min-height:38px!important;padding:7px 13px!important;white-space:nowrap}
#leaveScheduleRows{display:grid;gap:8px}
.leave-schedule-row{display:grid;grid-template-columns:40px minmax(180px,1.25fr) minmax(180px,1fr) 44px;align-items:end;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.leave-schedule-number{display:grid;place-items:center;min-height:44px;border-radius:9px;background:#eef4fd;color:var(--blue);font-size:13px;font-weight:900}
.leave-schedule-row label{display:grid;gap:4px;margin:0}
.leave-schedule-row label>span{color:var(--muted);font-size:10px;font-weight:800}
.leave-schedule-row input,.leave-schedule-row select{min-height:44px!important;background:#fff!important}
.leave-entry-remove{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;font-size:22px!important}
.leave-entry-remove:disabled{opacity:.35;cursor:not-allowed}
.leave-schedule-summary{display:grid;gap:5px;min-width:190px}
.leave-schedule-summary>span{display:flex;align-items:center;justify-content:space-between;gap:12px}
.leave-schedule-summary strong{font-size:12px;white-space:nowrap}
.leave-schedule-summary small{margin:0!important;padding:2px 7px;border-radius:999px;background:#eef4fd;color:var(--blue)!important;font-size:10px!important;white-space:nowrap}
.leave-detail-meta .leave-detail-schedule{grid-column:span 2}
@media(max-width:900px){
  .leave-request-fields-grid{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
  .leave-request-fields-grid .leave-schedule-field,.leave-request-fields-grid .leave-reason-field{grid-column:1/-1}
}
@media(max-width:760px){
  .leave-schedule-field{grid-column:span 2}
  .leave-schedule-heading{align-items:stretch;flex-direction:column}
  .leave-schedule-heading button{width:100%!important}
  .leave-schedule-row{grid-template-columns:32px minmax(0,1fr) minmax(0,1fr) 40px;gap:7px;padding:8px}
  .leave-schedule-number{min-height:42px}
  .leave-entry-remove{width:40px!important;min-width:40px!important;height:42px!important}
}
@media(max-width:520px){
  .leave-schedule-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px}
  .leave-schedule-number{display:none}
  .leave-schedule-row label>span{font-size:9px}
  .leave-entry-remove{width:38px!important;min-width:38px!important}
  .leave-detail-meta .leave-detail-schedule{grid-column:auto}
}

/* Delivery route state controls: visible buttons while preserving stored checkbox values. */
.delivery-state-button{display:block;min-width:76px;cursor:pointer}.delivery-state-button input[type="checkbox"]{position:absolute;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;accent-color:initial}.delivery-state-button span{display:grid;min-height:36px;padding:0 8px;place-items:center;border:1px solid #d9e2dc;border-radius:10px;background:#f7f9f7;color:#72807b;font-size:12px;font-weight:800;line-height:1.2;text-align:center;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.delivery-state-button:hover span{border-color:#9bbd83;background:#eff5ec;color:#3f6636}.delivery-state-button input:checked+span{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 6px 14px rgba(49,130,246,.2)}.delivery-state-button.delivery-state-return input:checked+span{border-color:var(--green);background:var(--green);box-shadow:0 6px 14px rgba(16,75,66,.2)}.delivery-state-button input:focus-visible+span{outline:3px solid rgba(49,130,246,.24);outline-offset:2px}

/* The former-month top-customer dashboard is intentionally omitted. */
.dashboard-secondary-grid>.dashboard-top-receivables,.dashboard-secondary-grid>.dashboard-action-card{grid-column:1/-1;height:auto;min-height:0}
.dashboard-secondary-grid>.dashboard-attendance-card,.dashboard-secondary-grid>.dashboard-employee-card{min-width:0;height:auto;overflow:auto}
.dashboard-attendance-card .data-table{width:100%;min-width:460px}
.dashboard-attendance-card .data-table td:not(:first-child){white-space:nowrap}

@media(max-width:720px){.partner-summary-total{grid-column:auto}}

/* Keep the receivable change and collection target easy to scan. */
.dashboard-receivable-kpi{display:grid;align-items:start;gap:6px;color:var(--muted)}.dashboard-receivable-kpi>span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:16px;width:100%;min-width:0}.dashboard-receivable-kpi small{min-width:0;color:var(--muted);font-size:12px;font-weight:700}.dashboard-receivable-kpi b{justify-self:end;color:var(--ink);font-size:14px;font-weight:800;text-align:right;white-space:nowrap}.dashboard-receivable-kpi b.is-increase{color:var(--danger)}.dashboard-receivable-kpi b.is-decrease{color:#246fe5}.dashboard-receivable-kpi b.is-neutral{color:var(--muted)}
.dashboard-receivable-details{width:min(100%,500px)}
@media(max-width:720px){.dashboard-three .stat .dashboard-receivable-kpi>span{grid-template-columns:minmax(0,1fr) auto!important;justify-content:normal!important;text-align:left!important}.dashboard-three .stat .dashboard-receivable-kpi small{width:auto!important;text-align:left!important}.dashboard-three .stat .dashboard-receivable-kpi b{width:auto!important;text-align:right!important}}
.dashboard-collection-summary{display:grid;gap:6px}.dashboard-today-collection{display:flex;align-items:baseline;gap:8px;padding-top:10px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}.dashboard-today-collection small,.dashboard-collection-breakdown small{color:var(--muted);font-size:12px;font-weight:750}.dashboard-today-collection b{color:var(--ink);font-size:16px;font-weight:850;line-height:1.25}.dashboard-today-collection.is-below-target small,.dashboard-today-collection.is-below-target b{color:#ff3b4f}.dashboard-collection-breakdown{display:flex;flex-wrap:wrap;gap:3px 12px;font-variant-numeric:tabular-nums}.dashboard-collection-breakdown small{line-height:1.4}

/* Alert when the month close is within 11 Vietnam business days. */
.month-deadline[hidden]{display:none!important}.month-deadline{display:grid;flex:0 0 176px;align-content:center;justify-items:center;min-height:76px;padding:8px 12px;border:2px solid #e53935;border-radius:18px;background:transparent;color:#4e5968;text-align:center;line-height:1.12;font-variant-numeric:tabular-nums}.month-deadline-title,.month-deadline-caption{font-size:11px;font-weight:400;letter-spacing:-.02em}.month-deadline strong{color:#e53935;font-size:30px;font-weight:900;letter-spacing:.01em;line-height:1.05}@media(max-width:1024px){.month-deadline{flex-basis:160px;min-height:64px;padding:6px 8px;border-radius:15px}.month-deadline strong{font-size:25px}}@media(max-width:720px){.month-deadline{position:relative;display:grid;flex-basis:auto;width:58px;min-width:58px;min-height:38px;height:38px;padding:3px 6px;border-radius:12px}.month-deadline-title,.month-deadline-caption{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.month-deadline strong{font-size:14px;line-height:1}}

@media(min-width:721px) and (max-width:1400px){body:not(.logged-out) .topbar{padding-left:24px;padding-right:24px;gap:16px}.top-heading{min-width:0}body:not(.logged-out) .top-actions{gap:6px;flex-shrink:0}.month-deadline{flex-basis:144px;min-height:68px}body:not(.logged-out) .logout-button{padding:0 12px}}
@media(min-width:721px) and (max-width:1024px){body:not(.logged-out) main{margin-left:0;width:100%;max-width:100vw}body:not(.logged-out) .topbar{left:0;right:0;width:100%;max-width:100vw}}
@media(min-width:1025px) and (max-width:1400px){body:not(.logged-out) .topbar{padding-right:40px}}

/* Partner lifecycle: trade availability is separate from recent outbound activity. */
.partner-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.partner-status-table{min-width:1080px;table-layout:fixed}.partner-status-table th:nth-child(1){width:92px;text-align:center}.partner-status-table th:nth-child(2){width:105px}.partner-status-table th:nth-child(3){width:calc(25% - 80px)}.partner-status-table th:nth-child(4){width:calc(25% - 123px)}.partner-status-table th:nth-child(5){width:118px}.partner-status-table th:nth-child(6){width:82px}.partner-status-table th:nth-child(7){width:100px}.partner-status-table th:nth-child(8){width:116px}.partner-status-table th:nth-child(9){width:100px;text-align:right}.partner-status-table th:nth-child(10){width:calc(50% - 510px)}.partner-status-table td{vertical-align:middle}.partner-status-table tr.is-dormant td{color:#68736f}.partner-status-table tr.is-suspended td{color:#79504a}.partner-status-table tr.is-dormant-candidate td{background:#fffaf0}.partner-status-table tr.is-dormant-candidate:hover td{background:#fff5df}.partner-month-activity-cell input{width:17px;height:17px;margin:0 10px 0 0;vertical-align:middle;accent-color:var(--green)}.partner-status-reason{white-space:normal;overflow-wrap:anywhere}.partner-status-badge{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:850;line-height:1.2;white-space:nowrap}.partner-status-badge.is-active{border-color:#cce6cf;background:#edf8ee;color:#277337}.partner-status-badge.is-dormant{border-color:#d7deda;background:#f2f5f3;color:#596660}.partner-status-badge.is-suspended{border-color:#f1cbc5;background:#fff0ed;color:#a73e31}.partner-dormant-candidate{background:#fff4d8}.partner-dormant-candidate:hover,.partner-dormant-candidate:focus-visible{background:#ffebba}
.partner-status-field select,.partner-status-reason-field select{font-weight:800}.partner-status-note-field textarea{width:100%;resize:vertical}.partner-status-note-field.is-required label{color:var(--danger)}.partner-status-history{margin:16px 0;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fbfcfa}.partner-status-history summary{padding:13px 0;cursor:pointer;font-size:13px;font-weight:850}.partner-status-history>div{display:grid;gap:8px;padding:0 0 14px}.partner-status-history p{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(220px,1fr) auto;gap:12px;align-items:center;margin:0;padding:9px 0;border-top:1px solid var(--line);font-size:12px}.partner-status-history p span{color:var(--muted)}.partner-status-history p small{text-align:right;white-space:nowrap}
@media(max-width:1100px){.partner-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.partner-summary-total{grid-column:auto}.partner-info-compact{overflow-x:auto!important}}
@media(max-width:720px){.partner-summary-grid{grid-template-columns:1fr}.partner-status-history p{grid-template-columns:1fr;gap:4px}.partner-status-history p small{text-align:left}.partner-info-filter-controls{flex-wrap:wrap}.partner-info-filter-controls .secondary{flex:1 1 auto}}

.inventory-table .inventory-row-number-col{width:6%}.inventory-table .inventory-category-col{width:17%}.inventory-table .inventory-code-col{width:18%}.inventory-table .inventory-target-col{width:16%}.inventory-table .inventory-number-col{width:14.33%}.inventory-table th:nth-child(-n+3),.inventory-table td:nth-child(-n+3){text-align:left}.inventory-table th:nth-child(n+4),.inventory-table td:nth-child(n+4){text-align:right}.inventory-table th:nth-child(n+4) .table-sort-button{justify-content:flex-end}.inventory-row-number{color:var(--muted);font-weight:800;font-variant-numeric:tabular-nums}

/* Phone entry cards: product first, then the two remaining controls and delete. */
@media(max-width:720px){
  .inbound-line-entry-table tbody tr[data-line]{position:relative;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;}
  .inbound-line-entry-table .inbound-line-number-cell{position:absolute!important;top:15px;left:16px;display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;font-size:15px!important;line-height:42px}
  .inbound-line-entry-table tbody tr[data-line]>td:nth-child(2){grid-column:1/-1!important}
  .inbound-line-entry-table tbody tr[data-line]>td:nth-child(3){grid-column:1/4!important}
  .inbound-line-entry-table tbody tr[data-line]>td:nth-child(4){grid-column:4/-1!important}
  .inbound-line-entry-table tbody tr[data-line]>.line-delete-cell{position:absolute!important;top:10px;right:10px;display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;min-width:42px!important;max-width:42px!important;padding:0!important}
  .inbound-line-entry-table .line-delete-button{width:42px!important;height:42px!important}
}

/* Inbound sheets: browse documents by inbound month. */
.inbound-sheet-card{overflow:hidden}.inbound-sheet-head{align-items:center;margin-bottom:14px}.inbound-sheet-month-controls{display:flex;align-items:center;gap:8px}.inbound-sheet-month-nav{display:grid!important;place-items:center;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;font-size:28px!important;line-height:1!important}.inbound-sheet-month-picker{position:relative;display:block;width:180px;min-width:180px;height:40px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.inbound-sheet-month-picker>span{display:grid;place-items:center;width:100%;height:100%;padding:0 38px 0 12px;color:var(--ink);font-size:14px;font-weight:800;white-space:nowrap}.inbound-sheet-month-picker:after{content:"";position:absolute;z-index:1;right:13px;top:12px;width:14px;height:13px;border:2px solid currentColor;border-radius:3px;color:var(--ink);box-shadow:inset 0 3px 0 currentColor;pointer-events:none}.inbound-sheet-month-picker input{position:absolute;z-index:2;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.inbound-sheet-month-picker:focus-within{border-color:#2f80ed;box-shadow:0 0 0 3px rgba(47,128,237,.13)}.inbound-sheet-table-wrap{overflow:auto}.inbound-sheet-table{min-width:1040px}.inbound-sheet-table tbody td:nth-child(2) .receipt-link,.inbound-sheet-table tbody td:nth-child(3),.inbound-sheet-table .inbound-inventory-date time{white-space:nowrap}.inbound-sheet-table tbody tr.is-pending>td:first-child{box-shadow:inset 4px 0 0 #d7a237}.inbound-sheet-table tbody tr.is-pending{background:#fffbef}.inbound-sheet-table [data-receive-inbound]{display:block;width:auto;min-height:32px;margin-top:6px;padding:4px 10px;font-size:12px;white-space:nowrap}.inbound-sheet-table thead th:is(:nth-child(2),:nth-child(3),:nth-child(5)){white-space:nowrap}.inbound-sheet-table .inbound-inventory-date{min-width:0;max-width:150px}.inbound-sheet-table thead th.number-cell{white-space:normal}.inbound-sheet-table .inbound-inventory-date small{white-space:normal}.inbound-sheet-number{width:54px;text-align:center!important;white-space:nowrap}.inbound-sheet-actions{display:flex;justify-content:flex-end;gap:7px;white-space:nowrap}.inbound-sheet-table .number-cell{text-align:right;white-space:nowrap}.inbound-sheet-table .empty-cell{padding:34px;text-align:center;color:var(--muted)}.inbound-sheet-total-row th{border-top:2px solid var(--line);background:#f7f9f7;color:var(--ink);font-weight:850}.inbound-sheet-total-row th:first-child{text-align:left}.inbound-sheet-total-row .number-cell{font-variant-numeric:tabular-nums}.inbound-inventory-date{display:grid;justify-items:start;gap:5px;min-width:190px}.inbound-inventory-date time{font-variant-numeric:tabular-nums;white-space:nowrap}.inbound-inventory-badge{display:inline-flex;align-items:center;font-weight:850;white-space:nowrap}.inbound-inventory-badge.is-planned{background:#fff4df;color:#8a5a00}.inbound-inventory-badge.is-applied{background:#eaf8f0;color:#0f6f45}.inbound-inventory-date small{color:var(--muted);font-size:10px;line-height:1.35;white-space:nowrap}.inbound-inventory-notice[hidden]{display:none!important}.inbound-inventory-notice{margin:3px 0 0;padding:8px 10px;border-radius:8px;background:#fff4df;color:#8a5a00;font-size:11px;font-weight:700;line-height:1.45}#inboundDateHelp{grid-column:1/-1;margin:0}@media(max-width:720px){.inbound-sheet-card{padding:18px 16px}.inbound-sheet-head{align-items:flex-start;gap:12px;flex-direction:column}.inbound-sheet-month-controls{width:100%;justify-content:flex-end}.inbound-sheet-month-picker{flex:1;width:auto;min-width:0}}

/* Dashboard 30-day sales, collection, and running receivable chart. */
.work-report-page{display:grid;gap:18px}.work-report-head{display:flex;justify-content:space-between;}.work-report-head h2{margin:0;font-size:27px}.work-report-head p{margin:6px 0 0;color:var(--muted);font-size:14px}.work-report-refreshing{display:inline-flex;margin-top:8px}.work-report-head .primary{width:auto;min-width:174px}.work-report-tabs{margin:0;padding:0;background:transparent}.work-report-tabs>.secondary{flex:0 1 180px}.work-report-filters{display:grid;}.work-report-filters input,.work-report-filters select{width:100%;height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;color:var(--ink)}.work-report-period{display:flex;align-items:center;gap:6px}.work-report-period input{min-width:0}.work-report-period span{color:var(--muted)}.work-report-filters .secondary{height:42px;width:auto;white-space:nowrap}.work-report-list{overflow:auto}.work-report-list table{min-width:860px}.work-report-row{cursor:pointer}.work-report-row:hover td{background:#f7faff}.work-report-title{display:block!important;width:100%!important;min-width:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;color:var(--blue)!important;font:inherit!important;font-weight:800!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}.work-report-status{display:inline-flex;align-items:center;justify-content:center;min-width:80px;padding:5px 9px;border-radius:999px;background:#f1f4f7;color:#6d7b89;font-size:12px;font-weight:800;white-space:nowrap}.work-report-status.is-unread{background:#fff4df;color:#bd7700}.work-report-status.is-revision{background:#fff0f1;color:#d43b50}.work-report-status.is-completed{background:#eaf8f0;color:#168554}.work-report-modal{width:min(760px,100%)}.work-report-wide{grid-column:1/-1}.work-report-modal textarea{width:100%;resize:vertical}.work-report-editor-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.work-report-editor-actions>div{display:flex;gap:8px}.work-report-editor-actions button{width:auto!important;min-width:110px}.work-report-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:18px 0}.work-report-detail-grid>div{display:grid;gap:4px;padding-bottom:10px;border-bottom:1px solid var(--line)}.work-report-detail-grid small,.work-report-confirmed{color:var(--muted);font-size:12px;font-weight:750}.work-report-body{margin:18px 0;padding:18px;border-radius:12px;background:#f7f9fb}.work-report-body h3{margin:0 0 10px;font-size:15px}.work-report-body p{margin:0;line-height:1.7}.work-report-settings h3{margin:24px 0 10px;font-size:16px}.work-report-settings table input{width:100%;min-width:80px}.work-report-settings table input[type="checkbox"]{width:auto}.work-report-settings-card{margin-top:18px}@media(max-width:1100px){.work-report-period{grid-column:span 2}}@media(max-width:720px){.work-report-head .primary{width:100%}.work-report-tabs{overflow-x:auto;flex-wrap:nowrap}.work-report-tabs>.secondary{min-width:116px}.work-report-period{grid-column:auto}.work-report-detail-grid{grid-template-columns:1fr}.work-report-editor-actions{align-items:stretch;flex-direction:column}.work-report-editor-actions>div{display:grid;grid-template-columns:1fr 1fr;width:100%}.work-report-editor-actions button{width:100%!important;min-width:0}.work-report-editor-actions>div:has(button:nth-child(3)){grid-template-columns:repeat(3,1fr)}.work-report-modal{padding:20px 16px}}.work-report-detail-actions{justify-content:stretch}.work-report-detail-actions button{flex:1;width:100%!important;min-width:0!important}@media(max-width:720px){.work-report-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex-direction:initial!important}.work-report-detail-actions button:last-child:nth-child(odd){grid-column:1/-1}}

/* Mobile product entry: one product per card instead of a squeezed spreadsheet row. */
@media(max-width:720px){
  .request-line-table,.inbound-line-entry-table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
  .request-line-table thead,.inbound-line-entry-table thead{display:none!important}
  .request-line-table tbody,.inbound-line-entry-table tbody{display:grid!important;width:100%!important;gap:12px!important}
  .request-line-table tbody tr[data-line],.inbound-line-entry-table tbody tr[data-line]{position:relative!important;display:grid!important;width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:62px 14px 14px!important;border:1px solid var(--line)!important;border-radius:16px!important;background:#fff!important}
  .request-line-table tbody tr[data-line]>td,.inbound-line-entry-table tbody tr[data-line]>td{display:grid!important;align-content:start!important;gap:7px!important;width:100%!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;text-align:left!important}
  .request-line-table tbody td::before,.inbound-line-entry-table tbody td::before{content:attr(data-mobile-label);color:var(--muted);font-size:12px;font-weight:750;line-height:1.35;text-align:left}
  .request-line-table tbody tr[data-line]>td:not(.request-line-number-cell):not(.line-delete-cell),.inbound-line-entry-table tbody tr[data-line]>td:not(.inbound-line-number-cell):not(.line-delete-cell){grid-column:auto!important}
  .request-line-table tbody tr[data-line]>td:nth-child(2),.inbound-line-entry-table tbody tr[data-line]>td:nth-child(2){grid-column:1/-1!important}
  .request-line-table .request-line-number-cell,.inbound-line-entry-table .inbound-line-number-cell{position:absolute!important;max-width:none!important;}
  .request-line-table .request-line-number-cell::before,.inbound-line-entry-table .inbound-line-number-cell::before{display:none!important}
  .request-line-table tbody input,.request-line-table tbody select,.inbound-line-entry-table tbody input,.inbound-line-entry-table tbody select{width:100%!important;min-width:0!important;height:48px!important;padding:10px 12px!important;border-radius:12px!important;font-size:16px!important}
  .request-line-table input[data-k="price"],.request-line-table input[data-k="quantity"],.inbound-line-entry-table input[data-k="quantity"]{text-align:right!important}
  .request-line-table .line-amount{min-height:48px!important;padding:10px 12px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:#f7f8fa!important;align-content:center!important;text-align:right!important}
  .request-line-table .line-amount strong{font-size:16px!important}
  .request-line-table .line-delete-cell,.inbound-line-entry-table .line-delete-cell{position:absolute!important;top:10px!important;right:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;min-width:42px!important;max-width:42px!important;padding:0!important}
  .request-line-table .line-delete-button,.inbound-line-entry-table .line-delete-button{width:42px!important;height:42px!important}
}

/* Phone product cards: keep the outbound memo full-width and its delete action in the header. */
@media(max-width:720px){
  #outboundCollectionStatus{display:flex;flex-wrap:wrap;gap:3px 8px;margin-top:3px}
  .request-line-table tbody tr[data-line]{padding:62px 14px 14px!important}
  #lineBody>tr[data-line]>td:has([data-line-other]){grid-column:1/-1!important}
  .inbound-line-entry-table tbody tr[data-line]{padding:62px 14px 70px!important}
  .request-line-table .request-line-number-cell,.inbound-line-entry-table .inbound-line-number-cell{top:14px!important;left:14px!important;z-index:2!important;display:grid!important;place-items:center!important;width:32px!important;min-width:32px!important;height:32px!important;padding:0!important;color:var(--muted)!important;font-size:15px!important;font-weight:850!important;line-height:1!important}
  .request-line-table .line-delete-cell{top:10px!important;right:10px!important;bottom:auto!important;z-index:2!important}
  .inbound-line-entry-table .line-delete-cell{top:auto!important;right:14px!important;bottom:14px!important;z-index:2!important}
}
.receivable-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(180px,.8fr)) minmax(220px,1fr) auto;gap:10px;margin:0 0 18px}.receivable-filter-bar input,.receivable-filter-bar select{width:100%;height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;color:var(--ink)}.receivable-filter-bar .receivable-filter-reset{height:42px;min-height:42px!important;padding:0 16px!important;font-size:14px!important;white-space:nowrap}@media(max-width:960px){.receivable-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.receivable-filter-bar .receivable-filter-reset{grid-column:span 2}}@media(max-width:720px){.receivable-filter-bar{grid-template-columns:1fr}.receivable-filter-bar .receivable-filter-reset{grid-column:auto;width:100%}}
.work-report-period-filter{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;width:270px;gap:5px}.work-report-period-filter .field{display:block;min-width:0}.work-report-period-filter input{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 28px 0 8px!important;color:var(--ink);font-size:10px!important;text-align:left!important}.work-report-period-filter .localized-date-button{right:5px!important;width:20px!important;height:20px!important}.work-report-period-filter .localized-date-button:before{width:14px!important;height:14px!important;background-size:14px 14px!important}.work-report-period-filter span{color:var(--muted);font-size:10px}.work-report-filters .primary{height:42px;min-width:174px;white-space:nowrap}.work-report-table{width:100%;table-layout:fixed}.work-report-table th:nth-child(1),.work-report-table td:nth-child(1){width:9%;white-space:nowrap}.work-report-table th:nth-child(3),.work-report-table td:nth-child(3),.work-report-table th:nth-child(4),.work-report-table td:nth-child(4){width:13%}.work-report-table th:nth-child(5),.work-report-table td:nth-child(5){width:45%}.work-report-table th:nth-child(6),.work-report-table td:nth-child(6){white-space:nowrap}.work-report-table td:nth-child(5){overflow-wrap:anywhere}.work-report-pagination{display:flex;align-items:center;justify-content:center;gap:10px;padding-top:16px}.work-report-pagination .secondary{width:auto;min-width:76px;height:36px}.work-report-pagination span{min-width:48px;text-align:center;color:var(--muted);font-size:13px;font-weight:800}@media(max-width:1100px){.work-report-period-filter{grid-column:1/-1}}@media(max-width:720px){.work-report-period-filter{grid-column:auto;width:100%}.work-report-period-filter input{font-size:12px!important}.work-report-filters .primary{width:100%;min-width:0}.work-report-table th:nth-child(1),.work-report-table td:nth-child(1){width:12%}.work-report-table th:nth-child(5),.work-report-table td:nth-child(5){width:38%}}
.work-report-period-filter input{height:42px!important;min-height:42px!important}.work-report-period-filter .localized-date-button{bottom:11px!important}
.inventory-report-filter{display:grid;grid-template-columns:minmax(220px,360px) auto 1fr;align-items:center;gap:10px;padding:16px 24px;border-bottom:1px solid var(--line);background:#fbfcfd}.inventory-report-filter select{width:100%;height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 12px;color:var(--ink);font:inherit}.inventory-report-filter .inventory-filter-reset{height:42px;min-height:42px!important;padding:0 16px!important;font-size:14px!important}.inventory-report-filter .inventory-filter-count{justify-self:end}@media(max-width:900px){.inventory-report-filter{grid-template-columns:minmax(180px,1fr) auto}.inventory-report-filter .inventory-filter-count{justify-self:start}}@media(max-width:720px){.inventory-report-filter{grid-template-columns:1fr;padding:14px 16px}.inventory-report-filter .inventory-filter-reset{width:100%!important}.inventory-report-filter .inventory-filter-count{justify-self:start}}
.work-report-head-actions .work-report-period{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}.work-report-head-actions .work-report-period input{width:100%}
.inventory-table .inventory-total-row th:not(:first-child){text-align:right!important}

.inventory-count-list-card{padding:0;overflow:hidden}.inventory-count-list-head{padding:22px 24px 18px;margin:0;border-bottom:1px solid var(--line)}.inventory-count-list-head p{margin-top:5px;color:var(--muted);font-size:12px}.inventory-count-list-head .primary{width:auto!important;white-space:nowrap}.inventory-count-table-wrap{width:100%;overflow:auto}.inventory-count-list-table{min-width:780px}.inventory-count-list-table th:last-child,.inventory-count-list-table td:last-child{text-align:right}.inventory-count-list-table.has-actions th:last-child,.inventory-count-list-table.has-actions td:last-child{position:sticky;right:0;width:70px;text-align:center;background:#fff;box-shadow:-8px 0 12px -12px rgba(25,45,39,.35)}.inventory-count-list-table.has-actions th:last-child{z-index:2;background:#f6f8f4}.inventory-count-list-table.has-actions td:last-child{z-index:1}.inventory-count-backdrop{padding:24px}.inventory-count-modal{display:flex;flex-direction:column;width:min(1320px,100%);height:min(900px,94vh);max-width:none;padding:0;overflow:hidden}.inventory-count-modal-head{flex:0 0 auto;margin:0;padding:20px 24px 16px;border-bottom:1px solid var(--line)}.inventory-count-modal-head small{color:var(--muted);font-weight:750}.inventory-count-meta{display:grid;grid-template-columns:minmax(300px,1fr) minmax(150px,.3fr) minmax(130px,.2fr);flex:0 0 auto;gap:14px;padding:14px 24px;border-bottom:1px solid var(--line);background:#fbfcfd}.inventory-count-meta>div:not(.field){display:grid;align-content:center;gap:6px;padding:0 14px;border-left:1px solid var(--line)}.inventory-count-meta span,.inventory-count-meta label{color:var(--muted);font-size:11px;font-weight:800}.inventory-count-meta strong{font-size:14px}.inventory-count-title{gap:6px}.inventory-count-title input{width:100%;font-weight:800}.inventory-count-guidance{flex:0 0 auto;padding:10px 24px;background:#eff6ff;color:#315d92;font-size:12px;font-weight:750}.inventory-count-entry-wrap{flex:1 1 auto;min-height:180px;overflow:auto}.inventory-count-entry-table{min-width:1180px}.inventory-count-entry-table thead{position:sticky;top:0;z-index:3}.inventory-count-entry-table th{background:#f6f8f4}.inventory-count-entry-table th:nth-child(1),.inventory-count-entry-table td:nth-child(1){width:56px;text-align:center}.inventory-count-entry-table th:nth-child(2),.inventory-count-entry-table td:nth-child(2){width:150px}.inventory-count-entry-table th:nth-child(3),.inventory-count-entry-table td:nth-child(3){width:160px}.inventory-count-entry-table th:nth-child(4),.inventory-count-entry-table td:nth-child(4){width:145px;text-align:right}.inventory-count-entry-table th:nth-child(5),.inventory-count-entry-table td:nth-child(5){width:180px;text-align:right}.inventory-count-entry-table th:nth-child(6),.inventory-count-entry-table td:nth-child(6){width:150px;text-align:right}.inventory-count-entry-table td:nth-child(7){min-width:260px}.inventory-count-entry-table input{width:100%;height:42px}.inventory-count-entry-table input[readonly]{border-color:transparent;background:transparent}.inventory-count-quantity-field{display:flex;align-items:center;justify-content:flex-end;gap:7px}.inventory-count-quantity-field input{width:130px;text-align:right;font-weight:800;font-variant-numeric:tabular-nums}.inventory-count-quantity-field span{color:var(--muted);font-size:11px;font-weight:750}.inventory-count-entry-table .negative{color:var(--danger)}.inventory-count-entry-table .positive{color:var(--green2)}.inventory-count-modal-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid var(--line);background:#fff}.inventory-count-modal-footer p{color:var(--muted);font-size:11px}.inventory-count-modal-footer>div{display:flex;gap:10px}.inventory-count-modal-footer button{width:auto!important;min-width:150px}@media(max-width:720px){.inventory-count-list-head{align-items:stretch;padding:18px 16px}.inventory-count-list-head .primary{width:100%!important}.inventory-count-backdrop{padding:0}.inventory-count-modal{width:100%;height:100dvh;max-height:none;border-radius:0}.inventory-count-modal-head{padding:16px}.inventory-count-meta{grid-template-columns:1fr;padding:12px 16px}.inventory-count-meta>div:not(.field){padding:10px 0 0;border-top:1px solid var(--line);border-left:0}.inventory-count-guidance{padding:10px 16px}.inventory-count-modal-footer{align-items:stretch;flex-direction:column;padding:12px 16px}.inventory-count-modal-footer>div{width:100%}.inventory-count-modal-footer button{flex:1;min-width:0}}
.work-report-filters #resetWorkReportFilters.is-active{color:var(--danger);border-color:rgba(255,70,78,.28)}

/* 업무 보고: 상태는 필터로 합치고 보고서와 내 할 일만 화면을 전환한다. */
.work-report-page .work-report-tabs,.todo-page .work-report-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}
.work-report-page .work-report-tabs>.secondary,.todo-page .work-report-tabs>.secondary{width:100%;min-width:0;flex:none}
.work-report-head{align-items:flex-end;gap:24px}
.work-report-head-actions{flex:0 0 auto}
.work-report-head-actions .work-report-period{width:min(410px,100%)}
.work-report-filters{width:100%;grid-template-columns:repeat(3,minmax(130px,1fr)) minmax(150px,1.15fr) minmax(84px,.55fr);gap:10px}
.work-report-filters.has-create:not(.has-reporter){grid-template-columns:minmax(154px,1.2fr) repeat(3,minmax(130px,1fr)) minmax(150px,1.15fr) minmax(84px,.55fr)}
.work-report-filters:not(.has-create).has-reporter{grid-template-columns:repeat(4,minmax(130px,1fr)) minmax(150px,1.15fr) minmax(84px,.55fr)}
.work-report-filters.has-create.has-reporter{grid-template-columns:minmax(154px,1.2fr) repeat(4,minmax(130px,1fr)) minmax(150px,1.15fr) minmax(84px,.55fr)}
.work-report-filters>*{width:100%;min-width:0}
.work-report-filters .primary,.work-report-filters .secondary{width:100%;min-width:0}
.work-report-table th.work-report-number,.work-report-table td.work-report-number{width:5%;text-align:center;white-space:nowrap;font-weight:500}
.work-report-table th:nth-child(2),.work-report-table td:nth-child(2){width:10%;white-space:nowrap}
.work-report-table th:nth-child(3),.work-report-table td:nth-child(3){width:12%}
.work-report-table th:nth-child(4),.work-report-table td:nth-child(4),.work-report-table th:nth-child(5),.work-report-table td:nth-child(5){width:12%}
.work-report-table th:nth-child(6),.work-report-table td:nth-child(6){width:39%}
.work-report-table th:nth-child(7),.work-report-table td:nth-child(7){width:10%;white-space:nowrap}
.work-report-table td:nth-child(6){overflow-wrap:anywhere}
.work-report-recorded-date{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;line-height:1.2}
.work-report-recorded-date small{color:var(--muted);font-size:12px;font-weight:600;line-height:1}
@media(max-width:1300px){
  .work-report-head{align-items:flex-start}
  .work-report-filters,.work-report-filters.has-create:not(.has-reporter),.work-report-filters:not(.has-create).has-reporter,.work-report-filters.has-create.has-reporter{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  .work-report-head{display:grid;gap:12px}
  .work-report-head-actions,.work-report-head-actions .work-report-period{width:100%}
  .work-report-page .work-report-tabs,.todo-page .work-report-tabs{display:flex;overflow-x:auto;gap:8px}
  .work-report-page .work-report-tabs>.secondary,.todo-page .work-report-tabs>.secondary{flex:1 0 104px}
  .work-report-filters,.work-report-filters.has-create:not(.has-reporter),.work-report-filters:not(.has-create).has-reporter,.work-report-filters.has-create.has-reporter{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work-report-table th.work-report-number,.work-report-table td.work-report-number{width:8%}
}
.todo-page{display:grid;gap:18px}.todo-card{max-width:860px}.todo-head h2{font-size:27px}.todo-head h2 small{margin-left:6px;color:var(--muted);font-size:14px;font-weight:800}.todo-quick-add{display:grid;grid-template-columns:136px minmax(0,1fr) 52px auto;gap:10px;align-items:end;margin:18px 0}.todo-quick-field{display:grid;gap:7px;min-width:0;color:var(--muted);font-size:12px;font-weight:800}.todo-quick-add input,.todo-quick-add select{width:100%;min-width:0;height:52px;min-height:52px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit}.todo-quick-detail{display:grid;align-self:end;place-items:center;width:52px;height:52px;min-height:52px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--green2);font:700 24px/1 Arial,sans-serif;cursor:pointer}.todo-quick-detail:hover,.todo-quick-detail:focus-visible{border-color:var(--green2);background:#f3f8f4}.todo-quick-add .primary{align-self:end;width:auto;min-width:104px;height:52px;min-height:52px;padding:0 16px}.todo-list{margin:0;padding:0;list-style:none}.todo-item{display:grid;grid-template-columns:28px minmax(0,1fr) 34px;gap:12px;align-items:start;padding:15px 2px;border-bottom:1px solid var(--line)}.todo-check{display:grid;place-items:center;width:24px;height:24px;margin-top:2px;padding:0;border:1.5px solid #b5c0cb;border-radius:50%;background:#fff;color:#fff;font-weight:900;cursor:pointer}.todo-check:hover{border-color:var(--blue)}.todo-item-content{display:grid;gap:5px;min-width:0}.todo-item-main{display:flex;align-items:center;gap:12px;min-width:0}.todo-title{width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ink)!important;font:inherit!important;font-size:16px!important;font-weight:750!important;text-align:left!important;cursor:pointer}.todo-title:hover{text-decoration:underline;text-underline-offset:3px}.todo-due,.todo-note,.todo-completed-at,.todo-priority{color:var(--muted);font-size:12px}.todo-priority{flex:0 0 auto;font-weight:800}.todo-priority.is-high{color:var(--danger)}.todo-priority.is-low{color:var(--blue)}.todo-delete-x{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:24px;line-height:1;cursor:pointer}.todo-delete-x:hover,.todo-delete-x:focus-visible{background:#fff0f1;color:var(--danger)}.todo-due.overdue{color:var(--danger);font-weight:800}.todo-due.today{color:var(--blue);font-weight:800}.todo-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.todo-completed-toggle{width:100%;margin-top:14px;padding:12px 2px;border:0;background:transparent;color:var(--muted);font:inherit;font-weight:800;text-align:left;cursor:pointer}.todo-completed-list{margin-top:-4px}.todo-item.is-completed .todo-check{border-color:#27a770;background:#27a770}.todo-item.is-completed .todo-title{color:var(--muted)!important;text-decoration:line-through}.todo-item.is-completed{opacity:.78}.todo-retention{margin:14px 0 0;color:var(--muted);font-size:12px}.todo-empty{padding:28px 2px;color:var(--muted);text-align:center}.todo-modal{width:min(640px,100%)}.todo-modal textarea{width:100%;resize:vertical}.todo-check.is-readonly{cursor:default}.todo-reminder-modal{width:min(540px,100%)}.todo-reminder-modal .work-report-editor-actions>span{display:none}.todo-reminder-modal .work-report-editor-actions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.todo-reminder-modal .work-report-editor-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere}.todo-reminder-message{color:var(--muted)}.todo-reminder-list{display:grid;gap:10px;margin:18px 0;padding:0;list-style:none}.todo-reminder-list li{display:grid;gap:3px;padding:13px 14px;border-radius:12px;background:#f6f8f5}.todo-reminder-list strong{overflow-wrap:anywhere}.todo-reminder-list small,.todo-reminder-list span{color:var(--muted);font-size:12px}.todo-reminder-list span{white-space:pre-wrap}@media(max-width:720px){.todo-card{padding:18px 16px}.todo-quick-add{position:sticky;bottom:10px;z-index:2;grid-template-columns:112px minmax(0,1fr) 52px auto;margin-bottom:12px;padding:10px 0;background:var(--paper)}.todo-quick-add .primary{min-width:72px;padding:0 12px}.todo-title{font-size:16px!important}}@media(max-width:520px){.todo-quick-add .primary{grid-column:1/-1;width:100%}.todo-item-main{align-items:flex-start;flex-wrap:wrap;gap:5px 10px}}
@media(max-width:520px){.todo-quick-add{grid-template-columns:120px minmax(0,1fr) 52px}}
.todo-assignee-list{display:grid;grid-template-columns:1fr;gap:8px;max-height:176px;overflow-x:hidden;overflow-y:auto;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfa}.todo-assignee-list label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%;min-width:0;color:var(--ink);font-size:13px;font-weight:750;cursor:pointer}.todo-assignee-list input[type="checkbox"]{flex:0 0 18px!important;width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0!important;accent-color:var(--green)}.todo-assignee-list .todo-assignee-self{color:var(--muted);cursor:default}.todo-assignee-note{display:block;margin-top:7px;color:var(--muted);font-size:12px}
.todo-repeat{color:var(--muted);font-size:12px}

/* Branch-scoped quality issue board; photos remain server-only and outside app_state. */
.quality-issue-page{display:grid;gap:18px}.quality-issue-page .work-report-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin:0;padding:0;background:transparent}.work-report-tabs.work-report-tab-count-1{grid-template-columns:1fr!important}.work-report-page .work-report-tabs.work-report-tab-count-3,.todo-page .work-report-tabs.work-report-tab-count-3,.quality-issue-page .work-report-tabs.work-report-tab-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}.quality-issue-page .work-report-tabs>.secondary{width:100%;min-width:0;flex:none}.quality-issue-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.quality-issue-head h2{margin:0;font-size:27px}.quality-issue-head p{margin:6px 0 0;color:var(--muted);font-size:14px}.quality-issue-head>div:last-child{display:flex;gap:8px}.quality-issue-head button{width:auto;min-width:126px}.quality-status-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.quality-status-tabs button{flex:1 0 112px;width:auto;white-space:nowrap}.quality-issue-filters{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(190px,.9fr) minmax(240px,1.4fr) auto auto;gap:10px}.quality-issue-filters input,.quality-issue-filters select{width:100%;min-width:0;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}.quality-issue-filters button{width:auto;min-width:84px}.quality-issue-list{padding:0;overflow:hidden}.quality-issue-count{padding:15px 18px 10px;color:var(--muted);font-size:12px;font-weight:800}.quality-issue-table-wrap{overflow:auto}.quality-issue-table{min-width:1040px}.quality-issue-table th,.quality-issue-table td{vertical-align:middle}.quality-issue-table th:nth-child(1),.quality-issue-table td:nth-child(1){width:54px;text-align:center}.quality-issue-table th:nth-child(2),.quality-issue-table td:nth-child(2){width:104px;white-space:nowrap}.quality-issue-table th:nth-child(7),.quality-issue-table td:nth-child(7),.quality-issue-table th:nth-child(8),.quality-issue-table td:nth-child(8),.quality-issue-table th:nth-child(9),.quality-issue-table td:nth-child(9){white-space:nowrap}.quality-issue-row{cursor:pointer}.quality-issue-row:hover td{background:#f7faff}.quality-issue-title-cell button{width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--blue)!important;font:inherit!important;font-weight:800!important;text-align:left!important;text-decoration:underline;text-underline-offset:3px}.quality-status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:76px;padding:5px 9px;border-radius:999px;background:#eef2f5;color:#607080;font-size:12px;font-weight:850;white-space:nowrap}.quality-status-badge.is-open{background:#fff3da;color:#a66a00}.quality-status-badge.is-in_progress{background:#e7f2ff;color:#2369b3}.quality-status-badge.is-completed{background:#e7f7ee;color:#168554}.quality-status-badge.is-unresolvable{background:#f1f2f4;color:#59616b}.quality-issue-modal{width:min(900px,100%);max-height:min(92dvh,920px);overflow:auto}.quality-issue-modal .card-head{align-items:flex-start;gap:18px}.quality-history-note{max-width:260px;color:var(--muted);font-size:12px;line-height:1.45;text-align:right}.quality-issue-form{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-issue-form textarea{width:100%;resize:vertical}.quality-issue-wide{grid-column:1/-1}.quality-photo-field>small{margin-top:8px;color:var(--muted)}.quality-photo-picker{display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed #bdc8d3;border-radius:12px;background:#f8fafc}.quality-photo-picker button{width:auto;min-width:126px}.quality-photo-picker small{color:var(--muted);line-height:1.4}.quality-pending-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.quality-pending-photo{position:relative;display:grid;gap:5px;min-width:0}.quality-pending-photo img{width:100%;aspect-ratio:4/3;border-radius:10px;object-fit:cover}.quality-pending-photo button{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(20,29,40,.78);color:#fff;font-size:20px;cursor:pointer}.quality-pending-photo small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.quality-issue-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.quality-issue-actions button{width:auto;min-width:120px}.quality-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;margin:18px 0}.quality-detail-grid>div{display:grid;gap:4px;padding:0 0 10px;border-bottom:1px solid var(--line)}.quality-detail-grid small{color:var(--muted);font-size:12px;font-weight:750}.quality-detail-section{margin-top:16px;padding:16px;border-radius:12px;background:#f7f9fb}.quality-detail-section h3{margin:0 0 10px;font-size:15px}.quality-detail-section p{margin:0;line-height:1.7}.quality-resolution{background:#eef8f3}.quality-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quality-photo-card{display:grid;gap:6px;width:100%;min-width:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);cursor:default}.quality-photo-card.is-ready{cursor:zoom-in}.quality-photo-card img,.quality-photo-placeholder{display:grid;place-items:center;width:100%;aspect-ratio:4/3;background:#edf1f4;object-fit:cover}.quality-photo-card small{padding:0 8px 8px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.quality-empty-section{grid-column:1/-1!important;color:var(--muted)}.quality-history-list{display:grid;gap:13px;margin:0;padding:0;list-style:none}.quality-history-list li{display:grid;grid-template-columns:12px minmax(0,1fr);gap:10px;align-items:start}.quality-history-list li>span{width:9px;height:9px;margin-top:5px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 4px rgba(47,128,237,.12)}.quality-history-list li>div{display:grid;gap:3px}.quality-history-list strong{font-size:13px}.quality-history-list small{color:var(--muted);font-size:11px}
@media(max-width:900px){.quality-issue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-issue-filters input{grid-column:1/-1}.quality-issue-filters button{width:100%}.quality-issue-table{display:block;min-width:0}.quality-issue-table thead{display:none}.quality-issue-table tbody{display:grid;gap:10px;padding:0 14px 14px}.quality-issue-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.quality-issue-table td{display:grid;grid-template-columns:minmax(78px,.55fr) minmax(0,1fr);gap:8px;align-items:start;width:auto!important;padding:8px 4px!important;border:0!important;text-align:left!important;white-space:normal!important}.quality-issue-table td::before{content:attr(data-mobile-label);color:var(--muted);font-size:11px;font-weight:800}.quality-issue-table td.quality-issue-title-cell{grid-column:1/-1}.quality-issue-table td.empty{display:block;grid-column:1/-1;padding:24px!important;text-align:center!important}.quality-issue-table td.empty::before{display:none}}
@media(max-width:720px){.work-report-page .work-report-tabs.work-report-tab-count-3,.todo-page .work-report-tabs.work-report-tab-count-3,.quality-issue-page .work-report-tabs{display:flex;grid-template-columns:none;overflow-x:auto;gap:8px}.quality-issue-page .work-report-tabs>.secondary{flex:1 0 104px}.quality-issue-head{display:grid;align-items:start}.quality-issue-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.quality-issue-head button{width:100%;min-width:0}.quality-issue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-issue-filters input{grid-column:1/-1}.quality-issue-filters button{width:100%}.quality-issue-modal{max-height:100dvh;padding:20px 16px;border-radius:0}.quality-issue-modal .card-head{display:grid}.quality-history-note{max-width:none;text-align:left}.quality-issue-form,.quality-detail-grid{grid-template-columns:1fr}.quality-issue-wide{grid-column:auto}.quality-photo-picker{align-items:stretch;flex-direction:column}.quality-photo-picker button{width:100%}.quality-pending-photos,.quality-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-issue-actions{display:grid;grid-template-columns:1fr 1fr}.quality-issue-actions button{width:100%;min-width:0}}
@media(max-width:520px){.quality-issue-table tr{grid-template-columns:1fr}.quality-issue-table td.quality-issue-title-cell{grid-column:auto}.quality-issue-filters{grid-template-columns:1fr}.quality-issue-filters input{grid-column:auto}.quality-pending-photos,.quality-photo-grid{grid-template-columns:1fr 1fr}}
.dashboard-order-unit{font-size:50%;font-weight:400}
.account-exception-details{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.account-exception-details summary{cursor:pointer;color:var(--ink);font-weight:850}.account-exception-details summary small{margin-left:6px;color:var(--muted);font-weight:700}.account-exception-details>p{margin:8px 0 12px;color:var(--muted);font-size:12px}.account-exception-table-wrap{max-height:390px;overflow:auto;border:1px solid var(--line);border-radius:12px}.account-exception-table{min-width:680px}.account-exception-table td:first-child{min-width:180px}.account-exception-table td small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.account-exception-table select{min-width:132px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff}.account-exception-reset{width:auto!important;margin-top:12px}@media(max-width:720px){.account-exception-table-wrap{margin:0 -2px}.account-exception-table{min-width:610px}}
.history-export-button{white-space:nowrap}@media(max-width:720px){.history-export-button{flex:1 1 100%;width:100%!important}}
@media(max-width:720px){.sidebar{height:100dvh;max-height:100dvh;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.sidebar nav,.sidebar-foot{flex:0 0 auto}.sidebar-foot{margin-top:24px}}
.permission-review-card{display:grid;gap:14px;margin-top:18px}.permission-review-card>small{color:var(--muted);font-size:12px}@media(max-width:720px){.permission-review-card{padding:18px 16px}}
.expense-dashboard-comparison{display:grid;gap:3px;margin-top:auto;padding-top:5px;color:var(--muted);font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}.expense-dashboard-comparison .is-increase{color:var(--danger)}.expense-dashboard-comparison .is-decrease{color:var(--green)}
.cash-flow-date-sort{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;cursor:pointer}.cash-flow-date-sort span{color:var(--blue);font-size:13px}.cash-flow-date-sort:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}
.product-catalog-card{padding:0;overflow:visible}.product-catalog-head{align-items:flex-start;gap:18px;margin:0;padding:20px 22px 16px;border-bottom:1px solid var(--line)}.product-catalog-head>div:first-child{min-width:0}.product-catalog-head h2{font-size:18px}.product-catalog-head small{display:block;max-width:720px;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45}.product-import-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.product-import-actions .primary,.product-import-actions .secondary{width:auto;min-height:40px;white-space:nowrap}.product-import-actions button:focus-visible{outline:3px solid rgba(47,128,237,.2);outline-offset:2px}.product-catalog-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.48fr) minmax(150px,.48fr) minmax(220px,auto);gap:10px;align-items:end;padding:16px 22px 12px}.product-catalog-toolbar>label{display:grid;gap:5px;min-width:0}.product-catalog-toolbar>label>span{color:var(--muted);font-size:11px;font-weight:800}.product-catalog-toolbar input[type="search"],.product-catalog-toolbar select{width:100%;min-width:0;height:42px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 11px;color:var(--ink)}.product-catalog-toolbar .overwrite-option{display:flex;align-items:center;align-self:center;gap:8px;padding:8px 0 1px}.product-catalog-toolbar .overwrite-option input{flex:0 0 18px;width:18px;height:18px}.product-catalog-toolbar .overwrite-option span{color:var(--muted);font-size:11px;line-height:1.35}.product-import-guide{margin:0 22px 14px;padding:10px 12px}.price-grade-table-wrap{max-width:100%;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);overscroll-behavior-inline:contain}.price-grade-table{table-layout:fixed}.price-grade-table.is-editing{min-width:1320px}.price-grade-table th,.price-grade-table td{padding:10px 8px;vertical-align:middle}.price-grade-table th{height:42px;background:#f7f9f6;white-space:nowrap}.price-grade-table th:nth-child(1),.price-grade-table td:nth-child(1){width:48px;text-align:center}.price-grade-table th:nth-child(2),.price-grade-table td:nth-child(2){width:82px}.price-grade-table th:nth-child(3),.price-grade-table td:nth-child(3){width:118px}.price-grade-table th:nth-child(4),.price-grade-table td:nth-child(4){width:150px;text-align:left}.price-grade-table th:nth-child(5),.price-grade-table td:nth-child(5){width:260px;text-align:left;white-space:normal;overflow-wrap:anywhere}.price-grade-table th:nth-child(n+6):nth-child(-n+11),.price-grade-table td:nth-child(n+6):nth-child(-n+11){width:84px!important;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.price-grade-table.is-editing th:last-child,.price-grade-table.is-editing td:last-child{width:104px}.price-grade-table tbody tr:hover td{background:#fbfcfa}.price-grade-table .product-row-number{color:var(--muted);font-variant-numeric:tabular-nums}.price-grade-table input,.price-grade-table textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit}.price-grade-table input{height:42px;padding:8px 9px}.price-grade-table textarea{display:block;min-height:50px;padding:8px 9px;line-height:1.35;resize:vertical;overflow-wrap:anywhere;text-align:left}.price-grade-table input:focus-visible,.price-grade-table textarea:focus-visible,.product-catalog-toolbar input:focus-visible,.product-catalog-toolbar select:focus-visible{outline:3px solid rgba(47,128,237,.18);outline-offset:1px;border-color:var(--blue)}.product-status-badge{border:1px solid transparent;font-weight:800}.product-status-badge.active{background:#e8f5e7;color:#28623a;border-color:#cfe5ce}.product-status-badge.inactive{background:#f1f3f2;color:#6f7d78;border-color:#dde2df}.product-inactive-row td{background:#f7f8f7;color:#7c8985}.product-inactive-row:hover td{background:#f3f5f3!important}.product-price-unset{color:#9aa49f;font-size:11px;font-weight:750}.product-catalog-save-bar{bottom:max(10px,env(safe-area-inset-bottom));margin:14px 18px 18px}.product-import-preview{width:min(650px,100%)}.product-import-preview .card-head{align-items:flex-start}.product-import-preview .card-head small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45}.product-import-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.product-import-summary span{display:grid;gap:2px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#f7f9f6;color:var(--muted);font-size:11px;font-weight:750}.product-import-summary strong{color:var(--ink);font-size:20px;font-variant-numeric:tabular-nums}.product-import-summary .has-errors{border-color:#efc7c2;background:#fff4f2;color:var(--danger)}.product-import-summary .has-errors strong{color:var(--danger)}.product-import-errors{max-height:280px;overflow:auto;padding:13px 15px;border:1px solid #efc7c2;border-radius:11px;background:#fff4f2;color:#8d392f;font-size:12px}.product-import-errors ul{margin:9px 0 0;padding-left:20px}.product-import-errors li+li{margin-top:4px}.product-import-errors small{display:block;margin-top:9px}.product-import-preview-actions{grid-template-columns:1fr 1fr;margin-top:18px}.product-import-preview-actions .primary{width:100%}.product-add-modal{width:min(820px,100%)}.product-add-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.product-add-modal textarea{width:100%;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:9px;font:inherit;line-height:1.35;resize:vertical}.product-add-price-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:14px}.product-add-price-grid input{width:100%;min-width:0}.product-add-actions{grid-template-columns:1fr 1fr;margin-top:20px}
.price-grade-table.is-viewing{min-width:1040px}
.price-grade-table .product-grade-heading{white-space:normal;overflow-wrap:anywhere}
.product-catalog-head .product-import-actions{flex-shrink:1}
.product-import-actions #editPriceGradeLabels{white-space:normal}
@media(max-width:520px){.product-catalog-head .product-import-actions button{min-width:0;white-space:normal}}
.modal-card.price-grade-labels-modal{width:min(580px,100%);max-height:92dvh;overflow:auto}
.price-grade-labels-modal .card-head small,.price-grade-labels-modal p{color:var(--muted)}
.price-grade-labels-modal p{margin:0 0 12px}
.price-grade-labels-table{table-layout:fixed;margin-bottom:16px}
.price-grade-labels-table th,.price-grade-labels-table td{padding:6px;white-space:normal}
.price-grade-labels-table th:first-child{width:58px}
.price-grade-labels-table input{width:100%;min-width:0;min-height:40px;padding:6px 8px;border:1px solid var(--line);border-radius:9px;color:var(--ink)}
.product-add-actions,.product-import-preview-actions{display:grid;gap:8px}
.price-grade-table.is-viewing th:nth-child(1),.price-grade-table.is-viewing td:nth-child(1){width:40px}
.price-grade-table.is-viewing th:nth-child(2),.price-grade-table.is-viewing td:nth-child(2){width:72px}
.price-grade-table.is-viewing th:nth-child(3),.price-grade-table.is-viewing td:nth-child(3){width:104px}
.price-grade-table.is-viewing th:nth-child(4),.price-grade-table.is-viewing td:nth-child(4){width:125px}
.price-grade-table.is-viewing th:nth-child(5),.price-grade-table.is-viewing td:nth-child(5){width:200px}
.price-grade-table.is-viewing th:nth-child(n+6):nth-child(-n+11),.price-grade-table.is-viewing td:nth-child(n+6):nth-child(-n+11){width:80px!important}
@media(min-width:821px){.price-grade-table th:nth-child(4),.price-grade-table td:nth-child(4){position:sticky;left:0;z-index:1;background:var(--paper);box-shadow:5px 0 8px -8px rgba(23,49,45,.55)}.price-grade-table thead th:nth-child(4){z-index:3;background:#f7f9f6}.price-grade-table .product-inactive-row td:nth-child(4){background:#f7f8f7}}
@media(max-width:1000px){.product-catalog-head{display:grid}.product-import-actions{justify-content:flex-start}.product-catalog-toolbar{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(145px,.55fr))}.product-catalog-toolbar .overwrite-option{grid-column:1/-1}}
@media(max-width:820px){.data-card.product-catalog-card{overflow:visible}.product-catalog-head{padding:17px 16px 14px}.product-catalog-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 16px 11px}.product-catalog-toolbar .overwrite-option{grid-column:1/-1}.product-import-guide{margin:0 16px 12px}.price-grade-table-wrap{margin:0;padding:12px 16px 4px;border-bottom:0;background:#f5f7f4;overflow:visible}.price-grade-table,.price-grade-table.is-viewing,.price-grade-table.is-editing{display:block;width:100%;min-width:0}.price-grade-table thead{display:none}.price-grade-table tbody{display:grid;gap:12px}.price-grade-table tbody tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:58px 14px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(25,52,46,.05)}.price-grade-table tbody tr:has(.empty){display:block;grid-column:1/-1;padding:0}.price-grade-table tbody tr:hover td{background:transparent}.price-grade-table tbody td{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;width:auto!important;padding:0!important;border:0!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere}.price-grade-table tbody td::before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:800;line-height:1.25;text-align:left}.price-grade-table tbody td.empty{display:block;padding:30px 14px!important;text-align:center!important}.price-grade-table tbody td:nth-child(3),.price-grade-table tbody td:nth-child(4),.price-grade-table tbody td:nth-child(5){grid-column:1/-1;grid-template-columns:100px minmax(0,1fr);align-items:center;text-align:left!important}.price-grade-table tbody td:nth-child(5){align-items:start}.price-grade-table .product-row-number{position:absolute;top:14px;left:14px;display:grid;width:34px!important;height:32px;padding:0!important;place-items:center;border-radius:9px;background:#edf2ed;color:var(--muted);font-weight:850}.price-grade-table .product-row-number::before{display:none}.price-grade-table tbody td:nth-child(2){position:absolute;top:15px;right:14px;display:block!important}.price-grade-table tbody td:nth-child(2)::before{display:none}.price-grade-table input{height:44px}.price-grade-table textarea{min-height:58px}.product-inactive-row{background:#f5f6f5!important}.product-inactive-row td{background:transparent!important}.product-catalog-save-bar{margin:12px 12px 14px}.product-add-price-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.product-catalog-head{gap:13px}.product-import-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.product-import-actions .primary,.product-import-actions .secondary{width:100%;min-height:44px;padding:9px}.product-import-actions .primary{grid-column:1/-1}.product-catalog-toolbar{grid-template-columns:1fr}.product-catalog-toolbar .overwrite-option{grid-column:auto}.price-grade-table-wrap{padding:10px 12px 2px}.price-grade-table tbody{grid-template-columns:1fr}.price-grade-table tbody tr{gap:11px}.product-import-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.product-import-preview{padding:20px 16px}.product-import-preview-actions{grid-template-columns:1fr}.product-add-fields{grid-template-columns:1fr}.product-add-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-catalog-save-bar{bottom:max(8px,env(safe-area-inset-bottom));align-items:stretch}.product-catalog-save-bar .permission-save-actions{grid-template-columns:1fr 1fr}}

/* Keep dashboard card details aligned on phones instead of collapsing their desktop pairs. */
@media(max-width:520px){
  .dashboard-three .dashboard-today-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
  .dashboard-three .dashboard-order-count{min-width:0;gap:5px;white-space:nowrap}
  .dashboard-three .dashboard-order-count small,.dashboard-three .dashboard-order-count strong{white-space:nowrap}
  .dashboard-three .dashboard-today-collection{justify-content:flex-start;gap:8px;width:100%}
  .dashboard-three .dashboard-today-collection b{flex:0 0 auto;white-space:nowrap}
  .dashboard-three .dashboard-collection-breakdown{display:flex;flex-wrap:wrap;gap:3px 12px;width:100%}
  .dashboard-three .dashboard-collection-breakdown small{white-space:nowrap}
  .dashboard-three .dashboard-month-forecast{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dashboard-three .dashboard-month-forecast span{min-width:0}
  .dashboard-three .dashboard-month-forecast b{white-space:nowrap}
}

/* Align every mobile dashboard detail with its card title, while keeping comparison badges on the right. */
@media(max-width:720px){
  .dashboard-three .dashboard-sales-benchmarks,
  .dashboard-three .dashboard-month-average,
  .dashboard-three .dashboard-today-collection,
  .dashboard-three .dashboard-collection-breakdown,
  .dashboard-three .dashboard-today-orders,
  .dashboard-three .dashboard-order-count,
  .dashboard-three .dashboard-month-forecast,
  .dashboard-three .dashboard-month-forecast span{
    justify-content:flex-start!important;
    justify-items:start!important;
    text-align:left!important;
  }
  .dashboard-three .dashboard-sales-benchmarks,
  .dashboard-three .dashboard-month-average,
  .dashboard-three .dashboard-today-collection,
  .dashboard-three .dashboard-collection-breakdown,
  .dashboard-three .dashboard-today-orders,
  .dashboard-three .dashboard-month-forecast{
    width:100%;
  }
  .dashboard-three .dashboard-month-average small,
  .dashboard-three .dashboard-month-average b,
  .dashboard-three .dashboard-goal-rate,
  .dashboard-three .dashboard-today-collection small,
  .dashboard-three .dashboard-today-collection b,
  .dashboard-three .dashboard-collection-breakdown small,
  .dashboard-three .dashboard-today-orders small,
  .dashboard-three .dashboard-today-orders strong,
  .dashboard-three .dashboard-month-forecast small,
  .dashboard-three .dashboard-month-forecast b{
    width:auto!important;
    text-align:left!important;
  }
}

/* Anchor each mobile line number to the card, independent of field layout. */
@media(max-width:720px){
  .request-line-table tbody tr[data-line]::before,
  .inbound-line-entry-table tbody tr[data-line]::before{
    content:attr(data-row-number);
    position:absolute;
    top:14px;
    left:14px;
    z-index:3;
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    color:var(--muted);
    font-size:15px;
    font-weight:850;
    line-height:1;
    font-variant-numeric:tabular-nums;
  }
  .request-line-table tbody tr[data-line]>.request-line-number-cell,
  .inbound-line-entry-table tbody tr[data-line]>.inbound-line-number-cell{display:none!important}
}

.history-row-number-col,.region-row-number-col{
  width:54px;
  min-width:54px;
  text-align:center!important;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.dashboard-action-card{display:flex;min-height:330px;flex-direction:column}

.dashboard-todo-standalone{margin-top:18px}
.dashboard-todo-head{align-items:flex-start;margin-bottom:12px!important}
.dashboard-todo-open{width:auto!important;min-width:88px;padding:9px 12px!important}
.dashboard-todo-quick-add{grid-template-columns:144px minmax(0,1fr) 52px auto;margin:0 0 8px}
.dashboard-todo-quick-add input,.dashboard-todo-quick-add select,.dashboard-todo-quick-add .primary{height:52px;min-height:52px}
.dashboard-todo-quick-add .primary{min-width:82px}
.dashboard-todo-quick-detail{width:52px;height:52px;font-size:22px}
.dashboard-todo-list-wrap{flex:1;min-height:0;padding-right:4px}
.dashboard-action-card .todo-item{padding:10px 2px}
.dashboard-action-card .todo-title{font-size:14px!important}
.dashboard-action-card .todo-empty{padding:42px 2px}
.dashboard-action-card .todo-completed-toggle{margin-top:7px;padding:9px 2px}
.dashboard-todo-unavailable{display:grid;flex:1;place-items:center;color:var(--muted);font-size:14px;font-weight:700;text-align:center}
@media(max-width:720px){
  .dashboard-action-card{min-height:260px}
  .dashboard-todo-head{gap:8px}
  .dashboard-todo-open{min-width:74px;padding:8px!important;font-size:12px!important}
  .dashboard-todo-quick-add{position:static;grid-template-columns:132px minmax(0,1fr) 52px auto;padding:0;background:transparent}
  .dashboard-todo-quick-add .primary{min-width:64px;padding:0 9px}
}
@media(max-width:520px){
  .dashboard-todo-quick-add{grid-template-columns:120px minmax(0,1fr) 52px}
  .dashboard-todo-quick-add .primary{grid-column:1/-1;width:100%}
}

@media(max-width:720px){
  .inventory-count-list-head{flex-direction:column;gap:16px}
}

.request-three-level .form-card>.data-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(130px,18%,220px);
  column-gap:10px;
}
.request-three-level .form-card>.data-card>.request-line-table{grid-column:1/-1}
.request-three-level .form-card>.data-card>#addLine{grid-column:1;margin-top:12px;box-shadow:none}
.request-three-level .form-card>.data-card>#clearRequest{
  grid-column:2;
  width:100%;
  margin-top:12px;
  white-space:nowrap;
}
.request-summary-card .request-actions{grid-template-columns:1fr}

.inbound-three-level .form-card>.data-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(130px,18%,220px);
  column-gap:10px;
}
.inbound-three-level .form-card>.data-card>.inbound-line-entry-table{grid-column:1/-1}
.inbound-three-level .form-card>.data-card>#addLine{grid-column:1;margin-top:12px;box-shadow:none}
.inbound-three-level .form-card>.data-card>#clearInbound{
  grid-column:2;
  width:100%;
  margin-top:12px;
  white-space:nowrap;
}
.inbound-summary-card .inbound-actions{grid-template-columns:1fr}

.line-table td.product-quantity-cell,.outbound-edit-table td.modal-quantity-cell{position:relative}
.line-table td.product-quantity-cell input[data-k="quantity"],.outbound-edit-table td.modal-quantity-cell .modal-qty{padding-right:42px!important}
.line-table td.product-quantity-cell::after,.outbound-edit-table td.modal-quantity-cell::after{content:attr(data-quantity-unit);position:absolute;right:17px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:11px;font-weight:800;pointer-events:none}
@media(max-width:720px){.line-table td.product-quantity-cell::after{right:13px;top:auto;bottom:15px;transform:none;font-size:12px}}

.inventory-count-modal-footer>.inventory-count-modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1000px){
  .inventory-count-modal-footer{align-items:stretch;flex-direction:column}
  .inventory-count-modal-footer>.inventory-count-modal-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));width:100%}
  .inventory-count-modal-footer>.inventory-count-modal-actions button{min-width:0}
}
@media(max-width:720px){
  .inventory-count-modal-footer>.inventory-count-modal-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-count-backdrop{display:block;overflow-y:auto;padding:12px 0 calc(12px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
  .modal-card.inventory-count-modal{height:auto;max-height:none;overflow:visible}
  .inventory-count-entry-wrap{flex:none;min-height:0;overflow-x:auto}
}

@media print{
  @page inventoryCount{size:A4 landscape;margin:0}
  .print-inventory-count{page:inventoryCount;box-sizing:border-box;width:297mm;min-height:210mm;margin:0 auto;padding:10mm 12mm 12mm;color:#111827;font-size:10px;line-height:1.3;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .print-inventory-count-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16mm;margin:0 0 5mm;padding:0 0 4mm;border-bottom:2px solid #1f2937}
  #printArea .print-inventory-count-header h1{margin:1mm 0 0;font-size:22px;line-height:1;text-align:left}
  .print-inventory-count-header small{font-size:9px;font-weight:750;color:#475569}
  .print-inventory-count-header>strong{max-width:150mm;font-size:15px;text-align:right;overflow-wrap:anywhere}
  .print-inventory-count-meta{display:grid;grid-template-columns:28mm 42mm 34mm minmax(0,1fr);gap:2mm;margin:0 0 3mm}
  .print-inventory-count-meta div{padding:2.5mm 3mm;background:#f3f4f6}
  .print-inventory-count-meta span{display:block;margin:0 0 1mm;color:#475569;font-size:8px;font-weight:750}
  .print-inventory-count-meta strong{display:block;font-size:10px;overflow-wrap:anywhere}
  .print-inventory-count-guidance{margin:0 0 3mm;color:#334155;font-size:9px}
  #printArea .print-inventory-count table{width:100%;table-layout:fixed;border-collapse:collapse}
  .print-inventory-count thead{display:table-header-group}
  .print-inventory-count tr{break-inside:avoid;page-break-inside:avoid}
  #printArea .print-inventory-count th,#printArea .print-inventory-count td{height:9mm;padding:2mm 2.2mm;border:1px solid #94a3b8;text-align:left;vertical-align:middle;overflow-wrap:anywhere}
  #printArea .print-inventory-count th{height:auto;background:#e9edf2;font-size:9px;font-weight:800;text-align:center}
  #printArea .print-inventory-count td:first-child{text-align:center}
  #printArea .print-inventory-count td:nth-child(4),#printArea .print-inventory-count td:nth-child(5),#printArea .print-inventory-count td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
  .print-inventory-count td small{font-size:8px;color:#475569}
  .print-inventory-count-no{width:10mm}
  .print-inventory-count-category{width:32mm}
  .print-inventory-count-code{width:38mm}
  .print-inventory-count-erp{width:28mm}
  .print-inventory-count-actual{width:34mm}
  .print-inventory-count-difference{width:30mm}
  .print-inventory-count-reason-col{width:101mm}
}

/* Three localized work-report tabs must keep their full labels on phones. */
.quality-status-tabs button{flex-basis:auto;min-width:112px}
@media(max-width:720px){
  .work-report-page .work-report-tabs.work-report-tab-count-3>.secondary,
  .todo-page .work-report-tabs.work-report-tab-count-3>.secondary,
  .quality-issue-page .work-report-tabs.work-report-tab-count-3>.secondary{flex:0 0 150px;white-space:nowrap}
}

/* Customer collection recency and agreed follow-up cycle. */
.collection-status-meta{display:grid;gap:3px;margin-top:7px;color:var(--muted);font-size:11px;font-weight:700;line-height:1.35;white-space:normal}
.collection-status-meta>span{display:block;overflow-wrap:anywhere}
.collection-cycle-status{color:#64746e}
.collection-cycle-status.is-today{color:#9a6700}
.collection-cycle-status.is-over,.collection-cycle-status.is-date-check{color:var(--danger)}
.outbound-collection-field input{margin-bottom:0}
.request-current-receivable .collection-status-meta{margin-top:6px}
.request-customer-collection>strong,.request-customer-collection>small{display:block;overflow-wrap:anywhere}
.request-customer-collection>small{margin-top:4px;color:var(--muted);font-size:11px;font-weight:750}
.request-customer-collection .collection-status-meta{margin-top:5px}
.receivable-collection-cell{vertical-align:middle!important;text-align:left!important;white-space:normal!important}
.receivable-collection-cell .collection-status-meta{margin-top:0}
.receivable-mobile-collection{display:none}
.collection-cycle-help{display:block;margin-top:6px;color:var(--muted);font-size:11px;font-weight:650;line-height:1.4}
.receivables-table th:nth-child(n+6) .table-sort-button{justify-content:flex-end}
.receivables-card .receivables-table th:nth-child(1),.receivables-card .receivables-table td:nth-child(1){width:4%}
.receivables-card .receivables-table th:nth-child(2),.receivables-card .receivables-table td:nth-child(2){width:9%}
.receivables-card .receivables-table th:nth-child(3),.receivables-card .receivables-table td:nth-child(3){width:18%}
.receivables-card .receivables-table th:nth-child(4),.receivables-card .receivables-table td:nth-child(4){width:10%;text-align:left}
.receivables-card .receivables-table th:nth-child(5),.receivables-card .receivables-table td:nth-child(5){width:19%;text-align:left;white-space:normal}
.receivables-card .receivables-table th:nth-child(n+6),.receivables-card .receivables-table td:nth-child(n+6){width:10%;text-align:right;white-space:nowrap}
.receivables-card .receivables-table th:nth-child(5) .table-sort-button{justify-content:flex-start}
.receivables-card .receivables-table th:nth-child(n+6) .table-sort-button{justify-content:flex-end}
@media(max-width:1000px){
  .outbound-request-partner-grid>.outbound-collection-field{grid-column:span 2!important}
  .outbound-request-partner-grid>.outbound-month-sales-field{grid-column:span 2!important}
  .data-card.receivables-card:has(.receivables-table){overflow:auto!important;overscroll-behavior-inline:contain}
  .receivables-sticky-panel{left:0}
  .request-approval-table{width:100%!important;min-width:0!important}
  .request-approval-table thead{display:none}
  .request-approval-table tbody{display:grid;gap:12px}
  .request-approval-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}
  .request-approval-table tbody td{display:grid;align-content:start;gap:3px;width:auto!important;padding:0!important;border:0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
  .request-approval-table tbody td:before{content:attr(data-mobile-label);color:var(--muted);font-size:10px;font-weight:800;line-height:1.3}
  .request-approval-table tbody td:nth-child(3){order:-1;grid-column:1/-1;padding-bottom:10px!important;border-bottom:1px solid var(--line)!important}
  .request-approval-table tbody td:nth-child(6){grid-column:1/-1;text-align:right!important}
  .request-approval-table tbody td:nth-child(6):before{text-align:right}
  .request-approval-table tbody td.empty{grid-column:1/-1;text-align:center!important}
  .receivable-mobile-collection{display:grid}
  .receivables-card .receivables-table th:nth-child(5),.receivables-card .receivables-table td:nth-child(5){display:none}
  .receivables-card .receivables-table{width:900px;min-width:900px}
  .receivables-card .receivables-table th:nth-child(3),.receivables-card .receivables-table td:nth-child(3){width:26%}
}

/* Read-only ERP reference data + in-memory quotation composer. */
.quotation-page{display:grid;gap:18px}.quotation-prototype-note{display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid #cfe0f9;border-radius:14px;background:#f2f7ff;color:#315983}.quotation-prototype-note strong{flex:0 0 auto;color:#2457a6}.quotation-prototype-note span{font-size:12px;font-weight:650}.quotation-layout{display:grid;gap:18px;align-items:start}.quotation-main{display:grid;gap:18px;min-width:0}.quotation-meta-card .card-head small,.quotation-customer-card .card-head small,.quotation-products-card .card-head small,.quotation-summary-card .card-head small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.quotation-meta-grid{margin:0}.quotation-meta-grid input,.quotation-meta-grid select,.quotation-customer-grid input,.quotation-note-field textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:#fbfcfa;padding:10px 11px;color:var(--ink)}.quotation-party-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.quotation-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}.quotation-customer-name,.quotation-customer-address{grid-column:1/-1}.quotation-products-card{min-width:0}.quotation-lines-wrap{overflow:visible}.quotation-lines{width:100%;table-layout:fixed}.quotation-lines th:nth-child(1){width:52px}.quotation-lines th:nth-child(2){width:auto}.quotation-lines th:nth-child(3){width:120px}.quotation-lines th:nth-child(4){width:210px}.quotation-lines th:nth-child(5){width:145px}.quotation-lines th:nth-child(6){width:48px}.quotation-lines th,.quotation-lines td{padding:10px 7px;vertical-align:top}.quotation-lines input{width:100%;min-width:0;height:42px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:9px 10px;color:var(--ink);font:inherit}.quotation-product-cell small{display:block;margin-top:4px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.quotation-quantity-cell>div{position:relative}.quotation-quantity-cell input{padding-right:34px;text-align:right}.quotation-quantity-cell span{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:11px;font-weight:800;pointer-events:none}.quotation-unit-price{text-align:right;font-variant-numeric:tabular-nums}.quotation-unit-price.is-overridden{border-color:#e96767;background:#fff8f8;color:#b43131}.quotation-price-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px 7px;margin-top:5px;min-height:18px}.quotation-price-meta small{color:var(--muted);font-size:10px}.quotation-price-meta span{padding:2px 6px;border-radius:999px;background:#ffe4e4;color:#b43131;font-size:10px;font-weight:850}.quotation-price-meta button{padding:0;border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:750;cursor:pointer}.quotation-amount-cell{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}.quotation-remove-cell{text-align:center}.quotation-summary-card{position:sticky;top:122px}.quotation-summary-card .summary{gap:15px}.quotation-note-field{margin-top:8px}.quotation-note-field textarea{min-height:130px;resize:vertical}.quotation-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin-top:4px}.quotation-actions .primary{width:100%}.quotation-preview-modal-card{width:min(920px,100%)}.quotation-preview-brand{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:2px 0 18px;border-bottom:1px solid var(--line)}.quotation-preview-brand>div{display:grid;gap:3px}.quotation-preview-brand>div span{color:var(--muted);font-size:11px}.quotation-preview-brand img{max-width:140px;max-height:70px;object-fit:contain}.quotation-preview-title{margin-top:20px}.quotation-preview-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.quotation-preview-meta>div{padding:11px;border-radius:10px;background:#f6f8f5}.quotation-preview-meta .wide{grid-column:1/-1}.quotation-preview-meta small,.quotation-preview-meta strong{display:block}.quotation-preview-meta small{margin-bottom:4px;color:var(--muted);font-size:11px}.quotation-preview-meta strong{overflow-wrap:anywhere}.quotation-preview-table-wrap{overflow:auto}.quotation-preview-table{min-width:620px}.quotation-preview-table th:nth-child(n+2),.quotation-preview-table td:nth-child(n+2){text-align:right}.quotation-preview-table td small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.quotation-preview-note{margin-top:18px;padding:14px;border-radius:10px;background:#f6f8f5}.quotation-preview-note small{color:var(--muted);font-weight:750}.quotation-preview-note p{margin-top:5px;white-space:pre-wrap}.modal-card .quotation-preview-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin-top:20px}.modal-card .quotation-preview-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;padding:0 14px!important}.quotation-preview-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}
.quotation-meta-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.quotation-layout{grid-template-columns:minmax(0,1fr)}.quotation-card-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.quotation-meta-card>.card-head,.quotation-products-card>.card-head{gap:12px}.quotation-meta-card>.card-head>div:first-child,.quotation-products-card>.card-head>div:first-child{min-width:0;flex:1}.quotation-meta-card>.card-head button,.quotation-products-card>.card-head button{width:auto;flex:0 0 auto}

@media(max-width:1180px){.quotation-layout{grid-template-columns:1fr}.quotation-summary-card{position:static}.quotation-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:860px){.quotation-party-grid{grid-template-columns:1fr}}
@media(max-width:860px){
  .quotation-page{gap:12px}.quotation-prototype-note{align-items:flex-start;flex-direction:column;gap:3px}.quotation-meta-grid,.quotation-customer-grid{grid-template-columns:1fr}.quotation-customer-name,.quotation-customer-address{grid-column:auto}.quotation-products-card{padding:18px 14px}.quotation-lines-wrap{overflow:visible}.quotation-lines{min-width:0!important}.quotation-lines thead{display:none}.quotation-lines tbody{display:grid;gap:12px}.quotation-lines tbody tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:54px 14px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}.quotation-lines tbody tr::before{content:attr(data-row-number);position:absolute;top:14px;left:14px;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#eef3f8;color:var(--muted);font-weight:850}.quotation-lines tbody td{display:grid;gap:5px;width:auto!important;padding:0!important;border:0!important;text-align:left!important;white-space:normal!important}.quotation-lines tbody td::before{content:attr(data-mobile-label);color:var(--muted);font-size:10px;font-weight:800}.quotation-lines .quotation-line-number{display:none}.quotation-lines .quotation-product-cell,.quotation-lines .quotation-amount-cell{grid-column:1/-1}.quotation-lines .quotation-amount-cell{text-align:right!important}.quotation-lines .quotation-amount-cell::before{text-align:right}.quotation-lines .quotation-remove-cell{position:absolute;top:13px;right:12px;display:block!important}.quotation-lines .quotation-remove-cell::before{display:none}.quotation-lines .quotation-remove-cell .icon-button{font-size:24px}.quotation-price-meta{justify-content:flex-start}.quotation-actions{grid-template-columns:1fr}.quotation-preview-meta{grid-template-columns:1fr}.quotation-preview-meta .wide{grid-column:auto}.quotation-preview-modal-card{padding:20px 16px}.quotation-preview-brand{align-items:flex-start;flex-direction:column-reverse}.quotation-preview-brand img{max-width:120px}.quotation-summary-card{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
}

@media print{
  @page quotation{size:A4 portrait;margin:0}#printArea .print-quotation,#printArea .print-quotation *{font-family:"Google Sans Flex",var(--app-font)!important}.print-quotation{page:quotation}.print-quotation .print-invoice-head{margin-bottom:12px!important}.print-quotation-company-meta{display:flex!important;flex-wrap:wrap;gap:2px 14px;margin-top:8px;font-size:10px;color:#475569}.print-quotation-title{margin:0 0 24px;padding:0 0 14px;border-bottom:2px solid #111827;text-align:center}.print-quotation-title h2{margin:0!important;font-size:27px!important;font-weight:850!important;letter-spacing:.2em;text-align:center!important}.print-quotation-title p{margin:6px 0 0;color:#475569;font-size:12px}.print-quotation .print-invoice-recipient{margin-bottom:24px!important}.print-quotation-note{margin-top:14px;padding:10px 12px;background:#f3f4f6!important}.print-quotation-note strong{font-size:11px}.print-quotation-note p{margin:4px 0 0;white-space:pre-wrap;font-size:11px}.print-quotation .print-invoice-summary{margin-top:24px!important}.print-quotation-table td:nth-child(2){text-align:left!important}
}

/* Product detail and quotation media share the existing modal and table patterns. */
.product-code-link{display:inline-flex;align-items:center;max-width:100%;min-height:44px;padding:5px 7px;border:0;border-radius:8px;background:transparent;color:var(--green2);font:inherit;font-weight:900;text-align:left;text-decoration:underline;text-underline-offset:3px;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.product-code-link:hover{background:#edf3e0}.product-code-link:focus-visible{outline:3px solid rgba(47,128,237,.22);outline-offset:2px}
.product-detail-modal-card,.product-detail-modal>.modal-card,.modal-card.product-detail-modal{width:min(920px,100%);max-height:min(92dvh,920px);overflow:auto}
.product-detail-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}
.product-photo-field{display:grid;align-content:start;gap:9px;min-width:0}.product-photo-preview{display:grid;place-items:center;width:100%;aspect-ratio:4/3;overflow:hidden;border:1px dashed #b9c6c1;border-radius:13px;background:#f7faf6;color:var(--muted)}
.product-photo-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}.product-detail-photo-placeholder{display:grid;place-items:center;width:100%;height:100%;padding:12px;color:var(--muted);font-size:11px;font-weight:750;line-height:1.4;text-align:center}
.product-photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-photo-actions button{width:100%;min-width:0;min-height:44px;padding:8px}.product-photo-actions small,.product-photo-field>small{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.4}
.product-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}.product-detail-fields input,.product-detail-fields select,.product-detail-fields textarea,.product-detail-price-grid input{width:100%;min-width:0}.product-detail-fields textarea{padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:#fbfcfa;color:var(--ink);font:inherit}
.product-detail-description{grid-column:1/-1}.product-detail-description textarea,textarea.product-detail-description{min-height:92px;resize:vertical}
.product-detail-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.product-detail-price-grid input{text-align:right;font-variant-numeric:tabular-nums}
.product-detail-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:20px}.product-detail-actions button{width:100%;min-width:0;min-height:46px}
.quotation-product-media{display:grid;grid-template-columns:52px minmax(0,1fr);gap:9px;align-items:start;min-width:0;text-align:left}.quotation-product-media>div{min-width:0}
.quotation-product-thumb{display:grid;place-items:center;width:52px;height:52px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#f7faf6;color:var(--muted)}
img.quotation-product-thumb,.quotation-product-thumb img{width:52px;height:52px;object-fit:contain;background:#fff}.quotation-product-thumb.product-detail-photo-placeholder{padding:4px;font-size:9px;font-weight:750;line-height:1.2;text-align:center}
.quotation-product-description{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:600;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.quotation-preview-table:has(.quotation-product-media){min-width:0;table-layout:fixed}.quotation-preview-table:has(.quotation-product-media) th:last-child{width:150px}.quotation-preview-table .quotation-product-media{grid-template-columns:58px minmax(0,1fr)}.quotation-preview-table .quotation-product-thumb,.quotation-preview-table img.quotation-product-thumb{width:58px;height:58px}

@media(max-width:760px){
  .product-detail-modal-card,.product-detail-modal>.modal-card,.modal-card.product-detail-modal{width:100%;max-height:94dvh}
  .product-detail-layout{grid-template-columns:180px minmax(0,1fr);gap:16px}.product-detail-fields{grid-template-columns:1fr}.product-detail-price-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .quotation-product-media{grid-template-columns:56px minmax(0,1fr);gap:9px}.quotation-product-thumb,img.quotation-product-thumb{width:56px;height:56px}
}
@media(max-width:520px){
  .product-detail-modal-card,.product-detail-modal>.modal-card,.modal-card.product-detail-modal{max-height:calc(100dvh - 32px);padding:20px 16px}
  .product-detail-layout{grid-template-columns:1fr}.product-photo-field{width:min(280px,100%);justify-self:center}.product-detail-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-detail-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-code-link{width:100%}.quotation-product-description{font-size:11px}.quotation-preview-table:has(.quotation-product-media) th:last-child{width:112px}.quotation-preview-table .quotation-product-media{grid-template-columns:52px minmax(0,1fr)}.quotation-preview-table .quotation-product-thumb,.quotation-preview-table img.quotation-product-thumb{width:52px;height:52px}
}
@media print{
  .print-quotation-table tr{break-inside:avoid;page-break-inside:avoid}.print-quotation-table td.print-quotation-product{text-align:left!important}.print-quotation-product .quotation-product-media{grid-template-columns:13mm minmax(0,1fr);gap:2mm;align-items:center}.print-quotation-product .quotation-product-thumb,.print-quotation-product img.quotation-product-thumb{width:13mm;height:13mm;border-radius:2mm}.print-quotation-product .quotation-product-thumb.product-detail-photo-placeholder{font-size:7px}.print-quotation-product .quotation-product-description{margin-top:1mm;color:#475569!important;font-size:8px;line-height:1.25}
  .print-quotation .print-invoice-footer{grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important}.print-quotation .print-invoice-footer strong{justify-self:center!important}
}

.expense-method-summary{margin:-6px 0 24px}.expense-method-summary h3{margin:0 0 10px;font-size:15px}.expense-method-summary>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.expense-method-summary article{padding:14px 16px;border:1px solid #e1e8ee;border-radius:13px;background:#f8fafc}.expense-method-summary small{display:block;color:var(--muted);font-size:12px;font-weight:750}.expense-method-summary strong{display:block;margin-top:6px;font-size:20px;font-variant-numeric:tabular-nums}
@media(max-width:720px){.expense-method-summary{margin:-4px 0 18px}.expense-method-summary>div{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-method-summary article{padding:13px}.expense-method-summary strong{font-size:17px}}

/* On-demand, server-scoped AI analysis. */

/* Branch-scoped pivot analysis. */
.pivot-analysis-page{display:grid;gap:18px}.pivot-analysis-controls{display:grid;gap:16px}.pivot-analysis-control-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.pivot-analysis-control-grid .field{min-width:0}.pivot-analysis-control-grid select,.pivot-analysis-control-grid input{width:100%;height:44px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit}.pivot-analysis-summary{display:flex;flex-wrap:wrap;gap:10px}.pivot-analysis-summary span{padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:12px;font-weight:700}.pivot-analysis-summary strong{margin-left:4px;color:var(--ink);font-variant-numeric:tabular-nums}.pivot-analysis-chart{display:block;width:100%;min-width:700px;height:auto;overflow:visible}.pivot-analysis-chart text{fill:var(--ink);font:600 13px Arial,sans-serif}.pivot-analysis-chart text.value{fill:var(--muted);font-size:12px}.pivot-analysis-chart-card{overflow:auto}.pivot-analysis-result .card-head strong{font-size:18px;font-variant-numeric:tabular-nums}.pivot-analysis-result .card-head small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.pivot-analysis-table-wrap{overflow:auto}.pivot-analysis-table{min-width:780px}.pivot-analysis-table[data-value-axis=x]{min-width:100%}.pivot-analysis-table th:not(:first-child),.pivot-analysis-table td{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}.pivot-analysis-table tfoot th{background:var(--tds-grey-50,#f7f8fa)}

.pivot-analysis-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:0 0 12px;padding:0;list-style:none}.pivot-analysis-legend li{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:750}.pivot-analysis-legend i{width:10px;height:10px;border-radius:3px}
@media(max-width:1000px){.pivot-analysis-control-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.pivot-analysis-control-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pivot-analysis-chart{min-width:620px}.pivot-analysis-summary{display:grid;grid-template-columns:1fr}.pivot-analysis-summary span{text-align:center}}

/* Admin action center: facts lead directly to the existing ERP workflow. */
.action-center-page{display:grid;gap:24px;--ac-urgent:#c94b3f;--ac-urgent-bg:#fff1ee;--ac-urgent-ink:#a6382f;--ac-important:#d7a237;--ac-important-bg:#fff7dd;--ac-important-ink:#765a0c;--ac-setup:#6f8d86;--ac-setup-bg:#eaf1ef;--ac-setup-ink:#3e625a;--ac-clear:#3f8f5f;--ac-clear-bg:#edf6ef;--ac-track:#e8ede9}.action-center-hero{display:grid;gap:16px;background:linear-gradient(135deg,#fff 0%,#f4f8ef 100%)}.action-center-hero-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.action-center-hero .eyebrow{margin-bottom:5px;color:var(--green2);font-weight:850}.action-center-hero h2{font-size:24px}.action-center-count{display:grid;grid-template-columns:auto auto;column-gap:10px;align-items:center;padding:10px 16px;border-radius:14px;background:var(--green);color:#fff}.action-center-count strong{grid-row:1/3;font-size:34px;line-height:1}.action-center-count span{font-size:12px;font-weight:850}.action-center-count small{color:#bdd0ca;font-size:10px}.action-center-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.action-center-tile{display:grid;gap:4px;min-width:0;padding:13px 14px;border:1px solid var(--line);border-top:4px solid var(--ac-clear);border-radius:13px;background:#fff;color:var(--ink);text-align:left;font:inherit;cursor:pointer;transition:transform .15s,box-shadow .15s}.action-center-tile:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(25,52,46,.1)}.action-center-tile:disabled{cursor:default;background:#fbfcfa}.action-center-tile-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:800}.action-center-tile-label i,.action-center-badge i{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:var(--ac-clear)}.action-center-tile strong{font-size:24px;line-height:1.15;font-weight:900}.action-center-tile small{overflow:hidden;color:var(--muted);font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.action-center-tile.is-urgent{border-top-color:var(--ac-urgent)}.action-center-tile.is-urgent strong{color:var(--ac-urgent-ink)}.action-center-tile.is-urgent i{background:var(--ac-urgent)}.action-center-tile.is-important{border-top-color:var(--ac-important)}.action-center-tile.is-important strong{color:var(--ac-important-ink)}.action-center-tile.is-important i{background:var(--ac-important)}.action-center-tile.is-setup{border-top-color:var(--ac-setup)}.action-center-tile.is-setup i{background:var(--ac-setup)}.action-center-tile.is-clear strong{color:var(--ac-clear)}.action-center-about summary,.action-center-detail summary{width:max-content;max-width:100%;color:var(--muted);font-size:12px;font-weight:800;cursor:pointer}.action-center-about p{max-width:860px;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.6}.action-center-section{display:grid;gap:12px}.action-center-section-head{display:flex;align-items:end;justify-content:space-between;padding:0 2px}.action-center-section-head .eyebrow{margin-bottom:3px}.action-center-section-head h2{font-size:20px}.action-center-section-note{margin-top:-6px;color:var(--muted);font-size:12px}.action-center-list{display:grid;gap:12px}.action-center-card{position:relative;display:grid;gap:12px;overflow:hidden;scroll-margin-top:16px;border-left:5px solid var(--ac-important);box-shadow:0 8px 24px rgba(25,52,46,.06)}.action-center-card.is-urgent{border-left-color:var(--ac-urgent)}.action-center-card.is-setup{border-left-color:var(--ac-setup);background:#fbfcfa}.action-center-card.is-flash{animation:action-center-flash 1.2s ease}@keyframes action-center-flash{0%,40%{box-shadow:0 0 0 3px rgba(201,75,63,.35)}100%{box-shadow:0 8px 24px rgba(25,52,46,.06)}}.action-center-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.action-center-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--ac-important-bg);color:var(--ac-important-ink);font-size:11px;font-weight:900}.action-center-badge i{background:var(--ac-important)}.action-center-card.is-urgent .action-center-badge{background:var(--ac-urgent-bg);color:var(--ac-urgent-ink)}.action-center-card.is-urgent .action-center-badge i{background:var(--ac-urgent)}.action-center-card.is-setup .action-center-badge{background:var(--ac-setup-bg);color:var(--ac-setup-ink)}.action-center-card.is-setup .action-center-badge i{background:var(--ac-setup)}.action-center-area{color:var(--muted);font-size:11px;font-weight:750}.action-center-deadline{margin-left:auto;padding:4px 10px;border-radius:8px;background:#eef1ef;color:#4c5c57;font-size:11px;font-weight:850}.action-center-deadline::before{content:'⏰ '}.action-center-deadline.is-now{background:var(--ac-urgent-bg);color:var(--ac-urgent-ink)}.action-center-card-main{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:20px;align-items:center}.action-center-card-body{display:grid;gap:12px;min-width:0}.action-center-card-body h3{font-size:18px;line-height:1.35}.action-center-progress{display:grid;gap:6px}.action-center-progress-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.action-center-progress-top strong{font-size:26px;line-height:1;font-weight:900;color:var(--green2)}.action-center-progress.is-behind .action-center-progress-top strong{color:var(--ac-urgent-ink)}.action-center-card.is-important .action-center-progress.is-behind .action-center-progress-top strong{color:var(--ac-important-ink)}.action-center-progress-top span{color:var(--muted);font-size:12px;font-weight:750}.action-center-track{position:relative;display:block;height:12px;border-radius:999px;background:var(--ac-track)}.action-center-fill{position:absolute;inset:0 auto 0 0;border-radius:999px;background:var(--ac-clear)}.action-center-progress.is-behind .action-center-fill,.action-center-bars li.is-alert .action-center-fill{background:var(--ac-urgent)}.action-center-card.is-important .action-center-progress.is-behind .action-center-fill,.action-center-card.is-important .action-center-bars li.is-alert .action-center-fill{background:var(--ac-important)}.action-center-marker{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1.5px;border-radius:2px;background:#1f2d29}.action-center-progress-legend{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:700}.action-center-progress-legend i{width:3px;height:12px;border-radius:2px;background:#1f2d29}.action-center-stats{display:flex;flex-wrap:wrap;gap:8px;margin:0}.action-center-stats>div{min-width:120px;padding:8px 12px;border-radius:10px;background:#f4f7f3}.action-center-stats dt{color:var(--muted);font-size:10px;font-weight:750}.action-center-stats dd{margin:2px 0 0;font-size:15px;font-weight:900}.action-center-bars{display:grid;gap:8px;margin:0;padding:0;list-style:none}.action-center-bars li{display:grid;grid-template-columns:110px minmax(0,1fr) 46px minmax(0,170px);gap:10px;align-items:center}.action-center-bar-label{overflow:hidden;font-size:12px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.action-center-bars .action-center-track{height:10px}.action-center-bars strong{font-size:13px;text-align:right}.action-center-bars li.is-alert strong{color:var(--ac-urgent-ink)}.action-center-bars small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.action-center-actions{display:grid;gap:8px}.action-center-actions button{width:100%;min-height:43px}.action-center-detail{border-top:1px dashed var(--line);padding-top:10px}.action-center-detail[open] summary{margin-bottom:8px}.action-center-fact{margin-top:5px;color:var(--muted);font-size:13px}.action-center-samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 0;padding:0;list-style:none}.action-center-samples li{min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#f8faf7}.action-center-samples strong,.action-center-samples span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action-center-samples strong{font-size:12px}.action-center-samples span{margin-top:3px;color:var(--muted);font-size:10px}.action-center-next{margin-top:13px;padding:12px 14px;border-radius:11px;background:#edf3e0}.action-center-next small{color:#506428;font-size:10px;font-weight:900}.action-center-next p{margin-top:3px;font-size:12px;line-height:1.55}.action-center-meta{display:grid;grid-template-columns:1fr .7fr 1.4fr;gap:9px;margin:12px 0 0}.action-center-meta>div{min-width:0}.action-center-meta dt{color:var(--muted);font-size:10px;font-weight:750}.action-center-meta dd{margin:2px 0 0;font-size:11px;font-weight:800;overflow-wrap:anywhere}.action-center-empty{display:flex;align-items:center;gap:14px;color:var(--muted)}.action-center-empty>span{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border-radius:50%;background:#edf3e0;color:var(--green2);font-size:20px;font-weight:900}.action-center-empty h3{color:var(--ink);font-size:16px}.action-center-empty p{margin-top:4px;font-size:12px}.action-center-setup-section{padding-top:2px}
@media(max-width:1024px){.action-center-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.action-center-card-main{grid-template-columns:1fr}.action-center-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.action-center-samples{grid-template-columns:repeat(2,minmax(0,1fr))}.action-center-samples li:nth-child(3){grid-column:1/-1}}
@media(max-width:640px){.action-center-page{gap:20px}.action-center-hero{padding:16px}.action-center-hero h2{font-size:20px}.action-center-hero-head{align-items:flex-start}.action-center-count{padding:8px 12px}.action-center-count strong{font-size:26px}.action-center-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.action-center-tile{padding:11px 12px}.action-center-tile strong{font-size:20px}.action-center-card{gap:10px;padding:16px 14px}.action-center-card-body h3{font-size:16px}.action-center-deadline{margin-left:0}.action-center-stats>div{flex:1 1 calc(50% - 8px);min-width:0}.action-center-bars li{grid-template-columns:84px minmax(0,1fr) 40px}.action-center-bars small{grid-column:1/-1;margin-top:-4px}.action-center-actions{grid-template-columns:1fr}.action-center-samples{grid-template-columns:1fr}.action-center-samples li:nth-child(3){grid-column:auto}.action-center-samples strong,.action-center-samples span{white-space:normal}.action-center-meta{grid-template-columns:1fr}.action-center-meta>div{display:grid;grid-template-columns:72px 1fr;gap:8px}.action-center-meta dd{margin:0}.action-center-section-head h2{font-size:18px}}
.card.action-center-hero{background:linear-gradient(135deg,#fff 0%,#f4f8ef 100%)}.card.action-center-card{border-left:5px solid var(--ac-important);box-shadow:0 8px 24px rgba(25,52,46,.06)}.card.action-center-card.is-urgent{border-left-color:var(--ac-urgent)}.card.action-center-card.is-setup{border-left-color:var(--ac-setup);background:#fbfcfa}
@media(max-width:640px){.card.action-center-hero{padding:16px}.card.action-center-card{padding:16px 14px}}

.outbound-print-format-modal{width:min(440px,calc(100% - 32px))}.outbound-print-format-modal .card-head small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.outbound-print-format-modal select{width:100%;height:44px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit}.modal-card .outbound-print-format-actions.compact-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin-top:20px}.modal-card .outbound-print-format-actions .labeled-action-button{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;max-width:none!important;min-width:0!important;height:52px!important;padding:0 14px!important}.outbound-print-format-actions .labeled-action-button span{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}@media(max-width:720px){.modal-card .outbound-print-format-actions .labeled-action-button{height:48px!important}}
@media print{
  @page outboundThermalReceipt{size:80mm auto;margin:0}
  .print-invoice.print-outbound-thermal{page:outboundThermalReceipt;box-sizing:border-box!important;width:80mm!important;min-height:0!important;height:auto!important;margin:0!important;padding:4mm!important;color:#000!important;font-family:"Noto Sans KR","Noto Sans",sans-serif!important;font-size:10px!important;line-height:1.35!important}
  .print-outbound-thermal .thermal-receipt-head{padding:0 0 3mm!important;border-bottom:1px dashed #000!important;text-align:center!important}.print-outbound-thermal .thermal-receipt-head strong{display:block!important;font-size:14px!important}.print-outbound-thermal .thermal-receipt-head h1{margin:1mm 0!important;font-size:13px!important;font-weight:850!important;letter-spacing:.08em!important;text-align:center!important}.print-outbound-thermal .thermal-receipt-head span{font-size:9px!important}
  .print-outbound-thermal .thermal-receipt-meta{display:grid!important;gap:1.2mm!important;padding:3mm 0!important;border-bottom:1px dashed #000!important}.print-outbound-thermal .thermal-receipt-meta div{display:grid!important;grid-template-columns:23mm minmax(0,1fr)!important;gap:2mm!important}.print-outbound-thermal .thermal-receipt-meta span{color:#000!important}.print-outbound-thermal .thermal-receipt-meta strong{overflow-wrap:anywhere!important;text-align:right!important}
  .print-outbound-thermal .thermal-receipt-table{width:100%!important;margin:3mm 0 0!important;border-collapse:collapse!important;table-layout:fixed!important}.print-outbound-thermal .thermal-receipt-table th{padding:1.5mm 0!important;border-bottom:1px solid #000!important;background:transparent!important;color:#000!important;font-size:9px!important;text-align:left!important}.print-outbound-thermal .thermal-receipt-table th:nth-child(1){width:52%!important}.print-outbound-thermal .thermal-receipt-table th:nth-child(2){width:20%!important;text-align:right!important}.print-outbound-thermal .thermal-receipt-table th:nth-child(3){width:28%!important;text-align:right!important}.print-outbound-thermal .thermal-receipt-table td{padding:1.8mm 0!important;border-bottom:0!important;color:#000!important;font-size:10px!important;vertical-align:top!important}.print-outbound-thermal .thermal-receipt-table td:first-child{padding-right:2mm!important}.print-outbound-thermal .thermal-receipt-table td:nth-child(2),.print-outbound-thermal .thermal-receipt-table td:nth-child(3){text-align:right!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}.print-outbound-thermal .thermal-receipt-table small{display:block!important;margin-top:.4mm!important;line-height:1.2!important}
  .print-outbound-thermal .thermal-receipt-totals{display:grid!important;gap:1.2mm!important;margin-top:3mm!important;padding-top:2mm!important;border-top:1px dashed #000!important}.print-outbound-thermal .thermal-receipt-totals div{display:flex!important;justify-content:space-between!important;gap:4mm!important}.print-outbound-thermal .thermal-receipt-totals strong{font-variant-numeric:tabular-nums!important;text-align:right!important}.print-outbound-thermal .thermal-receipt-totals .thermal-receipt-total{margin-top:1mm!important;padding-top:2mm!important;border-top:1px solid #000!important;font-size:13px!important;font-weight:850!important}.print-outbound-thermal .thermal-receipt-footer{display:grid!important;gap:1mm!important;margin-top:4mm!important;padding-top:2mm!important;border-top:1px dashed #000!important;color:#000!important;font-size:8px!important;text-align:center!important;overflow-wrap:anywhere!important}
  .print-outbound-thermal .thermal-receipt-table td:first-child strong{font-size:15px!important}.print-outbound-thermal .thermal-receipt-table td:nth-child(2){font-size:20px!important;font-weight:850!important}.print-outbound-thermal .thermal-receipt-table td:nth-child(3){font-size:15px!important}
  .print-outbound-thermal .thermal-receipt-table small{font-size:12px!important}.print-outbound-thermal .thermal-quantity-unit{margin-left:.8mm!important;font-size:10px!important;font-weight:400!important}.print-outbound-thermal .thermal-receipt-qr-link{display:block!important;margin:2mm auto 0!important}.print-outbound-thermal .thermal-receipt-qr{display:block!important;width:20mm!important;height:20mm!important;margin:0 auto!important}
}

/* Keep the three dashboard card titles on one top line and distribute their shared five metric rows evenly. */
@media(min-width:1001px){.dashboard-three .stat{align-content:space-between!important;grid-template-rows:repeat(5,auto)!important}}

/* Keep the daily date column readable without separating it too far from sales. */
.daily-status-grid{grid-template-columns:minmax(118px,10%) repeat(var(--daily-status-column-count,6),minmax(0,1fr))}.daily-status-table col.daily-status-date-col{width:10%;min-width:118px}

/* Monthly operational reports reuse the existing sticky month matrix. */
.inbound-tabs{width:100%;display:grid;grid-template-columns:repeat(var(--inbound-tab-count,3),minmax(0,1fr));gap:12px}.inventory-tabs{width:min(860px,100%)}.monthly-quantity-filters{flex-wrap:wrap}.monthly-quantity-card .card-head small{display:block;max-width:760px;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.monthly-quantity-table .history-monthly-sales-column{min-width:118px}.monthly-supplier-table{width:max(100%,1900px)}.monthly-supplier-table .history-monthly-partner-name-column{left:54px;width:250px;min-width:250px;max-width:250px}
@media(max-width:720px){.inbound-tabs{grid-template-columns:repeat(var(--inbound-tab-count,3),minmax(128px,1fr));overflow-x:auto;padding-bottom:10px}.inventory-tabs{overflow-x:auto;flex-wrap:nowrap}.inventory-tabs>.secondary{min-width:126px!important}.monthly-quantity-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-quantity-filters .field:last-child:nth-child(3){grid-column:1/-1}.monthly-supplier-table .history-monthly-partner-name-column{left:42px;width:148px;min-width:148px;max-width:148px;white-space:normal}.monthly-quantity-card .history-monthly-grand-total strong{font-size:19px}}

@media print{html:has(#printArea .print-outbound-receipt),body:has(#printArea .print-outbound-receipt){scrollbar-width:none!important}html:has(#printArea .print-outbound-receipt)::-webkit-scrollbar,body:has(#printArea .print-outbound-receipt)::-webkit-scrollbar{display:none!important}}
@media print{.print-invoice.print-outbound-receipt{min-height:129mm!important}}
/* Keep the receipt ancestors on A5 so their trailing space cannot create an empty default-size page. */
@media print{html:has(#printArea .print-outbound-receipt:not(.print-outbound-thermal)),body:has(#printArea .print-outbound-receipt:not(.print-outbound-thermal)),#printArea:has(.print-outbound-receipt:not(.print-outbound-thermal)){page:outboundReceipt;min-height:0!important;height:auto!important;overflow:visible!important}}

/* Expense categories can be longer than their fixed table column. */
.expense-history-table th:nth-child(3),.expense-history-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere}

/* Correction entry keeps quantity and price visible on small screens. */
.outbound-correction-modal .outbound-edit-table input,.outbound-correction-modal .outbound-edit-table select{width:100%;min-width:0;max-width:100%}
.outbound-correction-summary{overflow-wrap:anywhere;margin:12px 0;color:var(--muted)}
@media(max-width:720px){
  .outbound-correction-modal .outbound-edit-table{display:block;min-width:0;width:100%}
  .outbound-correction-modal .outbound-edit-table thead{display:none}
  .outbound-correction-modal .outbound-edit-table tbody{display:block}
  .outbound-correction-modal .outbound-edit-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px 0}
  .outbound-correction-modal .outbound-edit-table td{display:block;min-width:0;width:auto;padding:4px}
  .outbound-correction-modal .outbound-edit-table td:first-child{grid-column:1/-1}
  .outbound-correction-modal .outbound-edit-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:6px;color:var(--muted);font-size:12px}
  .outbound-correction-modal .outbound-edit-table td:last-child{grid-column:1/-1;text-align:right}
  .outbound-correction-modal .outbound-edit-table td.modal-quantity-cell::after{top:auto;bottom:20px;transform:none}
}

/* Table-first pivot workspace. */
.pivot-v2 .pivot-analysis-control-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.pivot-v2 .field label{display:grid;gap:8px}

.pivot-check{display:flex;gap:10px;align-items:center;font-size:13px;padding:8px 0;overflow-wrap:anywhere}
.pivot-filter-options .pivot-check[hidden]{display:none}
.pivot-v2 input[type=checkbox]{width:18px;height:18px;min-height:18px;flex-shrink:0;accent-color:#1267f5}

.pivot-filter-options{max-height:240px;overflow:auto;padding:8px}
.pivot-basis{font-size:12px;line-height:1.7;color:#627086;margin:16px 0}
.pivot-v2-table{border-collapse:separate;border-spacing:0;min-width:100%}
.pivot-v2-table th:first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:180px;max-width:320px;white-space:normal}
.pivot-v2-table thead th{white-space:normal;min-width:150px;background:#eef3f9}
.pivot-v2-table .pivot-subtotal th,.pivot-v2-table .pivot-subtotal td,.pivot-v2-table tfoot th,.pivot-v2-table tfoot td{background:#eef3f9;font-weight:700}
.pivot-v2 .pivot-cell,.pivot-v2 .pivot-group{background:transparent;color:inherit;border:0;border-radius:4px;padding:8px;min-height:40px;font:inherit;cursor:pointer}
.pivot-v2 .pivot-cell{width:100%;text-align:right;text-decoration:underline;text-decoration-color:#c8d6ec;text-underline-offset:4px;white-space:nowrap}
.pivot-v2 .pivot-group{text-align:left}
.pivot-v2 button:focus-visible,.pivot-v2 summary:focus-visible{outline:2px solid #1267f5;outline-offset:2px}
.pivot-source-dialog{width:min(1200px,94vw);max-height:86vh;border:0;border-radius:18px;padding:24px;color:#172033}
.pivot-source-dialog::backdrop{background:#15203388}
.pivot-source-dialog .pivot-analysis-table-wrap{max-height:65vh;overflow:auto}
.pivot-source-dialog td{white-space:nowrap}

@media(max-width:900px){.pivot-v2 .pivot-analysis-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.pivot-v2 .pivot-analysis-control-grid{grid-template-columns:minmax(0,1fr)}.pivot-v2-table th:first-child{min-width:130px;max-width:160px}.pivot-source-dialog{padding:14px}}

.pivot-v3{display:grid;gap:16px}.pivot-v3 .card{min-width:0}.pivot-start{display:grid;gap:14px}.pivot-start-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.pivot-start-head h2{margin:2px 0 0;font-size:22px}
.pivot-segment{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:12px;background:#eef1f5}.pivot-v3 .pivot-segment button{width:auto;min-height:34px;padding:6px 12px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:800;cursor:pointer}.pivot-v3 .pivot-segment button[aria-pressed="true"]{background:#fff;color:#1267f5;box-shadow:0 1px 4px rgba(20,40,80,.12)}
.pivot-quick,.pivot-axis-row{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:start;gap:10px}.pivot-axis-label{padding-top:8px;color:var(--muted);font-size:12px;font-weight:800}.pivot-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.pivot-v3 .pivot-chip-button{width:auto;min-height:34px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:13px;font-weight:700;cursor:pointer}.pivot-v3 .pivot-chip-button[aria-pressed="true"]{border-color:#1267f5;background:#eaf2ff;color:#1257c9}
.pivot-chip{display:inline-flex;align-items:center;gap:2px;min-height:34px;padding:2px 4px 2px 6px;border-radius:999px;background:#eaf2ff;color:#1257c9}.pivot-chip b{padding:0 4px;font-size:13px}.pivot-v3 .pivot-chip button{width:26px;min-width:26px;height:26px;min-height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:15px;line-height:1;cursor:pointer}.pivot-v3 .pivot-chip button:disabled{opacity:.3;cursor:default}.pivot-v3 .pivot-chip button:not(:disabled):hover{background:rgba(18,103,245,.12)}.pivot-chip.is-filter{background:#fff4df;color:#8a5a00}.pivot-chip.is-saved{background:#eef1f5;color:var(--ink)}.pivot-v3 .pivot-chip.is-saved button:first-child{width:auto;border-radius:999px;padding:0 8px;font-size:13px;font-weight:700}
.pivot-v3 .pivot-add,.pivot-v3 .pivot-chips>select{width:auto;min-height:34px;padding:4px 30px 4px 10px;border:1px dashed #9fb3cc;border-radius:999px;background-color:#fff;font-size:13px}.pivot-dates{display:inline-flex;align-items:center;gap:6px}.pivot-v3 .pivot-dates input{width:190px;min-height:34px;padding:4px 8px;font-size:13px}
.pivot-swap-row{padding-left:94px}.pivot-v3 .pivot-swap-row button{width:auto;min-height:30px;padding:4px 12px;font-size:12px}.pivot-toggle{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700}.pivot-muted{color:var(--muted);font-size:13px}.pivot-v3 .pivot-link{width:auto;min-height:30px;padding:0 6px;border:0;background:none;color:#1267f5;font-size:12px;font-weight:800;text-decoration:underline;cursor:pointer}
.pivot-builder{display:grid;gap:12px}.pivot-v3 .pivot-filter-keys,.pivot-v3 .pivot-filter-panel{margin-left:94px}.pivot-filter-keys{display:flex;flex-wrap:wrap;gap:6px;margin-top:-4px}.pivot-filter-keys b{margin-left:6px;padding:0 6px;border-radius:999px;background:#1257c9;color:#fff;font-size:11px}.pivot-filter-panel{border:1px solid #cfe0fb;border-radius:12px;background:#f8fbff;padding:10px 12px}.pivot-filter-panel-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:6px}.pivot-filter-panel-head strong{margin-right:auto;font-size:14px}.pivot-filter-panel-head small{margin-left:6px;color:var(--muted);font-weight:700}.pivot-filter-panel-head input{width:min(240px,100%);min-height:34px;padding:0 10px}.pivot-filter-panel .pivot-filter-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));column-gap:16px;max-height:260px;padding:4px 2px}.pivot-filter-panel .pivot-check{padding:6px 0}.pivot-filter-panel .pivot-check:has(:checked){color:#1257c9;font-weight:700}.pivot-builder-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:12px;border-top:1px solid var(--line)}.pivot-v3 .pivot-builder-actions>button{width:auto;min-height:38px;padding:6px 14px}.pivot-v3 .pivot-basis{flex:1 1 220px;text-align:right}.pivot-v3 .pivot-basis summary{color:var(--muted);font-size:12px;font-weight:800;cursor:pointer}.pivot-v3 .pivot-basis[open]{text-align:left}.pivot-v3 .pivot-basis p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}
.pivot-result-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.pivot-result-head h2{margin:0}.pivot-result-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pivot-v3 .pivot-result-tools>select{width:auto;min-height:38px}.pivot-v3 .pivot-result-tools>button{width:auto;min-height:38px;padding:6px 14px}.pivot-hint{margin:8px 0;color:var(--muted);font-size:12px}.pivot-share{margin-left:6px;color:var(--muted);font-size:11px;font-weight:600}
.pivot-v3 .pivot-analysis-chart-card{margin:0 0 12px;padding:0;box-shadow:none}.pivot-rank-bars{display:grid;gap:8px}.pivot-rank-row{display:grid;grid-template-columns:minmax(90px,220px) minmax(0,1fr) auto;align-items:center;gap:10px}.pivot-rank-label{overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.pivot-rank-track{position:relative;height:14px;border-radius:999px;background:#eef1f5}.pivot-rank-track span{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#1267f5}.pivot-rank-track span.is-negative{background:#c64938}.pivot-rank-row strong{font-size:13px;font-variant-numeric:tabular-nums}
@media(max-width:720px){.pivot-quick,.pivot-axis-row{grid-template-columns:minmax(0,1fr);gap:6px}.pivot-axis-label{padding-top:0}.pivot-swap-row,.pivot-v3 .pivot-filter-keys,.pivot-v3 .pivot-filter-panel{padding-left:0;margin-left:0}.pivot-filter-panel-head strong{flex:1 1 100%}.pivot-filter-panel-head input{flex:1 1 100%;width:100%}.pivot-dates{width:100%}.pivot-v3 .pivot-dates input{flex:1 1 0;width:auto;min-width:0}.pivot-subjects{width:100%}.pivot-rank-row{grid-template-columns:minmax(70px,110px) minmax(0,1fr) auto}.pivot-v3 .pivot-basis{text-align:left}}

.inbound-detail-table-wrap{overflow-x:auto}.inbound-detail-table-wrap table{min-width:660px}.inbound-detail-table-wrap .number-cell{text-align:right;white-space:nowrap}.inbound-cost-basis{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.inbound-cost-basis:empty{display:none}

/* Keep transport cost directly below transport weight in the inbound summary. */
.inbound-summary-card .summary>.inbound-transport-cost-field{grid-column:2!important;grid-row:2!important}
.inbound-summary-card .summary>.inbound-note-field,.inbound-summary-card .summary>.inbound-actions{grid-row:3!important}
@media(max-width:900px){.inbound-summary-card .summary>.inbound-transport-cost-field,.inbound-summary-card .summary>.inbound-note-field,.inbound-summary-card .summary>.inbound-actions{grid-column:1!important;grid-row:auto!important}}

/* Role dashboard priorities */
.dashboard-tabs{display:flex;gap:8px;margin-bottom:20px}
.dashboard-tabs>.secondary{flex:1;min-width:0;font-size:13px;white-space:normal}
.dashboard-tabs>.secondary[aria-selected="true"]{background:var(--primary,#0064ff);border-color:var(--primary,#0064ff);color:#fff}
.dashboard-tabs>.secondary:focus-visible{outline:3px solid var(--primary,#0064ff);outline-offset:2px}
.dashboard-panel[hidden]{display:none!important}
.dashboard-panel>.dashboard-focus,.dashboard-panel>.dashboard-action-card{margin-top:0}
@media(max-width:900px){.dashboard-tabs{overflow-x:auto;padding-bottom:8px}.dashboard-tabs>.secondary{flex:0 0 170px}}
@media(max-width:520px){.dashboard-tabs>.secondary{flex-basis:154px;min-height:48px;font-size:12px}}
.dashboard-focus{min-width:0;margin:22px 0}
.focus-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.focus-heading h2{margin:0;font-size:22px}.focus-heading p{margin:6px 0 0;color:var(--muted);font-size:13px}
.focus-filters{display:flex;flex-wrap:wrap;gap:8px}
.focus-controls{display:flex;align-items:flex-end;flex-wrap:wrap;justify-content:flex-end;gap:12px;min-width:0}
.focus-manager{display:grid;gap:5px;min-width:180px;max-width:100%;font-size:12px;color:var(--muted)}.focus-manager select{width:100%;min-width:0;max-width:260px;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
.focus-scope-note{margin:0 0 8px;font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:600px){.focus-controls{width:100%;justify-content:flex-start}.focus-manager{width:100%}.focus-manager select{max-width:none}}
.focus-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.card.focus-kpi{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:18px 20px;min-width:0;min-height:0;color:var(--text);cursor:pointer;border-top:4px solid #357961;background:#fff}
.focus-kpi>span{font-size:13px;font-weight:700;color:var(--muted)}.focus-kpi>strong{font-size:clamp(20px,2vw,29px);line-height:1.25;overflow-wrap:anywhere}.focus-kpi>small{font-size:12px;line-height:1.5;color:var(--muted)}.focus-kpi-track{position:relative;display:block;width:100%;height:8px;border-radius:999px;background:#e6ebe8}.focus-kpi-fill{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#357961}.focus-kpi-marker{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1.5px;border-radius:2px;background:#1f2d29}
.card.focus-kpi.is-urgent{border-top-color:#c64938}.card.focus-kpi.is-urgent>strong,.card.focus-kpi.is-behind>strong{color:#ae3327}.card.focus-kpi.is-behind .focus-kpi-fill{background:#c64938}.card.focus-kpi.is-focus{background:#eef7f1}
.focus-kpi:focus-visible,.focus-filters button:focus-visible{outline:3px solid #357961;outline-offset:3px}
.focus-basis{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 8px}.focus-about{margin:12px 2px 16px}.focus-about summary,.focus-row-detail summary{width:max-content;max-width:100%;color:var(--muted);font-size:12px;font-weight:800;cursor:pointer}.focus-about[open] summary{margin-bottom:8px}
.card.focus-work{padding:0;overflow:hidden}.focus-work .card-head{padding:18px 20px;margin:0}.focus-filters{padding:0 20px 16px}.focus-filters button{display:inline-flex;align-items:center;gap:8px;font-size:12px;min-height:36px}.focus-filters button b{min-width:22px;padding:1px 7px;border-radius:999px;background:#eef1ef;color:#3f4b47;font-size:11px;text-align:center}.focus-filters button[aria-pressed="true"]{background:#e4f1e9;color:#1c6041;border-color:#9cbfaa}.focus-filters button[aria-pressed="true"] b{background:#1c6041;color:#fff}
.focus-list{max-height:650px;overflow:auto}.focus-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;border-top:1px solid var(--line,#e6e9e7);border-left:4px solid transparent;padding:14px 20px 12px 16px;min-width:0}.focus-row.is-urgent{border-left-color:#c64938}.focus-row.is-warn{border-left-color:#d7a237}.focus-party,.focus-row>div:first-child{flex:1 1 220px;min-width:0}.focus-row strong{display:block;font-size:15px;overflow-wrap:anywhere}.focus-row small{display:block;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}.focus-row p{margin:4px 0;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.focus-tags{display:flex;flex:2 1 240px;flex-wrap:wrap;gap:6px;min-width:0}.focus-tag{padding:4px 10px;border-radius:999px;background:#eef1ef;color:#3f4b47;font-size:12px;font-weight:800;white-space:nowrap}.focus-tag.is-urgent{background:#fff1ee;color:#a6382f}.focus-tag.is-warn{background:#fff7dd;color:#765a0c}.focus-tag.is-ok{background:#edf6ef;color:#2f7a4c}.focus-tag.is-info{background:#eaf1fb;color:#2f5f9e}.focus-figure{flex:0 0 120px;text-align:right}.focus-figure strong{font-size:17px;font-weight:900}.focus-figure small{font-size:11px}.focus-row-actions{display:flex;flex:0 0 auto;gap:8px}.focus-row-actions button{min-height:38px;padding:0 14px;font-size:12px;white-space:nowrap}.focus-row-detail{flex:1 0 100%;padding-top:2px}.focus-row-detail[open]{padding:8px 12px;border-radius:10px;background:#f6f8f6}.focus-row-detail[open] summary{margin-bottom:6px}.focus-next{margin-top:8px;white-space:pre-wrap}.focus-follow-up{padding:14px;background:#f2f7f4;border-radius:12px;gap:10px}.focus-follow-up small{display:block;line-height:1.6}.focus-follow-up .field-grid{margin-top:8px}
@media(max-width:1100px){.focus-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.focus-heading{align-items:flex-start;flex-direction:column}.focus-heading h2{font-size:19px}.focus-kpis{gap:10px}.card.focus-kpi{padding:14px}.focus-kpi>strong{font-size:20px}.focus-row{gap:10px;padding:14px 14px 12px 12px}.focus-tags{flex-basis:100%}.focus-figure{flex:1 1 auto;text-align:left}.focus-row-actions{display:grid;flex:1 0 100%;grid-template-columns:repeat(2,minmax(0,1fr))}.focus-row-actions button{white-space:normal}.focus-work .card-head{padding:16px}.focus-filters{padding:0 16px 14px}}
.monthly-quantity-table .history-monthly-sales-column.is-zero,.monthly-quantity-table .history-monthly-sales-column.is-empty{color:#b4bcc5;font-weight:400}.monthly-quantity-table .history-monthly-sales-column:not(.is-zero):not(.is-empty){font-weight:800;color:var(--ink)}
.inventory-summary-card.is-toggle{cursor:pointer;transition:box-shadow .15s,transform .15s}.inventory-summary-card.is-toggle:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(25,52,46,.1)}.inventory-summary-card.is-toggle:focus-visible{outline:3px solid #357961;outline-offset:2px}.inventory-summary-card.is-toggle.is-active{box-shadow:inset 0 0 0 2px #c64938}.inventory-product-name{display:block;margin-top:2px;overflow:hidden;color:var(--muted);font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.inventory-stock-meter{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:4px}.inventory-stock-track{position:relative;display:block;width:64px;height:6px;border-radius:999px;background:#e6ebe8}.inventory-stock-track>span{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#357961}.inventory-stock-track>i{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:#1f2d29}.inventory-stock-meter.is-low .inventory-stock-track>span{background:#d7a237}.inventory-stock-meter.is-short .inventory-stock-track>span{background:#c64938}.inventory-stock-meter small{min-width:34px;color:var(--muted);font-size:11px;font-weight:700;text-align:right}.inventory-stock-meter.is-short small{color:#ae3327}
@media(max-width:720px){.inventory-card .inventory-table{display:block;width:100%;min-width:0}.inventory-card .inventory-table colgroup,.inventory-card .inventory-table thead{display:none}.inventory-card .inventory-table tbody,.inventory-card .inventory-table tfoot{display:block}.inventory-card .inventory-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:10px 4px;border-bottom:1px solid var(--line)}.inventory-card .inventory-table tr>*{display:block;min-width:0;width:auto;padding:0;border:0;background:none;text-align:left}.inventory-card .inventory-table tbody tr>:is(:nth-child(1),:nth-child(2),:nth-child(4),:nth-child(6),:nth-child(7)){display:none}.inventory-card .inventory-table tbody tr>:nth-child(5){text-align:right}.inventory-card .inventory-table tbody td[colspan]{grid-column:1/-1}.inventory-card .inventory-table tfoot tr>:is(:nth-child(2),:nth-child(4),:nth-child(5)){display:none}.inventory-card .inventory-table tfoot tr>:nth-child(3){text-align:right}.inventory-card .inventory-table tfoot tr{border-radius:10px;background:#f8faf9}.inventory-card .inventory-card-head{flex-wrap:wrap}.inventory-card .inventory-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}}
.history-toolbar{flex-wrap:wrap}.history-toolbar>button{flex:0 0 auto;white-space:nowrap}
.historical-import-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 12px}.historical-import-status>div{min-width:0;padding:10px 12px;border-radius:10px;background:#f6f8fa}.historical-import-status dt{color:var(--muted);font-size:12px;font-weight:700}.historical-import-status dd{margin:2px 0 0;font-size:14px;font-weight:800;overflow-wrap:anywhere}.historical-import-warning{margin:0 0 8px;padding:10px 12px;border-radius:10px;background:#fff7dd;color:#765a0c;font-size:13px;font-weight:700}.historical-import-format summary{color:var(--muted);font-size:12px;font-weight:800;cursor:pointer}.historical-import-format p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}@media(max-width:720px){.historical-import-status{grid-template-columns:repeat(2,minmax(0,1fr))}}
.receivable-risk-tag{display:inline-block;width:max-content;max-width:100%;margin-bottom:3px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800}.receivable-risk-tag.is-urgent{background:#fff1ee;color:#a6382f}.receivable-risk-tag.is-warn{background:#fff7dd;color:#765a0c}#receivableBody tr.is-risk-urgent>td:first-child{box-shadow:inset 4px 0 0 #c64938}#receivableBody tr.is-risk-warn>td:first-child{box-shadow:inset 4px 0 0 #d7a237}.receivable-admin-tools{position:relative}.receivable-admin-tools>summary{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:13px;font-weight:800;cursor:pointer;list-style:none}.receivable-admin-tools>summary::-webkit-details-marker{display:none}.receivable-admin-tools>summary::after{content:"▾";margin-left:6px}.receivable-admin-tools-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:20;display:grid;gap:8px;min-width:230px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(20,40,60,.16)}.receivable-admin-tools-menu p{margin:0;color:#a6382f;font-size:12px;font-weight:700}.receivable-admin-tools-menu button{width:100%;white-space:nowrap}.daily-status-table td.is-zero{color:#b4bcc5;font-weight:400}.daily-status-table tr.is-today>td{background:#eef5ff}.daily-status-today{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#1267f5;color:#fff;font-size:10px;font-weight:800}
.expense-row-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px}.expense-row-actions button{flex:0 0 auto;width:auto;margin:0}.expense-share-cell{white-space:nowrap}.expense-share-track{position:relative;display:inline-block;width:90px;height:8px;margin-right:10px;border-radius:999px;background:#eef1f5;vertical-align:middle}.expense-share-track>span{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#d7a237}@media(max-width:720px){.expense-share-track{width:48px;margin-right:6px}}
.partner-idle-days{display:inline-block;min-width:34px;padding:2px 8px;border-radius:999px;font-variant-numeric:tabular-nums;font-weight:700}.partner-idle-days.is-warn{background:#fff7dd;color:#765a0c}.partner-idle-days.is-urgent{background:#fff1ee;color:#a6382f;font-weight:800}
.employee-filter-chips,.settings-focus-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}.employee-filter-chip,.settings-focus-tab{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:32px;padding:4px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:12px;font-weight:700;cursor:pointer}.employee-filter-chip b,.settings-focus-tab b{min-width:20px;padding:0 6px;border-radius:999px;background:#eef1ef;color:#3f4b47;font-size:11px;text-align:center}.employee-filter-chip[aria-pressed=true],.settings-focus-tab[aria-pressed=true]{border-color:#9cbfaa;background:#e4f1e9;color:#1c6041}.employee-filter-chip[aria-pressed=true] b,.settings-focus-tab[aria-pressed=true] b{background:#1c6041;color:#fff}.employee-tenure{display:block;margin-top:2px;color:var(--muted);font-size:11px;font-weight:600}.employee-list-table tr.is-inactive td{color:#9aa5b1}.employee-status-badge.is-inactive{background:#f1f3f5;color:#6d7b89}
.delivery-weekday{display:inline-block;margin-left:6px;color:var(--muted);font-size:11px;font-weight:700}.delivery-weekday.is-weekend{color:#c64938}.delivery-history-table tr.delivery-history-total>*{border-top:2px solid var(--line);background:#f8faf9;font-weight:800}.delivery-history-table tr.delivery-history-total th{text-align:left}
.settings-focus-tabs{margin:16px 0 4px!important}.settings-focus-tab{min-height:38px!important;font-size:14px!important}.settings-foldable>.card-head{align-items:center}.settings-foldable.is-folded>.card-head{margin-bottom:0}.settings-foldable.is-folded>:not(.card-head){display:none!important}.settings-fold-summary{display:block;margin-top:6px;color:var(--ink);font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-foldable:not(.is-folded) .settings-fold-summary{display:none}.settings-foldable>.card-head>div{min-width:0}.settings-fold-toggle{flex:0 0 auto;width:auto;white-space:nowrap}.settings-focus-tabs~.card[data-settings-group]{margin:16px 0 0!important}@media(max-width:720px){.settings-focus-tab{font-size:13px!important}.settings-foldable>.card-head{display:flex;flex-direction:row;gap:10px}.settings-foldable.is-folded>.card-head small,.card[data-settings-group=lists]>.card-head small{display:none}.card[data-settings-group]>.card-head{align-items:center}.card[data-settings-group=lists]>.card-head>button,.card[data-settings-group=company]>.card-head>button{flex:0 0 auto;width:auto;white-space:nowrap}}.permission-group-toggle{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left}.permission-group-toggle:before{content:"▸";color:var(--muted);font-size:11px;transition:transform .15s}.permission-menu-row.is-open .permission-group-toggle:before{transform:rotate(90deg)}.permission-group-summary{display:block;margin:3px 0 0 17px;color:var(--muted);font-size:11px;font-weight:700}.permission-menu-row.is-open .permission-group-summary{display:none}.permission-group-actions{display:flex;gap:6px}.permission-group-actions button{width:auto;min-height:32px;padding:4px 12px;font-size:12px;white-space:nowrap}.permission-table-compact th:first-child,.permission-table-compact td:first-child{width:210px!important}.permission-menu-row .permission-group-toggle strong:before{display:none}.permission-group-toggle:before{font-size:13px}.permission-review-more summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:800}@media(max-width:720px){.permission-role-tabs{display:flex!important;flex-wrap:nowrap}.permission-role-tab{flex:0 0 auto}.permission-count-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px}.permission-count-grid>div{padding:6px 2px}.permission-count-grid strong{font-size:18px}.permission-table .permission-menu-cell{position:sticky;left:0;z-index:1;background:#fff}.permission-table-compact th:first-child,.permission-table-compact td:first-child{width:150px!important}.permission-group-summary{margin-left:0}.permission-menu-row .permission-menu-cell{background:#f6f8f3}.permission-row-note{display:none}}.attendance-today-chips{margin:0 0 10px}.attendance-employee-status-list>[hidden],.attendance-record-table tr[hidden]{display:none!important}.attendance-employee-status-list small{font-variant-numeric:tabular-nums}.attendance-count-warn{display:inline-block;min-width:22px;padding:1px 7px;border-radius:999px;background:#fff1e0;color:#a4570a;font-weight:800}.attendance-zero{color:#b3bcc6}.attendance-exception-row td:first-child{box-shadow:inset 3px 0 0 #f0a548}.attendance-request-item>div:last-child{display:flex;gap:6px;flex:0 0 auto}.attendance-request-item button{width:auto;white-space:nowrap;padding:0 14px}@media(max-width:720px){.attendance-monthly-admin table{min-width:0!important;width:100%}.attendance-monthly-admin th:nth-child(2),.attendance-monthly-admin td:nth-child(2),.attendance-monthly-admin th:nth-child(3),.attendance-monthly-admin td:nth-child(3){display:none}.attendance-monthly-admin th,.attendance-monthly-admin td{padding-left:4px!important;padding-right:4px!important;font-size:12px;text-align:center}.attendance-monthly-admin td:first-child,.attendance-monthly-admin th:first-child{text-align:left}.attendance-summary-grid:not(.compact){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.attendance-summary-grid:not(.compact)>.card{padding:10px!important;min-height:0!important}.attendance-summary-grid:not(.compact) span{font-size:11px}.attendance-summary-grid:not(.compact) strong{font-size:17px}}@media(min-width:1001px){.dashboard-main-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.dashboard-main-grid>.dashboard-closing-card{grid-column:1;grid-row:1}.dashboard-main-grid>.dashboard-top-receivables{grid-column:2/span 2;grid-row:1}}@media(min-width:1280px){.dashboard-secondary-grid:has(>.dashboard-attendance-card+.dashboard-employee-card){grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.dashboard-secondary-grid>.dashboard-attendance-card+.dashboard-employee-card{grid-column:2/span 2}.dashboard-attendance-card table{min-width:0!important;width:100%;table-layout:auto}.dashboard-attendance-card th,.dashboard-attendance-card td{padding-left:5px!important;padding-right:5px!important;white-space:nowrap}.dashboard-attendance-card td:last-child,.dashboard-attendance-card th:last-child{white-space:normal}}.quotation-unsaved-chip{display:inline-flex;width:max-content;max-width:100%;margin:0 0 12px;padding:5px 12px;border-radius:999px;background:#eef3fb;color:#3d5a80;font-size:12px;font-weight:800}.quotation-step{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:8px;border-radius:50%;background:#1267f5;color:#fff;font-size:13px;vertical-align:2px}.quotation-customer-more{margin-top:12px;border-top:1px dashed var(--line);padding-top:10px}.quotation-customer-more>summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:800}.quotation-customer-more[open]>summary{margin-bottom:10px}@media(min-width:721px){.quotation-page .quotation-lines th:nth-child(3){width:170px}.quotation-page .quotation-lines th:nth-child(4){width:56px}.quotation-lines td:nth-child(2) input{width:100%!important;max-width:none!important}}.quotation-summary-bar{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;gap:18px;margin-top:16px;padding:12px 14px 12px 20px;border-radius:16px;background:#fff;box-shadow:0 12px 28px -10px rgba(20,40,80,.28);font-size:14px;color:var(--muted)}.quotation-summary-bar b{margin-left:6px;color:var(--ink)}.quotation-summary-bar b.is-missing{color:#c64938}.quotation-summary-bar>button{width:auto;margin-left:auto;padding:0 22px}@media(max-width:720px){.quotation-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quotation-meta-grid>.field:nth-child(-n+3){grid-column:1/-1}.quotation-summary-bar{gap:10px;padding:10px 10px 10px 14px;font-size:13px}.quotation-summary-bar>span:first-child b{display:inline-block;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.quotation-summary-bar>button{padding:0 14px}}.partner-summary-item.is-zero{display:none}@media(max-width:720px){.partner-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.partner-summary-grid>.partner-summary-card{min-height:0;padding:12px!important}.partner-summary-total strong{font-size:28px}.partner-compact-table{min-width:0!important;width:100%;table-layout:auto!important}.partner-compact-table th:nth-child(n+5):not(:nth-child(9)),.partner-compact-table td:nth-child(n+5):not(:nth-child(9)){display:none}.partner-compact-table th,.partner-compact-table td{width:auto!important;padding-left:5px!important;padding-right:5px!important}.partner-compact-table td:nth-child(3){white-space:normal}.partner-compact-table th:nth-child(1){font-size:0}.partner-compact-table td:nth-child(4) .partner-status-badge{white-space:normal;font-size:11px;line-height:1.3;text-align:center}}.partner-register-overview.is-compact{grid-template-columns:1fr!important}.partner-new-manager-head{display:flex;align-items:center;gap:12px}.partner-new-manager-head small{margin-right:auto}.partner-register-open{width:auto!important;min-height:42px;padding:0 20px!important;white-space:nowrap}.partner-new-manager-stats td.is-zero{color:#b3bcc6!important;font-weight:600}.partner-register-optional{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}.partner-register-optional>summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:800}.partner-register-optional[open]>summary{margin-bottom:12px}@media(max-width:720px){.partner-new-manager-head{flex-wrap:wrap}.partner-new-manager-head>.partner-register-open{order:3;width:100%!important}.partner-new-manager-stats{min-width:0;overflow-x:auto}}.request-queue-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}.request-summary-tile{display:grid;gap:4px;padding:12px 14px;border-top:4px solid #357961;border-radius:12px;background:#f8faf9}.request-summary-tile small{color:var(--muted);font-size:12px;font-weight:700}.request-summary-tile strong{font-size:22px;line-height:1.15}.request-summary-tile.is-warn{border-top-color:#d7a237}.request-summary-tile.is-warn strong{color:#946200}.request-summary-tile.is-urgent{border-top-color:#c64938}.request-summary-tile.is-urgent strong{color:#ae3327}
.request-wait-chip{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:999px;background:#eef1ef;color:#4c5c57;font-size:11px;font-weight:800;white-space:nowrap}.request-wait-chip.is-warn{background:#fff7dd;color:#765a0c}.request-wait-chip.is-urgent{background:#fff1ee;color:#a6382f}
.request-risk-tag,.request-wait-chip{width:max-content;max-width:100%}.request-risk-tag{display:inline-block;margin-bottom:4px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800}.request-customer-collection.is-risk-urgent .request-risk-tag{background:#fff1ee;color:#a6382f}.request-customer-collection.is-risk-warn .request-risk-tag{background:#fff7dd;color:#765a0c}.request-customer-collection.is-risk-urgent>small,.request-customer-collection.is-risk-urgent .collection-status-meta{color:#ae3327}
.outbound-request-partner-grid .field:has(>label>:is(#manager,#requesterId,#partnerGradeDisplay,#partnerRegionDisplay,#outboundCurrentReceivable,#outboundMonthSales)),.outbound-request-partner-grid .field:has(:is(#manager,#requesterId,#partnerGradeDisplay,#partnerRegionDisplay,#outboundCurrentReceivable,#outboundMonthSales)){padding:8px 12px;border-radius:12px;background:#f6f8fa}.outbound-request-partner-grid :is(#manager,#requesterId,#partnerGradeDisplay,#partnerRegionDisplay,#outboundCurrentReceivable,#outboundMonthSales){min-height:26px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--ink);font-weight:800}
@media(max-width:720px){.request-queue-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.request-summary-tile strong{font-size:18px}}
.dashboard-card-detail{display:grid;gap:8px;grid-column:1/-1;width:100%;min-width:0;margin-top:2px;padding-top:10px;border-top:1px dashed var(--line)}.dashboard-rate-cell{white-space:nowrap}.dashboard-mini-track{position:relative;display:block;width:100%;min-width:64px;height:6px;margin-top:6px;border-radius:999px;background:#e6ebe8}.dashboard-mini-fill{position:absolute;inset:0 auto 0 0;border-radius:999px;background:#357961}.dashboard-mini-track.is-behind .dashboard-mini-fill{background:#c64938}.dashboard-mini-track.is-share .dashboard-mini-fill{background:#d7a237}.dashboard-mini-marker{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:2px;background:#1f2d29}
@media(max-width:720px){.dashboard-top-receivables .dashboard-top-receivables-table,.dashboard-employee-card .dashboard-number-table{display:block;width:100%;min-width:0}.dashboard-top-receivables .dashboard-top-receivables-table thead,.dashboard-employee-card .dashboard-number-table thead{display:none}.dashboard-top-receivables .dashboard-top-receivables-table tbody,.dashboard-top-receivables .dashboard-top-receivables-table tfoot,.dashboard-employee-card .dashboard-number-table tbody{display:block}.dashboard-top-receivables .dashboard-top-receivables-table tr,.dashboard-employee-card .dashboard-number-table tr{display:grid;align-items:center;column-gap:10px;padding:10px 2px;border-bottom:1px solid var(--line)}.dashboard-top-receivables .dashboard-top-receivables-table tr>*,.dashboard-employee-card .dashboard-number-table tr>*{display:block;min-width:0;width:auto;padding:0;border:0;background:none}.dashboard-top-receivables .dashboard-top-receivables-table tbody tr{grid-template-columns:20px minmax(0,1fr) auto 64px}.dashboard-top-receivables .dashboard-top-receivables-table tbody td:nth-child(3){display:none}.dashboard-top-receivables .dashboard-top-receivables-table .dashboard-party-cell,.dashboard-top-receivables .dashboard-top-receivables-table .dashboard-party-cell *{display:block;overflow:hidden;font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.dashboard-top-receivables .dashboard-top-receivables-table tfoot tr{grid-template-columns:minmax(0,1fr) auto 64px;border-bottom:0;border-radius:10px;background:#f8fafc}.dashboard-top-receivables .dashboard-top-receivables-table tfoot th{padding-left:10px;font-size:12px;text-align:left}.dashboard-top-receivables .dashboard-top-receivables-table td:nth-child(4),.dashboard-top-receivables .dashboard-top-receivables-table tfoot td{font-weight:800;text-align:right;white-space:nowrap}.dashboard-employee-card .dashboard-number-table tr{grid-template-columns:minmax(0,1fr) auto 72px}.dashboard-employee-card .dashboard-number-table td:nth-child(3),.dashboard-employee-card .dashboard-employee-receivable{display:none}.dashboard-employee-card .dashboard-number-table td:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-employee-card .dashboard-number-table td:nth-child(2){font-weight:800}.dashboard-rate-cell{text-align:right}.dashboard-rate-cell .dashboard-mini-track{min-width:0}}
@media(max-width:720px){.dashboard-attendance-card .data-table{display:block;min-width:0}.dashboard-attendance-card .data-table thead{display:none}.dashboard-attendance-card .data-table tbody{display:block}.dashboard-attendance-card .data-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;column-gap:8px;padding:10px 2px;border-bottom:1px solid var(--line)}.dashboard-attendance-card .data-table td{display:block;min-width:0;padding:0;border:0;background:none;font-variant-numeric:tabular-nums}.dashboard-attendance-card .data-table td[colspan]{grid-column:1/-1}.dashboard-attendance-card .data-table td:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-attendance-card .data-table td:nth-child(3):not([colspan])::before{content:"→ ";color:var(--muted)}.dashboard-attendance-card .data-table td.is-empty{visibility:hidden}}

/* Daily report digest: readable originals first, saved summaries alongside them. */
.work-report-page .work-report-tabs.work-report-tab-count-4,.todo-page .work-report-tabs.work-report-tab-count-4,.quality-issue-page .work-report-tabs.work-report-tab-count-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.work-report-tabs.work-report-tab-count-4>.secondary{min-width:0;white-space:normal}
.report-summary-page{min-width:0}.report-summary-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.report-summary-heading h2{margin:0}.report-summary-heading p{margin:4px 0}
.report-summary-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.report-summary-controls label{display:grid;gap:4px;font-size:13px}.report-summary-controls input{min-height:42px;max-width:180px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#fff;color:var(--ink)}
.report-summary-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-summary-counts>span{display:grid;gap:4px;padding:14px 18px;border-top:4px solid #357961;border-radius:14px;background:#fff;color:var(--muted);font-size:13px;font-weight:700}.report-summary-counts>span.is-unread{border-top-color:#d7a237}.report-summary-counts>span.is-revision{border-top-color:#c64938}.report-summary-counts strong{color:var(--ink);font-size:26px;line-height:1.1}.report-summary-counts>span.is-unread strong{color:#bd7700}.report-summary-counts>span.is-revision strong{color:#d43b50}.report-summary-about summary{width:max-content;max-width:100%;color:var(--muted);font-size:12px;font-weight:800;cursor:pointer}.report-summary-about[open] summary{margin-bottom:6px}.report-summary-muted{font-size:13px;color:var(--muted);margin:0;line-height:1.6}
.report-summary-status{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.report-summary-status strong{display:block;color:var(--ink);margin-top:6px}
.report-summary-overview,.report-summary-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.report-summary-overview .card,.report-summary-person,.report-summary-earlier{padding:22px;min-width:0}.report-summary-overview .card.is-attention{border-top:4px solid #c64938}.report-summary-overview .card.is-next{border-top:4px solid #357961}.report-summary-person.is-unread{border-left:4px solid #d7a237}.report-summary-person.is-revision{border-left:4px solid #c64938}.report-summary-person-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}.report-summary-person-meta .work-report-status{min-width:0}.report-summary-report>.work-report-status{min-width:0;padding:3px 9px;font-size:11px}.report-summary-overview h3,.report-summary-person h3,.report-summary-earlier h3{margin:0 0 12px;font-size:18px}
.report-summary-points{padding-left:20px;margin:0}.report-summary-points li+li{margin-top:18px}.report-summary-points p{margin:0 0 6px;white-space:pre-line;overflow-wrap:anywhere}.summary-source{display:inline-block;text-align:left;border:0;background:transparent;color:var(--primary,#1266ee);font-size:12px;padding:4px 6px 4px 0;cursor:pointer;overflow-wrap:anywhere}
.report-summary-report+.report-summary-report{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.report-summary-text,.report-summary-original,.report-summary-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin:8px 0 14px}.report-summary-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;line-height:1.75}.report-summary-report summary{cursor:pointer;overflow-wrap:anywhere;font-weight:600;font-size:14px}.report-summary-report summary small{display:block;color:var(--muted);font-weight:400;margin-top:4px}.report-summary-original{padding:16px;background:var(--bg,#f5f7fa);border-radius:12px;font-size:14px}
@media(max-width:900px){.report-summary-overview,.report-summary-people{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.work-report-page .work-report-tabs.work-report-tab-count-4,.todo-page .work-report-tabs.work-report-tab-count-4,.quality-issue-page .work-report-tabs.work-report-tab-count-4{display:flex;overflow-x:auto}.work-report-tabs.work-report-tab-count-4>.secondary{flex:0 0 140px;white-space:nowrap}.report-summary-controls{width:100%;gap:6px}.report-summary-controls label{flex:1;min-width:0}.report-summary-controls input{width:100%;max-width:none}.report-summary-overview .card,.report-summary-person,.report-summary-earlier{padding:18px}.report-summary-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-summary-counts>span{padding:12px 14px}}
@media(max-width:720px){.report-summary-controls{display:grid;grid-template-columns:auto minmax(140px,1fr) auto;align-items:end}.report-summary-controls #summaryDefault{grid-column:1/3}.report-summary-controls .secondary{min-width:0;width:100%}}

.permission-row-note{display:block;margin:5px 0 0 28px;color:var(--muted);font-size:11px;line-height:1.5}.permission-display-note{display:block;font-size:11px;line-height:1.5;color:var(--muted);white-space:normal}.permission-display-note small{display:block}.permission-table-compact .permission-display-row td[colspan]{width:auto;text-align:left;white-space:normal;font-size:12px;color:var(--muted);line-height:1.5}.permission-review-card li{margin:8px 0;line-height:1.6}
@media print{
  @page expenseVoucher{size:A5 landscape;margin:9mm 10mm}
  html:has(#printArea .print-expense-voucher),body:has(#printArea .print-expense-voucher),#printArea:has(.print-expense-voucher){page:expenseVoucher;min-height:0!important;height:auto!important;overflow:visible!important;background:#fff!important}
  #printArea .print-expense-voucher{page:expenseVoucher;display:block!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;color:#172b36;font-size:10px;line-height:1.45;overflow-wrap:anywhere;print-color-adjust:economy;-webkit-print-color-adjust:economy}
  .expense-voucher-brand{display:flex;align-items:center;gap:3mm;padding-bottom:3mm;border-bottom:1px solid #9aa8ae;break-inside:avoid}
  .expense-voucher-brand img{width:auto;max-width:23mm;max-height:10mm;object-fit:contain}
  .expense-voucher-brand>div{flex:1;min-width:0}.expense-voucher-brand strong{font-size:11px;font-weight:750}.expense-voucher-brand p{margin:1mm 0 0;color:#52616a;font-size:9px}.expense-voucher-brand>span{max-width:42mm;text-align:right;color:#52616a;font-size:9px}
  .expense-voucher-heading{display:flex;align-items:center;justify-content:space-between;gap:5mm;margin:4mm 0;break-inside:avoid}
  .expense-voucher-heading p{margin:0 0 1mm;font-size:8px;letter-spacing:.16em;color:#52616a}.expense-voucher-heading h1{margin:0;font-size:25px;line-height:1.15;letter-spacing:.02em;font-weight:750}
  .expense-voucher-reference{display:flex;flex-direction:column;align-items:flex-end;gap:1.5mm;min-width:0}.expense-voucher-reference>strong{font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:.02em}.expense-voucher-status{border:1px solid #8b9c9f;border-radius:3px;padding:.6mm 2mm;font-size:9px;font-weight:650}
  .expense-voucher-meta{display:grid;grid-template-columns:1.1fr 1fr 1fr;margin:0;border-top:2px solid #263e46;border-bottom:1px solid #bbc5c9;padding:3mm 0;break-inside:avoid}
  .expense-voucher-meta>div{min-width:0;padding:0 4mm;border-left:1px solid #d3dadd}.expense-voucher-meta>div:first-child{padding-left:0;border:0}.expense-voucher-meta dt,.expense-voucher-detail span{display:block;font-size:9px;color:#52616a}.expense-voucher-meta dd{margin:1mm 0 0;font-size:11px;font-weight:650}
  .expense-voucher-detail{margin:0}.expense-voucher-parties{display:grid;grid-template-columns:1fr 2fr;gap:5mm;padding:3mm 0;border-bottom:1px solid #d3dadd;break-inside:avoid}.expense-voucher-parties strong{display:block;margin-top:1mm;font-size:11px;font-weight:650}
  .expense-voucher-description{padding:3mm 0}.expense-voucher-description p{margin:1.5mm 0 0;font-size:11px;line-height:1.6;white-space:pre-wrap;orphans:3;widows:3}
  .expense-voucher-total{display:flex;align-items:baseline;justify-content:space-between;gap:5mm;padding:2.5mm 0;border-top:1px solid #263e46;border-bottom:2px solid #263e46;break-inside:avoid}.expense-voucher-total>span{font-size:11px;font-weight:650}.expense-voucher-total>strong{font-size:25px;line-height:1.15;font-weight:750;font-variant-numeric:tabular-nums}.expense-voucher-total small{font-size:10px;letter-spacing:.08em;font-weight:500}
  .expense-voucher-signatures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8mm;margin:4mm 0;break-inside:avoid}.expense-voucher-signatures>div{text-align:center;display:flex;flex-direction:column;min-width:0}.expense-voucher-signatures span{font-size:10px;font-weight:650}.expense-voucher-signatures strong{display:flex;align-items:flex-end;justify-content:center;min-height:9mm;padding-bottom:1mm;font-size:11px;font-weight:600;border-bottom:1px solid #aab6bc}.expense-voucher-signatures small{margin-top:1mm;color:#52616a;font-size:8px}
  .expense-voucher-footer{display:flex;justify-content:space-between;gap:5mm;padding-top:2mm;border-top:1px solid #d3dadd;color:#52616a;font-size:8px;break-inside:avoid}.expense-voucher-footer>span:last-child{flex-shrink:0;font-variant-numeric:tabular-nums}
}

/* Previous business day closing and current receivables in the overview. */
.dashboard-closing-card{min-width:0}
.dashboard-closing-card .card-head small{display:block;margin-top:8px;color:var(--muted);font-size:13px}
.dashboard-closing-metrics{margin:0}
.dashboard-closing-metrics>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:15px 0}
.dashboard-closing-metrics dt{color:var(--muted);font-size:14px;font-weight:700}
.dashboard-closing-metrics dd{margin:0;font-size:23px;font-weight:800;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.dashboard-closing-metrics>.submetric{padding-top:0}
.dashboard-closing-metrics .submetric :is(dt,dd){font-size:13px}
.dashboard-closing-methods{display:grid;gap:7px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.dashboard-closing-methods span{display:flex;justify-content:space-between;gap:12px}
.dashboard-closing-methods b{white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboard-closing-change{margin-top:18px;border-top:1px solid var(--line)}
.dashboard-employee-card td:nth-child(n+2){white-space:nowrap}
.dashboard-employee-receivable{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:400;white-space:nowrap}
.dashboard-panel>.dashboard-top-receivables{margin-top:18px;min-width:0;overflow:auto}
@media(max-width:720px){.dashboard-closing-metrics dd{font-size:20px}.dashboard-closing-metrics>div{gap:10px}.dashboard-top-receivables-table{min-width:620px}}
.dashboard-top-receivables-table { table-layout:auto; }
.dashboard-top-receivables-table thead th:nth-child(2) { width:100%; }
.dashboard-top-receivables-table .dashboard-party-cell { min-width:10ch; }
/* Keep the three metrics right-aligned after the shared table styles are applied. */
table.data-table.standard-table.dashboard-top-receivables-table .table-number-column:not(.table-leading-number-column) {
  text-align:right !important;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.dashboard-top-receivables-table tfoot th,.dashboard-top-receivables-table tfoot td{border-top:2px solid var(--line);background:#f8fafc;color:var(--ink);font-weight:700}.dashboard-top-receivables-table tfoot th{text-align:left;font-size:13px}

.notice-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.notice-heading h2 { margin:0; white-space:nowrap; }
.notice-board .notice-toolbar > button, .notice-board .notice-detail button { width:auto; flex:none; padding:8px 16px; }
.notice-board > [role=status]:empty { margin:0; }
.notice-line { display:grid; grid-template-columns:2.75rem minmax(0,1fr) minmax(5rem,14%) 6.5rem 6rem 1rem; align-items:center; gap:14px; padding:14px 12px; }
.notice-columns { border-top:2px solid var(--ink); background:#f8f9fb; font-size:12px; font-weight:700; color:var(--muted); }
.notice-board details { border-bottom:1px solid var(--line); }
.notice-board summary { cursor:pointer; overflow-wrap:anywhere; }
.notice-board summary::-webkit-details-marker { display:none; }
.notice-board summary::after { content:'+'; color:var(--muted); font-size:18px; text-align:center; }
.notice-board details[open] summary::after { content:'−'; }
.notice-board summary:hover, .notice-board details[open] summary { background:#f5f8fc; }
.notice-line > span:first-child, .notice-line > span:nth-child(4) { text-align:center; font-variant-numeric:tabular-nums; }
.notice-board summary > span:nth-child(2) { font-weight:700; }
.notice-detail { padding:16px 20px; background:#f8f9fb; overflow-wrap:anywhere; }
.notice-detail p { margin:0; }
.notice-detail button { margin:12px 6px 0 0; }
.notice-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.notice-board .notice-filters button { display:inline-flex; align-items:center; gap:8px; width:auto; min-height:36px; padding:6px 12px; font-size:12px; }
.notice-filters button b { min-width:22px; padding:1px 7px; border-radius:999px; background:#eef1ef; color:#3f4b47; font-size:11px; text-align:center; }
.notice-filters button.has-unread b { background:#fff4df; color:#bd7700; }
.notice-filters button.is-active { background:#e4f1e9; color:#1c6041; border-color:#9cbfaa; }
.notice-filters button.is-active b { background:#1c6041; color:#fff; }
.notice-board details.is-unread > summary { box-shadow:inset 4px 0 0 #d7a237; }
.notice-board summary > .notice-read-state.is-unread { color:#bd7700; font-weight:800; }
.notice-read-state.is-read { color:var(--muted); }
.notice-comment-count { margin-left:8px; padding:1px 8px; border-radius:999px; background:#eef1ef; color:#4c5c57; font-size:11px; font-weight:700; white-space:nowrap; }
@media (max-width:720px) {
  .notice-board .notice-columns { display:none; }
  .notice-board summary { grid-template-columns:minmax(0,1fr) auto auto 1em; gap:4px 10px; padding:12px 4px; border-top:1px solid var(--line); }
  .notice-board summary > span:first-child { display:none; }
  .notice-board summary > span:nth-child(2) { grid-column:1/4; }
  .notice-board summary > span:nth-child(n+3) { grid-row:2; font-size:12px; color:var(--muted); }
  .notice-board summary::after { grid-area:1/4/3/5; }
}

.notice-pin,.notice-tools { display:flex; align-items:center; gap:8px; font-size:13px; }
.notice-tools { flex:1 1 auto; min-width:0; flex-wrap:wrap; white-space:nowrap; background:#f1f4f8; padding:8px; border-radius:16px; }
.notice-tools .notice-pin { padding:0 12px 0 4px; border-right:1px solid var(--line); }
.notice-board .notice-pin input { width:18px; height:18px; margin:0; }
.notice-board .notice-pin-badge { display:inline-block; margin-right:8px; padding:2px 7px; border-radius:5px; background:#e8f1ff; color:#1457ae; font-size:12px; }
.notice-board .notice-tools :is(button,select) { width:auto; flex:none; min-height:40px; padding:8px 10px; font-size:inherit; border:0; border-radius:6px; color:var(--ink); background:transparent; cursor:pointer; }
.notice-board .notice-tools button { min-width:40px; display:grid; place-items:center; }
.notice-tools svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.notice-tools :is(button,select):hover { background:#e2e7ee; }
.notice-edit-body { min-height:140px; padding:12px; border:1px solid var(--line); border-radius:10px; }
.notice-edit-body,.notice-body,.notice-detail p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:16px; font-weight:400; line-height:1.65; }
.notice-edit-body:focus { outline:2px solid var(--blue); }
.notice-edit-body font[size="2"] { font-size:14px; }
.notice-edit-body font[size="3"] { font-size:16px; }
.notice-edit-body font[size="5"] { font-size:20px; }
.notice-edit-body font[size="6"] { font-size:24px; }
.notice-footer { display:flex; align-items:flex-end; gap:8px; margin:8px 0 18px; }
.notice-footer > button { width:auto; flex:none; padding-inline:18px; }
@media (max-width:900px) { .notice-footer { flex-wrap:wrap; justify-content:flex-end; } .notice-tools { flex-basis:100%; } }

.notice-toolbar:not([hidden]) { display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.notice-toolbar > button { width:auto; flex:none; margin-left:auto; white-space:nowrap; }
.notice-search, .notice-pager { display:flex; align-items:center; gap:8px; }
.notice-search { flex:0 1 55%; min-width:0; }
.notice-search input { flex:1 1 0; width:0; min-width:0; }
.notice-search select,.notice-search input { padding:8px 10px; border:1px solid var(--line); border-radius:8px; }
@media (max-width:720px) {
  .notice-toolbar:not([hidden]) { align-items:flex-end; gap:8px; }
  .notice-search { flex:1; flex-direction:column; align-items:stretch; }
  .notice-search select,.notice-search input { width:100%; }
  .notice-search input { flex:auto; }
}
.notice-line > span:nth-child(5) { text-align:center; white-space:nowrap; }
.notice-pager { justify-content:center; }
.notice-pager:not(:empty) { margin-top:16px; }
.notice-comments { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
.notice-comments h3 { margin:0 0 12px; font-size:16px; }
.notice-comment { padding:12px 0; border-bottom:1px solid var(--line); }
.notice-comment-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin-bottom:4px; font-size:13px; }
.notice-comment-meta time, .notice-comments .notice-comments-empty { color:var(--muted); font-size:13px; }
.notice-comment-form { display:grid; gap:8px; margin-top:16px; }
.notice-board .notice-comment-form textarea { width:100%; min-width:0; resize:vertical; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); }
.notice-tab-label, .notice-title-text { position:relative; }
.notice-unread-count { position:absolute; top:-9px; right:-20px; display:grid; place-items:center; width:21px; height:16px; background:#e53935; color:#fff; font-size:9px; font-weight:900; line-height:1; clip-path:polygon(50% 0%,61% 9%,75% 3%,80% 17%,95% 18%,91% 33%,100% 50%,91% 64%,95% 81%,80% 82%,75% 97%,61% 91%,50% 100%,39% 91%,25% 97%,20% 82%,5% 81%,9% 64%,0% 50%,9% 33%,5% 18%,20% 17%,25% 3%,39% 9%); }
.notice-title { padding-right:22px; }
.notice-comment-form > button { justify-self:end; }
.notice-comment-form [role=status]:empty { display:none; }

.notice-body ul,.notice-body ol,.notice-edit-body ul,.notice-edit-body ol { margin:0; padding-left:2em; }

/* Vietnamese order labels need room to wrap without splitting the count and unit. */
html[lang="vi"] .dashboard-three .dashboard-today-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;width:100%}
html[lang="vi"] .dashboard-three .dashboard-order-count{display:grid;grid-template-rows:1fr auto;align-content:start;gap:4px;min-width:0;white-space:normal}
html[lang="vi"] .dashboard-three .dashboard-order-count small{white-space:normal}
html[lang="vi"] .dashboard-three .dashboard-order-count strong{white-space:nowrap}
/* Share label, amount and note rows even when translated labels wrap. */
.dashboard-month-forecast>span{grid-row:span 3;grid-template-rows:subgrid;row-gap:3px}
html[lang="vi"] .dashboard-three .stat.has-dashboard-period-change>small:first-child{grid-column:1;grid-row:1;padding-right:min(140px,calc(50% + 15px))}
html[lang="vi"] .dashboard-three .dashboard-period-change{position:static;grid-column:1;grid-row:1;justify-self:end;align-self:start;width:125px;max-width:50%}
html[lang="vi"] .dashboard-three .dashboard-period-change small{white-space:normal;text-align:right!important}
