: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; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
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; }
@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); }
.brand-mark { display:flex; align-items:center; gap:18px; color:var(--ink); text-decoration:none; min-width:260px; }
.brand-logo-box { width:102px; height:42px; border-radius:8px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; border:1px solid var(--line); padding:5px; }
.brand-logo-box img { max-width:100%; max-height:100%; object-fit:contain; display:block; }
.brand-copy { display:flex; flex-direction:column; line-height:1.2; padding-left:18px; border-left:1px solid var(--line); }
.brand-copy strong { font-size:18px; letter-spacing:0; }
.brand-copy small { color:var(--muted); font-size:13px; font-weight:700; margin-top: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 { color:#2563a6; background:#f1f6fc; border-color:#dce9f7; }
.header-action-queue:hover { color:#185486; background:#e8f2fb; border-color:#bdd6ed; }
.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; }
.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; }
.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; }
.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; }
.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 { 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; }
.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; }
.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 { margin:0; }
.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 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; }
.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-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; 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 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; align-items:center; gap:12px; padding:10px 12px; border:1px solid #d9e9e7; border-radius:10px; background:#f8fcfb; }
.detail-workflow-head { display:flex; align-items:center; gap:8px; flex:0 0 auto; color:#526278; font-size:12px; font-weight:900; }
.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; }
.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; }
.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; }
.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; }
.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-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 { 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 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-detail-shell { max-width:1120px; 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; }
.order-detail-card { margin:0; padding:18px; }
.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; }
.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 { 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:285px; 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-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-empty { display:grid; min-height:170px; place-items:center; margin:0; text-align:center; }
.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; }
.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:1180px; table-layout:fixed; }
.workflow-control-table th, .workflow-control-table td { padding:11px 9px; text-align:center; vertical-align:middle; 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 th:first-child { width:150px; text-align:left; }
.workflow-control-table th:nth-child(2) { width:105px; }
.workflow-control-table tbody th { 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-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-box { width:76px; height:38px; }
  .brand-copy { 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; }
  .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[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; }
  .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; }
  .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; }
  .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: 560px) {
  .company-notice-form { grid-template-columns:1fr; }
  .company-notice-title-field, .company-notice-message-field { grid-column:auto; }
  .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; }
}
