@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; }

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

.vs-room {
  background: #fff; border: 2px solid var(--vs-text); padding: 0;
  display: flex; flex-direction: column;
}
.vs-room__visual {
  border-bottom: 2px solid var(--vs-text);
  min-height: 140px;
  display: flex; align-items: stretch; justify-content: center;
  position: relative;
}
.vs-room__visual svg { width: 100%; display: block; }
.vs-room__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-room__cap {
  position: absolute; top: 10px; right: 10px;
  background: #fff; color: var(--vs-text); padding: 3px 9px;
  font-weight: 700; font-size: 14px; letter-spacing: .4px;
  border: 1px solid var(--vs-text);
}
.vs-room__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.vs-room__title { font-weight: 700; font-size: 19px; margin: 0 0 4px; line-height: 1.3; }
.vs-room__floor { font-size: 16px; color: var(--vs-text-secondary); margin: 0 0 10px; line-height: 1.4; }
.vs-room__facilities {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px;
  list-style: none; padding: 0; font-size: 14px;
}
.vs-room__facilities li {
  padding: 3px 8px; background: var(--vs-blue-tint-95);
  border: 1px solid var(--vs-blue-tint-50); line-height: 1.4;
}
.vs-room__price {
  font-size: 16px; line-height: 1.5; margin: 0 0 10px;
}
.vs-room__price strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.vs-room__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-room__foot .vs-btn { margin: 0; }
.vs-room--maint { opacity: .9; }
.vs-room--maint .vs-room__visual { filter: grayscale(.4); }

.vs-room-svg { width: 100%; height: auto; display: block; }

/* =====================================================================
   Time slot grid (room availability)
   ===================================================================== */
.vs-slot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin: 0 0 18px;
}
@media (max-width: 640px) { .vs-slot-grid { grid-template-columns: repeat(2, 1fr); } }

.vs-slot {
  display: flex; flex-direction: column; gap: 4px;
  border: 2px solid var(--vs-text); padding: 12px;
  background: var(--vs-green-tint-80);
  font-family: var(--vs-font-family); font-weight: 700;
  text-align: left; cursor: pointer; min-height: 78px;
  position: relative; color: var(--vs-text);
}
.vs-slot__time { font-size: 19px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.vs-slot__status {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--vs-green-shade-50); line-height: 1.3;
}
.vs-slot:hover { background: var(--vs-green-tint-50); }
.vs-slot.is-selected {
  background: var(--vs-brand); color: #fff;
  box-shadow: inset 0 0 0 3px var(--vs-text);
}
.vs-slot.is-selected .vs-slot__status { color: #fff; }
.vs-slot.is-pending {
  background: var(--vs-yellow-tint-50);
  cursor: not-allowed;
}
.vs-slot.is-pending:hover { background: var(--vs-yellow-tint-50); }
.vs-slot.is-pending .vs-slot__status { color: var(--vs-orange-shade-50); }
.vs-slot.is-booked {
  background: var(--vs-red-tint-80);
  cursor: not-allowed;
}
.vs-slot.is-booked:hover { background: var(--vs-red-tint-80); }
.vs-slot.is-booked .vs-slot__status { color: var(--vs-red-shade-50); }
.vs-slot.is-past {
  background: var(--vs-black-tint-95); color: var(--vs-text-secondary);
  cursor: not-allowed; border-color: var(--vs-border);
}
.vs-slot.is-past:hover { background: var(--vs-black-tint-95); }
.vs-slot.is-past .vs-slot__status { color: var(--vs-text-secondary); }

.vs-slot-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 14px; margin: 0 0 18px;
  color: var(--vs-text-secondary);
}
.vs-slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vs-slot-legend i {
  width: 14px; height: 14px; display: inline-block; border: 1px solid var(--vs-text);
}
.vs-slot-legend i.free    { background: var(--vs-green-tint-80); }
.vs-slot-legend i.pending { background: var(--vs-yellow-tint-50); }
.vs-slot-legend i.booked  { background: var(--vs-red-tint-80); }
.vs-slot-legend i.past    { background: var(--vs-black-tint-95); }
.vs-slot-legend i.sel     { background: var(--vs-brand); }

