:root { color-scheme: light; --line:#dbe4ee; --ink:#172033; --muted:#667085; --brand:#0f766e; --brand-dark:#0b5f59; --soft:#eef7f6; --page:#f6f8fb; --danger:#b42318; --shadow:0 8px 22px rgba(15,23,42,.06); --shadow-soft:0 2px 8px rgba(15,23,42,.05); }
* { box-sizing: border-box; }
.uppercase-input { text-transform:uppercase; }
.inline-checkbox-input { width:auto; }
.stock-alert-banner { padding:12px 24px; background:#fff5ee; border-bottom:1px solid #ebc5b7; }
.stock-alert-banner[hidden] { display:none; }
.stock-alert-banner a { color:#8e321f; font-weight:600; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
[data-dashboard-results] { scroll-margin-top:calc(var(--dashboard-header-height, 84px) + 16px); }
body { margin:0; font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif; color:var(--ink); background:var(--page); -webkit-font-smoothing:antialiased; }
@view-transition { navigation:auto; }
@media (scripting:none), (prefers-reduced-motion:reduce) {
  @view-transition { navigation:none; }
}
@keyframes page-enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes panel-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.nav { min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 24px; border-bottom:1px solid rgba(215,224,234,.8); background:rgba(255,255,255,.96); -webkit-backdrop-filter:saturate(130%) blur(12px); backdrop-filter:saturate(130%) blur(12px); flex-wrap:wrap; position:sticky; top:0; z-index:50; box-shadow:0 6px 22px rgba(15,23,42,.06); view-transition-name:portal-header; }
.brand-mark { display:flex; flex:0 0 auto; flex-direction:column; align-items:flex-start; gap:4px; color:var(--ink); text-decoration:none; max-width:100%; }
.brand-logo { display:block; width:200px; max-width:100%; aspect-ratio:656 / 116; }
.brand-logo img { width:100%; height:100%; object-fit:contain; display:block; }
.brand-subtitle { color:var(--muted); font-size:11px; line-height:1.3; font-weight:600; }
.brand-mark:focus-visible { outline:2px solid var(--brand); outline-offset:4px; border-radius:4px; }
.header-global-search { position:relative; flex:1 1 280px; max-width:440px; min-width:220px; margin-left:auto; }
.header-global-search input { width:100%; height:40px; padding:8px 44px 8px 38px; border:1px solid #d7e2eb; border-radius:8px; background:#f8fafc; color:var(--ink); font:inherit; font-size:13px; box-shadow:none; transition:border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.header-global-search input:focus { outline:0; border-color:#72beb4; background:#fff; box-shadow:0 0 0 3px rgba(15,118,110,.1); }
.header-global-search input::-webkit-search-cancel-button { cursor:pointer; }
.header-search-leading { position:absolute; top:50%; left:12px; z-index:1; width:17px; height:17px; color:#667085; transform:translateY(-50%); pointer-events:none; }
.header-global-search svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.header-global-search button { position:absolute; top:4px; right:4px; width:32px; height:32px; display:grid; place-items:center; padding:7px; border:0; border-radius:6px; background:transparent; color:var(--brand); box-shadow:none; cursor:pointer; }
.header-global-search button:hover { background:#e8f7f4; }
.header-search-toggle { display:none; }
.header-tools { margin-left:0; display:flex; align-items:center; gap:10px; }
.nav .user-meta { color:var(--ink); font-weight:800; letter-spacing:.02em; }
.user-avatar { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(135deg,#0f766e,#0b9f8f); color:#fff; font-size:14px; font-weight:900; box-shadow:0 8px 18px rgba(15,118,110,.22); }
.header-icon { width:36px; height:36px; border-radius:50%; display:grid; place-items:center; color:#526278; background:#fff; border:1px solid transparent; text-decoration:none; font-weight:900; box-shadow:0 4px 14px rgba(15,23,42,.04); transition:transform .18s ease, border-color .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.header-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.header-icon:hover { border-color:var(--line); color:var(--brand); transform:translateY(-1px); box-shadow:0 7px 16px rgba(15,23,42,.09); }
.header-action-queue { position:relative; color:#2563a6; background:#f1f6fc; border-color:#dce9f7; }
.header-action-queue:hover { color:#185486; background:#e8f2fb; border-color:#bdd6ed; }
.nav .header-action-queue.has-pending-actions, .nav .header-action-queue.has-pending-actions:hover { color:#fff; background:var(--brand); border-color:var(--brand); box-shadow:0 7px 18px rgba(15,118,110,.28); }
.action-count-badge { min-width:18px; height:18px; display:inline-grid; place-items:center; padding:0 5px; border:2px solid #fff; border-radius:999px; background:#dc2626; color:#fff; font-size:9px; line-height:1; font-weight:900; font-variant-numeric:tabular-nums; }
.header-action-queue .action-count-badge { position:absolute; top:-5px; right:-6px; }
@keyframes new-action-attention { 0%,100% { transform:scale(1); box-shadow:0 7px 18px rgba(15,118,110,.28); } 45% { transform:scale(1.12); box-shadow:0 0 0 7px rgba(220,38,38,.17),0 9px 22px rgba(15,118,110,.34); } }
.header-action-queue.new-action-arrived, .top-tab.new-action-arrived, .mobile-app-nav a.new-action-arrived { animation:new-action-attention .85s ease-in-out 3; }
@media (prefers-reduced-motion:reduce) { .header-action-queue.new-action-arrived, .top-tab.new-action-arrived, .mobile-app-nav a.new-action-arrived { animation:none; outline:3px solid rgba(220,38,38,.22); outline-offset:2px; } }
.header-notification-toggle { color:var(--brand); }
.header-icon-button { padding:0; cursor:pointer; font:inherit; }
.header-icon-button[aria-pressed="true"] { background:#e8f7f4; border-color:#9ed9d0; color:var(--brand-dark); }
.mobile-menu-toggle, .mobile-menu-backdrop { display:none; }
.mobile-menu-backdrop[hidden] { display:none !important; }
.desktop-notification-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
[hidden] { display:none !important; }
.install-app-button { min-height:36px; padding:8px 12px; border:1px solid #9bcfc8; border-radius:8px; background:#effaf8; color:var(--brand); font:inherit; font-size:12px; font-weight:850; cursor:pointer; }
.mobile-app-nav { display:none; view-transition-name:portal-mobile-navigation; }
.ios-install-prompt { position:fixed; right:16px; bottom:16px; z-index:95; width:min(420px,calc(100vw - 32px)); display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:14px 15px; border:1px solid #9ed9d0; border-radius:10px; background:#f2fbf9; color:var(--ink); box-shadow:0 16px 34px rgba(15,23,42,.16); }
.ios-install-prompt strong, .ios-install-prompt span { display:block; }
.ios-install-prompt strong { color:var(--brand-dark); font-size:14px; }
.ios-install-prompt span { margin-top:4px; color:var(--muted); font-size:12px; line-height:1.45; }
.ios-install-prompt button { min-height:32px; padding:6px 9px; background:#fff; color:var(--brand); border:1px solid #b9ddd8; font-size:11px; }
.nav a:not(.brand-mark) { color:var(--brand); text-decoration:none; font-weight:700; }
main { max-width:none; margin:0; padding:0; }
.page-back-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 20px 0; }
.page-back-button { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--brand); text-decoration:none; font-weight:600; }
.page-back-button svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.page-back-button:hover { background:#eef8f7; }
.page-back-button:focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
.page-back-button[aria-disabled="true"] { opacity:.5; cursor:default; }
.page-back-navigation [role="status"] { font-size:14px; color:var(--muted); }
.admin-queue-monitor { overflow-x:auto; }
.admin-queue-monitor table { min-width:820px; }
.admin-queue-monitor td { white-space:normal; }
.admin-queue-monitor [data-queue-count] { text-align:right; font-variant-numeric:tabular-nums; }
@media (max-width:860px) { .page-back-navigation { padding:8px 16px 0; } }
body > main { view-transition-name:portal-page-content; transition:opacity .11s ease, transform .11s ease; }
[data-transition-status] { view-transition-name:portal-transaction-status; }
::view-transition-old(root) { animation:none; }
::view-transition-new(root) { animation:none; }
::view-transition-old(portal-page-content) { animation:portal-page-out .11s ease-in both; }
::view-transition-new(portal-page-content) { animation:portal-page-in .21s cubic-bezier(.2,.75,.25,1) both; }
::view-transition-group(portal-header), ::view-transition-group(portal-mobile-navigation) { animation-duration:.12s; }
::view-transition-group(portal-transaction-status) { animation-duration:.24s; animation-timing-function:cubic-bezier(.2,.8,.2,1); }
@keyframes portal-page-out { to { opacity:0; transform:translateY(-4px); } }
@keyframes portal-page-in { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
html.portal-transition-fallback.portal-action-committed body > main { opacity:0; transform:translateY(-4px); pointer-events:none; }
.app-shell { display:grid; grid-template-columns:232px minmax(0,1fr); gap:20px; align-items:start; padding:20px; transition:grid-template-columns .22s ease, gap .22s ease; }
.top-tabs { position:sticky; top:86px; align-self:start; background:rgba(255,255,255,.9); border:1px solid var(--line); border-radius:10px; padding:11px 10px; min-height:calc(100vh - 106px); display:flex; flex-direction:column; gap:10px; box-shadow:var(--shadow-soft); transition:padding .22s ease; }
.sidebar-controls { display:flex; justify-content:flex-end; padding:0 1px 2px; }
.sidebar-toggle { min-height:34px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:6px 9px; border:1px solid var(--line); border-radius:7px; background:#fff; color:#526278; cursor:pointer; font:inherit; font-size:11px; font-weight:850; box-shadow:none; transition:color .18s ease, border-color .18s ease, background-color .18s ease, width .22s ease; }
.sidebar-toggle:hover { border-color:#9bcfc8; background:#f4fbfa; color:var(--brand); }
.sidebar-toggle:focus-visible { outline:3px solid rgba(15,118,110,.2); outline-offset:2px; }
.sidebar-toggle svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; transition:transform .22s ease; }
.sidebar-toggle-label { white-space:nowrap; }
.tab-group { display:flex; flex-direction:column; gap:2px; padding:0 0 10px; border-bottom:1px solid #edf2f7; }
.tab-group:last-child { border-bottom:0; padding-bottom:0; }
.tab-title { font-size:10px; color:var(--muted); font-weight:900; text-transform:uppercase; letter-spacing:.05em; padding:0 4px 6px; }
.top-tab { position:relative; display:flex; align-items:center; gap:8px; min-height:32px; padding:7px 8px; border:0; border-radius:8px; background:transparent; color:var(--ink); text-decoration:none; font-size:13px; line-height:1.25; font-weight:700; white-space:normal; box-shadow:none; transition:transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, width .22s ease, padding .22s ease; }
.top-tab:hover { background:#eef7f5; color:var(--brand); transform:translateY(-1px); }
.top-tab.active { background:linear-gradient(135deg,var(--brand),#0b8d80); color:#fff; font-weight:800; box-shadow:0 8px 16px rgba(13,128,116,.18); }
.top-tab.utility { color:var(--brand); background:#f4fbfa; }
.top-tab.is-loading, [data-page-navigation].is-loading { cursor:progress; opacity:.76; pointer-events:none; }
html.portal-navigation-pending::before { content:""; position:fixed; z-index:1000; top:0; left:0; width:28%; height:3px; background:#12a594; box-shadow:0 0 8px rgba(18,165,148,.5); animation:portal-navigation-progress 1.1s ease-in-out infinite; }
html.portal-navigation-pending body { cursor:progress; }
form.is-submitting button[type="submit"], form.is-submitting input[type="submit"], form.is-submitting button:not([type]) { cursor:progress; opacity:.72; }
@keyframes portal-navigation-progress { from { transform:translateX(-115%); } to { transform:translateX(460%); } }
.portal-action-submitter { display:inline-flex; align-items:center; justify-content:center; gap:8px; pointer-events:none; }
.portal-action-submitter:disabled { cursor:progress; opacity:.78; }
.portal-submit-spinner { flex:0 0 14px; width:14px; height:14px; border:2px solid rgba(255,255,255,.48); border-top-color:currentColor; border-radius:50%; animation:portal-submit-spin .7s linear infinite; }
.secondary .portal-submit-spinner, .ghost .portal-submit-spinner { border-color:rgba(15,118,110,.25); border-top-color:currentColor; }
@keyframes portal-submit-spin { to { transform:rotate(360deg); } }
.portal-action-error { grid-column:1 / -1; display:grid; gap:3px; width:100%; margin:0 0 12px; scroll-margin-top:100px; }
.portal-action-error strong { color:#991b1b; font-size:13px; }
.portal-action-error span { color:#7f1d1d; font-weight:700; line-height:1.4; }
.portal-action-error small { margin-top:2px; color:#9f3a32; font-weight:700; }
.portal-action-error:focus { outline:3px solid rgba(180,35,24,.14); outline-offset:2px; }
.tab-icon { width:18px; height:18px; border-radius:5px; display:grid; place-items:center; flex:0 0 auto; color:#718096; background:#f5f7fb; font-size:8.5px; font-weight:700; letter-spacing:.01em; }
.tab-icon svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.top-tab.active .tab-icon { background:rgba(255,255,255,.16); color:#fff; font-weight:700; }
.tab-label { max-width:170px; opacity:1; overflow:hidden; transition:max-width .18s ease, opacity .12s ease; }
.nav-badge { margin-left:auto; min-width:17px; height:17px; border-radius:999px; display:inline-grid; place-items:center; padding:0 5px; background:#ef4444; color:#fff; font-size:10px; line-height:1; font-weight:800; }
.tab-group-collapsible { display:block; }
.tab-group-collapsible summary { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; list-style:none; }
.tab-group-collapsible summary::-webkit-details-marker { display:none; }
.tab-group-collapsible summary .tab-title { padding-bottom:6px; }
.tab-group-collapsible nav { display:flex; flex-direction:column; gap:2px; padding-top:2px; }
.tab-group-chevron { color:var(--muted); font-size:14px; font-weight:900; line-height:1; transition:transform .16s ease; }
.tab-group-collapsible[open] .tab-group-chevron { transform:rotate(180deg); }
.side-help { display:block; margin-top:auto; border-radius:8px; padding:12px; background:linear-gradient(135deg,#eefaf8,#e7f3f8); border:1px solid #d4e8e5; color:var(--brand-dark); font-weight:900; font-size:13px; text-decoration:none; transition:border-color .16s ease, background .16s ease, transform .16s ease; }
.side-help:hover { background:#e4f6f3; border-color:#9ed7cf; transform:translateY(-1px); }
.side-help:focus-visible { outline:3px solid rgba(15,137,124,.22); outline-offset:2px; }
.side-help small { display:block; margin-top:6px; color:var(--muted); font-weight:700; }
.company-strip { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:8px; }
.logo-card { height:48px; border-radius:8px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; padding:5px; overflow:hidden; }
.logo-card.dark { background:#fff; border-color:var(--line); }
.logo-card.light { background:#fff; }
.logo-card img { max-width:100%; max-height:100%; object-fit:contain; display:block; }
.content { min-width:0; max-width:100%; animation:page-enter .28s ease-out both; }
h1 { margin:0 0 18px; font-size:28px; }
h2 { margin:26px 0 12px; font-size:20px; }
.panel { min-width:0; max-width:100%; background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px; margin-bottom:18px; box-shadow:0 8px 24px rgba(15,23,42,.04); animation:panel-enter .32s ease-out both; transition:box-shadow .2s ease, border-color .2s ease; }
.panel:hover { border-color:#cbd9e5; box-shadow:0 10px 26px rgba(15,23,42,.07); }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.request-form-panel { padding:16px; }
.request-form-panel h2 { margin:0 0 14px; }
.request-form-panel .grid { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px 12px; align-items:start; }
.order-form-commercial { display:grid; gap:12px; width:100%; min-width:0; margin-top:12px; }
.order-form-footer { margin-top:12px; }
.order-fulfilment-fields { grid-column:1 / -1; min-width:0; margin-top:12px; padding:14px; border:1px solid var(--line); border-radius:8px; background:#f8fcfb; }
.order-fulfilment-fields h3 { margin:0 0 12px; font-size:15px; }
.order-fulfilment-fields .grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.order-fulfilment-fields textarea { min-height:76px; resize:vertical; }
.compact-form-grid { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); align-items:end; }
.compact-form-grid > p { min-width:0; margin:0; }
.master-address-list { display:grid; gap:8px; min-width:240px; margin:0; padding:0; list-style:none; }
.master-address-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; padding:8px; border:1px solid #e1e9f0; border-radius:6px; background:#fbfdff; }
.master-address-list li strong, .master-address-list li span { min-width:0; overflow-wrap:anywhere; }
.master-address-list li span { grid-column:1; color:var(--muted); font-size:12px; }
.master-address-list li form { grid-column:2; grid-row:1 / span 2; align-self:center; }
.request-form-panel p { margin:0; }
.request-form-panel label { margin-bottom:4px; font-size:12px; }
.request-form-panel input, .request-form-panel select, .request-form-panel textarea { padding:8px 10px; min-height:40px; }
.request-form-panel textarea { min-height:64px; margin-top:6px; }
.request-form-panel button { margin-top:10px; }
.request-form-panel .inline-check label { display:flex; align-items:center; gap:7px; min-height:40px; margin:18px 0 0; color:var(--ink); }
.request-form-panel .inline-check input { width:auto; min-height:0; }
.request-form-panel .upload-box { padding:8px 10px; }
.correction-attachments { display:grid; gap:10px; margin-top:12px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#f8fbfc; }
.correction-attachments > div:first-child { display:grid; gap:3px; }
.correction-attachment-list { display:grid; gap:7px; }
.correction-attachment-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:9px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.correction-attachment-row > span { display:flex; align-items:center; gap:10px; min-width:0; }
.correction-attachment-row strong { overflow-wrap:anywhere; }
.correction-attachment-row a { flex:0 0 auto; color:var(--brand-dark); font-weight:800; }
.correction-attachment-row input { min-height:0; }
.rm-request-sections { display:grid; gap:14px; margin-top:14px; }
.rm-form-card { min-width:0; padding:15px; border:1px solid var(--line); border-radius:10px; background:#fbfdff; box-shadow:var(--shadow-soft); }
.request-form-panel .grid > .rm-form-card { grid-column:1 / -1; }
.rm-form-card-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; padding-bottom:9px; border-bottom:1px solid #e7eef5; }
.rm-form-card-head h3 { margin:0; color:var(--ink); font-size:15px; }
.rm-form-card-head span { color:var(--muted); font-size:11px; font-weight:700; }
.rm-form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 12px; align-items:start; }
.rm-form-grid > p { min-width:0; margin:0; }
.rm-form-grid .inline-check { align-self:end; }
.rm-form-grid .inline-check label { display:flex; align-items:center; gap:8px; min-height:40px; margin:0; color:var(--ink); }
.rm-form-grid .inline-check input { width:auto; min-height:0; }
.rm-form-grid .rm-gst-check { grid-column:span 2; }
.rm-form-grid .rm-description-field { grid-column:1 / -1; }
.rm-form-grid .rm-description-field textarea { min-height:76px; }
.rm-form-grid .rm-upload-field { grid-column:span 2; }
.rm-form-card [data-rm-net] { border-color:#9bcfc8; background:#f0fbf9; color:var(--brand-dark); font-weight:850; }
.rm-deduction-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.rm-deduction-grid .rm-deduction-table-wrap, .rm-deduction-grid .rm-quality-table-wrap { grid-column:1 / -1; min-width:0; overflow-x:auto; }
.rm-quality-table-wrap h4 { margin:0 0 8px; color:var(--ink); font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
.rm-quality-table { min-width:720px; table-layout:fixed; }
.rm-quality-table th, .rm-quality-table td { padding:8px 9px; vertical-align:middle; }
.rm-quality-table thead th { white-space:nowrap; font-size:11px; text-transform:uppercase; letter-spacing:.03em; }
.rm-quality-table tbody th { width:28%; background:#fbfdff; color:var(--ink); font-size:12px; font-weight:800; }
.rm-quality-table td { width:18%; }
.rm-quality-table td input { min-height:34px; padding:7px 8px; font-size:13px; text-align:right; }
.rm-quality-table .rm-deduction-input { background:#fffac2; border-color:#d4bd1b; }
.rm-quality-table input[readonly] { background:#fff; color:#344054; }
.rm-deduction-table { table-layout:fixed; }
.rm-deduction-table th, .rm-deduction-table td { padding:8px 9px; vertical-align:middle; }
.rm-deduction-table thead th { white-space:nowrap; font-size:11px; text-transform:uppercase; letter-spacing:.03em; }
.rm-deduction-table tbody th { background:#fbfdff; color:var(--ink); font-size:12px; font-weight:800; }
.rm-deduction-table tbody th input { min-height:34px; font-size:12px; font-weight:700; }
.rm-deduction-table td input { min-height:34px; padding:7px 8px; font-size:13px; text-align:right; }
.rm-deduction-table td:nth-child(1), .rm-deduction-table th:nth-child(1) { width:34%; }
.rm-deduction-table td:nth-child(2), .rm-deduction-table th:nth-child(2), .rm-deduction-table td:nth-child(3), .rm-deduction-table th:nth-child(3), .rm-deduction-table td:nth-child(4), .rm-deduction-table th:nth-child(4) { width:22%; }
.rm-deduction-table .rm-deduction-input:not([readonly]), .rm-deduction-table tbody th input:not([readonly]) { background:#fffac2; border-color:#d4bd1b; }
.rm-deduction-table input[readonly] { background:#fff; color:#344054; }
.rm-derived-cell { display:block; min-height:34px; padding:8px; border:1px solid #e3eaf1; border-radius:6px; color:var(--muted); text-align:right; font-size:13px; font-variant-numeric:tabular-nums; }
.rm-input-suffix { display:block; margin-top:3px; color:var(--muted); font-size:10px; text-align:right; font-weight:800; }
.rm-deduction-grid .rm-deduction-table-wrap + .rm-gst-check { grid-column:span 2; }
.rm-deduction-grid .rm-tds-check { grid-column:span 2; }
.rm-deduction-grid > p:not(.inline-check) { min-width:0; }
.rm-form-card-support { background:#f8fcfb; }
.po-items-editor { grid-column:1 / -1; min-width:0; padding:12px; border:1px solid var(--line); border-radius:8px; background:#fbfdff; }
.po-items-editor-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.po-items-editor-head h3 { margin:0; font-size:15px; }
.po-items-editor-head span { color:var(--muted); font-size:11px; font-weight:700; }
.po-items-editor-head button { margin:0; white-space:nowrap; }
.po-items-table-wrap, .po-items-detail-wrap { width:100%; max-width:100%; min-width:0; margin:0; overflow-x:auto; }
.po-items-table { min-width:1420px; table-layout:fixed; }
.po-items-table th, .po-items-table td { padding:7px; vertical-align:top; }
.po-items-table th:nth-child(1), .po-items-table td:nth-child(1) { width:38px; text-align:center; }
.po-items-table th:nth-child(2), .po-items-table td:nth-child(2) { width:220px; }
.po-items-table th:nth-child(3), .po-items-table td:nth-child(3) { width:150px; }
.po-items-table th:nth-child(4), .po-items-table td:nth-child(4) { width:155px; }
.po-items-table th:nth-child(5), .po-items-table td:nth-child(5) { width:145px; }
.po-items-table th:nth-child(6), .po-items-table td:nth-child(6) { width:105px; }
.po-items-table th:nth-child(7), .po-items-table td:nth-child(7) { width:115px; }
.po-items-table th:nth-child(8), .po-items-table td:nth-child(8) { width:105px; }
.po-items-table th:nth-child(9), .po-items-table td:nth-child(9) { width:150px; }
.po-items-table th:nth-child(10), .po-items-table td:nth-child(10) { width:150px; }
.po-items-table th:nth-child(11), .po-items-table td:nth-child(11) { width:90px; }
.po-items-table input { min-width:0; width:100%; }
.po-items-table [data-item-hsn], .so-items-table [data-item-hsn] { margin-top:2px; padding:6px 8px; background:#f3f7f9; color:var(--muted); font-size:12px; }
.po-items-table td small, .so-items-table td small { display:block; margin-top:3px; color:var(--muted); font-size:10px; font-weight:700; }
.po-items-table tfoot th { text-align:right; }
.po-items-table tfoot input { border-color:#9bcfc8; background:#f0fbf9; color:var(--brand-dark); font-weight:850; }
.so-mode-panel { grid-column:1 / -1; min-width:0; }
.so-mode-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.so-items-table { min-width:1000px; table-layout:fixed; }
.so-items-table th, .so-items-table td { padding:7px; vertical-align:top; }
.so-items-table th:nth-child(1), .so-items-table td:nth-child(1) { width:38px; text-align:center; }
.so-items-table th:nth-child(2), .so-items-table td:nth-child(2) { width:220px; }
.so-items-table th:nth-child(3), .so-items-table td:nth-child(3) { width:150px; }
.so-items-table th:nth-child(4), .so-items-table td:nth-child(4) { width:160px; }
.so-items-table th:nth-child(5), .so-items-table td:nth-child(5) { width:150px; }
.so-items-table th:nth-child(6), .so-items-table td:nth-child(6) { width:105px; }
.so-items-table th:nth-child(7), .so-items-table td:nth-child(7) { width:155px; }
.so-items-table th:nth-child(8), .so-items-table td:nth-child(8) { width:90px; }
.so-items-table input { min-width:0; width:100%; }
.so-items-totals { display:grid; grid-template-columns:minmax(0,1fr) repeat(2,minmax(100px,160px)); gap:12px; margin-top:12px; }
.so-items-totals label { min-width:0; }
.so-items-totals input { min-width:0; width:100%; margin-top:6px; font-size:14px; font-weight:400; }
.so-items-totals [data-so-grand-total] { border-color:#9bcfc8; background:#f0fbf9; color:var(--brand-dark); font-weight:850; }
@media (max-width:680px) {
  .correction-attachment-row { align-items:flex-start; flex-direction:column; }
  .so-items-totals { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .so-items-totals label:first-child { grid-column:1 / -1; }
  .so-items-totals input { font-size:16px; }
}
.so-other-charges-description { display:block; margin-top:4px; white-space:normal; overflow-wrap:anywhere; font-weight:400; }
.so-items-detail-table { min-width:1000px; table-layout:auto; }
.so-items-detail-table th, .so-items-detail-table td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
.so-items-detail-table tfoot th { text-align:right; }
.po-line-remove { margin:0 !important; width:100%; }
.po-line-remove:disabled { cursor:not-allowed; opacity:.48; }
.po-edit-form { display:grid; gap:12px; min-width:min(1120px,80vw); }
.po-edit-form .po-edit-header { grid-template-columns:repeat(3,minmax(190px,1fr)); }
.po-items-detail-table { min-width:1280px; table-layout:auto; }
.po-items-detail-table th, .po-items-detail-table td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
.po-items-detail-table tfoot th { text-align:right; }
.po-line-selected { background:#edf9f6; box-shadow:inset 3px 0 0 var(--brand); }
.po-terms-section { grid-column:1 / -1; border:1px solid var(--line); border-radius:8px; background:#f8fbfc; overflow:hidden; }
.po-terms-section > summary { display:flex; align-items:center; gap:9px; padding:12px 14px; color:var(--ink); font-size:13px; font-weight:800; cursor:pointer; list-style:none; user-select:none; }
.po-terms-section > summary::-webkit-details-marker { display:none; }
.po-terms-section > summary::after { content:"+"; margin-left:auto; color:var(--brand); font-size:18px; line-height:1; font-weight:700; }
.po-terms-section[open] > summary { border-bottom:1px solid var(--line); background:#f1f8f7; }
.po-terms-section[open] > summary::after { content:"-"; }
.po-terms-section .optional-badge { padding:2px 7px; border:1px solid #b9d8d4; border-radius:999px; color:var(--brand-dark); background:#fff; font-size:10px; font-weight:800; text-transform:uppercase; }
.po-terms-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:10px 12px; padding:12px; }
.po-terms-fields > p { min-width:0; margin:0; }
.po-terms-section .po-terms-default { grid-column:1 / -1; }
.po-terms-section .po-terms-default { font-size:12px; line-height:1.45; color:var(--muted); }
.po-terms-section .po-terms-default label { margin-bottom:3px; }
.po-terms-list { display:grid; gap:6px; margin-top:8px; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.po-terms-details { min-width:230px; }
.rm-deduction-section { grid-column:span 2; display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px 12px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#f8fbfc; }
.rm-deduction-section .section-title { grid-column:1 / -1; font-size:12px; font-weight:800; text-transform:uppercase; color:var(--muted); letter-spacing:.03em; }
.rm-gst-check label { margin-top:18px; }
.detail-panel h2 { margin:18px 0 10px; }
.detail-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap:0 22px; }
.detail-row { display:grid; grid-template-columns:minmax(130px, 40%) minmax(0, 1fr); gap:10px; align-items:start; padding:7px 0; border-bottom:1px solid #edf2f7; }
.detail-row label { margin:0; font-size:12px; line-height:1.25; }
.detail-value { min-width:0; font-size:14px; line-height:1.3; overflow-wrap:anywhere; }
.detail-value .status, .detail-value .action-badge { vertical-align:middle; }
label { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; font-weight:700; }
input, select, textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:6px; font:inherit; background:#fff; transition:border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
input[type="date"] { min-width:0; }
input:focus, select:focus, textarea:focus { border-color:#5aaea4; box-shadow:0 0 0 3px rgba(15,118,110,.13); outline:none; }
textarea { min-height:86px; }
button, .button { display:inline-block; border:0; border-radius:6px; padding:10px 14px; background:var(--brand); color:#fff; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; transition:transform .16s ease, box-shadow .16s ease, filter .16s ease, background-color .16s ease; }
button:hover, .button:hover { transform:translateY(-1px); box-shadow:0 6px 14px rgba(15,118,110,.18); filter:brightness(1.02); }
button:active, .button:active { transform:translateY(0); box-shadow:none; }
button.secondary { background:#354052; }
button.danger { background:var(--danger); }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { padding:12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
tbody tr { transition:background-color .16s ease, box-shadow .16s ease; }
tbody tr:hover { background:#f8fcfb; box-shadow:inset 3px 0 0 #93d6cd; }
th { background:var(--soft); font-size:13px; color:#345; }
.status { display:inline-block; padding:4px 8px; border-radius:999px; background:#eef2ff; font-size:12px; font-weight:700; }
.status-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; font-size:12px; line-height:1; font-weight:800; border:1px solid transparent; white-space:nowrap; }
.status-chip::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.status-approval { background:#fff7ed; color:#b45309; border-color:#fed7aa; }
.status-accounting { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.status-payment { background:#f5f3ff; color:#6d28d9; border-color:#ddd6fe; }
.status-paid { background:#ecfdf5; color:#047857; border-color:#a7f3d0; }
.status-rejected { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.status-invoice { background:#fff7ed; color:#9a3412; border-color:#fed7aa; }
.status-neutral { background:#f1f5f9; color:#475569; border-color:#e2e8f0; }
.action-badge { display:inline-block; padding:4px 8px; border-radius:999px; background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; font-size:12px; font-weight:700; margin-left:4px; }
.plan-badge { display:inline-block; padding:4px 8px; border-radius:999px; background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; font-size:12px; font-weight:700; margin-left:4px; }
.tracker { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:10px; font-size:12px; }
.track-step { display:inline-flex; align-items:center; gap:5px; color:#6b7280; font-weight:700; }
.track-step.done { color:#166534; }
.track-step.current { color:#92400e; }
.track-step.rejected { color:#991b1b; }
.track-dot { width:11px; height:11px; border-radius:50%; display:inline-block; background:#d1d5db; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.done .track-dot { background:linear-gradient(135deg,#86efac,#16a34a); }
.current .track-dot { background:linear-gradient(135deg,#fde68a,#d97706); }
.rejected .track-dot { background:linear-gradient(135deg,#fecaca,#dc2626); }
.track-arrow { color:#9ca3af; }
.muted { color:var(--muted); }
.attachment-list { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.attachment-list li { position:relative; min-height:42px; padding:9px 82px 9px 10px; border:1px solid var(--line); border-radius:7px; background:#fbfdff; overflow-wrap:anywhere; }
.attachment-name { display:block; font-weight:700; color:#25415f; }
.attachment-actions { position:absolute; top:6px; right:6px; display:flex; gap:4px; }
.attachment-icon-button { display:inline-grid; place-items:center; width:29px; height:29px; padding:0; border:1px solid #bfd0e2; border-radius:6px; background:#fff; color:#0f5d9c; text-decoration:none; }
.attachment-icon-button:hover, .attachment-icon-button:focus-visible { border-color:#0f5d9c; background:#eff6ff; outline:none; }
.attachment-icon-button svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.attachment-icon-button.is-disabled { color:#94a3b8; border-color:#d9e2ec; background:#f8fafc; cursor:not-allowed; }
.attachment-list-actions-only { display:flex; flex-wrap:wrap; gap:6px; min-width:70px; }
.attachment-list-actions-only li { min-height:0; padding:0; border:0; background:transparent; }
.attachment-list-actions-only .attachment-actions { position:static; }
.approval-history-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.approval-history-head h2 { margin-bottom:4px; }
.approval-history-head p { margin:0; }
.approval-history-decision { font-weight:800; color:#166534; }
.approval-history-decision.rejected { color:#b91c1c; }
.form-error { padding:10px 12px; border:1px solid #fecaca; border-radius:6px; background:#fff1f2; color:var(--danger); font-weight:700; }
.cnf-other-description { padding:10px; border:1px solid #eab308; border-radius:8px; background:#fff8cc; }
.cnf-other-description label { color:#854d0e; }
.cnf-sub-expense-field { grid-column:span 2; min-width:0; }
.cnf-sub-expense-picker-layout { display:grid; grid-template-columns:minmax(190px,.85fr) minmax(240px,1.15fr); gap:10px 12px; align-items:stretch; }
.cnf-sub-expense-picker-control { min-width:0; }
.cnf-sub-expense-picker-control select { width:100%; }
.cnf-sub-expense-help { display:block; margin-top:6px; font-size:12px; line-height:1.35; }
.cnf-selected-expense-panel { min-width:0; min-height:82px; padding:9px 10px; border:1px dashed #8ecbc3; border-radius:8px; background:#f5fbfa; }
.cnf-selected-expense-heading { display:block; color:var(--brand-dark); font-size:12px; }
.cnf-selected-expense-list { display:grid; gap:6px; margin-top:7px; }
.cnf-selected-expense { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; gap:7px; min-height:34px; padding:3px 3px 3px 9px; border:1px solid #b9ddd8; border-radius:6px; background:#fff; color:var(--ink); font-size:12px; font-weight:750; }
.cnf-selected-expense > span { min-width:0; overflow-wrap:anywhere; }
.cnf-selected-expense-remove { display:grid; place-items:center; width:28px; min-width:28px; height:28px; min-height:28px; margin:0 !important; padding:0; border:1px solid #fecaca; border-radius:5px; background:#fff5f5; color:#b91c1c; font-size:20px; font-weight:700; line-height:1; }
.cnf-selected-expense-remove:hover, .cnf-selected-expense-remove:focus-visible { border-color:#dc2626; background:#fee2e2; outline:none; }
.cnf-selected-expense-empty { display:block; margin-top:9px; color:var(--muted); font-size:12px; }
.cnf-selected-expense-empty[hidden] { display:none; }
@media (max-width:680px) {
  .cnf-sub-expense-field { grid-column:1 / -1; }
  .cnf-sub-expense-picker-layout { grid-template-columns:1fr; }
}
.cnf-other-help { display:block; margin-top:6px; color:#9a3412; font-size:12px; font-weight:800; }
.cnf-other-help[hidden] { display:none; }
.cnf-other-warning { display:grid; gap:5px; width:100%; padding:12px; border:1px solid #f59e0b; border-left:5px solid #d97706; border-radius:8px; background:#fff7d6; color:#713f12; }
.cnf-other-warning strong { color:#9a3412; letter-spacing:.025em; }
.cnf-other-warning.compact { margin-bottom:8px; padding:8px 10px; font-size:12px; }
.request-table tbody tr.cnf-other-row td { background:#fffbeb; }
.cnf-other-badge { display:inline-flex; margin-top:5px; padding:3px 7px; border:1px solid #f59e0b; border-radius:999px; background:#fff7d6; color:#9a3412; font-size:11px; font-weight:900; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.actions p { margin:0; flex:1 1 190px; }
.actions input { min-width:190px; flex:1; }
.actions p input { width:100%; min-width:0; }
.claim-detail-page { max-width:1480px; margin:0 auto; padding:24px; }
.claim-detail-hero { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin-bottom:18px; }
.detail-back { width:max-content; color:var(--brand); font-size:13px; font-weight:800; text-decoration:none; }
.detail-back:hover { text-decoration:underline; }
.claim-detail-title { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.claim-detail-title > div { min-width:0; overflow-wrap:anywhere; }
.claim-detail-title h1 { margin:2px 0 3px; font-size:30px; letter-spacing:-.03em; }
.claim-detail-title p { margin:0; color:var(--muted); font-size:13px; font-weight:700; }
.detail-overview-card { padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow-soft); }
.detail-overview-card > h2 { margin:0 0 12px; font-size:15px; }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.35fr) minmax(0,.8fr); gap:0; margin:0; }
.overview-item { min-width:0; overflow:hidden; padding:2px 14px; border-right:1px solid #e8eef4; }
.overview-item:first-child { padding-left:0; }
.overview-item:last-child { padding-right:0; border-right:0; }
.overview-item dt { margin:0 0 5px; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.overview-item dd { min-width:0; max-width:100%; margin:0; color:var(--ink); font-size:14px; font-weight:850; line-height:1.3; overflow-wrap:anywhere; }
.overview-item[data-overview-field="total"] dd, .overview-item[data-overview-field="balance"] dd { font-size:16px; font-variant-numeric:tabular-nums; }
.overview-item[data-overview-field="stage"] .status-chip { max-width:100%; min-width:0; align-items:flex-start; white-space:normal; line-height:1.25; overflow-wrap:anywhere; }
.overview-item[data-overview-field="stage"] .status-chip::before { flex:0 0 auto; margin-top:.28em; }
.overview-item[data-overview-field="utr"] { grid-column:1 / -1; display:flex; align-items:center; gap:12px; overflow:visible; margin-top:10px; padding:10px 0 0; border-top:1px solid #e8eef4; border-right:0; }
.overview-item[data-overview-field="utr"] dt { flex:0 0 auto; margin:0; }
.overview-item[data-overview-field="utr"] dd { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:6px; }
.overview-payment-ref { display:inline-flex; max-width:100%; padding:4px 8px; border:1px solid #b7e3da; border-radius:6px; background:#eefaf7; color:var(--brand-dark); font-size:11px; font-weight:900; line-height:1.2; overflow-wrap:anywhere; }
.overview-payment-empty { color:var(--muted); font-size:12px; font-weight:750; }
.detail-workflow { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:10px 12px; border:1px solid #d9e9e7; border-radius:10px; background:#f8fcfb; }
.detail-workflow-head { display:flex; min-width:0; max-width:100%; flex-wrap:wrap; align-items:center; gap:8px; flex:0 1 auto; color:#526278; font-size:12px; font-weight:900; }
.detail-workflow-head .status-chip { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.workflow-step-details { min-width:0; }
.workflow-step-details > summary { color:var(--brand); cursor:pointer; font-size:12px; font-weight:850; list-style:none; }
.workflow-step-details > summary::-webkit-details-marker { display:none; }
.workflow-step-details > summary::after { content:"Show"; margin-left:6px; color:var(--muted); font-weight:700; }
.workflow-step-details[open] > summary::after { content:"Hide"; }
.workflow-step-details[open] .tracker { margin:10px 0 0; }
.detail-workflow .track-step:not(.current) { opacity:.58; }
.detail-workflow .track-step.current { font-weight:900; }
.audit-link-toolbar { display:grid; grid-template-columns:auto minmax(0,1fr) 40px; align-items:center; gap:6px 8px; flex:1 1 280px; min-width:0; max-width:420px; margin-left:auto; }
.audit-link-label { margin:0; font-size:12px; font-weight:700; }
.audit-link-reference { min-width:0; color:var(--brand-dark); font-size:14px; font-weight:700; overflow-wrap:anywhere; text-decoration:underline; text-underline-offset:3px; }
.audit-link-reference[aria-disabled="true"] { text-decoration:none; }
.audit-link-toolbar > input { grid-column:1 / -1; width:100%; min-width:0; height:40px; padding:8px; font-size:12px; text-overflow:ellipsis; background:#fff; }
.audit-link-copy { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:8px; border-radius:6px; }
.audit-link-copy svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.audit-link-copy[aria-busy="true"] { opacity:.65; cursor:progress; }
.audit-copy-status { grid-column:1 / -1; color:var(--brand-dark); font-size:12px; overflow-wrap:anywhere; }
.audit-copy-status:empty { display:none; }
@media (max-width:860px) {
  .audit-link-toolbar { flex:none; width:100%; max-width:none; margin-left:0; }
}
.claim-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:18px; align-items:start; }
.claim-detail-main { min-width:0; display:grid; gap:12px; }
.detail-accordion { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow-soft); }
.detail-accordion > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 17px; color:var(--ink); cursor:pointer; font-size:16px; font-weight:900; list-style:none; }
.detail-accordion > summary::-webkit-details-marker { display:none; }
.detail-accordion > summary::after { content:"+"; color:var(--brand); font-size:20px; line-height:1; }
.detail-accordion[open] > summary { border-bottom:1px solid #e8eef4; background:#fbfdfd; }
.detail-accordion[open] > summary::after { content:"−"; }
.detail-accordion-meta { color:var(--muted); font-size:12px; font-weight:750; }
.detail-accordion-body { padding:15px 17px 17px; }
.detail-accordion-body > :first-child { margin-top:0; }
.detail-accordion-body > :last-child { margin-bottom:0; }
.claim-detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 22px; }
.claim-detail-list .detail-row { grid-template-columns:minmax(120px,42%) minmax(0,1fr); padding:9px 0; }
.claim-detail-list .detail-row label { color:#667085; font-size:11px; font-weight:850; text-transform:uppercase; letter-spacing:.025em; }
.detail-description { margin:15px 0 0; padding-top:14px; border-top:1px solid #edf2f7; line-height:1.55; white-space:pre-wrap; }
.secondary-detail { margin-top:14px; padding:11px 12px; border:1px solid #e4ebf2; border-radius:8px; background:#fbfdff; }
.secondary-detail > summary { color:var(--brand); cursor:pointer; font-size:13px; font-weight:850; }
.secondary-detail[open] > summary { margin-bottom:12px; }
.claim-action-rail { min-width:0; }
.claim-action-panel { position:sticky; top:88px; overflow:hidden; border:1px solid #b9ddd7; border-radius:12px; background:#fff; box-shadow:0 12px 28px rgba(15,23,42,.10); }
.claim-action-panel > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 15px; color:var(--ink); cursor:pointer; font-size:14px; font-weight:900; list-style:none; }
.claim-action-panel > summary::-webkit-details-marker { display:none; }
.claim-action-panel > summary::after { content:"⌄"; color:var(--brand); font-size:17px; line-height:1; }
.claim-action-panel[open] > summary { border-bottom:1px solid #e2ecea; background:#f3fbf9; }
.claim-action-panel[open] > summary::after { transform:rotate(180deg); }
.claim-action-panel .action-panel-status { color:var(--brand-dark); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.claim-action-panel.is-idle .action-panel-status { color:var(--muted); }
.claim-action-body { padding:14px; }
.claim-action-body > .actions, .claim-action-body form.actions { display:grid; gap:9px; }
.claim-action-body .actions p, .claim-action-body .actions input, .claim-action-body .actions .action-upload { min-width:0; width:100%; margin:0; }
.claim-action-body .actions > button, .claim-action-body .actions > .button { width:100%; text-align:center; }
.claim-action-body .quick-link { justify-content:center; }
.rm-final-invoice-documents { min-width:0; width:100%; margin:2px 0; padding:11px; border:1px solid #cfe3df; border-radius:9px; background:#f8fcfb; }
.rm-final-invoice-documents legend { padding:0 5px; color:var(--ink); font-size:12px; font-weight:900; }
.rm-final-invoice-documents > .muted { margin:0 0 9px; font-size:11px; line-height:1.4; }
.rm-final-invoice-document-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:8px; min-width:0; }
.rm-final-invoice-document { display:grid; gap:6px; min-width:0; padding:9px; background:#fff; }
.rm-final-invoice-document-title { display:flex; align-items:center; justify-content:space-between; gap:7px; color:var(--ink); font-size:11px; font-weight:850; }
.rm-final-invoice-document-title small { flex:0 0 auto; padding:2px 5px; border-radius:999px; font-size:8px; font-weight:900; letter-spacing:.03em; text-transform:uppercase; }
.rm-final-invoice-document-title .is-required { background:#feecea; color:#a52a20; }
.rm-final-invoice-document-title .is-optional { background:#edf2f7; color:#5f6f82; }
.rm-final-invoice-document-list { display:grid; gap:6px; min-width:210px; }
.rm-final-invoice-document-link { display:grid; grid-template-columns:minmax(105px,1fr) minmax(0,1.4fr); align-items:center; gap:7px; padding-bottom:6px; border-bottom:1px solid #e6eef2; }
.rm-final-invoice-document-link:last-child { padding-bottom:0; border-bottom:0; }
.rm-final-invoice-document-link > span { color:#42566c; font-size:11px; font-weight:850; }
.rm-final-invoice-document-link > small { color:var(--muted); font-size:10px; }
.rm-final-invoice-document-link .attachment-list { margin:0; }
.reject-menu { position:relative; width:100%; }
.reject-menu > summary { display:flex; align-items:center; justify-content:center; min-height:40px; padding:9px 12px; border-radius:6px; background:#fff; color:var(--danger); border:1px solid #f4b4ac; cursor:pointer; font-size:13px; font-weight:850; list-style:none; }
.reject-menu > summary::-webkit-details-marker { display:none; }
.reject-menu > summary::after { content:"⌄"; margin-left:7px; font-size:14px; }
.reject-menu[open] > summary { background:#fff6f5; }
.reject-menu-options { display:grid; gap:6px; margin-top:7px; padding:8px; border:1px solid #fecaca; border-radius:8px; background:#fffafa; }
.reject-menu-options button { width:100%; padding:9px 10px; text-align:left; font-size:12px; }
.compact-document-list { display:grid; gap:14px; }
.compact-document-group { display:grid; gap:8px; }
.compact-document-group + .compact-document-group { padding-top:14px; border-top:1px solid #e5edf4; }
.compact-document-group-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.compact-document-group-title { display:flex; align-items:center; gap:8px; min-width:0; }
.compact-document-group-title h3 { margin:0; color:var(--ink); font-size:14px; }
.compact-document-stage-badge { display:inline-flex; align-items:center; min-height:22px; padding:3px 7px; border-radius:999px; background:#edf2f7; color:#526278; font-size:9px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.compact-document-group-final-invoice .compact-document-stage-badge { background:#dff7f1; color:#08675f; }
.compact-document-group-advance-payment .compact-document-stage-badge { background:#fff4d6; color:#8a5200; }
.compact-document-group-note { margin:4px 0 0; color:var(--muted); font-size:11px; font-weight:650; }
.compact-document-group-count { flex:0 0 auto; color:#526278; font-size:11px; font-weight:850; white-space:nowrap; }
.compact-document-group-rows { display:grid; gap:8px; }
.compact-document-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; min-height:58px; padding:9px 11px; border:1px solid #e0e8f0; border-radius:8px; background:#fbfdff; }
.compact-document-row[data-document-stage="final-invoice"] { border-left:3px solid var(--brand); background:#f7fcfb; }
.compact-document-row[data-document-stage="advance-payment"] { border-left:3px solid #e4a11b; }
.compact-document-copy { min-width:0; }
.compact-document-copy strong, .compact-document-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.compact-document-copy strong { color:#25415f; font-size:13px; }
.compact-document-copy span { margin-top:3px; color:var(--muted); font-size:12px; font-weight:650; }
.compact-document-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.compact-document-actions .attachment-icon-button { flex:0 0 auto; }
.payment-timeline { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.payment-timeline li { position:relative; display:grid; grid-template-columns:118px minmax(0,1fr) auto; gap:12px; align-items:start; padding:0 0 10px 17px; border-bottom:1px solid #edf2f7; }
.payment-timeline li::before { content:""; position:absolute; top:5px; left:0; width:8px; height:8px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px #dff4f1; }
.payment-timeline li:last-child { padding-bottom:0; border-bottom:0; }
.payment-timeline time, .payment-timeline .payment-meta { color:var(--muted); font-size:12px; font-weight:750; }
.payment-timeline strong { font-size:14px; font-variant-numeric:tabular-nums; }
.activity-feed { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.activity-feed li { position:relative; display:grid; grid-template-columns:132px minmax(0,1fr); gap:12px; padding:0 0 16px 18px; border-left:1px solid #dce7ee; }
.activity-feed li::before { content:""; position:absolute; top:3px; left:-5px; width:9px; height:9px; border-radius:50%; background:#5b8d97; box-shadow:0 0 0 3px #eef7f6; }
.activity-feed li:last-child { padding-bottom:0; }
.activity-feed time { color:var(--muted); font-size:12px; font-weight:750; }
.activity-feed strong { display:block; font-size:13px; }
.activity-feed p { margin:4px 0 0; color:#526278; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.activity-feed .activity-actor { color:var(--muted); font-size:12px; font-weight:700; }
.audit-edit-changes { width:100%; table-layout:fixed; margin-top:10px; border-collapse:collapse; font-size:12px; }
.audit-edit-changes caption { text-align:left; font-weight:700; padding:4px 0; }
.audit-edit-changes th, .audit-edit-changes td { padding:8px; vertical-align:top; text-align:left; white-space:pre-wrap; overflow-wrap:anywhere; border-bottom:1px solid #dce7ee; font-size:inherit; }
.audit-edit-changes th { font-weight:600; }
.audit-edit-changes thead th { background:#f5f8fa; }
.audit-edit-changes td { font-weight:400; }
.admin-danger-zone { overflow:hidden; border:1px solid #fecaca; border-radius:10px; background:#fffafa; }
.admin-danger-zone > summary { padding:13px 15px; color:var(--danger); cursor:pointer; font-size:13px; font-weight:900; }
.admin-danger-zone[open] > summary { border-bottom:1px solid #fee2e2; }
.admin-danger-zone .request-form-panel { margin:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
.access-matrix { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin:8px 0 14px; }
.access-matrix.access-wide { grid-template-columns:repeat(11, minmax(190px, 1fr)); min-width:2150px; align-items:start; }
.access-editor-row td { background:#fbfdff; padding:0; }
.access-editor-panel { padding:14px; border-top:1px solid var(--line); overflow-x:auto; max-width:calc(100vw - 340px); }
.access-editor-panel .access-matrix { margin-top:0; }
.access-editor-panel .access-card { min-height:100%; }
.access-editor-actions { display:flex; align-items:center; gap:12px; padding-top:4px; }
.access-card { border:1px solid var(--line); border-radius:8px; background:#fbfdff; padding:10px; min-width:0; }
.access-card-title { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:900; margin-bottom:8px; }
.access-primary { padding-bottom:8px; border-bottom:1px solid #e7eef5; margin-bottom:8px; }
.access-secondary { display:grid; gap:6px; }
.access-subhead { font-size:12px; color:var(--muted); font-weight:800; margin-bottom:4px; }
.access-natures { display:grid; gap:5px; max-height:210px; overflow:auto; padding-right:2px; }
.access-check { display:flex; align-items:flex-start; gap:7px; color:var(--ink); font-size:12px; line-height:1.25; margin:0; font-weight:700; }
.access-check input { width:auto; margin-top:1px; flex:0 0 auto; }
.access-check-strong { font-size:13px; color:var(--brand-dark); }
.access-details summary { cursor:pointer; color:var(--brand); font-weight:800; }
.access-details[open] summary { margin-bottom:10px; }
.access-summary-cell { white-space:nowrap; }
.admin-users-page { max-width:1540px; margin:0 auto; }
.admin-users-head { align-items:center; margin-bottom:14px; }
.admin-create-user { padding:0; overflow:hidden; }
.admin-create-user > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; cursor:pointer; list-style:none; }
.admin-create-user > summary::-webkit-details-marker { display:none; }
.admin-create-user > summary::after { content:"+"; color:var(--brand); font-size:24px; font-weight:800; line-height:1; }
.admin-create-user[open] > summary { border-bottom:1px solid var(--line); background:#fbfdfd; }
.admin-create-user[open] > summary::after { content:"−"; }
.admin-create-user > summary span { display:grid; gap:3px; }
.admin-create-user > summary small { color:var(--muted); font-size:12px; font-weight:650; }
.admin-create-user > form { padding:18px; }
.admin-user-list-panel { padding:0; overflow:hidden; }
.admin-user-list-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 18px 10px; }
.admin-user-list-head h2, .admin-user-list-head p { margin:0; }
.admin-user-filters { display:grid; grid-template-columns:minmax(250px,2fr) repeat(3,minmax(145px,1fr)) auto auto; gap:10px; align-items:end; padding:10px 18px 16px; border-bottom:1px solid var(--line); background:#fbfdff; }
.admin-user-filters label { min-width:0; margin:0; }
.admin-user-filters input, .admin-user-filters select { width:100%; min-width:0; }
.admin-user-filters button, .admin-user-filters .button { min-height:42px; align-items:center; justify-content:center; }
.admin-users-table-wrap { border:0; border-radius:0; }
.admin-users-table { border:0; border-radius:0; table-layout:fixed; }
.admin-users-table th:nth-child(1) { width:15%; }
.admin-users-table th:nth-child(2) { width:17%; }
.admin-users-table th:nth-child(3) { width:19%; }
.admin-users-table th:nth-child(4) { width:31%; }
.admin-users-table th:nth-child(5) { width:10%; }
.admin-users-table th:nth-child(6) { width:8%; }
.admin-users-table td { vertical-align:middle; }
.admin-user-roles { color:#334155; }
.admin-user-roles-text { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.45; }
.admin-users-table td:last-child { white-space:nowrap; }
.admin-user-lock { display:inline-block; margin-top:5px; padding:4px 6px; font-size:11px; }
.admin-users-empty { margin:0; padding:18px; text-align:center; }
.admin-user-editor { scroll-margin-top:90px; padding:0; overflow:hidden; }
.admin-user-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 20px; border-bottom:1px solid var(--line); background:#fbfdfd; }
.admin-user-editor-head h2 { margin:3px 0 2px; }
.admin-user-editor-head p { margin:0; }
.admin-user-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:15px 20px; border-bottom:1px solid var(--line); }
.admin-user-summary-grid > div { min-width:0; padding:0 16px; border-right:1px solid #e8eef4; }
.admin-user-summary-grid > div:first-child { padding-left:0; }
.admin-user-summary-grid > div:last-child { padding-right:0; border-right:0; }
.admin-user-summary-grid span:not(.status-chip) { display:block; margin-bottom:4px; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.admin-user-summary-grid strong { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-user-account-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); }
.admin-user-action-card { padding:14px; border:1px solid var(--line); border-radius:9px; background:#fbfdff; }
.admin-user-action-card h3 { margin:0 0 4px; }
.admin-user-action-card p { min-height:38px; margin:0 0 10px; }
.admin-user-action-card .actions { margin:0; }
.admin-user-department-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; margin-top:12px; }
.admin-user-department-form input { min-width:0; width:100%; }
.admin-user-department-form button { min-height:42px; white-space:nowrap; }
.admin-user-access-editor { padding:18px 20px 20px; }
.admin-user-access-editor h3, .admin-user-access-editor p { margin-top:0; }
.admin-user-access-editor .access-matrix { margin-top:12px; }
.admin-presence-panel { padding:0; overflow:hidden; }
.admin-presence-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px 19px; border-bottom:1px solid var(--line); background:#fbfdfd; }
.admin-presence-head .eyebrow { display:block; margin-bottom:4px; color:var(--brand); font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.admin-presence-head h2 { margin:0 0 4px; font-size:19px; }
.admin-presence-head p { margin:0; color:var(--muted); font-size:12px; }
.admin-presence-total { flex:0 0 auto; padding:9px 12px; border:1px solid #b9ddd6; border-radius:8px; background:#eef9f6; color:#176b53; font-size:12px; font-weight:800; white-space:nowrap; }
.admin-presence-total strong { margin-right:3px; font-size:18px; }
.admin-presence-active { padding:15px 18px 18px; border-bottom:1px solid var(--line); background:#f7fcfa; }
.admin-presence-active-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.admin-presence-active-head h3, .admin-presence-departments-title { margin:0; font-size:14px; }
.admin-presence-active-head span { color:#07845f; font-size:11px; font-weight:900; }
.admin-presence-active-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:8px; }
.admin-presence-active-user { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:10px 11px; border:1px solid #cce7e1; border-radius:7px; background:#fff; }
.admin-presence-active-user > div { min-width:0; }
.admin-presence-active-user > div:last-child { flex:0 0 auto; text-align:right; }
.admin-presence-active-user strong, .admin-presence-active-user span, .admin-presence-active-user b, .admin-presence-active-user time { display:block; }
.admin-presence-active-user strong { overflow:hidden; color:#1f3347; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.admin-presence-active-user span, .admin-presence-active-user time { margin-top:2px; color:var(--muted); font-size:10px; }
.admin-presence-active-user b { color:#07845f; font-size:11px; }
.admin-presence-departments-title { padding:13px 18px; background:#fff; }
.admin-presence-department + .admin-presence-department { border-top:1px solid var(--line); }
.admin-presence-department-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; background:#f7fafc; cursor:pointer; list-style:none; }
.admin-presence-department-head::-webkit-details-marker { display:none; }
.admin-presence-department-head > span { display:flex; align-items:center; gap:9px; min-width:0; }
.admin-presence-department-head strong { color:#1f3347; font-size:13px; }
.admin-presence-department-head small { color:var(--muted); font-size:10px; font-weight:800; }
.admin-presence-department-head b { color:#07845f; font-size:11px; }
.admin-presence-department-head i { width:8px; height:8px; border-right:2px solid #64748b; border-bottom:2px solid #64748b; transform:rotate(45deg); transition:transform .18s ease; }
.admin-presence-department[open] > .admin-presence-department-head i { transform:rotate(225deg); }
.admin-presence-department-body { border-top:1px solid var(--line); }
.admin-presence-table-wrap { overflow-x:auto; }
.admin-presence-table { width:100%; min-width:720px; margin:0; border:0; border-radius:0; }
.admin-presence-table th { padding:9px 18px; background:#fff; color:#526278; font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.admin-presence-table td { padding:11px 18px; vertical-align:middle; }
.admin-presence-table td:first-child strong, .admin-presence-table td:first-child span { display:block; }
.admin-presence-table td:first-child span { margin-top:2px; color:var(--muted); font-size:11px; }
.admin-presence-table td:nth-child(1) { width:30%; }
.admin-presence-table td:nth-child(2) { width:19%; }
.admin-presence-table td:nth-child(3) { width:29%; }
.admin-presence-table td:nth-child(4) { width:22%; white-space:nowrap; }
.presence-status { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:900; white-space:nowrap; }
.presence-status::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px currentColor inset; }
.presence-online { color:#07845f; }
.presence-offline { color:#111827; }
.admin-presence-table td:nth-child(2) small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.presence-zero-logins { color:#111827; font-size:12px; font-weight:750; }
.presence-login-details { position:relative; }
.presence-login-details > summary { display:inline-flex; align-items:center; min-height:30px; padding:5px 8px; border:1px solid #b9ddd6; border-radius:6px; background:#f3fbf9; color:#176b53; cursor:pointer; font-size:11px; font-weight:900; list-style:none; }
.presence-login-details > summary::-webkit-details-marker { display:none; }
.presence-login-details > summary::after { content:"+"; margin-left:7px; font-size:13px; }
.presence-login-details[open] > summary::after { content:"-"; }
.presence-login-details ul { display:grid; gap:6px; margin:7px 0 0; padding:0; list-style:none; }
.presence-login-details li { padding:7px 8px; border-left:2px solid #70b9ad; background:#f8fbfb; }
.presence-login-details li strong, .presence-login-details li span { display:block; }
.presence-login-details li strong { color:#233347; font-size:11px; }
.presence-login-details li span { margin-top:2px; color:var(--muted); font-size:10px; line-height:1.35; }
.admin-presence-empty { margin:0; padding:18px; text-align:center; }
.filter { display:flex; align-items:end; gap:10px; margin:8px 0 16px; max-width:380px; }
.filter label { margin:0; }
.search-filter { margin-left:auto; max-width:560px; }
.order-list-filter { max-width:none; align-items:flex-end; flex-wrap:wrap; padding:12px; border:1px solid var(--line); border-radius:8px; background:#f8fafc; }
.order-list-filter label { flex:1 1 230px; min-width:190px; color:#526278; font-size:11px; letter-spacing:.03em; text-transform:uppercase; }
.order-list-filter select { margin-top:5px; color:var(--ink); font-size:14px; letter-spacing:0; text-transform:none; }
.order-list-filter button, .order-list-filter .button { flex:0 0 auto; min-height:42px; }
.metrics { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:14px; }
.metric strong { display:block; font-size:24px; margin-bottom:4px; }
.dashboard-chart td, .dashboard-chart th { text-align:center; }
.dashboard-chart td:first-child, .dashboard-chart td:nth-child(2), .dashboard-chart th:first-child, .dashboard-chart th:nth-child(2) { text-align:left; }
.chart-link { display:inline-flex; min-width:34px; min-height:30px; align-items:center; justify-content:center; border-radius:6px; color:var(--brand); font-weight:800; text-decoration:none; }
.chart-link:hover { background:var(--soft); }
.chart-link.zero { color:#94a3b8; font-weight:700; }
.login { max-width:420px; margin:70px auto; }
.login-brand { margin:-4px 0 18px; }
.login-brand h1 { margin:12px 0 6px; }
.login-brand p { margin:0; }
.login-actions { display:grid; grid-template-columns:1fr; gap:9px; }
.passkey-login-button { background:#fff !important; color:var(--brand) !important; border:1px solid #9bcfc8 !important; }
.security-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.security-setting-card { margin:0; }
.security-setting-card h2 { margin-top:0; }
.section-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.section-title-row h2 { margin:3px 0 0; }
.section-title-row .eyebrow { margin:0; color:var(--brand); font-size:10px; font-weight:900; letter-spacing:.06em; }
.passkey-count { min-width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:#e9f8f5; color:var(--brand-dark); font-weight:900; }
.passkey-register-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.passkey-list { display:grid; gap:8px; margin-top:16px; }
.passkey-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid var(--line); border-radius:8px; background:#fbfdff; }
.passkey-row strong, .passkey-row small { display:block; }
.passkey-row small { margin-top:3px; color:var(--muted); font-size:11px; line-height:1.4; }
.passkey-row button.compact { min-height:34px; padding:7px 10px; font-size:11px; }
.compact-empty { padding:12px; margin:0; font-size:12px; }
.notice { background:#fff8e6; border:1px solid #f4d48b; padding:12px; border-radius:8px; margin-bottom:14px; }
.page-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; flex-wrap:wrap; margin-bottom:18px; }
.page-head h1 { margin-bottom:5px; }
.page-subtitle { color:var(--muted); font-size:13px; }
.header-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.export-filter { display:flex; gap:8px; align-items:end; flex-wrap:wrap; margin:0; padding:8px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.export-filter label { display:flex; flex-direction:column; gap:4px; margin:0; font-size:12px; color:var(--muted); font-weight:800; }
.export-filter input { width:145px; padding:8px; font-size:13px; }
.export-filter button { padding:9px 12px; }
.button.ghost { background:#fff; color:var(--brand); border:1px solid var(--line); }
.button.small { padding:8px 10px; font-size:13px; }
.export-menu { position:relative; }
.export-menu > summary { display:inline-flex; align-items:center; min-height:40px; padding:9px 13px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); box-shadow:var(--shadow-soft); cursor:pointer; font-size:13px; font-weight:900; list-style:none; }
.export-menu > summary::-webkit-details-marker { display:none; }
.export-menu > summary::after { content:"⌄"; margin-left:8px; color:var(--muted); font-size:14px; }
.export-menu[open] > summary { border-color:#9bcfc8; background:#f4fbfa; color:var(--brand-dark); }
.export-menu[open] > summary::after { transform:rotate(180deg); }
.export-menu-content { position:absolute; right:0; top:calc(100% + 8px); z-index:20; width:min(510px, calc(100vw - 36px)); padding:14px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 16px 32px rgba(15,23,42,.14); }
.export-menu-content > .muted { display:block; margin:0 0 10px; font-size:12px; line-height:1.45; }
.export-menu-content .export-filter { margin:0 0 10px; padding:0; border:0; border-radius:0; background:transparent; }
.export-menu-content .button { width:100%; text-align:center; }
.work-queue { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin-bottom:18px; }
.work-card { display:flex; align-items:flex-start; gap:14px; border:1px solid var(--line); border-radius:10px; background:#fff; padding:20px; box-shadow:var(--shadow-soft); min-height:138px; color:var(--ink); text-decoration:none; }
.work-card.primary { background:#fff; color:var(--ink); border-color:var(--line); }
.work-card .eyebrow, .kpi-card .eyebrow { display:block; text-transform:uppercase; letter-spacing:.04em; font-size:11px; font-weight:800; color:inherit; opacity:.72; margin-bottom:8px; }
.work-card-icon { width:54px; height:54px; border-radius:12px; display:grid; place-items:center; flex:0 0 auto; background:#eaf8f5; color:var(--brand); font-weight:900; font-size:18px; }
.work-card:nth-child(2) .work-card-icon { background:#eef6ff; color:#1d4ed8; }
.work-card:nth-child(3) .work-card-icon { background:#f6efff; color:#7c3aed; }
.work-card:nth-child(4) .work-card-icon { background:#fff4e6; color:#d97706; }
.work-card-body { min-width:0; }
.work-card-body span { display:block; font-weight:900; margin:5px 0 8px; }
.work-card strong { display:block; font-size:32px; line-height:1; margin-bottom:10px; }
.work-card p { margin:0 0 12px; color:inherit; opacity:.86; }
.work-card em { display:block; color:var(--muted); opacity:1; font-style:normal; font-size:13px; line-height:1.35; }
.work-card.primary .button { background:#fff; color:var(--brand-dark); }
.kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin-bottom:18px; }
.kpi-card { display:grid; grid-template-columns:minmax(0,1fr) 54px; gap:10px 14px; min-height:138px; padding:20px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:var(--shadow-soft); text-decoration:none; color:var(--ink); }
.kpi-card > .muted { grid-column:1 / -1; line-height:1.35; }
.kpi-card strong { display:block; font-size:28px; line-height:1; margin-bottom:8px; }
.kpi-copy span { color:var(--muted); font-weight:700; }
.kpi-mark { width:54px; height:54px; border-radius:12px; display:grid; place-items:center; font-weight:900; background:var(--soft); color:var(--brand); flex:0 0 auto; }
.kpi-mark svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.kpi-approval .kpi-mark { background:#fff7ed; color:#b45309; }
.kpi-accounting .kpi-mark { background:#eff6ff; color:#1d4ed8; }
.kpi-payment .kpi-mark { background:#f5f3ff; color:#6d28d9; }
.kpi-invoice .kpi-mark { background:#fff7ed; color:#b45309; }
.kpi-paid .kpi-mark { background:#ecfdf5; color:#047857; }
.kpi-rejected .kpi-mark { background:#fef2f2; color:#b91c1c; }
.po-lifecycle-panel { padding:0; overflow:hidden; }
.po-lifecycle-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:17px 18px; border-bottom:1px solid var(--line); }
.po-lifecycle-head .eyebrow { display:block; margin-bottom:4px; color:var(--brand); font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.po-lifecycle-head h2 { margin:0 0 4px; font-size:19px; }
.po-lifecycle-head p { margin:0; font-size:12px; }
.po-lifecycle-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.po-lifecycle-card { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 40px; gap:10px; min-width:0; min-height:126px; padding:17px; border-right:1px solid var(--line); background:#fff; color:var(--ink); text-decoration:none; transition:background-color .18s ease, box-shadow .18s ease; }
.po-lifecycle-card:last-child { border-right:0; }
.po-lifecycle-card::before { content:""; position:absolute; top:0; right:0; left:0; height:3px; background:#94a3b8; }
.po-lifecycle-card:hover { z-index:1; background:#fbfefd; box-shadow:inset 0 0 0 1px #9bcfc8; }
.po-lifecycle-paid::before { background:#7c3aed; }
.po-lifecycle-invoice_submitted::before { background:#d97706; }
.po-lifecycle-accounted::before { background:#0f766e; }
.po-lifecycle-copy { min-width:0; }
.po-lifecycle-copy > span { display:block; color:#415166; font-size:12px; font-weight:850; }
.po-lifecycle-copy strong { display:block; margin:7px 0 8px; font-size:28px; line-height:1; }
.po-lifecycle-copy small { display:block; color:var(--muted); font-size:11px; line-height:1.35; }
.po-lifecycle-mark { width:40px; height:40px; display:grid; place-items:center; border-radius:10px; background:#f1f5f9; color:#526278; font-size:11px; font-weight:900; }
.po-lifecycle-paid .po-lifecycle-mark { background:#f5f3ff; color:#6d28d9; }
.po-lifecycle-invoice_submitted .po-lifecycle-mark { background:#fff7ed; color:#b45309; }
.po-lifecycle-accounted .po-lifecycle-mark { background:#ecfdf5; color:#047857; }
.advance-invoice-pending-panel { padding:0; overflow:hidden; }
.advance-invoice-pending-panel > summary { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:13px; padding:16px 18px; cursor:pointer; list-style:none; background:linear-gradient(135deg,#fffaf0,#fff); }
.advance-invoice-pending-panel > summary::-webkit-details-marker { display:none; }
.advance-invoice-pending-heading { min-width:0; }
.advance-invoice-pending-heading .eyebrow { display:block; margin-bottom:4px; color:#a15c00; font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.advance-invoice-pending-heading strong { display:block; color:var(--ink); font-size:16px; }
.advance-invoice-pending-heading small { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.35; }
.advance-invoice-pending-count { min-width:40px; height:40px; display:grid; place-items:center; padding:0 9px; border-radius:10px; background:#fff1cc; color:#8a5200; font-size:17px; font-weight:900; }
.advance-invoice-pending-chevron { color:#8a5200; font-size:18px; font-weight:900; transition:transform .18s ease; }
.advance-invoice-pending-panel[open] .advance-invoice-pending-chevron { transform:rotate(180deg); }
.advance-invoice-pending-body { padding:14px 16px 16px; border-top:1px solid #f1dfb8; background:#fff; }
.advance-invoice-pending-table { min-width:840px; border:0; border-radius:0; }
.advance-invoice-pending-table th { background:#fff8e8; color:#5d4b2d; font-size:11px; text-transform:uppercase; letter-spacing:.03em; }
.advance-invoice-pending-table td { vertical-align:middle; }
.advance-invoice-pending-empty { margin:0; padding:12px; text-align:center; }
.recurring-checklist-panel > summary { background:#f6fbfa; }
.recurring-checklist-heading .eyebrow { color:#08766b; }
.recurring-checklist-count { background:#dff5f0; color:#066a61; }
.recurring-checklist-panel .advance-invoice-pending-chevron { color:#08766b; }
.recurring-checklist-body { border-top-color:#cfe7e2; }
.recurring-checklist-table { min-width:980px; border:0; border-radius:0; }
.recurring-checklist-table th { background:#eff8f6; color:#34495e; font-size:11px; text-transform:uppercase; letter-spacing:.03em; }
.recurring-checklist-table td { vertical-align:middle; }
.recurring-due-cell { min-width:126px; }
.recurring-due-date { display:block; margin-bottom:5px; font-weight:800; color:#26364a; white-space:nowrap; }
.recurring-due-badge { display:inline-flex; align-items:center; padding:4px 8px; border:1px solid transparent; border-radius:999px; font-size:10px; line-height:1.15; font-weight:850; white-space:nowrap; }
.recurring-due-badge-overdue, .recurring-due-badge-today { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.recurring-due-badge-critical { background:#fff7ed; color:#c2410c; border-color:#fdba74; }
.recurring-due-badge-soon { background:#fffbeb; color:#a16207; border-color:#fde68a; }
.recurring-due-badge-upcoming { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.recurring-due-badge-later { background:#ecfdf5; color:#047857; border-color:#a7f3d0; }
.recurring-due-badge-neutral { background:#f1f5f9; color:#475569; border-color:#e2e8f0; }
.recurring-due-row.recurring-due-overdue > td:first-child, .recurring-due-row.recurring-due-today > td:first-child { box-shadow:inset 4px 0 #dc2626; }
.recurring-due-row.recurring-due-critical > td:first-child { box-shadow:inset 4px 0 #ea580c; }
.recurring-due-row.recurring-due-soon > td:first-child { box-shadow:inset 4px 0 #d4a106; }
.recurring-due-row.recurring-due-upcoming > td:first-child { box-shadow:inset 4px 0 #2563eb; }
.recurring-due-row.recurring-due-later > td:first-child { box-shadow:inset 4px 0 #059669; }
.recurring-month-check { display:inline-flex; align-items:center; padding:5px 9px; border:1px solid #dbe4ea; border-radius:999px; background:#f5f7f9; color:#526278; font-size:11px; font-weight:850; white-space:nowrap; }
.recurring-month-paid { border-color:#a7e4ce; background:#ecfdf5; color:#047857; }
.recurring-month-pending { border-color:#fed7aa; background:#fff7ed; color:#9a3412; }
.recurring-month-upcoming { border-color:#bfdbfe; background:#eff6ff; color:#1d4ed8; }
.table-toolbar { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin:10px 0 14px; }
.table-toolbar .filter { margin:0; }
.request-table-wrap { width:100%; min-width:0; max-width:100%; border:1px solid var(--line); border-radius:10px; overflow:auto; background:#fff; box-shadow:var(--shadow); }
.request-table { border:0; border-radius:0; min-width:980px; }
.request-table th { position:sticky; top:0; z-index:1; background:#eaf6f4; text-transform:uppercase; letter-spacing:.03em; font-size:11px; color:#31505d; }
.request-table tr:hover td { background:#fbfdff; }
.request-table tr.action-row td { background:#fffdf7; }
.order-table { min-width:1440px; table-layout:fixed; }
.order-table-wrap { max-width:100%; }
.order-table col.order-list-col-number { width:175px; }
.order-table col.order-list-col-party { width:195px; }
.order-table col.order-list-col-company { width:200px; }
.order-table col.order-list-col-item { width:210px; }
.order-table col.order-list-col-quantity { width:85px; }
.order-table col.order-list-col-value { width:145px; }
.order-table col.order-list-col-status { width:215px; }
.order-table col.order-list-col-payment { width:125px; }
.order-table col.order-list-col-action { width:90px; }
.order-table.order-approval-table { min-width:1580px; }
.order-table.order-approval-table col.order-list-col-action { width:230px; }
.order-table th, .order-table td { min-width:0; white-space:normal; vertical-align:middle; line-height:1.35; overflow:hidden; overflow-wrap:anywhere; }
.order-table th:nth-child(5), .order-table td:nth-child(5), .order-table th:nth-child(6), .order-table td:nth-child(6) { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.order-table th:last-child, .order-table td:last-child { overflow:visible; text-align:center; white-space:nowrap; }
.order-table td:first-child > strong { display:block; overflow-wrap:anywhere; }
.order-table .order-one-line { max-width:none; }
.order-table .status-chip { max-width:100%; }
.order-status-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-meta { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-one-line { display:block; max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cnf-so-expense-table-wrap { max-width:100%; }
.cnf-so-expense-table { min-width:1430px; table-layout:fixed; border:0; border-radius:0; }
.cnf-so-expense-table col.cnf-so-col-reference { width:180px; }
.cnf-so-expense-table col.cnf-so-col-customer { width:160px; }
.cnf-so-expense-table col.cnf-so-col-company { width:180px; }
.cnf-so-expense-table col.cnf-so-col-branch { width:100px; }
.cnf-so-expense-table col.cnf-so-col-heads { width:210px; }
.cnf-so-expense-table col.cnf-so-col-money { width:140px; }
.cnf-so-expense-table col.cnf-so-col-money-small { width:115px; }
.cnf-so-expense-table col.cnf-so-col-action { width:75px; }
.cnf-so-expense-table th, .cnf-so-expense-table td { min-width:0; vertical-align:middle; line-height:1.35; white-space:normal; overflow:hidden; overflow-wrap:anywhere; }
.cnf-so-expense-table th { font-size:12px; line-height:1.25; }
.cnf-so-expense-table td:nth-child(1) > strong { display:block; overflow-wrap:anywhere; }
.cnf-so-expense-table .order-one-line { max-width:none; }
.cnf-so-expense-table th:nth-child(n+6):nth-child(-n+9), .cnf-so-expense-table td:nth-child(n+6):nth-child(-n+9) { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cnf-so-expense-table th:last-child, .cnf-so-expense-table td:last-child { overflow:visible; text-align:center; white-space:nowrap; }
.order-document-summary { display:flex; align-items:center; gap:5px; max-width:180px; min-width:0; color:#25415f; font-size:12px; font-weight:750; }
.order-document-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-document-count { flex:0 0 auto; color:var(--brand); font-size:11px; font-weight:900; }
.order-row-view { position:relative; display:inline-block; }
.order-row-view > summary { display:inline-flex; align-items:center; justify-content:center; min-width:66px; min-height:36px; padding:8px 12px; border:1px solid #c9d9e6; border-radius:6px; background:#fff; color:var(--brand); cursor:pointer; font-size:13px; font-weight:850; list-style:none; }
.order-row-view > summary::-webkit-details-marker { display:none; }
.order-row-view > summary::after { content:"+"; margin-left:6px; font-size:15px; line-height:1; }
.order-row-view[open] > summary { border-color:#9bcfc8; background:#f4fbfa; }
.order-row-view[open] > summary::after { content:"−"; }
.order-row-view-panel { position:relative; z-index:2; width:min(680px, calc(100vw - 48px)); max-height:72vh; overflow:auto; margin-top:7px; padding:14px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 16px 34px rgba(15,23,42,.16); white-space:normal; }
.order-view-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
.order-view-grid .detail-row { grid-template-columns:minmax(100px,42%) minmax(0,1fr); padding:7px 0; }
.order-view-section-title { margin:16px 0 8px; color:#526278; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.order-view-actions { display:grid; gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid #e8eef4; }
.order-view-actions .actions { min-width:0; }
.order-view-actions .actions input, .order-view-actions .actions select { min-width:0; }
.order-view-actions .attachment-list { margin-bottom:0; }
.order-view-link { display:inline-flex; align-items:center; justify-content:center; min-width:66px; min-height:36px; padding:8px 12px; border:1px solid #c9d9e6; border-radius:6px; background:#fff; color:var(--brand); font-size:13px; font-weight:850; text-decoration:none; }
.order-view-link:hover { border-color:#9bcfc8; background:#f4fbfa; }
.order-row-actions { justify-content:center; }
.order-quick-approval { justify-content:center; }
.order-detail-shell { width:100%; max-width:1120px; min-width:0; margin:0 auto; }
.order-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:16px; }
.order-detail-head h1 { margin:4px 0 5px; }
.order-detail-kicker { color:var(--brand); font-size:11px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.order-detail-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; min-width:0; max-width:100%; }
.order-detail-card { min-width:0; max-width:100%; margin:0; padding:18px; }
.order-detail-card .request-table-wrap { min-width:0; max-width:100%; }
.order-detail-card h2 { margin:0 0 12px; font-size:17px; }
.order-detail-card .detail-row { grid-template-columns:minmax(145px,40%) minmax(0,1fr); padding:9px 0; }
.order-detail-wide { grid-column:1 / -1; }
@media (max-width:760px) { .order-detail-sections { grid-template-columns:1fr; } .order-detail-wide { grid-column:auto; } .order-detail-head { flex-direction:column; } }
.payment-plan-panel { padding:0; overflow:hidden; }
.payment-plan-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.payment-plan-head h2 { margin:0 0 4px; }
.payment-plan-head p { margin:0; }
.company-plan-tabs { display:flex; gap:8px; flex-wrap:wrap; padding:12px 16px; border-bottom:1px solid var(--line); background:#fbfdff; }
.company-plan-tab { display:flex; flex-direction:column; gap:2px; min-width:150px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); text-decoration:none; }
.company-plan-tab strong { font-size:12px; }
.company-plan-tab span { color:var(--muted); font-size:11px; font-weight:700; }
.company-plan-tab.active { border-color:var(--brand); background:var(--soft); color:var(--brand-dark); }
.payment-date-field { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:800; color:var(--muted); margin:0; }
.payment-date-field input { min-width:150px; }
.payment-plan-table input[type="checkbox"] { width:auto; }
.payment-plan-table input[type="number"], .payment-plan-table input[type="text"], .payment-plan-table input:not([type]) { min-width:120px; padding:8px; font-size:13px; }
.payment-plan-actions { display:flex; gap:8px; flex-wrap:wrap; padding:14px 16px; border-top:1px solid var(--line); background:#fbfdff; }
.recurring-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px 12px; padding:16px; border-bottom:1px solid var(--line); background:#fbfdff; }
.recurring-form label { margin:0; }
.recurring-form input, .recurring-form select { padding:8px; min-height:38px; }
.recurring-form .wide { grid-column:span 2; }
.recurring-table td { vertical-align:middle; }
.recurring-actions { display:grid; gap:6px; min-width:320px; }
.recurring-actions-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.recurring-actions input { padding:8px; font-size:13px; }
.recurring-actions button, .recurring-toggle button { padding:8px 10px; font-size:12px; }
.recurring-generated-request { display:grid; justify-items:start; gap:6px; min-width:150px; }
.recurring-generated-request .status { margin:0; }
.recurring-cycle-form { display:grid; gap:7px; min-width:260px; margin-top:8px; padding:10px; border:1px solid #cfe3df; border-radius:8px; background:#f7fbfa; }
.recurring-cycle-form > strong { color:var(--brand-dark); font-size:13px; }
.recurring-cycle-form label, .recurring-cycle-form p { margin:0; font-size:12px; }
.recurring-cycle-form input, .recurring-cycle-form select { min-width:0; padding:7px 8px; font-size:12px; }
.recurring-cycle-form .upload-box { padding:8px; }
.recurring-cycle-form .recurring-replace-files { display:flex; align-items:center; gap:7px; }
.recurring-cycle-form .recurring-replace-files input { width:auto; }
.recurring-toggle { margin-top:8px; }
.paid-payment-edit { display:grid; grid-template-columns:130px 180px minmax(160px,1fr) auto; gap:6px; min-width:620px; align-items:center; }
.paid-payment-edit input { padding:8px; font-size:13px; min-width:0; }
.paid-payment-edit button { padding:8px 10px; font-size:12px; }
input[data-money-input] { text-align:right; }
.req-no { font-size:14px; font-weight:900; }
.req-date { display:block; margin-top:3px; }
.request-main { font-weight:800; }
.amount-cell { text-align:right; white-space:nowrap; }
.amount-cell strong { font-size:15px; }
.my-activity-history-table .amount-cell { min-width:140px; }
.my-activity-history-table th:nth-child(7) { text-align:right; }
.my-activity-history-table [data-column-filter="amount"] { justify-content:flex-end; width:100%; text-align:right; }
.table-toolbar .activity-history-filter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; align-items:end; width:100%; max-width:none; }
.activity-history-filter label, .activity-history-filter input, .activity-history-filter select { min-width:0; width:100%; }
@media (max-width:860px) { .table-toolbar .activity-history-filter { grid-template-columns:minmax(0,1fr); } }
.company-payment-link { display:inline-flex; align-items:center; justify-content:flex-end; gap:7px; min-height:34px; padding:4px 8px; border-radius:6px; color:var(--brand); text-decoration:none; }
.company-payment-link:hover { background:var(--soft); text-decoration:underline; }
.company-payment-link span { font-size:22px; line-height:1; font-weight:500; }
.dashboard-overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:stretch; margin-bottom:18px; }
.dashboard-overview-grid.dashboard-overview-single { grid-template-columns:1fr; }
.dashboard-overview-grid > .panel { min-width:0; height:100%; margin-bottom:0; }
.company-payment-status-panel h2 { margin:0 0 14px; font-size:20px; }
.company-payment-status-panel table { table-layout:fixed; }
.company-notice-board { display:flex; min-height:0; flex-direction:column; }
.company-notice-board-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.company-notice-board-head .eyebrow { display:block; margin-bottom:3px; color:var(--brand); font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.company-notice-board-head h2 { margin:0; font-size:20px; }
.company-notice-count { flex:0 0 auto; padding:6px 9px; border:1px solid #b9ddd6; border-radius:999px; background:#eef9f6; color:#176b53; font-size:11px; font-weight:900; }
.company-notice-publisher { margin:0 0 10px; border:1px solid #d7e4ea; border-radius:8px; background:#fbfdff; }
.company-notice-publisher > summary { padding:9px 11px; color:var(--brand); cursor:pointer; font-size:12px; font-weight:900; list-style:none; }
.company-notice-publisher > summary::-webkit-details-marker { display:none; }
.company-notice-publisher > summary::after { content:"+"; float:right; font-size:16px; line-height:1; }
.company-notice-publisher[open] > summary { border-bottom:1px solid #e4edf2; }
.company-notice-publisher[open] > summary::after { content:"-"; }
.company-notice-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; }
.company-notice-form label { min-width:0; margin:0; font-size:11px; }
.company-notice-form input, .company-notice-form select, .company-notice-form textarea { margin-top:4px; padding:8px; font-size:12px; }
.company-notice-form textarea { min-height:68px; resize:vertical; }
.company-notice-title-field, .company-notice-message-field, .company-notice-photo-field { grid-column:1 / -1; }
.company-notice-photo-field.upload-box { padding:9px; }
.company-notice-form > .selected-attachment-list, .company-notice-form > .attachment-access-error { grid-column:1 / -1; }
.company-notice-form button { width:max-content; min-height:36px; padding:8px 12px; font-size:12px; }
.company-notice-list { display:grid; gap:8px; max-height:430px; padding-right:3px; overflow-y:auto; }
.company-notice-item { padding:10px 11px; border:1px solid #dde8ee; border-left:3px solid #6c8798; border-radius:7px; background:#fbfdff; }
.company-notice-item.company-notice-important { border-left-color:#dc2626; background:#fffafa; }
.company-notice-item.company-notice-event { border-left-color:#2563eb; background:#f8fbff; }
.company-notice-item.company-notice-fact { border-left-color:#0f8a71; background:#f7fcfa; }
.company-notice-item-head, .company-notice-item-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.company-notice-type { color:#40556b; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.company-notice-important .company-notice-type { color:#b91c1c; }
.company-notice-event .company-notice-type { color:#1d4ed8; }
.company-notice-fact .company-notice-type { color:#08745f; }
.company-notice-date, .company-notice-item-foot { color:var(--muted); font-size:10px; font-weight:700; }
.company-notice-item h3 { margin:6px 0 3px; color:#1d2d40; font-size:14px; }
.company-notice-media { display:block; margin:8px 0; border:1px solid #d8e4ea; border-radius:6px; background:#f3f7f8; overflow:hidden; }
.company-notice-photo { display:block; width:100%; max-height:320px; object-fit:contain; }
.company-notice-item p { margin:0 0 7px; color:#45576b; font-size:12px; line-height:1.45; white-space:pre-line; overflow-wrap:anywhere; }
.company-notice-item-foot form { margin:0; }
.company-notice-archive { min-height:0; padding:3px 6px; border:1px solid #fecaca; background:#fff; color:#b91c1c; font-size:10px; }
.company-notice-maker-actions { display:grid; grid-template-columns:max-content max-content 1fr; gap:6px; align-items:start; margin-top:8px; padding-top:7px; border-top:1px solid #e1eaef; }
.company-notice-editor, .company-notice-delete { margin:0; }
.company-notice-editor[open], .company-notice-delete[open] { grid-column:1 / -1; width:100%; }
.company-notice-editor > summary, .company-notice-delete > summary { width:max-content; padding:4px 7px; border:1px solid #b9ddd6; border-radius:5px; background:#fff; color:var(--brand-dark); cursor:pointer; font-size:10px; font-weight:850; list-style:none; }
.company-notice-delete > summary { border-color:#fecaca; color:#b91c1c; }
.company-notice-editor > summary::-webkit-details-marker, .company-notice-delete > summary::-webkit-details-marker { display:none; }
.company-notice-edit-form { margin-top:8px; padding:10px 0 0; border-top:1px dashed #d7e4ea; }
.company-notice-delete-form { display:grid; gap:9px; margin-top:8px; padding:10px 0 0; border-top:1px dashed #fecaca; }
.company-notice-delete-form p { margin:0; color:#7f1d1d; font-size:11px; }
.company-notice-delete-confirm { display:flex; align-items:flex-start; gap:7px; margin:0; color:#526477; font-size:11px; font-weight:700; }
.company-notice-delete-confirm input { flex:0 0 auto; width:auto; margin:1px 0 0; padding:0; }
.company-notice-delete-button { width:max-content; min-height:34px; padding:7px 11px; font-size:11px; }
.company-notice-current-photo { display:flex; grid-column:1 / -1; align-items:center; gap:10px; color:var(--muted); font-size:11px; font-weight:750; }
.company-notice-current-photo > a { color:var(--brand-dark); font-weight:850; }
.company-notice-remove-photo { display:flex; align-items:center; gap:5px; margin-left:auto !important; color:#9f2d20; }
.company-notice-remove-photo input { width:auto; margin:0; padding:0; }
.company-notice-empty { display:grid; min-height:170px; place-items:center; margin:0; text-align:center; }
.action-acknowledgement { position:fixed; z-index:130; top:84px; left:50%; width:min(540px,calc(100vw - 36px)); display:grid; grid-template-columns:40px minmax(0,1fr) 32px; gap:11px; align-items:start; padding:13px 13px 13px 14px; border:1px solid #86cbbf; border-left:4px solid #0f8a71; border-radius:8px; background:#fff; color:var(--ink); box-shadow:0 18px 44px rgba(15,23,42,.2); transform:translateX(-50%); transition:opacity .18s ease; }
.action-acknowledgement-leaving { opacity:0; pointer-events:none; }
.action-acknowledgement-icon { display:grid; width:40px; height:40px; place-items:center; border-radius:50%; background:#e8f8f3; color:#08745f; }
.action-acknowledgement-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.action-acknowledgement-copy { display:grid; gap:3px; min-width:0; color:#40556b; font-size:12px; line-height:1.4; }
.action-acknowledgement-copy > strong { color:var(--ink); font-size:15px; overflow-wrap:anywhere; }
.action-acknowledgement-label { color:#08745f; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.action-acknowledgement-reference { margin-top:3px; color:#526477; overflow-wrap:anywhere; }
.action-acknowledgement-close { display:grid; width:30px; min-width:30px; height:30px; min-height:30px; place-items:center; margin:0; padding:0; border:1px solid #d7e4ea; border-radius:6px; background:#fff; color:#526477; font-size:20px; line-height:1; }
@keyframes action-status-recorded { 0% { opacity:.72; transform:scale(.96); } 48% { opacity:1; transform:scale(1.045); box-shadow:0 0 0 6px rgba(15,118,110,.14); } 100% { opacity:1; transform:scale(1); box-shadow:0 0 0 0 rgba(15,118,110,0); } }
[data-transition-status].action-status-recorded, [data-transition-status] .action-status-recorded { animation:action-status-recorded .52s cubic-bezier(.2,.8,.2,1) both; }
body.action-acknowledgement-visible .company-notice-alert:not([hidden]) { top:220px; }
.company-notice-alert { position:fixed; z-index:120; top:96px; right:18px; width:min(390px,calc(100vw - 36px)); max-height:calc(100vh - 118px); padding:15px; border:1px solid #9dcec7; border-left:4px solid var(--brand); border-radius:8px; background:#fff; box-shadow:0 16px 42px rgba(26,49,65,.2); overflow-y:auto; }
.company-notice-alert[hidden] { display:none; }
.company-notice-alert[data-notice-type="important"] { border-left-color:#dc2626; }
.company-notice-alert[data-notice-type="event"] { border-left-color:#2563eb; }
.company-notice-alert[data-notice-type="fact"] { border-left-color:#0f8a71; }
.company-notice-alert-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.company-notice-alert-type { color:var(--brand-dark); font-size:11px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.company-notice-alert[data-notice-type="important"] .company-notice-alert-type { color:#b91c1c; }
.company-notice-alert[data-notice-type="event"] .company-notice-alert-type { color:#1d4ed8; }
.company-notice-alert-close { display:grid; width:30px; min-width:30px; height:30px; min-height:30px; place-items:center; margin:0; padding:0; border:1px solid #d7e4ea; background:#fff; color:#526477; font-size:20px; line-height:1; }
.company-notice-alert h2 { margin:9px 0 5px; color:var(--ink); font-size:18px; overflow-wrap:anywhere; }
.company-notice-alert-photo { display:block; width:100%; max-height:280px; margin:9px 0; border:1px solid #d8e4ea; border-radius:6px; background:#f3f7f8; object-fit:contain; }
.company-notice-alert-photo[hidden] { display:none; }
.company-notice-alert > p { margin:0; color:#40556b; font-size:13px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; }
.company-notice-alert-date { display:block; margin-top:8px; color:var(--muted); font-size:10px; font-weight:700; }
.company-notice-alert-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:13px; }
.company-notice-alert-actions a, .company-notice-alert-actions button { min-height:36px; padding:8px 11px; border-radius:6px; font-size:12px; font-weight:850; }
.company-notice-alert-actions a { border:1px solid #b9ddd6; background:#eef9f6; color:var(--brand-dark); text-decoration:none; }
.row-actions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.quick-approval { display:inline-flex; gap:5px; margin:0; flex-wrap:wrap; }
.quick-approval button { padding:8px 10px; font-size:12px; }
.mobile-queue-approval { display:none; }
.quick-link { background:#fff; color:var(--brand); border:1px solid var(--line); }
.upload-box { min-width:0; border:1px dashed #9cc9c4; background:#f5fbfa; border-radius:8px; padding:12px; }
.upload-box input { background:#fff; }
.upload-box .muted { display:block; margin-top:6px; font-size:12px; }
.action-upload { flex:1 1 260px; margin:0; }
.action-upload input { margin-top:6px; }
.selected-attachment-list { display:grid; gap:6px; min-width:0; margin-top:8px; }
label.upload-box + .selected-attachment-list { width:100%; margin:0; }
.selected-attachment-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto 32px; gap:8px; align-items:center; min-width:0; padding:7px; border:1px solid #d5e5e2; border-radius:7px; background:#fff; }
.selected-attachment-badge { display:grid; width:34px; height:30px; place-items:center; border-radius:6px; background:#eef5f7; color:#4e6477; font-size:9px; font-weight:900; letter-spacing:.02em; }
.selected-attachment-details { display:grid; min-width:0; }
.selected-attachment-name { overflow:hidden; color:var(--ink); font-size:12px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.selected-attachment-size { color:var(--muted); font-size:10px; font-weight:700; }
.selected-attachment-view, .selected-attachment-remove { min-height:30px !important; margin:0 !important; padding:5px 9px !important; border-radius:6px; font-size:11px !important; }
.selected-attachment-view { border:1px solid #b9d8d3; background:#f4fbf9; color:var(--brand-dark); }
.selected-attachment-remove { position:relative; width:32px; padding:0 !important; border:1px solid #fecaca; background:#fff7f7; color:#b91c1c; }
.selected-attachment-remove::before { content:"\\00d7"; font-size:20px; font-weight:500; line-height:1; }
.last-updated { color:var(--muted); font-size:12px; margin-top:6px; }
.dashboard-page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:22px; }
.dashboard-page-head h1 { margin:0 0 4px; font-size:28px; }
.refresh-panel { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; }
.refresh-meta { color:var(--muted); font-size:12px; font-weight:700; white-space:nowrap; }
.refresh-button { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:10px 16px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink); box-shadow:var(--shadow-soft); font-weight:900; text-decoration:none; }
.action-queue-content .dashboard-page-head { align-items:center; margin-bottom:16px; }
.action-queue-content .dashboard-page-head h1 { letter-spacing:-.02em; }
.compact-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 20px; }
.compact-metrics .metric { position:relative; min-height:80px; margin:0; padding:13px 16px; border-radius:10px; box-shadow:var(--shadow-soft); overflow:hidden; }
.compact-metrics .metric::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:#9cb9c7; }
.compact-metrics .metric-value::before { background:#0f766e; }
.compact-metrics .metric-open::before { background:#d97706; }
.compact-metrics .metric-paid::before { background:#7c3aed; }
.compact-metrics .metric strong { font-size:22px; line-height:1.15; font-variant-numeric:tabular-nums; }
.compact-metrics .metric .muted { font-size:12px; font-weight:800; }
.queue-list-shell { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow-soft); }
.queue-list-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid var(--line); }
.queue-list-head h2 { margin:0 0 3px; font-size:18px; letter-spacing:-.01em; }
.queue-list-head p { margin:0; color:var(--muted); font-size:13px; }
.master-list-head { flex-wrap:wrap; }
.master-list-head > * { min-width:0; max-width:100%; }
.queue-clear-filter { color:var(--brand); font-size:12px; font-weight:900; text-decoration:none; white-space:nowrap; }
.queue-toolbar { display:flex; align-items:end; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); background:#f8fafc; }
.queue-toolbar .filter { margin:0; }
.queue-status-filter { max-width:none; }
.queue-status-filter label, .queue-search-filter label { color:#526278; font-size:11px; letter-spacing:.03em; text-transform:uppercase; }
.queue-status-filter select { min-width:220px; }
.queue-search-filter { flex:1 1 360px; max-width:none; margin-left:auto; }
.queue-search-filter input { min-width:220px; flex:1 1 auto; }
.queue-toolbar button { min-height:38px; padding:8px 12px; }
.action-queue-table-wrap { border:0; border-radius:0; box-shadow:none; }
.action-queue-table { min-width:1080px; table-layout:fixed; }
.action-queue-table th { padding:11px 12px; background:#eff8f7; }
.action-queue-table th:nth-child(1) { width:17%; }
.action-queue-table th:nth-child(2) { width:10%; }
.action-queue-table th:nth-child(3) { width:24%; }
.action-queue-table th:nth-child(4) { width:16%; }
.action-queue-table th:nth-child(5) { width:13%; }
.action-queue-table th:nth-child(6) { width:13%; }
.action-queue-table th:nth-child(7) { width:7%; }
.action-queue-table td { min-width:0; padding:12px; border-bottom-color:#e8eef4; vertical-align:middle; }
.action-queue-table tr.action-row td { background:#fff; }
.action-queue-table tr.action-row td:first-child { padding-left:17px; box-shadow:inset 3px 0 0 #f59e0b; }
.action-queue-table tr:hover td { background:#f9fcfc; }
.action-queue-table .queue-cell-line { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.action-queue-table .queue-cell-primary { color:#172033; font-size:13px; font-weight:850; }
.action-queue-table .queue-amount-primary { font-size:15px; font-variant-numeric:tabular-nums; }
.action-queue-table .queue-cell-meta { color:var(--muted); font-size:12px; font-weight:650; }
.action-queue-table .queue-inline-separator { display:inline-block; margin:0 5px; color:#a1aebd; }
.action-queue-table .amount-cell { min-width:0; text-align:left; white-space:normal; }
.action-queue-table .company-cell { min-width:0; }
.action-queue-table .status-cell { min-width:0; overflow:hidden; }
.action-queue-table .status-chip { display:inline-flex; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.action-queue-table .row-actions { min-width:0; align-items:center; }
.action-queue-table .quick-link { min-height:36px; padding:8px 11px; border-color:#c9d9e6; background:#fff; color:#176e6a; box-shadow:none; }
.action-queue-table .queue-view-link { display:inline-flex; align-items:center; justify-content:center; min-width:62px; }
.workflow-summary-panel { padding:0; overflow:hidden; }
.workflow-summary-head { padding:18px 20px; border-bottom:1px solid #edf2f7; }
.workflow-summary-head h2 { margin:0; }
.workflow-summary-table { border:0; border-radius:0; }
.workflow-summary-table th { background:#f7fbfc; color:#304255; font-size:12px; text-transform:none; }
.workflow-summary-table td, .workflow-summary-table th { padding:13px 16px; }
.workflow-summary-table tbody tr:last-child td { border-bottom:0; }
.workflow-control-wrap { overflow-x:auto; }
.workflow-control-table { min-width:1560px; table-layout:fixed; }
.workflow-control-table th, .workflow-control-table td { padding:11px 9px; text-align:center; vertical-align:middle; white-space:normal; overflow-wrap:break-word; border-right:1px solid #e7edf3; }
.workflow-control-table th:last-child, .workflow-control-table td:last-child { border-right:0; }
.workflow-control-table thead th { line-height:1.25; font-weight:850; }
.workflow-control-table thead tr:first-child th:nth-child(3), .workflow-control-table thead tr:nth-child(2) th:nth-child(-n+3) { background:#fff8e8; color:#8a4b08; }
.workflow-control-table thead tr:first-child th:nth-child(4), .workflow-control-table thead tr:nth-child(2) th:nth-child(n+4):nth-child(-n+6) { background:#eef6ff; color:#175b98; }
.workflow-control-table thead tr:first-child th:nth-child(5), .workflow-control-table thead tr:nth-child(2) th:nth-child(n+7) { background:#eef9f4; color:#176b53; }
.workflow-control-table thead tr:first-child th { border-bottom:1px solid #dbe4ee; }
.workflow-control-table thead tr:first-child th:first-child { width:150px; text-align:left; }
.workflow-control-table thead tr:first-child th:nth-child(2) { width:105px; }
.workflow-control-table tbody th { text-align:left; background:#fbfdff; color:var(--ink); font-size:13px; font-weight:850; }
.workflow-control-table tbody td { font-size:14px; font-variant-numeric:tabular-nums; }
.workflow-control-table .chart-link { display:inline-grid; min-width:30px; min-height:30px; place-items:center; border-radius:6px; }
.workflow-control-table .chart-link:not(.zero) { background:#f4f8fb; }
.workflow-control-table .chart-link:hover { background:#e8f5f2; }
.global-search-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; }
.global-search-summary h2, .global-search-section h2 { margin:3px 0 0; }
.global-search-counts { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.global-search-count-chip { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 10px; border:1px solid #d7e5e2; border-radius:7px; background:#f4faf9; color:#35524e; font-size:12px; font-weight:750; }
.global-search-count-chip strong { color:var(--brand-dark); font-size:14px; }
.global-search-section { margin-bottom:16px; }
.global-search-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.global-search-section-head > div:last-child { display:flex; align-items:center; gap:9px; text-align:right; }
.global-search-section-head > div:last-child > strong { min-width:30px; height:30px; display:grid; place-items:center; border-radius:7px; background:#edf8f6; color:var(--brand-dark); }
.global-search-result-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:10px; }
.global-search-result-card { min-width:0; display:flex; flex-direction:column; gap:5px; padding:14px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); text-decoration:none; box-shadow:var(--shadow-soft); }
a.global-search-result-card:hover { border-color:#9bcfc8; background:#fbfefd; }
.global-search-result-card strong, .global-search-result-card span, .global-search-result-card small { overflow-wrap:anywhere; }
.global-search-result-card small { color:var(--muted); }
.global-search-result-card b { margin-top:3px; color:var(--brand-dark); font-variant-numeric:tabular-nums; }
.global-search-result-type { color:var(--brand); font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.global-search-empty { text-align:center; padding:42px 24px; }
.global-search-empty h2 { margin-top:0; }
@media (min-width: 1021px) {
  html.sidebar-collapsed .app-shell { grid-template-columns:64px minmax(0,1fr); gap:16px; }
  html.sidebar-collapsed .top-tabs { padding:10px 7px; gap:8px; align-items:center; }
  html.sidebar-collapsed .sidebar-controls { width:100%; justify-content:center; padding-bottom:2px; }
  html.sidebar-collapsed .sidebar-toggle { width:40px; padding:6px; }
  html.sidebar-collapsed .sidebar-toggle svg { transform:rotate(180deg); }
  html.sidebar-collapsed .sidebar-toggle-label { display:none; }
  html.sidebar-collapsed .tab-group { width:100%; align-items:center; padding-bottom:8px; }
  html.sidebar-collapsed .tab-title, html.sidebar-collapsed .tab-group-collapsible > summary { display:none; }
  html.sidebar-collapsed .tab-group-collapsible { display:flex; flex-direction:column; }
  html.sidebar-collapsed .tab-group-collapsible > nav { display:flex !important; width:100%; align-items:center; padding-top:0; }
  html.sidebar-collapsed .top-tab { width:42px; min-height:42px; justify-content:center; gap:0; padding:6px; }
  html.sidebar-collapsed .tab-icon { width:29px; height:29px; font-size:9px; }
  html.sidebar-collapsed .tab-icon svg { width:22px; height:22px; }
  html.sidebar-collapsed .tab-label { max-width:0; opacity:0; }
  html.sidebar-collapsed .nav-badge { position:absolute; top:0; right:-2px; min-width:15px; height:15px; padding:0 4px; font-size:8px; }
  html.sidebar-collapsed .side-help { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
}
@media (max-width: 1020px) {
  .dashboard-overview-grid { grid-template-columns:1fr; }
  .header-global-search { display:none; position:absolute; top:100%; right:0; left:0; z-index:105; max-width:none; min-width:0; margin:0; padding:10px 12px; border-top:1px solid #eef2f6; border-bottom:1px solid var(--line); background:#fff; box-shadow:0 12px 22px rgba(15,23,42,.11); }
  html.header-search-open .header-global-search { display:block; }
  .header-global-search input { height:42px; }
  .header-search-leading { left:24px; }
  .header-global-search button { top:15px; right:16px; }
  .header-search-toggle { display:grid; }
  .app-shell { grid-template-columns:1fr; padding:16px; }
  .top-tabs { position:static; min-height:0; flex-direction:row; overflow-x:auto; align-items:flex-start; }
  .sidebar-controls { display:none; }
  .tab-group { min-width:200px; border-bottom:0; border-right:1px solid #edf2f7; padding:0 12px 0 0; }
  .tab-group-collapsible summary { min-height:30px; }
  .side-help { display:none; }
  .overview-grid { grid-template-columns:repeat(4,minmax(0,1fr)); row-gap:12px; }
  .overview-item:nth-child(4) { border-right:0; }
  .overview-item:nth-child(5) { padding-left:0; }
  .claim-detail-layout { grid-template-columns:minmax(0,1fr) 310px; }
  .admin-user-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-user-search { grid-column:1 / -1; }
}
@media (max-width: 860px) {
  .po-items-editor-head { align-items:flex-start; flex-direction:column; }
  .po-edit-form { min-width:min(1050px,calc(100vw - 64px)); }
  .po-edit-form .po-edit-header { grid-template-columns:1fr; }
  .rm-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rm-form-grid .rm-upload-field, .rm-form-grid .rm-gst-check { grid-column:1 / -1; }
  .rm-form-card-head { align-items:flex-start; flex-direction:column; gap:4px; }
  .nav { min-height:62px; padding:8px 12px; flex-wrap:nowrap; z-index:100; }
  .brand-mark { min-width:0; gap:0; }
  .brand-logo { width:160px; }
  .brand-subtitle { display:none; }
  .header-tools { width:auto; justify-content:flex-end; gap:6px; }
  .header-icon { width:34px; height:34px; }
  .mobile-menu-toggle { display:grid; }
  .mobile-menu-toggle[aria-expanded="true"] { border-color:#8ecbc3; background:#e8f7f4; color:var(--brand-dark); }
  .mobile-menu-backdrop { position:fixed; inset:62px 0 0; z-index:90; display:block; width:100%; height:auto; padding:0; border:0; border-radius:0; background:rgba(15,23,42,.38); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); box-shadow:none; }
  html.mobile-menu-open, html.mobile-menu-open body { overflow:hidden; }
  .top-tabs { position:fixed; top:0; bottom:auto; left:0; z-index:95; width:min(340px,calc(100vw - 44px)); height:100vh; height:100dvh; max-height:100vh; max-height:100dvh; min-height:0; margin:0; padding:78px 14px calc(86px + env(safe-area-inset-bottom)); border-width:0 1px 0 0; border-radius:0 10px 0 0; flex-direction:column; align-self:auto; align-items:stretch; gap:10px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; background:#fff; box-shadow:18px 0 36px rgba(15,23,42,.18); visibility:hidden; opacity:0; pointer-events:none; transform:translateX(calc(-100% - 20px)); transition:transform .2s ease, opacity .16s ease, visibility 0s linear .2s; }
  html.mobile-menu-open .top-tabs { visibility:visible; opacity:1; pointer-events:auto; transform:translateX(0); transition:transform .2s ease, opacity .16s ease; }
  .top-tabs .tab-group { width:100%; min-width:0; padding:0 0 10px; border-right:0; border-bottom:1px solid #edf2f7; }
  .top-tabs .tab-group:last-of-type { border-bottom:0; }
  .top-tabs .top-tab { min-height:42px; padding:9px 10px; }
  .top-tabs .tab-label { max-width:none; }
  body[data-auto-refresh="yes"] { padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  .ios-install-prompt { right:12px; bottom:calc(76px + env(safe-area-inset-bottom)); left:12px; width:auto; }
  body:not([data-auto-refresh="yes"]) .ios-install-prompt { bottom:12px; }
  html.mobile-menu-open .ios-install-prompt { display:none; }
  .security-settings-grid { grid-template-columns:1fr; }
  .security-setting-card { padding:16px; }
  .passkey-register-fields { grid-template-columns:1fr; gap:0; }
  .mobile-app-nav { position:fixed; right:0; bottom:0; left:0; z-index:80; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); min-height:64px; padding:5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); border-top:1px solid #dbe4ee; background:rgba(255,255,255,.98); box-shadow:0 -8px 24px rgba(15,23,42,.09); }
  .mobile-app-nav a { min-width:0; min-height:52px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border-radius:8px; color:#667085; text-decoration:none; font-size:10px; line-height:1.1; font-weight:800; }
  .mobile-app-nav a[data-action-queue-indicator] { position:relative; }
  .mobile-app-nav a[data-action-queue-indicator].has-pending-actions { color:var(--brand); background:#edf8f6; }
  .mobile-app-nav a[data-action-queue-indicator] .action-count-badge { position:absolute; top:2px; left:calc(50% + 5px); }
  .mobile-app-nav a[aria-current="page"] { color:var(--brand); background:#edf8f6; }
  .mobile-app-nav svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
  .mobile-app-nav span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  table { display:block; overflow-x:auto; }
  .so-mode-grid { grid-template-columns:1fr; }
  .detail-grid { grid-template-columns:1fr; }
  .detail-row { grid-template-columns:1fr; gap:3px; }
  .claim-detail-page { padding:16px 16px 104px; }
  .claim-detail-title { align-items:flex-start; }
  .claim-detail-title h1 { font-size:25px; }
  .overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:13px; }
  .overview-item, .overview-item:nth-child(4) { padding:2px 12px; border-right:1px solid #e8eef4; }
  .overview-item:nth-child(odd) { padding-left:0; }
  .overview-item:nth-child(even) { padding-right:0; border-right:0; }
  .overview-item:nth-child(5), .overview-item:nth-child(7) { padding-left:0; }
  .overview-item[data-overview-field="utr"] { grid-column:1 / -1; align-items:flex-start; flex-direction:column; gap:6px; padding:10px 0 0; border-right:0; }
  .detail-workflow { align-items:flex-start; flex-direction:column; gap:7px; }
  .claim-detail-layout { display:block; }
  .claim-detail-list { grid-template-columns:1fr; }
  .claim-detail-list .detail-row { grid-template-columns:1fr; gap:3px; }
  .claim-action-rail { position:fixed; right:12px; bottom:calc(76px + env(safe-area-inset-bottom)); left:12px; z-index:70; }
  .claim-action-panel { position:static; max-height:78vh; max-height:78dvh; overflow:auto; -webkit-overflow-scrolling:touch; box-shadow:0 12px 28px rgba(15,23,42,.22); }
  .claim-action-panel > summary { padding:12px 14px; }
  .claim-action-panel[open] .claim-action-body { max-height:calc(78vh - 54px); max-height:calc(78dvh - 54px); overflow:auto; -webkit-overflow-scrolling:touch; }
  .payment-timeline li { grid-template-columns:1fr auto; }
  .payment-timeline time { grid-column:1 / -1; }
  .activity-feed li { grid-template-columns:1fr; gap:4px; }
  .audit-edit-changes { display:table; overflow:visible; }
  .compact-document-row { grid-template-columns:1fr; gap:8px; }
  .compact-document-group-head { flex-direction:column; gap:5px; }
  .compact-document-actions { justify-content:flex-start; }
  .dashboard-page-head { flex-direction:column; }
  .refresh-panel { width:100%; justify-content:space-between; flex-wrap:wrap; }
  .refresh-meta { margin-left:auto; }
  .export-menu-content { left:0; right:auto; width:min(510px, calc(100vw - 32px)); }
  .compact-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-bottom:14px; }
  .compact-metrics .metric { min-height:72px; padding:11px 12px; }
  .compact-metrics .metric strong { font-size:19px; }
  .advance-invoice-pending-panel > summary { padding:14px; }
  .po-lifecycle-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .po-lifecycle-card { border-bottom:1px solid var(--line); }
  .po-lifecycle-card:nth-child(even) { border-right:0; }
  .po-lifecycle-card:last-child { border-bottom:0; }
  .queue-list-head { align-items:flex-start; padding:14px; }
  .queue-toolbar { flex-direction:column; align-items:stretch; gap:10px; padding:12px; }
  .queue-toolbar .filter, .queue-status-filter, .queue-search-filter { width:100%; max-width:none; margin:0; }
  .queue-status-filter select, .queue-search-filter input { min-width:0; }
  .queue-search-filter { flex-wrap:wrap; }
  .queue-search-filter input { flex:1 1 180px; }
  .queue-toolbar button { min-height:40px; }
  .order-list-filter { width:100%; max-width:none; align-items:stretch; }
  .order-list-filter label { flex:1 1 100%; min-width:0; }
  .order-list-filter button, .order-list-filter .button { width:100%; text-align:center; }
  .action-queue-table-wrap { overflow:visible; background:transparent; }
  .action-queue-table { display:block; min-width:0; width:100%; border:0; background:transparent; }
  .action-queue-table thead { display:none; }
  .action-queue-table tbody { display:grid; gap:10px; padding:10px; background:#f8fafc; }
  .action-queue-table tr, .action-queue-table tr.action-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
  .action-queue-table td, .action-queue-table tr.action-row td { display:block; min-width:0; padding:10px 12px; border:0; background:#fff; text-align:left; }
  .action-queue-table td::before { content:attr(data-label); display:block; margin-bottom:4px; color:#667085; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
  .action-queue-table td:first-child, .action-queue-table td:nth-child(3), .action-queue-table td:nth-child(6), .action-queue-table td:nth-child(7) { grid-column:1 / -1; }
  .action-queue-table tr.action-row td:first-child { padding-left:15px; box-shadow:inset 3px 0 0 #f59e0b; }
  .action-queue-table .amount-cell { min-width:0; text-align:left; }
  .action-queue-table .status-cell { min-width:0; max-width:none; }
  .action-queue-table .row-actions { min-width:0; align-items:stretch; flex-direction:column; }
  .action-queue-table .queue-cell-line { overflow:visible; text-overflow:clip; white-space:normal; }
  .action-queue-table .mobile-queue-approval { display:block; width:100%; }
  .action-queue-table .mobile-queue-approval .quick-approval { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; }
  .action-queue-table .mobile-queue-approval .quick-approval button { width:100%; min-height:42px; padding:8px; white-space:normal; line-height:1.2; }
  .action-queue-table .mobile-queue-approval .quick-approval button:nth-of-type(3) { grid-column:1 / -1; }
  .action-queue-table .queue-view-link { width:100%; min-height:40px; text-align:center; }
  .claim-card-table-wrap { overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
  .claim-card-table { display:block; min-width:0; width:100%; border:0; background:transparent; }
  .claim-card-table thead { display:none; }
  .claim-card-table tbody { display:grid; gap:10px; padding:10px; background:#f8fafc; }
  .claim-card-table tr, .claim-card-table tr.action-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
  .claim-card-table td, .claim-card-table tr.action-row td { display:block; min-width:0; padding:10px 12px; border:0; background:#fff; text-align:left; overflow-wrap:anywhere; }
  .claim-card-table td::before { content:attr(data-label); display:block; margin-bottom:4px; color:#667085; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
  .claim-card-table td:first-child, .claim-card-table td:nth-child(3), .claim-card-table td:nth-child(6), .claim-card-table td:nth-child(7) { grid-column:1 / -1; }
  .claim-card-table tr.action-row td:first-child { padding-left:15px; box-shadow:inset 3px 0 0 #f59e0b; }
  .claim-card-table .amount-cell { min-width:0; text-align:left; white-space:normal; }
  .claim-card-table .status-cell { min-width:0; max-width:none; }
  .claim-card-table .row-actions { width:100%; min-width:0; align-items:stretch; flex-direction:column; }
  .claim-card-table .quick-approval { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; order:1; }
  .claim-card-table .quick-approval input:not([type="hidden"]) { grid-column:1 / -1; min-width:0; width:100%; }
  .claim-card-table .quick-approval button { width:100%; min-height:42px; padding:8px; white-space:normal; line-height:1.2; }
  .claim-card-table .quick-approval button:nth-of-type(3) { grid-column:1 / -1; }
  .claim-card-table .quick-link { display:flex; align-items:center; justify-content:center; width:100%; min-height:40px; text-align:center; order:2; }
  .admin-users-table { min-width:900px; }
  .admin-user-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 0; }
  .admin-user-summary-grid > div:nth-child(2) { border-right:0; }
  .admin-user-summary-grid > div:nth-child(3) { padding-left:0; }
  .admin-user-account-actions { grid-template-columns:1fr; }
  .admin-user-department-form { grid-template-columns:1fr; }
  .admin-presence-head { align-items:flex-start; flex-direction:column; }
  .admin-presence-total { align-self:flex-start; }
  .admin-presence-active-grid { grid-template-columns:1fr; }
  .global-search-summary, .global-search-section-head { align-items:flex-start; flex-direction:column; }
  .global-search-counts { justify-content:flex-start; }
  .global-search-result-grid { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .brand-logo { width:32px; aspect-ratio:1; }
}
@media (max-width: 560px) {
  .action-acknowledgement { top:74px; right:12px; left:12px; width:auto; grid-template-columns:36px minmax(0,1fr) 30px; padding:11px; transform:none; }
  .action-acknowledgement-icon { width:36px; height:36px; }
  body.action-acknowledgement-visible .company-notice-alert:not([hidden]) { top:242px; }
  .company-notice-alert { top:74px; right:12px; left:12px; width:auto; max-height:calc(100vh - 150px); }
  .company-notice-form { grid-template-columns:1fr; }
  .company-notice-title-field, .company-notice-message-field, .company-notice-photo-field { grid-column:auto; }
  .company-notice-form > .selected-attachment-list, .company-notice-form > .attachment-access-error { grid-column:auto; }
  .company-notice-current-photo { grid-column:auto; flex-wrap:wrap; }
  .company-notice-remove-photo { width:100%; margin-left:0 !important; }
  .company-notice-list { max-height:none; }
  .nav .user-meta, .header-action-queue, .header-change-password { display:none; }
  .install-app-button { padding:7px 9px; font-size:11px; }
  .rm-form-grid { grid-template-columns:1fr; }
  .rm-form-grid .rm-upload-field, .rm-form-grid .rm-gst-check, .rm-form-grid .rm-description-field { grid-column:1; }
  .rm-deduction-grid .rm-gst-check, .rm-deduction-grid .rm-tds-check { grid-column:1; }
  .admin-user-filters { grid-template-columns:1fr; }
  .admin-user-search { grid-column:auto; }
  .admin-user-summary-grid { grid-template-columns:1fr; }
  .admin-user-summary-grid > div { padding:8px 0; border-right:0; border-bottom:1px solid #e8eef4; }
  .admin-user-summary-grid > div:last-child { border-bottom:0; }
  .admin-user-editor-head { align-items:stretch; flex-direction:column; }
  .po-lifecycle-head { align-items:stretch; flex-direction:column; }
  .po-lifecycle-head .button { text-align:center; }
  .po-lifecycle-grid { grid-template-columns:1fr; }
  .po-lifecycle-card, .po-lifecycle-card:nth-child(2) { border-right:0; border-bottom:1px solid var(--line); }
  .po-lifecycle-card:last-child { border-bottom:0; }
  .advance-invoice-pending-heading small { display:none; }
  .advance-invoice-pending-count { min-width:36px; height:36px; }
}
/* Sales Delivery */
.sales-delivery-page {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.sales-delivery-page > *,
.sales-delivery-page .panel,
.sales-delivery-page .request-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.sales-delivery-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sales-delivery-metrics > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line, #d8e2ea);
  border-radius: 8px;
  background: #fff;
}

.sales-delivery-metrics strong,
.sales-delivery-metrics span {
  display: block;
}

.sales-delivery-metrics strong {
  margin-bottom: 4px;
  color: #102036;
  font-size: 1.8rem;
}

.sales-delivery-metrics span {
  color: #66748d;
}

.sales-delivery-section-head,
.sales-delivery-work-head,
.sales-delivery-request-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sales-delivery-section-head {
  margin-bottom: 16px;
}

.sales-delivery-section-head h2,
.sales-delivery-work-head h3 {
  margin: 3px 0 0;
}

.sales-delivery-work-grid,
.sales-delivery-request-list {
  display: grid;
  gap: 12px;
}

.sales-delivery-work-card,
.sales-delivery-request-card {
  border: 1px solid #d6e2ea;
  border-radius: 8px;
  background: #fff;
}

.sales-delivery-work-card {
  padding: 16px;
}

.sales-delivery-work-head p {
  margin: 4px 0 0;
  color: #66748d;
}

.sales-delivery-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0;
}

.sales-delivery-facts div {
  min-width: 0;
}

.sales-delivery-facts dt {
  margin-bottom: 3px;
  color: #66748d;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sales-delivery-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #17263b;
  font-weight: 700;
}

.sales-delivery-document-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.sales-delivery-document-form .upload-box {
  min-width: 0;
  margin: 0;
}

.sales-delivery-request-card > summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style-position: inside;
}

.sales-delivery-request-card[open] > summary {
  border-bottom: 1px solid #d6e2ea;
  background: #f6fbfb;
}

.sales-delivery-request-card summary span,
.sales-delivery-request-card summary small {
  display: block;
}

.sales-delivery-request-card summary small {
  margin-top: 3px;
  color: #66748d;
}

.sales-delivery-quantity-summary {
  flex: 0 0 auto;
  text-align: right;
}

.sales-delivery-request-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.sales-delivery-request-form > div {
  min-width: 0;
}

.sales-delivery-reference-field,
.sales-delivery-process-references {
  min-width: 0;
  grid-column: span 2;
}

.sales-delivery-reference-field {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d6e2ea;
  border-radius: 8px;
  background: #fbfdff;
}

.sales-delivery-reference-field legend {
  padding: 0 5px;
  color: #46566c;
  font-size: .82rem;
  font-weight: 800;
}

.sales-delivery-reference-field legend span,
.optional-label {
  color: #66748d;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sales-delivery-reference-field p {
  margin: 4px 0;
}

.sales-delivery-po-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow: auto;
}

.sales-delivery-po-options label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid #e1e9ef;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.sales-delivery-po-options input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 3px;
}

.sales-delivery-po-options span,
.sales-delivery-po-options strong,
.sales-delivery-po-options small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sales-delivery-po-options small {
  margin-top: 2px;
  color: #66748d;
  font-weight: 500;
}

.sales-delivery-process-references textarea {
  min-height: 94px;
  resize: vertical;
}

.sales-delivery-reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sales-delivery-reference-list > span {
  display: inline-block;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf7f5;
  color: #0b6f65;
  overflow-wrap: anywhere;
  font-size: .75rem;
  font-weight: 800;
}

.sales-delivery-reference-kind {
  display: block;
  margin: 7px 0 3px;
  color: #66748d;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sales-delivery-reference-kind:first-child {
  margin-top: 0;
}

.sales-delivery-submit {
  display: flex;
  align-items: end;
  gap: 10px;
}

.sales-delivery-documents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sales-delivery-document {
  min-width: 0;
  padding: 9px;
  border: 1px solid #d6e2ea;
  border-radius: 6px;
  background: #f8fafc;
}

.sales-delivery-document strong,
.sales-delivery-document > span {
  display: block;
}

.sales-delivery-document > span {
  margin-top: 5px;
  color: #66748d;
  font-size: .82rem;
}

.sales-delivery-document.ready {
  border-color: #b5dfd5;
  background: #f0fbf7;
}

.sales-delivery-document .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sales-delivery-table td {
  vertical-align: top;
}

@media (max-width: 1100px) {
  .sales-delivery-document-form,
  .sales-delivery-request-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-delivery-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-delivery-po-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .sales-delivery-metrics,
  .sales-delivery-document-form,
  .sales-delivery-request-form,
  .sales-delivery-documents,
  .sales-delivery-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-delivery-reference-field,
  .sales-delivery-process-references {
    grid-column: auto;
  }

  .sales-delivery-work-head,
  .sales-delivery-request-card > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-delivery-quantity-summary {
    text-align: left;
  }

  .sales-delivery-table,
  .sales-delivery-table tbody,
  .sales-delivery-table tr,
  .sales-delivery-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .sales-delivery-table {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .sales-delivery-table thead {
    display: none;
  }

  .sales-delivery-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #d6e2ea;
    border-radius: 8px;
    background: #fff;
  }

  .sales-delivery-table tr:last-child {
    margin-bottom: 0;
  }

  .sales-delivery-table td {
    position: relative;
    padding: 10px 12px 10px 42%;
    border: 0;
    border-bottom: 1px solid #e8eef3;
    overflow-wrap: anywhere;
  }

  .sales-delivery-table td:last-child {
    border-bottom: 0;
  }

  .sales-delivery-table td::before {
    content: attr(data-label);
    position: absolute;
    top: 11px;
    left: 12px;
    width: 34%;
    color: #66748d;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (max-width: 1100px) {
  .order-fulfilment-fields .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .order-fulfilment-fields .grid { grid-template-columns:minmax(0,1fr); }
  .master-address-list { min-width:0; }
}

.selected-attachment-metadata { display:flex; flex-wrap:wrap; align-items:center; gap:5px; color:var(--muted); font-size:10px; font-weight:700; }
.selected-attachment-status { color:#08745f; }
.selected-attachment-status::before { content:""; display:inline-block; width:5px; height:5px; margin:0 4px 1px 0; border-radius:50%; background:#10b981; }
.selected-attachment-status.is-checking { color:#76580c; }
.selected-attachment-status.is-checking::before { background:#d5a315; }
.selected-attachment-status.is-error { color:#b42318; }
.selected-attachment-status.is-error::before { background:#dc2626; }
.attachment-access-error { margin:8px 0 0; padding:9px 10px; border:1px solid #f2b8b5; border-radius:7px; background:#fff5f5; color:#9f241d; font-size:11px; font-weight:750; line-height:1.45; }
.upload-box.is-drag-over { border-color:var(--brand); background:#e9f8f5; box-shadow:0 0 0 3px rgba(15,138,113,.12); }
.upload-box-instruction { display:block; margin:3px 0 9px; color:var(--muted); font-size:11px; line-height:1.45; }

.expense-form-intro { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:-2px 0 3px; padding:10px 12px; border:1px solid #d8e7e4; border-radius:8px; background:#f7fbfa; }
.expense-form-intro p { color:#40556b; font-size:12px; line-height:1.45; }
.expense-form-required-note { flex:0 0 auto; color:#53667a; font-size:10px; font-weight:850; text-transform:uppercase; }
.expense-form-sections { display:grid; }
.expense-form-section { min-width:0; margin:0; padding:20px 0; border:0; border-bottom:1px solid #e1eaf0; }
.expense-form-section > legend { display:flex; width:100%; align-items:center; gap:9px; margin:0 0 14px; padding:0; color:var(--ink); }
.expense-form-section > legend > span { display:grid; flex:0 0 28px; width:28px; height:28px; place-items:center; border:1px solid #9ccfc7; border-radius:50%; background:#eef9f6; color:var(--brand-dark); font-size:12px; font-weight:900; }
.expense-form-section > legend strong { font-size:15px; }
.expense-form-section > legend small { margin-left:auto; color:var(--muted); font-size:11px; font-weight:700; }
.expense-section-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 14px; align-items:start; }
.expense-section-grid > *, .expense-evidence-grid > * { min-width:0; margin:0; }
.expense-section-grid > [data-vendor-field] { grid-column:span 2; }
.expense-section-grid > .cnf-sub-expense-field { grid-column:1 / -1; }
.expense-section-grid > .cnf-sales-order-field, .expense-section-grid > [data-generic-reference-field] { grid-column:span 2; }
.expense-section-grid input, .expense-section-grid select, .expense-evidence-grid input, .expense-evidence-grid textarea { min-height:46px; }
.field-optional { color:var(--muted); font-size:10px; font-weight:700; }
.approver-routing-status { display:block; min-height:16px; margin-top:5px; color:#35695f; font-size:10px; line-height:1.4; }
.expense-routing-explanation { grid-column:span 2; align-self:stretch; padding:10px 12px; border-left:3px solid #8fc8be; background:#f5faf9; }
.expense-routing-explanation strong, .expense-routing-explanation span { display:block; }
.expense-routing-explanation strong { margin-bottom:3px; color:#274456; font-size:12px; }
.expense-routing-explanation span { color:var(--muted); font-size:11px; line-height:1.45; }
.expense-duplicate-note { margin:10px 0 0 !important; color:#52677a; font-size:11px; line-height:1.45; }
.expense-duplicate-note::before { content:"Check"; display:inline-block; margin-right:7px; padding:2px 5px; border-radius:4px; background:#eef5f7; color:#36586c; font-size:9px; font-weight:900; text-transform:uppercase; }
.expense-amount-balance { min-height:18px; margin-top:8px; color:#08745f; font-size:11px; font-weight:800; }
.expense-amount-balance.has-balance { color:#9a5a09; }
.expense-amount-balance.has-error, .expense-form-actions strong.has-error { color:var(--danger); }
.expense-booking-form input[aria-invalid="true"] { border-color:#e47b73; box-shadow:0 0 0 3px rgba(180,35,24,.1); }
.expense-evidence-grid { display:grid; grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr); gap:14px; align-items:start; }
.expense-upload-field { min-height:142px; margin:0; padding:13px; }
.expense-upload-field input[type="file"] { min-height:44px; padding:5px; border:1px solid #cbdbe5; }
.expense-upload-field input[type="file"]::file-selector-button { min-height:32px; margin-right:9px; padding:6px 10px; border:1px solid #9dc9c2; border-radius:6px; background:#fff; color:var(--brand-dark); font-weight:850; cursor:pointer; }
.expense-evidence-grid textarea { min-height:142px; margin:0; resize:vertical; }
.expense-approval-section { border-bottom:0; }
.expense-form-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:4px; padding:11px 12px; border:1px solid #b9d9d3; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(32,59,72,.13); }
.expense-form-actions > span { display:grid; gap:1px; }
.expense-form-actions strong { color:var(--ink); font-size:13px; }
.expense-form-actions small { color:var(--muted); font-size:10px; font-weight:700; }
.expense-form-actions button { min-height:44px; margin:0; }
.expense-review-dialog { width:min(820px,calc(100vw - 32px)); max-height:calc(100vh - 40px); margin:auto; padding:0; border:1px solid #b9d5d0; border-radius:8px; background:#fff; color:var(--ink); box-shadow:0 24px 60px rgba(22,42,55,.28); overflow:auto; }
.expense-review-dialog::backdrop { background:rgba(20,35,49,.55); }
.expense-review-head { position:sticky; z-index:2; top:0; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px 13px; border-bottom:1px solid var(--line); background:#fff; }
.expense-review-head .eyebrow { display:block; margin-bottom:2px; color:var(--brand); font-size:9px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.expense-review-head h2 { margin:0; font-size:20px; }
.expense-review-close { display:grid; flex:0 0 36px; width:36px; height:36px; min-height:36px; place-items:center; margin:0; padding:0; border:1px solid #d7e2e8; background:#fff; color:#526477; font-size:21px; line-height:1; }
.expense-review-help { margin:0; padding:13px 18px; color:#516579; font-size:12px; line-height:1.5; }
.expense-review-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 22px; padding:0 18px; }
.expense-review-summary section { min-width:0; padding:11px 0; border-top:1px solid #e2eaf0; }
.expense-review-summary h3 { margin:0 0 6px; color:#244254; font-size:12px; }
.expense-review-summary dl { margin:0; }
.expense-review-summary dl > div { display:grid; grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr); gap:10px; padding:5px 0; }
.expense-review-summary dt { color:var(--muted); font-size:10px; font-weight:800; }
.expense-review-summary dd { min-width:0; margin:0; color:var(--ink); font-size:11px; font-weight:750; overflow-wrap:anywhere; }
.expense-review-assurance { display:flex; align-items:center; gap:9px; margin:10px 18px 0; padding:9px 10px; border-left:3px solid #0f8a71; background:#f2faf8; }
.expense-review-assurance strong { color:#176b53; font-size:11px; }
.expense-review-assurance span { color:#4d6374; font-size:10px; }
.expense-review-actions { position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:9px; margin-top:14px; padding:13px 18px; border-top:1px solid var(--line); background:#fff; }
.expense-review-actions button { min-height:42px; margin:0; }

@media (max-width:1100px) {
  .expense-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .expense-section-grid > [data-vendor-field], .expense-section-grid > .cnf-sales-order-field, .expense-section-grid > [data-generic-reference-field], .expense-routing-explanation { grid-column:1 / -1; }
}

@media (max-width:680px) {
  .expense-form-intro, .expense-form-section > legend { align-items:flex-start; }
  .expense-form-intro { flex-direction:column; gap:5px; }
  .expense-form-section > legend { flex-wrap:wrap; }
  .expense-form-section > legend small { width:calc(100% - 37px); margin:-4px 0 0 37px; }
  .expense-section-grid, .expense-evidence-grid, .expense-review-summary { grid-template-columns:1fr; }
  .expense-section-grid > *, .expense-section-grid > [data-vendor-field], .expense-section-grid > .cnf-sub-expense-field, .expense-section-grid > .cnf-sales-order-field, .expense-section-grid > [data-generic-reference-field], .expense-routing-explanation { grid-column:1; }
  .expense-form-actions { position:static; align-items:stretch; flex-direction:column; }
  .expense-form-actions button { width:100%; }
  .expense-review-summary dl > div { grid-template-columns:1fr; gap:2px; }
  .expense-review-assurance { align-items:flex-start; flex-direction:column; gap:3px; }
  .expense-review-actions { display:grid; grid-template-columns:1fr; }
  .expense-review-actions button { width:100%; }
  .selected-attachment-row { grid-template-columns:30px minmax(0,1fr) 32px; }
  .selected-attachment-view { grid-column:2; width:max-content; }
  .selected-attachment-remove { grid-column:3; grid-row:1; }
}

.technical-page { max-width:1500px; }
.technical-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.technical-summary-card { display:grid; min-width:0; gap:3px; padding:15px 16px; border:1px solid var(--line); border-left:4px solid #6b7c8f; border-radius:8px; background:#fff; box-shadow:var(--shadow); }
.technical-summary-card strong { color:var(--ink); font-size:25px; line-height:1; }
.technical-summary-card span { color:#31465a; font-size:12px; font-weight:850; }
.technical-summary-card small { color:var(--muted); font-size:10px; font-weight:700; }
.technical-summary-card.technical-tone-exception { border-left-color:#c9362b; }
.technical-summary-card.technical-tone-success { border-left-color:#11806c; }
.technical-summary-card.technical-tone-warning { border-left-color:#c58a12; }
.technical-view-tabs { display:flex; gap:4px; margin-bottom:0; border-bottom:1px solid #bfd4dd; }
.technical-view-tabs a { display:flex; align-items:center; gap:7px; padding:11px 16px; border:1px solid transparent; border-bottom:0; border-radius:7px 7px 0 0; color:#526579; font-size:12px; font-weight:850; }
.technical-view-tabs a.active { border-color:#bfd4dd; background:#fff; color:var(--brand-dark); }
.technical-view-tabs span { display:grid; min-width:20px; height:20px; place-items:center; padding:0 5px; border-radius:10px; background:#b42318; color:#fff; font-size:9px; }
.technical-filter { display:grid; grid-template-columns:minmax(260px,2fr) minmax(160px,1fr) minmax(160px,1fr) auto auto; gap:10px; align-items:end; margin-bottom:14px; padding:14px; border:1px solid #bfd4dd; border-top:0; border-radius:0 0 8px 8px; background:#fff; }
.technical-filter label { margin:0; }
.technical-filter input,.technical-filter select,.technical-filter button,.technical-filter .button { min-height:42px; margin:0; }
.technical-event-list { display:grid; gap:12px; }
.technical-event { padding:16px 18px; border:1px solid #d5e1e8; border-left:4px solid #668298; border-radius:8px; background:#fff; box-shadow:0 5px 16px rgba(27,48,61,.07); scroll-margin-top:18px; }
.technical-event.technical-exception { border-left-color:#c9362b; }
.technical-event.technical-event-focused { outline:3px solid rgba(15,138,113,.2); }
.technical-event header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.technical-event h2 { margin:3px 0 0; color:var(--ink); font-size:16px; line-height:1.35; }
.technical-event-id { color:#64758a; font-size:9px; font-weight:900; text-transform:uppercase; }
.technical-status { flex:0 0 auto; padding:5px 8px; border:1px solid #ccd8e0; border-radius:14px; background:#f4f7f9; color:#536579; font-size:9px; font-weight:900; text-transform:uppercase; }
.technical-status.technical-succeeded,.technical-reviewed { color:#08745f; }
.technical-status.technical-blocked,.technical-status.technical-slow { border-color:#efd18b; background:#fff8e8; color:#8b5c00; }
.technical-status.technical-failed,.technical-status.technical-interrupted,.technical-exception .technical-status { border-color:#f0b4af; background:#fff3f2; color:#b42318; }
.technical-explanation { margin:10px 0 12px; color:#40556a; font-size:12px; line-height:1.55; }
.technical-event-meta { display:grid; grid-template-columns:1.1fr 1fr 1.2fr .8fr; gap:10px; padding:10px 0; border-top:1px solid #e5edf1; border-bottom:1px solid #e5edf1; }
.technical-event-meta > span { min-width:0; color:#2f4356; font-size:11px; overflow-wrap:anywhere; }
.technical-event-meta strong { display:block; margin-bottom:2px; color:#78879a; font-size:8px; font-weight:900; text-transform:uppercase; }
.technical-transaction-link { color:var(--brand-dark); font-weight:850; }
.technical-details { margin-top:11px; border:1px solid #dce6eb; border-radius:7px; background:#f7fafb; }
.technical-details summary { padding:9px 11px; color:#3f586a; cursor:pointer; font-size:10px; font-weight:850; }
.technical-details pre { max-height:340px; margin:0; padding:11px; border-top:1px solid #dce6eb; background:#f3f7f8; color:#283b4c; font:10px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow:auto; }
.technical-review-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; margin-top:12px; padding:11px; border:1px solid #efd7a0; border-radius:7px; background:#fffaf0; }
.technical-review-form label { margin:0; }
.technical-review-form textarea { min-height:58px; margin-top:4px; resize:vertical; }
.technical-review-form button { min-height:42px; margin:0; }
.technical-reviewed { display:grid; gap:2px; margin-top:11px; padding:9px 11px; border-left:3px solid #11806c; background:#f0faf7; font-size:10px; }
.technical-reviewed span { color:#456559; }
.technical-pagination,.record-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; color:var(--muted); font-size:11px; font-weight:800; }
.technical-pagination div,.record-pagination div { display:flex; gap:8px; }
.technical-pagination .button,.record-pagination .button { margin:0; }
.technical-empty { text-align:center; }

@media (max-width:1000px) {
  .technical-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .technical-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .technical-filter label:first-of-type { grid-column:1 / -1; }
  .technical-event-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:680px) {
  .technical-summary,.technical-filter,.technical-event-meta,.technical-review-form { grid-template-columns:1fr; }
  .technical-filter label:first-of-type { grid-column:1; }
  .technical-event { padding:14px; }
  .technical-event header,.technical-pagination,.record-pagination { align-items:flex-start; flex-direction:column; }
  .technical-pagination div,.technical-pagination .button,.record-pagination div,.record-pagination .button { width:100%; }
  .technical-view-tabs a { flex:1; justify-content:center; padding:10px 8px; }
}

.diagnostic-form { display:grid; gap:20px; }
.diagnostic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.diagnostic-grid label { display:grid; gap:6px; min-width:0; }
.diagnostic-grid input,.diagnostic-grid select { width:100%; min-width:0; }
.diagnostic-form details summary { cursor:pointer; margin-bottom:14px; }
.diagnostic-form button { justify-self:start; }
.diagnostic-result { overflow-wrap:anywhere; }
.diagnostic-checks { display:grid; gap:12px; }
.diagnostic-checks dt { font-weight:600; }
.diagnostic-checks dd { margin:4px 0 0; }
@media (max-width:760px) { .diagnostic-grid { grid-template-columns:1fr; } }

.column-filter-button { display:inline-flex; align-items:center; gap:7px; min-height:32px; max-width:100%; padding:3px 5px; color:inherit; background:transparent; border:1px solid transparent; border-radius:4px; font:inherit; text-align:left; white-space:normal; box-shadow:none; }
.column-filter-button:hover,.column-filter-button:focus-visible { background:#fff; color:#0f766e; border-color:#75bdb7; }
.column-filter-button.is-active { background:#dff5ef; color:#075f59; border-color:#75bdb7; }
.column-filter-arrow { font-size:11px; flex:none; }
.column-filter-dot { width:6px; height:6px; background:#0f766e; border-radius:50%; flex:none; }
.column-filter-mobile { display:none; }
.column-filter-summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:10px 0; font-size:13px; }
.column-filter-summary a { color:#0f766e; font-weight:600; }
.column-filter-dialog { position:fixed; box-sizing:border-box; margin:0; width:min(340px,calc(100vw - 24px)); padding:16px; border:1px solid #b5d7d3; border-radius:8px; background:#fff; color:#182230; box-shadow:0 8px 28px #142b3433; overflow:auto; letter-spacing:0; }
.column-filter-dialog[open] { display:flex; flex-direction:column; gap:10px; }
.column-filter-dialog::backdrop { background:#10202012; }
.column-filter-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:15px; }
.column-filter-close { flex:none; width:32px; min-height:32px; padding:0; background:transparent; color:#405365; font-size:24px; line-height:1; border:0; }
.column-filter-dialog .column-filter-clear { align-self:start; background:transparent; border:0; padding:0; color:#0f766e; font-size:13px; min-height:28px; }
.column-filter-selection { display:flex; flex-wrap:wrap; gap:6px; }
.column-filter-selection button { font-size:12px; min-height:30px; padding:4px 7px; }
.column-filter-dialog input[type=search],.column-range-label input { width:100%; min-width:0; }
.column-filter-choices { overflow:auto; max-height:300px; min-height:40px; flex:1 1 auto; overscroll-behavior:contain; }
.column-filter-choice { display:flex; align-items:center; gap:8px; padding:8px 2px; margin:0; font-size:14px; font-weight:400; cursor:pointer; color:#182230; }
.column-filter-choice:hover { background:#eff8f7; }
.column-filter-choice input { width:17px; height:17px; flex:none; margin:0; accent-color:#0f766e; }
.column-choice-label { flex:1; min-width:0; overflow-wrap:anywhere; }
.column-choice-count { flex:none; color:#667085; font-size:12px; }
.column-filter-error { margin:0; color:#b42318; font-size:13px; overflow-wrap:anywhere; }
.column-filter-error:empty { display:none; }
.column-range-label { display:grid; gap:6px; font-size:13px; }
.column-filter-footer { display:flex; justify-content:flex-end; gap:8px; border-top:1px solid #dce8e7; padding-top:12px; flex:none; }
.column-filter-dialog button:focus-visible,.column-filter-dialog input:focus-visible { outline:2px solid #0f766e; outline-offset:2px; }
@media (max-width:900px) { .column-filter-mobile { display:flex; flex-wrap:wrap; gap:6px; padding:10px 0; } .column-filter-mobile .column-filter-button { background:#f1f8f7; border-color:#d0e4e1; font-size:12px; min-height:38px; } }

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; transition-delay:0s !important; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-old(portal-page-content), ::view-transition-new(portal-page-content), ::view-transition-group(portal-header), ::view-transition-group(portal-mobile-navigation), ::view-transition-group(portal-transaction-status) { animation-duration:.01ms !important; transform:none !important; }
  .portal-submit-spinner { animation:none !important; opacity:.72; }
  [data-transition-status].action-status-recorded, [data-transition-status] .action-status-recorded { animation:none !important; outline:3px solid rgba(15,118,110,.16); outline-offset:2px; }
}
