:root {
  --bg-top: #fff7ed;
  --bg-bottom: #fffbeb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: #f3d8b8;
  --text-main: #3f2a1d;
  --text-sub: #7c2d12;
  --primary: #c2410c;
  --primary-soft: #fce7d6;
  --accent: #b45309;
  --ok: #c2410c;
  --ok-bg: #ccfbf1;
  --busy: #b45309;
  --busy-bg: #ffedd5;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --radius: 16px;
  --shadow: 0 16px 34px rgba(124, 45, 18, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: #ffffff;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Lexend", "Segoe UI", sans-serif;
}

p {
  margin: 0;
}

.bg-layer {
  display: none;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.shape-one {
  width: 380px;
  height: 380px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.38) 0%, rgba(59, 130, 246, 0) 72%);
}

.shape-two {
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.34) 0%, rgba(14, 116, 144, 0) 70%);
}

.shape-three {
  width: 260px;
  height: 260px;
  top: 45%;
  left: 44%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 70%);
}

.app-shell {
  width: min(1380px, 94vw);
  margin: 18px auto 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.page-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.container,
.topbar {
  width: 100%;
}

.topbar {
  margin: 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar {
  position: static;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.sidebar-brand h1 {
  margin-top: 2px;
  font-size: 1.25rem;
}

.sidebar-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
  overflow-x: auto;
}

.sidebar-link {
  min-height: 42px;
  border: 1px solid #f3e5c4;
  border-radius: 12px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  width: calc(4em + 24px);
  min-width: calc(4em + 24px);
  white-space: nowrap;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-link:hover {
  border-color: #75a7a2;
  background: #f1f5f9;
  color: var(--primary);
}

.sidebar-link.is-active,
.sidebar-link[aria-current="page"] {
  border-color: #a16207;
  background: #f8fafc;
  color: #a16207;
}

.sidebar-link:focus-visible {
  outline: none;
  border-color: #a16207;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #bdd5ff;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.topbar h1,
.topbar h2 {
  margin-top: 2px;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.today-label {
  color: var(--text-sub);
  font-weight: 600;
}

.container {
  margin: 0;
  display: grid;
  gap: 14px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.stat-title {
  font-size: 0.95rem;
  color: var(--text-sub);
}

.stat-value {
  margin-top: 6px;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  font-weight: 700;
  color: var(--primary);
}
.btn:focus-visible,
.btn-small:focus-visible,
.toolbar-btn:focus-visible,
.view-mode-btn:focus-visible,
.calendar-filter-btn:focus-visible,
.day-more-btn:focus-visible,
.calendar-day:focus-visible {
  outline: none;
  border-color: #a16207;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover {
  background: #a16207;
}

.index-apply-btn {
  border-color: #c2410c;
  background: #c2410c;
  color: #fff;
}

.index-apply-btn:hover {
  border-color: #9a3412;
  background: #9a3412;
  color: #fff;
}

.btn-secondary {
  border-color: #f3e5c4;
  background: #fff;
  color: var(--primary);
}

.btn-secondary:hover {
  border-color: #75a7a2;
  background: #fffbeb;
}

.layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 14px;
}

.home-layout-balanced {
  grid-template-columns: minmax(0, calc(((100% - 24px) / 3) * 2 + 12px)) minmax(0, 1fr);
}

.main-column {
  display: grid;
  gap: 14px;
}

.main-column .panel,
.timeline {
  padding: 16px;
}

.section-head {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.section-head h2 {
  font-size: 1.15rem;
}

.section-head p {
  color: var(--text-sub);
}

.section-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-toggle-btn {
  min-width: 56px;
}

.calendar-toolbar {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-btn {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #713f12;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #a16207;
  color: #fff;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.toolbar-btn:hover {
  background: #713f12;
  border-color: #713f12;
}

.icon-btn {
  width: 40px;
  padding: 0;
}

.icon-btn svg,
.expand-btn svg {
  width: 18px;
  height: 18px;
}

.today-btn {
  background: #a16207;
  border-color: #a16207;
}

.today-btn:hover {
  background: #a16207;
  border-color: #a16207;
}

.expand-btn {
  background: #352515;
  border-color: #352515;
}

.expand-btn:hover {
  background: #020617;
  border-color: #020617;
}

.view-mode-tabs {
  display: inline-flex;
  border: 1px solid #713f12;
  border-radius: 10px;
  overflow: hidden;
  background: #a16207;
}

.view-mode-btn {
  min-width: 44px;
  height: 40px;
  border: none;
  border-left: 1px solid #713f12;
  background: transparent;
  color: #f8fafc;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.view-mode-btn:first-child {
  border-left: none;
}

.view-mode-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.view-mode-btn.is-active {
  background: #f8fafc;
  color: #1e293b;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #f3e5c4;
  background: #fff;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.month-btn:hover {
  border-color: #75a7a2;
  background: #fffbeb;
}

.month-label {
  min-width: 110px;
  text-align: center;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.month-title {
  min-width: 0;
  text-align: center;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  color: #352515;
}

.calendar-filter-tabs {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-filter-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c7daff;
  border-radius: 999px;
  background: #fff;
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.calendar-filter-btn:hover {
  border-color: #75a7a2;
  color: var(--primary);
  background: #f8fbff;
}

.calendar-filter-btn.is-active {
  border-color: #a16207;
  background: #f8fafc;
  color: #a16207;
}

.booking-panel {
  padding: 18px;
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.field-full {
  grid-column: 1 / -1;
}

.field-right {
  grid-column: 2;
}

.field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #a16207;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #f3e5c4;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #352515;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: #a16207;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.destination-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.destination-sep {
  font-size: 0.92rem;
  font-weight: 700;
  color: #a16207;
}

.form-hint {
  margin-top: -2px;
  font-size: 0.82rem;
  color: #64748b;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.booking-feedback {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a16207;
}

.bookings-layout {
  grid-template-columns: 1fr;
}

.bookings-panel {
  padding: 16px;
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.report-filter-actions .btn {
  width: 100%;
}

.report-filter-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-table-wrap {
  overflow-x: auto;
  border: 1px solid #d7e4ff;
  border-radius: 12px;
  background: #fff;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  table-layout: fixed;
}

.report-col-datetime {
  width: 20%;
}

.report-col-department {
  width: 15%;
}

.report-col-meeting {
  width: 43%;
}

.report-col-room {
  width: 14%;
}

.report-col-user {
  width: 8%;
}

.report-table th,
.report-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #e5edff;
  font-size: 0.9rem;
  vertical-align: top;
  word-break: break-word;
}

.assign-select {
  width: 100%;
  min-width: 130px;
  min-height: 34px;
  border: 1px solid #f3e5c4;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: #3f2a1d;
  font-size: 0.86rem;
}

.assign-driver-wrap {
  display: grid;
  gap: 6px;
}

.assign-self-driver-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #f3e5c4;
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
  color: #3f2a1d;
  font-size: 0.86rem;
}

.report-table th {
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #a16207;
  background: #f7faff;
}

.admin-layout {
  grid-template-columns: 1fr;
}

.admin-panel {
  padding: 16px;
}

.admin-form {
  margin-bottom: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #d7e4ff;
  border-radius: 12px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5edff;
  font-size: 0.9rem;
  vertical-align: top;
  word-break: break-word;
}

.admin-table th {
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #a16207;
  background: #f7faff;
}

.admin-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-empty {
  color: #64748b;
}

.admin-strong {
  font-weight: 700;
}

.admin-sub {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.82rem;
}

.report-sort-btn {
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-sort-btn::after {
  content: "↕";
  font-size: 0.72rem;
  color: #75a7a2;
}

.report-sort-btn.is-active::after {
  color: #a16207;
}

.report-sort-btn[data-direction="asc"]::after {
  content: "↑";
}

.report-sort-btn[data-direction="desc"]::after {
  content: "↓";
}

.report-sort-btn:focus-visible {
  outline: none;
  color: #a16207;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  border-radius: 6px;
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.fuel-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fuel-status-cards {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fuel-status-card {
  padding: 12px 14px;
  border: 1px solid #f3e5c4;
  border-radius: 12px;
  background: #fff;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.fuel-status-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #7c2d12;
}

.fuel-donut {
  --pct: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#c2410c calc(var(--pct) * 1%), #fde8d0 0);
}

.fuel-donut.pending {
  background: conic-gradient(#b45309 calc(var(--pct) * 1%), #fde8d0 0);
}

.fuel-donut span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7c2d12;
}

.fuel-status-value {
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #a16207;
  text-align: center;
}

.fuel-note {
  margin-top: 10px;
  color: #7c2d12;
  font-size: 0.88rem;
  font-weight: 600;
}

.fuel-table th {
  text-align: center;
}

.fuel-table {
  table-layout: auto;
  min-width: 1680px;
}

.fuel-table th,
.fuel-table td {
  white-space: nowrap;
  word-break: normal;
}

.fuel-table td {
  text-align: center;
  vertical-align: middle;
}

.fuel-table td:nth-child(6),
.fuel-table td:nth-child(12) {
  width: auto;
}

.fuel-table td:nth-child(6) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding-left: 6px;
  padding-right: 6px;
}

.fuel-table td:nth-child(12) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding-left: 6px;
  padding-right: 6px;
}

.fuel-table td:nth-child(8) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding-left: 6px;
  padding-right: 6px;
}

.fuel-table td:nth-child(6) .fuel-input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 4px;
}

.fuel-table td:nth-child(12) .fuel-input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 4px;
}

.fuel-table th:nth-child(6),
.fuel-table th:nth-child(9) {
  width: auto;
  white-space: normal;
  line-height: 1.2;
}

.fuel-table th.fuel-col-end-mileage {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding-left: 6px;
  padding-right: 6px;
}

.fuel-table th.fuel-col-ending-stock {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding-left: 6px;
  padding-right: 6px;
  white-space: normal;
  line-height: 1.2;
}

.fuel-table th.fuel-col-prev-stock {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  padding-left: 6px;
  padding-right: 6px;
  white-space: normal;
  line-height: 1.2;
}

.fuel-yellow-head {
  background: #f7faff !important;
}

.fuel-yellow-cell {
  background: #fff;
}

.fuel-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d6bc26;
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff6a8;
  color: #3f2a1d;
  font-size: 0.86rem;
  text-align: center;
}

.fuel-input:focus-visible {
  outline: none;
  border-color: #a16207;
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.16);
}

.fuel-note-cell {
  text-align: left !important;
}

.fuel-note-view,
.fuel-note-editor {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.fuel-note-text {
  margin: 0;
  font-size: 0.84rem;
  color: #3f2a1d;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}

.fuel-note-text.is-empty {
  color: #8b98b1;
}

.fuel-note-textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  border: 1px solid #d6bc26;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff6a8;
  color: #3f2a1d;
  font-size: 0.84rem;
  line-height: 1.3;
}

.fuel-note-textarea:focus-visible {
  outline: none;
  border-color: #a16207;
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.16);
}

.fuel-note-actions {
  display: flex;
  gap: 6px;
}

.report-aggregate {
  font-size: 0.84rem;
  color: #a16207;
}

.report-empty-cell {
  color: #64748b;
  text-align: center;
  padding: 18px 12px !important;
}

.report-status {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.report-status.is-done {
  color: #a16207;
  background: #ccfbf1;
}

.report-status.is-pending {
  color: #92400e;
  background: #ffedd5;
}

.trip-status-stack {
  display: inline-grid;
  gap: 8px;
  justify-items: start;
  grid-auto-rows: 40px;
}

.my-booking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.my-booking-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid #d7e4ff;
  display: grid;
  gap: 4px;
}

.my-booking-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.my-booking-meta {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.my-booking-note {
  margin-top: 2px;
  font-size: 0.86rem;
  color: #a16207;
}

.my-booking-actions {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.driver-trip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.driver-trip-item {
  padding: 14px;
  border: 1px solid #f3e5c4;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.driver-trip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.driver-precheck-form {
  padding: 12px;
  border: 1px solid #f3e5c4;
  border-radius: 10px;
  background: #fffbeb;
  display: grid;
  gap: 12px;
}

.driver-precheck-section {
  display: grid;
  gap: 8px;
}

.driver-precheck-title {
  font-weight: 700;
  color: #713f12;
}

.driver-precheck-options,
.driver-precheck-checks {
  display: grid;
  gap: 6px;
}

.driver-precheck-options label,
.driver-precheck-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #3f2a1d;
}

.driver-precheck-options input[type="radio"],
.driver-precheck-checks input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #c2410c;
}

.driver-precheck-actions {
  display: flex;
  justify-content: flex-end;
}

.trip-info-block {
  display: grid;
  gap: 4px;
}

.driver-trips-table td:nth-child(3) {
  min-width: 460px;
}

.driver-trips-table {
  table-layout: auto;
  min-width: 1180px;
}

.driver-trips-table th:nth-child(1),
.driver-trips-table td:nth-child(1) {
  width: 150px;
}

.driver-trips-table th:nth-child(2),
.driver-trips-table td:nth-child(2) {
  width: 110px;
}

.driver-trips-table th:nth-child(3),
.driver-trips-table td:nth-child(3) {
  width: auto;
  min-width: 620px;
}

.driver-trips-table th:nth-child(4),
.driver-trips-table td:nth-child(4),
.driver-trips-table th:nth-child(5),
.driver-trips-table td:nth-child(5) {
  width: 150px;
}

.driver-trips-table th:nth-child(6),
.driver-trips-table td:nth-child(6) {
  width: 110px;
}

.driver-trips-table th:nth-child(7),
.driver-trips-table td:nth-child(7) {
  width: 100px;
  white-space: nowrap;
}

.trip-action-stack {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  grid-auto-rows: 40px;
}

.trip-action-stack .btn-small {
  width: 100%;
  min-width: 120px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trip-block-title {
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #713f12;
}

.trip-precheck-block,
.trip-usage-block {
  min-width: 260px;
}

.trip-edit-panel {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #f3e5c4;
  border-radius: 10px;
  background: #fffbeb;
}

.driver-inline-options,
.driver-inline-checks {
  display: grid;
  gap: 6px;
}

.driver-inline-options label,
.driver-inline-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #3f2a1d;
}

.driver-inline-options input[type="radio"],
.driver-inline-checks input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #c2410c;
}

.trip-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.trip-usage-grid label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: #713f12;
}

.trip-usage-grid input {
  width: 100%;
  min-height: 32px;
  border: 1px solid #f3e5c4;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: #3f2a1d;
  font-size: 0.84rem;
}

.usage-log-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.usage-log-table th,
.usage-log-table td {
  padding: 8px;
  vertical-align: middle;
}

.usage-log-table th:nth-child(1),
.usage-log-table td:nth-child(1) {
  width: 13%;
}

.usage-log-table th:nth-child(2),
.usage-log-table td:nth-child(2) {
  width: 26%;
}

.usage-log-table th:nth-child(3),
.usage-log-table td:nth-child(3) {
  width: 24%;
}

.usage-log-table th:nth-child(4),
.usage-log-table td:nth-child(4) {
  width: 19%;
}

.usage-log-table th:nth-child(5),
.usage-log-table td:nth-child(5) {
  width: 18%;
}

.usage-log-table input {
  width: 100%;
  min-height: 30px;
  border: 1px solid #f3e5c4;
  border-radius: 7px;
  padding: 3px 7px;
  background: #fff;
  color: #3f2a1d;
  font-size: 0.82rem;
}

.usage-time-cell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.trip-usage-summary-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trip-usage-summary-grid label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: #713f12;
}

.trip-usage-summary-grid input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #f3e5c4;
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
  color: #3f2a1d;
  font-size: 0.84rem;
}


