:root{--ui-focus:#176eac;--ui-line:#b9ccdc;--ui-muted:#526b80}
#root button,#dialog button,#root input,#dialog input,#root select,#dialog select,#root textarea,#dialog textarea{font-family:'Segoe UI',Arial,sans-serif;box-sizing:border-box}
#root :is(button,.card,.pw-card,.rp-surface),#dialog,#dialog.wd-unified-dialog{box-shadow:none!important}
#root :is(button,a,input,select,textarea,summary):focus-visible,#dialog :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
#root [hidden],#dialog [hidden]{display:none!important}
.u-next-step{border:1px solid var(--ui-line);border-left:4px solid #286c9c;border-radius:6px;padding:12px 14px;margin:12px 0;background:var(--card,#f1f6fa);line-height:1.5}
.u-next-step strong,.u-next-step small{display:block}.u-next-step small{margin-top:4px;color:var(--muted,var(--ui-muted))}
.u-evidence{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:10px 0}.u-evidence li{border:1px solid var(--ui-line);border-radius:5px;padding:6px 9px;font-size:.8rem;line-height:1.4}.u-evidence .verified{background:#dcf3e4;color:#185b37}.u-evidence .waiting{background:#edf2f7;color:#425a70}.u-evidence .simulated{background:#e6edff;color:#254a7c}
.u-offline-banner{border:1px solid #d4aa4c;background:#fff0c8;color:#65450b;border-radius:6px;padding:12px 16px;line-height:1.5;margin:12px 0}.u-offline-banner strong,.u-offline-banner small{display:block}
.u-sync-status{padding:8px 12px;border:1px solid var(--ui-line);border-radius:5px;line-height:1.5;font-size:.85rem;margin:10px 0}
.u-field-error,[aria-invalid=true]+.u-field-error{display:block;color:#a12121;margin-top:5px;line-height:1.4}[aria-invalid=true]{outline:2px solid #b83434;outline-offset:1px}
.u-pagination,.u-list-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.u-pagination{justify-content:flex-end}.u-pagination span{font-size:.9rem;color:var(--muted,var(--ui-muted))}.u-list-tools label{display:flex;align-items:center;gap:8px}
.u-responsive-table thead th{position:sticky;top:0;z-index:2;background:var(--panel,#e6eef5)}
.u-review-choice{padding:12px;border:1px solid var(--ui-line);border-radius:6px;margin:12px 0}.u-review-choice strong,.u-review-choice small{display:block}
.u-list-count{color:var(--muted,var(--ui-muted));font-size:.9rem;margin:12px 0}
.u-report-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}
.u-kind{display:inline-flex;gap:6px;align-items:center;font-size:.85rem;border:1px solid var(--ui-line);border-radius:5px;padding:4px 8px}
@media(hover:none),(pointer:coarse){#root button,#dialog button,#root summary,#dialog summary{min-height:44px}#root input:not([type=checkbox]):not([type=radio]),#dialog input:not([type=checkbox]):not([type=radio]),#root select,#dialog select{min-height:44px}}
@media(max-width:600px){.u-responsive-table,.u-responsive-table tbody,.u-responsive-table tr,.u-responsive-table td{display:block;width:100%;min-width:0}.u-responsive-table thead{display:none}.u-responsive-table tbody tr{border:1px solid var(--ui-line);border-radius:7px;margin:12px 0;padding:8px}.u-responsive-table td{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);gap:10px;border:0!important;padding:8px!important;overflow-wrap:anywhere}.u-responsive-table td::before{content:attr(data-label);font-weight:600;color:var(--muted,var(--ui-muted))}.u-responsive-table td[colspan]{display:block}.u-responsive-table td[colspan]::before{display:none}.u-responsive-table tfoot{display:block}.u-next-step{padding:10px}.u-pagination{justify-content:space-between}.u-pagination button{flex:0 1 auto}}
@media(prefers-reduced-motion:reduce){#root *,#dialog *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
html[data-theme=dark] .u-next-step,html[data-theme=dark] .u-evidence .waiting{background:#1d394e;color:#e2edf5}html[data-theme=dark] .u-responsive-table th{background:#203d52}html[data-theme=dark] .u-field-error{color:#ffb5b5}

.rp-planning-workspace .rp-drop{min-height:160px;display:flex;flex-direction:column;justify-content:flex-start}.rp-planning-workspace .rp-drop .rp-personname{margin-top:auto}.route-duty-block .planning-slot .confirmation-label{font-weight:700}.route-duty-block .planning-slot small{overflow-wrap:anywhere}
[data-theme="dark"] .vehicle-confirmations .confirmation-state.unconfirmed{background:#382f1e;color:#ffe1a3;border-color:#8a713c}
[data-theme="dark"] .vehicle-confirmations .confirmation-state.unconfirmed :is(h3,strong,small,p){color:inherit}
html body *{box-shadow:none!important}
.u-sync-status>small,.u-offline-banner>small{display:block;margin-top:3px}

/* Shared error feedback: visible in administration, driver and vehicle forms. */
:is(#root,#dialog,dialog,form) :is(#formerror,#error,[data-form-error],.form-error,.u-form-error,.u-field-error,.error-message,.dialog-feedback.form-error):not(:empty),.react-start-error{color:#8f1515!important;background:#fff0f0!important;border:1px solid #c73535!important;border-left:4px solid #c73535!important;border-radius:6px;padding:12px 14px;line-height:1.5;overflow-wrap:anywhere}
:is(#root,#dialog,dialog,form) :is(#formerror,#error,[data-form-error],.form-error,.u-form-error,.error-message):not(:empty){margin:12px 0;font-weight:600}
:is(#root,#dialog,dialog,form) [aria-invalid="true"]{border-color:#c73535!important;outline:2px solid #c73535;outline-offset:1px}
html[data-theme="dark"] :is(#root,#dialog,dialog,form) :is(#formerror,#error,[data-form-error],.form-error,.u-form-error,.u-field-error,.error-message):not(:empty),html[data-theme="dark"] .react-start-error{color:#ffcbcb!important;background:#461d25!important;border-color:#ff8585!important}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) :is(#root,#dialog,dialog,form) :is(#formerror,#error,[data-form-error],.form-error,.u-form-error,.u-field-error,.error-message):not(:empty){color:#ffcbcb!important;background:#461d25!important;border-color:#ff8585!important}}
