:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#17233d;background:#f4f6fa;font-size:16px;line-height:1.5;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{background:#d82730;color:white;padding:18px max(20px,calc((100vw - 960px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}header strong{font-size:22px;letter-spacing:.03em}header strong span{color:#ffe8ad}header small{font-size:11px;letter-spacing:.12em}main{max-width:960px;margin:28px auto;padding:0 18px}.card{background:white;border:1px solid #e5e8ef;border-radius:16px;padding:28px;margin:20px 0;box-shadow:0 6px 24px #17233d06}.narrow{max-width:500px;margin:42px auto}h1{font-size:28px;letter-spacing:-.02em;margin:8px 0 12px;line-height:1.25}h2{font-size:21px;margin:0 0 8px}p{color:#5c677a;margin:10px 0 18px}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;color:#b51d26}label{display:block;font-size:14px;font-weight:650;margin:18px 0 7px}input{width:100%;font:inherit;border:1px solid #cbd1dc;border-radius:9px;padding:12px;background:#fff;color:#17233d}input:focus{outline:3px solid #df2b3330;border-color:#d82730}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:700;border:1px solid transparent;border-radius:9px;padding:12px 18px;background:#d82730;color:white;text-decoration:none;cursor:pointer;margin-top:20px}button:hover,.button:hover{background:#bc1d26}button:disabled{opacity:.48;cursor:not-allowed}button.secondary{background:white;color:#17233d;border-color:#d1d6df}button:focus-visible,a:focus-visible{outline:3px solid #d8273070;outline-offset:3px}a{color:#b51d26}.small,small{font-size:13px}.alert{background:#fff2df;color:#7a4700;padding:14px 16px;border:1px solid #f2d8aa;border-radius:10px;margin:14px 0}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:10px 0}.toolbar h1{font-size:24px;margin-bottom:0}.toolbar button{margin:0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}td,th{text-align:left;padding:13px 10px;border-bottom:1px solid #e8ebf0;white-space:nowrap}th{color:#596579;background:#fafbfc;font-size:12px}td.empty{white-space:normal;text-align:center;padding:35px 14px;color:#637084}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.list-heading{margin-top:35px}.camera{max-width:480px;aspect-ratio:4/3;border:1px solid #dce1e9;background:#edf0f6;border-radius:14px;overflow:hidden;display:grid;place-items:center;margin:20px auto 4px}video,canvas{max-width:100%;max-height:420px;width:100%;object-fit:contain}.camera #camera-placeholder{text-align:center;color:#738098;line-height:1.8}.actions{display:flex;flex-wrap:wrap;gap:10px}.status{font-size:14px;margin-top:18px}#checkin-submit{width:100%;margin-top:8px}.success-mark{background:#e5f6eb;color:#168348;border-radius:50%;width:56px;height:56px;display:grid;place-items:center;font-size:32px;font-weight:bold}dl{background:#f6f8fb;border-radius:10px;padding:14px 18px}dt{font-size:12px;color:#5c677a;margin-top:8px}dd{margin:2px 0 10px;font-weight:650}footer{text-align:center;color:#7b8597;font-size:12px;padding:18px;margin-bottom:20px}@media(max-width:600px){header small{display:none}header{padding:16px 20px}main{padding:0 14px;margin-top:20px}.card{padding:22px 18px}.narrow{margin-top:22px}.form-grid{grid-template-columns:1fr;gap:0}h1{font-size:25px}.toolbar h1{font-size:20px}.actions button{flex:1}td,th{padding:12px 8px}}

.brand-logo{display:block;background:white;border-radius:8px;max-width:min(72vw,360px);max-height:72px;object-fit:contain;padding:4px}

/* Attendance console: native CSS tabs and bounded scrolling tables. */
.attendance-console>.attendance-tab{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;padding:0}.attendance-console>section.card{display:none}.attendance-tabs{display:flex;gap:8px;overflow-x:auto;position:sticky;top:0;z-index:3;background:#f4f6fa;padding:10px 0;white-space:nowrap}.attendance-tabs label{margin:0;padding:12px 16px;border-radius:10px;background:#e6ebf3;cursor:pointer}.attendance-console .table-wrap{max-height:560px;overflow:auto;overscroll-behavior:contain}.attendance-console thead th{position:sticky;top:0;z-index:1;background:#fafbfc}.attendance-thumb{display:block;width:180px;height:140px;object-fit:contain;background:#eef1f5;border-radius:8px}.attendance-console td{vertical-align:middle}#attendance-records:checked~.attendance-records,#attendance-drivers:checked~.attendance-drivers,#attendance-settings:checked~.attendance-settings{display:block}#attendance-records:checked~nav label[for=attendance-records],#attendance-drivers:checked~nav label[for=attendance-drivers],#attendance-settings:checked~nav label[for=attendance-settings]{background:#d82730;color:white}.attendance-tab:focus-visible~nav{outline:2px solid #d82730}@media(max-width:600px){.attendance-thumb{width:120px;height:100px}.attendance-console .table-wrap{max-height:65vh}.attendance-tabs label{padding:10px 12px}}

.driver-tabs{display:flex;gap:10px;overflow:auto;padding:10px 0}.driver-tabs a{white-space:nowrap;padding:10px 14px;text-decoration:none;background:#e7eaf0;border-radius:9px}.driver-tabs .selected{background:#d82730;color:white}.table-wrap select{min-width:160px;max-width:240px;padding:8px}.table-wrap form{min-width:210px}.table-wrap input:not([type=hidden]){min-width:180px}

.driver-order-controls{background:white;padding:16px;border-radius:12px;border:1px solid #e0e5ec;margin-top:14px}.driver-order-controls button{margin:0 0 10px}.driver-order-controls label{display:flex;align-items:center;gap:8px}.driver-order-controls input[type=checkbox]{width:auto}.driver-order-controls p{margin-bottom:0}

@media(max-width:640px){
.driver-order-controls button{width:100%;white-space:normal}.driver-order-controls,.driver-order-controls p{overflow-wrap:anywhere}
.driver-order-list,.driver-request-history{width:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;max-height:72vh;padding:2px}
.driver-order-list table,.driver-order-list tbody,.driver-order-list tr,.driver-request-history table,.driver-request-history tbody,.driver-request-history tr{display:block;width:100%;min-width:0;max-width:100%}
.driver-order-list thead,.driver-request-history thead{display:none}
.driver-order-list tr,.driver-request-history tr{border:1px solid #dfe5ee;border-radius:12px;padding:10px;margin:0 0 12px;background:white}
.driver-order-list td,.driver-request-history td{display:block;width:100%;white-space:normal;overflow-wrap:anywhere;border:0;padding:7px 4px;background:white!important}
.driver-order-list td[data-label]::before,.driver-request-history td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#66748a;font-weight:600;margin-bottom:3px}
.driver-order-list td:first-child{font-weight:750;font-size:18px}
.driver-order-list form{width:100%;min-width:0;margin:0}.driver-order-list form select,.driver-order-list form input:not([type=hidden]){display:block;min-width:0;max-width:100%;width:100%;font-size:16px;padding:10px;box-sizing:border-box}
.driver-order-list form label{margin:8px 0 4px;white-space:normal}.driver-order-list form button{display:block;width:100%;max-width:100%;white-space:normal;margin-top:10px;padding:12px}
}
