
:root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 100%;
  color: #20352a;
  background: #f5f8f5;
}
.top {
  min-height: 92px;
  padding: 16px 30px;
  gap: 16px;
  background: linear-gradient(100deg, #fff 0%, #f7fbf4 45%, #d9eccb 100%);
  border-color: #dce9de;
}
.real-logo {
  display: block;
  width: 290px;
  max-width: 40vw;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.subtitle { color: #64766a; margin-top: 3px; font-size: 1rem; }
.userbox { flex-wrap: wrap; justify-content: flex-end; }
.userbox .inline button { background: #e7f1e9; color: #006044; padding: 10px 14px; font-size: 14px; }
.nav {
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  padding: 0 15px;
  border-color: #dce7df;
}
.nav a {
  flex: 0 0 auto;
  padding: 18px 16px;
  border-bottom: 3px solid transparent;
  color: #203b2f;
  font: 600 14px Arial;
  white-space: nowrap;
}
.nav a.active { background: #e8f2eb; color: #075d3b; border-bottom-color: #087448; }
.nav a:hover:not(.active) { background: #f0f6f1; }
main { max-width: none; min-width: 0; padding: 22px 20px; }
h1 { margin: 0; font-size: 29px; letter-spacing: -.8px; }
h2 { margin: 0 0 16px; font-size: 21px; }
h3 { margin: 20px 0 12px; }
label { font-size: 13px; font-weight: 700; margin: 0 0 6px; }
input, select, textarea { font: inherit; margin: 0; }
main button, .userbox button, .btn { font-family: Arial; }
a { color: #006442; }
.muted, p { color: #64766a; }
.heading p { margin: 8px 0 0; }
.panel { border-color: #e0e9e2; border-radius: 13px; padding: 22px; box-shadow: 0 2px 9px #153b2110; }
.narrow { max-width: 460px; padding: 24px; margin: 36px auto; }
button, .btn { background: #006d45; border-radius: 8px; padding: 12px 17px; }
button:hover, .btn:hover { background: #005538; }
.secondary { background: #e7f1e9; color: #006044; }
.secondary:hover { background: #d9eadc; color: #006044; }
input, select { border-color: #cbd9d0; border-radius: 8px; }
label:has(> input:not([type=checkbox]), > select, > textarea) { margin-bottom: 15px; }
label > input:not([type=checkbox]), label > select { margin: 6px 0 0; }
table { font-size: 14px; }
th, td { padding: 13px; border-bottom-color: #e6ece8; }
th { background: #f3f7f4; color: #344d3d; }
.table-wrap tbody tr:hover td { background: #fbfdfb; }
small { font-size: smaller; }
.tabs { gap: 9px; }
.plate { background: #ffca16; color: #15251b; font-size: 13px; padding: 5px 8px; }
.calendar-controls { padding: 16px; }
.calendar-controls .toolbar { gap: 14px; align-items: end; }
.calendar-controls form { flex: 1 1 220px; }
.calendar-controls form label { flex: 1; margin: 0; }
.calendar-controls input { margin: 5px 0 0; }
.calendar-controls .filter-tip, .calendar-hint { font-size: 12px; }
.calendar-controls .filter-tip { margin-bottom: 0; }
.calendar-scroll { border-color: #e0e7e1; border-radius: 12px; box-shadow: 0 2px 8px #1540220d; }
.fleet-calendar { font-size: 13px; }
.fleet-calendar[data-mode="day"] { --hour: calc(1100px / 24); }
.fleet-calendar[data-mode="three"] { --hour: calc(570px / 24); }
.fleet-calendar[data-mode="week"] { --hour: calc(350px / 24); }
.fleet-calendar thead th { color: #20352a; background: #f1f5f2; }
.fleet-calendar .fleet-hour { width: var(--hour); font-size: 10px; font-weight: 500; color: #718175; }
.fleet-calendar tbody .vehicle-location, .fleet-calendar tbody .vehicle-department { font-size: 12px; }
.fleet-calendar thead th[scope=colgroup] { text-align: center; }
.fleet-calendar td, .fleet-calendar th { border-right: 1px solid #dfe8e1; }
.fleet-calendar .vehicle-plate { min-width: 112px; background: #fff; }
.fleet-calendar .vehicle-model { min-width: 145px; }
.fleet-calendar .vehicle-location { min-width: 175px; }
.fleet-calendar .vehicle-department { min-width: 150px; }
.fleet-calendar .vehicle-location, .fleet-calendar .vehicle-department { color: #254735; font-weight: 600; }
.dept-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #bc3677; }
.fleet-calendar .fleet-track {
  height: 88px;
  background: repeating-linear-gradient(to right, #e9f6e6 0 calc(var(--hour) - 1px), #d4e7d5 calc(var(--hour) - 1px) var(--hour));
}
.fleet-event { top: 22px; color: #20352a; font-weight: 700; }
.fleet-event.own, .swatch.own { background: #b8d9fa; }
.fleet-event.other, .swatch.other { background: #dfc3ef; }
.fleet-event.maintenance, .swatch.maintenance { background: #e3e5e4; }
.calendar-legend { display: flex; gap: 17px; flex-wrap: wrap; margin: 16px 0; font-size: 12px; }
.swatch { display: inline-block; width: 20px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.swatch.available { background: #cdefc8; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; }
.book-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.book-times label { margin-top: 0; }
.book-car { display: flex; align-items: center; gap: 15px; }
.book-car h3 { margin: 8px 0 4px; }
.book-car p { margin: 0; }
@media (max-width: 850px) { .real-logo { width: 220px; } }
@media (max-width: 740px) {
  .top { flex-wrap: wrap; padding: 12px; }
  .nav { padding: 0 5px; }
  .nav a { padding: 15px 12px; }
  main { padding: 12px; }
  .heading { flex-wrap: wrap; }
  .book-layout { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 460px) { .book-times { grid-template-columns: 1fr; gap: 0; } }

.book-car[hidden] { display: none; }
.book-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1px;color:#0a774d;margin-bottom:7px}.book-layout{display:grid;grid-template-columns:minmax(350px,1.15fr) minmax(310px,.85fr);gap:18px;align-items:start}.booking-form{padding:27px}.book-side .panel{margin-top:16px}.book-side .panel:first-child{margin-top:16px}.book-times{display:grid;grid-template-columns:1fr 1fr;gap:13px}.book-submit{width:100%;padding:16px;font-size:15px}.book-car{display:flex;gap:20px;align-items:center}.book-car img{width:175px;max-width:45%;height:115px;object-fit:contain}.book-car h3{margin:12px 0 6px}.book-rule{font-size:13px;line-height:2;color:#53695b;margin-top:14px}.check-state{border-radius:10px;padding:17px;font-weight:700}.check-good{background:#e0f5e6;color:#09643c}.check-bad{background:#fff0e9;color:#a33c23}.check-neutral{background:#eff5f0;color:#425c49}@media(max-width:900px){.book-layout{grid-template-columns:1fr}}@media(max-width:520px){.book-times{grid-template-columns:1fr}}
.booking-form .field label { margin: 0 0 6px; }
.booking-form .field { margin-bottom: 14px; }
.booking-form .field input, .booking-form .field select { margin: 0; }
.booking-form textarea { width: 100%; min-height: 84px; padding: 11px; border: 1px solid #cbd9d0; border-radius: 8px; color: inherit; font: inherit; resize: vertical; }
.booking-error { color: #a52b2b; font-weight: 700; }
.book-car[hidden], #book-period:empty { display: none; }
@media (max-width: 520px) { .booking-form { padding: 18px; } }

.site-brand { display: block; text-decoration: none; }
.header-alerts { white-space: nowrap; }
.admin-panel-heading h2 { margin-bottom: 5px; }
.admin-panel-heading p { margin: 0 0 13px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 15px; align-items: start; }
.admin-grid label { margin: 0; }
.car-actions, .dossier-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.car-actions .inline, .car-upload { margin: 0; }
.car-actions .inline button { padding: 12px 17px; font-size: 14px; }
.danger, .danger:hover { color: #9a2525; background: #fae5e5; }
.car-upload { display: flex; align-items: center; gap: 5px; }
.car-upload input { width: 140px; margin: 0; font-size: 11px; padding: 4px; }
.car-upload button { padding: 6px 9px; font-size: 12px; }
.archived-car { opacity: .65; }
.apk-warning { color: #a23b20; }
.dossier-picker { margin-bottom: 16px; }
.dossier-picker select { margin: 0; }
.dossier-actions input[type="date"] { width: min(210px, 100%); margin: 0; }
.dossier-stat { padding: 21px; border: 1px solid #dfeae1; border-radius: 13px; background: #fff; }
.dossier-stat strong { display: block; font-size: 29px; color: #006742; margin: 6px 0; }
.dossier-stat:first-child strong { font-size: 22px; }
.dossier-stat small { margin: 0; }
.dossier-pill { display: inline-block; border-radius: 12px; padding: 4px 8px; font-size: 12px; font-weight: 700; color: #245b3e; background: #e5f3e8; }
.dossier-pill.warn { background: #fce8d8; color: #9b3e21; }
main textarea { display: block; width: 100%; padding: 11px; margin: 6px 0 13px; border: 1px solid #cbd9d0; border-radius: 8px; color: inherit; font: inherit; resize: vertical; }
.demo-dialog { width: min(560px, calc(100% - 32px)); max-height: 85vh; overflow: auto; padding: 24px; border: 0; border-radius: 14px; color: #20352a; box-shadow: 0 12px 40px #102d1d42; }
.demo-dialog::backdrop { background: #001b1299; }
.apk-alert-list { max-height: 52vh; overflow: auto; }
.apk-alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid #e4eae5; }
.apk-alert-row .btn { flex: 0 0 auto; }
