@import url("/assets/colors_and_type.css");

/* =====================================================================
   Thai diacritic-safe overrides — loosen line-heights so vowels &
   tone marks aren't clipped.
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.55; }
h1, .vs-heading-xl { line-height: 1.25; }
h2, .vs-heading-l { line-height: 1.3; }
h3, .vs-heading-m, h4, .vs-heading-s { line-height: 1.4; }
p, .vs-body, label, .vs-input__hint, li { line-height: 1.6; }
.vs-body-l { line-height: 1.45; }

/* =====================================================================
   App shell
   ===================================================================== */
* { box-sizing: border-box; }
body { background: var(--vs-template-bg); }

.vs-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--vs-template-bg); }
.vs-main { flex: 1; padding: 25px 0 60px; background: var(--vs-body-bg); }
@media (max-width: 640px) { .vs-main { padding: 15px 0 40px; } }

.vs-container { max-width: 960px; margin: 0 auto; padding: 0 var(--vs-gutter); }
.vs-container-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--vs-gutter); }
.vs-container-wide   { max-width: 1140px; margin: 0 auto; padding: 0 var(--vs-gutter); }
@media (max-width: 640px) {
  .vs-container, .vs-container-narrow, .vs-container-wide { padding: 0 var(--vs-gutter-half); }
}

/* =====================================================================
   Header
   ===================================================================== */
.vs-header {
  background: var(--vs-brand);
  color: #fff;
  border-bottom: 10px solid var(--vs-teal-accent);
}
.vs-header-top {
  padding: 12px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 15px;
}
.vs-header-logo {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; line-height: 1.2; color: #fff;
  min-width: 0;
}
.vs-header-logo img { height: 44px; width: auto; display: block; flex-shrink: 0; }
.vs-header-service-title {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 8px;
  font-weight: 700; font-size: 19px; color: #fff;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.3);
  line-height: 1.3;
}
@media (max-width: 800px) {
  .vs-header-service-title { font-size: 16px; padding-left: 10px; }
  .vs-header-logo img { height: 36px; }
}
@media (max-width: 540px) {
  .vs-header-service-title { display: none; }
}
.vs-header-actions { display: inline-flex; align-items: center; gap: 12px; }

