/* Assignment is a focused person-first sheet, separate from booking editing. */
#driver-assignment-dialog { width: min(520px, calc(100vw - 24px)); max-width: 520px; height: fit-content; min-height: 0; max-height: calc(100dvh - 32px); padding: 0; margin: auto; overflow: hidden; border: 1px solid #e2e7f0; border-radius: 22px; background: #fff; color: #22324b; box-shadow: 0 24px 80px #14223c40; }
#driver-assignment-dialog::backdrop { background: #18233e66; backdrop-filter: blur(3px); }
#driver-assignment-form { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); padding: 0; gap: 0; overflow: hidden; }
#driver-assignment-dialog [hidden] { display: none !important; }
.assignment-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 16px; }
.assignment-header p { margin: 0 0 4px; font-size: 12px; color: #748095; font-weight: 500; }
.assignment-header h2 { margin: 0; font-size: 25px; line-height: 1.25; font-weight: 650; letter-spacing: -.6px; color: #1d315c; }
.assignment-close { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f8; color: #66758b; font-size: 28px; font-weight: 400; }
.assignment-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 18px; min-height: 0; }
.assignment-legs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 11px; background: #f0f3f8; }
.assignment-legs button { flex: 1; min-width: 0; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 550; color: #647089; }
.assignment-legs button[aria-pressed="true"] { color: #253f82; background: #fff; box-shadow: 0 1px 5px #152d5015; }
.assignment-journey { display: grid; gap: 5px; padding: 15px; margin: 0 0 18px; border-radius: 12px; background: #f5f7fb; }
.assignment-journey strong { font-size: 16px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.assignment-journey span { font-size: 13px; color: #67748b; line-height: 1.5; }
#assignment-drivers { border: 0; padding: 0; margin: 0; min-width: 0; }
#assignment-drivers legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; color: #53627a; }
#assignment-driver-list { display: grid; gap: 8px; }
.assignment-driver { position: relative; display: flex; align-items: center; gap: 12px; min-height: 78px; min-width: 0; padding: 13px; margin: 0; border: 1px solid #e2e7ef; border-radius: 13px; cursor: pointer; background: #fff; }
.assignment-driver > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.assignment-driver > span:not(.driver-avatar):not(.assignment-radio) { flex: 1; min-width: 0; }
.assignment-driver strong { display: block; margin: 0; color: #23334e; font-size: 16px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.assignment-driver small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: #6b788c; font-weight: 400; }
.assignment-radio { flex: 0 0 20px; width: 20px; height: 20px; border: 1.5px solid #cbd3e1; border-radius: 50%; }
.assignment-driver.is-selected { border-color: #27428f; background: #f5f7ff; box-shadow: 0 0 0 1px #27428f; }
.assignment-driver.is-selected .assignment-radio { background: #27428f; border-color: #27428f; box-shadow: inset 0 0 0 4px #fff; }
.assignment-driver:focus-within { outline: 3px solid #9db8ec; outline-offset: 2px; }
.assignment-driver.is-unavailable { background: #f7f8fa; opacity: .65; cursor: default; }
.assignment-driver--none { min-height: 48px; font-size: 14px; font-weight: 400; color: #69768c; }
.assignment-vehicle { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e8ecf3; }
.assignment-vehicle > div { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.assignment-vehicle small { display: block; margin-bottom: 4px; color: #738096; font-size: 12px; }
.assignment-vehicle strong { display: block; color: #2b3b57; font-size: 14px; font-weight: 550; }
#assignment-change-vehicle { min-height: 44px; padding: 7px 10px; border: 0; background: transparent; color: #294388; font-size: 14px; font-weight: 600; }
#assignment-vehicle-label { display: block; margin-top: 12px; color: #657188; font-size: 14px; font-weight: 500; }
#assignment-vehicle { width: 100%; height: 48px; min-height: 48px; min-width: 0; font-size: 16px; font-weight: 400; background: #f7f9fc; color: #273b60; border: 1px solid #dce3ef; border-radius: 10px; margin-top: 6px; padding: 10px; }
.assignment-footer { display: grid; gap: 9px; flex: 0 0 auto; padding: 14px 22px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #edf0f5; background: #fff; }
#assignment-save-note { text-align: center; font-size: 12px; color: #7b8698; }
#assignment-save-note:empty { display: none; }
#assignment-confirm, #assignment-schedule, #assignment-add-driver { min-height: 48px; padding: 12px 16px; border: 0; border-radius: 11px; background: #253d88; color: white; font-size: 15px; font-weight: 600; }
#driver-assignment-dialog button:disabled { opacity: .5; cursor: default; }
#assignment-error, #assignment-unavailable { padding: 12px; margin-bottom: 14px; border: 1px solid #f0cfc8; background: #fff7f4; border-radius: 10px; color: #8a402e; font-size: 14px; line-height: 1.5; }
.assignment-empty { font-size: 14px; color: #758197; }
.request-card { min-width: 0; border: 1px solid #e4e8f0; border-radius: 14px; background: #fff; overflow: hidden; }
.request-card > .request-row { width: 100%; border: 0; box-shadow: none; border-radius: 0; }
.request-card__assignments { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.request-card__assignments > button, .quick-assignment { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; min-height: 44px; min-width: 0; padding: 5px 9px; border: 1px solid #e3e8f1; border-radius: 9px; background: #f9faff; color: #304884; font-size: 13px; font-weight: 500; text-align: left; }
.request-card__assignments button > span:not(.driver-avatar) { min-width: 0; overflow-wrap: anywhere; }
.request-card__assignments button small { color: #7a8598; font-size: 11px; font-weight: 400; }
.request-card__assignments .driver-avatar, .quick-assignment .driver-avatar, .overview-assignment .driver-avatar { width: 26px; height: 26px; min-width: 26px; flex: 0 0 26px; font-size: 10px; border-radius: 50%; }
.request-card--past { background: #f4f5f7; opacity: .82; }
.request-card--past > .request-row { background: transparent; }
.overview-assignment .quick-assignment { margin-left: auto; }
.overview-assignment { flex-wrap: wrap; }
@media (max-width: 380px) { .assignment-header { padding: 18px 16px 14px; } .assignment-body { padding: 0 16px 16px; } .assignment-footer { padding-left: 16px; padding-right: 16px; } .assignment-driver { padding: 11px; gap: 9px; } }