/* Date strip — quick-select for next N days */
.vs-date-strip {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 4px 2px 14px; margin-bottom: 14px;
}
.vs-date-cell {
  flex: 0 0 70px;
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid var(--vs-text); padding: 8px 6px; cursor: pointer;
  background: #fff; font-family: var(--vs-font-family); color: var(--vs-text);
  min-height: 76px;
}
.vs-date-cell:hover { background: var(--vs-blue-tint-95); }
.vs-date-cell.is-selected {
  background: var(--vs-brand); color: #fff;
  box-shadow: inset 0 0 0 3px var(--vs-text);
}
.vs-date-cell.is-disabled {
  opacity: .5; cursor: not-allowed; background: var(--vs-black-tint-95);
}
.vs-date-cell__dow { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.vs-date-cell__day { font-size: 24px; font-weight: 700; line-height: 1.1; margin: 2px 0; font-variant-numeric: tabular-nums; }
.vs-date-cell__mo  { font-size: 13px; }

/* =====================================================================
   Pricing tiers display (room detail)
   ===================================================================== */
.vs-price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 0 0 20px;
}
@media (max-width: 540px) { .vs-price-grid { grid-template-columns: 1fr; } }
.vs-price-tier {
  border: 2px solid var(--vs-text); padding: 14px;
  background: #fff; text-align: center;
}
.vs-price-tier__label {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px; color: var(--vs-text-secondary); margin: 0 0 4px;
}
.vs-price-tier__amount {
  font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: 1.1; margin: 0;
}
.vs-price-tier__unit {
  font-size: 14px; color: var(--vs-text-secondary); margin: 4px 0 0;
}

/* =====================================================================
   Booking summary card
   ===================================================================== */
.vs-booking-summary {
  background: var(--vs-blue-tint-95);
  border-left: 5px solid var(--vs-brand);
  padding: 18px 20px; margin-bottom: 20px;
}
.vs-booking-summary h3 { margin: 0 0 10px; }
.vs-booking-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--vs-blue-tint-50);
  padding-top: 12px; margin-top: 12px;
}
.vs-booking-total span { font-size: 19px; }
.vs-booking-total strong { font-size: 28px; font-variant-numeric: tabular-nums; }

/* =====================================================================
   Payment QR / bank info
   ===================================================================== */
.vs-pay-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  background: #fff; border: 2px solid var(--vs-text); padding: 20px;
  margin: 0 0 24px;
}
@media (max-width: 640px) { .vs-pay-card { grid-template-columns: 1fr; } }
.vs-pay-qr {
  background: var(--vs-blue-tint-95);
  border: 1px solid var(--vs-blue-tint-50);
  padding: 14px; text-align: center;
}
.vs-pay-qr__label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px; color: var(--vs-text-secondary);
  margin: 0 0 8px;
}
.vs-pay-qr svg { display: block; margin: 0 auto; max-width: 100%; }
.vs-pay-info dt { font-weight: 700; font-size: 14px; color: var(--vs-text-secondary); margin: 12px 0 2px; text-transform: uppercase; letter-spacing: .3px; }
.vs-pay-info dt:first-child { margin-top: 0; }
.vs-pay-info dd {
  margin: 0; font-size: 19px; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.vs-pay-amount {
  background: var(--vs-orange-tint-80);
  border-left: 5px solid var(--vs-orange);
  padding: 14px 16px; margin: 0 0 18px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.vs-pay-amount__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--vs-orange-shade-50); }
.vs-pay-amount__value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Slip image preview */
.vs-slip {
  background: var(--vs-blue-tint-95); border: 1px solid var(--vs-blue-tint-50);
  padding: 14px; max-width: 320px; margin: 0 0 14px;
}
.vs-slip__img {
  width: 100%; min-height: 360px;
  background: #fff; border: 1px dashed var(--vs-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; line-height: 1.5;
  color: var(--vs-text-secondary); font-size: 14px;
}
.vs-slip__name { font-weight: 700; font-size: 14px; margin: 8px 0 0; word-break: break-word; }

