.dc-couriers-open>main:not(#dc-couriers),.dc-couriers-open>.staff-global-error{display:none!important}
.sc[hidden],.sc [hidden]{display:none!important}
#staff-root .staff-nav nav [data-couriers-nav]{order:3}
#staff-root .dc-couriers-open .staff-nav nav button{font-size:16px;min-height:48px}
#staff-root .staff-nav nav a[href='https://direct-carry-courier-register.foundatlast.chatgpt.site/']{display:none}

/* Readable records: colour belongs to each check, not the whole courier row. */
.sc{max-width:1480px;margin:auto;padding:32px 24px 64px;background:#f3f6f4;color:#183d37;font-family:Arial,sans-serif;font-size:16px;line-height:1.5}
.sc *{box-sizing:border-box}
.sc h1{font-size:34px;margin:0}
.sc h2{font-size:28px;margin:0}
.sc h3{font-size:21px;margin:0 0 14px}
.sc p{margin:10px 0 18px}
.sc-kicker{font-size:14px;font-weight:700;letter-spacing:.06em;color:#405b51}
.sc-heading,.sc-detail-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}
.sc-heading>div,.sc-detail-heading>div{min-width:0}
.sc button{font:inherit;font-size:16px;font-weight:700;border:1px solid #78978a;border-radius:10px;padding:12px 16px;min-height:48px;cursor:pointer;background:#fff;color:#18583f}
.sc button:hover{background:#edf6f0}
.sc button:disabled{cursor:not-allowed;opacity:.5}
.sc :focus-visible{outline:3px solid #087650;outline-offset:3px}
.sc label{display:flex;flex-direction:column;gap:8px;font-size:16px;font-weight:700}
.sc input,.sc select,.sc textarea{font:inherit;font-size:16px;min-height:48px;border:1px solid #78978a;border-radius:9px;padding:12px;background:#fff;color:#183d37;width:100%;max-width:100%}
.sc textarea{min-height:110px;resize:vertical}
.sc-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.sc-counts article{min-width:0;border:1px solid #d2e0d8;border-radius:14px;padding:18px 20px;background:#fff}
.sc-counts span,.sc-counts small{display:block}
.sc-counts span{font-size:16px;font-weight:700}
.sc-counts strong{display:block;font-size:34px;line-height:1.2;margin:8px 0;font-variant-numeric:tabular-nums}
.sc-counts small,.sc-help{font-size:15px;line-height:1.55;color:#405b51}
.sc-tools{display:flex;align-items:end;gap:18px;margin:24px 0}
.sc-tools label:first-child{flex:1;min-width:0}
.sc-tools label:last-child{min-width:290px}
.sc-message{min-height:24px;color:#246245}
.sc-message:empty{display:none}
.sc-error{padding:14px 16px;border:1px solid #dba39d;background:#fff3f1;color:#8f211b;border-radius:10px}
.sc-table-wrap{overflow:auto;border:1px solid #c4d6cb;border-radius:16px;background:#fff}
.sc table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1120px;font-size:16px;text-align:left}
.sc th{font-size:14px;font-weight:700;background:#eaf1ed;padding:16px;vertical-align:bottom}
.sc th:nth-child(1){width:23%}
.sc th:nth-child(2){width:30%}
.sc th:nth-child(3){width:23%}
.sc th:nth-child(4){width:12%}
.sc th:nth-child(5){width:12%}
.sc td{padding:22px 16px;border-top:1px solid #dce6df;vertical-align:top;overflow-wrap:anywhere}
.sc td small{display:block;color:#405b51;font-size:15px;line-height:1.5;margin:7px 0}
.sc-row{background:#fff}
.sc-person>strong{display:block;font-size:19px;line-height:1.35;color:#183d37}
.sc td .sc-delivery-warning{color:#9f2525;font-weight:700}
.sc-badge{display:inline-block;max-width:100%;padding:6px 10px;border-radius:8px;font-size:14px;line-height:1.4;font-weight:700;background:#eaf1ed;color:#405b51}
.sc-clearance{margin-top:12px;font-size:16px;color:#405b51}
.sc .sc-clearance small{display:block;color:inherit;font-size:15px;margin:7px 0;overflow-wrap:anywhere}
.sc-record-cell button{width:100%;background:#126a4c;border-color:#126a4c;color:#fff}
.sc-record-cell button:hover{background:#0b543b;border-color:#0b543b}

/* Three equal tiles remain easy to compare at every screen width. */
.sc-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.sc-check{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;padding:12px 6px;border:1px solid #d6e2da;border-radius:12px;background:#f8faf9;color:#183d37;text-align:center;line-height:1.35}
.sc-check-icon{display:flex;align-items:center;justify-content:center;flex:none;width:46px;height:46px;border:2px solid currentColor;border-radius:50%;font-size:32px;font-weight:800;line-height:1}
.sc-check-done .sc-check-icon{color:#14683c;background:#e8f6ed}
.sc-check-pending .sc-check-icon{color:#b42323;background:#fff0ee}
.sc-check-na .sc-check-icon{color:#485e53;background:#edf1ee;font-size:16px;font-weight:700}
.sc-check-copy{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:space-between;gap:7px;min-width:0;width:100%}
.sc-check-label{font-size:16px;font-weight:700;overflow-wrap:normal}
.sc-check-subtitle{display:block;font-size:14px;font-weight:400;line-height:1.4}
.sc .sc-check-status{display:block;margin:0;color:#405b51;font-size:14px;font-weight:600;line-height:1.35}
.sc-check-count{display:block;margin-top:12px;font-size:15px;line-height:1.5;color:#405b51}
.sc-detail>.sc-checks{max-width:620px;margin:20px 0 4px}
.sc-detail>.sc-checks .sc-check{padding:16px 12px}

.sc-detail{background:#fff;border:1px solid #b3cabc;border-radius:16px;margin-top:32px;padding:28px;scroll-margin-top:20px}
.sc-login{padding:22px;border:1px solid #bfd8c9;background:#f1f8f4;border-radius:12px;margin:24px 0}
.sc-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.sc .sc-stop{color:#9f2525;border-color:#ba716b}
.sc-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.sc-detail-grid section{border-top:1px solid #dce6df;padding-top:20px;min-width:0}
.sc dl{margin:0}
.sc dl>div{display:grid;grid-template-columns:minmax(130px,35%) minmax(0,1fr);gap:16px;padding:10px 0;border-bottom:1px solid #edf2ef}
.sc dt{font-size:16px;color:#405b51}
.sc dd{margin:0;font-size:16px;white-space:pre-line;overflow-wrap:anywhere}
.sc-dbs-review,.sc-passport{padding:22px;margin:26px 0;border:1px solid #c4d6cb;border-radius:12px;background:#f7faf8}
.sc-dbs-review form{margin-top:20px;max-width:680px}
.sc-dbs-review button{margin-top:4px}
.sc label.sc-checkbox{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:48px;margin:12px 0;cursor:pointer}
.sc-checkbox input{width:24px;height:24px;min-height:24px;padding:0;flex:none;accent-color:#126a4c}
.sc-passport dl{margin:18px 0}
.sc details>summary{cursor:pointer;min-height:48px;padding:12px 0;font-size:16px;font-weight:700}
.sc-evidence{padding-left:22px}
.sc-evidence li{padding:14px 0}
.sc-evidence p{white-space:pre-line;overflow-wrap:anywhere}
.sc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

@media(max-width:1199px){
 .sc table,.sc tbody{display:block;min-width:0;width:100%}
 .sc thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .sc-table-wrap{overflow:visible;border:0;border-radius:0;background:transparent}
 .sc tbody{display:grid;gap:18px}
 .sc tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:22px;border:1px solid #c4d6cb;border-radius:16px;box-shadow:0 3px 12px #183d3707}
 .sc td{display:block;border:0;padding:0;min-width:0}
 .sc td[data-label]:before{content:attr(data-label);display:block;font-weight:700;font-size:15px;margin-bottom:9px;color:#183d37}
 .sc-person,.sc-check-cell,.sc-record-cell{grid-column:1/-1}
 .sc-person>strong{font-size:21px}
 .sc-person small{margin:5px 0}
 .sc-checks{gap:12px}
 .sc-check{flex-direction:row;align-items:center;justify-content:center;padding:16px 12px;text-align:left}
 .sc-check-copy{align-items:flex-start;flex:0 1 auto;width:auto;gap:5px}
 .sc-review-cell,.sc-portal-cell{padding-top:16px!important;border-top:1px solid #e0e8e2!important}
 .sc-record-cell button{width:auto;min-width:180px}
 .sc-clearance{max-width:680px}
}
@media(max-width:650px){
 .sc{padding:24px 14px 48px}
 .sc h1{font-size:30px}
 .sc h2{font-size:26px}
 .sc h3{font-size:20px}
 .sc-heading,.sc-tools,.sc-detail-heading{align-items:stretch;flex-direction:column}
 .sc-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}
 .sc-counts article{padding:14px}
 .sc-counts span{font-size:15px}
 .sc-counts strong{font-size:30px}
 .sc-counts small{font-size:14px}
 .sc-tools{gap:16px}
 .sc-tools label:last-child{min-width:0}
 .sc tbody{gap:16px}
 .sc tbody tr{padding:18px 14px;gap:18px 14px}
 .sc-person>strong{font-size:21px}
 .sc-checks{gap:8px}
 .sc-check{flex-direction:column;justify-content:flex-start;gap:10px;padding:12px 5px;text-align:center}
 .sc-check-copy{flex:1;width:100%;align-items:center;gap:8px}
 .sc-check-label{font-size:16px}
 .sc-check-count{margin-top:10px}
 .sc-record-cell button{width:100%}
 .sc-detail-grid{grid-template-columns:1fr}
 .sc-detail{padding:22px 16px}
 .sc-detail>.sc-checks{gap:8px}
 .sc-detail>.sc-checks .sc-check{padding:12px 5px}
 .sc dl>div{grid-template-columns:1fr;gap:3px;padding:12px 0}
 .sc dt{font-weight:700}
 .sc-login,.sc-dbs-review,.sc-passport{padding:18px 14px}
 .sc-actions{flex-direction:column}
 .sc-actions button,.sc-dbs-review button{width:100%}
}
@media(max-width:360px){
 .sc{padding-left:10px;padding-right:10px}
 .sc tbody tr{padding-left:12px;padding-right:12px;column-gap:12px}
 .sc-review-cell,.sc-portal-cell{grid-column:1/-1}
}