.vs-role-switch {
  display: inline-flex;
  border: 2px solid #fff;
  background: transparent;
  font-size: 14px; line-height: 1;
}
.vs-role-switch button {
  background: transparent; color: #fff; border: 0; padding: 8px 12px;
  font: inherit; font-weight: 700; cursor: pointer; letter-spacing: .3px;
}
.vs-role-switch button.is-active { background: #fff; color: var(--vs-brand); }

/* LINE button on header */
.vs-line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #06c755; color: #fff; border: 0; padding: 6px 10px;
  font-family: var(--vs-font-family); font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 0 #048d3c;
}
.vs-line-btn:hover { background: #04a845; }
.vs-line-icon { font-size: 13px; letter-spacing: .5px; }
.vs-line-count {
  background: #fff; color: #06c755; padding: 1px 7px;
  font-size: 13px; font-weight: 700; border-radius: 1px;
}

/* =====================================================================
   Phase banner & footer
   ===================================================================== */
.vs-phase {
  border-bottom: 1px solid var(--vs-border);
  padding: 10px 0;
  font-size: 16px;
  background: var(--vs-body-bg);
}
.vs-phase-tag {
  background: var(--vs-brand); color: #fff; padding: 2px 8px; margin-right: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: .5px;
  border-radius: 1px; text-transform: uppercase;
}
.vs-footer {
  background: var(--vs-template-bg);
  border-top: 1px solid var(--vs-surface-border);
  padding: 25px 0 20px; font-size: 16px;
}
.vs-footer-links { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: 20px; }
.vs-footer-meta { display: flex; align-items: flex-end; gap: 15px; }
.vs-footer-meta img { height: 36px; width: auto; }

/* =====================================================================
   Headings & helpers
   ===================================================================== */
.vs-caption-l { font-size: 19px; color: var(--vs-text-secondary); font-weight: 400; margin: 0 0 5px; }
.vs-lead { font-size: 21px; line-height: 1.5; margin: 0 0 25px; }
@media (min-width: 641px) { .vs-lead { font-size: 24px; line-height: 1.4; } }
.vs-meta { font-size: 16px; color: var(--vs-text-secondary); line-height: 1.5; }
.vs-divider { border: 0; border-top: 1px solid var(--vs-border); margin: 30px 0; }

/* =====================================================================
   Buttons
   ===================================================================== */
.vs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--vs-font-family); font-weight: 400;
  font-size: 19px; line-height: 1.25;
  padding: 8px 12px 7px;
  border: 2px solid transparent; border-radius: 0;
  background: var(--vs-button); color: var(--vs-button-text);
  box-shadow: 0 2px 0 var(--vs-button-shadow);
  cursor: pointer; text-decoration: none; margin-bottom: 22px;
}
.vs-btn:hover { background: var(--vs-button-hover); color: #fff; }
.vs-btn:active { transform: translateY(2px); box-shadow: none; }
.vs-btn:focus {
  outline: 3px solid var(--vs-focus); outline-offset: 0;
  background: var(--vs-focus); color: var(--vs-focus-text);
  box-shadow: inset 0 0 0 1px var(--vs-focus), 0 2px 0 var(--vs-focus-text);
}
.vs-btn--secondary {
  background: var(--vs-button-secondary); color: var(--vs-button-secondary-text);
  box-shadow: 0 2px 0 var(--vs-button-secondary-shadow);
}
.vs-btn--secondary:hover {
  background: var(--vs-button-secondary-hover); color: var(--vs-button-secondary-text);
}
.vs-btn--warning {
  background: var(--vs-button-warning); color: #fff;
  box-shadow: 0 2px 0 var(--vs-button-warning-shadow);
}
.vs-btn--warning:hover { background: var(--vs-button-warning-hover); color: #fff; }
.vs-btn--block { display: flex; width: 100%; }
.vs-btn--start { font-size: 21px; font-weight: 700; padding: 12px 16px 11px; }
.vs-btn--lg { font-size: 21px; padding: 12px 18px 11px; font-weight: 700; }
.vs-btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.vs-btn-row .vs-btn { margin: 0; }

/* Subtle icon-only round button */
.vs-icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--vs-text); cursor: pointer;
  font-size: 19px; font-family: var(--vs-font-family); color: var(--vs-text);
}
.vs-icon-btn:hover { background: var(--vs-blue-tint-95); }

/* =====================================================================
   Forms
   ===================================================================== */
.vs-field { margin-bottom: 22px; }
.vs-field--error { border-left: 5px solid var(--vs-error); padding-left: 15px; }
.vs-label { display: block; font-weight: 700; font-size: 19px; margin-bottom: 5px; }
.vs-hint { font-size: 19px; color: var(--vs-text-secondary); margin-bottom: 8px; line-height: 1.5; }
.vs-error-message { font-weight: 700; color: var(--vs-error); font-size: 19px; margin-bottom: 8px; }

.vs-input {
  font-family: var(--vs-font-family);
  font-size: 19px; line-height: 1.4;
  padding: 8px 8px 7px;
  border: 2px solid var(--vs-input-border);
  border-radius: 0; width: 100%;
  background: #fff; color: var(--vs-text);
}
.vs-input:focus {
  outline: 3px solid var(--vs-focus); outline-offset: 0;
  box-shadow: inset 0 0 0 2px var(--vs-text);
}
.vs-input--w-md { max-width: 360px; }
.vs-input--w-sm { max-width: 200px; }
.vs-input--w-xs { max-width: 120px; }
textarea.vs-input { min-height: 120px; resize: vertical; }
select.vs-input {
  background: #fff; appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--vs-text) 50%),
                    linear-gradient(135deg, var(--vs-text) 50%, transparent 50%);
  background-position: calc(100% - 18px) 14px, calc(100% - 12px) 14px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}