/* Receipt */
.vs-receipt {
  background: #fff; border: 2px solid var(--vs-text);
  padding: 30px; max-width: 640px; margin: 0 auto 20px;
}
.vs-receipt__head {
  text-align: center; padding-bottom: 14px;
  border-bottom: 2px solid var(--vs-text); margin-bottom: 18px;
}
.vs-receipt__head h2 { margin: 0 0 4px; }
.vs-receipt__head p { margin: 2px 0; font-size: 14px; line-height: 1.5; }
.vs-receipt__num {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--vs-border);
}
.vs-receipt__num strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.vs-receipt__total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--vs-text); padding-top: 14px; margin-top: 12px;
  font-size: 19px;
}
.vs-receipt__total strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.vs-receipt__sign {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 36px; font-size: 14px;
}
.vs-receipt__sign div { border-top: 1px solid var(--vs-text); padding-top: 6px; text-align: center; }
.vs-receipt-actions {
  max-width: 640px; margin: 0 auto 30px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.vs-receipt-actions .vs-btn { margin: 0; }
@media print {
  body { background: #fff !important; }
  .vs-app .vs-header,
  .vs-app .vs-phase,
  .vs-app .vs-footer,
  [data-line-panel],
  .vs-back,
  .vs-receipt-actions,
  .vs-toast { display: none !important; }
  .vs-app .vs-main { padding: 0 !important; }
  .vs-receipt { border: 0; margin: 0; padding: 14mm; max-width: none; }
}

/* Facility chip list (room detail) */
.vs-facility-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px; margin: 0 0 20px; list-style: none; padding: 0;
}
.vs-facility-grid li {
  background: var(--vs-blue-tint-95);
  border: 1px solid var(--vs-blue-tint-50);
  padding: 8px 12px; font-size: 16px; line-height: 1.4;
  display: flex; align-items: center; gap: 8px;
}
.vs-facility-grid .vs-fac-icon { font-size: 18px; }

/* Inline pricing edit (officer rooms) */
.vs-price-edit {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 540px) { .vs-price-edit { grid-template-columns: 1fr; } }

/* Rule list (rules page) */
.vs-rule-list {
  font-size: 19px; line-height: 1.6;
  padding-left: 22px; margin: 0 0 25px;
}
.vs-rule-list li { padding-bottom: 12px; }

/* Sport-type pill */
.vs-pill {
  display: inline-block; padding: 3px 10px;
  background: var(--vs-purple-tint-80); color: var(--vs-purple-shade-50);
  font-weight: 700; font-size: 14px; letter-spacing: .3px;
  border-radius: 1px;
}
.vs-pill--football   { background: var(--vs-green-tint-80);   color: var(--vs-green-shade-50); }
.vs-pill--futsal     { background: var(--vs-teal-tint-80);    color: var(--vs-teal-shade-50); }
.vs-pill--basketball { background: var(--vs-orange-tint-80);  color: var(--vs-orange-shade-50); }
.vs-pill--tennis     { background: var(--vs-blue-tint-80);    color: var(--vs-blue-shade-50); }
.vs-pill--badminton  { background: var(--vs-magenta-tint-80); color: var(--vs-magenta-shade-50); }
.vs-pill--volleyball { background: var(--vs-yellow-tint-50);  color: var(--vs-orange-shade-50); }
.vs-pill--pool       { background: var(--vs-blue-tint-50);    color: var(--vs-blue-shade-50); }

/* Credit summary card */
.vs-credit-card {
  background: var(--vs-green-tint-95);
  border: 2px solid var(--vs-success);
  padding: 22px; margin: 0 0 25px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 18px; flex-wrap: wrap;
}
.vs-credit-card__label {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px; color: var(--vs-green-shade-50); margin: 0;
}
.vs-credit-card__amount {
  font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums;
  margin: 4px 0 0; line-height: 1.1;
}
.vs-credit-card__sub {
  font-size: 14px; color: var(--vs-text-secondary); margin: 0;
}

/* Rate period table (officer-rates) */
.vs-rate-row {
  display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr 1.5fr;
  gap: 10px; padding: 12px 0;
  border-bottom: 1px solid var(--vs-border);
  align-items: baseline; font-size: 16px;
}
.vs-rate-row--head { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; color: var(--vs-text-secondary); }
.vs-rate-row .vs-num { font-variant-numeric: tabular-nums; }
.vs-rate-row.is-active { background: var(--vs-green-tint-95); padding: 12px; margin: 0 -12px; border-bottom: 0; }
@media (max-width: 720px) {
  .vs-rate-row { grid-template-columns: 1fr; gap: 4px; }
  .vs-rate-row--head { display: none; }
  .vs-rate-row.is-active { margin: 0; }
}

/* Bar chart (reports) */
.vs-bar-chart { display: flex; flex-direction: column; gap: 8px; margin: 0 0 25px; }
.vs-bar-row {
  display: grid; grid-template-columns: 130px 1fr 80px 100px;
  gap: 10px; align-items: center; font-size: 16px;
}
@media (max-width: 540px) { .vs-bar-row { grid-template-columns: 1fr; gap: 4px; } }
.vs-bar-label { font-weight: 700; font-variant-numeric: tabular-nums; }
.vs-bar-track { background: var(--vs-blue-tint-95); height: 24px; border: 1px solid var(--vs-blue-tint-50); position: relative; }
.vs-bar-fill { background: var(--vs-brand); height: 100%; min-width: 2px; }
.vs-bar-num { font-variant-numeric: tabular-nums; text-align: right; }

.vs-room__price small { color: var(--vs-text-secondary); font-size: 14px; font-weight: 400; }

/* =====================================================================
   Status timeline (citizen + officer history view)
   ===================================================================== */
.vs-timeline { list-style: none; padding: 0; margin: 0 0 30px; position: relative; }
.vs-timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: var(--vs-border);
}
.vs-timeline__item { position: relative; padding: 0 0 22px 42px; margin: 0; }
.vs-timeline__item:last-child { padding-bottom: 0; }
.vs-timeline__dot {
  position: absolute; left: 6px; top: 4px;
  width: 16px; height: 16px;
  background: var(--vs-border); border: 2px solid var(--vs-body-bg);
  border-radius: 50%;
}
.vs-timeline__item--done .vs-timeline__dot   { background: var(--vs-success); }
.vs-timeline__item--active .vs-timeline__dot {
  background: var(--vs-brand);
  box-shadow: 0 0 0 4px var(--vs-blue-tint-80);
}
.vs-timeline__item--reject .vs-timeline__dot { background: var(--vs-error); }
.vs-timeline__title  { font-weight: 700; font-size: 19px; margin: 0 0 2px; line-height: 1.4; }
.vs-timeline__meta   { font-size: 14px; color: var(--vs-text-secondary); margin: 0 0 4px; line-height: 1.4; }
.vs-timeline__note   { font-size: 16px; margin: 0; line-height: 1.5; color: var(--vs-text); }

