/* RefinaLoc only: compact operational detail, branded list and accessible native dialogs. */
#rental_driver_portal {--rdp-surface:#17243a;--rdp-soft:#20324b;--rdp-line:#36506d;--rdp-ink:#e7efff;--rdp-muted:#b8c9e0;--rdp-blue:#78b7ff;--rdp-green:#76dec5;color:var(--rdp-ink)}
html[data-ds-interface=light] #rental_driver_portal {--rdp-surface:#fff;--rdp-soft:#f0f6ff;--rdp-line:#d6e3f3;--rdp-ink:#183451;--rdp-muted:#536b83;--rdp-blue:#1856b3;--rdp-green:#127665}
#rental_driver_portal,#rental_driver_portal * {box-sizing:border-box}
#rental_driver_portal [hidden] {display:none!important}
#rental_driver_portal .driver-portal-shell {display:block;height:auto;min-height:0;overflow:visible;max-width:940px;padding:0 0 8px}
#rental_driver_portal .driver-panel {overflow-wrap:anywhere}
#rental_driver_portal button,#rental_driver_portal a {touch-action:manipulation}
#rental_driver_portal button:disabled {opacity:.6;cursor:wait}
#rental_driver_portal button:focus-visible,#rental_driver_portal a:focus-visible {outline:3px solid #5ba7ed;outline-offset:2px}
#rental_driver_portal .rdp-icon {display:inline-block;width:18px;height:18px;flex:0 0 18px;vertical-align:middle}
#rental_driver_portal .rdpc-header {background:var(--rdp-soft);border:1px solid var(--rdp-line);border-top:3px solid #347de3;padding:10px 12px;border-radius:14px;margin-bottom:10px}
#rental_driver_portal .rdpc-brand {display:flex;align-items:center;gap:10px}
#rental_driver_portal .rdpc-logo {width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;background:#fff;border:1px solid #d6e3f3;border-radius:10px;color:#195495;font-weight:800;overflow:hidden}
#rental_driver_portal .rdpc-logo img {width:100%;height:100%;object-fit:contain;padding:3px}
#rental_driver_portal .rdpc-brand-text {min-width:0;overflow-wrap:anywhere}
#rental_driver_portal .rdpc-brand-text>strong {display:block;font-size:12px;color:var(--rdp-blue);line-height:1.3}
#rental_driver_portal .rdpc-brand-text h2 {font-size:17px;font-weight:800;line-height:1.3;margin:2px 0;color:var(--rdp-ink)}
#rental_driver_portal .rdpc-brand-text small {font-size:11px;font-weight:500;color:var(--rdp-muted)}
#rental_driver_portal .rdpc-brand-text p {margin:0;font-size:12px;line-height:1.3;color:var(--rdp-muted)}
#rental_driver_portal .rdp-back {display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-height:44px;border:0;background:none;color:var(--rdp-blue);padding:0}
#rental_driver_portal .rdp-header-actions {display:flex;gap:8px;margin-top:10px}
#rental_driver_portal .rdp-header-actions button {flex:1;min-height:40px;font-size:12px;padding:6px 8px}
#rental_driver_portal .rdpc-card {border:1px solid var(--rdp-line);border-radius:14px;overflow:hidden;background:var(--rdp-surface);margin-bottom:12px;box-shadow:0 3px 12px #123c6410}
#rental_driver_portal .rdpc-card-top {display:flex;justify-content:space-between;gap:10px;align-items:center;background:linear-gradient(110deg,#164c91,#187889);color:white;padding:10px 14px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
#rental_driver_portal .rdp-status {display:inline-block;background:#e6fff2;color:#166347;border-radius:18px;font-size:11px;font-weight:800;padding:4px 9px;white-space:nowrap}
#rental_driver_portal .rdpc-card-body {padding:14px}
#rental_driver_portal .rdpc-card h3 {font-size:19px;font-weight:800;margin:0 0 8px;color:var(--rdp-blue)}
#rental_driver_portal .rdpc-card strong {font-size:15px}
#rental_driver_portal .rdpc-card p {font-size:14px;line-height:1.4;margin:5px 0;color:var(--rdp-muted)}
#rental_driver_portal .rdpc-card-facts {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#rental_driver_portal .rdpc-card-facts span {background:var(--rdp-soft);border-radius:7px;padding:7px 9px;font-size:12px;font-weight:600}
html[data-ds-interface] #rental_driver_portal .rdpc-card-body button {background:#215fc5;color:#fff!important;border:0;min-height:44px;font-weight:700;padding:9px 14px}
#rental_driver_portal [data-rdp=tab][aria-pressed=true] {background:var(--rdp-soft);color:var(--rdp-blue);border-color:#367fe5;box-shadow:inset 0 -3px #367fe5}
#rental_driver_portal .rdpc-detail {display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
#rental_driver_portal .rdpc-summary {grid-column:1/-1;background:linear-gradient(110deg,#164c91,#187889);color:#fff;padding:12px 14px;border-radius:12px}
#rental_driver_portal .rdpc-summary-row {display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-ds-interface] #rental_driver_portal .rdpc-summary h3 {font-size:19px;font-weight:800;margin:0;color:white!important;line-height:1.3}
#rental_driver_portal .rdpc-summary h3 span {font-size:14px;font-weight:600}
#rental_driver_portal .rdpc-vehicle {display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:12px;line-height:1.4;margin:5px 0}
#rental_driver_portal .rdpc-customer {display:block;font-size:14px;line-height:1.4}
#rental_driver_portal .rdpc-summary p {font-size:12px;line-height:1.4;margin:2px 0 0;color:#e1f4ff}
#rental_driver_portal .rdpc-location,#rental_driver_portal .rdpc-plan {border:1px solid var(--rdp-line);background:var(--rdp-surface);border-radius:12px;padding:12px;min-width:0}
#rental_driver_portal .rdpc-location {border-left:3px solid #26a992}
#rental_driver_portal .rdpc-location-row {display:flex;gap:10px;align-items:center;justify-content:space-between}
#rental_driver_portal .rdpc-location-row>div {min-width:0}
html[data-ds-interface] #rental_driver_portal .rdpc-location h3 {font-size:12px;font-weight:700;color:var(--rdp-green)!important;margin:0 0 5px}
#rental_driver_portal .rdpc-location p {font-size:14px;line-height:1.35;margin:0;overflow-wrap:anywhere}
#rental_driver_portal .rdpc-contact {display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:12px;margin-top:6px;color:var(--rdp-muted)}
#rental_driver_portal .rdp-map,#rental_driver_portal .rdp-phone {display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;padding:8px;min-height:40px;flex-shrink:0;text-decoration:none;font-size:12px;font-weight:700}
html[data-ds-interface] #rental_driver_portal .rdp-map {background:#167563;color:#fff!important}
#rental_driver_portal .rdp-phone {background:var(--rdp-soft);color:var(--rdp-blue)}
#rental_driver_portal .rdp-facts {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
#rental_driver_portal .rdp-facts dt {font-size:11px;color:var(--rdp-muted);margin-bottom:2px}
#rental_driver_portal .rdp-facts dd {font-size:13px;font-weight:600;line-height:1.3;margin:0;overflow-wrap:anywhere}
#rental_driver_portal .rdpc-resource {border-top:1px solid var(--rdp-line);padding-top:7px;margin-top:8px}
#rental_driver_portal .rdpc-resource>strong {display:block;font-size:12px;line-height:1.4}
#rental_driver_portal .rdpc-counts {display:flex;gap:8px;flex-wrap:wrap;margin-top:5px;font-size:11px;color:var(--rdp-muted)}
#rental_driver_portal .rdpc-counts b {color:var(--rdp-blue);font-size:15px;margin-left:3px}
#rental_driver_portal .rdpc-info {grid-column:1/-1;display:flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px;border:1px solid #d9af63;border-radius:8px;background:var(--rdp-soft);color:var(--rdp-ink);font-size:12px;text-align:left}
#rental_driver_portal .rdpc-execution {grid-column:1/-1;background:var(--rdp-surface);border:1px solid var(--rdp-line);border-top:3px solid #347de3;border-radius:12px;padding:10px 12px}
#rental_driver_portal .rdpc-execution-tools {display:flex;justify-content:space-between;align-items:center;gap:10px}
#rental_driver_portal .rdpc-execution-tools label {display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;margin:0}
#rental_driver_portal .rdpc-execution-tools input {width:65px;min-height:38px;padding:5px 8px;font-size:16px;border:1px solid var(--rdp-line);border-radius:8px;background:var(--rdp-soft);color:var(--rdp-ink)}
#rental_driver_portal [data-rdp-note] {display:flex;align-items:center;gap:5px;background:none;color:var(--rdp-blue);border:0;padding:4px;min-height:40px;font-size:12px;font-weight:600}
#rental_driver_portal .rdpc-partial {display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;margin:6px 0}
#rental_driver_portal .rdpc-partial input {width:16px;height:16px;flex-shrink:0}
#rental_driver_portal .rdpc-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
#rental_driver_portal .rdpc-actions button {display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:8px;border-radius:9px;font-size:13px;font-weight:700;line-height:1.25;white-space:normal}
html[data-ds-interface] #rental_driver_portal .rdpc-confirm {background:#215fc5;color:#fff!important;border:1px solid #215fc5}
html[data-ds-interface] #rental_driver_portal .rdpc-occurrence {background:#fff4df;color:#854500!important;border:1px solid #d9a245}
#rental_driver_portal [data-rdp-error] {font-size:13px;color:#dc2626;margin:0}
#rental_driver_portal [data-rdp-error]:not(:empty) {margin:6px 0}
#rental_driver_portal .rdp-muted {color:var(--rdp-muted);font-size:12px;line-height:1.4}
#rental_driver_portal .rdp-readonly {grid-column:1/-1;padding:12px;background:var(--rdp-soft);border-radius:10px;font-size:13px}
#rental_driver_portal .rdpc-dialog {position:fixed;inset:0;margin:auto;width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--rdp-line);border-radius:16px;padding:18px;background:var(--rdp-surface);color:var(--rdp-ink);box-shadow:0 20px 80px #0005}
#rental_driver_portal .rdpc-dialog::backdrop {background:#07142c99}
#rental_driver_portal .rdpc-dialog-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#rental_driver_portal .rdpc-dialog-heading h3 {font-size:17px;font-weight:800;margin:0}
#rental_driver_portal .rdpc-dialog-heading button {min-height:40px;min-width:40px;font-size:26px;background:var(--rdp-soft);border:0;border-radius:8px;color:var(--rdp-ink)}
#rental_driver_portal .rdpc-dialog label {display:block;font-size:13px;font-weight:600;margin-bottom:6px}
#rental_driver_portal .rdpc-dialog textarea {width:100%;font-size:16px;padding:10px;border:1px solid var(--rdp-line);border-radius:8px;color:var(--rdp-ink);background:var(--rdp-surface)}
#rental_driver_portal .rdpc-dialog .rdp-muted {margin:8px 0}
#rental_driver_portal .rdpc-dialog-content p {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:14px}
#rental_driver_portal .rdpc-dialog-content article {border-top:1px solid var(--rdp-line);padding-top:10px;margin-top:10px;font-size:12px}
#rental_driver_portal .rdpc-dialog-buttons {display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
#rental_driver_portal .rdpc-dialog-buttons button {min-height:44px;padding:9px 12px;border-radius:8px;font-size:14px;border:1px solid var(--rdp-line)}
@media(max-width:600px){
 #rental_driver_portal .rdpc-detail {grid-template-columns:1fr;gap:7px}
 #rental_driver_portal .rdpc-header {padding:7px 8px;margin-bottom:7px}
 #rental_driver_portal .rdpc-brand {gap:7px}
 #rental_driver_portal .rdpc-logo {width:38px;height:38px;flex-basis:38px}
 #rental_driver_portal .rdpc-brand-text h2 {font-size:14px}
 #rental_driver_portal .rdpc-brand-text small {font-size:10px}
 #rental_driver_portal .rdpc-brand-text p {font-size:11px}
 #rental_driver_portal .rdpc-summary {padding:9px 11px}
 #rental_driver_portal .rdpc-location,#rental_driver_portal .rdpc-plan {padding:8px 10px}
 #rental_driver_portal .rdpc-resource {display:flex;gap:8px;align-items:center;justify-content:space-between}
 #rental_driver_portal .rdpc-resource>strong {max-width:45%;font-size:11px}
 #rental_driver_portal .rdpc-counts {gap:5px;justify-content:flex-end;margin:0}
 #rental_driver_portal .rdpc-counts span {white-space:nowrap}
 #rental_driver_portal .rdpc-execution {padding:7px 9px}
 #rental_driver_portal .rdpc-vehicle {gap:5px;font-size:11px;margin:3px 0}
}
/* Keep the primary list action legible under the application's light-theme button overrides. */
html[data-ds-interface] body #appScreen #rental_driver_portal .rdpc-card-body button {background:#215fc5!important;color:#fff!important;border-color:#215fc5!important}
@media(max-height:780px){
 #rental_driver_portal .rdpc-header {padding-top:5px;padding-bottom:5px;margin-bottom:6px}
 #rental_driver_portal .rdpc-detail {gap:5px}
 #rental_driver_portal .rdpc-summary {padding:7px 10px}
 #rental_driver_portal .rdpc-vehicle {margin:2px 0}
 #rental_driver_portal .rdpc-location,#rental_driver_portal .rdpc-plan {padding:6px 9px}
 #rental_driver_portal .rdpc-resource {margin-top:5px;padding-top:5px}
 #rental_driver_portal .rdpc-execution {padding:6px 9px}
}

