#topLoadBar{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,#1d4ed8,#1d4ed8);z-index:9999;transition:width .25s ease,opacity .3s ease;opacity:1;box-shadow:0 0 8px #1d4ed855}#topLoadBar.done{opacity:0}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#f4f7fb;color:#172033}a{color:#2563eb;text-decoration:none}.shell{display:flex;min-height:100vh}.sidebar{width:250px;background:#fff;border-right:1px solid #e5eaf1;position:fixed;inset:0 auto 0 0;overflow:auto}.brand{font-size:20px;font-weight:800;padding:22px;border-bottom:1px solid #eef1f5;color:#1d4ed8}.sidebar nav{padding:14px}.sidebar nav a{display:flex;gap:12px;padding:11px 12px;border-radius:9px;color:#526078;margin:3px 0}.sidebar nav a:hover{background:#eff6ff;color:#1d4ed8}.main{margin-left:250px;width:calc(100% - 250px);padding:0 28px 40px}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7ebf0;margin-bottom:26px}.user-menu{font-size:14px;color:#64748b}.hero{background:#fff;border:1px solid #e7ebf0;border-radius:16px;padding:28px;margin-bottom:22px}.hero h1{margin:0 0 6px}.hero p,.card p{color:#68758a}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.card{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:22px;transition:.2s;box-shadow:0 2px 8px #1720330a}.card:hover{transform:translateY(-3px);box-shadow:0 10px 30px #17203312;border-color:#93c5fd}.card h3{margin:14px 0 7px}.card span{font-weight:700;font-size:14px}.icon{width:46px;height:46px;border-radius:12px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:20px}.tool{max-width:1100px;margin:auto}.panel{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:22px;margin-bottom:18px}.drop{border:2px dashed #cbd5e1;border-radius:12px;padding:45px;text-align:center;cursor:pointer;background:#fafcff}.drop.drag{border-color:#2563eb;background:#eff6ff}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.btn{border:0;border-radius:8px;padding:10px 16px;font-weight:700;cursor:pointer}.primary{background:#2563eb;color:#fff}.secondary{background:#eef2f7;color:#334155}.danger{background:#fee2e2;color:#b91c1c}input,textarea,select{width:100%;padding:10px 12px;border:1px solid #ccd5e1;border-radius:8px;font:inherit;background:#fff}label{display:block;font-weight:600;margin:12px 0}label input,label textarea,label select{margin-top:6px;font-weight:400}.row{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid #edf0f4;text-align:left}.flash{padding:12px 15px;background:#dcfce7;color:#166534;border-radius:9px;margin-bottom:18px}.error{padding:10px;background:#fee2e2;color:#991b1b;border-radius:8px;margin-bottom:12px}.muted{color:#64748b}.auth{min-height:100vh;display:grid;place-items:center;background:#f4f7fb}.auth-card{width:min(420px,92vw);background:#fff;padding:30px;border-radius:16px;border:1px solid #e5eaf1;box-shadow:0 10px 35px #17203312}.auth-card h1{margin-top:0}.page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:9px;margin-top:15px}.page{padding:18px 8px;border:2px solid #e2e8f0;border-radius:8px;text-align:center;cursor:pointer}.page.selected{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.badge{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef2ff;font-size:12px}.result{padding:14px;border-radius:9px;background:#f8fafc;margin-top:15px}.preview{max-width:100%;border:1px solid #e2e8f0;border-radius:8px}@media(max-width:800px){.sidebar{width:64px}.brand{font-size:0}.brand i{font-size:20px}.sidebar nav a{justify-content:center}.nav-label{display:none}.main{margin-left:64px;width:calc(100% - 64px);padding:0 14px 30px}.row{grid-template-columns:1fr}.topbar{height:58px}}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.search{max-width:360px}.kpi{display:flex;gap:10px;flex-wrap:wrap}.stat{background:#fff;border:1px solid #e5eaf1;border-radius:12px;padding:14px 18px;min-width:150px}.stat b{display:block;font-size:22px}.utility-card{position:relative}.live{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#15803d}.live:before{content:"";width:7px;height:7px;border-radius:50%;background:#22c55e;transition:background .2s}.live.live-down{color:#b91c1c}.live.live-down:before{background:#ef4444}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.category{padding:12px;border:1px solid #e2e8f0;border-radius:8px;text-align:center;cursor:pointer;position:relative}.category.active{border-color:#2563eb;background:#eff6ff}.category .dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:6px;vertical-align:middle}.signature-pad{border:1px dashed #94a3b8;border-radius:8px;width:100%;height:160px;touch-action:none;background:#fff}.file-list{margin-top:12px}.file-item{display:flex;justify-content:space-between;gap:10px;padding:10px;border:1px solid #e5eaf1;border-radius:8px;margin:7px 0;background:#fafcff}.split-board{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.split-category{border:1px solid #e2e8f0;border-radius:10px;padding:10px;min-height:110px}.drop.small{padding:24px}@media(max-width:1000px){.category-grid,.split-board{grid-template-columns:repeat(2,1fr)}}@media print{.sidebar,.topbar,.actions,.no-print{display:none!important}.main{margin:0;width:100%;padding:0}.panel{border:0;box-shadow:none}}
.user-menu{display:flex;align-items:center;gap:14px;font-size:14px;color:#64748b}.kbd{font-size:11px;background:#eef2f7;border-radius:4px;padding:1px 6px;margin-left:4px;color:#475569}.nav-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;padding:16px 12px 4px}.sidebar nav a.active{background:#eff6ff;color:#1d4ed8;font-weight:700}
.cmdk-overlay{position:fixed;inset:0;background:#0f172acc;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;z-index:50}.cmdk-overlay[hidden]{display:none}.cmdk-box{width:min(560px,92vw);background:#fff;border-radius:14px;box-shadow:0 20px 60px #00000040;overflow:hidden}.cmdk-box input{border:0;border-bottom:1px solid #e5eaf1;border-radius:0;padding:16px 18px;font-size:16px}.cmdk-box input:focus{outline:none}.cmdk-list{max-height:50vh;overflow:auto;padding:8px}.cmdk-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#172033}.cmdk-item:hover{background:#eff6ff}.cmdk-group{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;background:#f1f5f9;padding:2px 7px;border-radius:5px}.cmdk-empty{padding:20px;text-align:center;color:#94a3b8}
.hint{font-size:13px;padding:8px 10px;border-radius:8px;background:#f0fdf4;color:#166534;margin-top:6px}.hint.warn{background:#fffbeb;color:#92400e}.hint.bad{background:#fef2f2;color:#991b1b}.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.chip{padding:6px 10px;border:1px solid #cbd5e1;border-radius:999px;font-size:12px;cursor:pointer;background:#fff}.chip:hover{border-color:#2563eb;color:#1d4ed8}
@media(max-width:800px){.user-menu .kbd,.user-menu #cmdkBtn span{display:none}}
.pipeline-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.pipeline-nav a{background:#fff;border:1px solid #e5eaf1;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;color:#526078}.pipeline-nav a:hover{background:#eff6ff;color:#1d4ed8}.pipeline-nav a.active{background:#2563eb;border-color:#2563eb;color:#fff}
.pdfsplit-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:16px 0}.pdfsplit-filebar{display:flex;align-items:center;gap:10px;font-weight:700;flex-wrap:wrap}.pdfsplit-actions{display:flex;gap:8px;flex-wrap:wrap}
.pdfsplit-shell{display:flex;gap:16px;align-items:flex-start}.pdfsplit-sidebar{width:300px;flex:0 0 300px;background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:16px;max-height:80vh;overflow:auto;position:sticky;top:16px}.pdfsplit-sidebar h3{margin:0 0 4px;font-size:14px}.pdfsplit-count{font-size:12px;color:#64748b;margin-bottom:10px}.pdfsplit-catlist{display:flex;flex-direction:column;gap:4px;max-height:46vh;overflow:auto;margin:10px 0}
.pdfsplit-cat{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e5eaf1;border-radius:8px;cursor:pointer;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:#334155}.pdfsplit-cat:hover{background:#f8fafc}.pdfsplit-cat.active{border-color:#1d4ed8;background:#eff6ff;color:#1e40af}.pdfsplit-cat .dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px}.pdfsplit-cat .cname{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdfsplit-cat input[type=checkbox]{width:auto}
.pdfsplit-main{flex:1;min-width:0}.pdfsplit-activehdr{margin-bottom:12px;font-weight:600}.pdfsplit-activehdr b{color:#1d4ed8}.pdfsplit-activehdr .muted{font-weight:400;margin-top:2px}
.pdfsplit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.pdfsplit-page{border:2px solid #e2e8f0;border-radius:10px;overflow:hidden;cursor:pointer;background:#fff;position:relative}.pdfsplit-page:hover{border-color:#93c5fd}.pdfsplit-page.assigned{border-color:var(--pg-color,#1d4ed8)}.pdfsplit-page .pg-label{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;font-size:11px;font-weight:700;color:#475569;background:#f8fafc;border-bottom:1px solid #e2e8f0}.pdfsplit-page .pg-canvas-wrap{background:#f1f5f9;display:flex;align-items:center;justify-content:center;min-height:120px}.pdfsplit-page canvas{width:100%;display:block}.pdfsplit-page .pg-badge{position:absolute;top:4px;right:4px;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fff}
.pdfsplit-customadd{display:flex;gap:6px;margin-top:10px}.pdfsplit-customadd input{flex:1}
@media(max-width:900px){.pdfsplit-shell{flex-direction:column}.pdfsplit-sidebar{width:100%;flex:none;position:static;max-height:none}}
@media(max-width:800px){.pipeline-nav{gap:6px}.pipeline-nav a{padding:7px 11px;font-size:12px}}
.flyerstudio-stepper{display:flex;align-items:center;border:1px solid #ccd5e1;border-radius:8px;overflow:hidden;flex:1}.flyerstudio-stepper button{border:0;background:#f1f5f9;width:30px;height:32px;cursor:pointer;font-weight:800;color:#475569}.flyerstudio-stepper button:hover{background:#e2e8f0}.flyerstudio-stepper input{border:0;text-align:center;width:100%;padding:0;font-weight:700}
/* Disbursement page alignment: use the available content width instead of
   leaving an unnecessary narrow 1100px canvas beside the fixed sidebar. */
body.page-disbursement .tool{width:100%;max-width:1240px;margin-left:auto;margin-right:auto}
body.page-disbursement .panel{min-width:0}

/* Disbursement layout hardening: keep the main workspace and right rail in a
   deterministic grid. Tables are allowed to scroll inside their panel instead
   of forcing the whole page wider and colliding with the sidebar. */
.disb-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start;width:100%;min-width:0}
.disb-main{min-width:0;width:100%}
.disb-sidebar{width:300px;min-width:0}
.disb-main .panel,.disb-sidebar .panel{width:100%;min-width:0}
.disb-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.disb-table-wrap .table{min-width:680px}
.disb-history-wrap .disb-history-table{min-width:1080px}
.disb-staging-table{min-width:900px}
.disb-tabs{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.disb-tab-btn{white-space:nowrap;flex:0 0 auto}
.disb-section,.disb-section .row{min-width:0}
@media(max-width:1100px){.disb-shell{grid-template-columns:minmax(0,1fr) 280px}.disb-sidebar{width:280px}}
@media(max-width:850px){.disb-shell{grid-template-columns:1fr}.disb-sidebar{width:100%}}
.disb-tabs{display:flex;gap:6px;margin-bottom:14px;border-bottom:1px solid #e5eaf1}
.disb-tab-btn{background:none;border:0;padding:10px 16px;font-size:14px;font-weight:600;color:#64748b;cursor:pointer;border-bottom:2px solid transparent}
.disb-tab-btn.active{color:#1d4ed8;border-bottom-color:#1d4ed8}
.disb-section{border-top:1px solid #eef1f5;padding-top:16px;margin-top:16px}.disb-section:first-of-type{border-top:0;padding-top:0;margin-top:0}
.disb-section h3{margin:0 0 12px;font-size:14px;color:#334155}
.disb-bank-toggle{display:flex;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.disb-bank-card{flex:1 1 160px;border:1.5px solid #e2e8f0;border-radius:10px;padding:14px;text-align:center;cursor:pointer;color:#475569;transition:border-color .15s,background .15s}
.disb-bank-card i{display:block;font-size:18px;margin-bottom:6px;color:#94a3b8}
.disb-bank-card.active{border-color:#1d4ed8;background:#eff6ff;color:#1d4ed8}.disb-bank-card.active i{color:#1d4ed8}
.searchable{position:relative}
.searchable-list{position:absolute;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 30px #17203322;max-height:220px;overflow-y:auto;z-index:20}
.searchable-item{padding:9px 12px;font-size:13px;cursor:pointer}.searchable-item:hover{background:#f1f5f9}
.searchable-empty{padding:9px 12px;font-size:13px;color:#94a3b8}
.disb-staging-table{font-size:12.5px}.disb-staging-table tr.row-invalid{background:#fef2f2}
.disb-guide ol{margin:0;padding-left:18px;font-size:13px;color:#475569;line-height:1.6}.disb-guide h3,.disb-stats h3{margin:0 0 12px;font-size:14px;display:flex;align-items:center;gap:8px}
.disb-stat{display:flex;align-items:baseline;justify-content:space-between;padding:10px 0;border-top:1px solid #eef1f5}.disb-stat:first-of-type{border-top:0}
.disb-stat span{font-size:20px;font-weight:800;color:#1d4ed8}.disb-stat small{color:#64748b;font-size:12px}

.rlv-topbar{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.rlv-topbar-title{font-weight:700;color:#0f172a}
.rlv-header{display:flex;gap:16px;align-items:flex-start}
.rlv-icon{width:52px;height:52px;border-radius:12px;background:#1d4ed8;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 auto}
.rlv-header-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rlv-header-row h1{margin:0;font-size:20px}
.rlv-badge-live{background:#dcfce7;color:#166534}.rlv-badge-off{background:#f1f5f9;color:#64748b}
.rlv-grid{grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.rlv-field-label{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;color:#64748b;text-transform:uppercase;margin-bottom:8px}
.rlv-field-label-row{display:flex;justify-content:space-between;align-items:center;text-transform:none;letter-spacing:0}
.rlv-digit-counter{font-size:11px;font-weight:600;color:#94a3b8;text-transform:none}
.rlv-actions-row{align-items:center;justify-content:space-between}
.rlv-auto-note{font-size:12px;font-style:italic}
.rlv-lookups-title{margin:0 0 12px;font-size:14px;display:flex;align-items:center;gap:8px}
.rlv-lookup-empty{padding:24px 0;text-align:center;color:#94a3b8;font-size:13px}
.rlv-lookup-list{display:flex;flex-direction:column;gap:10px}
.rlv-lookup-item{display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid #eef1f5;border-radius:10px;font-size:13px}
.rlv-lookup-item-bad{background:#fef2f2;border-color:#fecaca}
.rlv-lookup-meta{text-align:right;color:#64748b;font-size:12px}.rlv-lookup-meta small{display:block;color:#94a3b8}
@media(max-width:800px){.rlv-grid{grid-template-columns:1fr}.rlv-topbar{flex-wrap:wrap}}
.merger-header-main{flex:1}
.merger-viewtabs{display:flex;gap:4px;background:#f1f5f9;border-radius:10px;padding:4px;align-self:flex-start}
.merger-viewtab-btn{border:0;background:transparent;padding:9px 14px;border-radius:8px;font-size:13px;font-weight:600;color:#64748b;cursor:pointer;display:flex;align-items:center;gap:6px}
.merger-viewtab-btn.active{background:#fff;color:#0f172a;box-shadow:0 1px 4px #17203322}
.merger-tag{background:#eff6ff;color:#1d4ed8}
.merger-policy{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.merger-policy-counter{font-weight:700;color:#92400e;white-space:nowrap}
.merger-empty{text-align:center;padding:60px 20px;border:2px dashed #cbd5e1;cursor:pointer}
.merger-empty.drag{border-color:#2563eb;background:#eff6ff}
.merger-empty-icon{width:64px;height:64px;border-radius:14px;background:var(--tm-blue-soft);color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-size:26px;margin:0 auto 18px}
.merger-empty h2{margin:0 0 8px}
.merger-sources{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.merger-sources-label{font-weight:700;color:#334155;font-size:13px}
.merger-source-chip{display:inline-flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:6px 10px 6px 6px;font-size:13px}
.merger-source-badge{width:20px;height:20px;border-radius:50%;background:#1d4ed8;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.merger-source-remove{border:0;background:none;color:#94a3b8;cursor:pointer;font-size:15px;line-height:1;padding:0 2px}.merger-source-remove:hover{color:#dc2626}
.merger-add-more{margin-left:auto}
.merger-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.merger-toolbar-spacer{flex:1 1 auto}
.merger-output-label{font-weight:600;font-size:13px;color:#334155;display:flex;align-items:center;gap:8px;margin:0}
.merger-output-label input{width:200px;margin:0;font-weight:400}
.btn.purple{background:#7c3aed;color:#fff}
.btn:disabled{opacity:.5;cursor:not-allowed}
.merger-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.merger-page{position:relative;border:2px solid #e2e8f0;border-radius:10px;padding:8px;cursor:pointer;background:#fff;text-align:center}
.merger-page.selected{border-color:#1d4ed8;background:#eff6ff}
.merger-page canvas{width:100%;border:1px solid #eef1f5;border-radius:6px;display:block;margin-bottom:6px}
.merger-page-label{font-size:11px;color:#64748b;line-height:1.4}
.merger-page-doc-badge{position:absolute;top:6px;right:6px;background:#1d4ed8;color:#fff;font-size:10px;font-weight:700;padding:3px 7px;border-radius:999px;z-index:2}
.merger-page-order{position:absolute;top:6px;left:6px;width:20px;height:20px;border-radius:50%;background:#1d4ed8;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;z-index:2}.merger-page-order[hidden]{display:none}
.merger-modal{position:fixed;inset:0;background:#0f172acc;display:flex;align-items:center;justify-content:center;z-index:50}.merger-modal[hidden]{display:none}
.merger-modal-box{background:#fff;border-radius:14px;padding:22px;max-width:520px;width:92vw;max-height:80vh;overflow-y:auto}
.merger-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.merger-modal-head h3{margin:0}
.merger-preview-list{display:flex;flex-direction:column;gap:8px}
.merger-preview-item{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px;border:1px solid #eef1f5;border-radius:8px}
.merger-preview-num{width:22px;height:22px;border-radius:50%;background:#1d4ed8;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
@media(max-width:900px){.rlv-header{flex-direction:column}.merger-viewtabs{align-self:stretch}.merger-toolbar{flex-direction:column;align-items:stretch}.merger-toolbar-spacer{display:none}}
.util-card{max-width:420px;margin:0 auto}
.util-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.util-icon{width:52px;height:52px;border-radius:12px;background:var(--tm-blue-soft);color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-size:22px}
.util-badge{background:#f1f5f9;color:#64748b;font-size:11px;font-weight:700;padding:5px 10px;border-radius:999px;height:fit-content}
.util-card h1{margin:4px 0 6px;font-size:20px}
.util-card p.muted{margin:0 0 18px;font-size:13px}
.util-drop{border:2px dashed #cbd5e1;border-radius:12px;padding:34px 14px;text-align:center;cursor:pointer;color:#64748b;font-size:13px}
.util-drop i{display:block;font-size:20px;margin-bottom:10px;color:#94a3b8}
.util-drop.drag{border-color:#2563eb;background:#eff6ff}
.util-drop[hidden]{display:none}
.util-result{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:14px;display:flex;align-items:center;gap:10px;margin-bottom:14px}
.util-result[hidden]{display:none}
.util-result i{color:#16a34a;font-size:18px;flex:0 0 auto}
.util-result-body{min-width:0}
.util-result-name{font-weight:700;font-size:13px;color:#14532d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.util-result-size{font-size:12px;color:#166534}
.util-result-size b{color:#15803d}
.util-actions{display:flex;gap:10px}
.util-actions[hidden]{display:none}
.btn.green{background:#16a34a;color:#fff;display:inline-flex;align-items:center;gap:8px;justify-content:center}
.editor-header-actions{display:flex;gap:8px;align-items:center;flex:0 0 auto;flex-wrap:wrap}
.btn-icon{width:38px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.editor-modebar{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.editor-modes{display:flex;gap:6px;background:#f1f5f9;padding:4px;border-radius:10px}
.editor-mode-btn{border:0;background:transparent;padding:8px 14px;border-radius:8px;font-weight:700;font-size:13px;color:#526078;cursor:pointer}
.editor-mode-btn.active{background:#fff;color:#1d4ed8;box-shadow:0 1px 4px #17203322}
.editor-total-pages{font-size:13px;color:#64748b;font-weight:600}
.editor-modebar-spacer{flex:1}
.editor-page.editor-page-excluded{opacity:.4}
.editor-page.dragging{opacity:.5}
.editor-page-check{position:absolute;top:6px;left:6px;z-index:2}
.editor-page-check input{width:18px;height:18px;margin:0}
.editor-drag-handle{position:absolute;top:6px;left:6px;z-index:2;color:#94a3b8;background:#fff;border-radius:6px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #17203322}
.editor-canvas-modal{position:fixed;inset:0;background:#0f172acc;display:flex;align-items:center;justify-content:center;z-index:60}.editor-canvas-modal[hidden]{display:none}
.editor-canvas-box{background:#fff;border-radius:14px;width:min(1100px,95vw);max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
.editor-canvas-head{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid #eef1f5}
.editor-canvas-head span{font-weight:700}
.editor-canvas-spacer{flex:1}
.editor-canvas-body{display:flex;gap:0;overflow:auto;flex:1}
.editor-canvas-tools{width:220px;flex:0 0 auto;padding:16px;border-right:1px solid #eef1f5;display:flex;flex-direction:column;gap:8px}
.editor-canvas-tools hr{border:0;border-top:1px solid #eef1f5;margin:10px 0}
.editor-side-panel label{margin:8px 0}
.editor-side-panel h4{margin:0 0 6px}
.editor-canvas-stage{position:relative;margin:20px auto;flex:1;display:flex;justify-content:center;align-items:flex-start}
.editor-canvas-stage canvas{display:block;border:1px solid #e2e8f0;box-shadow:0 2px 10px #17203322}
.editor-overlay-layer{position:absolute;top:0;left:0;pointer-events:none}
.editor-overlay-el{position:absolute;pointer-events:auto;cursor:move;font-size:12px;padding:4px 6px;border:1px dashed #7c3aed;border-radius:4px;background:#ffffffcc;white-space:nowrap}
.editor-overlay-text{color:#142850;font-weight:600}
.editor-overlay-signature{color:#142850;font-style:italic}
.editor-overlay-whiteout{background:#ffffffee;border-color:#94a3b8}
.editor-overlay-accountbox{padding:0;border-style:solid;border-color:#7c3aed;background:transparent}
.editor-accountbox-wrap{display:flex;width:100%;height:100%}
.editor-accountbox-cell{flex:1 1 0;display:flex;align-items:center;justify-content:center;border-right:1px solid #7c3aed;font-weight:700;font-size:13px;color:#142850;min-width:0}
.editor-accountbox-cell:last-child{border-right:0}
.editor-resize-handle{position:absolute;right:-6px;bottom:-6px;width:12px;height:12px;background:#7c3aed;border:2px solid #fff;border-radius:3px;cursor:nwse-resize;pointer-events:auto;box-shadow:0 1px 3px rgba(15,23,42,.35)}
@media(max-width:900px){.editor-canvas-body{flex-direction:column}.editor-canvas-tools{width:auto;border-right:0;border-bottom:1px solid #eef1f5}}
.btn.orange{background:#2563eb;color:#fff}
.acctgen-tag{background:#eff6ff;color:#1d4ed8}
.acctgen-head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.acctgen-inline-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.acctgen-inline-row .hint,.acctgen-inline-row #generateOut .hint{margin-top:0}
.acctgen-grid{display:grid;gap:16px;margin-top:14px}
.acctgen-grid-3{grid-template-columns:repeat(3,1fr)}
.acctgen-label{text-transform:uppercase;font-size:11px;letter-spacing:.03em;color:#64748b;font-weight:700}
.acctgen-label input,.acctgen-label select{text-transform:none;font-size:14px;color:#172033}
.acctgen-bvn-row{display:flex;gap:8px;margin-top:6px}
.acctgen-bvn-row input{margin-top:0}
.acctgen-status-select{margin-top:8px}
.acctgen-phone-row{display:flex;gap:0;margin-top:6px}
.acctgen-phone-prefix{display:flex;align-items:center;padding:0 12px;background:#f1f5f9;border:1px solid #ccd5e1;border-right:0;border-radius:8px 0 0 8px;font-weight:700;color:#526078}
.acctgen-phone-row input{border-radius:0 8px 8px 0;margin-top:0}
@media(max-width:900px){.acctgen-grid-3{grid-template-columns:1fr}.acctgen-head-row{flex-direction:column}}
.acctgen-bvn-box{background:#fafcff;border:1px solid #e5eaf1;border-radius:12px;padding:16px;margin-top:14px}
.acctgen-bvn-row{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}
.acctgen-bvn-row input{flex:1;min-width:160px;margin-top:0}
.acctgen-grid-4{grid-template-columns:repeat(4,1fr)}
.acctgen-form-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;flex-wrap:wrap}
@media(max-width:900px){.acctgen-grid-4{grid-template-columns:1fr}.acctgen-form-footer{flex-direction:column;align-items:stretch}}
.acctgen-batch-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;background:#fafcff;border:1px solid #e5eaf1;border-radius:12px;padding:14px 16px;margin-bottom:16px}
.acctgen-batch-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#64748b;min-width:220px}
.acctgen-batch-label select{margin-top:6px}
.acctgen-batch-hint{font-size:12px;flex-basis:100%}
@media(max-width:900px){.acctgen-batch-row{flex-direction:column;align-items:stretch}}
.sidebar nav a.nav-sub{padding-left:34px;font-size:13px}
.dir-filters-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.dir-filters-label{font-size:12px;font-weight:800;color:#526078;letter-spacing:.03em;white-space:nowrap;display:flex;align-items:center;gap:6px}
.dir-filters-row select{width:auto;min-width:150px}
.dir-range-pills{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}
.dir-range-pill{border:1px solid #ccd5e1;background:#fff;color:#526078;font-weight:700;font-size:12px;padding:9px 14px;border-radius:8px;cursor:pointer}
.dir-range-pill.active{background:#2563eb;color:#fff;border-color:#2563eb}
.dir-custom-range{display:flex;gap:12px;align-items:flex-end;margin-top:12px;flex-wrap:wrap}
.dir-custom-range[hidden]{display:none}
.dir-custom-range label{margin:0}
.dir-stat-card{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:20px 22px;margin-bottom:18px;display:flex;flex-direction:column;gap:4px}
.dir-stat-card b{font-size:32px}
.dir-table-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.dir-table-actions{display:flex;gap:8px;align-items:center}
.dir-table-actions input{width:220px}
.dir-table-wrap{overflow-x:auto;margin-top:14px}
.dir-row{cursor:pointer}
.dir-row:hover{background:#fafcff}
.dir-caseid{font-family:ui-monospace,Menlo,Consolas,monospace;color:#64748b;font-size:13px}
.dir-lastactive{color:#64748b;font-size:13px;white-space:nowrap}
.dir-customer{text-transform:uppercase;font-weight:600}
.dir-badge{background:#eef2ff;color:#3730a3}
.dir-detail-body{max-width:520px}
.dir-dl{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;margin:0}
.dir-dl dt{font-weight:700;color:#526078;font-size:13px}
.dir-dl dd{margin:0;font-size:14px}
@media(max-width:900px){.dir-range-pills{margin-left:0}.dir-table-actions input{width:150px}}

/* My Performance */
.perf-crumb{font-size:13px;color:#94a3b8;margin-bottom:14px}
.perf-crumb a{color:#94a3b8}
.perf-rolepills{display:flex;gap:8px;margin-bottom:14px}
.perf-pill{font-size:11px;font-weight:800;letter-spacing:.03em;padding:6px 12px;border-radius:999px}
.perf-pill-blue{background:#eff6ff;color:#1d4ed8}
.perf-pill-orange{background:#eff6ff;color:#1d4ed8}
.perf-pill-gold{background:#fefce8;color:#1d4ed8}
.perf-tabstrip{display:flex;gap:22px;border-bottom:1px solid #e5eaf1;margin-bottom:20px;flex-wrap:wrap}
.perf-tab{display:flex;align-items:center;gap:6px;padding:10px 2px 14px;color:#64748b;font-weight:700;font-size:14px;border-bottom:2px solid transparent}
.perf-tab.active{color:#1d4ed8;border-bottom-color:#1d4ed8}
.perf-tab-locked{opacity:.45;cursor:not-allowed}
.perf-tab-tag{background:#f1f5f9;color:#64748b;font-size:10px;font-weight:800;padding:2px 6px;border-radius:5px}
.perf-badge-row{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.perf-badge{background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;letter-spacing:.02em;padding:8px 14px;border-radius:999px}
.perf-badge-gold{background:#fefce8;color:#1d4ed8}
.perf-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}
.perf-stat-grid-3{grid-template-columns:repeat(3,1fr)}
.perf-stat-card{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:6px}
.perf-stat-card b{font-size:26px}
.perf-stat-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:15px;margin-bottom:4px}
.perf-ic-blue{background:#eff6ff;color:#2563eb}
.perf-ic-amber{background:#eff6ff;color:#1d4ed8}
.perf-ic-green{background:#dcfce7;color:#166534}
.perf-ic-peach{background:#fff1e6;color:#1d4ed8}
.perf-ic-purple{background:#f3e8ff;color:#7e22ce}
.perf-ic-red{background:#fee2e2;color:#b91c1c}
.perf-substat{font-size:11px;color:#94a3b8}
@media(max-width:1000px){.perf-stat-grid,.perf-stat-grid-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.perf-stat-grid,.perf-stat-grid-3{grid-template-columns:1fr}}
.perf-trend-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.perf-trend-total{color:#1d4ed8;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;font-weight:700}
.perf-bars{display:flex;align-items:flex-end;gap:3px;height:90px}
.perf-bar{flex:1;background:#bfdbfe;border-radius:2px 2px 0 0;min-height:2px}
.perf-bar:hover{background:#1d4ed8}
.perf-section-label{font-size:12px;font-weight:800;letter-spacing:.03em;margin-bottom:14px}
.perf-pipeline-pills{display:flex;gap:10px;flex-wrap:wrap}
.perf-pipeline-pill{border:1px solid #e5eaf1;border-radius:10px;padding:8px 14px;font-size:13px;color:#526078;font-weight:600}
.perf-pipeline-pill b{color:#1d4ed8;margin-left:6px}
.perf-tab-danger{color:#dc2626}
.perf-name-cell{display:flex;align-items:center;gap:10px}
.perf-avatar{width:32px;height:32px;border-radius:50%;background:#eef2ff;color:#3730a3;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex-shrink:0}
.perf-owned-tag{color:#16a34a;font-size:10px;font-weight:800;letter-spacing:.02em}
.perf-good{color:#16a34a;font-weight:700}
.perf-bad{color:#dc2626;font-weight:700}
.perf-rank-num{color:#1d4ed8;font-weight:800}
.perf-ledger-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.perf-commission{color:#1d4ed8;font-weight:700}
@media(max-width:800px){.perf-tabstrip{gap:14px}}

/* Usage Guide -- role-based training hub */
.guide-hero{background:linear-gradient(135deg,#1d4ed8,#2563eb 55%,#0d9488);border-radius:16px;padding:28px 30px;margin-bottom:18px;color:#fff}
.guide-hero-tag{background:rgba(255,255,255,.18);color:#fff;font-weight:700;letter-spacing:.02em;margin-bottom:12px}
.guide-hero h1{margin:8px 0 4px;font-size:26px}
.guide-hero p{margin:0 0 16px;color:#dbeafe}
.guide-hero input{max-width:520px;border:0;padding:12px 14px;border-radius:10px;background:rgba(255,255,255,.16);color:#fff}
.guide-hero input::placeholder{color:#dbeafe}
.guide-track-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:18px}
.guide-track-card{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:16px;text-align:left;cursor:pointer;font:inherit;display:flex;flex-direction:column;gap:10px}
.guide-track-card:hover{border-color:#93c5fd}
.guide-track-card.active{border-color:#1d4ed8;box-shadow:0 0 0 1px #1d4ed8}
.guide-track-icon{width:38px;height:38px;border-radius:10px;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;font-size:16px}
.guide-track-card.active .guide-track-icon{background:#1d4ed8;color:#fff}
.guide-track-label{font-weight:700;font-size:13px;color:#172033}
.guide-modules-panel{text-align:center}
.guide-empty{padding:30px 10px}
.guide-empty i{font-size:34px;color:#cbd5e1}
.guide-empty h3{margin:14px 0 4px}
.guide-quicklinks{margin-top:6px;padding-top:18px;border-top:1px solid #eef1f5;display:flex;gap:10px;flex-wrap:wrap;justify-content:center;align-items:center}
.guide-quicklinks-group{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;align-items:center}
.guide-quicklinks-group[hidden]{display:none}
.guide-quicklinks-label{color:#64748b;font-size:13px;width:100%;margin-bottom:4px}
.guide-faq-item{border-bottom:1px solid #eef1f5}
.guide-faq-q{width:100%;text-align:left;background:none;border:0;padding:14px 2px;font:inherit;font-weight:700;cursor:pointer;display:flex;justify-content:space-between;align-items:center;color:#172033}
.guide-faq-q i{color:#94a3b8;transition:.15s;font-size:12px}
.guide-faq-q.open i{transform:rotate(90deg)}
.guide-faq-a{display:none;padding:0 2px 16px}
.guide-faq-a.open{display:block}
.guide-faq-a p{margin:0;color:#475569;line-height:1.6}

.row[hidden]{display:none}

/* My Profile */
.profile-section-head{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px;margin-bottom:16px}
.profile-section-head span:first-of-type{flex:none}
.profile-section-head .badge{margin-left:auto}
.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px 24px}
.profile-field label{margin:0 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;font-weight:700}
.profile-value{font-weight:700;font-size:15px;color:#172033}
.profile-badge-blue{background:#eff6ff;color:#1d4ed8;font-weight:700}
.profile-badge-danger{background:#fee2e2;color:#b91c1c}
.profile-link-btn{background:none;color:#1d4ed8;font-weight:700;padding:0}
.profile-notif-list{border-top:1px solid #eef1f5;margin-top:6px}
.profile-notif-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #eef1f5}
.profile-notif-row select{width:auto;min-width:140px}
.profile-btn-green{background:#16a34a}

/* Customer Search */
.cs-hero h1{margin:0 0 6px}
.cs-hero>p{margin:0 0 18px}
.cs-searchbar{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.cs-search-input{flex:1;min-width:240px;display:flex;align-items:center;gap:10px;border:1px solid #ccd5e1;border-radius:10px;padding:0 14px;background:#fff}
.cs-search-input i{color:#94a3b8}
.cs-search-input input{border:0;padding:12px 0;flex:1}
.cs-search-input input:focus{outline:none}
.cs-search-btn{background:#1d4ed8;color:#fff;padding:0 22px;border-radius:10px;display:flex;align-items:center;gap:8px}
.cs-empty{text-align:center;padding:36px 20px}
.cs-empty p{max-width:420px;margin:0 auto}

/* HOD CSU task queue */
.csu-head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.csu-bank-toggle{display:flex;gap:8px;background:#f1f5f9;border-radius:10px;padding:4px}
.csu-bank-btn{padding:9px 16px;border-radius:8px;font-size:13px;font-weight:700;color:#526078}
.csu-bank-btn.active{background:#1d4ed8;color:#fff}
/* HOD CSU top controls: keep the two global actions on the same row as the tabs.
   This places Master Export + Upload Response in the open right-hand area,
   matching the intended HOD CSU layout without changing workflow behavior. */
.csu-tab-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:nowrap;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #eef1f5}
.csu-tab-row .merger-viewtabs{flex:1 1 auto;min-width:0;gap:2px}
.csu-tab-row .merger-viewtab-btn{padding:9px 10px;white-space:nowrap;font-size:13px}
.csu-tab-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;white-space:nowrap}
.csu-tab-actions .btn{white-space:nowrap}
.csu-tab-row .merger-viewtab-btn .badge{background:#f1f5f9;color:#526078;margin-left:2px}
.csu-tab-row .merger-viewtab-btn.active{border-bottom:2px solid #1d4ed8}
.csu-tab-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;white-space:nowrap}
.csu-pipeline-box{background:#fafcff;border:1px solid #e5eaf1;border-radius:12px;padding:16px 18px;margin-bottom:22px}
.csu-pipeline-box h3{margin:0 0 2px}
.csu-incoming-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.csu-avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#eff6ff;color:#1d4ed8;font-weight:800;font-size:13px}
.csu-time-badge{background:#fef3c7;color:#92400e}
.csu-manual-form{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;min-width:255px}
.csu-manual-link{border:0;background:transparent;color:var(--tm-blue);font-weight:800;padding:7px 0;white-space:nowrap;cursor:pointer;font-size:13px}
.csu-manual-link:hover{color:var(--tm-blue-dark);text-decoration:underline}
.csu-manual-editor{display:flex;align-items:center;gap:8px;white-space:nowrap}
.csu-manual-editor[hidden]{display:none!important}
.csu-manual-editor input[type=text]{width:165px;height:36px;border:1px solid #dbe2ea;border-radius:8px;padding:0 11px;font-size:13px;outline:none;box-sizing:border-box}
.csu-manual-editor input[type=text]:focus{border-color:var(--tm-blue);box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.csu-manual-save{height:36px;border:0;border-radius:8px;background:var(--tm-blue);color:#fff;padding:0 15px;font-weight:800;font-size:12px;cursor:pointer}
.csu-manual-save:hover{background:var(--tm-blue-dark)}
.csu-manual-cancel{height:36px;border:0;background:transparent;color:#64748b;padding:0 2px;font-size:13px;cursor:pointer}
.csu-manual-cancel:hover{color:#334155}
.csu-batch-card{border:1px solid #e5eaf1;border-radius:14px;padding:18px 20px;margin-bottom:14px}
.csu-batch-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.csu-batch-head h3{margin:0 0 6px;font-size:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.csu-batch-dates{font-size:12px}
.csu-badge-exported{background:#eff6ff;color:#1d4ed8}
.csu-badge-response{background:#eff6ff;color:#1d4ed8}
.csu-badge-archived{background:#f1f5f9;color:#526078}
.csu-batch-bar{height:6px;border-radius:999px;background:#eef1f5;margin-top:12px;overflow:hidden}
.csu-batch-bar-fill{height:100%;background:#16a34a;border-radius:999px}
.csu-recon-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #eef1f5;flex-wrap:wrap}
.csu-recon-count{font-weight:700;color:#1d4ed8}
#csuResponseModal .merger-modal-box label{margin:12px 0}

/* Offer Letter RSA calculation */
.offer-calc-box{border:1px solid #e5eaf1;border-radius:12px;padding:16px 18px;margin:14px 0;background:#fbfbfd}
.offer-calc-box h3{margin:0 0 10px;font-size:14px}
.offer-calc-table td{padding:6px 10px}
.offer-calc-table td:first-child{font-weight:600;color:#374151}
.offer-calc-table td:nth-child(2){font-family:ui-monospace,Menlo,Consolas,monospace;white-space:nowrap}

/* Dashboard */
.dash-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid #e7ebf0;border-radius:16px;padding:26px 28px;margin-bottom:18px}
.dash-hero h1{margin:0 0 6px}
.dash-role-pill{display:inline-flex;align-items:center;gap:8px;background:#eff6ff;color:#1d4ed8;font-weight:700;font-size:13px;padding:9px 16px;border-radius:999px;white-space:nowrap}
.dash-stats{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.dash-stat{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:18px 22px;min-width:170px}
.dash-stat b{display:block;font-size:26px;margin-bottom:4px}
.dash-stat span{color:#68758a;font-size:13px;font-weight:600}
.dash-stat-alert b{color:#1d4ed8}
.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:8px}
.dash-panel h2{margin:0 0 14px;font-size:16px}
.dash-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.dash-panel-head h2{margin:0}
.dash-empty{color:#94a3b8;text-align:center;padding:22px 10px}
.dash-empty i{display:block;font-size:22px;margin-bottom:8px;color:#cbd5e1}
.dash-item{padding:12px 0;border-bottom:1px solid #f1f5f9;display:flex;flex-direction:column;gap:3px}
.dash-item:last-child{border-bottom:0}
.dash-item span.muted{font-size:12.5px}
.dash-note{margin:2px 0 0;font-size:13px;color:#526078;background:#fafcff;border-radius:8px;padding:8px 10px}
.dash-notif{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.dash-notif-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.btn-link{background:none;border:0;color:#2563eb;font-weight:700;font-size:13px;cursor:pointer;padding:0}
@media(max-width:900px){.dash-grid{grid-template-columns:1fr}}

/* Stage 1: Intake */
.intake-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.intake-search{display:flex;flex:1;min-width:220px;max-width:420px}
.intake-search input{border-radius:8px 0 0 8px}
.intake-search button{border:1px solid #ccd5e1;border-left:0;background:#f8fafc;border-radius:0 8px 8px 0;padding:0 14px;cursor:pointer}
.intake-bankfilter select{min-width:160px}
.intake-new-btn{white-space:nowrap;margin-left:auto}
.intake-form-panel{background:#fafcff;margin-top:0}
.intake-urgent-check{display:flex;align-items:center;gap:8px;font-weight:600}
.intake-urgent-check input{width:auto}
.intake-urgent-flag{color:#dc2626}
.danger-link{background:none;border:0;color:#dc2626;font-weight:700;cursor:pointer;padding:8px 10px}

/* My Archive */
.archive-search{display:flex;max-width:420px;margin-top:14px}
.archive-search input{border-radius:8px 0 0 8px}
.archive-search button{border:1px solid #ccd5e1;border-left:0;background:#f8fafc;border-radius:0 8px 8px 0;padding:0 14px;cursor:pointer}
.arc-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em}
.arc-badge-done{background:#dcfce7;color:#166534}
.arc-badge-pending{background:#f1f5f9;color:#526078}
.arc-actions-cell{position:relative}
.actions-dropdown{position:relative;display:inline-block}
.actions-dd-btn{display:inline-flex;align-items:center;gap:8px}
.actions-menu{display:none;position:absolute;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #e5eaf1;border-radius:10px;box-shadow:0 10px 30px #17203322;min-width:190px;z-index:20;overflow:hidden}
.actions-menu.open{display:block}
.actions-menu form{margin:0}
.actions-menu button,.actions-menu a{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 14px;font-size:13px;font-weight:600;color:#334155;cursor:pointer;text-decoration:none}
.actions-menu button:hover,.actions-menu a:hover{background:#f8fafc}
.intake-draft-badge{background:#eff6ff;color:#1d4ed8}

/* Processing Officer: Pool / My Workflow / My Archive */
.po-slots{font-weight:700;color:#526078;font-size:13px;white-space:nowrap}
.po-pool-filters{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #eef1f5}
.po-branch-filter{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13px;margin:0}
.po-branch-filter select{width:auto;min-width:160px}
.po-urgent-filter{display:flex;align-items:center;gap:7px;font-weight:600;font-size:13px;margin:0}
.po-urgent-filter input{width:auto}
.po-pool-card{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 4px;border-bottom:1px solid #f1f5f9}
.po-pool-card:last-child{border-bottom:0}
.po-pool-main{display:flex;flex-direction:column;gap:4px}
.po-pool-main .muted{font-size:12.5px}
.po-wf-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Stage 1 Intake wizard */
.wiz-topbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.wiz-bank-pill{background:#eff6ff;color:#1d4ed8;font-weight:800;font-size:12px;letter-spacing:.02em;padding:8px 14px;border-radius:8px}
.wiz-steps{display:flex;align-items:center;gap:18px;flex:1}
.wiz-step{display:flex;align-items:center;gap:8px;color:#94a3b8;font-weight:700;font-size:13px}
.wiz-step-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#f1f5f9;color:#94a3b8;font-style:normal;font-size:12px}
.wiz-step.active{color:#1d4ed8}
.wiz-step.active .wiz-step-num{background:#1d4ed8;color:#fff}
.wiz-step.done{color:#166534}
.wiz-step.done .wiz-step-num{background:#dcfce7;color:#166534}
.wiz-draft-pill{display:inline-flex;align-items:center;gap:6px;color:#94a3b8;font-weight:700;font-size:12px;background:#f8fafc;border:1px solid #e5eaf1;border-radius:999px;padding:6px 12px}
.wiz-agent-toggle{display:flex;flex-direction:column;gap:4px;font-weight:700;cursor:pointer}
.wiz-agent-toggle input{width:auto;margin-right:8px}
.wiz-agent-toggle .muted{font-weight:400;font-size:13px}
.wiz-agent-box{margin-top:14px;padding-top:14px;border-top:1px solid #eef1f5}
.wiz-section-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.wiz-section-head h2{margin:0}
.wiz-section-head h3{margin:24px 0 12px;padding-top:16px;border-top:1px solid #eef1f5;font-size:15px}
.wiz-section-head:first-of-type h3,h2+.wiz-section-head h3{padding-top:0;border-top:none;margin-top:0}
.wiz-intro{margin:0 0 16px}
.wiz-manual-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;margin-top:8px}
.wiz-manual-upload{margin-top:8px}
.wiz-upload-box{border:1px solid #e5eaf1;border-radius:12px;padding:16px 18px;margin:18px 0}
.wiz-upload-box b{display:block;margin-bottom:4px}
.acctgen-grid-2{grid-template-columns:repeat(2,1fr)}
.wiz-upload-more-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}
.wiz-upload-more-form select{width:auto}
.wiz-upload-more-form input[type=file]{width:auto}
@media(max-width:900px){.acctgen-grid-2{grid-template-columns:1fr}.wiz-steps{gap:10px}}


/* Dedicated PFA workspace — Techomes logo blue, not the legacy orange accent. */
.pfa-page{width:100%;max-width:1400px;margin:0 auto;padding-bottom:28px}
.pfa-breadcrumb{display:flex;align-items:center;gap:10px;font-size:13px;color:#94a3b8;margin:4px 0 18px}.pfa-breadcrumb b{color:#cbd5e1}.pfa-breadcrumb strong{color:#172033}.pfa-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.pfa-head h1{margin:0 0 6px;font-size:30px}.pfa-head p{margin:0;color:#64748b;font-size:14px}.pfa-pool{display:inline-flex;align-items:center;gap:8px;border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;padding:9px 14px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}.pfa-pool span{width:7px;height:7px;border-radius:50%;background:#22c55e}
.pfa-tabs{display:flex;align-items:flex-end;gap:30px;border-bottom:1px solid #e5eaf1;margin-bottom:18px}.pfa-tabs a{display:flex;align-items:center;gap:7px;padding:13px 3px 12px;color:#64748b;font-size:14px;font-weight:700;border-bottom:3px solid transparent}.pfa-tabs a:hover{color:#1d4ed8}.pfa-tabs a.active{color:#1d4ed8;border-bottom-color:#1d4ed8}.pfa-tabs b{font-size:12px;background:#f1f5f9;border-radius:999px;padding:2px 7px;color:#64748b}.pfa-tabs a.active b{background:#eff6ff;color:#1d4ed8}
.pfa-filterbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.pfa-pending{font-size:12px;font-weight:800;color:#64748b;white-space:nowrap}.pfa-pending b{color:#1d4ed8;margin-left:6px}.pfa-pending span{font-weight:500;margin-left:4px}.pfa-chipset{display:flex;gap:7px;flex-wrap:wrap}.pfa-chip{padding:7px 12px;border:1px solid #dbe3ec;background:#fff;border-radius:999px;font-size:12px;font-weight:700;color:#64748b}.pfa-chip:hover{border-color:#93c5fd;color:#1d4ed8}.pfa-chip.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.pfa-search{position:relative;display:flex;align-items:center;min-width:220px;flex:1;max-width:360px;margin-left:auto}.pfa-search i{position:absolute;left:12px;color:#94a3b8}.pfa-search input{padding-left:34px;height:42px;border-radius:10px}.pfa-selects{width:160px}.pfa-selects select{height:42px}.pfa-assigned-pill{display:flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:10px;font-size:12px;font-weight:800}
.pfa-table-wrap{background:#fff;border:1px solid #e5eaf1;border-radius:12px;overflow:auto}.pfa-table{width:100%;min-width:930px;border-collapse:separate;border-spacing:0}.pfa-table th{background:#f8fafc;color:#64748b;font-size:11px;letter-spacing:.05em;text-align:left;padding:13px 18px;border-bottom:1px solid #e5eaf1;white-space:nowrap}.pfa-table td{padding:16px 18px;border-bottom:1px solid #eef1f5;color:#526078;font-size:13px;vertical-align:top}.pfa-table tbody tr:last-child td{border-bottom:0}.pfa-table tbody tr:hover{background:#fbfdff}.pfa-customer{display:flex;align-items:center;gap:12px;min-width:260px}.pfa-avatar{width:38px;height:38px;border-radius:50%;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;font-size:12px;font-weight:800;flex:0 0 38px}.pfa-customer div{display:flex;flex-direction:column;gap:3px}.pfa-customer strong{font-size:14px;color:#172033}.pfa-customer small{font-size:11px;color:#94a3b8}.pfa-customer em{font-size:10px;color:#16a34a;font-style:normal;font-weight:700}.pfa-customer em i{font-size:6px;vertical-align:middle}.pfa-name{display:block;color:#526078}.pfa-warning{display:block;margin-top:4px;color:#dc2626;font-size:10px;font-weight:700}.pfa-age{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:7px;font-size:11px;font-weight:800;background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe;white-space:nowrap}.pfa-age.warn{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.pfa-age.old{background:#fef2f2;color:#dc2626;border-color:#fecaca}
.pfa-progress-compact{display:inline-block;width:190px;margin-top:6px;line-height:1.5;color:#94a3b8}
/* A long multi-segment status string ("S1 COMPLETED · S2 COMPLETED · ...")
   doesn't suit a pill-shaped .badge once it wraps to more than one line —
   the 999px border-radius turns into a stretched, broken-looking shape.
   Used wherever case_progress_compact() is shown outside the PFA table. */
.progress-compact{display:block;max-width:220px;margin-top:4px;font-size:11px;line-height:1.5;color:#94a3b8;font-weight:500}.pfa-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.pfa-work-btn,.pfa-advance-btn,.pfa-release-btn,.pfa-icon-btn{border:0;border-radius:8px;min-height:38px;padding:9px 12px;font-weight:800;font-size:11px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.pfa-work-btn{background:#1d4ed8;color:#fff}.pfa-work-btn:hover{background:#1e40af}.pfa-advance-btn{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.pfa-release-btn{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}.pfa-icon-btn{width:38px;background:#fff;color:#1d4ed8;border:1px solid #dbe3ec}.pfa-icon-btn:hover{background:#eff6ff}.pfa-doc-row td{padding:0 18px 14px;background:#fbfdff}.pfa-docs{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;color:#64748b}.pfa-docs strong{color:#334155}.pfa-docs a{display:inline-flex;align-items:center;gap:5px;color:#1d4ed8}.pfa-docs a:hover{text-decoration:underline}.pfa-empty{text-align:center!important;padding:55px 20px!important}.pfa-empty i{display:block;font-size:30px;color:#93c5fd;margin-bottom:12px}.pfa-empty strong{display:block;color:#334155;font-size:14px}.pfa-empty span{display:block;color:#94a3b8;margin-top:5px}.pfa-footnote{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 2px;color:#64748b;font-size:12px}.pfa-footnote span:first-child{color:#16a34a;font-weight:700}.pfa-footnote i{margin-right:5px}
.pfa-modal{border:0;border-radius:14px;padding:0;width:min(480px,92vw);box-shadow:0 25px 80px #17203333}.pfa-modal::backdrop{background:#0f172a66}.pfa-modal form{padding:22px}.pfa-modal h3{margin:0 0 6px}.pfa-modal .hint{margin-top:8px}
.pfa-archive-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:16px}.pfa-archive-search{margin:0;max-width:370px}.pfa-archive-filters{display:flex;gap:7px;flex-wrap:wrap}.pfa-status-pill{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #dbe3ec;background:#f8fafc;border-radius:999px;color:#64748b;font-size:11px;font-weight:800}.pfa-status-pill b{font-size:10px}.pfa-status-pill:hover{border-color:#93c5fd;color:#1d4ed8}.pfa-status-pill.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.pfa-archive-table{min-width:1100px}.pfa-status{display:inline-flex;padding:7px 11px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.02em;white-space:nowrap}.pfa-status.disbursed,.pfa-status.completed{background:#ecfdf5;color:#15803d}.pfa-status.awaiting_finance{background:#eff6ff;color:#1d4ed8}.pfa-status.requested{background:#fef3c7;color:#92400e}.pfa-date{display:block;color:#334155;font-weight:700}.pfa-table td .pfa-date+small{color:#94a3b8;font-size:10px}.pfa-archive-wrap{margin-bottom:0}
@media(max-width:1100px){.pfa-head{flex-direction:column}.pfa-pool{align-self:flex-start}.pfa-search{margin-left:0;max-width:none;flex-basis:260px}.pfa-selects{width:180px}}
@media(max-width:800px){.pfa-page{padding-bottom:10px}.pfa-breadcrumb{flex-wrap:wrap}.pfa-head h1{font-size:24px}.pfa-tabs{gap:15px;overflow:auto}.pfa-tabs a{white-space:nowrap}.pfa-filterbar{align-items:stretch}.pfa-search{order:3;flex-basis:100%;max-width:none}.pfa-selects{order:4;width:100%}.pfa-assigned-pill{order:4}.pfa-archive-toolbar{align-items:stretch}.pfa-archive-search{flex-basis:100%;max-width:none}.pfa-archive-filters{width:100%}}

/* ========================================================================
   TECHOMES DESIGN SYSTEM — GLOBAL BLUE REFRESH
   Applied across the complete application so every workspace shares the
   same visual language as the current PFA/Archive design.
   ======================================================================== */
:root{
  --tm-blue:#2456eb;
  --tm-blue-dark:#173fc4;
  --tm-blue-deep:#122f96;
  --tm-blue-soft:#eaf1ff;
  --tm-blue-soft-2:#f5f8ff;
  --tm-border:#e6ebf2;
  --tm-border-strong:#d8e0ea;
  --tm-text:#172033;
  --tm-text-2:#526078;
  --tm-muted:#8a96a8;
  --tm-bg:#f7f9fc;
  --tm-green:#16a36a;
  --tm-red:#dc2626;
  --tm-accent:#f59e0b;
  --tm-accent-dark:#d97706;
  --tm-accent-soft:#fff7e6;
  --tm-grad-primary:linear-gradient(135deg,#2456eb 0%,#1d3fd6 55%,#122f96 100%);
  --tm-grad-hero:linear-gradient(120deg,#0f2f8f 0%,#2456eb 55%,#3b6bff 100%);
  --tm-shadow:0 1px 2px rgba(15,23,42,.03),0 8px 24px rgba(15,23,42,.04);
  --tm-shadow-blue:0 10px 26px rgba(36,86,235,.22);
}

html{background:var(--tm-bg);}
body{
  background:var(--tm-bg);
  color:var(--tm-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
}
body::selection{background:#dbeafe;color:#172033}
a{color:var(--tm-blue)}

.shell{background:var(--tm-bg);min-height:100vh}
.sidebar{
  width:250px;
  background:#fff;
  border-right:1px solid var(--tm-border);
  box-shadow:none;
  scrollbar-width:thin;
  scrollbar-color:#dbe3ec transparent;
}
.brand{
  height:76px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 22px;
  background:#fff;
  border-bottom:1px solid #eef2f7;
  color:var(--tm-blue-dark);
  font-size:20px;
  letter-spacing:.01em;
}
.brand i{color:var(--tm-blue);font-size:21px}
.sidebar nav{padding:12px 10px 22px}
.nav-label{
  color:#8b98aa;
  font-size:10px;
  letter-spacing:.09em;
  font-weight:800;
  padding:17px 12px 6px;
}
.sidebar nav a{
  min-height:40px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 12px;
  margin:2px 0;
  border-radius:9px;
  color:#53627a;
  font-size:14px;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.sidebar nav a i{width:18px;text-align:center;color:#64748b;font-size:14px}
.sidebar nav a:hover{background:#f4f7fb;color:var(--tm-blue-dark)}
.sidebar nav a:hover i{color:var(--tm-blue)}
.sidebar nav a.active{
  background:var(--tm-blue-soft);
  color:var(--tm-blue-dark);
  font-weight:800;
}
.sidebar nav a.active i{color:var(--tm-blue)}
.sidebar nav a.nav-sub{padding-left:34px}

.main{
  margin-left:250px;
  width:calc(100% - 250px);
  min-height:100vh;
  padding:0 28px 44px;
  background:var(--tm-bg);
}
.topbar{
  height:76px;
  margin:0 -28px 26px;
  padding:0 28px;
  background:#fff;
  border-bottom:1px solid var(--tm-border);
  box-shadow:0 1px 0 rgba(15,23,42,.01);
}
.topbar>div:first-child strong{font-size:16px;color:#182235}
.user-menu{gap:14px;color:#64748b}
.user-menu .btn.secondary{
  height:40px;
  padding:0 14px;
  border:1px solid #e3e9f1;
  background:#f8fafc;
  color:#334155;
  border-radius:9px;
}
.user-menu .btn.secondary:hover{background:#f1f5f9;border-color:#d7e0ea}
.kbd{background:#eef2f7;color:#64748b;border:1px solid #e2e8f0}

.hero,.card,.panel,.auth-card,.stat,.dir-stat-card,.perf-stat-card{
  background:#fff;
  border:1px solid var(--tm-border);
  box-shadow:var(--tm-shadow);
}
.hero{
  border-radius:16px;
  padding:26px 28px;
  background:var(--tm-grad-hero);
  border-color:transparent;
  color:#fff;
  box-shadow:var(--tm-shadow-blue);
  position:relative;
}
.hero h1,.hero h2{color:#fff}
.hero p{color:#dce6ff}
.card,.panel{border-radius:12px}
.card:hover{border-color:#bfdbfe;box-shadow:0 10px 30px rgba(36,86,235,.14);transform:translateY(-2px)}
.icon{background:var(--tm-blue-soft);color:var(--tm-blue)}
.stat b{color:var(--tm-blue-dark)}

.btn{border-radius:8px;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .08s ease}
.btn:active{transform:translateY(1px)}
.btn.primary,.btn.orange{background:var(--tm-grad-primary);color:#fff;box-shadow:var(--tm-shadow-blue);border:1px solid transparent}
.btn.primary:hover,.btn.orange:hover{filter:brightness(1.08);box-shadow:0 12px 30px rgba(36,86,235,.32);transform:translateY(-1px)}
.btn.secondary{background:#fff;color:#475569;border:1px solid var(--tm-border-strong)}
.btn.secondary:hover{background:#f8fafc;border-color:#cbd5e1}
.btn.danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.btn.gold{background:linear-gradient(135deg,var(--tm-accent),var(--tm-accent-dark));color:#fff;box-shadow:0 10px 24px rgba(217,119,6,.24);border:1px solid transparent}
.btn.gold:hover{filter:brightness(1.06);transform:translateY(-1px)}
.badge.gold,.badge-accent{background:var(--tm-accent-soft);color:var(--tm-accent-dark)}
input,textarea,select{
  background:#fff;
  border:1px solid #d7e0ea;
  color:var(--tm-text);
  border-radius:9px;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}
input:focus,textarea:focus,select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.10);
}
.drop{background:#fbfdff;border-color:#cbd5e1}
.drop.drag{border-color:var(--tm-blue);background:var(--tm-blue-soft)}
.pipeline-nav a{background:#fff;border-color:var(--tm-border);color:#53627a}
.pipeline-nav a:hover{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}
.pipeline-nav a.active{background:var(--tm-blue);border-color:var(--tm-blue);color:#fff}
.flash{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.hint{background:#effaf5;color:#166534;border:1px solid #d1fae5}
.hint.warn{background:#fffbeb;color:#92400e;border-color:#fde68a}
.hint.bad{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.badge{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}
.result{background:#f8fafc;border:1px solid #edf1f5}

/* Consistent tables throughout the application. */
.table{background:#fff;border:1px solid var(--tm-border);border-radius:12px;overflow:hidden}
.table th{background:#f8fafc;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.045em}
.table th,.table td{border-bottom-color:#edf1f5}
.table tbody tr:hover{background:#fbfdff}

/* Global PFA visual language — same blue as the Techomes mark. */
.pfa-page{max-width:1440px;padding-bottom:40px}
.pfa-breadcrumb{color:#94a3b8}
.pfa-breadcrumb strong{color:#172033}
.pfa-head h1{color:#172033;letter-spacing:-.02em}
.pfa-head p{color:#64748b}
.pfa-pool{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}
.pfa-tabs{border-bottom-color:#e5eaf1}
.pfa-tabs a{color:#64748b}
.pfa-tabs a.active{color:var(--tm-blue-dark);border-bottom-color:var(--tm-blue)}
.pfa-tabs a.active b{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}
.pfa-chip{background:#fff;border-color:#dbe3ec;color:#64748b}
.pfa-chip:hover{border-color:#93c5fd;color:var(--tm-blue-dark);background:#fbfdff}
.pfa-chip.active{background:var(--tm-blue);border-color:var(--tm-blue);color:#fff}
.pfa-assigned-pill{background:var(--tm-blue-soft);border-color:#bfdbfe;color:var(--tm-blue-dark)}
.pfa-table-wrap{border-color:var(--tm-border);box-shadow:0 1px 2px rgba(15,23,42,.02)}
.pfa-table th{background:#f8fafc;color:#64748b}
.pfa-table td{background:#fff}
.pfa-table tbody tr:hover td{background:#fbfdff}
.pfa-avatar{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}
.pfa-age{background:var(--tm-blue-soft);color:var(--tm-blue-dark);border-color:#dbeafe}
.pfa-age.warn{background:#eff6ff;color:var(--tm-blue-dark);border-color:#bfdbfe}
.pfa-work-btn{background:var(--tm-blue);color:#fff;box-shadow:none}
.pfa-work-btn:hover{background:var(--tm-blue-dark)}
.pfa-advance-btn{background:var(--tm-blue-soft);color:var(--tm-blue-dark);border-color:#bfdbfe}
.pfa-icon-btn{background:#fff;color:var(--tm-blue);border-color:#dbe3ec}
.pfa-icon-btn:hover{background:var(--tm-blue-soft)}
.pfa-status-pill{background:#f8fafc;border-color:#dbe3ec}
.pfa-status-pill.active{background:var(--tm-blue);border-color:var(--tm-blue);color:#fff}
.pfa-status.awaiting_finance{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}
.pfa-modal{box-shadow:0 25px 80px rgba(15,23,42,.22)}

/* Archive and operational table surfaces. */
.pfa-archive-table th{background:#f8fafc}
.pfa-archive-table td{vertical-align:middle}
.actions-dropdown .actions-dd-btn{background:#fff;border:1px solid #dbe3ec;color:#64748b}
.actions-dropdown .actions-dd-btn:hover{background:#f8fafc;color:#334155}
.actions-menu{background:#fff;border:1px solid var(--tm-border);box-shadow:0 14px 35px rgba(15,23,42,.12)}
.actions-menu a:hover{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}

/* Forms, widgets and cards inherit the same neutral background instead of
   introducing unrelated page-level colours. */
.auth{background:var(--tm-bg)}
.auth-card{box-shadow:0 18px 50px rgba(15,23,42,.07)}
.acctgen-bvn-box,.acctgen-batch-row,.wiz-upload-box{background:#fbfdff;border-color:var(--tm-border)}
.editor-mode-btn.active{color:var(--tm-blue-dark)}
.editor-page:hover{border-color:#93c5fd}
.editor-page.assigned{border-color:var(--tm-blue)}

/* Remove the old orange semantic styling everywhere it may still be used
   by legacy templates. The class name is retained for compatibility. */
.orange,.btn.orange{background:var(--tm-blue)!important;color:#fff!important}
.orange:hover,.btn.orange:hover{background:var(--tm-blue-dark)!important}
.perf-pill-orange{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}
.perf-ic-amber,.perf-ic-peach{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}

/* Footer / page bottom */
footer,.footer{color:#94a3b8;background:transparent}

@media(max-width:1000px){
  .main{padding-left:20px;padding-right:20px}
  .topbar{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}
}
@media(max-width:800px){
  .sidebar{width:68px}
  .brand{height:68px;padding:0;justify-content:center;font-size:0}
  .brand i{font-size:21px}
  .sidebar nav{padding:10px 7px}
  .sidebar nav a{justify-content:center;padding:10px 8px}
  .nav-label{display:none}
  .nav-label{display:none}
  .main{margin-left:68px;width:calc(100% - 68px);padding:0 14px 30px}
  .topbar{height:68px;margin:0 -14px 20px;padding:0 14px}
  .user-menu{gap:8px}
  .user-menu .kbd,.user-menu #cmdkBtn span{display:none}
}

/* Canonical six-role RBAC UI */
.header-role{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:5px 9px;margin-right:8px}.role-workspace-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #dbeafe;background:linear-gradient(180deg,#ffffff,#f8fbff)}
@media(max-width:800px){.role-workspace-card{flex-direction:column;align-items:flex-start}}

.teamlog-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.teamlog-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#1d4ed8;margin-bottom:8px}.teamlog-live{display:inline-flex;align-items:center;gap:8px;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;white-space:nowrap}.teamlog-live span{width:7px;height:7px;border-radius:50%;background:#22c55e}.teamlog-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.teamlog-stats .stat{min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.panel-head h2{margin:0 0 4px}.member-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.member-card{display:flex;align-items:center;gap:12px;border:1px solid #e5eaf1;border-radius:12px;padding:12px;color:#172033;background:#fff;transition:.15s}.member-card:hover{border-color:#93c5fd;background:#f8fbff}.member-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#eff6ff;color:#1d4ed8;font-weight:900;flex:0 0 auto}.member-main{min-width:0;flex:1}.member-main strong,.member-main span,.member-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-main span{font-size:12px;color:#475569;font-weight:700;margin-top:2px}.member-main small{font-size:11px;color:#94a3b8;margin-top:3px}.member-metrics{display:grid;grid-template-columns:auto auto;column-gap:6px;align-items:baseline;text-align:right}.member-metrics b{font-size:16px;color:#1d4ed8}.member-metrics span{font-size:10px;color:#94a3b8}.teamlog-filters{display:grid;grid-template-columns:repeat(6,1fr) 1.5fr;gap:10px;align-items:end;padding:14px;background:#f8fafc;border:1px solid #e5eaf1;border-radius:12px;margin-bottom:16px}.teamlog-filters label{margin:0;font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.03em}.teamlog-filters input,.teamlog-filters select{font-size:12px;margin-top:5px}.teamlog-filters .actions{margin:0;align-self:end}.teamlog-table-wrap{overflow:auto}.teamlog-table{font-size:12px;min-width:1050px}.teamlog-table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc;position:sticky;top:0}.teamlog-table td small{display:block;color:#94a3b8;font-size:10px;margin-top:3px}.teamlog-table td strong{font-size:11px}.log-details{max-width:300px;white-space:normal;word-break:break-word}.log-result{display:inline-block;padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:800}.log-result.success{background:#dcfce7;color:#166534}.log-result.failure,.log-result.error{background:#fee2e2;color:#991b1b}.teamlog-empty{text-align:center;padding:48px!important;color:#94a3b8}.teamlog-footer{font-size:11px;color:#94a3b8;margin-top:12px}.auto-refresh{font-size:12px!important;color:#475569!important;text-transform:none!important;letter-spacing:0!important;display:flex!important;align-items:center;gap:6px}.auto-refresh input{width:auto!important;margin:0!important}.teamlog-page .badge{font-size:10px;white-space:nowrap}@media(max-width:1000px){.teamlog-stats{grid-template-columns:repeat(2,1fr)}.member-grid{grid-template-columns:1fr}.teamlog-filters{grid-template-columns:repeat(3,1fr)}.teamlog-hero{flex-direction:column}}@media(max-width:650px){.teamlog-stats{grid-template-columns:1fr}.teamlog-filters{grid-template-columns:1fr}.teamlog-filters .actions{margin-top:5px}.panel-head{flex-direction:column}.teamlog-live{align-self:flex-start}}

/* Banking audit visibility */
.case-audit-mini{font-size:12px;line-height:1.55;color:#64748b;margin-bottom:8px}
.case-audit-mini strong{color:#334155}
.case-timeline{position:relative;padding:6px 0 4px 24px}
.case-timeline:before{content:"";position:absolute;left:8px;top:8px;bottom:8px;width:2px;background:#dbeafe}
.case-timeline-item{position:relative;display:flex;gap:12px;padding:0 0 18px}
.case-timeline-dot{position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 3px #eff6ff}
.case-timeline-content{width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.case-timeline-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.case-timeline-top span{font-size:12px;color:#64748b}

/* Intake reference surface: keep the page background visible and let the
   table remain the primary white surface, matching the current reference UI. */
.intake-page-shell{max-width:none;width:100%;padding-bottom:40px}
.intake-main-panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
.intake-page-shell .intake-toolbar{margin-bottom:14px}
.intake-page-shell .table{background:#fff;border:1px solid var(--tm-border);border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.02);overflow:hidden}
.intake-page-shell .table th{background:#f8fafc}
.intake-page-shell .table td{background:#fff}
.intake-page-shell .table tbody tr:hover td{background:#fbfdff}

/* Keep PFA on the same neutral page background; only the table/filter surfaces
   stay white, exactly as in the current PFA reference treatment. */
.pfa-page{background:var(--tm-bg)}

/* ========================================================================
   INTAKE + PFA REFERENCE INTERFACE
   Page-scoped only: matches the supplied TrustBricks reference surface
   while preserving Techomes blue as the primary accent. Other pages are
   intentionally unaffected.
   ======================================================================== */
body.page-intake .sidebar,
body.page-pfa .sidebar{
  width:232px;
}
body.page-intake .main,
body.page-pfa .main{
  margin-left:232px;
  width:calc(100% - 232px);
  padding:0 22px 36px;
  background:#f5f7fa;
}
body.page-intake .topbar,
body.page-pfa .topbar{
  height:60px;
  margin:0 -22px 0;
  padding:0 22px;
  background:#fff;
  border-bottom:1px solid #e5eaf1;
}
body.page-intake .intake-page-shell,
body.page-pfa .pfa-page{
  max-width:none;
  width:100%;
  padding:20px 0 36px;
  background:transparent;
}
body.page-intake .pipeline-nav,
body.page-pfa .pipeline-nav{
  margin-top:0;
}
body.page-intake .intake-main-panel{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
}
body.page-intake .intake-toolbar{
  margin-bottom:18px;
}
body.page-intake .intake-search input,
body.page-intake .intake-bankfilter select{
  height:42px;
  border-radius:8px;
}
body.page-intake .intake-new-dropdown .btn.primary{
  background:var(--tm-blue)!important;
  border-color:var(--tm-blue)!important;
}
body.page-intake .intake-new-dropdown .btn.primary:hover{
  background:var(--tm-blue-dark)!important;
}
body.page-intake .table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  background:#fff;
}
body.page-intake .table th{
  padding:12px 14px;
  background:#f8fafc;
  border-top:1px solid #e7ecf2;
  border-bottom:1px solid #e7ecf2;
  color:#94a0b1;
}
body.page-intake .table td{
  padding:15px 14px;
  background:#fff;
  border-bottom:1px solid #edf1f5;
  color:#526078;
}
body.page-intake .table tbody tr:hover td{background:#fbfcfe}
body.page-intake .badge{
  background:var(--tm-blue-soft);
  color:var(--tm-blue-dark);
}
body.page-intake .danger-link{color:#dc2626}
body.page-intake .case-audit-mini{
  margin-bottom:7px;
  font-size:11px;
  line-height:1.5;
}

body.page-pfa .pfa-page{
  padding-top:18px;
}
body.page-pfa .pfa-breadcrumb{
  margin-bottom:15px;
}
body.page-pfa .pfa-head{
  margin-bottom:18px;
}
body.page-pfa .pfa-head h1{
  font-size:28px;
}
body.page-pfa .pfa-tabs{
  gap:26px;
  margin-bottom:16px;
}
body.page-pfa .pfa-filterbar{
  margin-bottom:14px;
}
body.page-pfa .pfa-table-wrap{
  border-radius:10px;
  box-shadow:none;
}
body.page-pfa .pfa-table th{
  padding:12px 16px;
  color:#94a0b1;
}
body.page-pfa .pfa-table td{
  padding:14px 16px;
}
body.page-pfa .pfa-work-btn{
  background:var(--tm-blue)!important;
}
body.page-pfa .pfa-work-btn:hover{
  background:var(--tm-blue-dark)!important;
}
body.page-pfa .pfa-chip.active,
body.page-pfa .pfa-status-pill.active{
  background:var(--tm-blue)!important;
  border-color:var(--tm-blue)!important;
}
body.page-pfa .pfa-icon-btn:hover,
body.page-pfa .actions-menu a:hover{
  background:var(--tm-blue-soft);
  color:var(--tm-blue-dark);
}

@media(max-width:800px){
  body.page-intake .sidebar,
  body.page-pfa .sidebar{width:68px}
  body.page-intake .main,
  body.page-pfa .main{
    margin-left:68px;
    width:calc(100% - 68px);
    padding:0 14px 30px;
  }
  body.page-intake .topbar,
  body.page-pfa .topbar{
    margin:0 -14px 0;
    padding:0 14px;
  }
}


/* Reference-matched operational list styling: preserve all behavior, tighten only
   spacing/surfaces/typography to match the supplied archive interface. */
body.page-intake .main,
body.page-pfa .main{background:#f6f8fb;}
body.page-intake .intake-page-shell,
body.page-pfa .pfa-page{padding-top:14px;}
body.page-intake .table,
body.page-pfa .pfa-table-wrap{border-radius:0!important;box-shadow:none!important;border-left:0!important;border-right:0!important;}
body.page-intake .table th,
body.page-pfa .pfa-table th{padding:11px 20px;background:#f7f9fc;color:#94a0b1;border-top:1px solid #e9edf2;border-bottom:1px solid #e7ebf0;font-size:11px;font-weight:800;}
body.page-intake .table td,
body.page-pfa .pfa-table td{padding:12px 20px;background:#fff;border-bottom:1px solid #edf1f5;color:#5f6b7c;font-size:13px;vertical-align:middle;}
body.page-intake .table tbody tr:hover td,
body.page-pfa .pfa-table tbody tr:hover td{background:#fbfcfe;}
body.page-pfa .pfa-customer{gap:11px;min-width:250px;}
body.page-pfa .pfa-avatar{width:32px;height:32px;flex-basis:32px;font-size:11px;}
body.page-pfa .pfa-customer strong{font-size:14px;font-weight:800;color:#111827;}
body.page-pfa .pfa-customer small{font-size:10px;color:#9aa4b2;}
body.page-pfa .pfa-name{font-size:13px;color:#657184;}
body.page-pfa .pfa-status{padding:7px 12px;font-size:10px;}
body.page-pfa .pfa-date{font-size:13px;color:#64748b;font-weight:600;}
body.page-pfa .pfa-age{padding:6px 9px;border-radius:6px;font-size:10px;font-weight:800;}
body.page-pfa .actions-dropdown .actions-dd-btn{min-height:38px;padding:8px 13px;border-radius:9px;font-size:12px;color:#667085;background:#fff;}
body.page-pfa .pfa-table{min-width:980px;}
body.page-intake .intake-customer{display:flex;align-items:center;gap:10px;min-width:240px;}
body.page-intake .intake-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:0 0 32px;background:var(--tm-blue-soft);color:var(--tm-blue-dark);font-size:10px;font-weight:800;}
body.page-intake .intake-avatar.urgent{background:#fef2f2;color:#dc2626;}
body.page-intake .intake-customer div{display:flex;flex-direction:column;gap:2px;min-width:0;}
body.page-intake .intake-customer strong{font-size:14px;color:#111827;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.page-intake .intake-customer small{font-size:10px;color:#9aa4b2;}
body.page-intake .intake-bank-pill{display:inline-block;padding:5px 10px;border-radius:6px;background:var(--tm-blue-soft);color:var(--tm-blue-dark);font-size:10px;font-weight:800;white-space:nowrap;}
body.page-intake .intake-time-pill{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:6px;background:#ecfdf5;color:#15803d;font-size:10px;font-weight:800;}
body.page-intake .case-audit-mini{margin-top:4px;margin-bottom:0;font-size:9px;line-height:1.35;color:#9aa4b2;white-space:nowrap;}
body.page-intake .case-audit-mini strong{color:#6b7280;font-weight:700;}
body.page-intake .danger-link{padding:5px 7px;font-size:12px;}
body.page-intake .pipeline-nav{margin-bottom:14px;}
body.page-intake .intake-toolbar{margin-bottom:10px;}
body.page-intake .intake-search input,
body.page-intake .intake-bankfilter select{height:40px;}
@media(max-width:800px){
 body.page-intake .table td,body.page-pfa .pfa-table td{padding:10px 14px;}
 body.page-intake .table th,body.page-pfa .pfa-table th{padding:10px 14px;}
}


/* Cross-platform operational layout hardening. Page-scoped classes are used
   instead of :has() so the Intake/PFA interface is dependable on older
   browser engines while keeping the working UI and backend unchanged. */
body.page-intake .main,
body.page-pfa .main{min-width:0;display:block;}
body.page-intake .intake-page-shell,
body.page-pfa .pfa-page{width:min(100%,1320px);margin-left:auto;margin-right:auto;min-width:0;}
body.page-intake .intake-toolbar{display:grid;grid-template-columns:minmax(280px,1.45fr) minmax(190px,.72fr) auto;gap:10px;align-items:center;}
body.page-intake .intake-search{display:grid;grid-template-columns:minmax(0,1fr) 52px;margin:0;min-width:0;}
body.page-intake .intake-search input{min-width:0;}
body.page-intake .intake-search button{border:1px solid #ccd5e1;border-left:0;border-radius:0 8px 8px 0;background:#fff;color:#172033;cursor:pointer;}
body.page-intake .intake-bankfilter{margin:0;min-width:0;}
body.page-intake .intake-bankfilter select{min-width:0;}
body.page-intake .intake-new-dropdown{justify-self:end;}
body.page-intake .table{width:100%;table-layout:auto;}
body.page-intake .table th:last-child,
body.page-intake .table td:last-child{white-space:nowrap;}
body.page-intake .intake-customer{min-width:220px;}
body.page-intake .case-audit-mini{white-space:normal;}
body.page-intake .table-wrap,
body.page-pfa .pfa-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
body.page-pfa .pfa-table{width:100%;min-width:920px;}
body.page-intake .actions-dropdown,
body.page-pfa .actions-dropdown{position:relative;}
@media(max-width:1100px){
  body.page-intake .intake-toolbar{grid-template-columns:minmax(240px,1fr) minmax(180px,.7fr) auto;}
}
@media(max-width:900px){
  body.page-intake .intake-toolbar{grid-template-columns:1fr 1fr;}
  body.page-intake .intake-new-dropdown{justify-self:stretch;}
  body.page-intake .intake-new-dropdown .btn{width:100%;}
}
@media(max-width:650px){
  body.page-intake .intake-toolbar{grid-template-columns:1fr;}
  body.page-intake .intake-new-dropdown{justify-self:stretch;}
  body.page-intake .table{min-width:920px;}
  body.page-intake .intake-page-shell,
  body.page-pfa .pfa-page{width:100%;padding-left:0;padding-right:0;}
}


/* Final professional alignment: stable columns prevent action controls and
   audit timestamps from collapsing or wrapping unpredictably at desktop widths. */
body.page-intake .table th:nth-child(1),body.page-intake .table td:nth-child(1){width:27%;}
body.page-intake .table th:nth-child(2),body.page-intake .table td:nth-child(2){width:16%;}
body.page-intake .table th:nth-child(3),body.page-intake .table td:nth-child(3){width:12%;}
body.page-intake .table th:nth-child(4),body.page-intake .table td:nth-child(4){width:14%;}
body.page-intake .table th:nth-child(5),body.page-intake .table td:nth-child(5){width:19%;}
body.page-intake .table th:nth-child(6),body.page-intake .table td:nth-child(6){width:12%;}
body.page-intake .intake-new-dropdown .btn.primary{color:#fff!important;}
body.page-intake .table td:last-child .btn{white-space:nowrap;}
body.page-intake .intake-customer strong{line-height:1.25;}
body.page-intake .intake-bank-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;}
body.page-intake .case-audit-mini div{overflow:hidden;text-overflow:ellipsis;}
@media(max-width:1200px){
  body.page-intake .intake-page-shell,body.page-pfa .pfa-page{width:100%;}
  body.page-intake .main,body.page-pfa .main{padding-left:18px;padding-right:18px;}
}
@media(max-width:800px){
  body.page-intake .table{min-width:920px;}
}

/* HOD CSU batch/account workflow — reference-aligned table presentation */
.hod-batch-workspace{margin-top:2px}.hod-batch-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:16px}.hod-batch-intro h3{margin:0 0 6px;font-size:19px}.hod-batch-intro p{margin:0;max-width:850px}.hod-batch-card{background:#fff;border:1px solid #e6eaf0;border-radius:16px;overflow:hidden;margin:0 0 18px;box-shadow:0 1px 2px rgba(15,23,42,.03)}.hod-batch-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px 15px}.hod-batch-title-wrap{display:flex;align-items:flex-start;gap:12px}.hod-batch-toggle{width:28px;height:28px;border:0;background:transparent;color:#64748b;cursor:pointer;margin-top:2px}.hod-batch-head h3{margin:0 0 7px;font-size:18px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hod-batch-head p{margin:0 0 3px}.hod-batch-date{font-size:12px}.hod-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:var(--tm-blue-soft);color:var(--tm-blue-dark);font-size:11px;font-weight:800;letter-spacing:.2px}.hod-status-badge.ready{background:#ecfdf5;color:#15803d}.hod-batch-top-actions{display:flex;gap:8px;flex-wrap:wrap}.hod-export-btn{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155;text-decoration:none;font-weight:700;font-size:13px}.hod-export-btn:hover{background:#f1f5f9}.hod-batch-progress{height:7px;background:#f1f5f9;margin:0 22px 0;border-radius:999px;overflow:hidden}.hod-batch-progress>div{height:100%;background:var(--tm-blue);border-radius:999px}.hod-batch-body{padding:16px 22px 20px}.hod-case-table-wrap{overflow:auto;border:1px solid #edf0f4;border-radius:13px}.hod-case-table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px}.hod-case-table th{background:#f8fafc;color:#64748b;font-size:12px;font-weight:800;letter-spacing:.35px;text-align:left;padding:14px 12px;border-bottom:1px solid #e8edf2;white-space:nowrap}.hod-case-table td{padding:13px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle;font-size:13px}.hod-case-table tbody tr:last-child td{border-bottom:0}.hod-case-table .check-col{width:44px;text-align:center}.hod-case-table input[type=checkbox]{width:17px;height:17px}.hod-customer{display:flex;align-items:center;gap:11px;min-width:250px}.hod-customer strong{font-size:14px;color:#0f172a}.hod-avatar{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:50%;background:var(--tm-blue-soft);color:var(--tm-blue-dark);font-weight:800;font-size:11px;flex:0 0 29px}.hod-bvn{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#475569;font-size:12px}.hod-slip-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #a7f3d0;background:#ecfdf5;color:#059669;border-radius:7px;padding:8px 11px;text-decoration:none;font-weight:700;font-size:12px;white-space:nowrap}.hod-no-slip{font-style:italic;color:#94a3b8}.hod-case-status{display:inline-flex;align-items:center;gap:6px;background:#f1f5f9;color:#64748b;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:700;white-space:nowrap}.hod-case-status.ready{background:#ecfdf5;color:#15803d}.hod-account-form{display:flex;align-items:center;gap:8px;min-width:255px}.hod-account-form input{width:165px;height:36px;border:1px solid #dbe2ea;border-radius:8px;padding:0 11px;font-size:13px;outline:none}.hod-account-form input:focus{border-color:var(--tm-blue);box-shadow:0 0 0 3px rgba(37,99,235,.10)}.hod-save-btn{height:36px;border:0;border-radius:8px;background:var(--tm-blue);color:#fff;padding:0 15px;font-weight:800;font-size:12px;cursor:pointer}.hod-save-btn:hover{background:var(--tm-blue-dark)}.hod-saved-account{display:inline-flex;align-items:center;padding:8px 11px;border:1px solid #dbe2ea;background:#f8fafc;border-radius:8px;color:#334155;font-family:ui-monospace,monospace;font-size:12px}.hod-saved-mark{margin-left:7px;color:#15803d;font-weight:800;font-size:11px;white-space:nowrap}.hod-batch-hint{display:flex;align-items:center;gap:8px;margin-top:12px;padding:10px 12px;border-radius:9px;background:var(--tm-blue-soft);color:var(--tm-blue-dark);font-size:12px}.hod-batch-hint.ready-hint{background:#ecfdf5;color:#166534}
@media(max-width:800px){.hod-batch-head{align-items:flex-start;flex-direction:column}.hod-batch-top-actions{width:100%}.hod-export-btn{flex:1;justify-content:center}.hod-batch-body{padding-left:12px;padding-right:12px}.hod-batch-progress{margin-left:12px;margin-right:12px}}

/* =====================================================================
   HOD CSU — Reconciliation / Failed Resolve workspace
   Visual language follows the supplied CSU reference screens while
   preserving the existing Techomes layout and components.
   ===================================================================== */
.hod-recon-page,.hod-failed-page{margin-top:4px}
.hod-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 22px;flex-wrap:wrap}
.hod-section-head h2{margin:0 0 7px;font-size:19px;line-height:1.35;color:#0f172a;display:flex;align-items:center;gap:10px}
.hod-section-head h2>i{color:var(--tm-blue);font-size:18px}
.hod-section-head p{margin:0;max-width:930px;line-height:1.55}
.hod-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;letter-spacing:.15px;white-space:nowrap}
.hod-pill.warning{background:var(--tm-blue-soft);color:var(--tm-blue-dark)}.hod-pill.success{background:#e9f9ef;color:#15803d}.hod-pill.danger{background:#fee7e7;color:#dc2626}
.hod-recon-list{display:flex;flex-direction:column;gap:14px}
.hod-recon-card{background:#fff;border:1px solid #e5e7eb;border-radius:17px;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.hod-recon-card.resolved{opacity:.88}
.hod-recon-head{display:flex;align-items:flex-start;gap:10px;padding:18px 22px}
.hod-recon-toggle{width:28px;height:28px;border:0;background:transparent;color:#64748b;cursor:pointer;margin-top:1px;flex:0 0 28px}
.hod-recon-title{min-width:0;flex:1}
.hod-recon-title h3{margin:0 0 7px;font-size:17px;color:#111827;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.hod-recon-meta{display:flex;align-items:center;gap:22px;color:#94a3b8;font-size:12px;margin-bottom:10px}
.hod-recon-meta strong{color:#64748b;font-weight:700}
.hod-recon-progress{height:7px;border-radius:999px;background:#eef2f7;overflow:hidden;max-width:410px}
.hod-recon-progress span{display:block;height:100%;border-radius:999px;background:#22c55e}
.hod-icon-btn{width:36px;height:36px;border:1px solid #e2e8f0;background:#f8fafc;color:#64748b;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;flex:0 0 36px}
.hod-icon-btn:hover{background:#f1f5f9;color:#334155}
.hod-recon-body{padding:0 22px 16px 60px}
.hod-recon-case{min-height:58px;border:1px solid #eef1f4;background:#fff;border-radius:13px;display:flex;align-items:center;gap:11px;padding:10px 14px;margin-top:8px}
.hod-recon-case input{width:17px;height:17px}.hod-recon-case .hod-avatar.recon{width:29px;height:29px;flex-basis:29px;background:#fce7f3;color:#db2777}
.hod-recon-case div{display:flex;flex-direction:column;gap:2px}.hod-recon-case strong{font-size:14px;color:#111827}.hod-recon-case small{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#64748b;font-size:11px}
.hod-recon-clear{border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;border-radius:11px;padding:12px 14px;font-size:13px;font-weight:700}
.hod-recon-clear i{margin-right:7px}
.hod-empty-state{min-height:285px;border:1px solid #e5e7eb;border-radius:17px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 25px;box-shadow:0 1px 2px rgba(15,23,42,.02)}
.hod-empty-icon{width:76px;height:76px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9fbf3;color:#059669;font-size:30px;margin-bottom:17px}
.hod-empty-state h3{margin:0 0 8px;font-size:18px;color:#111827}.hod-empty-state p{margin:0;color:#64748b;max-width:570px;line-height:1.55}
.hod-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.hod-metric{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px 18px;min-height:91px}
.hod-metric span{display:block;color:#64748b;font-size:12px;margin-bottom:9px}.hod-metric strong{display:block;font-size:24px;line-height:1;color:#111827}.hod-metric.blue strong{color:#2563eb}.hod-metric.purple strong{color:#7c3aed}.hod-metric.orange{border-color:#bfdbfe}.hod-metric.orange strong{color:var(--tm-blue-dark)}
.hod-failed-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px;flex-wrap:wrap}
.hod-failed-search{height:42px;max-width:570px;flex:1;min-width:280px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #dbe2ea;background:#fff;border-radius:12px;color:#94a3b8}
.hod-failed-search input{border:0;outline:0;width:100%;font:inherit;color:#334155;background:transparent}.hod-failed-search input::placeholder{color:#94a3b8}
.hod-filter-pills{display:flex;align-items:center;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:12px;padding:4px;gap:2px}.hod-filter-pills button{border:0;background:transparent;color:#64748b;padding:8px 15px;border-radius:9px;font-weight:700;cursor:pointer}.hod-filter-pills button.active{background:#fff;color:#111827;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.hod-failed-actions{display:flex;gap:8px;flex-wrap:wrap}
.hod-failed-table-wrap{overflow:auto;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.hod-failed-table{width:100%;min-width:900px;border-collapse:separate;border-spacing:0}.hod-failed-table th{background:#f8fafc;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.4px;text-align:left;padding:13px 14px;border-bottom:1px solid #e8edf2;white-space:nowrap}.hod-failed-table td{padding:13px 14px;border-bottom:1px solid #eef1f4;font-size:13px;color:#475569;vertical-align:middle}.hod-failed-table tr:last-child td{border-bottom:0}.hod-failed-table td:first-child,.hod-failed-table th:first-child{width:46px;text-align:center}.hod-failed-table input{width:17px;height:17px}.hod-failed-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.hod-mismatch-name{color:#b91c1c}
.failed-clear .hod-empty-icon{background:#e9fbf3;color:#059669}.failed-clear{margin-top:10px}
@media(max-width:1000px){.hod-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.hod-metric-grid{grid-template-columns:1fr}.hod-section-head h2{font-size:16px}.hod-recon-head{padding:15px}.hod-recon-body{padding:0 15px 15px 47px}.hod-failed-toolbar{align-items:stretch}.hod-failed-search{max-width:none}.hod-filter-pills{width:100%;overflow:auto}.hod-filter-pills button{flex:1;white-space:nowrap}.hod-failed-actions{width:100%}}


/* Techomes brand policy: no orange UI. Legacy orange semantic classes are intentionally retained
   for backwards compatibility, but every visual state uses the Techomes blue palette. */
:root{
  --tm-orange-compat:var(--tm-blue);
}
.orange,.btn.orange,.hod-metric.orange,.perf-pill-orange{
  --orange-color:var(--tm-blue);
}
.orange,.btn.orange{background:var(--tm-blue)!important;color:#fff!important;border-color:var(--tm-blue)!important}
.orange:hover,.btn.orange:hover{background:var(--tm-blue-dark)!important;border-color:var(--tm-blue-dark)!important}
.hod-status-badge,.hod-metric.orange,.hod-avatar,.hod-save-btn,.hod-batch-progress>div{
  /* explicit blue treatment for legacy orange-looking HOD elements */
}
.hod-status-badge{background:var(--tm-blue-soft)!important;color:var(--tm-blue-dark)!important}
.hod-avatar{background:var(--tm-blue-soft)!important;color:var(--tm-blue-dark)!important}
.hod-save-btn{background:var(--tm-blue)!important;color:#fff!important}
.hod-save-btn:hover{background:var(--tm-blue-dark)!important}
.hod-batch-progress>div{background:var(--tm-blue)!important}
.hod-batch-hint{background:var(--tm-blue-soft)!important;color:var(--tm-blue-dark)!important}
.hod-section-head h2>i{color:var(--tm-blue)!important}
.hod-metric.orange{border-color:#bfdbfe!important}
.hod-metric.orange strong{color:var(--tm-blue-dark)!important}

/* Final Techomes brand pass: blue is the sole primary/action accent. */
.hod-metric.blue{border-color:#bfdbfe!important}
.hod-metric.blue strong{color:var(--tm-blue-dark)!important}
.perf-pill-blue{background:var(--tm-blue-soft)!important;color:var(--tm-blue-dark)!important}


/* PFA workspace reference alignment — blue Techomes treatment only. */
body.page-pfa .pfa-bankbar{display:flex;align-items:center;gap:9px;margin:4px 0 18px;padding:0 2px;}
body.page-pfa .pfa-bank-label{font-size:11px;font-weight:800;letter-spacing:.12em;color:#94a3b8;margin-right:4px;}
body.page-pfa .pfa-bank-tab{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 16px;border:1px solid #d7dee8;border-radius:18px;background:#fff;color:#64748b;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap;}
body.page-pfa .pfa-bank-tab:hover{border-color:#93c5fd;color:var(--tm-blue-dark);background:var(--tm-blue-soft);}
body.page-pfa .pfa-bank-tab.active{background:var(--tm-blue);border-color:var(--tm-blue);color:#fff;box-shadow:0 2px 5px rgba(37,99,235,.16);}
body.page-pfa .pfa-filterbar{display:grid;grid-template-columns:auto minmax(260px,1fr) 180px 180px;align-items:center;gap:12px;padding:0 0 15px;border-bottom:1px solid #e8edf3;}
body.page-pfa .pfa-pending{padding-left:2px;}
body.page-pfa .pfa-search{width:100%;max-width:none;margin:0;}
body.page-pfa .pfa-selects{width:100%;}
body.page-pfa .pfa-selects select{width:100%;background:#fff;color:#475569;border:1px solid #dbe3ec;border-radius:10px;padding:0 36px 0 12px;font-size:12px;font-weight:600;}
body.page-pfa .pfa-assigned-pill{justify-content:center;min-height:42px;box-sizing:border-box;}
body.page-pfa .pfa-table-wrap{margin-top:0;border:1px solid #e4eaf1!important;border-radius:12px!important;overflow:auto;background:#fff;}
body.page-pfa .pfa-table{min-width:980px;}
body.page-pfa .pfa-table th{height:48px;box-sizing:border-box;text-align:left;}
body.page-pfa .pfa-table td{height:68px;box-sizing:border-box;}
body.page-pfa .pfa-table th:last-child,body.page-pfa .pfa-table td:last-child{text-align:right;}
body.page-pfa .pfa-actions{justify-content:flex-end;}
body.page-pfa .pfa-work-btn{min-height:40px;padding:9px 15px;border-radius:9px;white-space:nowrap;}
body.page-pfa .pfa-footnote{padding-top:11px;}
@media(max-width:1100px){body.page-pfa .pfa-filterbar{grid-template-columns:auto minmax(220px,1fr) 170px; } body.page-pfa .pfa-assigned-pill{grid-column:3;} body.page-pfa .pfa-selects:last-child{grid-column:3;}}
@media(max-width:800px){body.page-pfa .pfa-bankbar{overflow-x:auto;padding-bottom:2px;}body.page-pfa .pfa-filterbar{display:flex;flex-wrap:wrap;align-items:stretch;}body.page-pfa .pfa-pending{width:100%;}body.page-pfa .pfa-search{flex:1 1 100%;}body.page-pfa .pfa-selects,body.page-pfa .pfa-assigned-pill{flex:1 1 180px;}}

/* HOD CSU archive — blue Techomes treatment, matching the reference layout. */
.hod-archive-page{margin-top:2px}.hod-archive-toolbar{display:flex;justify-content:flex-end;align-items:center;margin-bottom:14px}.hod-archive-search{position:relative;width:min(280px,100%)}.hod-archive-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#94a3b8}.hod-archive-search input{height:38px;padding:0 13px 0 36px;border-radius:20px;border:1px solid #dbe3ec;background:#fff;font-size:13px}.hod-archive-card{background:#fff;border:1px solid #e6eaf0;border-radius:16px;overflow:hidden;margin:0 0 18px;box-shadow:0 1px 2px rgba(15,23,42,.03)}.hod-archive-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px 15px}.hod-archive-title-wrap{display:flex;align-items:flex-start;gap:12px}.hod-archive-toggle{width:28px;height:28px;border:0;background:transparent;color:#64748b;cursor:pointer;margin-top:2px}.hod-archive-head h3{margin:0 0 7px;font-size:18px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hod-archive-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#ecfdf5;color:#15803d;font-size:11px;font-weight:800;letter-spacing:.2px}.hod-archive-summary{display:flex;gap:14px;color:#526078;font-size:13px}.hod-archive-summary .matched{color:#15803d}.hod-archive-date{font-size:12px;margin:5px 0 0}.hod-archive-top-actions{display:flex;gap:8px;flex-wrap:wrap}.hod-archive-progress{height:7px;background:#f1f5f9;margin:0 22px;border-radius:999px;overflow:hidden}.hod-archive-progress>div{height:100%;background:var(--tm-blue);border-radius:999px}.hod-archive-body{padding:16px 22px 20px}.hod-archive-table-wrap{overflow:auto;border:1px solid #edf0f4;border-radius:13px}.hod-archive-table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px}.hod-archive-table th{background:#f8fafc;color:#64748b;font-size:12px;font-weight:800;letter-spacing:.35px;text-align:left;padding:14px 12px;border-bottom:1px solid #e8edf2;white-space:nowrap}.hod-archive-table td{padding:13px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle;font-size:13px}.hod-archive-table tbody tr:last-child td{border-bottom:0}.hod-archive-table tbody tr:hover{background:#fbfdff}.hod-archive-table .check-col{width:44px;text-align:center}.hod-archive-table input[type=checkbox]{width:17px;height:17px}.hod-archive-customer{display:flex;align-items:center;gap:11px;min-width:260px}.hod-archive-customer strong{font-size:14px;color:#0f172a}.hod-archive-bvn,.hod-archive-account{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#475569;font-size:12px}.hod-archive-slip{display:inline-flex;align-items:center;gap:7px;border:1px solid #a7f3d0;background:#ecfdf5;color:#059669;border-radius:7px;padding:8px 11px;text-decoration:none;font-weight:700;font-size:12px;white-space:nowrap}.hod-archive-status{display:inline-flex;align-items:center;gap:6px;background:#ecfdf5;color:#15803d;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800;white-space:nowrap}.hod-archive-account{color:#1d4ed8;font-weight:800}.archive-empty-row{text-align:center!important;padding:30px!important}
@media(max-width:900px){.hod-archive-head{align-items:flex-start;flex-direction:column}.hod-archive-top-actions{width:100%}.hod-archive-toolbar{justify-content:stretch}.hod-archive-search{width:100%}}

/* HOD CSU archive — blue Techomes treatment, matching the requested reference layout. */
.hod-archive-page{margin-top:2px}.hod-archive-toolbar{display:flex;justify-content:flex-end;align-items:center;margin-bottom:14px}.hod-archive-search{position:relative;width:min(280px,100%)}.hod-archive-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#94a3b8}.hod-archive-search input{height:38px;padding:0 13px 0 36px;border-radius:20px;border:1px solid #dbe3ec;background:#fff;font-size:13px}.hod-archive-card{background:#fff;border:1px solid #e6eaf0;border-radius:16px;overflow:hidden;margin:0 0 18px;box-shadow:0 1px 2px rgba(15,23,42,.03)}.hod-archive-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px 15px}.hod-archive-title-wrap{display:flex;align-items:flex-start;gap:12px}.hod-archive-toggle{width:28px;height:28px;border:0;background:transparent;color:#64748b;cursor:pointer;margin-top:2px}.hod-archive-head h3{margin:0 0 7px;font-size:18px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hod-archive-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#ecfdf5;color:#15803d;font-size:11px;font-weight:800;letter-spacing:.2px}.hod-archive-summary{display:flex;gap:14px;color:#526078;font-size:13px}.hod-archive-summary .matched{color:#15803d}.hod-archive-date{font-size:12px;margin:5px 0 0}.hod-archive-top-actions{display:flex;gap:8px;flex-wrap:wrap}.hod-archive-progress{height:7px;background:#f1f5f9;margin:0 22px;border-radius:999px;overflow:hidden}.hod-archive-progress>div{height:100%;background:var(--tm-blue);border-radius:999px}.hod-archive-body{padding:16px 22px 20px}.hod-archive-table-wrap{overflow:auto;border:1px solid #edf0f4;border-radius:13px}.hod-archive-table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px}.hod-archive-table th{background:#f8fafc;color:#64748b;font-size:12px;font-weight:800;letter-spacing:.35px;text-align:left;padding:14px 12px;border-bottom:1px solid #e8edf2;white-space:nowrap}.hod-archive-table td{padding:13px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle;font-size:13px}.hod-archive-table tbody tr:last-child td{border-bottom:0}.hod-archive-table tbody tr:hover{background:#fbfdff}.hod-archive-table .check-col{width:44px;text-align:center}.hod-archive-table input[type=checkbox]{width:17px;height:17px}.hod-archive-customer{display:flex;align-items:center;gap:11px;min-width:260px}.hod-archive-customer strong{font-size:14px;color:#0f172a}.hod-archive-bvn,.hod-archive-account{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#475569;font-size:12px}.hod-archive-slip{display:inline-flex;align-items:center;gap:7px;border:1px solid #a7f3d0;background:#ecfdf5;color:#059669;border-radius:7px;padding:8px 11px;text-decoration:none;font-weight:700;font-size:12px;white-space:nowrap}.hod-archive-status{display:inline-flex;align-items:center;gap:6px;background:#ecfdf5;color:#15803d;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800;white-space:nowrap}.hod-archive-account{color:#1d4ed8;font-weight:800}.archive-empty-row{text-align:center!important;padding:30px!important}@media(max-width:900px){.hod-archive-head{align-items:flex-start;flex-direction:column}.hod-archive-top-actions{width:100%}.hod-archive-toolbar{justify-content:stretch}.hod-archive-search{width:100%}}

/* ========================================================================
   V22 CASE EXPERIENCE / RESPONSIVE HARDENING
   ======================================================================== */
body.modal-open{overflow:hidden}
.dir-table{width:100%;table-layout:fixed}
.dir-table th,.dir-table td{vertical-align:middle}
.dir-table th:nth-child(1){width:11%}.dir-table th:nth-child(2){width:20%}.dir-table th:nth-child(3){width:12%}.dir-table th:nth-child(4){width:17%}.dir-table th:nth-child(5){width:13%}.dir-table th:nth-child(6){width:13%}.dir-table th:nth-child(7){width:11%}.dir-table th:nth-child(8){width:13%}
.dir-table .dir-action-col,.dir-table .dir-actions{text-align:right;white-space:nowrap}
.dir-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.dir-view-btn,.dir-download-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px}
.dir-download-btn{width:36px;padding:0!important}
.dir-account{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.dir-empty{text-align:center!important;padding:48px 20px!important}
.dir-row{transition:background .15s ease}

.case-page{max-width:1280px;margin:0 auto;padding:0 0 48px}
.case-breadcrumb{display:flex;align-items:center;gap:10px;color:#64748b;font-size:14px;margin:0 0 16px}
.case-breadcrumb a{display:inline-flex;align-items:center;gap:7px;color:#526078;font-weight:700}
.case-breadcrumb a:hover{color:var(--tm-blue)}
.case-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;background:#fff;border:1px solid var(--tm-border);border-radius:18px;padding:28px 30px;margin-bottom:16px;box-shadow:0 2px 8px rgba(15,23,42,.03);position:relative;overflow:hidden}
.case-hero:after{content:"";position:absolute;right:-80px;top:-100px;width:240px;height:240px;border-radius:50%;background:#eff6ff;pointer-events:none}
.case-hero-main{display:flex;gap:18px;min-width:0;position:relative;z-index:1}
.case-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:16px;background:#eff6ff;color:var(--tm-blue);display:grid;place-items:center;font-size:22px;font-weight:900}
.case-hero-copy{min-width:0}.case-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:900;color:#64748b;margin-bottom:5px}
.case-hero h1{margin:0 0 5px;font-size:32px;line-height:1.15;color:#0f172a;word-break:break-word}
.case-hero p{margin:0;color:#64748b;font-size:14px}
.case-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.case-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dbe3ec;border-radius:999px;background:#fff;color:#526078;font-size:12px;font-weight:800;max-width:100%}
.case-chip i{color:#64748b}.case-chip.active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.case-chip.active i{color:#1d4ed8}
.case-hero-actions{position:relative;z-index:1;flex:0 0 auto}.case-hero-actions .btn{display:inline-flex;align-items:center;gap:8px;min-height:42px}
.case-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.case-summary-card{background:#fff;border:1px solid var(--tm-border);border-radius:14px;padding:16px 18px;min-width:0}
.case-summary-card span,.case-field-grid span,.case-owner-list span,.case-system-list span{display:block;text-transform:uppercase;letter-spacing:.045em;font-size:10px;font-weight:900;color:#94a3b8;margin-bottom:6px}
.case-summary-card strong{display:block;font-size:15px;color:#172033;overflow-wrap:anywhere}
.case-layout{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(310px,.95fr);gap:16px;align-items:start}
.case-main-column,.case-side-column{min-width:0}.case-side-column{position:sticky;top:18px}
.case-section{background:#fff;border:1px solid var(--tm-border);border-radius:16px;margin-bottom:16px;overflow:hidden;box-shadow:0 1px 4px rgba(15,23,42,.025)}
.case-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:19px 22px;border-bottom:1px solid #edf1f5}
.case-section-head>div{min-width:0}.case-section-head h2{margin:0 0 4px;font-size:18px;color:#172033}.case-section-head p{margin:0;color:#94a3b8;font-size:12px;line-height:1.5}.case-section-head>i{width:38px;height:38px;border-radius:11px;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;flex:0 0 auto}
.case-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#edf1f5}
.case-field-grid>div{background:#fff;padding:16px 20px;min-width:0}.case-field-grid>div.wide{grid-column:1/-1}
.case-field-grid strong{display:block;font-size:14px;color:#172033;line-height:1.45;overflow-wrap:anywhere}
.case-compact .case-section-head{padding:17px 18px}.case-compact .case-section-head h2{font-size:16px}
.case-owner-list>div,.case-system-list>div{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:14px 18px;border-bottom:1px solid #edf1f5}.case-owner-list>div:last-child,.case-system-list>div:last-child{border-bottom:0}
.case-owner-list strong,.case-system-list strong{text-align:right;font-size:13px;color:#172033;max-width:62%;overflow-wrap:anywhere}
.case-doc-list{padding:10px 12px}.case-doc{display:flex;align-items:center;gap:10px;padding:11px 7px;border-bottom:1px solid #edf1f5;min-width:0}.case-doc:last-child{border-bottom:0}
.case-doc-icon{width:38px;height:38px;border-radius:10px;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;flex:0 0 auto}.case-doc-copy{min-width:0;flex:1}.case-doc-copy strong{display:block;font-size:12px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-doc-copy span{display:block;font-size:10px;color:#94a3b8;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-doc-action{width:34px;height:34px;border:1px solid #dbe3ec;border-radius:9px;display:grid;place-items:center;color:#64748b;background:#fff;flex:0 0 auto}.case-doc-action:hover{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.case-timeline-pro{padding:20px 22px 8px}.case-event{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:13px;padding-bottom:18px}.case-event:last-child{padding-bottom:4px}.case-event-marker{position:relative;display:flex;justify-content:center}.case-event-marker:before{content:"";position:absolute;top:9px;bottom:-18px;width:2px;background:#dbeafe}.case-event:last-child .case-event-marker:before{display:none}.case-event-marker span{width:12px;height:12px;border-radius:50%;background:#2563eb;border:3px solid #dbeafe;position:relative;z-index:1;margin-top:4px}.case-event-card{border:1px solid #e2e8f0;border-radius:12px;padding:13px 15px;background:#fbfdff;min-width:0}.case-event-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.case-event-top strong{display:block;font-size:13px;color:#172033}.case-event-top span{display:block;font-size:11px;color:#64748b;margin-top:3px}.case-event-top time{font-size:10px;color:#94a3b8;white-space:nowrap}.case-event-stage{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;padding:7px 9px;border-radius:8px;background:#f1f5f9;color:#526078;font-size:10px;font-weight:800}.case-event-stage i{color:#94a3b8}.case-event-detail{margin:9px 0 0;font-size:11px;line-height:1.55;color:#64748b;overflow-wrap:anywhere}
.case-empty{text-align:center;padding:34px 18px;color:#94a3b8}.case-empty i{font-size:25px;margin-bottom:8px}.case-empty p{margin:0;font-size:13px}.case-empty.small{padding:22px}
.case-error-panel{max-width:600px;margin:80px auto;background:#fff;border:1px solid var(--tm-border);border-radius:16px;padding:42px;text-align:center}.case-error-panel h1{margin:14px 0 6px}.case-error-icon{width:56px;height:56px;border-radius:15px;background:#fef2f2;color:#dc2626;display:grid;place-items:center;margin:0 auto;font-size:22px}

.case-detail-modal{padding:0;background:rgba(15,23,42,.52);backdrop-filter:blur(3px);align-items:stretch;justify-content:flex-end}
.case-detail-modal-box{width:min(760px,94vw);max-width:none;height:100vh;max-height:100vh;border-radius:0;padding:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(15,23,42,.16)}
.case-detail-modal-head{flex:0 0 auto;padding:18px 22px;border-bottom:1px solid #e5eaf1;margin:0;background:#fff;align-items:center}.case-modal-kicker{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:900;color:#64748b;margin-bottom:4px}.case-detail-modal-head h3{margin:0;font-size:23px;color:#0f172a;max-width:560px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.case-detail-modal-head .btn{border-radius:10px}.dir-detail-body{max-width:none;overflow:auto;padding:20px;background:#f6f8fb;flex:1}
.case-modal-loading{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#526078}.case-modal-loading small{color:#94a3b8}.case-spinner{width:30px;height:30px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:caseSpin .8s linear infinite;margin-bottom:6px}@keyframes caseSpin{to{transform:rotate(360deg)}}
.case-modal-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.case-modal-field{background:#fff;border:1px solid #e5eaf1;border-radius:11px;padding:12px;min-width:0}.case-modal-field span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;font-weight:900;color:#94a3b8;margin-bottom:5px}.case-modal-field strong{display:block;font-size:12px;color:#172033;overflow-wrap:anywhere}
.case-modal-section{background:#fff;border:1px solid #e5eaf1;border-radius:13px;margin-bottom:14px;overflow:hidden}.case-modal-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #edf1f5}.case-modal-section-head h4{margin:0;font-size:14px}.case-modal-section-head span{font-size:10px;color:#94a3b8;font-weight:800}.case-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#edf1f5}.case-modal-grid .case-modal-field{border:0;border-radius:0}
.case-modal-docs{padding:8px}.case-modal-doc{display:flex;align-items:center;gap:10px;padding:10px;border-radius:9px;color:inherit;border-bottom:1px solid #edf1f5}.case-modal-doc:last-child{border-bottom:0}.case-modal-doc:hover{background:#f8fbff}.case-modal-doc>span:nth-child(2){min-width:0;flex:1}.case-modal-doc strong,.case-modal-doc small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-modal-doc strong{font-size:11px}.case-modal-doc small{font-size:9px;color:#94a3b8;margin-top:3px}.case-modal-doc>i{color:#64748b;font-size:11px}.case-modal-doc-icon{width:34px;height:34px;border-radius:8px;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;flex:0 0 auto}
.case-modal-events{padding:12px 16px}.case-modal-event{position:relative;display:grid;grid-template-columns:12px 1fr;gap:10px;padding:0 0 14px}.case-modal-event:last-child{padding-bottom:0}.case-modal-event-dot{width:8px;height:8px;border-radius:50%;background:#2563eb;margin-top:5px;position:relative}.case-modal-event:not(:last-child) .case-modal-event-dot:after{content:"";position:absolute;left:3px;top:8px;width:2px;height:calc(100% + 14px);background:#dbeafe}.case-modal-event-top{display:flex;justify-content:space-between;gap:10px}.case-modal-event-top strong{font-size:11px}.case-modal-event-top time{font-size:9px;color:#94a3b8;white-space:nowrap}.case-modal-actor{font-size:9px;color:#64748b}.case-modal-stage{margin-top:5px;font-size:9px;color:#526078;background:#f8fafc;border-radius:6px;padding:5px 7px;overflow-wrap:anywhere}.case-modal-stage i{color:#94a3b8;margin:0 3px}.case-modal-event p{margin:5px 0 0;font-size:9px;color:#64748b;line-height:1.5;overflow-wrap:anywhere}.case-modal-empty{text-align:center;color:#94a3b8;font-size:11px;padding:18px}.case-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:4px 0 2px}.case-modal-footer .btn{display:inline-flex;align-items:center;gap:7px}
.case-modal-error{text-align:center;background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:42px 26px;margin:0 auto;max-width:580px}.case-modal-error h4{font-size:17px;margin:14px 0 6px}.case-modal-error p{margin:0 auto 18px;max-width:430px;color:#64748b;font-size:12px;line-height:1.55}.case-modal-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}

@media(max-width:1100px){.case-layout{grid-template-columns:1fr}.case-side-column{position:static}.case-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.case-detail-modal-box{width:min(700px,96vw)}}
@media(max-width:800px){.main{margin-left:0;width:100%;padding:0 16px 28px}.sidebar{position:static;width:100%;height:auto;max-height:none;border-right:0;border-bottom:1px solid #e5eaf1}.shell{display:block}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar nav .nav-label{width:100%;margin-top:8px}.sidebar nav a{margin:0}.topbar{height:auto;min-height:64px;gap:12px;align-items:flex-start;padding:14px 0;flex-wrap:wrap}.user-menu{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tool{max-width:none}.case-hero{padding:22px;flex-direction:column}.case-hero-actions{width:100%}.case-hero-actions .btn{width:100%;justify-content:center}.case-hero h1{font-size:26px}.case-summary-grid{grid-template-columns:1fr 1fr}.dir-table-wrap{overflow-x:auto}.dir-table{min-width:1050px}.case-detail-modal-box{width:100vw}.case-modal-summary{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.main{padding:0 12px 22px}.case-breadcrumb{font-size:12px}.case-hero-main{gap:12px}.case-avatar{width:52px;height:52px;flex-basis:52px;font-size:18px}.case-hero{padding:18px}.case-chip{max-width:100%;white-space:normal}.case-summary-grid{grid-template-columns:1fr}.case-field-grid,.case-modal-grid{grid-template-columns:1fr}.case-field-grid>div.wide{grid-column:auto}.case-section-head{padding:16px}.case-timeline-pro{padding:16px 14px 6px}.case-event-top{flex-direction:column;gap:4px}.case-event-top time{white-space:normal}.case-owner-list>div,.case-system-list>div{flex-direction:column;gap:4px}.case-owner-list strong,.case-system-list strong{max-width:100%;text-align:left}.case-detail-modal-head{padding:14px 16px}.case-detail-modal-head h3{font-size:19px}.dir-detail-body{padding:12px}.case-modal-summary{grid-template-columns:1fr}.case-modal-footer{flex-direction:column}.case-modal-footer .btn{justify-content:center;width:100%}}

/* HOD CSU — TrustBricks-style operational workspace, adapted to Techomes blue branding. */
.hod-reference-page{margin-top:2px}
.hod-incoming-card{background:#fff;border:1px solid #e5eaf1;border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.hod-incoming-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px 12px}
.hod-incoming-title h2{margin:0 0 7px;font-size:20px;color:#111827}
.hod-incoming-title p{margin:0;max-width:900px;color:#718096;font-size:13px;line-height:1.55}
.hod-incoming-summary{padding:0 24px 14px;color:#111827;font-size:14px}
.hod-incoming-summary strong{font-size:20px;margin-right:5px}
.hod-primary-action,.hod-secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;padding:0 15px;border-radius:9px;border:1px solid transparent;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap;text-decoration:none}
.hod-primary-action{background:#2563eb;color:#fff;border-color:#2563eb}
.hod-primary-action:hover{background:#1d4ed8;border-color:#1d4ed8}
.hod-primary-action:disabled{background:#a8c2f8;border-color:#a8c2f8;cursor:not-allowed}
.hod-secondary-action{background:#fff;color:#2563eb;border-color:#dbe3ef}
.hod-secondary-action:hover{background:#eff6ff;border-color:#bfdbfe}
.hod-reference-table-wrap{overflow:auto;border-top:1px solid #edf1f5}
.hod-reference-table{width:100%;min-width:850px;border-collapse:separate;border-spacing:0}
.hod-reference-table th{background:#f8fafc;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.45px;text-align:left;padding:13px 14px;border-bottom:1px solid #e8edf2;white-space:nowrap}
.hod-reference-table td{padding:13px 14px;border-bottom:1px solid #eef1f4;color:#475569;font-size:13px;vertical-align:middle}
.hod-reference-table tbody tr:hover{background:#fbfdff}
.hod-reference-table tbody tr:last-child td{border-bottom:0}
.hod-reference-table .check-col{width:42px;text-align:center}
.hod-reference-table input[type=checkbox]{width:17px;height:17px}
.hod-reference-customer{display:flex;align-items:center;gap:10px;min-width:240px}
.hod-reference-customer strong{font-size:14px;color:#111827}
.hod-reference-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px!important}
.hod-time-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;background:#dcfce7;color:#15803d;font-size:11px;font-weight:800;white-space:nowrap}
.hod-incoming-card+.csu-pipeline-box{margin-top:18px}
.hod-incoming-card form{margin:0}

/* Make the mortgage batch cards visually match the reference: quiet header,
   progress bar, pale table header, green resolved states and compact actions. */
.hod-batch-workspace{margin-top:0}
.hod-batch-intro{padding:0 2px 15px}
.hod-batch-intro h3{font-size:20px;color:#111827}
.hod-batch-card{border-radius:16px;border-color:#e5eaf1;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.hod-batch-head{padding:20px 24px 15px}
.hod-batch-progress{margin:0 24px;height:7px;background:#eef2f7}
.hod-batch-progress>div{background:#22c55e!important}
.hod-batch-body{padding:16px 24px 20px}
.hod-case-table-wrap{border-radius:12px}
.hod-case-table th{background:#f8fafc;color:#64748b}
.hod-case-table td{font-size:13px}
.hod-case-status.ready{background:#dcfce7;color:#15803d}
.hod-saved-account{background:#fff;border-color:#e2e8f0}
.hod-save-btn{background:#2563eb!important}
.hod-save-btn:hover{background:#1d4ed8!important}

@media(max-width:900px){
  .hod-incoming-title{flex-direction:column}
  .hod-incoming-title form,.hod-incoming-title .hod-primary-action{width:100%}
  .hod-incoming-title .hod-primary-action{justify-content:center}
}

/* ========================================================================
   TECHOMES AUTH / BRANDING REFRESH — 2026-09-05
   Blue-only visual language. Compact logo treatment; no oversized artwork.
   ======================================================================== */
.auth{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px 18px;
  background-color:#f7f9fc;
  background-image:
    linear-gradient(rgba(37,99,235,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(37,99,235,.055) 1px,transparent 1px);
  background-size:40px 40px;
}
.auth-shell{width:100%;display:flex;justify-content:center;align-items:center}
.auth-card{
  width:min(490px,94vw);
  padding:42px 38px 28px;
  margin:0;
  background:#fff;
  border:1px solid #e1e8f2;
  border-top:5px solid #2563eb;
  border-radius:18px;
  box-shadow:0 22px 55px rgba(15,23,42,.10);
  text-align:left;
}
.auth-brand-mark{display:flex;justify-content:center;align-items:center;margin:0 auto 16px;height:118px}
.auth-logo{display:block;width:106px;height:118px;object-fit:cover;object-position:center;border-radius:12px;box-shadow:0 8px 22px rgba(15,23,42,.13);image-rendering:auto}
.auth-card h1{text-align:center;margin:0;color:#172033;font-size:30px;line-height:1.1;letter-spacing:-.035em}
.auth-subtitle{text-align:center;margin:12px 0 34px;color:#64748b;font-size:15px;font-weight:800;letter-spacing:.16em}
.auth-card .error{margin-bottom:18px}
.auth-field{margin-bottom:20px}
.auth-field>label{display:block;margin:0 0 8px;color:#475569;font-size:12px;font-weight:800;letter-spacing:.10em}
.auth-input-wrap{position:relative;display:flex;align-items:center}
.auth-input-wrap input{height:58px;width:100%;padding:0 52px 0 54px;border:1px solid #d5deea;border-radius:11px;background:#fff;color:#172033;font-size:16px}
.auth-input-wrap input::placeholder{color:#a8b6c9}
.auth-input-wrap input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.auth-input-icon{position:absolute;left:18px;width:21px;height:21px;fill:none;stroke:#71829a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;z-index:1}
.password-toggle{position:absolute;right:14px;width:34px;height:34px;border:0;background:transparent;color:#71829a;display:grid;place-items:center;cursor:pointer;border-radius:7px;padding:0}
.password-toggle:hover{background:#eff6ff;color:#2563eb}
.password-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-submit{width:100%;height:58px;margin-top:2px;border-radius:11px;font-size:15px;letter-spacing:.04em;box-shadow:0 9px 22px rgba(37,99,235,.20)}
.auth-submit:hover{box-shadow:0 11px 26px rgba(37,99,235,.25)}
.auth-access{text-align:center;margin:20px 0 25px;color:#64748b;font-size:15px}
.auth-access a{color:#2563eb;font-weight:700}
.auth-divider{height:1px;background:#e5eaf1;margin:0 0 22px}
.auth-footer{text-align:center;margin:0;color:#94a3b8;font-size:12px;line-height:1.5}
.auth-footer strong{color:#64748b;font-weight:700}

/* Global sidebar brand uses the same supplied NicTech Homes artwork. */
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{width:34px;height:34px;display:block;object-fit:cover;border-radius:7px;box-shadow:0 3px 9px rgba(15,23,42,.10);flex:0 0 34px}
.brand span{display:block}
@media(max-width:800px){
  .brand{gap:0;justify-content:center}
  .brand-logo{width:32px;height:32px;flex-basis:32px}
  .brand span{display:none}
}
@media(max-width:520px){
  .auth{padding:18px 12px;background-size:32px 32px}
  .auth-card{width:min(430px,96vw);padding:32px 22px 24px;border-radius:16px}
  .auth-brand-mark{height:104px;margin-bottom:14px}
  .auth-logo{width:92px;height:104px}
  .auth-card h1{font-size:27px}
  .auth-subtitle{font-size:12px;letter-spacing:.12em;margin-bottom:28px}
}

/* ========================================================================
   TECHOMES GLOBAL RESPONSIVE PASS — 2026-09-05
   Cross-platform layout: desktop, laptop, tablet and mobile.
   Keeps existing workflow/logic intact; presentation only.
   ======================================================================== */
html{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
body{width:100%;max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}
button,input,select,textarea{max-width:100%}
input,select,textarea{min-width:0}

/* Prevent long operational values from creating page-wide horizontal scroll,
   without chopping ordinary short text (like "Premium Pensions") mid-word —
   break-word only kicks in when a single unbreakable token is too long to
   fit, whereas the old "anywhere" value let the browser fragment normal
   multi-word text into meaningless pieces the moment a column got slightly
   tight. */
.table,.dir-table,.hod-reference-table,.hod-case-table{max-width:100%}
th,td{overflow-wrap:break-word;word-break:normal}

/* Main workspace scales with the available viewport instead of forcing a
   desktop canvas on tablets/phones. */
.main{min-width:0;max-width:100%;overflow-x:hidden}
.topbar{min-width:0}
.topbar>div{min-width:0}
.topbar strong{overflow-wrap:anywhere}
.user-menu{min-width:0}
.user-menu>*{min-width:0}

/* Large screens: use the available workspace without excessive side gutters. */
@media(min-width:1400px){
  .main{padding-left:34px;padding-right:34px}
}

/* Laptop / tablet landscape. */
@media(max-width:1100px){
  .main{padding-left:20px;padding-right:20px}
  .hero{padding:22px}
  .panel{padding:18px}
  .grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .split-board{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Tablet and phone: the sidebar becomes a compact horizontal workspace bar. */
@media(max-width:800px){
  .shell{display:block;min-height:100vh}
  .sidebar{
    position:sticky;
    top:0;
    z-index:100;
    /* Note: a second, near-identical block below (max-width:960px) also
       targets .sidebar and wins the cascade at widths <=800px since it
       comes later in the file. Kept in sync (same value) so this isn't a
       silent dead value if the 960px block is ever edited on its own. */
    width:100%;
    height:auto;
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid #e5eaf1;
    box-shadow:0 2px 10px rgba(15,23,42,.04)
  }
  .brand{
    min-height:58px;
    padding:10px 14px;
    border-bottom:1px solid #eef1f5;
    justify-content:flex-start;
  }
  .brand-logo{width:32px;height:32px;flex-basis:32px}
  .brand span{display:block;font-size:18px}
  .sidebar nav{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:4px;
    padding:7px 10px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
  }
  .sidebar nav .nav-label{
    width:auto;
    flex:0 0 auto;
    padding:7px 7px;
    margin:0;
    font-size:9px;
  }
  .sidebar nav a{
    flex:0 0 auto;
    margin:0;
    white-space:nowrap;
    padding:9px 11px;
  }
  .sidebar nav a i{flex:0 0 auto}
  .nav-label{font-size:9px}
  .main{
    margin-left:0;
    width:100%;
    padding:0 14px 28px;
  }
  .topbar{
    min-height:58px;
    height:auto;
    margin-bottom:18px;
    padding:10px 0;
    gap:10px;
  }
  .topbar>div:first-child{flex:1 1 160px}
  .user-menu{flex:1 1 100%;justify-content:flex-start}
  .user-menu .header-role{display:none}
  .toolbar,.actions,.pdfsplit-toolbar,.pdfsplit-actions,.editor-header-actions{max-width:100%}
  .toolbar>*{max-width:100%}
  .row{grid-template-columns:1fr}
  .category-grid,.split-board{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pdfsplit-shell{flex-direction:column}
  .pdfsplit-sidebar{width:100%;flex-basis:auto;position:static;max-height:none}
  .pdfsplit-main{width:100%}
  .table-wrap,.dir-table-wrap,.hod-reference-table-wrap,.hod-case-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table{min-width:620px}
  .cmdk-overlay{padding-top:8vh}
  .cmdk-box{width:min(560px,94vw)}
}

/* Phone portrait. */
@media(max-width:560px){
  body{font-size:14px}
  .main{padding:0 10px 22px}
  .brand{min-height:54px;padding:9px 12px}
  .brand-logo{width:30px;height:30px;flex-basis:30px}
  .brand span{font-size:17px}
  .sidebar nav{padding:6px 8px}
  .sidebar nav a{padding:8px 9px;font-size:12px}
  .sidebar nav .nav-label{font-size:8px;padding:7px 5px}
  .topbar{margin-bottom:14px;padding:9px 0}
  .topbar strong{font-size:15px}
  .user-menu{font-size:12px;gap:6px}
  .user-menu .btn{padding:8px 10px}
  .hero{padding:18px 15px;border-radius:13px}
  .hero h1{font-size:23px;line-height:1.2}
  .hero p{font-size:13px}
  .panel{padding:15px;border-radius:12px}
  .card{padding:16px;border-radius:12px}
  .grid{grid-template-columns:1fr;gap:12px}
  .kpi{display:grid;grid-template-columns:1fr 1fr}
  .stat{min-width:0;padding:11px 12px}
  .stat b{font-size:19px}
  .actions,.toolbar,.dir-custom-range,.dir-filters-row,.hod-incoming-title,.hod-batch-head,.hod-batch-body{width:100%}
  .actions .btn,.toolbar .btn{max-width:100%}
  .btn{padding:9px 12px;font-size:12px}
  .category-grid,.split-board{grid-template-columns:1fr 1fr}
  .drop{padding:30px 14px}
  .file-item{align-items:flex-start;flex-direction:column}
  .file-item .actions{width:100%}
  .page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dir-table{min-width:900px}
  .hod-reference-table{min-width:760px}
  .hod-case-table{min-width:760px}
  .case-layout{grid-template-columns:1fr}
  .case-summary-grid{grid-template-columns:1fr 1fr}
  .case-hero{padding:17px}
  .case-hero h1{font-size:23px}
  .case-section-head{padding:14px}
  .case-field-grid{grid-template-columns:1fr}
  .case-field-grid>div.wide{grid-column:auto}

  /* Approved compact login treatment. */
  .auth{padding:16px 10px;background-size:32px 32px}
  .auth-card{width:min(390px,94vw);padding:26px 20px 21px;border-radius:15px;border-top-width:4px}
  .auth-brand-mark{height:82px;margin-bottom:10px}
  .auth-logo{width:72px;height:82px;border-radius:10px;box-shadow:0 5px 14px rgba(15,23,42,.11)}
  .auth-card h1{font-size:24px}
  .auth-subtitle{font-size:10px;letter-spacing:.12em;margin:8px 0 22px}
  .auth-field{margin-bottom:15px}
  .auth-field>label{font-size:10px;margin-bottom:6px}
  .auth-input-wrap input{height:48px;padding-left:45px;padding-right:45px;font-size:14px;border-radius:9px}
  .auth-input-icon{left:14px;width:18px;height:18px}
  .password-toggle{right:9px;width:31px;height:31px}
  .password-toggle svg{width:19px;height:19px}
  .auth-submit{height:48px;border-radius:9px;font-size:13px;margin-top:1px}
  .auth-access{font-size:13px;margin:15px 0 19px}
  .auth-divider{margin-bottom:17px}
  .auth-footer{font-size:10px}
}

/* Very small phones: preserve usability without horizontal overflow. */
@media(max-width:380px){
  .main{padding-left:8px;padding-right:8px}
  .sidebar nav a{padding:7px 8px}
  .sidebar nav a span{display:none}
  .sidebar nav a{gap:0}
  .kpi{grid-template-columns:1fr}
  .category-grid,.split-board,.page-grid{grid-template-columns:1fr}
  .case-summary-grid{grid-template-columns:1fr}
  .auth{padding:10px 7px}
  .auth-card{width:96vw;padding:22px 16px 18px}
  .auth-brand-mark{height:74px}
  .auth-logo{width:65px;height:74px}
}

/* Touch targets and focus states across the application. */
@media(pointer:coarse){
  .btn,.sidebar nav a,.pipeline-nav a,.password-toggle,.dir-range-pill,
  .archive-search button,.intake-search button,
  .flyerstudio-stepper button,.hod-filter-pills button{min-height:40px}
  input,select,textarea{min-height:42px}
}

/* Icon-only utility buttons: guarantee true centering of their glyph/icon on every
   platform (some browsers do not vertically center inline button content by default). */
.archive-search button,.intake-search button,
.flyerstudio-stepper button,.hod-filter-pills button{display:inline-flex;align-items:center;justify-content:center}

/* Never let code/preformatted operational output break the viewport. */
pre,.code,code{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}

/* Mortgage account lifecycle: available after bank account opening, not at Intake. */
.acctgen-readonly-note{margin-top:.4rem;padding:.7rem .8rem;border:1px solid #dbe5f0;border-radius:10px;background:#f8fbff;color:#5d718d;font-weight:500;line-height:1.45}

/* ========================================================================
   TECHOMES V28.2.8 — UNIVERSAL CROSS-PLATFORM LAYOUT
   Presentation-only layer. No workflow, PHP, database or form logic changed.
   Targets desktop, laptop, tablet, phone portrait and phone landscape.
   ======================================================================== */

/* Every primary workspace should use the available viewport. Individual
   components can still impose their own sensible internal widths. */
.tool,
.pfa-page,
.page-container,
.content,
.workspace,
.workspace-container{
  width:100%;
  max-width:none;
  min-width:0;
}

.main > *{min-width:0;max-width:100%;}
.hero,.panel,.card,.tool,.pfa-page{min-width:0;}

/* Tables never push the browser itself wider than the viewport. */
.table-wrap,
.table-responsive,
.responsive-table,
.dir-table-wrap,
.hod-reference-table-wrap,
.hod-case-table-wrap,
.hod-failed-table-wrap,
.hod-archive-table-wrap,
.teamlog-table-wrap,
.disb-table-wrap,
.pfa-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}

.table,
.dir-table,
.hod-reference-table,
.hod-case-table,
.hod-failed-table,
.hod-archive-table,
.teamlog-table,
.disb-table,
.pfa-table{
  max-width:none;
}

/* Long controls and action groups wrap rather than creating horizontal
   overflow on narrow screens. */
.actions,
.toolbar,
.po-pool-filters,
.pfa-filterbar,
.pfa-archive-toolbar,
.pipeline-nav,
.csu-tab-row,
.hod-batch-head,
.hod-archive-head,
.panel-head,
.teamlog-hero{
  min-width:0;
}

.actions .btn,
.toolbar .btn,
.po-wf-actions .btn{
  max-width:100%;
  white-space:normal;
}

/* Large desktop: make the workspace feel genuinely full-page rather than
   leaving a narrow fixed-width canvas in the middle. */
@media (min-width:1201px){
  .main{padding-left:28px;padding-right:28px;}
  .tool{padding-left:0;padding-right:0;}
  .hero{width:100%;}
}

/* Smaller laptops / tablets in landscape. */
@media (max-width:1200px) and (min-width:961px){
  .sidebar{width:220px;}
  .main{margin-left:220px;width:calc(100% - 220px);padding-left:18px;padding-right:18px;}
  .grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));}
  .teamlog-filters{grid-template-columns:repeat(3,1fr);}
  .pfa-page{max-width:none;}
}

/* Tablet portrait and small tablets: replace the desktop fixed sidebar with
   a compact horizontal workspace rail. This prevents the content area from
   being squeezed to a desktop-sized column. */
@media (max-width:960px){
  .shell{display:block;min-height:100vh;}
  .sidebar{
    position:sticky;
    top:0;
    z-index:100;
    width:100%;
    height:auto;
    max-height:none;
    overflow:hidden;
    border-right:0;
    border-bottom:1px solid #e5eaf1;
    box-shadow:0 2px 12px rgba(15,23,42,.05);
  }
  .brand{
    min-height:56px;
    padding:9px 14px;
    justify-content:flex-start;
  }
  .brand-logo{width:32px;height:32px;flex-basis:32px;}
  .brand span{display:block;font-size:18px;}
  .sidebar nav{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:5px;
    padding:7px 10px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .sidebar nav .nav-label{
    width:auto;
    flex:0 0 auto;
    padding:7px 6px;
    margin:0;
    font-size:8px;
  }
  .sidebar nav a{
    flex:0 0 auto;
    margin:0;
    white-space:nowrap;
    padding:9px 11px;
  }
  .main{
    margin-left:0;
    width:100%;
    max-width:100%;
    padding:0 16px 28px;
  }
  .topbar{
    min-height:58px;
    height:auto;
    padding:10px 0;
    margin-bottom:18px;
    gap:10px;
    flex-wrap:wrap;
  }
  .topbar>div:first-child{flex:1 1 180px;min-width:0;}
  .user-menu{flex:1 1 100%;justify-content:flex-start;flex-wrap:wrap;}
  .user-menu .header-role{display:none;}
  .hero{padding:22px;}
  .panel{padding:18px;}
  .row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .split-board{grid-template-columns:repeat(3,minmax(0,1fr));}
  .csu-tab-row{flex-wrap:wrap;}
  .csu-tab-row .merger-viewtabs{width:100%;overflow-x:auto;}
  .po-slots{margin-left:auto;}
  .po-pool-filters{align-items:stretch;}
  .po-branch-filter{flex:1 1 220px;}
  .po-branch-filter select{width:100%;min-width:0;}
  .pfa-head{flex-direction:column;}
  .pfa-page{max-width:none;}
  .pfa-search{margin-left:0;max-width:none;flex:1 1 100%;}
  .pdfsplit-shell{flex-direction:column;}
  .pdfsplit-sidebar{width:100%;flex-basis:auto;position:static;max-height:none;}
  .pdfsplit-main{width:100%;}
}

/* Phones: single-column content, readable controls and no forced desktop
   widths. Data-heavy tables remain horizontally scrollable inside their
   own containers instead of moving the entire page. */
@media (max-width:700px){
  .main{padding:0 11px 22px;}
  .topbar{padding:9px 0;margin-bottom:13px;}
  .topbar>div:first-child{flex-basis:100%;}
  .topbar strong{font-size:16px;}
  .user-menu{font-size:12px;gap:6px;}
  .user-menu .btn{padding:8px 10px;}
  .hero{padding:17px 14px;border-radius:13px;}
  .hero h1{font-size:23px;line-height:1.2;}
  .hero p{font-size:13px;line-height:1.5;}
  .panel{padding:14px;border-radius:12px;}
  .row{grid-template-columns:1fr;}
  .grid{grid-template-columns:1fr;gap:12px;}
  .category-grid,.split-board{grid-template-columns:1fr 1fr;}
  .kpi{grid-template-columns:1fr 1fr;}
  .stat{min-width:0;}
  .toolbar,.actions{gap:7px;}
  .toolbar>*{min-width:0;max-width:100%;}
  .actions .btn,.toolbar .btn{flex:0 1 auto;}
  .po-pool-filters{display:grid;grid-template-columns:1fr;gap:10px;}
  .po-branch-filter{display:block;}
  .csu-tab-row{align-items:stretch;}
  .csu-tab-row .merger-viewtabs{width:100%;overflow-x:auto;}
  .csu-tab-row .merger-viewtab-btn{flex:0 0 auto;}
  .po-slots{margin-left:0;}
  .pipeline-nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px;}
  .pipeline-nav a{flex:0 0 auto;white-space:nowrap;}
  .file-item{flex-direction:column;align-items:stretch;}
  .file-item .actions{width:100%;}
  .drop{padding:28px 13px;}
  .pfa-filterbar{align-items:stretch;}
  .pfa-search,.pfa-selects,.pfa-assigned-pill{width:100%;max-width:none;}
  .pfa-selects{order:4;}
  .pfa-assigned-pill{order:5;}
  .teamlog-stats{grid-template-columns:1fr;}
  .teamlog-filters{grid-template-columns:1fr;}
  .teamlog-hero{flex-direction:column;}
  .panel-head{flex-direction:column;}
  .case-layout{grid-template-columns:1fr;}
  .case-summary-grid{grid-template-columns:1fr;}
  .case-detail-modal-box{width:100vw;max-width:100vw;}
  .case-detail-modal-head h3{max-width:calc(100vw - 70px);}
}

/* Very small phones. */
@media (max-width:420px){
  .main{padding-left:8px;padding-right:8px;}
  .brand{min-height:52px;padding:8px 10px;}
  .brand-logo{width:29px;height:29px;flex-basis:29px;}
  .brand span{font-size:16px;}
  .sidebar nav{padding:5px 7px;gap:3px;}
  .sidebar nav a{padding:8px 9px;font-size:11px;}
  .sidebar nav .nav-label{font-size:7px;padding:6px 4px;}
  .hero{padding:15px 12px;}
  .panel{padding:12px;}
  .category-grid,.split-board,.kpi{grid-template-columns:1fr;}
  .btn{width:auto;max-width:100%;}
  .actions .btn{flex:1 1 auto;}
  input,select,textarea{font-size:16px;}
}

/* Landscape phones: reclaim vertical space while keeping touch targets. */
@media (max-height:520px) and (orientation:landscape){
  .brand{min-height:48px;padding:6px 10px;}
  .brand-logo{width:28px;height:28px;flex-basis:28px;}
  .sidebar nav{padding:4px 7px;}
  .sidebar nav a{padding:7px 9px;}
  .topbar{min-height:50px;padding:7px 0;margin-bottom:10px;}
  .hero{padding:14px;}
  .panel{padding:12px;}
}

/* Accessibility / interaction: controls remain usable at every breakpoint. */
@media (pointer:coarse){
  .btn,.sidebar nav a,.pipeline-nav a,.merger-viewtab-btn{min-height:40px;}
  input,select,textarea{min-height:42px;}
}


/* ========================================================================
   TECHOMES UI POLISH — END-TO-END CONTROL / ACTION LAYOUT
   Final cascade layer. Keeps workflow logic unchanged and fixes controls,
   tables, action cells, dialogs and responsive sizing across every page.
   ======================================================================== */

/* Controls should never inherit browser inline/button quirks. */
button,
.btn,
input[type="button"],
input[type="submit"],
input[type="reset"]{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  vertical-align:middle;
  line-height:1.25;
  min-height:40px;
  max-width:100%;
  margin:0;
  text-align:center;
  text-decoration:none;
}
button:not(:disabled),
.btn{cursor:pointer}
button:disabled,
.btn[aria-disabled="true"]{cursor:not-allowed}
.btn i{flex:0 0 auto}

/* Prevent action labels from breaking into ugly fragments. */
.btn,
.table td .btn,
.actions .btn,
.toolbar .btn,
.po-wf-actions .btn,
.dir-actions .btn,
.case-hero-actions .btn,
.editor-header-actions .btn,
.pdfsplit-actions .btn,
.util-actions .btn{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Table cells stay readable; action cells never squeeze buttons to one
   character per line. Tables can scroll inside their own wrapper.
   top-aligned so a taller cell (e.g. a wrapped multi-line status string)
   doesn't visually shove every other column's content into the vertical
   middle of an inflated row. */
.table th,
.table td{
  vertical-align:top;
}
.table td .btn{
  flex:0 0 auto;
  margin:2px 4px 2px 0;
}
.table td .btn:last-child{margin-right:0}
.table td > .actions,
.table td > form.actions{
  margin:0;
  align-items:center;
  justify-content:flex-start;
  width:100%;
}
.table td > form.actions select{
  flex:1 1 180px;
  min-width:150px;
  width:auto;
}
.table td > form.actions .btn{
  flex:0 0 auto;
}
.table td:has(.btn){min-width:max-content}

/* Dedicated action clusters use consistent spacing and never overflow their
   parent. */
.actions,
.po-wf-actions,
.dir-table-actions,
.hod-archive-top-actions,
.editor-header-actions,
.pdfsplit-actions,
.util-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.actions{margin-top:16px}
.table .actions{margin-top:0}

/* Forms and cards should size from the available viewport. */
form,
fieldset,
.panel,
.hero,
.card,
.grid,
.row,
.case-layout,
.case-summary-grid,
.pfa-page,
.workspace,
.content{
  min-width:0;
  max-width:100%;
}
.row > *,
.grid > *,
.case-layout > *,
.case-summary-grid > *{min-width:0}

/* Inputs/selects inside horizontal action forms are allowed to shrink. */
form{max-width:100%}
form input,
form select,
form textarea{min-width:0;max-width:100%}

/* Operational table wrappers own horizontal overflow. */
.table-wrap,
.table-responsive,
.responsive-table,
.dir-table-wrap,
.hod-reference-table-wrap,
.hod-case-table-wrap,
.hod-failed-table-wrap,
.hod-archive-table-wrap,
.teamlog-table-wrap,
.disb-table-wrap,
.pfa-table-wrap{
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
}

/* Header controls should wrap before forcing the workspace wider. */
.topbar,
.user-menu,
.toolbar,
.panel-head,
.pfa-head,
.hod-incoming-title,
.hod-batch-head,
.hod-archive-head{
  min-width:0;
  max-width:100%;
}
.user-menu{flex-wrap:wrap}

/* Stage navigation remains one coherent row where there is room and becomes
   a scrollable strip when the viewport cannot contain all stages. */
.pipeline-nav,
.csu-tab-row,
.pfa-tabs,
.merger-viewtabs{
  min-width:0;
  max-width:100%;
}
.pipeline-nav{overflow-x:auto;scrollbar-width:thin}
.pipeline-nav a{flex:0 0 auto;white-space:nowrap}

/* Dialogs must never exceed the viewport. */
dialog{max-width:calc(100vw - 24px)}
.pfa-modal{width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto}

/* Desktop: use the whole content canvas while preserving a comfortable
   reading gutter. */
@media (min-width:1201px){
  .main{width:calc(100% - 250px);max-width:none;padding-left:28px;padding-right:28px}
  .topbar{width:100%}
  .tool,.pfa-page,.content,.workspace,.page-container{width:100%;max-width:none}
}

/* Laptop: reduce gutters before controls start competing for width. */
@media (max-width:1200px) and (min-width:961px){
  .main{width:calc(100% - 220px);padding-left:18px;padding-right:18px}
  .sidebar{width:220px}
  .grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
}

/* Tablet and below: navigation and controls become fluid rather than fixed. */
@media (max-width:960px){
  .main{width:100%;max-width:100%;margin-left:0;padding-left:16px;padding-right:16px}
  .sidebar{width:100%;position:sticky;top:0}
  .topbar{flex-wrap:wrap;height:auto;min-height:58px;padding:10px 0}
  .topbar>div:first-child{flex:1 1 180px;min-width:0}
  .user-menu{flex:1 1 100%;justify-content:flex-start}
  .actions,.po-wf-actions,.editor-header-actions,.pdfsplit-actions{width:100%}
  .actions .btn,.po-wf-actions .btn,.editor-header-actions .btn,.pdfsplit-actions .btn{flex:0 1 auto}
  .table td:has(.btn){min-width:150px}
}

/* Phone portrait: stack complex action forms and make every button a stable
   touch target without forcing full-width buttons everywhere. */
@media (max-width:700px){
  .main{padding-left:11px;padding-right:11px}
  .hero,.panel,.card{width:100%}
  .toolbar,.actions,.po-wf-actions,.editor-header-actions,.pdfsplit-actions,.util-actions{
    align-items:stretch;
  }
  .actions .btn,
  .po-wf-actions .btn,
  .editor-header-actions .btn,
  .pdfsplit-actions .btn,
  .util-actions .btn{
    flex:1 1 auto;
  }
  .table td > form.actions{
    flex-direction:column;
    align-items:stretch;
  }
  .table td > form.actions select,
  .table td > form.actions .btn{width:100%;flex:0 0 auto}
  .table td .btn{white-space:nowrap}
  .table-wrap,.table-responsive,.responsive-table,.pfa-table-wrap,.disb-table-wrap{border-radius:10px}
  .pipeline-nav,.pfa-tabs,.merger-viewtabs{overflow-x:auto;flex-wrap:nowrap}
  .pipeline-nav a,.pfa-tabs a,.merger-viewtab-btn{flex:0 0 auto}
  .pfa-head,.hod-incoming-title,.hod-batch-head,.hod-archive-head{align-items:stretch}
}

/* Very small phones: controls remain legible and don't collide. */
@media (max-width:420px){
  .main{padding-left:8px;padding-right:8px}
  .btn{min-height:40px;padding:9px 11px;font-size:12px}
  .table td .btn{margin:2px 3px 2px 0}
  .user-menu{gap:5px}
}

/* Do not let a long label or operational identifier stretch a flex item. */
.btn,.toolbar>* ,.actions>* ,.po-wf-actions>* ,.user-menu>*{min-width:0}

/* Processing Officer's 10-minute claim countdown badge. */
.countdown-badge{background:#eef2ff;color:#3730a3;font-variant-numeric:tabular-nums}
.countdown-badge.countdown-expiring{background:#fef3c7;color:#92400e}
.countdown-badge.countdown-expired{background:#fee2e2;color:#991b1b}

/* --- SLA / inactivity clocks (case-listing "idle" badge) --- */
.sla-ok{background:#dcfce7;color:#166534}
.sla-warn{background:#fef3c7;color:#92400e}
.sla-breach{background:#fee2e2;color:#991b1b;font-weight:700}

/* --- Dark mode ---
   Re-declares the same --tm-* tokens the rest of the stylesheet already
   reads from, so the core layout (page background, sidebar, topbar, text,
   borders, cards/panels/tables that use those tokens) follows automatically.
   Components with hardcoded colors elsewhere in this file won't repaint --
   acceptable for a first pass; flagged in TECHOMES_SECURITY_HARDENING.md-
   style docs as an easy follow-up, not attempted blind here. */
:root[data-theme="dark"]{
  --tm-bg:#0f1420;
  --tm-text:#e7ecf5;
  --tm-text-2:#aab4c8;
  --tm-muted:#7c8aa0;
  --tm-border:#232b3d;
  --tm-border-strong:#2c3549;
  --tm-blue-soft:#16223f;
  --tm-blue-soft-2:#121a30;
  --tm-accent-soft:#332a14;
  --tm-shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.35);
}
:root[data-theme="dark"] body{background:var(--tm-bg);color:var(--tm-text)}
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .auth-card{background:#161d2e;border-color:var(--tm-border)}
:root[data-theme="dark"] .topbar{border-color:var(--tm-border)}
:root[data-theme="dark"] .sidebar nav a{color:var(--tm-text-2)}
:root[data-theme="dark"] .sidebar nav a:hover{background:#1c2740;color:#8ab4ff}
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select{background:#101828;color:var(--tm-text);border-color:var(--tm-border-strong)}
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .table td{border-color:var(--tm-border)}
:root[data-theme="dark"] .secondary{background:#1c2740;color:#dbe4f5}
:root[data-theme="dark"] .muted{color:var(--tm-muted)}

/* --- Theme toggle button in the topbar --- */
#themeToggleBtn{background:transparent;border:1px solid var(--tm-border-strong,#ccd5e1);color:inherit;width:36px;height:36px;border-radius:8px;display:inline-grid;place-items:center;cursor:pointer;font-size:15px}
#themeToggleBtn:hover{background:var(--tm-blue-soft,#eff6ff)}

/* --- Team Chat --- */
.chat-shell{display:flex;min-height:520px;max-height:72vh}
.chat-contacts{width:240px;border-right:1px solid var(--tm-border,#e6ebf2);overflow-y:auto;flex-shrink:0}
.chat-contacts-head{padding:12px 14px;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--tm-muted,#8a96a8)}
.chat-contact{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;padding:10px 14px;text-decoration:none;color:inherit;border-left:3px solid transparent}
.chat-contact:hover{background:var(--tm-blue-soft-2,#f5f8ff)}
.chat-contact.active{background:var(--tm-blue-soft,#eaf1ff);border-left-color:var(--tm-blue,#2456eb)}
.chat-contact-name{font-weight:600;flex:1 0 auto}
.chat-contact-role{font-size:11px;color:var(--tm-muted,#8a96a8);width:100%}
.chat-unread-pill{margin-left:auto}
.chat-thread{flex:1;display:flex;flex-direction:column;min-width:0}
.chat-thread-head{padding:12px 16px;border-bottom:1px solid var(--tm-border,#e6ebf2)}
.chat-empty{display:flex;align-items:center;justify-content:center;flex:1}
.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}
.chat-bubble-row{display:flex}
.chat-bubble-row.mine{justify-content:flex-end}
.chat-bubble{max-width:70%;padding:8px 12px;border-radius:14px;background:var(--tm-blue-soft-2,#f5f8ff);position:relative;word-break:break-word}
.chat-bubble-row.mine .chat-bubble{background:var(--tm-blue,#2456eb);color:#fff}
.chat-time{display:block;font-size:10px;opacity:.7;margin-top:4px;text-align:right}
.chat-composer{display:flex;gap:8px;padding:12px;border-top:1px solid var(--tm-border,#e6ebf2)}
.chat-composer textarea{flex:1;resize:none;min-height:40px;max-height:120px;border-radius:10px;padding:10px 12px;border:1px solid var(--tm-border-strong,#d8e0ea);font:inherit}
@media (max-width: 720px){ .chat-shell{flex-direction:column;max-height:none} .chat-contacts{width:100%;max-height:160px;border-right:0;border-bottom:1px solid var(--tm-border,#e6ebf2)} }
:root[data-theme="dark"] .chat-contacts{border-color:var(--tm-border)}
:root[data-theme="dark"] .chat-thread-head,:root[data-theme="dark"] .chat-composer{border-color:var(--tm-border)}
:root[data-theme="dark"] .chat-bubble{background:#1c2740}
:root[data-theme="dark"] .chat-composer textarea{background:#101828;color:var(--tm-text);border-color:var(--tm-border-strong)}

/* --- Chat message status ticks (sent / delivered / read) --- */
.chat-ticks{margin-left:4px;font-size:11px;letter-spacing:-2px;font-weight:700}
.chat-ticks.sent,.chat-ticks.delivered{color:rgba(255,255,255,.65)}
.chat-ticks.read{color:#67e8f9;letter-spacing:-1px}

/* ==========================================================================
   CROSS-PLATFORM COMPATIBILITY LAYER — 2026-10-04
   Appended last so it wins the cascade without editing earlier rules.
   Every rule here is scoped to phone/tablet widths, touch devices, or
   browsers that support the feature, so desktop rendering is unchanged.
   ========================================================================== */

/* Phones/small tablets: the top bar used negative side margins larger than
   the page padding, pushing the page title and Logout link off-screen. */
@media (max-width:800px){
  .topbar,
  body.page-intake .topbar,
  body.page-pfa .topbar{margin-left:0;margin-right:0;padding-left:0;padding-right:0;width:auto;max-width:100%}
  .topbar .user-menu{min-width:0}
}

/* Wide data tables: script.js wraps tables in .tm-table-scroll so extra
   columns can be swiped into view instead of being clipped by the page. */
.tm-table-scroll{max-width:100%}
@media (max-width:1024px){
  .tm-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .tm-table-scroll>table{margin-bottom:0}
}

/* iOS Safari zooms the page when a focused field's text is under 16px. */
@media (hover:none) and (pointer:coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
  select,
  textarea{font-size:16px!important}
}

/* Mobile browsers: 100vh includes the area behind the address bar, which
   hid the bottom of full-height modals. dvh is the visible height, and is
   identical to vh on desktop browsers. */
@supports (height:100dvh){
  .case-detail-modal-box{height:100dvh;max-height:100dvh}
  .pfa-modal{max-height:calc(100dvh - 24px)}
}

/* Safari before 18 only understands the prefixed property. */
.case-detail-modal{-webkit-backdrop-filter:blur(3px)}

/* Keep text at the chosen size when phones rotate to landscape. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Intake/PFA on phones: use the same top navigation bar as every other page
   instead of a 68px rail that wasted width and clipped its labels. */
@media (max-width:800px){
  body.page-intake .sidebar,
  body.page-pfa .sidebar{width:100%}
  body.page-intake .main,
  body.page-pfa .main{margin-left:0;width:100%}
}

/* Activity Logs member cards: let the metrics wrap under the name on
   narrow phones instead of running off the card. */
@media (max-width:480px){
  .member-card{flex-wrap:wrap;min-width:0}
  .member-card>*{min-width:0}
  .member-metrics{margin-left:auto}
}

/* Login on laptops and desktops: the card was a fixed 490x683px, taller than
   the browser area on laptops with 125-150% Windows display scaling, which
   pushed Sign In to the bottom edge and cut the card off. Scale the card to
   the available height; tall/large screens keep the original design. */
@media (min-width:801px) and (max-height:900px){
  body.auth{min-height:100vh;min-height:100dvh;padding:16px 0}
  .auth-card{width:min(430px,92vw);padding:30px 34px 22px}
  .auth-brand-mark{height:88px;margin-bottom:12px}
  .auth-logo{width:78px;height:88px}
  .auth-card h1{font-size:27px}
  .auth-subtitle{margin:10px 0 24px}
  .auth-field{margin-bottom:16px}
  .auth-input-wrap input{height:50px}
  .auth-submit{height:50px}
  .auth-access{margin:16px 0 18px}
  .auth-divider{margin-bottom:16px}
}
@media (min-width:801px) and (max-height:680px){
  body.auth{padding:10px 0}
  .auth-card{width:min(410px,92vw);padding:22px 30px 16px;border-top-width:4px}
  .auth-brand-mark{height:66px;margin-bottom:8px}
  .auth-logo{width:58px;height:66px}
  .auth-card h1{font-size:24px}
  .auth-subtitle{margin:6px 0 16px;font-size:13px}
  .auth-field{margin-bottom:11px}
  .auth-field label{margin-bottom:5px}
  .auth-input-wrap input{height:44px}
  .auth-submit{height:44px}
  .auth-access{margin:11px 0 12px;font-size:14px}
  .auth-divider{margin-bottom:11px}
}

/* ---- Laptops (801-1440px wide): HOD CSU toolbar ----
   Tabs and the Export/Upload actions shared one row, truncating the last
   tab; the batch button was squeezed until its label overflowed. */
@media (min-width:801px) and (max-width:1440px){
  .csu-tab-row{flex-wrap:wrap;row-gap:10px}
  .csu-tab-row .merger-viewtabs{flex:1 1 100%}
  .csu-tab-actions{margin-left:auto}
  .hod-incoming-title{gap:16px}
  .hod-incoming-title>div{min-width:0;flex:1 1 auto}
  .hod-incoming-title form{flex:0 0 auto}
}

/* ---- Short laptop screens (browser area 820px tall or less) ----
   Typical of 1366x768 laptops and of 1080p laptops at 125-150% Windows
   scaling. Tighten vertical spacing so work starts above the fold. Large
   desktop monitors are taller than this and are unaffected. */
@media (min-width:801px) and (max-height:820px){
  .sidebar nav{padding-top:8px;padding-bottom:12px}
  .sidebar nav a{min-height:34px;padding-top:6px;padding-bottom:6px;margin:1px 0}
  .sidebar nav .nav-label{padding-top:10px;padding-bottom:4px}
  .hero,.teamlog-hero{padding:18px 24px;margin-bottom:16px}
  .guide-hero{padding:20px 26px}
}
