/* Reservations dark mode polish. Visual only; operational layout and logic stay unchanged. */
html[data-theme="dark"] #reservationsView.premium-reservations{
  background:#0f1c2a!important;
  color:#dbe7f2!important;
}

html[data-theme="dark"] #reservationsView.premium-reservations>.panel,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-table-wrap{
  background:#132434!important;
  border-color:#2a4053!important;
  box-shadow:0 12px 30px rgba(0,0,0,.16)!important;
}

html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservations-toolbar{
  background:#16293a!important;
  border-bottom-color:#2a4053!important;
}

html[data-theme="dark"] #reservationsView.premium-reservations #premiumLocationFilter,
html[data-theme="dark"] #reservationsView.premium-reservations #reservationSearch,
html[data-theme="dark"] #reservationsView.premium-reservations #reservationVehicleFilter,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-page-size select{
  background:#122536!important;
  border-color:#355066!important;
  color:#dce7f0!important;
  box-shadow:none!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations #reservationSearch::placeholder,
html[data-theme="dark"] #reservationsView.premium-reservations #reservationVehicleFilter::placeholder{color:#8196a9!important;opacity:1}

html[data-theme="dark"] #reservationsView.premium-reservations .reservation-period-btn{
  background:#172b3c!important;
  border-color:#344d61!important;
  color:#bac9d6!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .reservation-period-btn:hover{background:#1c3448!important;border-color:#45647c!important}
html[data-theme="dark"] #reservationsView.premium-reservations .reservation-period-btn.active{
  background:#224b6d!important;
  border-color:#4c82ad!important;
  color:#edf7ff!important;
}

/* Dark status summaries keep the same status language without glowing pastel blocks. */
html[data-theme="dark"] #reservationsView.premium-reservations [data-ui-status="RESERVED"]{--premium-status:#193650;--premium-status-border:#376d9c;--premium-status-fg:#dbeaff}
html[data-theme="dark"] #reservationsView.premium-reservations [data-ui-status="CONFIRMED"]{--premium-status:#302844;--premium-status-border:#755aa5;--premium-status-fg:#eee5ff}
html[data-theme="dark"] #reservationsView.premium-reservations [data-ui-status="PREPAID"]{--premium-status:#173a39;--premium-status-border:#428d84;--premium-status-fg:#d8fff6}
html[data-theme="dark"] #reservationsView.premium-reservations [data-ui-status="ACTIVE"]{--premium-status:#19382a;--premium-status-border:#478762;--premium-status-fg:#def8e7}
html[data-theme="dark"] #reservationsView.premium-reservations [data-ui-status="RETURNED"]{--premium-status:#3b331d;--premium-status-border:#a8893c;--premium-status-fg:#fff0b4}
html[data-theme="dark"] #reservationsView.premium-reservations [data-ui-status="CANCELLED"]{--premium-status:#40262f;--premium-status-border:#a34f63;--premium-status-fg:#ffe0e7}
html[data-theme="dark"] #reservationsView.premium-reservations [data-ui-status="VOID"]{--premium-status:#412d21;--premium-status-border:#aa6b42;--premium-status-fg:#ffe4d1}
html[data-theme="dark"] #reservationsView.premium-reservations .ui-status-card{
  box-shadow:0 3px 10px rgba(0,0,0,.13)!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .ui-status-card[aria-pressed="true"]{
  box-shadow:0 0 0 2px #0f1c2a,0 0 0 4px var(--premium-status-border),0 5px 14px rgba(0,0,0,.18)!important;
}

/* Status rows: separate dark hues, not one grey slab. */
html[data-theme="dark"] #reservationsView.premium-reservations #reservationTable tbody tr.frch-status-reserved>td{background:#172e44!important}
html[data-theme="dark"] #reservationsView.premium-reservations #reservationTable tbody tr.frch-status-confirmed>td{background:#2a263e!important}
html[data-theme="dark"] #reservationsView.premium-reservations #reservationTable tbody tr.frch-status-prepaid>td{background:#173637!important}
html[data-theme="dark"] #reservationsView.premium-reservations #reservationTable tbody tr.frch-status-active>td{background:#193529!important}
html[data-theme="dark"] #reservationsView.premium-reservations #reservationTable tbody tr.frch-status-returned>td{background:#39321f!important}
html[data-theme="dark"] #reservationsView.premium-reservations #reservationTable tbody tr.frch-status-cancelled>td{background:#3c252c!important}
html[data-theme="dark"] #reservationsView.premium-reservations #reservationTable tbody tr.frch-status-void>td{background:#3c2b21!important}