.vs-radios { display: flex; flex-direction: column; gap: 10px; }
.vs-radio--card {
  display: flex; align-items: flex-start; gap: 12px;
  border: 2px solid var(--vs-input-border);
  padding: 14px 16px; background: #fff; cursor: pointer;
}
.vs-radio--card.is-checked {
  background: var(--vs-blue-tint-95);
  box-shadow: inset 0 0 0 2px var(--vs-brand);
}
.vs-radio--card.is-disabled { opacity: .55; cursor: not-allowed; background: var(--vs-black-tint-95); }
.vs-radio--card input { margin: 4px 0 0; width: 24px; height: 24px; accent-color: var(--vs-text); flex-shrink: 0; }
.vs-radio--card .vs-radio__title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.vs-radio--card .vs-radio__desc { font-size: 16px; color: var(--vs-text-secondary); margin-top: 4px; line-height: 1.5; }
.vs-radio--card .vs-radio__price {
  margin-left: auto; font-weight: 700; font-size: 19px; color: var(--vs-text);
  white-space: nowrap;
}

.vs-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 19px; cursor: pointer; padding: 5px 0; line-height: 1.5; }
.vs-checkbox input { width: 24px; height: 24px; accent-color: var(--vs-text); flex-shrink: 0; margin-top: 2px; }

fieldset.vs-fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.vs-fieldset legend { font-weight: 700; font-size: 24px; margin-bottom: 8px; padding: 0; line-height: 1.3; }

.vs-error-summary {
  border: 5px solid var(--vs-error); padding: 15px 20px; margin-bottom: 25px; background: #fff;
}
.vs-error-summary h2 { margin: 0 0 10px; font-size: 21px; }
.vs-error-summary ul { margin: 0; padding-left: 20px; }
.vs-error-summary a { color: var(--vs-error); font-weight: 700; }

/* =====================================================================
   Tags
   ===================================================================== */
.vs-tag {
  display: inline-block; padding: 4px 8px;
  background: var(--vs-blue-tint-80); color: var(--vs-blue-shade-50);
  border-radius: 1px; font-weight: 700;
  font-size: 14px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.2;
}
.vs-tag--green  { background: var(--vs-green-tint-80);   color: var(--vs-green-shade-50); }
.vs-tag--red    { background: var(--vs-red-tint-80);     color: var(--vs-red-shade-50); }
.vs-tag--orange { background: var(--vs-orange-tint-80);  color: var(--vs-orange-shade-50); }
.vs-tag--grey   { background: var(--vs-black-tint-80);   color: var(--vs-black); }
.vs-tag--yellow { background: var(--vs-yellow-tint-50);  color: var(--vs-orange-shade-50); }
.vs-tag--purple { background: var(--vs-purple-tint-80);  color: var(--vs-purple-shade-50); }

/* =====================================================================
   Panel & cards
   ===================================================================== */
.vs-panel {
  background: var(--vs-success); color: #fff;
  padding: 35px 20px; text-align: center; margin-bottom: 30px;
}
.vs-panel h1 { color: #fff; margin: 0 0 12px; font-size: 32px; line-height: 1.25; }
.vs-panel-ref { font-size: 24px; line-height: 1.4; }
.vs-panel-ref strong { display: block; font-size: 32px; letter-spacing: 2px; margin-top: 5px; }

.vs-panel--warn   { background: var(--vs-error); }
.vs-panel--brand  { background: var(--vs-brand); }

.vs-inset {
  border-left: 5px solid var(--vs-blue-tint-50);
  padding: 5px 15px; margin: 25px 0;
}
.vs-card { background: var(--vs-blue-tint-95); padding: 20px; margin-bottom: 20px; }
.vs-card--white { background: #fff; border: 1px solid var(--vs-border); padding: 20px; margin-bottom: 20px; }
.vs-card--bordered { background: #fff; border: 2px solid var(--vs-text); padding: 20px; margin-bottom: 20px; }

.vs-section { margin-bottom: 30px; }
.vs-section-title {
  font-weight: 700; font-size: 19px; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--vs-border);
}

/* =====================================================================
   Summary list
   ===================================================================== */
.vs-summary { margin: 0 0 30px; padding: 0; }
.vs-summary-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--vs-border);
  align-items: baseline;
}
.vs-summary-row:last-child { border-bottom: 0; }
.vs-summary-key { font-weight: 700; }
.vs-summary-value { margin: 0; line-height: 1.55; }
.vs-summary-action { margin: 0; text-align: right; font-size: 16px; }
@media (max-width: 640px) {
  .vs-summary-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .vs-summary-action { text-align: left; }
}

