/* Dispatch desk palette: clear operational states, lively navigation, readable data. */
:root {
  --blue: #2854df;
  --ink: #172642;
  --muted: #52627c;
  --line: #dce5f3;
  --surface: #fff;
  --green: #087f68;
  --orange: #9b6200;
  --nav: #182f66;
  --nav-hover: #254584;
  --nav-active: #3158ab;
  --soft-blue: #edf3ff;
  background: #f0f4fd;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
}

body, .workspace { background: #f0f4fd; }
button, input, select, textarea { color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .stat-link:focus-visible,
.section-tabs a:focus-visible, .overview-links a:focus-visible {
  outline: 3px solid #ffb629;
  outline-offset: 3px;
}

/* The navigation is the single strong color field. */
.sidebar {
  background: var(--nav);
  border-right: 1px solid #27447e;
}
.brand strong { color: #fff; }
.brand small, .park-location, .workspace-label { color: #c0d2f4; }
.brand-icon {
  background: #ffca55;
  color: #172e65;
  box-shadow: none;
}
.create-btn {
  background: #ffca55;
  color: #172e65;
  font-size: 13px;
  font-weight: 750;
}
.create-btn:hover { background: #ffdb83; }
.nav a, .nav a .icon { color: #d5e3ff; }
.nav a { font-size: 13px; font-weight: 600; }
.nav a:hover { background: var(--nav-hover); color: #fff; }
.nav a.active { background: var(--nav-active); color: #fff; font-weight: 750; }
.nav .count { color: inherit; font-size: 11px; }
.nav-separator { background: #3c5790; }
.demo-chip {
  border-color: #4a669f;
  background: #244177;
  color: #dce8ff;
  font-size: 12px;
}
.demo-chip .dot { background: #ffca55; }
.profile-switcher { flex-shrink: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid #3c5790; }
.profile-switcher h2 { margin: 0 10px 8px; color: #c0d2f4; font-size: 11px; font-weight: 600; }
.profile-switcher button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; margin: 2px 0; padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #d5e3ff; font: inherit; font-size: 12px; text-align: left; }
.profile-switcher button > span { flex: 1; }
.profile-switcher .icon { width: 17px; height: 17px; }
.profile-switcher button:hover { background: var(--nav-hover); }
.profile-switcher button[aria-pressed="true"] { background: var(--nav-active); border-color: #6b91df; color: #fff; font-weight: 750; }
.profile-switcher button:disabled { opacity: .5; cursor: not-allowed; }
.task-weekdays { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; }
.task-weekdays legend { margin-bottom: 10px; font-size: 13px; }
.task-weekdays > div { display: flex; flex-wrap: wrap; gap: 6px; }
.task-weekdays label { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 13px; }
.task-weekdays label:has(input:checked) { background: var(--soft-blue); border-color: var(--blue); color: var(--blue); }
.task-weekdays small { display: block; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.task-weekdays[hidden] { display: none; }
#conditional-task-fields[hidden], #task-link-fields[hidden] { display: none; }
#conditional-task-fields { gap: 14px; }
.recurring-panel { margin-top: 24px; }
.recurring-hint { padding: 0 24px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.recurring-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; border-top: 1px solid var(--line); }
.recurring-row strong { font-size: 13px; overflow-wrap: anywhere; }
.recurring-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
@media(max-width:760px) { .recurring-row { align-items: flex-start; flex-direction: column; } .recurring-hint { padding-inline: 18px; } .recurring-row { padding: 16px 18px; } }
.task-toolbar .task-owner { min-width: 190px; max-width: 100%; }
.create-menu { border-color: #cad7ee; box-shadow: 0 14px 34px #0d245246; }

.topbar { background: #fff; border-bottom: 1px solid #d5e1f6; }
.search-box, .top-date, .user-btn > .icon { color: #61728b; }
.search-box input, .rental-search input { font-size: 14px; }
.search-box input::placeholder { color: #66768e; }
.search-shortcut { color: #52627c; border-color: #cdd9ee; font-size: 11px; }
.avatar.current { background: #e7eeff; color: #254cb6; font-size: 11px; }
.user-info strong { font-size: 13px; }
.user-info small { color: var(--muted); font-size: 12px; }
.mobile-menu { color: var(--blue); }

.page-heading h1, .dashboard-heading h1 { color: #102146; font-weight: 760; }
.page-heading p, .panel-subtitle, .chart-summary span,
.operational-view .chart-caption, .operational-view .chart-period {
  color: var(--muted);
  font-size: 12px;
}
.operational-view .chart-summary span { color: var(--muted); font-size: 12px; }
.panel, .operational-view .panel, .stat-card,
.operational-view .stats, .finance-view .management-stats {
  background: #fff;
  border-color: var(--line);
}
.panel-title, .operational-view .panel-title {
  color: #142851;
  font-size: 16px;
  font-weight: 750;
}
.panel-link, .operational-view .panel-link,
.table-action-label, .operational-view .cars-table .table-action-label,
.task-link, .task-edit { color: #244dc8; }
.panel-link, .operational-view .panel-link,
.table-action-label, .operational-view .cars-table .table-action-label {
  font-size: 12px;
}
.panel-link:hover, .table-action-label:hover, .task-link:hover,
.task-edit:hover { color: #12379e; }

.btn, .select-period, .icon-btn {
  border-color: #cbd9ef;
  color: #254064;
  font-size: 13px;
  font-weight: 650;
}
.btn:hover, .icon-btn:hover { background: var(--soft-blue); }
.finance-scope > .finance-filter { flex: 1 1 230px; min-width: 0; max-width: 320px; }
.finance-filter > label { display: block; margin-bottom: 7px; color: #536c91; font-size: 12px; font-weight: 600; }
.filter-picker { position: relative; }
.finance-record-filter .record-picker { width: 190px; max-width: 100%; }
.record-picker .filter-popover { padding: 6px; }
.record-picker .filter-option { min-height: 40px; }
.record-picker .filter-option-title { font-size: 13px; }
@media (max-width: 600px) {
  .finance-record-filter .record-picker { width: 100%; }
}
.filter-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 10px 12px; border: 1px solid #cbd9ef; border-radius: 11px;
  background: var(--surface); color: #254064; text-align: left;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 22px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.filter-trigger:hover { border-color: #9eb6e3; background: #f8faff; }
.filter-trigger[aria-expanded="true"] { border-color: #8aa8e2; box-shadow: 0 0 0 3px #2854df0d; }
.filter-trigger > .icon { width: 18px; height: 18px; color: #7d94b7; flex-shrink: 0; }
.filter-trigger-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-trigger > .filter-chevron { width: 15px; height: 15px; transition: transform 140ms ease; }
.filter-trigger[aria-expanded="true"] > .filter-chevron { transform: rotate(180deg); color: var(--blue); }
.filter-trigger:focus-visible { outline: 2px solid #5276db; outline-offset: 3px; }
.filter-popover {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 100%; min-width: 0;
  border: 1px solid #d5e0f1; border-radius: 14px; background: var(--surface);
  box-shadow: 0 12px 32px #1726421c, 0 2px 6px #17264208; overflow: hidden;
}
.filter-popover[hidden], .filter-empty[hidden], .filter-picker select[hidden] { display: none; }
.filter-picker.opens-up .filter-popover { top: auto; bottom: calc(100% + 8px); }
.filter-search { display: flex; align-items: center; gap: 9px; padding: 14px; border-bottom: 1px solid #e8eef8; }
.filter-search > .icon { width: 17px; height: 17px; color: #8097b8; flex-shrink: 0; }
.filter-search input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; line-height: 22px; }
.filter-search input::placeholder { color: #8294b1; }
.filter-search input:focus-visible { outline: none; }
.filter-search:focus-within { box-shadow: inset 0 -2px #9eb6e3; }
.filter-options { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-width: thin; scrollbar-color: #c8d6ee transparent; }
.filter-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 9px; border-radius: 8px; cursor: pointer; }
.filter-option + .filter-option { margin-top: 2px; }
.filter-option:hover, .filter-option.is-active { background: #f1f5fc; }
.filter-option[aria-selected="true"] { color: var(--blue); background: #eaf0ff; }
.filter-option.is-active { box-shadow: inset 0 0 0 1px #c7d7f4; }
.filter-option-icon { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border-radius: 9px; background: #f0f4fa; color: #6683b0; font-size: 10px; font-weight: 750; }
.filter-option-icon > .icon { width: 18px; height: 18px; }
.filter-option[aria-selected="true"] .filter-option-icon { color: var(--blue); background: #dce7ff; }
.filter-option-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.filter-option-title { font-size: 12px; font-weight: 650; line-height: 18px; overflow-wrap: anywhere; }
.filter-option-detail { color: #6d81a0; font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.filter-option .filter-check { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; opacity: 0; }
.filter-option[aria-selected="true"] .filter-check { opacity: 1; }
.filter-option-all { margin-bottom: 5px; }
.filter-footer { padding: 9px 14px; border-top: 1px solid #e8eef8; color: #8294b1; font-size: 10px; line-height: 16px; }
.filter-empty { display: flex; flex-direction: column; gap: 5px; padding: 24px 14px; text-align: center; color: #8192ab; font-size: 12px; }
.filter-empty strong { color: #536c91; font-weight: 650; }
@media (max-width: 560px) {
  .finance-scope > .finance-filter { max-width: none; flex-basis: 100%; }
  .filter-search input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .filter-trigger, .filter-trigger > .filter-chevron { transition: none; }
}
.period-picker { position: relative; flex-shrink: 0; }
.heading-controls .period-picker .select-period {
  min-width: 156px;
  max-width: none;
  min-height: 42px;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 15px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 20px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.period-picker .select-period:hover { background: #f8faff; border-color: #9eb6e3; }
.period-picker .select-period[aria-expanded="true"] {
  border-color: #9eb6e3;
  box-shadow: 0 0 0 3px #2854df0d;
}
.period-picker .select-period > .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 140ms ease;
}
.period-picker .select-period[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.period-options {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 25;
  width: max-content;
  min-width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 10px 28px #1726421a, 0 2px 6px #17264208;
}
.period-options[hidden] { display: none; }
.period-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #254064;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.period-option + .period-option { margin-top: 2px; }
.period-option > .icon { width: 16px; height: 16px; opacity: 0; flex-shrink: 0; }
.period-option[aria-selected="true"] { color: var(--blue); background: var(--soft-blue); font-weight: 750; }
.period-option[aria-selected="true"] > .icon { opacity: 1; }
.period-option:hover { background: #f0f4fb; }
.period-option[aria-selected="true"]:hover { background: #e4edff; }
.period-picker:has(.select-period:focus-visible) .period-option.is-active {
  outline: 2px solid #9eb6e3;
  outline-offset: -2px;
  background: var(--soft-blue);
}
@media (max-width: 560px) {
  .heading-controls .period-picker .select-period { min-width: 142px; gap: 9px; padding-inline: 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .period-picker .select-period, .period-picker .select-period > .icon { transition: none; }
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 750;
}
.btn.primary:hover { background: #173ebd; border-color: #173ebd; }
.btn.ghost { color: #2850a4; }
.btn.danger, .amount-negative { color: #aa3037; }
.operational-view .table-tools > .btn,
.rental-search-controls .btn { font-size: 12px; color: #254064; border-color: #cbd9ef; }

/* Operational data keeps its existing rhythm, with stronger type and states. */
.stat-top, .operational-view .stat-top,
.finance-view .management-stats .stat-top {
  color: #405570;
  font-size: 13px;
  font-weight: 650;
}
.stat-value, .operational-view .stat-value { color: #142c5d; font-weight: 750; }
.stat-value span, .stat-foot, .operational-view .stat-foot {
  color: #52627c;
  font-size: 12px;
}
.stat-symbol { background: #e5edff; color: #2854df; }
.operational-view .stat-card,
.finance-view .management-stats .stat-card { border-color: var(--line); }
.operational-view .stat-link:hover { background: #edf3ff; }
.fleet-total { color: #142c5d; }
.fleet-total small, .operational-view .fleet-legend strong small { color: var(--muted); font-size: 12px; }
.fleet-legend label, .operational-view .fleet-legend label { color: #435671; }
.operational-view .fleet-legend > div { border-color: var(--line); font-size: 13px; }
.operational-view .blue, .blue { background: #345fe5; }
.operational-view .green, .green { background: #0da889; }
.operational-view .amber, .amber { background: #f3ae2b; }
.chart text, .operational-view .income-chart text { fill: #50627c; font-size: 12px; }
.chart line, .operational-view .income-chart line { stroke: #dce6f6; }
.chart polyline, .chart circle { stroke: #315de3; }
.chart-bar rect { fill: #456ee8; }
.operational-view .chart-bar:hover rect { fill: #244dc8; }

.operational-view .table-tools { border-color: var(--line); }
.tab, .operational-view .tab, .section-tabs a {
  color: #50627d;
  font-size: 13px;
  font-weight: 650;
}
.tab.active, .operational-view .tab.active, .section-tabs a.active {
  color: #2048c6;
  border-bottom-color: #2854df;
  font-weight: 750;
}
.tab span, .operational-view .tab span,
.operational-view .tab.active span { color: #50627d; font-size: 12px; }
.data-table th, .operational-view .cars-table th {
  background: #f1f5ff;
  color: #465b78;
  border-color: var(--line);
  font-size: 12px;
  font-weight: 750;
}
.data-table td, .operational-view .cars-table td {
  color: #283c5d;
  border-color: #e5ebf6;
  font-size: 13px;
}
.data-table tbody tr:hover, .operational-view .cars-table tbody tr:hover {
  background: #f2f6ff;
}
.cell-title, .operational-view .cars-table .cell-title {
  color: #172b53;
  font-size: 14px;
  font-weight: 750;
}
.cell-sub, .operational-view .cars-table .cell-sub,
.rentals-table .cell-sub, .rental-muted, .rental-note {
  color: #52627c;
  font-size: 12px;
}
.plate, .operational-view .cars-table .plate { color: #334e77; font-size: 13px; font-weight: 700; }
.operational-view .cars-table .driver-name,
.operational-view .cars-table .unassigned-driver,
.operational-view .rental-rate, .rental-period { color: #354a68; font-size: 13px; }
.driver-name .avatar { font-size: 10px; }
.badge, .operational-view .cars-table .badge {
  font-size: 12px;
  font-weight: 700;
}
.badge.rented, .operational-view .cars-table .badge.rented { color: #1e49bd; background: #e8efff; }
.badge.ready, .operational-view .cars-table .badge.ready { color: #08765f; background: #e1f7ef; }
.badge.service, .operational-view .cars-table .badge.service { color: #905900; background: #fff0ca; }
.badge.closed, .badge.archived, .operational-view .cars-table .badge.archived {
  color: #53617a;
  background: #eaf0f8;
}
.operational-view .cars-table .badge {
  border-radius: 5px;
  padding: 4px 7px;
  min-width: auto;
}
.operational-view .cars-table .badge::before { width: 5px; height: 5px; }
.table-bottom, .operational-view .table-bottom {
  color: #52627c;
  border-color: var(--line);
  font-size: 12px;
}

.task-text, .activity-message,
.operational-view .task-text, .operational-view .activity-message {
  color: #253956;
  font-size: 13px;
  line-height: 1.55;
}
.task-text.done, .operational-view .task-text.done { color: #66758b; }
.task-meta, .operational-view .task-meta, .task-date,
.activity-meta, .activity-time, .operational-view .task-date,
.operational-view .activity-meta, .operational-view .activity-time {
  color: #53647e;
  font-size: 12px;
}
.charge-row-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.charge-row-actions .btn, .charge-row-actions .cell-link { display:inline-flex; align-items:center; justify-content:center; min-height:30px; padding:5px 9px; border:1px solid #dce4f1; border-radius:6px; background:#fff; font-size:12px; line-height:18px; white-space:nowrap; text-decoration:none; }
.charge-row-actions .btn:hover, .charge-row-actions .cell-link:hover { background:#f0f4ff; border-color:#9bb2f1; }
.charge-row-actions button:focus-visible { outline:2px solid #2854cf; outline-offset:2px; }
.charge-row-status { display:block; margin-top:5px; font-size:12px; color:#657792; }
@media (pointer:coarse) { .charge-row-actions .btn, .charge-row-actions .cell-link { min-height:44px; } }
.task-check, .operational-view .task-check { width: 16px; height: 16px; border-color: #8ea3c7; }
.task-check:checked, .operational-view .task-check:checked {
  background: #2854df;
  border-color: #2854df;
}
.task-edit, .operational-view .task-edit { font-size: 12px; }
.overview-links span, .finance-scope label, .rental-search label,
.rental-totals dt { color: #4c5f7d; font-size: 12px; }
.overview-links strong { color: #1b3873; }
.section-tabs a.active { color: #244dc8; }
.finance-scope select, .task-owner select,
.rental-search input, .finance-range input, .management-edit-pickers select {
  border-color: #cbd9ef;
  color: #223a5e;
  font-size: 13px;
}
.rental-finance > span { color: #4e607c; font-size: 12px; }
.rental-finance strong { color: #1b3157; font-size: 12px; }
.rental-warning, .rentals-table .cell-sub.rental-warning { color: #865200; }
.info-note, .rental-detail .rental-warning {
  background: #eef3ff;
  border-color: #d5e2fc;
  color: #34527d;
  font-size: 13px;
}
.operation-card { background: #f4f7ff; border-color: #cddcf8; }
.operation-card:hover { background: #eaf1ff; border-color: #7194ed; }
.operation-card span { color: #4b5e7c; font-size: 13px; }
.operation-card strong { color: #1a3566; }
.definition-row, .detail-row { font-size: 13px; }
.definition-row > span:first-child, .detail-row > span:first-child,
.detail-event small, .detail-notes, .settings-body p,
.revision-entry p, .revision-change > span:first-child {
  color: #50627d;
  font-size: 12px;
}
.detail-event { font-size: 13px; }
.empty { color: #52647d; font-size: 13px; }
.workspace-footer { color: #52627d; font-size: 11px; }

/* Forms and dialogs use the same contrast as the tables. */
dialog, .login-card { background: #fff; border-color: #cfdbef; }
dialog::backdrop { background: #0d2455a8; }
.modal-header h2 { color: #142b59; font-weight: 750; }
.modal-close { color: #435777; }
.field label, .action-picker label { color: #344b6b; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .action-picker select {
  border-color: #bfcee5;
  color: #172b4f;
  font-size: 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #697991; }
.field small { color: #54647c; font-size: 12px; }
#new-car-photo-preview .car-photo.large { height: 126px; margin-bottom: 0; }
.photo-editor .btn[hidden] { display: none; }
dialog { overflow-y: auto; }
dialog:has(#new-car-photo) .modal-header { position: sticky; top: 0; background: #fff; z-index: 2; }
dialog:has(#new-car-photo) .modal-footer { position: sticky; bottom: 0; background: #fff; z-index: 2; }
.login-page { background: #f0f4fd; }
.login-card > p { color: #52627c; font-size: 13px; }
.login-help { color: #244dc8; font-size: 12px; }
#toast { background: #183565; font-size: 13px; }

@media (max-width: 1200px) {
  .nav a { font-size: 13px; }
}
@media (max-width: 760px) {
  .search-box input { font-size: 13px; }
  .page-heading h1, .dashboard-heading h1 { font-size: 25px; }
  .heading-controls .btn, .table-tools > .btn,
  .operational-view .table-tools > .btn { font-size: 12px; }
  .operational-view .stat-top, .finance-view .management-stats .stat-top { font-size: 12px; }
  .operational-view .stat-foot { font-size: 11px; }
  .operational-view .panel-title { font-size: 15px; }
  .operational-view .tab, .section-tabs a { font-size: 12px; }
  .operational-view .cars-table .cell-sub,
  .operational-view .cars-table .badge,
  .operational-view .cars-table .plate { font-size: 12px; }
  .rentals-table td::before { color: #4c5f7d; font-size: 11px; }
  .finance-view .management-stats .stat-value { font-size: 20px; }
}
/* One attachment control for photos and documents, including native keyboard selection. */
.file-upload { min-width: 0; }
.field .file-dropzone {
  position: relative; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 14px; min-height: 112px; padding: 20px; margin: 0;
  border: 1.5px dashed #a9bce3; border-radius: 10px; background: #f7f9ff;
  color: var(--ink); cursor: pointer; text-align: left;
}
.field .file-dropzone:hover { border-color: var(--blue); background: #edf3ff; }
.field .file-dropzone:focus-within { outline: 3px solid #ffb629; outline-offset: 3px; }
.field .file-upload-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.file-upload-symbol { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; color: var(--blue); background: #e8efff; border-radius: 12px; }
.file-upload-symbol svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-upload-copy { display: grid; gap: 7px; min-width: 0; }
.file-upload-copy strong { font-size: 14px; font-weight: 600; line-height: 1.4; }
.file-upload-action { width: fit-content; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.file-drop-message { display: none; }
.field .file-dropzone.is-dragging { border-color: var(--blue); border-style: solid; background: #e8efff; outline: 3px solid #2854df24; outline-offset: 2px; }
.is-dragging .file-upload-copy { visibility: hidden; }
.is-dragging .file-drop-message { display: grid; place-items: center; position: absolute; inset: 0; background: #e8efffee; border-radius: 9px; color: var(--blue); font-size: 15px; font-weight: 700; }
.field .file-upload-hint { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.file-upload-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-upload-list:empty, .file-upload-error:empty, .upload-preview:empty { display: none; }
.file-upload-list li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #edf3ff; border-radius: 6px; margin-top: 5px; font-size: 12px; }
.file-upload-filename { min-width: 0; flex: 1; overflow-wrap: anywhere; line-height: 1.5; }
.file-upload-size { color: var(--muted); white-space: nowrap; font-size: 11px; }
.file-upload-remove { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 5px; background: transparent; color: #425d8c; cursor: pointer; }
.file-upload-remove:hover { color: #b42336; background: #ffe8ed; }
.file-upload-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.field .file-upload-error { color: #b42336; font-size: 12px; line-height: 1.5; margin-top: 8px; }
.file-dropzone .upload-preview { flex-basis: 100%; width: 100%; }
.file-dropzone .upload-preview .car-photo.large { height: 140px; margin: 0; background: transparent; }
.file-dropzone:has(.upload-preview:not(:empty)) .file-upload-symbol { display: none; }
.file-dropzone:has(.upload-preview:not(:empty)) .file-upload-copy { text-align: center; justify-items: center; }
@media (max-width: 390px) {
  .field .file-dropzone { padding: 16px 12px; gap: 10px; }
  .file-upload-copy strong { font-size: 13px; }
  .file-upload-size { display: none; }
}
.employee-note { margin: 0; padding: 16px 20px; color: var(--text-muted, #5b6e91); font-size: 12px; line-height: 1.7; }
.employee-table { min-width: 690px; }
.employee-table td { vertical-align: middle; }
.employee-self { display: inline-block; margin-left: 8px; color: #63769a; font-size: 11px; }
.employee-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.employee-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.employee-status.is-active { color: #18714c; background: #edf8f1; }
.employee-status.is-disabled { color: #68758d; background: #f0f3f8; }
.employee-action { text-align: right; }
.employee-action .btn { min-width: 100px; }
.employee-access-summary { display: flex; flex-direction: column; gap: 6px; padding: 15px; background: #f3f6fc; border: 1px solid #dce5f5; border-radius: 8px; }
.employee-access-summary span { color: #63769a; font-size: 12px; overflow-wrap: anywhere; }
.employee-access-warning { margin: 0; padding: 12px 14px; background: #fff4ec; color: #8a4b19; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.car-detail-tabs { margin-bottom: 22px; }
.car-detail-tabs .tab { font: inherit; background: transparent; cursor: pointer; }
.maintenance-mileage { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e4e9f0; }
.maintenance-mileage > div { display: grid; gap: 5px; }
.maintenance-mileage strong { font-size: 28px; color: #18375d; font-variant-numeric: tabular-nums; }
.maintenance-mileage small { font-size: 12px; color: #65758b; font-weight: 400; }
.maintenance-schedules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.maintenance-schedule { border: 1px solid #dce3ed; border-top: 3px solid #8495aa; border-radius: 8px; padding: 16px; min-width: 0; }
.maintenance-schedule h3 { margin: 0 0 10px; font-size: 18px; }
.maintenance-schedule p, .maintenance-schedule small { font-size: 13px; line-height: 1.5; }
.maintenance-schedule dl { margin: 18px 0; font-size: 12px; }
.maintenance-schedule dl > div { margin-bottom: 10px; }
.maintenance-schedule dt { color: #65758b; }
.maintenance-schedule dd { margin: 3px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.maintenance-schedule.soon { border-top-color: #b67506; }
.maintenance-schedule.urgent { border-top-color: #c33131; }
.maintenance-schedule.normal { border-top-color: #26835b; }
.maintenance-schedule.soon .maintenance-status { color: #845400; }
.maintenance-schedule.urgent .maintenance-status { color: #ad2222; }
.maintenance-schedule .btn { margin-top: 12px; width: 100%; padding-inline: 8px; white-space: normal; }
.maintenance-history .service-event p { margin: 7px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.maintenance-history .service-event small { color: #65758b; }
.maintenance-notice { display: block; font-size: 12px; line-height: 1.5; margin-top: 5px; white-space: normal; color: #65758b; max-width: 360px; }
.maintenance-notice.soon { color: #845400; }
.maintenance-notice.urgent { color: #ad2222; font-weight: 600; }
.maintenance-overview { margin-bottom: 24px; }
.maintenance-alert-row { display: flex; width: 100%; gap: 20px; justify-content: space-between; padding: 14px 22px; text-align: left; border: 0; border-top: 1px solid #e8edf3; background: transparent; cursor: pointer; font: inherit; }
.maintenance-alert-row:hover { background: #f4f7fc; }
.maintenance-alert-row > strong { font-size: 13px; color: #18375d; }
.maintenance-alert-row > strong span { display: block; margin-top: 4px; color: #65758b; font-weight: 400; }
.maintenance-alert-row .maintenance-notice:first-child { margin-top: 0; }
@media (max-width: 560px) {
  .maintenance-schedules { grid-template-columns: 1fr; }
  .maintenance-mileage, .maintenance-alert-row { align-items: flex-start; flex-direction: column; }
}

/* Task forms: a light menu with the native select retained for form data. */
.task-select { min-width: 0; width: 100%; color-scheme: light; }
.task-select select[hidden] { display: none; }
.task-select-trigger { min-height: 44px; align-items: center; border-radius: 8px; padding: 10px 12px; background: #fff; color: #254064; }
.task-select-copy { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 20px; }
.task-select-value { font-size: 13px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.task-select-error[hidden] { display: none; }
.task-select-trigger:disabled { cursor: default; opacity: .58; background: #f4f6fa; }
.task-select-trigger[aria-invalid="true"] { border-color: #c44b52; box-shadow: 0 0 0 3px #c44b520d; }
.task-select .task-select-options { z-index: 60; width: 100%; border-radius: 12px; background: #fff; padding: 6px; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
.task-select .task-select-options[popover] { position: fixed; margin: 0; inset: auto; }
.task-select-option { min-height: 42px; padding: 9px 10px; }
.task-select-option .filter-option-title { font-size: 13px; font-weight: 500; line-height: 20px; }
.task-select-option[aria-disabled="true"] { cursor: default; opacity: .45; }
.task-select-option[aria-disabled="true"]:hover { background: transparent; }
.task-select-option[aria-selected="true"] { background: #edf3ff; color: #244ed1; }
.task-select-option.is-active { background: #f2f6ff; box-shadow: inset 0 0 0 1px #c8d9f4; }
.task-select-option[aria-selected="true"].is-active { background: #e8efff; }
.task-select-error { display: block; margin-top: 7px; font-size: 12px; line-height: 18px; color: #b42336; }

/* Task workspace: a readable list and the selected task, kept in one place. */
.tasks-view { --task-border: #e1e5eb; --task-muted: #687382; }
.workspace .tasks-view .page-heading { margin-bottom: 14px; min-height: 40px; }
.tasks-view .page-heading .btn { min-height: 40px; padding-inline: 14px; border-radius: 6px; }
.tasks-view .task-workspace { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.tasks-view .task-workspace-body { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; min-width: 0; }
.tasks-view .task-workspace.has-detail .task-workspace-body { grid-template-columns: minmax(0, 1fr) 360px; }
.tasks-view .task-workspace > .task-status-tabs { margin-bottom: 12px; }
.tasks-view .task-list-column { min-width: 0; }
.tasks-view .task-toolbar { gap: 10px; margin-bottom: 12px; }
.tasks-view .tabs[aria-label="Статус задач"] { gap: 2px; width: fit-content; max-width: 100%; padding: 3px; border: 1px solid #cbd9ef; border-radius: 6px; background: #fff; }
.tasks-view .tabs[aria-label="Статус задач"] .tab { min-height: 34px; padding: 7px 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #3f587e; font-size: 13px; font-weight: 400; text-decoration: none; }
.tasks-view .tabs[aria-label="Статус задач"] .tab.active { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 600; }
.tasks-view .tabs[aria-label="Статус задач"] .tab:hover { color: #234ebc; background: var(--soft-blue); }
.tasks-view .tabs[aria-label="Статус задач"] .tab.active:hover { border-color: #234bca; background: #234bca; color: #fff; }
.tasks-view .task-list-tools { display: flex; align-items: center; gap: 12px; flex: 1 1 390px; min-width: 0; }
.tasks-view .task-toolbar .task-owner { min-width: 174px; }
.tasks-view .task-list-tools .task-owner { flex: 0 0 174px; }
.tasks-view .task-owner select { width: 100%; min-height: 38px; border-radius: 6px; padding: 8px 10px; background: #fff; }
.tasks-view .task-owner .task-select-trigger { min-height: 38px; padding: 8px 10px; border-radius: 8px; font-weight: 400; }
.tasks-view .task-search { display: flex; align-items: center; gap: 9px; flex: 1 1 210px; min-width: 180px; min-height: 38px; padding: 0 10px; border: 1px solid #cbd9ef; border-radius: 6px; background: #fff; color: var(--task-muted); }
.tasks-view .task-search > .icon { width: 18px; height: 18px; flex-shrink: 0; }
.tasks-view .task-search input { width: 100%; min-width: 0; height: 36px; border: 0; background: transparent; font: inherit; font-size: 13px; }
.tasks-view .task-search input::placeholder { color: #78859b; }
.tasks-view .task-search input:focus-visible { outline: none; }
.tasks-view .task-search:focus-within { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: none; }
.tasks-view .task-board { border-radius: 8px; border-color: var(--task-border); box-shadow: none; padding: 0 20px; overflow: visible; }
.tasks-view .task-table-heading,
.tasks-view .task-row.task-table-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(132px, .44fr) 126px 36px; column-gap: 16px; align-items: center; }
.tasks-view .task-table-heading { min-height: 46px; color: #687382; font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--task-border); }
.tasks-view .task-row.task-table-row { position: relative; min-height: 78px; margin: 0; padding: 12px 0; border-bottom: 1px solid #e9edf4; border-radius: 0; transition: background-color 120ms ease; }
.tasks-view .task-row.task-table-row:last-child { border-bottom: 0; }
.tasks-view .task-table-row::before { content: ''; position: absolute; inset: 0 -20px; border-radius: 0; background: transparent; pointer-events: none; z-index: 0; }
.tasks-view .task-table-row > * { position: relative; min-width: 0; z-index: 1; }
.tasks-view .task-table-row.is-selected::before { background: #f0f4f9; box-shadow: inset 2px 0 #7e9ac2; }
.tasks-view .task-completion { display: flex; align-items: center; justify-content: flex-start; min-height: 40px; }
.tasks-view .task-workflow-open { display:inline-flex; align-items:center; justify-content:center; width:30px; min-height:32px; padding:4px; border:1px solid #dce4f1; border-radius:6px; background:#fff; color:#2854cf; cursor:pointer; }
.tasks-view .task-workflow-open:hover { background:#f0f4ff; }
.tasks-view .task-workflow-open:focus-visible { outline:2px solid #2854cf; outline-offset:2px; }
.tasks-view .task-completion .task-check { position: relative; width: 18px; height: 18px; margin: 0; border-width: 1px; border-color: #9aa6b6; border-radius: 3px; background: #fff; }
.tasks-view .task-completion .task-check:checked { border-color: #2854df; background: #2854df; }
.tasks-view .task-completion .task-check:checked::after { position: absolute; left: 3px; top: -1px; font-size: 12px; line-height: 17px; }
.tasks-view .task-content { min-width: 0; }
.tasks-view .task-open-title { border: 0; background: transparent; cursor: pointer; display: block; max-width: 100%; padding: 3px 0; color: #273445; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.tasks-view .task-content .task-meta { gap: 5px 10px; margin-top: 4px; color: var(--task-muted); font-size: 12px; line-height: 1.6; }
.tasks-view .task-content .task-link { color: #5b6f92; }
.tasks-view .task-row.is-done .task-open-title { color: #71809a; text-decoration: line-through; text-decoration-color: #a5b1c4; }
.tasks-view .task-assignee { color: #465a79; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.tasks-view .task-assignee .is-unassigned,
.tasks-view .task-assignee.is-unassigned { color: #7b8491; }
.tasks-view .task-deadline { display: flex; flex-direction: column; gap: 5px; color: #384d6c; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tasks-view .task-deadline time { display: inline-flex; align-items: center; gap: 6px; }
.tasks-view .task-deadline .icon { width: 16px; height: 16px; flex-shrink: 0; }
.tasks-view .task-deadline.is-overdue time,
.tasks-view .task-overdue-label { color: #b53439; }
.tasks-view .task-overdue-label { font-size: 11px; }
.tasks-view .task-row-open { display: grid; place-items: center; width: 36px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #657590; font: inherit; font-size: 21px; cursor: pointer; }
.tasks-view .task-row-open:hover { background: #dfe8fb; color: #1745d2; }
.tasks-view .task-row-open .icon { width: 19px; height: 19px; }
.tasks-view .task-quick-add { display: flex; align-items: center; min-height: 52px; border-top: 1px solid var(--task-border); }
.tasks-view .task-quick-add button { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 4px; border: 0; background: transparent; color: #1745d2; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.tasks-view .task-quick-add button:hover { color: #0c2e97; }
.tasks-view .task-quick-add .icon { width: 20px; height: 20px; }
.tasks-view .task-board .empty { padding-block: 42px; }
.tasks-view .task-detail-panel { position: sticky; top: 22px; min-width: 0; padding: 20px; border: 1px solid var(--task-border); border-radius: 8px; background: #fff; box-shadow: none; }
.tasks-view .task-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tasks-view .task-detail-header h2 { margin: 0; color: #273445; font-size: 15px; font-weight: 600; }
.tasks-view .task-detail-header > button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #61718b; cursor: pointer; }
.tasks-view .task-detail-header > button:hover { color: #1745d2; background: #edf3ff; }
.tasks-view .task-detail-title { margin: 0 0 12px; color: #273445; font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
.tasks-view .task-detail-status { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; margin-bottom: 18px; padding: 4px 8px; border-radius: 4px; background: #f0f4f9; color: #52647c; font-size: 12px; font-weight: 500; }
.tasks-view .task-detail-status.is-overdue { color: #b72c36; background: #fff0f0; }
.tasks-view .task-detail-status.is-done { color: #08765f; background: #e7f7f0; }
.tasks-view .task-detail-fields { display: grid; gap: 15px; }
.tasks-view .task-detail-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tasks-view .task-detail-field > label,
.tasks-view .task-detail-field > span:first-child { color: #616d7d; font-size: 12px; font-weight: 500; }
.tasks-view .task-detail-field > input,
.tasks-view .task-detail-field > select,
.tasks-view .task-detail-field > textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #cbd9ef; border-radius: 6px; background: #fff; color: #223956; font: inherit; font-size: 13px; }
.tasks-view .task-detail-field > textarea { min-height: 85px; resize: vertical; }
.tasks-view .task-detail-field > input:disabled,
.tasks-view .task-detail-field > select:disabled { color: #687992; background: #f5f7fb; }
.tasks-view .task-detail-field .task-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 11px; border: 1px solid #dce5f3; border-radius: 6px; color: #294c85; font-size: 13px; line-height: 1.5; }
.tasks-view .task-detail-subject { display: inline-flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #dce5f3; border-radius: 6px; background: #fff; color: #294c85; font: inherit; font-size: 13px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.tasks-view .task-detail-subject:hover { border-color: #a6bbe5; background: #f5f8ff; }
.tasks-view .task-detail-subject .icon { width: 18px; height: 18px; flex-shrink: 0; }
.tasks-view .task-detail-readonly { min-height: 40px; padding: 9px 11px; border-radius: 6px; background: #f5f7fb; color: #526781; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.tasks-view .task-detail-note { margin: 20px 0 0; padding: 11px 12px; border-radius: 6px; background: #f5f7fa; color: #60718b; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.tasks-view .task-detail-note p { margin: 0; }
.tasks-view .task-detail-note p + p { margin-top: 8px; }
.tasks-view .task-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--task-border); }
.tasks-view .task-detail-actions .btn { justify-content: center; flex: 1 1 auto; min-height: 44px; padding: 10px 12px; border-radius: 6px; white-space: normal; text-align: center; }
.tasks-view .task-detail-save-state { display: block; min-height: 19px; margin-top: 12px; color: #667995; font-size: 11px; line-height: 1.6; }
.tasks-view .task-detail-save-state.is-error { color: #b72c36; }
.tasks-view .task-detail-state-message { min-height: 19px; margin: 12px 0 0; color: #667995; font-size: 11px; line-height: 1.6; }
.tasks-view .task-detail-panel.is-error .task-detail-state-message { color: #b72c36; }
.tasks-view .task-detail-panel.is-saving .task-detail-state-message { color: #2452c7; }
.tasks-view .task-detail-backdrop { display: none; }
.tasks-view .task-detail-panel[hidden],
.tasks-view .task-detail-backdrop[hidden] { display: none; }

@media (min-width: 1361px) {
  .tasks-view .task-workspace.has-detail .task-list-tools { flex-basis: 100%; }
  .tasks-view .task-workspace.has-detail .task-table-heading,
  .tasks-view .task-workspace.has-detail .task-row.task-table-row { grid-template-columns: 26px minmax(0, 1fr) 132px 112px 32px; column-gap: 12px; }
}

@media (max-width: 1360px) {
  .tasks-view .task-workspace.has-detail .task-workspace-body { grid-template-columns: minmax(0, 1fr); }
  .tasks-view .task-workspace.has-detail .task-detail-backdrop { display: block; position: fixed; inset: 0; z-index: 40; width: 100%; height: 100%; padding: 0; border: 0; background: #17264245; cursor: pointer; }
  .tasks-view .task-workspace.has-detail .task-detail-panel { position: fixed; inset: 16px 16px 16px auto; z-index: 41; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; box-shadow: none; }
}

@media (max-width: 760px) {
  .workspace .tasks-view .page-heading { margin-bottom: 12px; }
  .tasks-view .page-heading .btn { min-height: 42px; padding-inline: 12px; font-size: 12px; }
  .tasks-view .task-toolbar { gap: 10px; }
  .tasks-view .tabs[aria-label="Статус задач"] { gap: 2px; }
  .tasks-view .tabs[aria-label="Статус задач"] .tab { min-height: 34px; padding: 7px 8px; font-size: 12px; }
  .tasks-view .task-list-tools { flex: 1 1 100%; flex-wrap: wrap; gap: 10px; }
  .tasks-view .task-toolbar .task-owner { width: auto; flex: 1 1 150px; min-width: 0; }
  .tasks-view .task-search { flex: 1 1 180px; min-width: 0; }
  .tasks-view .task-board { padding-inline: 17px; border-radius: 8px; }
  .tasks-view .task-table-row::before { inset-inline: -17px; }
  .tasks-view .task-table-heading { display: none; }
  .tasks-view .task-row.task-table-row { grid-template-columns: 26px minmax(0, 1fr) 32px; gap: 10px; min-height: 0; padding-block: 14px; }
  .tasks-view .task-completion { grid-column: 1; grid-row: 1; align-self: start; min-height: 31px; }
  .tasks-view .task-content { grid-column: 2; grid-row: 1; }
  .tasks-view .task-open-title { font-size: 14px; padding-top: 3px; }
  .tasks-view .task-content .task-meta { font-size: 11px; }
  .tasks-view .task-row-open { grid-column: 3; grid-row: 1; align-self: start; width: 32px; height: 34px; }
  .tasks-view .task-assignee { grid-column: 2; grid-row: 2; padding-right: 40%; font-size: 12px; }
  .tasks-view .task-deadline { grid-column: 2 / 4; grid-row: 2; justify-self: end; width: 39%; font-size: 12px; }
  .tasks-view .task-assignee::before,
  .tasks-view .task-deadline::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #8390a5; font-size: 10px; font-weight: 500; }
  .tasks-view .task-deadline time { min-height: 31px; }
  .tasks-view .task-overdue-label { font-size: 10px; }
  .tasks-view .task-quick-add { min-height: 52px; }
  .tasks-view .task-quick-add button { font-size: 13px; }
  .tasks-view .task-workspace.has-detail .task-detail-panel { inset: 10px 10px 10px auto; width: min(420px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 20px; border-radius: 8px; }
  .tasks-view .task-detail-header { margin-bottom: 16px; }
  .tasks-view .task-detail-title { font-size: 17px; }
}

@media (max-width: 480px) {
  .tasks-view .task-list-tools .task-search,
  .tasks-view .task-list-tools .task-owner { flex: 1 1 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tasks-view .task-row.task-table-row { transition: none; }
}

.charge-calculation-action > .btn { justify-self: start; width: auto; }

.handover-act label.handover-signature { display:flex; flex-direction:row; align-items:center; gap:9px; font-size:14px; padding:10px 12px; border:1px solid var(--border,#dbe3ee); border-radius:8px; min-height:44px; cursor:pointer; }
.handover-act label.handover-signature input { width:18px; height:18px; min-height:0; margin:0; flex:0 0 18px; accent-color:var(--primary,#2851db); }
.handover-options > summary { cursor:pointer; font-weight:600; padding:6px 0; }
.handover-options > .form-grid { padding-top:8px; }
#handover-identity:empty, #handover-preflight:empty, #handover-owner:empty { display:none; }
dialog:has(.handover-issue-form) { width:min(760px, calc(100vw - 32px)); max-width:760px; }
.handover-issue-form > .modal-body > .form-grid { gap:var(--space-4); }
.handover-car-summary { display:flex; align-items:center; justify-content:space-between; gap:var(--space-4); padding:var(--space-4); border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface-subtle); }
.handover-car-summary > div { display:flex; align-items:flex-start; flex-direction:column; gap:var(--space-2); min-width:0; }
.handover-car-summary strong { font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.handover-daily-rate { white-space:nowrap; font-size:16px; font-weight:650; font-variant-numeric:tabular-nums; }
.handover-daily-rate small { display:block; color:var(--muted); font-size:12px; font-weight:400; text-align:right; }
.handover-issue-form .handover-owner-notice { padding:var(--space-3) var(--space-4); border-color:var(--line); border-radius:var(--radius-control); background:var(--soft-blue); gap:var(--space-3); font-size:13px; }
.handover-issue-form .handover-owner-notice .btn { white-space:nowrap; }
.handover-core-fields { display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(0, 1fr); align-items:start; gap:16px; }
.handover-core-fields .date-picker-with-time { grid-template-columns:minmax(0,1fr) 100px; gap:8px; }
.handover-extra { border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface); }
.handover-extra > summary { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); list-style:none; cursor:pointer; min-height:var(--control-height); padding:10px var(--space-4); color:var(--ink); font-size:13px; font-weight:650; border-radius:var(--radius-control); }
.handover-extra > summary::-webkit-details-marker { display:none; }
.handover-extra > summary::after { content:''; width:7px; height:7px; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); transform:rotate(45deg); margin:0 2px 4px; }
.handover-extra[open] > summary::after { transform:rotate(225deg); margin-bottom:0; }
.handover-extra > summary:hover { background:var(--surface-subtle); }
.handover-extra-body { padding:var(--space-4); border-top:1px solid var(--line); }
.handover-extra-body > h3 { margin:8px 0 0; padding-top:16px; border-top:1px solid var(--line); font-size:15px; }
.handover-extra-body > h3:first-child { margin:0; padding:0; border:0; }
.handover-issue-form .modal-footer > .btn:first-child { margin-right:auto; }
.identity-notice.identity-notice-compact { padding:12px 14px; }
.handover-issue-form .identity-notice-compact ul { gap:6px; margin:8px 0; }
.handover-issue-form .identity-notice-compact li { padding:0; border:0; border-radius:0; background:none; min-height:30px; }
.handover-issue-form .identity-notice-compact li div { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.handover-issue-form .identity-notice-compact li .btn { min-height:30px; padding:4px 8px; font-size:12px; }
.handover-issue-form .identity-notice-compact .identity-exception { margin-top:8px; padding-top:10px; }
@media(max-width:600px) {
  .handover-core-fields { grid-template-columns:1fr; gap:14px; }
  .handover-car-summary { align-items:flex-start; gap:12px; }
  .handover-issue-form .handover-owner-notice { flex-wrap:wrap; }
  .handover-issue-form .modal-footer > .btn:first-child { flex-basis:100%; text-align:left; justify-content:flex-start; }
}
.settlement-car-context > .rental-note { text-align:center; }
.document-folder-button { position:relative; overflow:hidden; width:fit-content; margin-top:10px; }
.handover-owner-notice { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid #dbe3ee; border-radius:8px; background:#f6f8fc; }