html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-row td{
  color:#dce6ef!important;
  border-bottom-color:rgba(151,177,199,.14)!important;
  filter:none!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-row:hover td{
  box-shadow:inset 0 0 0 999px rgba(255,255,255,.035)!important;
}

html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-table th{
  background:#172a3c!important;
  border-bottom-color:#2d4356!important;
  color:#aebdca!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-main-text,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-category-name,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-dates-cell span,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-money-cell{color:#e6edf3!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-customer-cell small,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-dates-cell small,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-payment-status{color:#9cafbf!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-paid-cell{color:#9dd9b9!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-balance-cell.has-balance{color:#f0c779!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-balance-cell.is-settled{color:#9dd9b9!important}

/* Keep Rental category a real table cell. The old flex-on-td treatment left a light anonymous strip in dark mode. */
html[data-theme="dark"] #reservationsView.premium-reservations .premium-category-cell{display:table-cell!important;white-space:nowrap!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-category-thumb{display:inline-grid!important;vertical-align:middle!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-category-name{display:inline-block!important;vertical-align:middle!important;margin-left:11px!important;white-space:normal!important;max-width:92px}

/* Reservation number stays calm; only the route underneath carries location colour. */
html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-ref,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-ref.location-wak,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-ref.location-hyt,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-ref.location-imp,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-ref.location-other{
  background:#e9eef2!important;
  border-color:#b9c7d1!important;
  color:#17324a!important;
  box-shadow:0 2px 7px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-reservation-ref:hover{background:#fff!important;border-color:#d4dde4!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-location-route .route-arrow{color:#8296a7!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-location-route .route-wak{color:#ff6674!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-location-route .route-hyt{color:#ffc34b!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-location-route .route-imp{color:#56a9ff!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-location-route .route-other{color:#a9b9c6!important}

/* The approved local car photos remain bright and neutral in dark mode. */
html[data-theme="dark"] #reservationsView.premium-reservations .premium-category-thumb,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-category-thumb.has-image{
  background:#f8fafb!important;
  border-color:#708292!important;
  box-shadow:0 3px 10px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-category-thumb img{
  background:#fff!important;
  mix-blend-mode:normal!important;
}

html[data-theme="dark"] #reservationsView.premium-reservations .premium-status-badge.reserved{color:#9dcaff!important;background:#173b5d!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-status-badge.confirmed{color:#d5b8ff!important;background:#382a50!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-status-badge.prepaid{color:#9ce3db!important;background:#184542!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-status-badge.active{color:#a6e3bb!important;background:#1a472f!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-status-badge.returned{color:#f6d56b!important;background:#463b1b!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-status-badge.cancelled{color:#ff9fae!important;background:#4b2630!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-status-badge.void{color:#ffc08f!important;background:#4c3020!important}

html[data-theme="dark"] #reservationsView.premium-reservations .premium-count-badge{
  background:#1b3449!important;
  border-color:#3b566c!important;
  color:#c8d8e5!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-count-badge.invoice.has-count{background:#d7e9fb!important;border-color:#a9c8e5!important;color:#235b8d!important}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-count-badge.extra.has-count{background:#dff2e7!important;border-color:#b8d9c5!important;color:#2f6f4b!important}

html[data-theme="dark"] #reservationsView.premium-reservations .premium-pagination{
  background:#16293a!important;
  border-top-color:#2a4053!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-page-summary,
html[data-theme="dark"] #reservationsView.premium-reservations .premium-page-ellipsis{color:#91a6b7!important}
html[data-theme="dark"] #reservationsView.premium-reservations :is(.premium-page-number,.premium-page-arrow){
  background:#1a3043!important;
  border-color:#385267!important;
  color:#c6d6e3!important;
}
html[data-theme="dark"] #reservationsView.premium-reservations .premium-page-number[aria-current="page"]{
  background:#237ea2!important;
  border-color:#42a0c4!important;
  color:#fff!important;
}