/* =====================================================================
   Document list (uploads / supporting docs)
   ===================================================================== */
.vs-doc-list { list-style: none; padding: 0; margin: 0 0 18px; }
.vs-doc-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--vs-blue-tint-95);
  border-left: 5px solid var(--vs-brand); margin-bottom: 6px;
  font-size: 16px; line-height: 1.4;
}
.vs-doc-list .vs-doc-name   { font-weight: 700; flex: 1; word-break: break-word; }
.vs-doc-list .vs-doc-size   { color: var(--vs-text-secondary); font-size: 14px; white-space: nowrap; }
.vs-doc-list .vs-doc-remove { background: transparent; border: 0; color: var(--vs-error); cursor: pointer; font-weight: 700; padding: 4px 8px; }
.vs-doc-list .vs-doc-remove:hover { text-decoration: underline; }

/* Drop area for file upload */
.vs-upload {
  border: 2px dashed var(--vs-text);
  background: var(--vs-blue-tint-95);
  padding: 18px; text-align: center;
  margin-bottom: 18px;
}
.vs-upload p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.vs-upload .vs-btn { margin: 8px 0 0; }

/* Pickup/delivery details panel */
.vs-pickup-card {
  background: var(--vs-blue-tint-95);
  border: 1px solid var(--vs-blue-tint-50);
  padding: 18px; margin-bottom: 25px;
}
.vs-pickup-card h3 { margin: 0 0 8px; }

/* Workflow buttons in officer detail */
.vs-workflow { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.vs-workflow .vs-btn { margin: 0; }

/* Status pill row inside cards (compact) */
.vs-status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }

/* =====================================================================
   Print form (officer-print.html)
   ===================================================================== */
.vs-print {
  background: #fff; color: #000; padding: 20mm 18mm;
  max-width: 820px; margin: 30px auto; border: 1px solid var(--vs-border);
  font-family: var(--vs-font-family);
  line-height: 1.5;
}
.vs-print h1, .vs-print h2, .vs-print h3 { color: #000; }
.vs-print__head { text-align: center; margin-bottom: 22px; }
.vs-print__head h1 { font-size: 22px; margin: 0 0 4px; line-height: 1.4; }
.vs-print__head p  { font-size: 14px; margin: 2px 0; line-height: 1.5; }
.vs-print__ref {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; margin-bottom: 14px; padding: 8px 0;
  border-top: 2px solid #000; border-bottom: 1px solid #000;
}
.vs-print__row {
  display: grid; grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #000; padding: 7px 0;
  font-size: 14px;
}
.vs-print__row dt { font-weight: 700; }
.vs-print__row dd { margin: 0; }
.vs-print__section-title { font-weight: 700; font-size: 15px; margin: 16px 0 4px; padding-top: 6px; }
.vs-print__sign {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; margin-top: 36px;
}
.vs-print__sign div { border-top: 1px solid #000; padding-top: 6px; font-size: 14px; text-align: center; }
.vs-print__actions {
  max-width: 820px; margin: 18px auto 0; display: flex; gap: 12px; flex-wrap: wrap;
  padding: 0 18mm;
}
.vs-print__actions .vs-btn { margin: 0; }
@media print {
  body { background: #fff !important; }
  .vs-app .vs-header,
  .vs-app .vs-phase,
  .vs-app .vs-footer,
  .vs-print__actions,
  .vs-back,
  [data-line-panel],
  .vs-toast { display: none !important; }
  .vs-app .vs-main { padding: 0 !important; }
  .vs-print { border: 0; margin: 0; padding: 14mm; max-width: none; }
}

/* =====================================================================
   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); }

/* 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; }
