/* Shared module appearance; loaded last on every signed-in page. */
.cmvd-app main [hidden]{display:none!important}
.cmvd-app .ot-visibility .actions{align-items:center;justify-content:space-between}.cmvd-app .ot-visibility form{margin:0}.cmvd-app .ot-model-actions{margin:12px 0 18px}
.cmvd-app .module-home{display:inline-flex;align-items:center;gap:7px;color:#fff;text-decoration:none;font-size:.8rem;border:1px solid #ffffff50;padding:8px 11px;border-radius:10px}.module-home svg{width:19px;height:19px}
.cmvd-app main .hero{border-bottom:1px solid #d9e5f0;margin-bottom:20px;padding:18px 0}.cmvd-app main .hero h1{font-size:clamp(1.45rem,3vw,2rem)}.cmvd-app main .hero p{font-size:.95rem;line-height:1.5}.cmvd-app main h2{font-size:1.15rem}.cmvd-app main .card{border-radius:18px;border-color:#d5e2ef;box-shadow:0 4px 16px #17385f08}.cmvd-app main .card>.badge{justify-self:start}
.cmvd-app main .nav:not(.ot-tabs){display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.cmvd-app main .nav:not(.ot-tabs)>a{flex-direction:column;gap:9px;text-align:center;min-height:106px;border-radius:16px;background:white;font-size:.9rem;line-height:1.3;padding:16px 10px;box-shadow:0 3px 12px #17385f08}.cmvd-app main .nav>a svg{width:30px;height:30px;color:#f66a10}.cmvd-app main .nav>a[aria-current=page]{background:#e9f4fd;color:#17385f;border-color:#72b6e3}
.cmvd-app main .actions .button{border:1px solid transparent}.cmvd-app main .button.secondary{background:#eef5fc;border-color:#cfdfed;color:#17385f}.cmvd-app main label{font-size:.93rem}.cmvd-app main .field input,.cmvd-app main .field select,.cmvd-app main .field textarea{font-size:1rem}.cmvd-app button:disabled{opacity:.55;cursor:default}.cmvd-app .ot-import-person button{width:100%}.cmvd-app .ot-import-person{align-content:start}.cmvd-app .module-index .grid>.card{border-top:3px solid #2185c7}
@media(max-width:640px){.cmvd-app main.container,.cmvd-app main.wide-container{max-width:calc(100% - 20px)!important;min-width:0;margin:14px auto}.cmvd-app main .grid,.cmvd-app main .filter-grid,.cmvd-app main .audit-filters{grid-template-columns:1fr!important}.cmvd-app main .home-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cmvd-app main .nav:not(.ot-tabs){grid-template-columns:repeat(2,minmax(0,1fr))}.cmvd-app main .actions{display:flex!important;flex-wrap:wrap!important;gap:9px}.cmvd-app main .actions>.button,.cmvd-app main .actions>button{width:auto!important;flex:1 1 130px;min-height:46px;font-size:.86rem}.cmvd-app main .card{padding:16px!important}.cmvd-app main .hero h1{font-size:1.5rem!important}.cmvd-app main .hero p{font-size:.94rem!important}.cmvd-app main input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.cmvd-app main select,.cmvd-app main textarea{font-size:16px;max-width:100%}.cmvd-app main .table-wrap{width:100%;max-width:100%;overflow:auto}.cmvd-app main .signature-pad-wrap{max-width:100%}.cmvd-app .top-user{gap:7px}.cmvd-app .topbar{padding:8px 10px}.cmvd-app .module-home{padding:7px 9px;font-size:.73rem}.cmvd-app main .schedule-grid input,.cmvd-app main .schedule-grid select{font-size:inherit}.cmvd-app .daily-simple .report-grid,.cmvd-app .daily-simple .team-grid{grid-template-columns:1fr!important}}

.cmvd-app.module-index main .grid .actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.cmvd-app.module-index main .grid .actions>a.button{flex-direction:column;text-align:center;min-height:96px;gap:9px;padding:14px 8px}.cmvd-app.module-index main .grid .actions>a.button svg{width:29px;height:29px;color:#f46a17}.cmvd-app.module-index main .hero .actions>a.button svg{width:24px;height:24px}

/* v1.3.2: bright accents, compact data, intact dates and numbers. */
.cmvd-app{background:linear-gradient(135deg,#eef7ff 0,#f0fcfa 65%,#fff8ed 100%)}
.cmvd-app .topbar{background:linear-gradient(110deg,#123b68,#087e91)}
.cmvd-app main .hero .badge.ok{background:#def8ef;color:#087564}
.cmvd-app main .button:not(.secondary),.cmvd-app main button:not(.secondary){background:#087eb0;color:#fff}
.cmvd-app main .button:not(.secondary):hover,.cmvd-app main button:not(.secondary):hover{background:#086792}
.cmvd-app main .card{border-top-color:#9cdedc}
.cmvd-app .trip-preview,.cmvd-app .ot-dashboard{width:calc(100% - 32px);max-width:1600px}
.cmvd-app .trip-table{width:100%;min-width:1080px;table-layout:auto;font-size:.84rem;line-height:1.35}
.cmvd-app .trip-table th,.cmvd-app .trip-table td{padding:9px 7px;overflow-wrap:normal;word-break:normal;vertical-align:middle}
.cmvd-app .trip-table th{background:#e2f4f7;color:#16405b;white-space:nowrap;font-size:.8rem}
.cmvd-app .trip-table td:nth-child(2){min-width:120px;max-width:165px}
.cmvd-app .trip-table td:nth-child(4),.cmvd-app .trip-table td:nth-child(7){min-width:95px;max-width:150px}
.cmvd-app .trip-table td:nth-child(1),.cmvd-app .trip-table td:nth-child(3),.cmvd-app .trip-table td:nth-child(5),.cmvd-app .trip-table td:nth-child(6),.cmvd-app .trip-table td:nth-child(8),.cmvd-app .trip-table td:nth-child(9),.cmvd-app .trip-table td:nth-child(10),.cmvd-app .trip-table td:nth-child(11),.cmvd-app .trip-table td:nth-child(12){white-space:nowrap;font-variant-numeric:tabular-nums}
.cmvd-app .trip-table .button,.cmvd-app .trip-table button,.cmvd-app .ot-accounts .button{white-space:nowrap;overflow-wrap:normal;min-height:36px;min-width:0;padding:8px 10px;font-size:.79rem;width:auto}
.cmvd-app .trip-table .badge{font-size:.7rem;padding:4px 6px;white-space:nowrap}
.cmvd-app .trip-table tbody tr:nth-child(even),.cmvd-app .ot-accounts tbody tr:nth-child(even){background:#f3fbfc}
.cmvd-app .trip-table tbody tr:hover,.cmvd-app .ot-accounts tbody tr:hover{background:#eaf6ff}
.cmvd-app .ot-accounts{width:100%;min-width:750px;font-size:.94rem}
.cmvd-app .ot-accounts td,.cmvd-app .ot-accounts th{padding:12px 10px;overflow-wrap:normal}
.cmvd-app .ot-accounts th{background:#e3f5f6;color:#16405b}
.cmvd-app .ot-accounts td:nth-child(n+3){white-space:nowrap;font-variant-numeric:tabular-nums}
.ot-pay-value,.ot-comp-value,.ot-debt-value{display:inline-block;font-weight:750;border-radius:8px;padding:5px 9px;font-variant-numeric:tabular-nums}
.ot-pay-value{background:#e7f1ff;color:#13589c}.ot-comp-value{background:#daf5ee;color:#096d60}.ot-debt-value{background:#fff0df;color:#974700}
.cmvd-app .ot-counters .ot-counter:first-child{border-top:4px solid #209fe4}.cmvd-app .ot-counters .ot-counter:last-child{border-top:4px solid #18a892}.cmvd-app .ot-counters .ot-negative{border-top-color:#ef943e!important}
.team-load{margin-bottom:16px;border-left:5px solid #96a6b6!important}.team-load-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.team-load-heading h2{margin:0 0 6px}.load-light{border-radius:12px;padding:10px 15px;background:#eef1f4;white-space:nowrap;font-size:1.3rem}.load-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.load-values>div{background:#f0f8fc;border-radius:10px;padding:10px}.load-values span,.load-values strong{display:block}.load-values span{font-size:.8rem;color:#536a7d}.load-values strong{font-size:1.2rem;color:#153b61;font-variant-numeric:tabular-nums}.team-load>p{font-size:.82rem}.team-load[data-level=over]{border-left-color:#13a780!important}.team-load[data-level=over] .load-light{background:#dff7ed;color:#096f51}.team-load[data-level=equal]{border-left-color:#96a6b6!important}.team-load[data-level=equal] .load-light{background:#eef1f4;color:#465564}.team-load[data-level=under]{border-left-color:#dc5260!important}.team-load[data-level=under] .load-light{background:#fff0f1;color:#ab2937}.load-warning{color:#9c4c05;font-weight:600}
@media(min-width:1200px){.cmvd-app .trip-preview>.card{padding:18px}.cmvd-app .trip-table td:nth-child(2){max-width:190px}.cmvd-app .trip-table td:nth-child(4),.cmvd-app .trip-table td:nth-child(7){max-width:160px}}
@media(max-width:640px){.team-load-heading{align-items:flex-start;flex-direction:column}.load-values{grid-template-columns:repeat(2,minmax(0,1fr))}.cmvd-app .trip-table{font-size:.88rem}.cmvd-app .ot-accounts{min-width:740px}.cmvd-app main .table-wrap{border-radius:12px;border:1px solid #d5e7eb}.cmvd-app .ot-accounts th,.cmvd-app .ot-accounts td{padding:10px 8px}}
.cmvd-app main button,.cmvd-app main .button{overflow-wrap:normal;word-break:normal}
.cmvd-app main .table-wrap table:not(.trip-table):not(.ot-accounts) td{overflow-wrap:break-word;word-break:normal}

/* v1.3.6: prevent cards/forms/tables from clipping content on narrower screens. */
.cmvd-app main,.cmvd-app main *{min-width:0}
.cmvd-app main .card,.cmvd-app main .grid>*,.cmvd-app main .actions>*{max-width:100%}
.cmvd-app main .card{overflow-wrap:anywhere}
.cmvd-app main .table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}
.cmvd-app main .table-wrap table{width:100%;max-width:none}
.cmvd-app main th,.cmvd-app main td{white-space:normal;overflow-wrap:anywhere;word-break:normal}
.cmvd-app main td .button,.cmvd-app main td button{white-space:normal;max-width:100%;text-align:center}
.cmvd-app .vehicle-config-form{display:grid;grid-template-columns:minmax(90px,120px) minmax(180px,1fr) minmax(140px,180px) auto;gap:12px}
@media(max-width:800px){.cmvd-app .vehicle-config-form{grid-template-columns:1fr 1fr}.cmvd-app .vehicle-config-form button{width:100%}}
@media(max-width:520px){.cmvd-app .vehicle-config-form{grid-template-columns:1fr}.cmvd-app main .table-wrap table{min-width:640px}.cmvd-app .ot-admin-actions{align-items:stretch}.cmvd-app .ot-admin-actions>strong{flex-basis:100%}}
