@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#101b2d;--navy2:#17253b;--ink:#182538;--muted:#738096;--line:#e8edf2;--bg:#f5f7fa;--white:#fff;--blue:#3478f6;--teal:#18a999;--purple:#7d69dc;--amber:#d99435;--shadow:0 8px 28px rgba(24,40,64,.055)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:254px;background:var(--navy);color:#e8eef8;display:flex;flex-direction:column;padding:23px 15px 16px;z-index:30}.brand-lockup{display:flex;align-items:center;gap:11px;padding:0 7px 18px}.brand-mark{width:39px;height:39px;background:linear-gradient(140deg,#53d6c0,#3696d9);color:#09223a;border-radius:12px;display:grid;place-items:center;font-family:Manrope;font-weight:800;font-size:16px;letter-spacing:-2px}.brand-mark span{color:#fff}.brand-name{font:800 14px Manrope;letter-spacing:-.3px}.brand-caption{font-size:8px;letter-spacing:1.55px;color:#8697b1;margin-top:4px}.sidebar-close{display:none;margin-left:auto}.environment-pill{margin:0 7px 24px;background:#1d3049;color:#a5bacf;border:1px solid #29415f;border-radius:20px;padding:7px 10px;font-size:9px;font-weight:700;letter-spacing:1.05px;width:max-content}.pulse{display:inline-block;width:6px;height:6px;background:#42cfad;border-radius:50%;margin-right:7px;box-shadow:0 0 0 3px #42cfad20}.main-nav{overflow:auto;scrollbar-width:thin;scrollbar-color:#30435d transparent}.nav-label{color:#71839e;font-weight:700;font-size:9px;letter-spacing:1.25px;padding:0 11px 8px}.nav-spaced{margin-top:22px}.nav-item{border:0;background:transparent;color:#aab8ca;width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 11px;border-radius:9px;font-size:12px;margin:2px 0;transition:.18s}.nav-item:hover{background:#1b2c43;color:white}.nav-item.active{background:#263d5a;color:#fff;box-shadow:inset 3px 0 #4dd1bd}.nav-icon{width:17px;text-align:center;font-size:16px;color:#8ea4bf}.nav-item.active .nav-icon{color:#5bd6c2}.sidebar-bottom{margin-top:auto}.profile-chip{border-top:1px solid #26364c;padding:17px 5px 13px;display:flex;align-items:center;gap:9px}.avatar,.top-avatar{display:grid;place-items:center;border-radius:50%;font-size:10px;font-weight:700;background:#dce8ff;color:#335b9a;width:32px;height:32px}.profile-meta{display:grid;gap:3px;font-size:11px}.profile-meta span{font-size:10px;color:#8191a8}.profile-more{margin-left:auto;color:#8092aa}.sidebar-foot{font-size:9px;color:#8494aa;padding:0 5px;display:grid;gap:4px}.sidebar-foot span{font-size:8px;letter-spacing:1px;color:#596e89}.main-area{margin-left:254px;min-height:100vh}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:20}.breadcrumb{display:flex;gap:11px;align-items:center;color:#8793a4;font-size:12px}.breadcrumb i{font-style:normal;color:#c3cbd4}.breadcrumb b{color:#29384d;font-weight:700}.topbar-actions{display:flex;align-items:center;gap:18px}.global-search{height:36px;min-width:250px;border:1px solid #e7ebf0;background:#fbfcfd;display:flex;align-items:center;gap:9px;padding:0 10px;border-radius:8px;color:#8a96a7}.global-search input{border:0;outline:0;background:transparent;width:100%;font-size:11px;color:var(--ink)}.global-search kbd{font:9px 'DM Sans';white-space:nowrap;border:1px solid #e2e7ed;border-radius:4px;padding:2px 4px;color:#8b96a5}.icon-button{border:0;background:transparent;color:#6f7d90;font-size:19px;position:relative}.notification-dot{position:absolute;width:5px;height:5px;right:1px;top:1px;border-radius:50%;background:#ed9b53}.top-avatar{width:30px;height:30px}.mobile-menu{display:none}.content-wrap{padding:24px 34px 20px;max-width:1600px;margin:auto}.demo-alert{background:#fffaf0;border:1px solid #f1e1bf;border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:11px;margin-bottom:26px;color:#7c6030}.demo-alert .alert-icon{flex:0 0 20px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#f3e2bd;font-size:11px;font-weight:700}.demo-alert div{display:grid;gap:3px;flex:1}.demo-alert b{font-size:11px}.demo-alert span{font-size:10px;color:#967b4c}.demo-alert button{border:0;background:transparent;color:#a48a5a;font-size:17px}.page{display:none;animation:fade .2s ease}.page.active{display:block}@keyframes fade{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:25px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#8c98a9;margin-bottom:9px}.page-heading h1{font:800 26px Manrope;margin:0;letter-spacing:-1px;color:#17263a}.page-heading p{color:#8290a2;font-size:12px;margin:7px 0 0}.heading-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.date-chip,.subtle-tag{font-size:9px;letter-spacing:.65px;font-weight:700;color:#77869a;background:#edf1f5;border-radius:6px;padding:8px 10px}.button{border:1px solid transparent;padding:9px 13px;border-radius:7px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:.15s}.button:disabled{opacity:.45;cursor:not-allowed}.button-primary{background:#246fe7;color:#fff;box-shadow:0 4px 10px #246fe722}.button-primary:hover:not(:disabled){background:#185fcf}.button-secondary{background:#fff;border-color:#e3e8ef;color:#516176}.button-secondary:hover{border-color:#b8c7da}.button-outline{background:#fff;border-color:#dfe6ed;color:#5e6c7e}.text-button{border:0;background:transparent;color:#3478e8;font-weight:700;font-size:10px;padding:4px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,.9fr);gap:19px}.overview-main,.overview-side{min-width:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-head h2,.panel-card h2{font:700 14px Manrope;margin:0;color:#203047}.section-head p,.panel-card>p{margin:5px 0 0;color:#8995a5;font-size:10px}.section-head .subtle-tag{white-space:nowrap}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.metric-card,.panel-card{background:#fff;border:1px solid #edf0f4;border-radius:11px;box-shadow:var(--shadow)}.metric-card{padding:16px 16px 13px;min-height:125px}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#738196;font-size:10px;font-weight:600}.metric-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-size:15px}.purple{background:#f0edff;color:#7968d6}.amber{background:#fff4e4;color:#c58b37}.blue{background:#eaf2ff;color:#3974d4}.green{background:#e5f8f2;color:#26a286}.metric-card strong{display:block;font:800 25px Manrope;letter-spacing:-1px;margin:9px 0 4px;color:#25364c}.metric-card small{font-size:9px;color:#95a0ae}.metric-foot{margin-top:10px}.status-neutral{display:inline-flex;font-size:9px;color:#8793a3;background:#f1f3f6;border-radius:5px;padding:5px 7px}.panel-card{padding:18px;margin-top:17px}.activity-card{min-height:230px}.empty-state{min-height:155px;border:1px dashed #e5eaf0;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;color:#8794a6}.empty-state b{color:#53647a;font-size:11px;margin:7px 0 4px}.empty-state span{font-size:10px;max-width:340px;line-height:1.6}.empty-symbol{width:34px;height:34px;border-radius:10px;background:#f3f6fa;display:grid;place-items:center;font-size:18px;color:#99a6b7}.empty-state.small{min-height:125px}.quick-card{margin-top:0}.quick-list{display:grid}.quick-list button{display:flex;align-items:center;gap:10px;padding:11px 2px;background:transparent;border:0;border-bottom:1px solid #f0f2f5;text-align:left}.quick-list button:last-child{border:0}.quick-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;font-size:15px}.cyan{background:#e6f8f7;color:#20a69c}.violet{background:#f0edff;color:#7d69dc}.orange{background:#fff1e5;color:#d28c43}.quick-list b,.quick-list small{display:block}.quick-list b{font-size:10px;color:#34445a}.quick-list small{font-size:9px;color:#929eae;margin-top:3px}.quick-list button>span:nth-child(2){flex:1}.quick-list i{font-style:normal;color:#a1adbb}.system-card{margin-top:16px}.system-row{display:flex;justify-content:space-between;align-items:center;font-size:9px;padding:10px 0;border-bottom:1px solid #f0f2f5;color:#66758a}.system-row b{font-size:9px;font-weight:600;color:#a0aab7}.system-dot{width:6px;height:6px;border-radius:50%;display:inline-block;margin-right:6px}.system-dot.gray{background:#b5bec9}.full-width{width:100%;margin-top:13px}.main-footer{margin-top:35px;padding:16px 2px;border-top:1px solid #e8edf2;display:flex;justify-content:space-between;color:#9aa5b3;font-size:9px}.filter-note,.warning-note,.danger-note{padding:12px 14px;border-radius:8px;background:#f0f5ff;border:1px solid #dfeaff;color:#617693;font-size:10px;line-height:1.6;margin-bottom:17px}.warning-note{background:#fff8ed;border-color:#f4e5ca;color:#8d7045}.danger-note{background:#fff1f0;border-color:#f4d8d5;color:#9e625d}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.two-col>.panel-card{margin-top:0}.gap-top{margin-top:17px!important}.muted-copy{font-size:10px;color:#8995a5;line-height:1.6;margin:8px 0 15px}.input-control,.select-control{height:36px;border:1px solid #e0e6ed;border-radius:7px;background:#fff;color:#516176;padding:0 10px;font-size:10px;outline:none}.input-control:focus,.select-control:focus,.textarea-control:focus{border-color:#7ba8ee;box-shadow:0 0 0 3px #3478f615}.select-control{min-width:120px}.process-steps{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.step{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #e6eaf0;border-radius:7px;color:#8995a5;font-size:10px;background:#fff}.step i{font-style:normal;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#edf1f5;font-size:9px}.step.active{color:#376fca;border-color:#ccdcf7;background:#f7faff}.step.active i{background:#dceaff;color:#2864bf}.textarea-control{width:100%;min-height:155px;border:1px solid #e1e7ee;border-radius:8px;padding:12px;font:11px 'DM Sans';resize:vertical;outline:none}.form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.helper-text{font-size:9px;color:#8c98a8}.form-row{display:flex;gap:14px;margin-top:14px}.form-row label{display:grid;gap:6px;font-size:10px;color:#6e7d90;flex:1}.form-row .input-control,.form-row .select-control{width:100%}.preview-area{margin-top:15px;padding:14px;border:1px solid #d9eadf;background:#f5fbf7;border-radius:8px;color:#547360;font-size:10px;line-height:1.7}.preview-area.hidden{display:none}.preview-area strong{color:#2f7654}.search-panel label{display:block;font-size:10px;font-weight:700;color:#5d6d82;margin-bottom:8px}.search-row{display:flex;gap:9px}.input-control.large{height:42px;flex:1;font-size:12px}.helper-text{margin-top:8px}.upload-zone{border:1px dashed #cfd9e5;border-radius:10px;min-height:195px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;background:#fbfcfe}.upload-symbol{width:40px;height:40px;border-radius:11px;background:#eaf2ff;color:#3778e4;display:grid;place-items:center;font-size:22px;margin-bottom:10px}.upload-zone b{font-size:11px;color:#43546a}.upload-zone>span{font-size:9px;color:#8d99a8;margin:5px 0 12px;max-width:360px;line-height:1.5}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.integration-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e9edf2;border-radius:10px;padding:15px;min-width:0}.integration-logo{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:grid;place-items:center;font-size:19px}.integration-logo.sheets{background:#e8f6ed;color:#198754}.integration-logo.cloud{background:#eef3ff;color:#3974d4}.integration-logo.vps{background:#f2edff;color:#7b68d8}.integration-logo.wa{background:#e4f7ef;color:#239b70}.integration-content{flex:1;min-width:0}.integration-actions{display:flex;flex-direction:column;gap:6px;flex:0 0 auto}.integration-actions .button{font-size:9px;padding:7px 9px;white-space:nowrap}.integration-content h3{font:700 11px Manrope;margin:0 0 5px}.integration-content p{font-size:9px;color:#8995a5;line-height:1.45;margin:0 0 7px}.integration-card>.button{font-size:9px;padding:7px 9px}.source-list{margin-top:13px}.source-list div{padding:11px 0;border-top:1px solid #eff2f5;display:grid;gap:4px}.source-list b{font-size:10px;color:#53647a}.source-list span{font-size:9px;line-height:1.6;color:#8995a5}.role-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #eff2f5}.role-row div{display:grid;gap:4px}.role-row b{font-size:10px}.role-row span{font-size:9px;color:#8c98a7;line-height:1.5}.role-badge{border-radius:5px;padding:5px 7px!important;font-size:8px!important;font-weight:700;white-space:nowrap}.purple-badge{background:#f0edff;color:#7967d2!important}.blue-badge{background:#edf4ff;color:#3974d4!important}.green-badge{background:#e8f7f1;color:#218b6b!important}.gray-badge{background:#f0f2f5;color:#788597!important}.small-status{font:700 13px Manrope!important;letter-spacing:-.4px!important}.notification-button{font-size:17px}.hidden{display:none!important}.toast{position:fixed;bottom:22px;right:24px;background:#1b2a3f;color:#fff;padding:11px 15px;border-radius:8px;font-size:11px;box-shadow:0 8px 26px #11233b30;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:80}.toast.show{opacity:1;transform:none}
@media(max-width:1150px){.content-wrap{padding:22px}.topbar{padding:0 22px}.overview-grid{grid-template-columns:1fr}.overview-side{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quick-card,.system-card{margin-top:0}.metric-grid.compact{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:14px 0 40px #0b172733}.sidebar.open{transform:translateX(0)}.sidebar-close,.mobile-menu{display:inline-flex}.main-area{margin-left:0}.topbar{height:60px;padding:0 15px}.breadcrumb{font-size:10px}.topbar-actions{gap:10px}.global-search{min-width:0;width:36px;border:0;background:transparent;padding:0}.global-search input,.global-search kbd{display:none}.global-search span{font-size:20px}.content-wrap{padding:17px 14px}.demo-alert{align-items:flex-start;padding:10px}.demo-alert span{line-height:1.5}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:19px}.page-heading h1{font-size:23px}.heading-tools{width:100%}.heading-tools>*{flex:1}.metric-grid{gap:9px}.metric-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:13px;min-height:116px}.metric-card strong{font-size:23px}.overview-side{grid-template-columns:1fr}.two-col,.integration-grid{grid-template-columns:1fr}.two-col>.panel-card{margin-top:0}.form-row{flex-direction:column}.search-row{flex-direction:column}.main-footer{gap:8px;flex-direction:column}.section-head{align-items:flex-start}.section-head .subtle-tag{font-size:8px}.subtle-tag{white-space:normal}.notification-button{display:none}}

/* Authentication shell — v0.2.0 */
.app-shell.auth-hidden{display:none!important}
.auth-gate{position:fixed;inset:0;z-index:200;background:#f3f6fa;display:grid;place-items:center;padding:24px;overflow:auto;isolation:isolate}
.auth-gate.hidden{display:none!important}
.auth-orb{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none;z-index:-1}
.auth-orb-one{width:440px;height:440px;right:-130px;top:-180px;background:radial-gradient(circle,#d8e9ff 0%,#d8e9ff00 72%)}
.auth-orb-two{width:520px;height:520px;left:-220px;bottom:-260px;background:radial-gradient(circle,#d8f4ed 0%,#d8f4ed00 72%)}
.auth-panel{width:min(100%,440px);background:#fff;border:1px solid #e8edf3;border-radius:18px;padding:32px 34px 22px;box-shadow:0 24px 80px rgba(22,43,73,.11)}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:25px}
.auth-brand-name{font:800 15px Manrope;color:#15263c;letter-spacing:-.35px}
.auth-brand-caption{font-size:8px;letter-spacing:1.65px;color:#94a0ae;margin-top:4px;font-weight:700}
.auth-divider{height:1px;background:#edf1f5;margin-bottom:25px}
.auth-eyebrow{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#3478f6;margin-bottom:9px}
.auth-panel h1{font:800 25px Manrope;letter-spacing:-.9px;color:#17263a;margin:0}
.auth-panel>p{font-size:11px;line-height:1.7;color:#8290a2;margin:8px 0 20px}
.auth-form{display:grid;gap:13px;margin-top:18px}
.auth-form.hidden{display:none}
.auth-form label{display:grid;gap:7px;font-size:10px;font-weight:700;color:#53647a}
.auth-form input{height:42px;border:1px solid #dfe6ee;border-radius:8px;padding:0 12px;outline:0;color:#26384f;background:#fbfcfe;font-size:11px;transition:.15s}
.auth-form input:focus{border-color:#7ca9ed;box-shadow:0 0 0 3px #3478f616;background:white}
.auth-submit{height:43px;border:0;border-radius:8px;background:#246fe7;color:white;font-size:11px;font-weight:800;box-shadow:0 6px 14px #246fe722;margin-top:4px}
.auth-submit:hover{background:#185fcf}
.auth-submit:disabled{opacity:.55;cursor:wait}
.auth-notice,.auth-error{padding:10px 12px;border-radius:8px;font-size:10px;line-height:1.6;margin-top:14px}
.auth-notice{background:#eef7ff;border:1px solid #dcecff;color:#456888}
.auth-error{background:#fff1f0;border:1px solid #f3d9d6;color:#a04d49}
.auth-offline{display:grid;gap:7px;background:#fff8ed;border:1px solid #f3e3c7;border-radius:9px;padding:13px;margin-top:17px;color:#8a7047;font-size:10px;line-height:1.7}
.auth-offline span{color:#9b8259}
.auth-offline code{background:#f4ead7;padding:1px 4px;border-radius:4px;color:#7c6136}
.auth-footnote{font-size:9px!important;line-height:1.6!important;color:#8b98a7!important;margin:0!important}
.auth-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eef1f5;margin-top:24px;padding-top:15px;color:#9aa5b3;font-size:8px;font-weight:700;letter-spacing:.45px}
.auth-bottom span:first-child{display:flex;align-items:center;gap:7px}
.auth-bottom i{width:6px;height:6px;border-radius:50%;background:#28b58b;box-shadow:0 0 0 3px #28b58b1c}
.profile-logout{margin-left:auto;border:1px solid #34455c;background:#1c2d44;color:#9aacc2;width:28px;height:28px;border-radius:7px;font-size:15px}
.profile-logout:hover{background:#2a405d;color:white}
@media(max-width:520px){.auth-gate{padding:14px}.auth-panel{padding:25px 21px 18px;border-radius:14px}.auth-panel h1{font-size:22px}}
.audit-list{display:grid;gap:0}.audit-row{display:flex;gap:11px;padding:12px 1px;border-bottom:1px solid #eef1f5;min-width:0}.audit-row:last-child{border-bottom:0}.audit-symbol{width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:#f0f5fb;color:#6e88a8;display:grid;place-items:center}.audit-main{display:grid;gap:4px;min-width:0}.audit-main b{font-size:10px;color:#3e5066}.audit-main span,.audit-main small{font-size:9px;color:#8b98a8;line-height:1.45;overflow-wrap:anywhere}.audit-main small{color:#748297}

/* COD import + scan history */
.cod-progress-wrap{display:grid;gap:7px;margin-top:16px}.cod-progress-wrap>span{font-size:10px;color:#728197}.cod-progress-track{height:8px;background:#edf1f6;border-radius:99px;overflow:hidden}.cod-progress-bar{height:100%;width:0;background:#3478f6;border-radius:99px;transition:width .16s ease}.cod-action-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}.cod-preview-head,.history-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;color:#34465e;font-size:11px}.cod-preview-head span,.history-summary span{color:#7d8ba0;font-size:10px}.cod-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.cod-stats>div{background:#f6f8fb;border:1px solid #e9eef4;border-radius:9px;padding:11px;display:grid;gap:4px}.cod-stats b{font-size:17px;color:#253a55}.cod-stats span{font-size:9px;color:#8290a2}.table-scroll{width:100%;overflow-x:auto}.cod-preview-table,.history-table{width:100%;border-collapse:collapse;font-size:10px;min-width:560px}.cod-preview-table th,.cod-preview-table td,.history-table th,.history-table td{padding:10px 9px;border-bottom:1px solid #edf1f5;text-align:left;white-space:nowrap}.cod-preview-table th,.history-table th{font-size:9px;color:#78879a;background:#f8fafc;font-weight:800}.cod-preview-table td,.history-table td{color:#44566d}.scan-result-pill{display:inline-flex;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:800;background:#f0f3f7;color:#637287}.scan-result-pill.cod{background:#e8f7ef;color:#218354}.scan-result-pill.noncod{background:#edf3ff;color:#456fb5}.history-more{display:flex;justify-content:center;margin-top:14px}.cod-action-row button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:600px){.cod-action-row{align-items:stretch}.cod-action-row button{width:100%}.cod-stats{gap:6px}.cod-stats>div{padding:8px}.cod-stats b{font-size:14px}}

/* Manual D1 scan-log pull in Resi History */
.resi-pull-panel{margin-top:18px}
.resi-pull-filters{align-items:end;gap:12px}
.resi-pull-filters label{min-width:220px}
.resi-pull-filters input{width:100%;height:38px}
.resi-pull-commit-row{border-top:1px solid #edf1f5;padding-top:13px;margin-top:14px}
.resi-pull-commit-row .helper-text{max-width:560px;line-height:1.5}
.resi-pull-result{margin-top:15px;padding:14px;border:1px solid #e3eaf2;background:#fbfcfe;border-radius:9px;color:#52647a;font-size:10px;line-height:1.6}
.resi-pull-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;color:#34465e;font-size:11px}
.resi-pull-title span{color:#7d8ba0;font-size:9px}
.resi-pull-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.resi-pull-stats>div{background:#fff}
.resi-pull-warning{margin:12px 0}
.resi-pull-warning ul{margin:6px 0 0;padding-left:18px}
.resi-pull-group-head{margin-top:16px}
.resi-pull-group-head h3{font:700 11px Manrope;margin:0;color:#34465e}
.resi-pull-group-head p{margin:4px 0 0;color:#8995a5;font-size:9px}
.resi-pull-group-table{min-width:760px}
.resi-pull-subline{display:block;color:#8a97a7;font-size:9px;margin-top:3px}
.resi-pull-sample{margin-top:16px}
.resi-pull-sample> b{display:block;font-size:10px;color:#596b80;margin-bottom:8px}
.resi-pull-table-wrap{margin-top:8px}
.resi-pull-commit-result> b{display:block;color:#257b58;font-size:11px;margin-bottom:10px}
.resi-pull-panel .helper-text{line-height:1.5}
@media(max-width:760px){
  .resi-pull-filters{flex-direction:column;align-items:stretch}
  .resi-pull-filters label{min-width:0;width:100%}
  .resi-pull-commit-row{align-items:stretch}
  .resi-pull-commit-row .button{width:100%}
}
@media(max-width:600px){.resi-pull-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.resi-pull-title{align-items:flex-start;flex-direction:column}}

/* Backlog & Stuck */
.backlog-toolbar{flex-wrap:wrap;justify-content:flex-end}
.backlog-toolbar .input-control{min-width:145px}
.backlog-toolbar input[type="search"]{min-width:190px}
.backlog-table{width:100%;border-collapse:collapse;font-size:10px;min-width:760px}
.backlog-table th,.backlog-table td{padding:10px 9px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:top}
.backlog-table th{font-size:9px;color:#78879a;background:#f8fafc;font-weight:800;white-space:nowrap}
.backlog-table td{color:#44566d}
.backlog-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:700;white-space:nowrap}
.backlog-kind{display:inline-flex;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:800;background:#eef3ff;color:#456fb5;white-space:nowrap}
.backlog-kind.stuck{background:#fff0ed;color:#a44535}
.backlog-kind.on_hold{background:#fff5e5;color:#946000}
.backlog-kind.inbound{background:#eaf7ef;color:#218354}
.backlog-priority{display:inline-flex;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:900;white-space:nowrap}
.backlog-priority.critical{background:#ffe8e6;color:#a12a22}
.backlog-priority.high{background:#fff0df;color:#9a5610}
.backlog-priority.medium{background:#fff7d8;color:#856404}
.backlog-priority.normal{background:#eef3ff;color:#456fb5}
.backlog-source-note{font-size:10px;color:#8290a2;margin-top:8px}
.backlog-followup-metrics{margin:10px 0 14px}
.backlog-followup-table{width:100%;border-collapse:collapse;min-width:760px;font-size:10px}
.backlog-followup-table th,.backlog-followup-table td{padding:9px 10px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:top}
.backlog-followup-table th{background:#f8fafc;color:#78879a;font-size:9px;white-space:nowrap}
.backlog-followup-table td{color:#44566d}
.backlog-followup-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;white-space:nowrap}
.backlog-followup-status{display:inline-flex;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:800;white-space:nowrap}
.backlog-followup-status.open{background:#fff5e5;color:#946000}
.backlog-followup-status.in-progress{background:#eef3ff;color:#456fb5}
.backlog-followup-status.resolved{background:#eaf7ef;color:#218354}
.backlog-followup-action{border:1px solid #cad4e0;border-radius:6px;background:#fff;padding:6px 9px;color:#334b68;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}
.backlog-followup-dialog{width:min(640px,calc(100vw - 28px));max-height:calc(100vh - 32px);overflow:auto;border:1px solid #dce5ef;border-radius:13px;padding:0;box-shadow:0 24px 80px rgba(15,23,42,.25)}
.backlog-followup-dialog::backdrop{background:rgba(15,23,42,.48)}
.backlog-followup-form{display:grid;gap:9px;padding:20px}
.backlog-followup-form label{font-size:11px;font-weight:800;color:#516176}
.backlog-followup-form input,.backlog-followup-form select,.backlog-followup-form textarea{width:100%;min-width:0}
.backlog-followup-form textarea{min-height:92px;resize:vertical;padding:10px 12px;border:1px solid #dfe6ee;border-radius:8px;background:#fff;color:#334155;font:inherit;font-size:11px}
.backlog-followup-form .section-head{align-items:flex-start}
.backlog-followup-form .section-head h2{margin:0}
.backlog-followup-history-head{margin-top:8px;padding-top:12px;border-top:1px solid #edf1f5}
.backlog-followup-history-head h3{margin:0;font-size:12px;color:#34465c}
.backlog-followup-history{display:grid;gap:8px;max-height:230px;overflow:auto}
.backlog-followup-event{padding:10px;border:1px solid #e8edf3;border-radius:8px;background:#fbfcfe}
.backlog-followup-event-head{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.backlog-followup-event small{color:#8492a5;font-size:9px}
.backlog-followup-event p{margin:7px 0 0;color:#526176;font-size:10px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.backlog-followup-feedback{min-height:18px;font-size:10px;color:#176b49}
.backlog-followup-feedback.error{color:#b42318}
@media(max-width:760px){.backlog-followup-form{padding:14px}.backlog-followup-dialog{width:calc(100vw - 18px)}}
@media(max-width:760px){.backlog-toolbar{width:100%;justify-content:flex-start}.backlog-toolbar>*{flex:1;min-width:0}.backlog-toolbar input[type="search"]{min-width:100%}}

/* Master Link & Modul — read-only data view */
.master-data-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}.master-data-toolbar input{max-width:360px;min-width:220px}.master-data-toolbar .muted-copy{margin:0;font-size:10px}.master-data-grid{align-items:start}.master-table-wrap{width:100%;overflow:auto;max-height:560px;border:1px solid #edf1f5;border-radius:10px}.master-data-table{width:100%;border-collapse:collapse;font-size:10px;min-width:420px}.master-data-table th,.master-data-table td{padding:9px 10px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:top;max-width:320px;overflow-wrap:anywhere}.master-data-table th{position:sticky;top:0;background:#f8fafc;color:#78879a;font-size:9px;white-space:nowrap;z-index:1}.master-data-table td{color:#44566d}.master-data-table a{color:#3575ba;text-decoration:underline;overflow-wrap:anywhere}.master-empty-cell{color:#b2bdc9}.master-table-foot{margin-top:8px;color:#8995a5;font-size:9px}.master-data-note{margin:12px 2px;color:#8290a2;font-size:10px;line-height:1.5}
@media(max-width:760px){.master-data-toolbar{align-items:stretch;flex-direction:column}.master-data-toolbar input{max-width:none;width:100%}.master-data-grid{grid-template-columns:1fr}}

/* Admin profile email change */
.admin-profile-card{margin-bottom:16px}.admin-current-email{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 14px;background:#f7f9fc;border:1px solid #e9eef5;border-radius:10px;margin:12px 0}.admin-current-email span{font-size:10px;color:#8492a5}.admin-current-email b{font-size:12px;color:#34465c;overflow-wrap:anywhere}.admin-email-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px 12px;align-items:end}.admin-email-form label{font-size:10px;color:#66768a;font-weight:600}.admin-email-form input{width:100%;min-width:0;padding:10px 12px;border:1px solid #dfe6ee;border-radius:8px;background:#fff;color:#334155;font:inherit;font-size:11px}.admin-email-form button{white-space:nowrap}.admin-email-form p{grid-column:1/-1;margin:2px 0 0;line-height:1.5}.admin-email-form .is-error{color:#b54747}.admin-email-form .is-success{color:#23845b}@media(max-width:760px){.admin-email-form{grid-template-columns:1fr}.admin-email-form p{grid-column:auto}}


/* ShiftLead account access management */
.admin-users-manager{margin-bottom:16px}
.admin-user-workspace{align-items:start}
.admin-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-create-grid label,.admin-status-label{display:grid;gap:6px;font-size:10px;color:#66768a;font-weight:600}
.admin-create-grid input,.admin-status-label select{width:100%;min-width:0;padding:10px 12px;border:1px solid #dfe6ee;border-radius:8px;background:#fff;color:#334155;font:inherit;font-size:11px}
.admin-permission-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px}
.admin-permission-heading>div{display:grid;gap:4px}
.admin-permission-heading b{font-size:11px;color:#34465c}
.admin-permission-heading span{font-size:9px;color:#8995a5}
.button-small{padding:7px 10px;font-size:9px}
.admin-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.admin-permission-group{grid-column:1/-1;margin-top:8px;padding-bottom:5px;border-bottom:1px solid #edf1f5;color:#6c7d92;font-size:9px;font-weight:800;letter-spacing:.45px;text-transform:uppercase}
.admin-permission-item{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #e9eef4;border-radius:8px;background:#fbfcfe;min-width:0}
.admin-permission-item input{margin:2px 0 0;accent-color:#3478f6;flex:0 0 auto}
.admin-permission-item span{display:grid;gap:3px;min-width:0}
.admin-permission-item b{font-size:9px;color:#42556d}
.admin-permission-item small{font-size:8px;color:#8995a5;line-height:1.35}
.admin-user-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:15px}
.admin-user-actions .muted-copy{margin:0}
.admin-users-feedback{margin:0 0 14px}
.admin-temp-password{margin-top:14px;padding:13px;border:1px solid #dfe8f2;border-radius:9px;background:#f7f9fc;color:#52647a;font-size:10px;line-height:1.6}
.admin-temp-password b{display:block;margin-bottom:6px;color:#34465c}
.admin-temp-password code{display:block;overflow-wrap:anywhere;padding:10px;border:1px dashed #cad5e3;border-radius:7px;background:#fff;color:#1d3c63;font-size:12px;font-weight:800;letter-spacing:.4px}
.admin-temp-password button{margin-top:8px}
.admin-user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f5}
.admin-user-row:last-child{border-bottom:0}
.admin-user-info{display:grid;gap:4px;min-width:0}
.admin-user-info b{font-size:10px;color:#34465c;overflow-wrap:anywhere}
.admin-user-info span,.admin-user-info small{font-size:9px;color:#8391a3;overflow-wrap:anywhere}
.admin-user-controls{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.admin-user-status{display:inline-flex;padding:4px 7px;border-radius:99px;background:#eaf7ef;color:#218354;font-size:8px;font-weight:800}
.admin-user-status.disabled{background:#fff0ed;color:#a44535}
.admin-user-editor form{display:grid;gap:10px}
.admin-user-editor .admin-permission-grid{margin-top:2px}
@media(max-width:760px){.admin-create-grid,.admin-permission-grid{grid-template-columns:1fr}.admin-user-workspace{grid-template-columns:1fr}.admin-user-row{align-items:flex-start;flex-direction:column}.admin-user-controls{width:100%;justify-content:flex-start}.admin-permission-heading{align-items:flex-start;flex-direction:column}}

/* ShiftLead Workbench foundation */
.workbench-welcome{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:0;margin-bottom:22px;padding:22px 24px;background:linear-gradient(115deg,#fff 0%,#f5f9ff 100%)}
.workbench-welcome-main{min-width:0}
.workbench-kicker{display:inline-block;color:#3974c8;font-size:9px;font-weight:800;letter-spacing:1.25px}
.workbench-welcome h2{margin:8px 0 5px;color:#203047;font:800 19px Manrope;letter-spacing:-.55px}
.workbench-welcome p{max-width:720px;margin:0;color:#7e8da1;font-size:11px;line-height:1.65}
.workbench-role{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:8px 11px;border:1px solid #dce8f5;border-radius:7px;background:#fff;color:#60738b;font-size:9px;font-weight:800;letter-spacing:.65px}
.workbench-role i{width:7px;height:7px;border-radius:50%;background:#2ca77e;box-shadow:0 0 0 3px #2ca77e1b}
.workbench-section-head{margin-bottom:12px}
.workbench-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.workbench-area-card{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:start;gap:13px;width:100%;min-height:132px;padding:18px 17px;border:1px solid #e8edf3;border-radius:11px;background:#fff;box-shadow:var(--shadow);text-align:left;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.workbench-area-card:hover{border-color:#c7d8ec;transform:translateY(-2px);box-shadow:0 12px 30px rgba(24,40,64,.09)}
.workbench-area-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;font-size:20px;font-weight:700}
.workbench-icon-green{background:#e7f7f1;color:#23956f}
.workbench-icon-blue{background:#eaf2ff;color:#3974d4}
.workbench-icon-amber{background:#fff4e4;color:#bd8128}
.workbench-icon-purple{background:#f0edff;color:#7968d6}
.workbench-area-copy{display:grid;gap:6px;min-width:0}
.workbench-area-copy strong{color:#2b3c53;font:800 13px Manrope}
.workbench-area-copy small{color:#7d8ba0;font-size:10px;line-height:1.55}
.workbench-area-copy em{color:#9aa6b5;font-size:9px;font-style:normal;font-weight:700}
.workbench-area-arrow{align-self:start;justify-self:end;color:#9aa9ba;font-size:15px}
.workbench-info-grid{margin-top:3px;align-items:stretch}
.workbench-info-list{display:grid}
.workbench-info-list>div{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid #eff2f5}
.workbench-info-list>div:last-child{border-bottom:0;padding-bottom:0}
.workbench-info-list b{color:#52647b;font-size:10px}
.workbench-info-list span{color:#8996a7;font-size:9px;line-height:1.55}
@media(max-width:760px){.workbench-welcome{align-items:flex-start;flex-direction:column;padding:18px}.workbench-welcome h2{font-size:17px}.workbench-area-grid{grid-template-columns:1fr}.workbench-area-card{min-height:112px;padding:15px}.workbench-info-grid{grid-template-columns:1fr}}

/* Report Center resource catalog */
.master-data-toolbar .select-control{min-width:150px}
.master-data-toolbar .muted-copy{flex:1 1 100%;margin-top:0}
.master-resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.master-resource-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:14px;border:1px solid #e9eef4;border-radius:10px;background:#fff}
.master-resource-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.master-resource-category{display:inline-flex;max-width:75%;padding:4px 7px;border-radius:6px;background:#edf4ff;color:#426fae;font-size:8px;font-weight:800;overflow-wrap:anywhere}
.master-resource-category.neutral{background:#f1f3f6;color:#788597}
.master-resource-row{flex:0 0 auto;color:#a0aab7;font-size:8px}
.master-resource-card h3{margin:10px 0 5px;color:#34465c;font:800 12px Manrope;line-height:1.45;overflow-wrap:anywhere}
.master-resource-description{margin:0;color:#7e8da1;font-size:10px;line-height:1.55;overflow-wrap:anywhere}
.master-resource-details{display:grid;gap:6px;margin-top:10px;padding-top:9px;border-top:1px solid #eff2f5}
.master-resource-details>div{display:grid;grid-template-columns:minmax(70px,.65fr) minmax(0,1.35fr);gap:8px}
.master-resource-details span{color:#a0aab7;font-size:8px}
.master-resource-details b{color:#65758a;font-size:9px;font-weight:600;overflow-wrap:anywhere}
.master-resource-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto;padding-top:12px}
.master-resource-links a{display:inline-flex;align-items:center;max-width:100%;padding:7px 9px;border:1px solid #dfe8f3;border-radius:7px;background:#f8fbff;color:#3475bf;font-size:9px;font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.master-resource-links a:hover{border-color:#b9cee8;background:#f1f7ff}
.master-resource-no-link{margin-top:auto;padding-top:12px;color:#a0aab7;font-size:9px}
@media(max-width:980px){.master-resource-grid{grid-template-columns:1fr}}
@media(max-width:760px){.master-data-toolbar .select-control{width:100%}.master-resource-grid{grid-template-columns:1fr}}


.backlog-import-card{display:grid;gap:12px}
.backlog-import-card .section-head{align-items:flex-start}
.backlog-import-controls{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(160px,.7fr) auto;gap:9px;align-items:end}
.backlog-import-controls label,.backlog-import-map-grid label{display:grid;gap:6px;font-size:10px;font-weight:800;color:#526276}
.backlog-import-controls input[type="file"]{min-width:0;width:100%;font-size:10px}
.backlog-import-controls .button{white-space:nowrap}
.backlog-import-mapping{border-top:1px solid #e8edf3;padding-top:12px;display:grid;gap:10px}
.backlog-import-mapping[hidden],.backlog-import-card [hidden]{display:none!important}
.backlog-import-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.backlog-import-map-grid select{width:100%;min-width:0}
.backlog-import-preview-summary{display:grid;gap:7px;font-size:10px;color:#526276}
.backlog-import-summary-line{font-weight:800;color:#34465c}
.backlog-import-sample{width:100%;border-collapse:collapse;font-size:10px}
.backlog-import-sample th,.backlog-import-sample td{padding:7px 9px;border-bottom:1px solid #edf1f5;text-align:left}
.backlog-import-sample th{background:#f8fafc;color:#78879a;font-size:9px}
.backlog-import-sample .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800}
#backlogImportFeedback.error{color:#b42318}
@media(max-width:760px){.backlog-import-controls{grid-template-columns:1fr}.backlog-import-map-grid{grid-template-columns:1fr}}


.backlog-pic-workload-panel{display:grid;gap:12px}
.backlog-pic-workload{min-width:0}
.backlog-pic-work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.backlog-pic-work-card{min-width:0;border:1px solid #e5ebf2;border-radius:10px;padding:12px;background:#fff}
.backlog-pic-work-card.unassigned{border-style:dashed;background:#fbfcfe}
.backlog-pic-work-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:#33465d;font-size:11px}
.backlog-pic-work-head strong{font-size:17px;color:#1e3047;white-space:nowrap}
.backlog-pic-work-head strong small{font-size:9px;font-weight:600;color:#7b8797}
.backlog-pic-work-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}
.backlog-pic-work-stats span{display:grid;gap:3px;padding:7px 5px;border-radius:7px;background:#f7f9fc;text-align:center}
.backlog-pic-work-stats b{font-size:14px;color:#33465d}
.backlog-pic-work-stats small{font-size:8px;color:#7b8797;white-space:nowrap}
.backlog-pic-work-stats .critical b{color:#b54738}
.backlog-pic-progress{height:5px;margin-top:11px;overflow:hidden;border-radius:99px;background:#edf1f5}
.backlog-pic-progress span{display:block;height:100%;border-radius:99px;background:#27976c}
.backlog-bulk-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:12px 0;padding:11px;border:1px solid #dfe7f0;border-radius:9px;background:#f8fafc}
.backlog-bulk-toolbar[hidden]{display:none!important}
.backlog-bulk-toolbar>div{display:grid;gap:3px;flex:1 1 200px}
.backlog-bulk-toolbar>div b{font-size:11px;color:#33465d}
.backlog-bulk-toolbar>div span{font-size:9px;color:#7b8797}
.backlog-bulk-toolbar label{display:grid;gap:5px;min-width:190px;font-size:9px;font-weight:800;color:#526276}
.backlog-bulk-toolbar input{width:100%;min-width:0}
.backlog-bulk-toolbar button{white-space:nowrap}
.backlog-table th:first-child,.backlog-table td:first-child{width:34px;text-align:center;padding-left:7px;padding-right:7px}
.backlog-table input[type="checkbox"]{width:14px;height:14px;accent-color:#315f99;cursor:pointer}
@media(max-width:760px){.backlog-pic-work-grid{grid-template-columns:1fr}.backlog-pic-work-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.backlog-bulk-toolbar{align-items:stretch}.backlog-bulk-toolbar label{min-width:100%}}


.backlog-sla-summary{margin:10px 0 14px}
.backlog-sla{display:inline-flex;align-items:center;max-width:100%;margin-top:4px;padding:4px 7px;border-radius:99px;font-size:9px;font-weight:800;line-height:1.25;white-space:nowrap}
.backlog-sla.on-track{background:#eaf7ef;color:#218354}
.backlog-sla.due-today{background:#fff5df;color:#996309}
.backlog-sla.overdue-l1{background:#fff0df;color:#9a5610}
.backlog-sla.overdue-l2{background:#ffe8d7;color:#a64e19}
.backlog-sla.overdue-l3{background:#ffe8e6;color:#a12a22}
.backlog-sla.no-target{background:#eef2f7;color:#637286}
.backlog-sla.resolved{background:#eaf7ef;color:#218354}
.backlog-followup-table{min-width:900px}
.backlog-table{min-width:940px}
.backlog-pic-work-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.backlog-pic-work-stats .sla-risk b{color:#b54738}
.backlog-import-card~.backlog-sla-summary .metric-card:nth-child(2) strong{color:#b54738}
@media(max-width:760px){.backlog-pic-work-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Coordination Desk — WhatsApp SLA escalation preview */
.backlog-escalation-panel {
  display: grid;
  gap: 14px;
}
.backlog-escalation-actions,
.backlog-escalation-test {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.backlog-escalation-test label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 320px);
  flex: 1 1 320px;
  color: var(--muted, #7c8798);
  font-size: 12px;
}
.backlog-escalation-status {
  border: 1px solid var(--border, rgba(148,163,184,.22));
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--text, inherit);
  background: var(--surface-soft, rgba(148,163,184,.06));
  font-size: 13px;
}
.backlog-escalation-status.error {
  border-color: rgba(220, 70, 70, .45);
  color: var(--danger, #b42318);
}
.backlog-escalation-message {
  margin: 0;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--border, rgba(148,163,184,.22));
  border-radius: 10px;
  padding: 14px;
  background: var(--surface-soft, rgba(148,163,184,.06));
  color: var(--text, inherit);
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.backlog-escalation-help {
  color: var(--muted, #7c8798);
  font-size: 12px;
  line-height: 1.6;
}


/* Coordination Desk — WhatsApp delivery monitoring */
.backlog-delivery-panel { margin-top: 18px; }
.backlog-delivery-metrics { margin: 14px 0; }
.backlog-delivery-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.backlog-delivery-filters label { display: grid; gap: 6px; color: var(--muted, #718096); font-size: 12px; }
.backlog-delivery-note { margin: 12px 0 0; color: var(--muted, #718096); font-size: 12px; line-height: 1.6; }
.backlog-delivery-table { min-width: 980px; }
.backlog-delivery-table td { vertical-align: top; }
.backlog-delivery-badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px;
  background: #eef2f7; color: #475569; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.backlog-delivery-badge.queued, .backlog-delivery-badge.sending,
.backlog-delivery-badge.waiting, .backlog-delivery-badge.pending,
.backlog-delivery-badge.processing { background: #fff7df; color: #8a5a00; }
.backlog-delivery-badge.sent { background: #e8f1ff; color: #2456a6; }
.backlog-delivery-badge.delivered { background: #e8f7ee; color: #176b3a; }
.backlog-delivery-badge.read { background: #d9f3e4; color: #075c2e; }
.backlog-delivery-badge.failed, .backlog-delivery-badge.not_delivered,
.backlog-delivery-badge.review_required, .backlog-delivery-badge.unknown { background: #fdecec; color: #a32929; }
@media (max-width: 700px) {
  .backlog-delivery-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backlog-delivery-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Coordination Desk — PIC performance and accountability */
.backlog-performance-panel{display:grid;gap:13px;margin-top:18px}
.backlog-performance-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.backlog-performance-controls label{display:grid;gap:5px;min-width:155px;color:#66768a;font-size:10px;font-weight:700}
.backlog-performance-controls .button{white-space:nowrap}
.backlog-performance-metrics{margin:3px 0 9px}
.backlog-performance-subhead{margin:5px 0 0;padding-top:10px;border-top:1px solid #edf1f5}
.backlog-performance-subhead h3{margin:0;color:#34465c;font-size:12px;font-weight:800}
.backlog-performance-subhead p{margin:4px 0 0;color:#8996a7;font-size:9px;line-height:1.5}
.backlog-performance-table,.backlog-performance-completed-table{min-width:950px;width:100%;border-collapse:collapse;font-size:10px}
.backlog-performance-table th,.backlog-performance-table td,
.backlog-performance-completed-table th,.backlog-performance-completed-table td{padding:9px 10px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:top}
.backlog-performance-table th,.backlog-performance-completed-table th{background:#f8fafc;color:#758397;font-size:9px;font-weight:800;white-space:nowrap}
.backlog-performance-table td{color:#53647a}
.backlog-performance-table td b{color:#34465c}
.backlog-performance-risk{color:#b54738!important;font-weight:800}
.backlog-performance-outcome{display:inline-flex;padding:4px 7px;border-radius:99px;background:#eef2f7;color:#64748b;font-size:9px;font-weight:800;white-space:nowrap}
.backlog-performance-outcome.on-time{background:#e8f7ee;color:#176b3a}
.backlog-performance-outcome.late{background:#fdecec;color:#a32929}
.backlog-performance-outcome.no-target{background:#eef2f7;color:#64748b}
.backlog-performance-note{margin:0;color:#8391a3;font-size:9px;line-height:1.65}
@media(max-width:760px){
  .backlog-performance-controls{align-items:stretch}
  .backlog-performance-controls label{flex:1 1 140px}
  .backlog-performance-controls .button{width:100%}
  .backlog-performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Smart PIC Load Balancer — transparent preview before writing assignments */
.backlog-smart-assignment-panel{display:grid;gap:10px}
.backlog-smart-assignment-label{font-size:10px;font-weight:800;color:#526276}
.backlog-smart-assignment-panel>input{max-width:620px}
.backlog-smart-assignment-hint{margin:0;color:#8290a2;font-size:10px;line-height:1.5}
.backlog-smart-assignment-actions{display:flex;gap:8px;flex-wrap:wrap}
.backlog-smart-assignment-summary{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 10px}
.backlog-smart-assignment-summary span{padding:7px 9px;border:1px solid #e5ebf2;border-radius:7px;background:#fbfcfe;color:#526276;font-size:10px}
.backlog-smart-assignment-summary b{color:#33465d}
.backlog-smart-assignment-table-wrap{max-height:360px;overflow:auto;border:1px solid #e8edf3;border-radius:8px}
.backlog-smart-assignment-table{width:100%;min-width:620px;border-collapse:collapse;font-size:10px}
.backlog-smart-assignment-table th,.backlog-smart-assignment-table td{padding:8px 10px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:middle}
.backlog-smart-assignment-table th{position:sticky;top:0;background:#f8fafc;color:#78879a;font-size:9px;z-index:1}
.backlog-smart-assignment-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;white-space:nowrap}
@media(max-width:760px){.backlog-smart-assignment-actions{align-items:stretch}.backlog-smart-assignment-actions button{flex:1}}


/* Coordination Desk — evidence-based root cause insights */
.backlog-root-cause-panel{display:grid;gap:10px;margin:14px 0}
.backlog-root-cause-meta,.backlog-root-cause-note{margin:0;color:#8290a2;font-size:10px;line-height:1.55}
.backlog-root-cause-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}
.backlog-root-cause-card{display:grid;gap:8px;min-width:0;padding:11px;border:1px solid #e5ebf2;border-radius:9px;background:#fff}
.backlog-root-cause-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#34465c;font-size:10px}
.backlog-root-cause-head strong{font-size:16px;white-space:nowrap;color:#1e3047}
.backlog-root-cause-head strong small{font-size:9px;font-weight:600;color:#7b8797}
.backlog-root-cause-track{height:5px;overflow:hidden;border-radius:99px;background:#edf1f5}
.backlog-root-cause-track span{display:block;height:100%;border-radius:99px;background:#547ba8}
.backlog-root-cause-samples{color:#64748b;font:9px ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.backlog-root-cause-card button{justify-self:start}
.backlog-root-cause-tag{display:inline-flex;max-width:190px;padding:4px 7px;border:1px solid #e3eaf2;border-radius:6px;background:#f8fafc;color:#526276;font-size:9px;font-weight:800;line-height:1.4}
.backlog-toolbar #backlogRootCauseFilter{min-width:185px}
@media(max-width:760px){.backlog-root-cause-grid{grid-template-columns:1fr}.backlog-toolbar #backlogRootCauseFilter{min-width:0;width:100%}}


/* Coordination Desk — repeat incidents based on follow-up lifecycle */
.backlog-repeat-panel{display:grid;gap:12px;margin:14px 0}
.backlog-repeat-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.backlog-repeat-controls label{display:grid;gap:5px;min-width:155px;color:#66768a;font-size:10px;font-weight:700}
.backlog-repeat-controls .button{white-space:nowrap}
.backlog-repeat-metrics{margin:0}
.backlog-repeat-subhead{margin:4px 0 0;padding-top:10px;border-top:1px solid #edf1f5}
.backlog-repeat-subhead h3{margin:0;color:#34465c;font-size:12px;font-weight:800}
.backlog-repeat-subhead p{margin:4px 0 0;color:#8996a7;font-size:9px;line-height:1.5}
.backlog-repeat-table{width:100%;min-width:760px;border-collapse:collapse;font-size:10px}
.backlog-repeat-table th,.backlog-repeat-table td{padding:9px 10px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:top}
.backlog-repeat-table th{background:#f8fafc;color:#758397;font-size:9px;font-weight:800;white-space:nowrap}
.backlog-repeat-table td{color:#53647a}
.backlog-repeat-table td b{color:#34465c}
.backlog-repeat-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;white-space:nowrap}
.backlog-repeat-note{margin:0;color:#8391a3;font-size:9px;line-height:1.65}
@media(max-width:760px){.backlog-repeat-controls{align-items:stretch}.backlog-repeat-controls label{flex:1 1 140px}.backlog-repeat-controls .button{width:100%}.backlog-repeat-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Final Operator D4 controls — private Admin Panel only */
.return-fms-panel{display:grid;gap:16px}
.return-fms-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.return-fms-date,.return-fms-type{display:grid;gap:6px;min-width:190px;color:#68788c;font-size:11px;font-weight:700}
.return-fms-date b{display:block;padding:11px 12px;border:1px solid #e3e9f0;border-radius:9px;background:#f8fafc;color:#24364c;font-size:14px}
.return-fms-type select{min-width:205px}
.return-fms-result{display:grid;gap:7px;padding:17px;border:1px solid #dce8f3;border-radius:12px;background:#f7fbff;white-space:pre-line;color:#34465c;font-size:13px;line-height:1.7}
.return-fms-result.is-ready{border-color:#b8ddc6;background:#f4fbf6}
.return-fms-result.is-error{border-color:#f0c5c5;background:#fff8f8;color:#a12d2d}
.return-fms-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.return-fms-actions .muted-copy{margin:0;max-width:640px}
.return-fms-note{margin:0;color:#8592a3;font-size:10px;line-height:1.7}
.return-fms-notes{margin:0;padding-left:19px;color:#68788c;font-size:11px;line-height:1.9}
@media(max-width:760px){.return-fms-controls{align-items:stretch}.return-fms-date,.return-fms-type,.return-fms-type select,.return-fms-controls .button{width:100%}.return-fms-actions{align-items:stretch}.return-fms-actions .button{width:100%}}


/* Final Operator — Admin-only target management and import history */
.return-admin-date-row{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:2px 0 14px}
.return-admin-date-row label{display:grid;gap:6px;min-width:210px;color:#68788c;font-size:11px;font-weight:700}
.return-admin-date-row .input-control{min-width:210px}
.return-target-summary{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:16px;align-items:stretch}
.return-target-current{display:grid;align-content:center;gap:7px;padding:16px;border:1px solid #e3e9f0;border-radius:11px;background:#f8fafc}
.return-target-current small{color:#718096;font-size:10px;font-weight:800}
.return-target-current strong{color:#1e3047;font-size:27px;line-height:1.15}
.return-target-current span{color:#8290a2;font-size:10px;line-height:1.5}
.return-target-form{display:grid;grid-template-columns:minmax(150px,220px) minmax(220px,1fr) auto;gap:12px;align-items:end}
.return-target-form label{display:grid;gap:6px;color:#68788c;font-size:11px;font-weight:700}
.return-target-form .button{white-space:nowrap}
.return-target-history{display:grid;gap:7px;margin-top:12px}
.return-target-history-row{display:grid;grid-template-columns:minmax(150px,190px) minmax(150px,220px) minmax(0,1fr);gap:10px;align-items:start;padding:9px 11px;border:1px solid #e8edf3;border-radius:8px;background:#fff;font-size:10px}
.return-target-history-row span,.return-target-history-row small{color:#8290a2;line-height:1.5}
.return-target-history-row b{color:#3e526b}
.return-import-history{display:grid;gap:9px}
.return-import-history-row{display:grid;gap:7px;padding:12px;border:1px solid #e5ebf2;border-radius:10px;background:#fff}
.return-import-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.return-import-history-head>b{min-width:0;overflow-wrap:anywhere;color:#30445b;font-size:11px}
.return-import-status{flex:none;padding:4px 7px;border-radius:99px;background:#eef2f7;color:#64748b;font-size:9px;font-weight:800}
.return-import-status.is-completed{background:#e8f7ee;color:#176b3a}
.return-import-status.is-warning{background:#fff4e5;color:#9a5b13}
.return-import-history-meta{color:#718096;font-size:10px}
.return-import-history-stats{display:flex;flex-wrap:wrap;gap:7px}
.return-import-history-stats span{padding:5px 7px;border:1px solid #e8edf3;border-radius:6px;background:#f8fafc;color:#66768a;font-size:9px}
@media(max-width:900px){.return-target-summary{grid-template-columns:1fr}.return-target-form{grid-template-columns:1fr 1fr}.return-target-form .button{grid-column:1/-1;justify-self:start}}
@media(max-width:600px){.return-target-form{grid-template-columns:1fr}.return-target-form .button{width:100%}.return-target-history-row{grid-template-columns:1fr}.return-admin-date-row label,.return-admin-date-row .input-control{width:100%}.return-import-history-head{align-items:flex-start;flex-direction:column}}

/* Final Operator — FMS Backlogs baseline and attempt comparison */
.return-backlogs-panel{display:grid;gap:13px}
.return-backlogs-controls{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(180px,.8fr) auto auto;gap:12px;align-items:end}
.return-backlogs-controls label{display:grid;gap:6px;color:#68788c;font-size:11px;font-weight:700}
.return-backlogs-controls small{color:#8290a2;font-size:9px;line-height:1.5}
.return-backlogs-preview{padding:12px;border:1px solid #e3e9f0;border-radius:9px;background:#f8fafc;color:#46586f;font-size:11px;line-height:1.7}
.return-backlogs-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.return-backlogs-history{display:grid;gap:10px}
.return-backlogs-compare{display:grid;gap:8px;padding:12px;border:1px solid #e5ebf2;border-radius:10px;background:#fff}
.return-backlogs-compare>small{color:#8290a2;font-size:10px}
.return-backlogs-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.return-backlogs-metrics>div{display:grid;gap:3px;padding:9px;border:1px solid #e8edf3;border-radius:8px;background:#f8fafc}
.return-backlogs-metrics b{color:#263b53;font-size:18px}
.return-backlogs-metrics span{color:#718096;font-size:9px}
.return-backlogs-change-list{display:grid;gap:5px}
.return-backlogs-change-list>div,.return-backlogs-history-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(150px,220px) auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid #edf1f5;border-radius:7px;font-size:10px}
.return-backlogs-change-list b,.return-backlogs-history-row b{overflow-wrap:anywhere;color:#30445b}
.return-backlogs-change-list span,.return-backlogs-history-row span{color:#718096}
.return-backlogs-change-list small{color:#8290a2}
.return-backlogs-batch-list{display:grid;gap:6px}
.return-backlogs-batch-list>b{font-size:11px;color:#40536b}
.return-backlogs-history-row{grid-template-columns:minmax(160px,1fr) minmax(220px,auto)}
@media(max-width:900px){.return-backlogs-controls{grid-template-columns:1fr 1fr}.return-backlogs-controls .button{width:100%}}
@media(max-width:600px){.return-backlogs-controls{grid-template-columns:1fr}.return-backlogs-history-head{align-items:stretch;flex-direction:column}.return-backlogs-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.return-backlogs-change-list>div,.return-backlogs-history-row{grid-template-columns:1fr}}


/* Floor Attendance Monitor — read-only D1 dashboard */
.fam-stack{display:grid;gap:14px}
.fam-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid #dfe7f0;border-radius:12px;background:#fff}
.fam-toolbar-title{margin-top:4px;color:#24364c;font-size:17px;font-weight:800}
.fam-toolbar-meta{margin-top:4px;color:#7b899b;font-size:10px}
.fam-toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.fam-eyebrow{color:#8492a4;font-size:9px;font-weight:800;letter-spacing:.08em}
.fam-safety-note{padding:12px 14px;border:1px solid #dce6f0;border-radius:9px;background:#f7fafc;color:#53647a;font-size:10px;line-height:1.65}
.fam-safety-note b{color:#34465c}
.fam-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.fam-metric{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid #e5ebf2;border-radius:10px;background:#fff}
.fam-metric>span{color:#76869a;font-size:10px;font-weight:700}
.fam-metric>b{color:#263b53;font-size:23px;line-height:1.2}
.fam-metric>small{color:#8a97a7;font-size:9px;line-height:1.45}
.fam-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fam-card{display:grid;gap:12px;min-width:0;padding:15px;border:1px solid #e4eaf1;border-radius:12px;background:#fff}
.fam-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.fam-card-head h2{margin:3px 0 0;color:#2b4058;font-size:15px}
.fam-card-head p{margin:4px 0 0;color:#8592a3;font-size:10px}
.fam-count-pill{flex:none;padding:6px 9px;border:1px solid #e4eaf1;border-radius:99px;background:#f8fafc;color:#53647a;font-size:9px;font-weight:800}
.fam-inline-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fam-inline-metrics>div{display:grid;gap:4px;padding:10px;border:1px solid #edf1f5;border-radius:8px;background:#fbfcfe}
.fam-inline-metrics small{color:#8190a2;font-size:9px}
.fam-inline-metrics b{color:#30455e;font-size:20px}
.fam-subhead{padding-top:8px;border-top:1px solid #edf1f5;color:#4a5e75;font-size:10px;font-weight:800}
.fam-status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.fam-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border:1px solid #edf1f5;border-radius:7px;color:#758398;font-size:9px}
.fam-status-list b{color:#2f435b;font-size:11px}
.fam-contact-table-wrap,.fam-history-wrap{max-width:100%;overflow:auto;border:1px solid #e8edf3;border-radius:8px}
.fam-contact-table,.fam-history{width:100%;border-collapse:collapse;font-size:9px}
.fam-contact-table th,.fam-contact-table td,.fam-history th,.fam-history td{padding:8px 9px;border-bottom:1px solid #edf1f5;text-align:left;white-space:nowrap}
.fam-contact-table th,.fam-history th{background:#f8fafc;color:#7b899b;font-size:8px;font-weight:800}
.fam-contact-table td,.fam-history td{color:#5c6d82}
.fam-history td{vertical-align:middle}
.fam-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:99px;background:#edf2f7;color:#526276;font-size:8px;font-weight:800;white-space:nowrap}
.fam-badge-dry_run_completed{background:#e8f7ee;color:#176b3a}
.fam-badge-failed{background:#fdecec;color:#a32929}
.fam-badge-running{background:#fff4df;color:#95600c}
.fam-badge-completed{background:#e8f7ee;color:#176b3a}
.fam-badge-held{background:#fff4df;color:#95600c}
.fam-help,.fam-footer{margin:0;color:#8794a4;font-size:9px;line-height:1.6}
.fam-empty,.fam-empty-block{margin:0;padding:12px;color:#8794a4;font-size:10px}
.fam-empty-block{text-align:center;border:1px dashed #dce3eb;border-radius:8px}
.fam-error{display:grid;justify-items:start;gap:8px;padding:16px;color:#a32929;font-size:11px}
.fam-error span,.fam-inline-error{color:#a32929;font-size:10px}
@media(max-width:900px){.fam-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fam-two-col{grid-template-columns:1fr}}
@media(max-width:600px){.fam-toolbar{align-items:stretch;flex-direction:column}.fam-toolbar-actions{justify-content:space-between}.fam-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fam-status-list{grid-template-columns:1fr}.fam-card{padding:12px}}

.fam-freshness{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #e6ebf2;border-radius:99px;background:#f8fafc;color:#617187;font-size:9px;font-weight:800;white-space:nowrap}
.fam-freshness-success{border-color:#cfe8d7;background:#f0faf3;color:#176b3a}
.fam-freshness-warning,.fam-freshness-pending{border-color:#f0dfb7;background:#fff9ec;color:#8b5b0a}
.fam-freshness-error{border-color:#efc9c9;background:#fff3f3;color:#a32929}
.fam-freshness-note{padding:10px 12px;border:1px solid #e6ebf2;border-radius:8px;color:#66768a;font-size:10px;line-height:1.55}
.fam-freshness-note-warning,.fam-freshness-note-pending{border-color:#f0dfb7;background:#fff9ec;color:#8b5b0a}
.fam-freshness-note-error{border-color:#efc9c9;background:#fff3f3;color:#a32929}
@media(max-width:600px){.fam-toolbar-actions{align-items:flex-start;flex-direction:column}.fam-toolbar-actions .button{width:100%}}

/* Floor Control — Courier Violations */
.fcv-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 13px}
.fcv-metric{display:grid;gap:6px;padding:13px;border:1px solid #e6ebf2;border-radius:10px;background:#fff}
.fcv-metric span{font-size:10px;color:#738196}
.fcv-metric b{font-size:22px;line-height:1.1;color:#26364b}
.fcv-metric small,.fcv-help,.fcv-footer{font-size:9px;line-height:1.55;color:#8794a4}
.fcv-card{margin:0 0 13px;padding:16px;border:1px solid #e4eaf1;border-radius:11px;background:#fff}
.fcv-card-head,.fcv-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.fcv-card-head{margin-bottom:13px}
.fcv-card-head h2{margin:3px 0 4px;font-size:15px;color:#2d3c51}
.fcv-card-head p,.fcv-item-head p{margin:0;font-size:10px;color:#8290a1;line-height:1.5}
.fcv-eyebrow{font-size:8px;font-weight:800;letter-spacing:.1em;color:#8290a1}
.fcv-tag{padding:5px 8px;border:1px solid #e4eaf1;border-radius:99px;color:#6d7d90;font-size:8px;font-weight:800;white-space:nowrap}
.fcv-form{display:grid;gap:12px}
.fcv-form label,.fcv-filter-form label,.fcv-status-form label{display:grid;gap:6px;font-size:10px;color:#65748a}
.fcv-driver-search{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;padding:12px;border:1px solid #e7edf4;border-radius:9px;background:#f9fbfd}
.fcv-search-row{display:flex;gap:7px}
.fcv-search-row input{min-width:120px;flex:1}
.fcv-search-row button{white-space:nowrap}
.fcv-driver-search select,.fcv-form-grid input,.fcv-form textarea,.fcv-filter-form input,.fcv-filter-form select,.fcv-status-form select,.fcv-status-form textarea{width:100%}
.fcv-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fcv-form textarea,.fcv-status-form textarea{min-height:78px;resize:vertical}
.fcv-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:3px}
.fcv-form-actions .fcv-help{max-width:650px;margin:0}
.fcv-readonly-note{padding:12px;border:1px solid #e8edf3;border-radius:9px;background:#f8fafc;color:#637389;font-size:10px;line-height:1.6;margin-bottom:13px}
.fcv-filter-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:9px;align-items:end;margin-bottom:13px}
.fcv-filter-form button{white-space:nowrap}
.fcv-item{padding:14px 0;border-top:1px solid #edf1f5}
.fcv-item:first-child{border-top:0}
.fcv-item-head h3{margin:3px 0 5px;font-size:13px;color:#2c3c51}
.fcv-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:99px;font-size:9px;font-weight:800;white-space:nowrap;background:#eef2f6;color:#5c6c80}
.fcv-status-active{background:#fff4df;color:#91600d}
.fcv-status-upcoming{background:#eaf3ff;color:#28619a}
.fcv-status-expired{background:#eef2f6;color:#59687b}
.fcv-status-no_period{background:#f4f6f8;color:#6d7d90}
.fcv-status-cancelled{background:#f1f3f6;color:#788497}
.fcv-description{margin:10px 0;color:#43536a;font-size:11px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.fcv-evidence{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:10px}
.fcv-evidence a{color:#28639b;text-decoration:none;font-weight:700}
.fcv-evidence a:hover{text-decoration:underline}
.fcv-evidence span,.fcv-muted{color:#8693a3}
.fcv-resolution{display:grid;gap:4px;margin-top:9px;padding:9px 10px;border-left:3px solid #c7d5e6;background:#f8fafc;color:#66768a;font-size:10px;line-height:1.55}
.fcv-resolution b{color:#45556b}
.fcv-item-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px;color:#8794a4;font-size:9px}
.fcv-period-form{display:grid;gap:9px;margin-top:11px;padding:11px;border:1px dashed #d9e1eb;border-radius:9px;background:#fafbfd}
.fcv-period-form p{margin:0;color:#718096;font-size:9px;line-height:1.55}
.fcv-period-form label{display:grid;gap:6px;color:#65748a;font-size:10px}
.fcv-period-form input{width:100%}
.fcv-period-form button{justify-self:start;white-space:nowrap}
.fcv-status-form{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(200px,1.5fr) auto;gap:9px;align-items:end;margin-top:12px;padding:11px;border:1px solid #edf1f5;border-radius:9px;background:#fafbfd}
.fcv-status-form textarea{min-height:38px}
.fcv-status-form button{white-space:nowrap}
.fcv-activity{margin-top:10px;padding-top:8px;border-top:1px dashed #e6ebf1}
.fcv-activity summary{cursor:pointer;color:#718096;font-size:9px;font-weight:800}
.fcv-activity-content{padding:8px 0 2px}
.fcv-activity-content ol{display:grid;gap:9px;margin:0;padding-left:18px}
.fcv-activity-content li{padding-left:3px;color:#55657a;font-size:9px;line-height:1.5}
.fcv-activity-content li span{display:block;color:#8a96a5}
.fcv-activity-content li p{margin:3px 0 0;white-space:pre-wrap}
.fcv-empty{padding:25px;text-align:center;border:1px dashed #e2e8ef;border-radius:9px;color:#8995a5;font-size:10px}
.fcv-alert{padding:10px 12px;margin-bottom:11px;border:1px solid #dce9f7;border-radius:8px;background:#f5f9ff;color:#47627f;font-size:10px;line-height:1.5}
.fcv-alert-error{border-color:#f1d4d2;background:#fff6f5;color:#995b56}
.fcv-footer{margin:13px 0 0;padding-top:10px;border-top:1px solid #edf1f5}
@media(max-width:900px){.fcv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fcv-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.fcv-card{padding:12px}.fcv-driver-search,.fcv-form-grid,.fcv-filter-form,.fcv-status-form{grid-template-columns:1fr}.fcv-form-actions{align-items:stretch;flex-direction:column}.fcv-form-actions .button{width:100%}.fcv-item-head{flex-direction:column}.fcv-status-form button{width:100%}}

.fcv-entry-only-note{margin-top:13px}
.fcv-entry-only-note .fcv-card-head{margin-bottom:7px}
.fcv-entry-only-note .fcv-help{margin:0}

.fcv-filter-actions{display:flex;gap:7px;align-items:center}
@media(max-width:620px){.fcv-filter-actions{display:grid;grid-template-columns:1fr 1fr}.fcv-filter-actions button{width:100%}}


/* Courier violation history — desktop table with compact mobile cards */
.fcv-desktop-table-wrap{width:100%;overflow-x:auto;border:1px solid #e7edf3;border-radius:10px}
.fcv-table{width:100%;min-width:920px;border-collapse:separate;border-spacing:0;background:#fff}
.fcv-table th{padding:11px 10px;background:#f7f9fc;color:#637389;text-align:left;font-size:9px;font-weight:800;white-space:nowrap;border-bottom:1px solid #e5ebf2}
.fcv-table td{padding:11px 10px;vertical-align:top;color:#44546a;font-size:10px;line-height:1.5;border-bottom:1px solid #edf1f5}
.fcv-table tbody tr:last-child td{border-bottom:0}
.fcv-table-name{display:block;color:#2d3c51;font-size:10px}
.fcv-table-sub{display:block;margin-top:3px;color:#8995a5;font-size:9px}
.fcv-table .fcv-activity{margin:0;padding:0;border:0;min-width:120px}
.fcv-table .fcv-activity summary{white-space:nowrap}
.fcv-mobile-list{display:none}
.fcv-mobile-item{border:1px solid #e7edf3;border-radius:10px;padding:12px;margin:0 0 9px}
.fcv-mobile-item .fcv-period{margin-top:10px;padding:8px 10px;background:#f7f9fc;border-radius:8px;color:#506078;font-size:10px}
.fcv-record-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.fcv-record-detail-grid>div{padding:9px;border:1px solid #edf1f5;border-radius:8px;background:#fafbfd;min-width:0}
.fcv-record-detail-grid small{display:block;color:#8491a2;font-size:9px;font-weight:700}
.fcv-record-detail-grid p{margin:4px 0 0;color:#4c5b70;font-size:10px;line-height:1.55;overflow-wrap:anywhere}
.fcv-activity-heading{margin:13px 0 7px;color:#44546a;font-size:10px}
.fcv-activity-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #e8edf3;border-radius:8px}
.fcv-activity-table{width:100%;min-width:680px;border-collapse:collapse}
.fcv-activity-table th{padding:8px;background:#f7f9fc;color:#6d7d90;text-align:left;font-size:8px;white-space:nowrap;border-bottom:1px solid #e8edf3}
.fcv-activity-table td{padding:8px;vertical-align:top;color:#4b5b70;font-size:9px;line-height:1.5;border-bottom:1px solid #edf1f5}
.fcv-activity-table tbody tr:last-child td{border-bottom:0}
.fcv-activity-table td small{display:block;margin-top:3px;color:#8794a4;font-size:8px}
.fcv-activity-table td p{max-width:420px;margin:4px 0 0;color:#718096;font-size:8px;line-height:1.5;white-space:normal}
@media(max-width:760px){
  .fcv-desktop-table-wrap{display:none}
  .fcv-mobile-list{display:block}
  .fcv-record-detail-grid{grid-template-columns:1fr}
}

/* Scanner PWA access management */
.pwa-access-card { margin-top: 18px; }
.pwa-access-form { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:14px; align-items:end; }
.pwa-access-form label { display:grid; gap:7px; color:var(--text-muted,#64748b); font-size:12px; font-weight:700; }
.pwa-access-form .input-control,.pwa-access-form .select-control { width:100%; }
.pwa-operator-list { display:grid; gap:10px; }
.pwa-operator-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--border,#e5e7eb); }
.pwa-operator-row:last-child { border-bottom:0; }
.pwa-operator-info { display:grid; gap:4px; min-width:0; }
.pwa-operator-info b { color:var(--text,#172033); }
.pwa-operator-info span,.pwa-operator-info small { color:var(--text-muted,#64748b); font-size:12px; overflow-wrap:anywhere; }
.pwa-operator-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.pwa-temporary-secret { display:grid; gap:8px; margin-top:16px; padding:16px; border:1px solid #d6a94d; border-radius:12px; background:rgba(250,204,21,.08); }
.pwa-temporary-secret code { display:block; width:fit-content; max-width:100%; padding:10px 12px; border-radius:8px; background:rgba(15,23,42,.07); color:var(--text,#172033); overflow-wrap:anywhere; user-select:all; }
.pwa-temporary-secret small { color:var(--text-muted,#64748b); }
.button-danger { border:1px solid #e6a3a3; background:#fff5f5; color:#a12727; }
@media (max-width: 760px) {
  .pwa-access-form { grid-template-columns:1fr; }
  .pwa-operator-row { align-items:flex-start; flex-direction:column; }
  .pwa-operator-actions { justify-content:flex-start; }
}



.spreadsheet-batch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}


/* WhatsApp Group Routing — dedicated admin settings layout */
.wagr-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.wagr-info {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #dce7f3;
  border-radius: 10px;
  background: #f5f9fe;
  color: #5c6f86;
  font-size: 11px;
  line-height: 1.65;
}
.wagr-info b {
  color: #304761;
  font-size: 11px;
}
.wagr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-items: stretch;
}
.wagr-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5ebf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(25, 45, 70, .045);
}
.wagr-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.wagr-card-head h3 {
  margin: 5px 0 0;
  color: #263b53;
  font: 700 14px Manrope, sans-serif;
  line-height: 1.4;
}
.wagr-eyebrow {
  color: #8492a4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
}
.wagr-pill {
  flex: 0 0 auto;
  max-width: 48%;
  padding: 5px 8px;
  border: 1px solid #e5ebf2;
  border-radius: 99px;
  background: #f6f8fb;
  color: #68788d;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.wagr-pill.ready {
  border-color: #cfe8d7;
  background: #eff9f2;
  color: #277044;
}
.wagr-pill.off {
  border-color: #f0dfb7;
  background: #fff8e9;
  color: #94610f;
}
.wagr-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #617187;
  font-size: 10px;
  font-weight: 700;
}
.wagr-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #30445d;
  font: 11px 'DM Sans', sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
.wagr-field input::placeholder {
  color: #a0aaba;
}
.wagr-field input:focus {
  border-color: #7ba8ee;
  box-shadow: 0 0 0 3px #3478e615;
}
.wagr-help {
  min-height: 32px;
  margin: 0;
  color: #8794a4;
  font-size: 10px;
  line-height: 1.6;
}
.wagr-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #edf1f5;
}
.wagr-meta > span {
  min-width: 0;
  color: #8290a2;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wagr-card .button-small {
  flex: 0 0 auto;
  padding: 7px 10px;
  font-size: 10px;
}
.wagr-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  background: #fff;
}
.wagr-footnote {
  margin: 0;
  color: #8492a3;
  font-size: 9px;
  line-height: 1.6;
}
.wagr-actions .wagr-footnote {
  max-width: 760px;
}
.wagr-actions .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.wagr-error,
.wagr-notice {
  padding: 11px 13px;
  border: 1px solid #efcccc;
  border-radius: 8px;
  background: #fff5f5;
  color: #a33c3c;
  font-size: 10px;
  line-height: 1.6;
}
.wagr-notice {
  border-color: #cfe8d7;
  background: #f1faf4;
  color: #286c43;
}
@media (max-width: 1100px) {
  .wagr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .wagr-grid {
    grid-template-columns: 1fr;
  }
  .wagr-card {
    padding: 13px;
  }
  .wagr-help {
    min-height: 0;
  }
  .wagr-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .wagr-actions .button {
    width: 100%;
  }
  .wagr-card-head {
    align-items: flex-start;
  }
  .wagr-pill {
    max-width: 52%;
  }
}


/* Report Center — controlled CRUD editor */
.master-section-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.master-resource-actions{display:flex;align-items:center;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #eff2f5}
.master-resource-actions .button{min-height:30px;padding:6px 10px;font-size:9px}
.master-delete-button{color:#b54747!important;border-color:#f0d5d5!important;background:#fffafa!important}
.master-delete-button:hover{background:#fff0f0!important;border-color:#e8bcbc!important}
.master-actions-heading{min-width:115px}
.master-actions-cell{min-width:125px}
.master-actions-cell .master-resource-actions{margin:0;padding:0;border:0;white-space:nowrap}
.master-actions-cell .master-resource-actions .button{min-width:48px}
.master-editor{position:relative;z-index:100}
.master-editor-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(15,27,43,.48);backdrop-filter:blur(3px)}
.master-editor-panel{display:grid;gap:16px;width:min(820px,100%);max-height:min(90vh,900px);overflow:auto;padding:22px;border:1px solid #e1e8f0;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(15,27,43,.24)}
.master-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:13px;border-bottom:1px solid #edf1f5}
.master-editor-heading h2{margin:4px 0;color:#263a52;font:800 19px Manrope,sans-serif}
.master-editor-heading p{margin:0;color:#7a8798;font-size:11px}
.master-editor-x{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #e4eaf1;border-radius:9px;background:#f8fafc;color:#53657b;font-size:21px;cursor:pointer}
.master-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.master-editor-field{display:grid;align-content:start;gap:6px;min-width:0;color:#526276;font-size:10px;font-weight:800}
.master-editor-field span i{color:#c04747;font-style:normal}
.master-editor-field input,.master-editor-field textarea{display:block;width:100%;min-width:0;box-sizing:border-box;padding:10px 11px;border:1px solid #dfe6ee;border-radius:9px;background:#fff;color:#34465c;font:12px/1.55 'DM Sans',sans-serif}
.master-editor-field textarea{min-height:100px;resize:vertical}
.master-editor-field input:focus,.master-editor-field textarea:focus{outline:none;border-color:#8cb1e2;box-shadow:0 0 0 3px rgba(52,117,191,.1)}
.master-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;border-top:1px solid #edf1f5}
.master-editor-footer>div{display:flex;gap:8px;flex-wrap:wrap}
.master-editor-error{padding:10px 12px;border:1px solid #f0c9c9;border-radius:8px;background:#fff6f6;color:#a53c3c;font-size:11px;line-height:1.5}
.master-data-note{margin-top:12px;color:#8794a5;font-size:10px;line-height:1.6}
@media(max-width:760px){
  .master-editor-backdrop{align-items:flex-end;padding:0}
  .master-editor-panel{width:100%;max-height:93vh;padding:17px;border-radius:16px 16px 0 0}
  .master-editor-fields{grid-template-columns:1fr}
  .master-editor-footer{align-items:stretch;flex-direction:column}
  .master-editor-footer>div{display:grid;grid-template-columns:1fr 1fr}
  .master-editor-footer .button{width:100%}
}