/* The app shell must not add another viewport plus mobile footer space to this view.
   Scope follows the visible section, so navigation restores the original shell. */
html body #appScreen:has(#rental_driver_portal:not(.hidden)),
html body #appScreen .app-main:has(#rental_driver_portal:not(.hidden)) {min-height:0!important}
html body #appScreen .app-main:has(#rental_driver_portal:not(.hidden)) {padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
#rental_driver_portal .rdpc-execution-tools:has(input[type=hidden]) {justify-content:flex-end}
@media(max-width:600px){
 html body #appScreen .app-main:has(#rental_driver_portal:not(.hidden)) {padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important}
 #rental_driver_portal .rdpc-execution-tools:has(input[type=hidden]) [data-rdp-note] {min-height:32px}
}

#rental_driver_portal .rdpc-execution-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
#rental_driver_portal .rdpc-execution-fields label {display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13px;font-weight:600}
#rental_driver_portal .rdpc-execution-fields .input {width:100%;min-width:0;box-sizing:border-box;min-height:40px}
@media(max-width:350px){#rental_driver_portal .rdpc-execution-fields {grid-template-columns:1fr}}

/* Profile identity: selected driver; company branding remains in the global header. */
#rental_driver_portal .rdpc-driver-photo {width:64px;height:64px;flex-basis:64px;border-radius:50%;align-self:flex-start}
#rental_driver_portal .rdpc-driver-photo img {object-fit:cover;padding:0}
#rental_driver_portal .rdpc-operator {margin-top:5px;font-weight:600}