.my-booking-reduction-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reduction-status {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.reduction-status.is-done {
  color: #a16207;
  background: #ccfbf1;
}

.reduction-status.is-pending {
  color: #92400e;
  background: #ffedd5;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 22px;
  background: rgba(15, 23, 42, 0.46);
  display: grid;
  place-items: center;
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-card {
  width: min(780px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
}

#usageModal .modal-card {
  width: min(1160px, 96vw);
}

#precheckModal .modal-card {
  width: min(620px, 90vw);
  padding: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.modal-head h3 {
  font-size: 1.18rem;
}

.modal-subtitle {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #c7daff;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close-btn:hover {
  border-color: #75a7a2;
  background: #f1f5f9;
}

.reduction-form {
  gap: 10px;
}

.reduction-form .booking-grid {
  grid-template-columns: 1fr;
}

.report-group {
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid #d7e4ff;
  border-radius: 12px;
  background: #f8fbff;
}

.report-group legend.field-label {
  padding: 0;
  margin: 0 0 6px;
}

.report-inline-options {
  margin-top: 2px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.report-inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.report-inline-options input[type="radio"],
.report-inline-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #a16207;
}

.report-subgroup {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #f3e5c4;
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.report-inline-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.report-inline-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #a16207;
  white-space: nowrap;
}

.report-inline-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #f3e5c4;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #352515;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.report-inline-field input:focus-visible {
  outline: none;
  border-color: #a16207;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#noPackagingDetailSection.report-subgroup {
  padding-top: 8px;
  padding-bottom: 8px;
}

#noPackagingDetailSection .report-inline-field input {
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.form-actions-split {
  justify-content: space-between;
}

.account-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.account-switch select {
  min-width: 120px;
  height: 36px;
  border: 1px solid #f3e5c4;
  border-radius: 10px;
  padding: 0 8px;
  background: #fff;
  color: #352515;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.room-card {
  border: 1px solid #d7e4ff;
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 14px;
  display: grid;
  gap: 10px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.room-card:hover {
  border-color: #75a7a2;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.12);
  transform: translateY(-2px);
}

.room-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.room-name {
  font-size: 1rem;
  font-weight: 700;
}

.room-id {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.badge.available {
  color: var(--ok);
  background: var(--ok-bg);
}

.badge.available::before {
  background: var(--ok);
}

.badge.busy {
  color: var(--busy);
  background: var(--busy-bg);
}

.badge.busy::before {
  background: var(--busy);
}

.badge.maintenance {
  color: var(--danger);
  background: var(--danger-bg);
}

.badge.maintenance::before {
  background: var(--danger);
}

.room-meta {
  display: grid;
  gap: 5px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.room-meta strong {
  color: var(--text-main);
}

.equipment {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  background: #f8fafc;
  color: #a16207;
}

.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.next-slot {
  font-size: 0.82rem;
  color: var(--text-sub);
}

.btn-small {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #f3e5c4;
  background: #fff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-small:hover {
  border-color: #75a7a2;
  background: #fffbeb;
}

.room-apply-btn {
  border-color: #c2410c;
  background: #c2410c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.room-apply-btn:hover {
  border-color: #9a3412;
  background: #9a3412;
  color: #fff;
}

.btn-small.btn-danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.btn-small.btn-danger:hover {
  border-color: #fda4af;
  background: #ffe4e6;
}

.btn-small:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.empty-state {
  border: 1px dashed #bdd3ff;
  border-radius: 12px;
  padding: 16px;
  color: var(--text-sub);
  background: #f8fbff;
}

.calendar-view {
  display: grid;
  gap: 10px;
}

.calendar-page-panel {
  padding: 16px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.calendar-weekdays.is-hidden {
  display: none;
}

.calendar-grid.day-mode {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-grid.list-mode {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.calendar-day {
  min-height: 88px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #d7e4ff;
  background: #fff;
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.calendar-day:hover {
  border-color: #75a7a2;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.08);
}

.calendar-day.empty {
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.calendar-day.is-selected {
  border-color: #a16207;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.calendar-day.is-today .day-number {
  color: #a16207;
}

.calendar-day.is-today .day-date {
  color: #a16207;
}

.calendar-day.day-mode-card {
  min-height: 220px;
  cursor: default;
  align-content: start;
}

.calendar-day.day-mode-card:hover {
  border-color: #d7e4ff;
  box-shadow: none;
  transform: none;
}

.day-number {
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.day-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: #352515;
}

.day-count {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.day-meeting-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.day-meeting-item {
  padding: 2px 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #a16207;
  word-break: break-word;
}

.day-empty {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #75a7a2;
}

.day-more-btn {
  margin-top: 2px;
  width: fit-content;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #f3e5c4;
  border-radius: 999px;
  background: #f8fafc;
  color: #a16207;
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.day-more-btn:hover {
  border-color: #75a7a2;
  background: #f3e5c4;
}

.calendar-view.is-mode-week .day-number {
  font-size: 0.88rem;
}

.calendar-list-item {
  border: 1px solid #d7e4ff;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.calendar-list-item:hover {
  border-color: #75a7a2;
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.08);
  transform: translateY(-1px);
}

.calendar-list-item:focus-visible {
  outline: none;
  border-color: #a16207;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.calendar-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.calendar-list-date {
  font-family: "Lexend", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #352515;
}

.calendar-list-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #a16207;
  font-size: 0.74rem;
  font-weight: 700;
}

.calendar-list-meetings {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.calendar-list-meetings li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.83rem;
  color: #a16207;
}

.calendar-list-meetings li span {
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.76rem;
}

.calendar-summary {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f3e5c4;
  background: #f8fbff;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.meeting-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.meeting-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid #d7e4ff;
  display: grid;
  gap: 6px;
}

.meeting-item header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.meeting-title {
  font-weight: 700;
}

.meeting-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-sub);
  font-size: 0.88rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 420ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .app-shell {
    width: min(1160px, 92vw);
    margin-top: 14px;
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    align-items: center;
  }

  .sidebar-nav {
    width: auto;
  }

  .sidebar-link {
    justify-content: center;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .home-layout-balanced {
    grid-template-columns: 1fr;
  }

  .report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(1160px, 94vw);
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: nowrap;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-meta {
    width: 100%;
    justify-content: space-between;
  }

  .driver-trip-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .month-title {
    text-align: left;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .view-mode-tabs {
    flex: 1;
    min-width: 0;
  }

  .view-mode-btn {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
  }

  .calendar-filter-tabs {
    gap: 6px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .report-filters,
  .report-metrics {
    grid-template-columns: 1fr;
  }

  .fuel-filters {
    grid-template-columns: 1fr;
  }

  .fuel-status-cards {
    grid-template-columns: 1fr;
  }

  .field-right {
    grid-column: 1;
  }

  .calendar-weekdays span {
    font-size: 0.72rem;
  }

  .calendar-day {
    min-height: 76px;
    padding: 6px;
  }

  .calendar-view.is-mode-week .calendar-weekdays {
    display: none;
  }

  .calendar-view.is-mode-week .calendar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .calendar-view.is-mode-week .calendar-day {
    min-height: auto;
    padding: 10px 12px;
    gap: 8px;
  }

  .calendar-view.is-mode-week .day-number {
    font-size: 0.94rem;
    color: #a16207;
  }

  .calendar-view.is-mode-week .day-meeting-list {
    gap: 6px;
  }

  .calendar-view.is-mode-week .day-meeting-item {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .calendar-view.is-mode-week .day-more-btn {
    height: 24px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .calendar-list-item {
    padding: 9px 10px;
  }

  .calendar-list-date {
    font-size: 0.86rem;
  }

  .calendar-list-meetings li {
    font-size: 0.8rem;
  }

  .day-number {
    font-size: 0.82rem;
  }

  .day-count {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}








