:root{--kcc-primary:#2563eb;--bs-primary:#2563eb}body{background:#f4f6f9;color:#253248;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.portal-shell{display:flex;min-height:100vh}.sidebar{width:240px;background:#17243b;color:white;padding:32px 20px;display:flex;flex-direction:column;flex-shrink:0}.brand{font-size:28px;font-weight:750;letter-spacing:2px;margin-bottom:45px}.brand span{display:block;font-size:10px;letter-spacing:2px;color:#acbdd7;margin-top:6px}.nav-label{font-size:10px;color:#99abc5;letter-spacing:1px;margin-bottom:15px}.sidebar nav a{display:block;padding:12px;color:#c4cfe0;text-decoration:none;border-radius:7px;margin-bottom:6px;font-size:14px}.sidebar nav a.active,.sidebar nav a:hover{background:#2563eb;color:#fff}.sidebar-foot{margin-top:auto;padding-top:40px;font-size:12px;color:#99abc5;line-height:1.8}.main{flex:1;min-width:0}header{background:white;border-bottom:1px solid #e4e9f0;padding:20px 32px;display:flex;justify-content:space-between;align-items:center;font-size:13px}main{padding:36px}h1{font-size:28px;font-weight:650;margin-top:8px}.eyebrow{font-size:11px;font-weight:700;color:#64748b;letter-spacing:1.4px}.surface{background:white;border:1px solid #e4e9f0;border-radius:10px;padding:24px}.btn-primary{background:#2563eb;border-color:#2563eb}.login-page{display:grid;place-items:center;min-height:100vh}.login-card{width:min(440px,94vw);padding:40px;background:white;border:1px solid #e4e9f0;border-radius:12px}.table{font-size:14px}.table th{font-size:11px;text-transform:uppercase;color:#64748b;padding-top:18px}@media(max-width:760px){.portal-shell{display:block}.sidebar{width:100%;padding:16px}.brand{margin-bottom:12px}.sidebar-foot,.nav-label{display:none}.sidebar nav{display:flex;gap:8px}header{padding:16px}main{padding:20px}}

/* Counter scanner areas and recent scans. */
#counter-display .counter-section{padding:0;overflow:hidden}
.counter-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #DBDFE6}
.scanner-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px;padding:20px}
.scanner-card>h2{font-size:13px;color:#565D6B;margin-bottom:8px}
.scanner-result{display:flex;align-items:center;gap:20px;padding:24px;border-radius:12px;min-height:230px}
.scanner-idle{background:#EBEDF2;color:#8A8F99;justify-content:center}
.scanner-valid{background:#E4F5EA;color:#1F8A4C}
.scanner-invalid{background:#FBE7E8;color:#C7373F}
.scanner-photo{width:33%;height:130px;object-fit:contain;background:white;border:1.5px dashed #DBDFE6;border-radius:12px;padding:10px}
.scanner-info{min-width:0;overflow-wrap:anywhere}.scanner-info h3{font-size:20px;font-weight:700;color:#171A21;margin:8px 0}
.scanner-info p,.scanner-info small{font-size:12px;color:#565D6B;margin-bottom:4px}.scanner-label{font-size:12px;font-weight:800;letter-spacing:.04em}
.counter-history{width:100%;table-layout:fixed;font-size:12px;white-space:normal}.counter-history th{font-size:11px;color:#565D6B;background:#F4F5F8}.counter-history td,.counter-history th{padding:10px 8px;vertical-align:middle;overflow-wrap:anywhere;white-space:normal}
.counter-history th:nth-child(1){width:12%}.counter-history th:nth-child(2){width:6%}.counter-history th:nth-child(3){width:10%}.counter-history th:nth-child(4){width:8%}.counter-history th:nth-child(5){width:9%}.counter-history th:nth-child(6){width:16%}.counter-history th:nth-child(7){width:9%}.counter-history th:nth-child(8){width:8%}.counter-history th:nth-child(9){width:16%}.counter-history th:nth-child(10){width:6%}
.counter-history img{max-width:100%;height:auto}
@media(max-width:760px){.counter-history{font-size:10px}.counter-history th{font-size:9px}.counter-history td,.counter-history th{padding:8px 3px}}