/* =====================================================================
   Lists (clickable rows)
   ===================================================================== */
.vs-list { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--vs-border); }
.vs-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 16px 0; border-bottom: 1px solid var(--vs-border);
  text-decoration: none; color: inherit;
}
.vs-list-row:hover { background: var(--vs-blue-tint-95); }
.vs-list-row:focus { outline: 3px solid var(--vs-focus); outline-offset: 0; background: var(--vs-focus); text-decoration: none; }
.vs-list-row__main { flex: 1; min-width: 0; }
.vs-list-row__title {
  font-weight: 700; font-size: 19px; margin: 0 0 4px;
  text-decoration: underline; color: var(--vs-link); line-height: 1.4;
}
.vs-list-row:focus .vs-list-row__title { color: var(--vs-text); }
.vs-list-row__meta { font-size: 16px; color: var(--vs-text-secondary); margin: 0; line-height: 1.5; }
.vs-list-row__right { text-align: right; font-size: 16px; color: var(--vs-text-secondary); flex-shrink: 0; }
.vs-list-row__right strong { display: block; font-size: 19px; color: var(--vs-text); }

/* =====================================================================
   Action grid (home page tiles)
   ===================================================================== */
.vs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 15px; margin-bottom: 30px;
}
@media (max-width: 480px) { .vs-grid { grid-template-columns: 1fr; } }

