
/* Driver Intelligence styles — shared shell and navigation now inherit the standard dashboard layout. */
.cfi-driver-mode .main-view{padding:13px 19px 18px!important;background:linear-gradient(140deg,#fafaf8,#f5f5f2)}.dx-stage{display:none}.cfi-driver-mode .dx-stage{display:block;font-size:10px;font-weight:800;color:#8093ac;white-space:nowrap;padding-left:18px;border-left:1px solid #e6e9e8}
.dx-app{--dx-ink:#072c3e;--dx-muted:#7891a2;--dx-border:#e6eae8;--dx-teal:#00474f;color:var(--dx-ink);font:12px "DM Sans",Inter,Arial,sans-serif;width:100%}.dx-app *{box-sizing:border-box}.dx-app button,.dx-app input,.dx-app select{font:inherit}.dx-app button{cursor:pointer}.dx-app button:focus-visible,.dx-app input:focus-visible,.dx-app select:focus-visible{outline:2px solid #098ad5;outline-offset:3px}.dx-app h1,.dx-app h2,.dx-app h3,.dx-app p{margin:0}.dx-icon{height:18px;width:18px;display:inline-block;vertical-align:middle;flex:none}
.dx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--dx-border);background:#fffefa;border-radius:17px;margin-bottom:13px;min-height:101px;box-shadow:0 4px 19px #21444c09}.dx-kpi{display:flex;align-items:center;gap:17px;min-width:0;padding:15px 22px;position:relative}.dx-kpi+.dx-kpi:before{content:'';position:absolute;left:0;top:16px;bottom:16px;border-left:1px solid #e7e9e7}.dx-kpi-icon{width:61px;height:61px;display:grid;place-items:center;border-radius:50%;background:#e8f8f1;color:#007364;flex:none}.dx-kpi-icon .dx-icon{height:29px;width:29px;stroke-width:2.25}.dx-kpi-icon.rest{color:#955010;background:#fff2e1}.dx-kpi-icon.available{color:#136395;background:#eaf6fc}.dx-kpi>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}.dx-kpi strong{font-size:30px;font-weight:850;letter-spacing:-1px;line-height:1}.dx-kpi span{font-size:12px;font-weight:800}.dx-kpi small{color:var(--dx-muted);font-size:10px}
.dx-workspace{display:grid;grid-template-columns:minmax(0,2.12fr) minmax(355px,1fr);gap:12px;align-items:stretch}.dx-panel{min-width:0;border:1px solid var(--dx-border);border-radius:17px;background:#fffefa;box-shadow:0 4px 19px #183f4d09}.dx-roster{min-height:711px;display:flex;flex-direction:column;overflow:hidden}.dx-roster-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 17px;border-bottom:1px solid var(--dx-border);min-height:66px}.dx-roster-head h2{font-size:21px;white-space:nowrap;letter-spacing:-.7px}.dx-filters{display:flex;align-items:center;gap:7px;min-width:0}.dx-search{display:flex;align-items:center;gap:7px;border:1px solid #e1e7e7;border-radius:9px;height:37px;padding:0 10px;width:246px;min-width:140px}.dx-search .dx-icon{width:16px}.dx-search input{width:100%;min-width:0;color:#0b4352;border:0!important;outline:0;background:transparent;font-size:11px}.dx-search input::placeholder{color:#95a8b0}.dx-filters select{height:37px;border:1px solid #e2e7e7;border-radius:9px;max-width:122px;background:#fffefa;padding:0 7px;font-size:11px;color:#174d5c}.dx-switch{display:flex;border:1px solid #e0e7e6;border-radius:9px;overflow:hidden}.dx-switch button{border:0;background:#fffefa;min-height:36px;display:flex;gap:4px;align-items:center;padding:0 10px;font-size:10px;font-weight:800}.dx-switch button.active{background:#00474f;color:#fff}.dx-switch .dx-icon{width:13px}.dx-scroll{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden}.dx-table{width:100%;border-collapse:collapse;table-layout:fixed}.dx-table th{text-align:left;padding:11px 9px;font-size:10px;border-bottom:1px solid #e5ebe8;color:#154658}.dx-table td{padding:8px 9px;vertical-align:middle;overflow-wrap:anywhere}.dx-table td:first-child{padding-left:12px}.dx-table tr{height:90px;border-bottom:1px solid #e9eeeb}.dx-table tbody tr.dx-selected{background:linear-gradient(100deg,#ecfaf4,#f3fbf7);box-shadow:inset 3px 0 #28cba7}.dx-table tbody tr:hover{background:#f5faf8}.dx-name-btn{display:block;padding:0;background:transparent;border:0;width:100%;text-align:left}
.dx-person{display:flex;align-items:center;gap:11px;min-width:0}.dx-face{display:block;overflow:hidden;border-radius:9px;width:62px;height:67px;background:#e6eeec;flex:none}.dx-face img,.dx-feature-photo img,.dx-modal-profile img{height:100%;width:100%;object-fit:cover;display:block}.dx-person>span:last-child{display:flex;flex-direction:column;gap:6px;min-width:0}.dx-person strong{font-size:13px;font-weight:800;color:#092949;line-height:1.3}.dx-person small{font-size:10px;color:#7c92a9;line-height:1.3}
.dx-status{display:flex;gap:8px;align-items:center}.dx-status-mark{display:grid;place-items:center;flex:none;width:41px;height:41px;border-radius:50%;background:#e7f8f1;color:#006e61}.dx-status-mark .dx-icon{width:22px;height:22px}.dx-status>span:last-child{display:flex;flex-direction:column;gap:4px}.dx-status strong{font-size:10px;color:#008264}.dx-status small{font-size:10px;color:#8398ad}.dx-status-resting .dx-status-mark{background:#fff1e1;color:#9d590f}.dx-status-resting strong{color:#9b5513}.dx-status-available .dx-status-mark{background:#eaf6fd;color:#0a5a98}.dx-status-available strong{color:#116bb1}
.dx-vehicle{display:flex;align-items:center;gap:8px;min-width:0}.dx-bus-img{width:81px;height:49px;object-fit:contain;mix-blend-mode:multiply;border-radius:6px;flex:none}.dx-bus-empty{display:grid;place-items:center;background:#edf0f2;color:#aebbc5;width:70px;height:55px;border-radius:8px;flex:none}.dx-vehicle>span:last-child,.dx-small-bus>span:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}.dx-vehicle strong{font-size:12px;color:#122e50}.dx-vehicle small,.dx-small-bus small{font-size:10px;color:#8097a9;line-height:1.25}
.dx-docs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.dx-doc{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;border-radius:8px;background:#e8f8f1;color:#135666;padding:4px 1px;gap:2px;min-width:0}.dx-doc .dx-icon{width:15px;height:15px}.dx-doc strong{font-size:9px}.dx-doc small{font-size:9px;color:#078254}.dx-doc.dx-soon{background:#fff0da}.dx-doc.dx-soon small{color:#d77417}.dx-doc.dx-expired{background:#ffe7e7}.dx-doc.dx-expired small{color:#b93535}.dx-doc.dx-missing{background:#f1f2f2}.dx-doc.dx-missing small{color:#8299a7}
.dx-cal-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#fffefa;border:1px solid #dae3e4;border-radius:9px;padding:9px 7px;font-size:10px;font-weight:750;white-space:nowrap}.dx-cal-btn .dx-icon{width:15px}.dx-roster-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;border-top:1px solid #e9edeb;padding:12px 17px;font-size:10px;color:#788fa6;margin-top:auto}.dx-roster-foot>div{display:flex;align-items:center;gap:8px}.dx-roster-foot button{background:transparent;border:0;color:#176071;font-size:10px;display:inline-flex;gap:4px;align-items:center;font-weight:700}.dx-roster-foot nav{display:flex;align-items:center;gap:7px}.dx-roster-foot nav button{border:1px solid #e1e6e5;display:grid;place-items:center;border-radius:8px;width:28px;height:29px;background:#fffefa}.dx-roster-foot nav button.active{background:#00474f;color:#fff}.dx-roster-foot nav button:disabled{opacity:.3}.dx-roster-foot nav .dx-icon{height:15px}
.dx-details{min-height:711px;display:flex;flex-direction:column;gap:9px;padding:15px 16px 12px}.dx-detail-head{display:flex;align-items:flex-start;gap:14px}.dx-feature-photo{width:112px;height:126px;border-radius:10px;overflow:hidden;background:#eaf2ed;flex:none}.dx-detail-head>div{flex:1;min-width:0}.dx-detail-head>div>small{color:#ae7551;letter-spacing:1px;font-weight:800;font-size:9px}.dx-detail-head h2{font-size:22px;line-height:1.15;margin:7px 0 4px;letter-spacing:-.6px}.dx-detail-head p{color:#8a9db0;font-size:11px;margin-bottom:7px}.dx-detail-head .dx-status-mark{width:34px;height:34px}.dx-detail-head .dx-status-mark .dx-icon{width:18px}.dx-dots{position:relative}.dx-dots summary{list-style:none;display:grid;place-items:center;height:34px;width:33px;border:1px solid #e1e7e6;border-radius:8px;cursor:pointer}.dx-dots summary::-webkit-details-marker{display:none}.dx-dots>div{position:absolute;right:0;top:34px;z-index:4;background:#fffefa;border:1px solid #e1e6e5;border-radius:8px;padding:4px;min-width:100px;box-shadow:0 8px 16px #123b401c}.dx-dots>div button{display:block;padding:9px;border:0;background:transparent;width:100%;text-align:left}
.dx-main-button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;min-height:41px;background:#00474f;color:#fff;font-weight:800;font-size:12px}.dx-main-button .dx-icon:last-child{margin-left:auto}.dx-detail-block{border-bottom:1px solid #e9eeec;padding:4px 0 10px}.dx-detail-block>header{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:9px}.dx-detail-block>header strong{font-size:12px}.dx-detail-block>header button{display:flex;align-items:center;gap:3px;background:none;border:0;color:#286476;font-size:10px;font-weight:800;white-space:nowrap}.dx-detail-block>header button .dx-icon{width:14px}.dx-small-bus{display:flex;align-items:center;gap:10px}.dx-small-bus .dx-bus-img{width:110px;height:53px}.dx-small-bus strong{font-size:12px}.dx-hint{font-size:10px;color:#8ca0ac;margin:5px 0 0}.dx-partner{display:flex;align-items:center;gap:10px}.dx-partner .dx-face{width:55px;height:60px}.dx-partner>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px}.dx-partner>span strong{font-size:12px}.dx-partner>span small{font-size:10px;color:#8597a9}.dx-partner-view{background:#fffefa;border:1px solid #e0e5e5;border-radius:8px;padding:8px;font-size:10px;white-space:nowrap}.dx-doc-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.dx-doc-detail>div{display:flex;gap:5px;min-width:0}.dx-doc-detail i{display:grid;place-items:center;background:#e8f4ef;border-radius:50%;width:27px;height:27px;flex:none}.dx-doc-detail i .dx-icon{width:15px}.dx-doc-detail span{display:flex;flex-direction:column;gap:4px;min-width:0}.dx-doc-detail span small{font-size:9px;color:#889aae}.dx-doc-detail strong{font-size:10px;color:#007d55}.dx-doc-detail strong.dx-soon{color:#a75d19}.dx-doc-detail strong.dx-expired{color:#b43535}.dx-profile-button{margin-top:auto}.dx-alert{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#f0faf3;border:1px solid #e0ece6;border-radius:9px;font-size:11px;color:#197454}.dx-alert strong{flex:1}.dx-alert button{background:none;border:0;font-size:10px;color:#14546b;font-weight:700}.dx-alert-warn{background:#fff2de;color:#aa5826}.dx-footnote{display:block;margin-top:7px;color:#7e92a0;font-size:9px}
.dx-cardgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px}.dx-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:15px;border:1px solid #dce7e2;border-radius:13px;background:#fffefa}.dx-card-selected{background:#eafbf3;border-color:#25c8a4}.dx-card>button:first-child{background:none;border:0;padding:0;text-align:left}.dx-card .dx-docs{width:100%}.dx-empty{padding:35px;color:#718697;text-align:center}
.dx-crumb{display:flex;gap:14px;align-items:center;margin-bottom:10px;color:#8194a7}.dx-crumb button{background:none;border:0;color:#0f4a5b;display:flex;align-items:center}.dx-calendar-page>h1{font-size:26px;margin-bottom:12px}.dx-calendar-banner{display:flex;align-items:center;justify-content:space-around;gap:15px;border-radius:14px;border:1px solid #e2e7e6;background:#fffefa;padding:13px;margin-bottom:12px}.dx-calendar-layout{display:grid;grid-template-columns:2.12fr 1fr;gap:12px}.dx-calendar-main,.dx-assign{padding:16px}.dx-calendar-toolbar{display:flex;align-items:center;gap:9px}.dx-calendar-toolbar button{border:1px solid #dfe7e6;border-radius:8px;background:#fffefa;padding:9px}.dx-calendar-toolbar strong{font-size:13px}.dx-calendar-toolbar span{margin-left:auto;background:#00474f;color:#fff;border-radius:7px;padding:11px}.dx-legend{padding:16px 0;color:#6b8294;font-size:11px}.dx-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #e1e8e6;border-radius:10px;overflow:hidden;min-height:350px}.dx-week>div{border-right:1px solid #e4e9e9}.dx-week>div:last-child{border:0}.dx-week header{display:flex;flex-direction:column;align-items:center;gap:4px;padding:11px 2px;border-bottom:1px solid #e4e9e9;font-size:10px}.dx-week header strong{font-size:16px}.dx-week header small{color:#8297aa}.dx-unscheduled{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#a3b1bb;font-size:10px;text-align:center;padding:4px}.dx-week-note{border-top:1px solid #e5e9e8;padding:15px 0;margin-top:15px}.dx-week-note p{color:#8299aa;font-size:11px;margin-top:6px}.dx-assign h2{font-size:20px}.dx-assign>p{color:#8294a9}.dx-assign label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;margin:13px 0}.dx-assign input{width:70%;max-width:70%;padding:10px;border-radius:8px;border:1px solid #e0e6e4;color:#607d8a}.dx-notice{padding:12px;border-radius:9px;background:#fff2de;color:#a47731;font-size:11px}.dx-assign .dx-main-button,.dx-cancel{width:100%;margin-top:9px}.dx-cancel{border:1px solid #dee7e6;border-radius:9px;background:#fffefa;padding:10px}
.dx-modal-profile{display:flex;gap:15px}.dx-modal-profile img{width:100px;height:110px;border-radius:9px;object-fit:cover}.dx-modal-profile p{margin-top:6px;font-size:11px}
@media(max-width:1430px){.dx-kpi{padding:12px;gap:9px}.dx-kpi-icon{width:49px;height:49px}.dx-filters{gap:4px}.dx-search{width:180px}.dx-roster-head{flex-wrap:wrap}.dx-roster-head h2{font-size:19px}.dx-table td{padding:8px 5px}.dx-face{width:53px}.dx-bus-img{width:63px}.dx-docs{gap:3px}}
@media(max-width:1130px){.dx-workspace{grid-template-columns:1fr}.dx-details{min-height:auto}.dx-roster{min-height:620px}.dx-search{flex:1}.dx-filters{flex:1}.dx-calendar-layout{grid-template-columns:1fr}}
@media(max-width:700px){.cfi-driver-mode .dx-stage{display:none}.cfi-driver-mode .main-view{padding:12px!important}.dx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dx-kpi{min-width:0}.dx-kpi:nth-child(n+3){border-top:1px solid #e2e7e5}.dx-kpi strong{font-size:24px}.dx-kpi-icon{width:42px;height:42px}.dx-roster-head{flex-direction:column;align-items:stretch}.dx-filters{flex-wrap:wrap}.dx-search{width:100%;min-width:100%;flex:none}.dx-filters select{flex:1;max-width:none}.dx-table{min-width:800px}.dx-scroll{max-width:100%;overflow-x:auto}.dx-roster-foot{flex-wrap:wrap}.dx-cardgrid{grid-template-columns:1fr}.dx-feature-photo{width:96px;height:110px}.dx-detail-head h2{font-size:19px}.dx-calendar-banner{flex-direction:column;align-items:stretch}.dx-week{min-width:720px}.dx-calendar-main{overflow-x:auto}.dx-calendar-toolbar{flex-wrap:wrap}}


/* Driver Intelligence 50% refinements — use the existing verified transparent fleet cut-outs. */
.cfi-driver-mode .dx-bus-img,.cfi-driver-mode .dx-transparent-coach{background:transparent!important;border:0!important;box-shadow:none!important;mix-blend-mode:normal!important;object-fit:contain!important;filter:drop-shadow(0 2px 1.5px rgba(14,43,56,.16));}
.cfi-driver-mode .dx-bus-empty{background:transparent!important;border:0!important;color:#aab8c0}
.cfi-driver-mode .dx-vehicle,.cfi-driver-mode .dx-small-bus{background:transparent!important}
.cfi-driver-mode .dx-vehicle .dx-bus-img{width:92px;height:53px}
.cfi-driver-mode .dx-small-bus .dx-bus-img{width:118px;height:59px}
.cfi-driver-mode .dx-calendar-banner .dx-bus-img{width:112px;height:62px}
.dx-preference-row{display:flex;align-items:center;gap:7px;padding:8px 0 1px;font-size:10px;color:#496c7c;border-top:1px solid #edf2ef;margin-top:8px}
.dx-preference-row .dx-icon{width:14px;height:14px;color:#087768}
.dx-preference-row strong{color:#124b54}
.dx-preference-row small{color:#ad8156}
.dx-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.dx-document-card{display:flex;align-items:flex-start;gap:9px;border:1px solid #e4eee9;background:#f4fbf8;border-radius:10px;padding:12px;min-width:0}
.dx-document-card.dx-document-soon{background:#fff8e8;border-color:#efdfbd}
.dx-document-card.dx-document-expired{background:#fff2f2;border-color:#efcccc}
.dx-document-card.dx-document-missing{background:#f6f6f6;border-color:#e3e5e5}
.dx-document-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e2f4ed;color:#105d66;flex:none}
.dx-document-icon .dx-icon{width:17px;height:17px}
.dx-document-card h3{font-size:12px;margin:0 0 4px;color:#0f344a}
.dx-document-card p{margin:3px 0!important;overflow-wrap:anywhere;font-size:10px;color:#59727d;line-height:1.4}
.dx-document-disclaimer,.dx-document-modal>p{font-size:11px;line-height:1.55;color:#667e8d}
.dx-plan-dialog{display:flex;flex-direction:column;gap:12px}
.dx-plan-dialog p{font-size:12px;line-height:1.6;color:#5f7784}
.dx-plan-dialog label{font-size:12px;font-weight:800;color:#164d5b}
.dx-plan-dialog select{min-height:44px;border:1px solid #d8e7e5;border-radius:9px;padding:0 12px;background:#fff;color:#114657}
.dx-plan-dialog .dx-preference-error{background:#fff0ea;border:1px solid #edbcb1;border-radius:9px;padding:10px;color:#a23b2d}
@media(max-width:700px){.dx-document-grid{grid-template-columns:1fr}.cfi-driver-mode .dx-small-bus .dx-bus-img{width:110px}}

/* Calendar comparison fidelity and controls (50% review). */
.dx-calendar-toolbar{gap:8px;flex-wrap:wrap}
.dx-calendar-toolbar>strong{font-size:12px;flex:1;min-width:170px}
.dx-calendar-view-switch{display:flex;border:1px solid #d9e6e4;border-radius:9px;overflow:hidden}
.dx-calendar-view-switch button{background:#fffefa;border:0;border-radius:0;padding:9px 14px;font-size:11px;font-weight:750}
.dx-calendar-view-switch button.active{background:#00474f;color:white}
.dx-calendar-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 0}
.dx-calendar-meta label{display:flex;align-items:center;gap:8px;font-size:11px;color:#507381;cursor:pointer}
.dx-calendar-meta input{accent-color:#087e64;width:17px;height:17px}
.dx-legend{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:0}
.dx-legend span{display:flex;align-items:center;gap:5px}
.dx-legend i{width:12px;height:12px;border-radius:50%;background:#e5e9e8}
.dx-legend i.dx-legend-duty{background:#a7efd8}
.dx-legend i.dx-legend-rest{background:#ffdc9d}
.dx-week-grid{display:grid;grid-template-columns:43px minmax(0,1fr);gap:4px;min-width:0}
.dx-time-axis{display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:#8596a8;padding-top:75px;padding-bottom:2px}
.dx-week{border-radius:9px;min-height:384px;grid-template-columns:repeat(7,minmax(0,1fr))}
.dx-cal-day{min-width:0;border-right:1px solid #e5ebe7;display:flex;flex-direction:column}
.dx-cal-day:last-child{border-right:0}
.dx-cal-day-label{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 3px;min-height:73px;background:#fffefa;border:0;border-bottom:1px solid #e8efea;font-size:10px;font-weight:800;color:#164050}
.dx-cal-day-label strong{font-size:13px}
.dx-cal-day-label small{font-size:9px;color:#728ba0;font-weight:500}
.dx-cal-day.dx-cal-active .dx-cal-day-label{background:#e3f8ed}
.dx-cal-day-content{position:relative;flex:1;min-height:300px;padding:5px;background:repeating-linear-gradient(to bottom,#fffefa 0,#fffefa 49px,#edf0ed 50px)}
.dx-cal-day.dx-cal-active .dx-cal-day-content{background:repeating-linear-gradient(to bottom,#f5fdf9 0,#f5fdf9 49px,#e2f1e8 50px)}
.dx-cal-not-published{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;font-size:9px;color:#a0b0ba}
.dx-cal-not-published svg{width:20px}
.dx-cal-event{display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:#e0f9f0;border:1px solid #a9e9d0;border-left:3px solid #19bb96;color:#174c58;border-radius:7px;padding:8px 6px;width:100%;text-align:left;font-size:10px;overflow-wrap:anywhere}
.dx-cal-event+.dx-cal-event{margin-top:7px}
.dx-cal-event strong{font-size:11px}
.dx-cal-event small{font-size:9px;color:#698799}
.dx-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #e2eae6;border-radius:9px;overflow:hidden}
.dx-month-header{display:grid;place-items:center;border-bottom:1px solid #e8efeb;background:#f4f9f7;font-size:10px;font-weight:800;min-height:36px}
.dx-month-cell{background:#fffefa;border:1px solid #eef1ef;border-width:0 1px 1px 0;min-height:86px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;padding:7px;color:#225263}
.dx-month-cell strong{font-size:12px}
.dx-month-cell span{font-size:9px;background:#e6f9ef;padding:4px;border-radius:4px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dx-month-cell.dx-out-month{background:#f9fbf8;color:#adb9bf}
.dx-month-cell.dx-cal-active{box-shadow:inset 0 0 0 2px #40bea3}
.dx-month-cell small{font-size:9px}
@media(max-width:760px){.dx-week-grid{min-width:700px}.dx-month-grid{min-width:660px}.dx-calendar-main{overflow-x:auto}.dx-calendar-toolbar{min-width:0}.dx-time-axis{padding-bottom:7px}}

/* Driver Intelligence 75%: duty scheduling forms, guardrails and paired-calendar entries. */
.dx-assign-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dx-duty-form{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.dx-duty-form label{display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:5px!important;margin:0!important;font-size:11px!important;font-weight:750!important;color:#28596c}
.dx-duty-form input,.dx-duty-form select{background:#fffefa!important;border:1px solid #dae5e5!important;border-radius:8px!important;min-width:0!important;max-width:none!important;width:100%!important;padding:8px 10px!important;min-height:39px!important;font-size:12px!important;color:#174354!important}
.dx-duty-form>button{width:100%;margin-top:3px}
.dx-plan-errors{padding:11px 13px;background:#fff0e8;color:#a53b29;border:1px solid #e9b3a5;border-radius:9px;font-size:11px;line-height:1.55}
.dx-plan-errors ul{padding-left:17px;margin:6px 0 0}
.dx-plan-errors li+li{margin-top:4px}
.dx-planning-limit{padding:9px 12px;background:#eef8f3;border:1px solid #dcebe2;border-radius:9px;color:#4f7868;font-size:10px;line-height:1.6}
.dx-calendar-meta{gap:14px;flex-wrap:wrap}
.dx-calendar-meta .dx-legend{gap:12px;flex-wrap:wrap}
.dx-legend .dx-legend-partner{background:#a9cdef}
.dx-legend .dx-legend-open{background:#dfe6e3}
.dx-cal-event-operator{border-left-color:#068267}
.dx-cal-event-partner{background:#eaf3ff!important;border-color:#b7d7f5!important;border-left:3px solid #278fd2!important}
.dx-cal-event-sample{background:#f0f5f1!important;border-color:#dce6df!important;border-left:3px solid #9faea4!important}
.dx-calendar-main .dx-cal-day-content{overflow-x:hidden}
.dx-month-selected{padding:12px 0;border-top:1px solid #e8ede9;margin-top:12px;display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.dx-month-selected>strong{font-size:11px;flex-basis:100%}
.dx-month-selected .dx-cal-event{width:auto;max-width:200px}
.dx-month-selected p{color:#7b90a1;font-size:11px}
.dx-duty-detail{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#506879}
.dx-duty-detail p{margin:0;line-height:1.5}
.dx-compliance-caution{padding:9px;border-radius:8px;background:#fff5e7;color:#916f3f;font-size:11px}
.dx-cancel-error{padding:9px 11px;background:#ffede7;border:1px solid #ebbcb0;border-radius:9px;color:#9d3825;font-size:11px}
.dx-companion-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:none;border:0;color:#16667a;font-size:11px;font-weight:800;margin-top:12px}
.dx-companion-link .dx-icon{width:14px}
.dx-assign .dx-main-button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:1020px){.dx-duty-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dx-duty-form .dx-plan-errors,.dx-duty-form .dx-planning-limit,.dx-duty-form>button{grid-column:1/-1}.dx-calendar-layout{grid-template-columns:1fr}}
@media(max-width:620px){.dx-duty-form{grid-template-columns:1fr}}

/* Distinguish travel-rest from a day off and from parked-crew standby. */
.dx-status{min-width:0}
.dx-status-mark{position:relative}
.dx-status>span:last-child{min-width:0}
.dx-status strong{line-height:1.25}
.dx-status small{line-height:1.35;overflow-wrap:anywhere}
.dx-status-onboard-rest .dx-status-mark{background:#def7ef;color:#006f61;box-shadow:inset 0 0 0 1px #aedfd1}
.dx-status-onboard-rest strong{color:#007565}
.dx-status-onboard-rest .dx-status-mark::after{content:'';position:absolute;right:1px;top:1px;width:8px;height:8px;border-radius:50%;background:#18a67b;border:2px solid #fffefa}
.dx-status-off-day .dx-status-mark{background:#fff1dd;color:#a46319;box-shadow:inset 0 0 0 1px #f3d6a6}
.dx-status-off-day strong{color:#985b16}
.dx-status-standby .dx-status-mark{background:#e9f0f5;color:#55778a;box-shadow:inset 0 0 0 1px #cadce6}
.dx-status-standby strong{color:#466c7e}
.dx-status-archived .dx-status-mark{background:#eef0ef;color:#8c9996}
.dx-status-archived strong{color:#697b7b}
.dx-filters select#dx-duty{max-width:148px}
@media(max-width:700px){.dx-filters select#dx-duty{max-width:none}}

/* Driver summary — match the two distinct resting states used in the roster.
   The third tile is active-journey relief rest; the fourth is home/off day. */
.dx-kpi-icon.onboard-rest{color:#087a65;background:#def7ee;box-shadow:inset 0 0 0 1px #b8e6d5}
.dx-kpi-icon.off-day{color:#97590c;background:#fff1de;box-shadow:inset 0 0 0 1px #f1d9b2}
.dx-kpi-icon.onboard-rest:after{content:'';position:absolute;width:10px;height:10px;margin:39px 0 0 39px;border-radius:50%;background:#19a783;border:2px solid #fffefa;box-sizing:content-box}
.dx-kpi-icon.onboard-rest{position:relative}
@media(max-width:700px){.dx-kpi span{line-height:1.25}.dx-kpi-icon.onboard-rest:after{margin:28px 0 0 28px;width:7px;height:7px}}


/* Driver profile refinement: operational experience + full document index.
   Scroll only within the profile body so its modal actions stay accessible. */
.dx-profile-modal-shell{max-height:min(69dvh,690px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:5px}
.dx-profile-summary-grid{margin:14px 0 10px}
.dx-profile-summary-grid .dx-document-card{min-height:112px;padding:11px}
.dx-experience-card{background:linear-gradient(140deg,#e9f8f3,#f8fcf6);border-color:#b9e2d3}
.dx-experience-card .dx-document-icon{background:#d0f0e2;color:#07735f}
.dx-experience-card h3{color:#076353}
.dx-experience-card p strong{color:#0a675b}
.dx-document-collection{margin:13px 0;padding:14px;border-radius:13px;border:1px solid #dfe9e4;background:linear-gradient(140deg,#f9fcf9,#f4faf7)}
.dx-document-collection>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.dx-document-collection>header>div{min-width:0}
.dx-document-collection>header strong{display:block;font-size:14px;font-weight:850;color:#143e44}
.dx-document-collection>header p{margin:4px 0 0;font-size:10px;color:#728c96;line-height:1.4}
.dx-document-collection>header>span{flex:none;padding:5px 8px;border-radius:20px;background:#e3f3ed;color:#27685d;font-size:10px;font-weight:750}
.dx-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dx-collection-item{display:grid;grid-template-columns:29px minmax(0,1fr);align-content:start;gap:7px;padding:10px;border:1px solid #e1e9e5;background:#fffefa;border-radius:10px;min-width:0}
.dx-collection-item:last-child:nth-child(odd){grid-column:1/-1}
.dx-collection-icon{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:8px;background:#e9f6ef;color:#0c6c5d}
.dx-collection-icon>.dx-icon{width:16px;height:16px}
.dx-collection-details{min-width:0;display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.dx-collection-details strong{font-size:11px;font-weight:800;color:#173f49}
.dx-collection-details small{font-size:9px;color:#6c8792;line-height:1.4}
.dx-collection-status{grid-column:2;justify-self:start;font-size:9px;line-height:1.3;font-weight:800;padding:4px 6px;border-radius:6px}
.dx-collection-recorded{background:#e6f8ec;color:#137154}
.dx-collection-missing{background:#f4f0e8;color:#8b6a39}
.dx-document-collection-note{font-size:10px;line-height:1.5;color:#68828c;margin:12px 0 0!important}
@media(max-width:620px){.dx-profile-modal-shell{max-height:min(72dvh,650px)}.dx-profile-summary-grid{grid-template-columns:1fr}.dx-collection-grid{grid-template-columns:1fr}.dx-collection-item:last-child:nth-child(odd){grid-column:auto}.dx-document-collection{padding:10px}.dx-document-collection>header>span{font-size:9px}}