.vs-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  background: #fff; border: 2px solid var(--vs-text);
  padding: 18px; text-decoration: none; color: var(--vs-text);
  min-height: 130px; position: relative;
}
.vs-tile:hover { background: var(--vs-blue-tint-95); }
.vs-tile:focus { outline: 3px solid var(--vs-focus); outline-offset: 0; }
.vs-tile__title {
  font-weight: 700; font-size: 21px; line-height: 1.3; margin: 0 0 5px;
  text-decoration: underline; color: var(--vs-link);
}
.vs-tile:focus .vs-tile__title { color: var(--vs-text); }
.vs-tile__desc { font-size: 16px; color: var(--vs-text-secondary); margin: 0; line-height: 1.5; }
.vs-tile--primary {
  background: var(--vs-brand); border-color: var(--vs-blue-shade-50);
  color: #fff; box-shadow: 0 4px 0 var(--vs-blue-shade-50);
  min-height: 160px; grid-column: 1 / -1;
}
.vs-tile--primary:hover { background: var(--vs-blue-shade-25); color: #fff; }
.vs-tile--primary .vs-tile__title { color: #fff; font-size: 28px; text-decoration: none; }
.vs-tile--primary .vs-tile__desc { color: #fff; font-size: 19px; }
.vs-tile--primary:focus { box-shadow: inset 0 0 0 2px var(--vs-text), 0 4px 0 var(--vs-text); }

/* =====================================================================
   Step progress
   ===================================================================== */
.vs-steps {
  display: flex; align-items: center; gap: 0; margin: 0 0 25px;
  font-size: 14px; color: var(--vs-text-secondary);
  font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  flex-wrap: wrap;
}
.vs-step { display: flex; align-items: center; gap: 6px; }
.vs-step-num {
  width: 26px; height: 26px;
  background: var(--vs-black-tint-80); color: var(--vs-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.vs-step.is-active .vs-step-num { background: var(--vs-brand); color: #fff; }
.vs-step.is-done .vs-step-num { background: var(--vs-success); color: #fff; }
.vs-step-line { flex: 1; height: 2px; background: var(--vs-border); margin: 0 8px; min-width: 16px; }
.vs-step.is-done + .vs-step-line { background: var(--vs-success); }
@media (max-width: 540px) { .vs-step-label { display: none; } }

/* =====================================================================
   Back link
   ===================================================================== */
.vs-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 16px; margin: 0 0 15px;
  color: var(--vs-link); text-decoration: underline;
}
.vs-back::before {
  content: ""; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-right: 6px solid currentColor;
}

/* =====================================================================
   Tables
   ===================================================================== */
.vs-table { border-collapse: collapse; width: 100%; font-size: 16px; margin-bottom: 25px; }
.vs-table th, .vs-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--vs-border);
  vertical-align: top; line-height: 1.5;
}
.vs-table th { font-weight: 700; background: var(--vs-blue-tint-95); }
.vs-table tr:hover td { background: var(--vs-blue-tint-95); }
.vs-table .vs-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-table--compact th, .vs-table--compact td { padding: 8px 10px; }
.vs-table a { font-weight: 700; }

/* =====================================================================
   Toast
   ===================================================================== */
.vs-toast {
  position: fixed; top: 15px; left: 50%;
  transform: translateX(-50%) translateY(-150%);
  background: #06c755; color: #fff;
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 480px; width: calc(100% - 30px);
  box-shadow: 0 4px 0 #048d3c; z-index: 1000;
  transition: transform .25s ease;
}
.vs-toast.is-shown { transform: translateX(-50%) translateY(0); }
.vs-toast--warn { background: var(--vs-error); box-shadow: 0 4px 0 var(--vs-red-shade-50); }
.vs-toast-icon {
  background: #fff; color: #06c755; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0; border-radius: 1px;
  font-family: var(--vs-font-family);
}
.vs-toast--warn .vs-toast-icon { color: var(--vs-error); }
.vs-toast-body { font-size: 16px; line-height: 1.5; }
.vs-toast-body strong { display: block; margin-bottom: 2px; }

/* =====================================================================
   LINE notification panel (drawer top-right)
   ===================================================================== */
.vs-line-panel {
  position: fixed; top: 12px; right: 12px;
  width: 380px; max-width: calc(100vw - 24px);
  background: #fff; border: 2px solid var(--vs-text);
  box-shadow: 0 4px 0 var(--vs-text);
  z-index: 1000; display: flex; flex-direction: column;
  max-height: calc(100vh - 24px);
}
.vs-line-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; border-bottom: 2px solid var(--vs-text);
  background: #06c755; color: #fff;
}
.vs-line-panel__head strong { display: block; font-size: 19px; }
.vs-line-panel__head .vs-muted { color: rgba(255,255,255,.85); font-size: 14px; }
.vs-line-panel__head .vs-icon-btn {
  background: #fff; border-color: #fff; color: #06c755;
}
.vs-line-panel__body {
  padding: 12px 14px; overflow: auto; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.vs-line-panel__foot { font-size: 14px; padding: 10px 14px; border-top: 1px solid var(--vs-border); color: var(--vs-text-secondary); line-height: 1.45; }

.vs-line-msg {
  background: var(--vs-blue-tint-95); padding: 12px 14px;
  border-left: 5px solid var(--vs-brand);
}
.vs-line-msg--ok   { border-left-color: var(--vs-success); background: var(--vs-green-tint-95); }
.vs-line-msg--warn { border-left-color: var(--vs-error);   background: var(--vs-red-tint-95);   }
.vs-line-msg__title { font-weight: 700; margin: 0 0 4px; line-height: 1.4; }
.vs-line-msg__body { font-size: 16px; line-height: 1.5; margin: 0 0 6px; }
.vs-line-msg__meta { font-size: 14px; color: var(--vs-text-secondary); }
.vs-line-empty { color: var(--vs-text-secondary); padding: 30px 0; text-align: center; }

/* =====================================================================
   Vehicle cards (hero list)
   ===================================================================== */
.vs-vehicle-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin-bottom: 30px;
}
@media (max-width: 720px) { .vs-vehicle-grid { grid-template-columns: 1fr; } }

.vs-vehicle {
  background: #fff; border: 2px solid var(--vs-text); padding: 0;
  display: flex; flex-direction: column;
}
.vs-vehicle__visual {
  background: var(--vs-blue-tint-95);
  border-bottom: 2px solid var(--vs-text);
  padding: 24px; min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vs-vehicle__code {
  position: absolute; top: 10px; left: 10px;
  background: var(--vs-text); color: #fff; padding: 3px 9px;
  font-weight: 700; font-size: 14px; letter-spacing: .4px;
}
.vs-vehicle__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.vs-vehicle__title { font-weight: 700; font-size: 19px; margin: 0 0 4px; line-height: 1.3; }
.vs-vehicle__capacity { font-size: 16px; color: var(--vs-text-secondary); margin: 0 0 10px; line-height: 1.4; }
.vs-vehicle__features {
  list-style: none; padding: 0; margin: 0 0 14px;
  font-size: 16px; line-height: 1.5;
}
.vs-vehicle__features li { padding: 2px 0 2px 18px; position: relative; }
.vs-vehicle__features li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; background: var(--vs-success);
}
.vs-vehicle__foot {
  margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--vs-border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.vs-vehicle__foot .vs-btn { margin: 0; }
.vs-vehicle--maint { opacity: .85; }
.vs-vehicle--maint .vs-vehicle__visual { background: var(--vs-orange-tint-95); }

/* SVG illustration of the toilet vehicle, drawn inline */
.vs-toilet-svg { width: 100%; max-width: 240px; height: auto; display: block; }

/* =====================================================================
   Calendar (vehicle availability)
   ===================================================================== */
.vs-cal {
  background: #fff; border: 1px solid var(--vs-border); margin-bottom: 25px;
}
.vs-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 15px;
  border-bottom: 1px solid var(--vs-border);
  background: var(--vs-blue-tint-95);
}
.vs-cal-head h3 { margin: 0; font-size: 19px; }
.vs-cal-nav { display: inline-flex; gap: 6px; }
.vs-cal-nav button {
  border: 2px solid var(--vs-text); background: #fff; color: var(--vs-text);
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: var(--vs-font-family); font-weight: 700;
}
.vs-cal-nav button:hover { background: var(--vs-blue-tint-95); }
.vs-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--vs-border);
  border-top: 1px solid var(--vs-border);
}
.vs-cal-grid__head {
  background: var(--vs-blue-tint-95); padding: 6px 8px;
  text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .3px;
  text-transform: uppercase; color: var(--vs-text-secondary);
}
.vs-cal-cell {
  background: #fff; min-height: 76px; padding: 6px 8px;
  font-size: 14px; line-height: 1.35; position: relative; display: flex; flex-direction: column;
}
.vs-cal-cell--out { background: var(--vs-black-tint-95); color: var(--vs-text-secondary); }
.vs-cal-cell--past { color: var(--vs-text-secondary); background: #fafafa; }
.vs-cal-cell--today {
  outline: 2px solid var(--vs-brand); outline-offset: -2px;
  background: var(--vs-blue-tint-95);
}
.vs-cal-cell__day { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.vs-cal-cell--busy { background: var(--vs-red-tint-80); }
.vs-cal-cell--busy .vs-cal-cell__day { color: var(--vs-red-shade-50); }
.vs-cal-cell__tag {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
  color: var(--vs-red-shade-50);
}
.vs-cal-cell--free .vs-cal-cell__tag { color: var(--vs-success); }
.vs-cal-cell--selected {
  background: var(--vs-yellow); color: var(--vs-text);
  outline: 2px solid var(--vs-text); outline-offset: -2px;
}

.vs-cal-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--vs-text-secondary);
  padding: 10px 15px; border-top: 1px solid var(--vs-border);
}
.vs-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vs-cal-legend span::before {
  content: ""; width: 14px; height: 14px; display: inline-block;
}
.vs-cal-legend .vs-cal-legend--free::before  { background: #fff; border: 1px solid var(--vs-border); }
.vs-cal-legend .vs-cal-legend--busy::before  { background: var(--vs-red-tint-80); }
.vs-cal-legend .vs-cal-legend--today::before { background: var(--vs-blue-tint-95); border: 2px solid var(--vs-brand); }
.vs-cal-legend .vs-cal-legend--sel::before   { background: var(--vs-yellow); border: 1px solid var(--vs-text); }

@media (max-width: 540px) {
  .vs-cal-cell { min-height: 60px; padding: 4px 5px; font-size: 13px; }
  .vs-cal-cell__day { font-size: 14px; }
  .vs-cal-cell__tag { font-size: 10px; }
}

/* =====================================================================
   Filter bar
   ===================================================================== */
.vs-filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px; align-items: flex-end;
}
.vs-filter-bar .vs-input { max-width: 240px; }
.vs-filter-bar .vs-input--w-sm { max-width: 160px; }
.vs-filter-tabs {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 4px solid var(--vs-border);
  margin: 0 0 20px;
}
.vs-filter-tabs button {
  background: transparent; border: 0;
  padding: 10px 16px;
  font-family: var(--vs-font-family); font-weight: 700; font-size: 16px;
  border-bottom: 4px solid transparent; margin-bottom: -4px;
  color: var(--vs-link); cursor: pointer;
}
.vs-filter-tabs button:hover { background: var(--vs-blue-tint-95); }
.vs-filter-tabs button.is-active {
  border-color: var(--vs-brand); color: var(--vs-text);
}
.vs-filter-tabs button .vs-count {
  display: inline-block; background: var(--vs-black-tint-80); color: var(--vs-text);
  padding: 1px 8px; margin-left: 6px; font-size: 14px;
}
.vs-filter-tabs button.is-active .vs-count { background: var(--vs-brand); color: #fff; }

/* =====================================================================
   Stats grid (officer dashboard)
   ===================================================================== */
.vs-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 15px; margin-bottom: 30px;
}
@media (max-width: 720px) { .vs-stats { grid-template-columns: repeat(2, 1fr); } }
.vs-stat {
  background: var(--vs-blue-tint-95);
  padding: 18px; border-left: 5px solid var(--vs-brand);
}
.vs-stat--green  { border-color: var(--vs-success); }
.vs-stat--red    { border-color: var(--vs-error); }
.vs-stat--orange { border-color: var(--vs-orange); }
.vs-stat__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--vs-text-secondary); margin: 0 0 5px; line-height: 1.4; }
.vs-stat__value { font-size: 32px; font-weight: 700; line-height: 1.1; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.vs-stat__sub { font-size: 14px; color: var(--vs-text-secondary); margin: 0; line-height: 1.4; }

/* =====================================================================
   Modal
   ===================================================================== */
.vs-modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,12,12,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 15px; z-index: 999;
}
.vs-modal { background: #fff; max-width: 480px; width: 100%; padding: 25px; border: 2px solid var(--vs-text); }
.vs-modal h2 { margin-top: 0; }
.vs-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.vs-modal-actions .vs-btn { margin: 0; }

/* =====================================================================
   Approval / decision blocks (officer detail)
   ===================================================================== */
.vs-decision {
  background: var(--vs-blue-tint-95);
  border: 2px solid var(--vs-brand);
  padding: 20px; margin-bottom: 25px;
}
.vs-decision h2 { margin-top: 0; }
.vs-decision--approved { background: var(--vs-green-tint-95); border-color: var(--vs-success); }
.vs-decision--rejected { background: var(--vs-red-tint-95); border-color: var(--vs-error); }

/* Vehicle availability list inside detail */
.vs-availability-rows {
  list-style: none; padding: 0; margin: 0 0 25px;
  border-top: 1px solid var(--vs-border);
}
.vs-availability-rows li {
  display: flex; justify-content: space-between; gap: 15px; padding: 10px 0;
  border-bottom: 1px solid var(--vs-border); font-size: 16px;
  line-height: 1.5;
}
.vs-availability-rows li.is-conflict { color: var(--vs-red-shade-50); }
.vs-availability-rows li.is-conflict::after { content: "ทับซ้อน"; font-weight: 700; }

/* Utilities */
.vs-mt-0 { margin-top: 0; }
.vs-mb-0 { margin-bottom: 0; }
.vs-mb-2 { margin-bottom: 10px; }
.vs-mb-4 { margin-bottom: 20px; }
.vs-mb-6 { margin-bottom: 30px; }
.vs-mb-8 { margin-bottom: 50px; }
.vs-mt-4 { margin-top: 20px; }
.vs-mt-6 { margin-top: 30px; }
.vs-flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.vs-flex-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.vs-stack > * + * { margin-top: 15px; }
.vs-text-center { text-align: center; }
.vs-strong { font-weight: 700; }
.vs-muted { color: var(--vs-text-secondary); }

/* Two-column layout for officer detail */
.vs-cols-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
@media (max-width: 800px) { .vs-cols-2 { grid-template-columns: 1fr; gap: 20px; } }

/* Focus state on any focusable not otherwise styled */
:focus-visible { outline: 3px solid var(--vs-focus); outline-offset: 0; }
