/* =========================================================
   VMS Design System — HUM Visitor Management
   Load this AFTER Bootstrap. It overrides/extends, never fights.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Color */
  --ink-900:#0F1B33;
  --ink-700:#16234A;
  --ink-500:#24325C;
  --ink-100:#EAEDF5;
  --brass-500:#C9974C;
  --brass-100:#F6ECD9;
  --bg:#F5F7FA;
  --surface:#FFFFFF;
  --text:#1B2130;
  --text-muted:#6B7280;
  --border:#E4E7EC;
  --success:#1E9E6B;
  --success-bg:#E7F7EF;
  --danger:#D64545;
  --danger-bg:#FDECEC;

  /* Radius / shadow */
  --r-lg:16px;
  --r-md:12px;
  --r-sm:8px;
  --shadow-card:0 1px 2px rgba(16,24,40,.04), 0 8px 24px -10px rgba(16,24,40,.14);
  --shadow-pop:0 4px 10px rgba(16,24,40,.10), 0 16px 32px -12px rgba(16,24,40,.20);

  /* Type */
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, Segoe UI, sans-serif;
}
*:focus-visible {
    outline: none;
}
.vms-stat-clickable-col:focus {
    outline: none !important;
}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:14.5px;
  line-height:1.55;
}

h1,h2,h3,.vms-display{
  font-family:var(--font-display);
  color:var(--ink-900);
  font-weight:600;
  letter-spacing:-0.01em;
}

a{ color:var(--ink-700); }
a:hover{ color:var(--brass-500); }

::selection{ background:var(--brass-100); }

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:2px solid var(--brass-500);
  outline-offset:2px;
}

/* =========== Topbar (header.php) =========== */
.vms-topbar{
  background:var(--ink-900);
  padding:0;
  border:0;
  margin-bottom:32px;
  box-shadow:0 1px 0 rgba(255,255,255,.06);
}
.vms-topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:72px;
  gap:20px;
}
.vms-brand{ display:flex; align-items:center; gap:10px; }
.vms-brand img{ height:32px; width:auto; display:block; }
.vms-nav-links{ display:flex; align-items:center; gap:8px; flex:1; margin-left:24px; }
.vms-pill{
  font-family:var(--font-body);
  font-weight:600;
  font-size:13.5px;
  color:#C7CEE2;
  background:transparent;
  border:1px solid transparent;
  padding:9px 16px;
  border-radius:999px;
  transition:background .15s ease, color .15s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  min-height:40px;
}
.vms-pill:hover{ background:rgba(255,255,255,.08); color:#fff; text-decoration:none; }
.vms-pill.vms-pill-accent{
  background:var(--brass-500);
  color:var(--ink-900);
}
.vms-pill.vms-pill-accent:hover{ background:#d9a758; color:var(--ink-900); }

.vms-user{
  display:flex; align-items:center; gap:12px;
}
.vms-user-badge{
  display:flex; align-items:center; gap:8px;
  color:#fff; font-weight:600; font-size:13.5px;
  padding:6px 12px 6px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  text-decoration:none;
}
.vms-user-badge:hover{ background:rgba(255,255,255,.12); color:#fff; }
.vms-avatar-sm{
  width:28px; height:28px; border-radius:50%;
  background:var(--brass-500); color:var(--ink-900);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; flex:none;
}
.vms-logout{
  font-weight:600; font-size:13px;
  color:#C7CEE2; border:1px solid rgba(255,255,255,.18);
  padding:8px 14px; border-radius:999px;
  min-height:40px; display:inline-flex; align-items:center;
}
.vms-logout:hover{ color:#fff; border-color:rgba(255,255,255,.4); text-decoration:none; }
.vms-beta{
  font-size:11px; text-transform:uppercase; letter-spacing:.06em;
  color:#8B96B8; margin:0;
}

  .vms-equal-row { display: flex; flex-wrap: wrap; }
  .vms-equal-row:before,
  .vms-equal-row:after { display: none; }              /* Bootstrap 3 clearfix breaks flex */
  .vms-equal-row > [class*="col-"] { display: flex; flex-direction: column; }
  .vms-equal-row > [class*="col-"] > .vms-form-section:last-child { flex: 1; }

/* =========== Cards =========== */
.vms-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-card);
  padding:24px;
}
.vms-stat-card{ padding:20px 22px; }
.vms-stat-label{
  font-size:13px; color:var(--text-muted); font-weight:500; margin:0 0 6px;
}
.vms-stat-value{
  font-family:var(--font-display);
  font-size:30px; color:var(--ink-900); font-weight:600; line-height:1;
}
.vms-stat-delta{ font-size:12.5px; margin-top:8px; font-weight:600; }
.vms-stat-delta.up{ color:var(--success); }
.vms-stat-delta.down{ color:var(--danger); }

/* =========== Buttons =========== */
.vms-btn{
  font-weight:600; font-size:13.5px;
  border-radius:999px;
  padding:10px 20px;
  min-height:40px;
  border:1px solid transparent;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  transition:transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration:none;
  cursor:pointer;
}
.vms-btn:active{ transform:translateY(1px); }
.vms-btn-primary{ background:var(--ink-900); color:#fff; }
.vms-btn-primary:hover{ background:var(--ink-700); color:#fff; text-decoration:none; }
.vms-btn-accent{ background:var(--brass-500); color:var(--ink-900); }
.vms-btn-accent:hover{ background:#d9a758; color:var(--ink-900); text-decoration:none; }
.vms-btn-outline{ background:transparent; color:var(--ink-900); border-color:var(--border); }
.vms-btn-outline:hover{ background:var(--ink-100); text-decoration:none; }
.vms-btn-ghost{ background:transparent; color:var(--text-muted); border-color:transparent; }
.vms-btn-ghost:hover{ background:var(--ink-100); color:var(--text); }
.vms-btn-sm{ padding:7px 14px; min-height:32px; font-size:12.5px; }

/* =========== Forms =========== */
.vms-label{ font-size:12.5px; font-weight:600; color:var(--text-muted); margin-bottom:6px; display:block; }
.vms-input, select.vms-input{
  width:100%;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  padding:10px 14px;
  font-size:13.5px;
  min-height:40px;
  background:var(--surface);
  color:var(--text);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.vms-input:focus{
  outline:none;
  border-color:var(--brass-500);
  box-shadow:0 0 0 3px var(--brass-100);
}
.vms-input::placeholder{ color:#9AA2B1; }
.vms-table-group-row td{
  background:var(--ink-100);
  padding:9px 18px !important;
  border-top:1px solid var(--border);
}
.vms-table-group-label{
  font-size:12px; font-weight:700; color:var(--ink-900);
  text-transform:uppercase; letter-spacing:.04em;
}
.vms-table-group-count{
  font-size:12.5px; color:#7c5cdb; margin-left:10px;
}
/* =========== Toolbar =========== */
.vms-toolbar{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:20px 22px 14px;
  margin-bottom:24px;
}

/* =========== Table =========== */
.vms-table-wrap{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  box-shadow:var(--shadow-card);
}
table.vms-table{ width:100%; border-collapse:collapse; margin:0; }
table.vms-table thead th{
  background:var(--ink-100);
  color:var(--ink-900);
  font-size:12px;
  text-transform:none;
  font-weight:700;
  letter-spacing:.01em;
  padding:14px 18px;
  border:0;
  text-align:left;
}
table.vms-table tbody td{
  padding:14px 18px;
  border-top:1px solid var(--border);
  vertical-align:middle !important;
  font-size:13.5px;
  color:var(--text);
}
table.vms-table tbody tr{ transition:background .12s ease; }
table.vms-table tbody tr:hover{ background:#FAFAFC; }

.vms-person{ display:flex; align-items:center; gap:10px; }
.vms-avatar{
  width:34px; height:34px; border-radius:50%;
  background:var(--ink-100); color:var(--ink-900);
  display:flex; align-items:center; justify-content:center;
  font-size:12.5px; font-weight:700; flex:none;
}
.vms-name{ font-weight:600; color:var(--ink-900); }
.vms-sub{ font-size:12px; color:var(--text-muted); }

.vms-badge{
  display:inline-flex; align-items:center;
  padding:4px 11px; border-radius:999px;
  font-size:11.5px; font-weight:700;
  background:var(--ink-100); color:var(--ink-700);
}
.vms-badge.gold{ background:var(--brass-100); color:#8A6420; }

.vms-footer-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 4px 4px;
  color:var(--text-muted); font-size:13px;
}
/*tr.vms-flag-incomplete td {*/
/*  background: #f0ad4e;*/
/*}*/
/* =========== Login page =========== */
.vms-auth-shell{
  min-height:calc(100vh - 72px);
  display:flex; align-items:center; justify-content:center;
  padding:40px 16px;
}
.vms-auth-card{
  width:100%; max-width:920px;
  display:grid; grid-template-columns:1fr 1fr;
  background:var(--surface);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-pop);
  border:1px solid var(--border);
}
.vms-auth-brand{
  background:var(--ink-900);
  background-image:radial-gradient(circle at 30% 20%, rgba(201,151,76,.20), transparent 55%);
  color:#fff;
  padding:48px 40px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.vms-auth-brand img{ height:34px; width:auto; }
.vms-auth-brand h2{
  color:#fff; font-size:26px; margin-top:32px; line-height:1.3;
}
.vms-auth-brand p{ color:#AAB4CF; font-size:13.5px; margin-top:10px; }
.vms-auth-form{ padding:48px 44px; }
.vms-auth-form h3{ font-size:22px; margin-bottom:4px; }
.vms-auth-sub{ color:var(--text-muted); font-size:13.5px; margin-bottom:28px; }
.vms-auth-form .vms-btn{ width:100%; }
.vms-sign-up{ text-align:center; margin-top:20px; font-size:13.5px; color:var(--text-muted); }

@media (max-width: 767px){
  .vms-auth-card{ grid-template-columns:1fr; max-width:440px; }
  .vms-auth-brand{ display:none; }
  .vms-nav-links{ display:none; }
}

/* =========== Sidebar shell (dashboard.php) =========== */
.vms-shell{ display:flex; min-height:100vh; }
.vms-sidebar{
  width:252px; flex:none;
  background:var(--ink-900);
  color:#fff;
  padding:24px 16px;
  display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh;
}
.vms-sidebar-brand{ display:flex; align-items:center; gap:10px; padding:4px 8px 26px; }
.vms-sidebar-brand-icon{
  width:36px; height:36px; border-radius:10px;
  background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
}
.vms-sidebar-brand-text .t1{ font-weight:700; font-size:14.5px; color:#fff; line-height:1.2; }
.vms-sidebar-brand-text .t2{ font-size:11.5px; color:#8B96B8; }
.vms-side-nav{ display:flex; flex-direction:column; gap:3px; }
.vms-side-link{
  display:flex; align-items:center; gap:12px;
  padding:11px 14px; border-radius:10px;
  color:#AEB8D6; font-weight:600; font-size:13.5px;
  text-decoration:none;
}
.vms-side-link svg{ flex:none; }
.vms-side-link:hover{ background:rgba(255,255,255,.07); color:#fff; text-decoration:none; }
.vms-side-link.active{ background:var(--brass-500); color:var(--ink-900); }
.vms-sidebar-foot{
  margin-top:auto; text-align:center; padding:20px 10px 4px;
  color:#8B96B8; font-size:12px; line-height:1.5;
}

.vms-main{ flex:1; min-width:0; padding:26px 30px 48px; }

/* Page head */
.vms-page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.vms-greeting{ display:flex; align-items:flex-start; gap:12px; }
.vms-greeting h1{ font-size:23px; margin:0; }
.vms-greeting p{ color:var(--text-muted); margin:2px 0 0; font-size:13.5px; }
.vms-head-right{ display:flex; align-items:center; gap:12px; }
.vms-date-pill{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--border); background:var(--surface);
  padding:9px 14px; border-radius:10px; font-size:13px; font-weight:600;
}
.vms-icon-btn{
  width:40px; height:40px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  position:relative; color:var(--text-muted); flex:none;
}
.vms-notif-dot{
  position:absolute; top:-3px; right:-3px;
  background:var(--danger); color:#fff; font-size:10px; font-weight:700;
  border-radius:999px; min-width:16px; height:16px; padding:0 3px;
  display:flex; align-items:center; justify-content:center;
}
.vms-head-profile{ display:flex; align-items:center; gap:9px; }
.vms-head-profile .name{ font-weight:700; font-size:13.5px; line-height:1.2; }
.vms-head-profile .role{ font-size:11.5px; color:var(--text-muted); }

/* Stat row */
.vms-stat-icon{
  width:42px; height:42px; border-radius:11px;
  background:var(--ink-100); color:var(--ink-900);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.vms-stat-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.vms-spark{ flex:none; }

.vms-callout{
  background:var(--brass-100);
  border:1px solid #E9D2A0;
  border-radius:var(--r-lg);
  padding:20px 22px;
}
.vms-callout-icon{
  width:34px; height:34px; border-radius:50%;
  background:var(--success-bg); color:var(--success);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:12px;
}
.vms-callout h3{ font-size:14.5px; margin:0 0 6px; }
.vms-callout p{ font-size:13px; color:#6B5A32; margin:0; }

/* Donuts */
.vms-donut-wrap{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.vms-donut{ width:172px; height:172px; border-radius:50%; position:relative; flex:none; }
.vms-donut::before{ content:''; position:absolute; inset:24px; background:var(--surface); border-radius:50%; }
.vms-donut-center{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center;
}
.vms-donut-center .n{ font-family:var(--font-display); font-size:22px; font-weight:600; color:var(--ink-900); line-height:1.1; }
.vms-donut-center .l{ font-size:11.5px; color:var(--text-muted); margin-top:2px; max-width:90px; }
.vms-legend{ display:flex; flex-direction:column; gap:11px; flex:1; min-width:150px; }
.vms-legend-item{ display:flex; align-items:center; gap:9px; font-size:13px; }
.vms-legend-dot{ width:9px; height:9px; border-radius:50%; flex:none; }
.vms-legend-item .lbl{ flex:1; color:var(--text); font-weight:500; }
.vms-legend-item .val{ color:var(--text-muted); font-size:12.5px; }


.vms-typeahead{ position:relative; }
.vms-typeahead-results{
  display:none; position:absolute; top:calc(100% + 4px); left:0; right:0;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-sm);
  box-shadow:var(--shadow-pop); z-index:20; max-height:220px; overflow-y:auto;
}
.vms-typeahead-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 12px; cursor:pointer; font-size:13px;
}
.vms-typeahead-row:hover{ background:var(--ink-100); }
.vms-typeahead-empty{ padding:10px 12px; font-size:12.5px; color:var(--text-muted); }
.vms-host-chip{
  display:none; align-items:center; gap:8px; margin-top:8px;
  background:var(--ink-100); border-radius:999px; padding:6px 8px 6px 12px;
  font-size:12.5px; font-weight:600; width:fit-content;
}
.vms-chip-clear{
  background:none; border:0; color:var(--text-muted); font-size:16px;
  line-height:1; cursor:pointer; padding:0 4px;
}
.vms-chip-clear:hover{ color:var(--danger); }
/* Heatmap */
.vms-heatmap{ display:grid; grid-template-columns:46px repeat(7,1fr); gap:5px; align-items:center; }
.vms-heatmap .hm-label{ font-size:11px; color:var(--text-muted); text-align:right; padding-right:4px; }
.vms-heatmap .hm-day{ font-size:11px; color:var(--text-muted); text-align:center; }
.vms-heatmap .hm-cell{ aspect-ratio:1; border-radius:4px; }
.vms-heat-scale{ display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-muted); margin-top:10px; justify-content:flex-end; }
.vms-heat-scale .bar{ width:56px; height:6px; border-radius:3px; background:linear-gradient(90deg, #E9ECF4, var(--ink-900)); }

/* Department bars */
.vms-dept-row{ display:flex; align-items:center; gap:12px; padding:11px 0; border-top:1px solid var(--border); }
.vms-dept-row:first-child{ border-top:0; }
.vms-dept-icon{ width:32px; height:32px; border-radius:9px; background:var(--ink-100); color:var(--ink-900); display:flex; align-items:center; justify-content:center; flex:none; }
.vms-dept-main{ flex:1; min-width:0; }
.vms-dept-top{ display:flex; justify-content:space-between; font-size:13px; font-weight:600; margin-bottom:6px; }
.vms-dept-bar-bg{ height:6px; background:var(--ink-100); border-radius:999px; overflow:hidden; }
.vms-dept-bar-fill{ height:100%; background:var(--ink-900); border-radius:999px; }
.vms-dept-pct{ font-size:12px; color:var(--text-muted); flex:none; width:34px; text-align:right; }

/* Alerts */
.vms-alert-item{ display:flex; gap:12px; padding:13px 0; border-top:1px solid var(--border); }
.vms-alert-item:first-child{ border-top:0; }
.vms-alert-icon{ width:34px; height:34px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; }
.vms-alert-icon.warn{ background:var(--brass-100); color:#8A6420; }
.vms-alert-icon.danger{ background:var(--danger-bg); color:var(--danger); }
.vms-alert-title{ font-size:13px; font-weight:700; margin:0; }
.vms-alert-sub{ font-size:12px; color:var(--text-muted); margin:1px 0 0; }
.vms-alert-flag{ font-size:11.5px; font-weight:600; margin-top:3px; }
.vms-alert-flag.danger{ color:var(--danger); }
.vms-alert-flag.warn{ color:#8A6420; }
.vms-alert-time{ font-size:11.5px; color:var(--text-muted); flex:none; white-space:nowrap; }

/* Quick stats */
.vms-quick-item{ display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--border); }
.vms-quick-item:first-child{ border-top:0; }
.vms-quick-icon{ width:34px; height:34px; border-radius:9px; background:var(--ink-100); color:var(--ink-900); display:flex; align-items:center; justify-content:center; flex:none; }
.vms-quick-label{ font-size:12px; color:var(--text-muted); margin:0; }
.vms-quick-value{ font-size:14.5px; font-weight:700; color:var(--ink-900); margin:1px 0 0; }

/* Quick action strip (dashboard) */
.vms-quick-actions-strip{ display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }

/* Entries footer (full records page) */
.vms-footer-row{ display:flex; align-items:center; justify-content:space-between; padding:18px 4px 4px; color:var(--text-muted); font-size:13px; flex-wrap:wrap; gap:10px; }

.vms-report-cta{
  background:var(--ink-900); color:#fff; border-radius:var(--r-lg);
  padding:18px; display:flex; align-items:center; gap:14px; text-decoration:none;
}
.vms-report-cta:hover{ background:var(--ink-700); color:#fff; text-decoration:none; }
.vms-report-cta .icon{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.12); display:flex; align-items:center; justify-content:center; flex:none; }
.vms-report-cta h4{ font-size:13.5px; margin:0 0 3px; color:#fff; }
.vms-report-cta p{ font-size:12px; margin:0; color:#AEB8D6; }

/* Empty banner */
.vms-empty-banner{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:18px 24px; margin-top:24px;
}
.vms-empty-banner h4{ font-size:14px; margin:0 0 2px; }
.vms-empty-banner p{ font-size:12.5px; color:var(--text-muted); margin:0; }

@media (max-width: 991px){
  .vms-sidebar{ display:none; }
  .vms-main{ padding:20px; }
}

html{ scroll-behavior:smooth; }

/* Card that should center its content vertically to match a taller sibling */
.vms-card-fill{
  height:100%;
  display:flex;
  flex-direction:column;
}
.vms-card-fill .vms-donut-wrap{
  flex:1;
  align-items:center;
  padding: 10px;
}

/* Stat card reveal link + popover (Returning Visitors, etc.) */
.vms-stat-link{
  background:none; border:0; padding:0; margin-top:8px;
  font-size:12px; font-weight:600; color:var(--ink-700);
  cursor:pointer; text-align:left; display:inline-block;
}
.vms-stat-link:hover{ color:var(--brass-500); }
.vms-stat-popover{
  max-height:0; overflow:hidden;
  transition:max-height .2s ease;
}
.vms-stat-popover.open{ max-height:220px; overflow-y:auto; margin-top:10px; }
.vms-stat-popover-row{
  display:flex; justify-content:space-between;
  padding:6px 0; border-top:1px solid var(--border);
  font-size:12.5px;
}
.vms-stat-popover-row:first-child{ border-top:0; }
.vms-stat-popover .muted{ color:var(--text-muted); font-size:12px; }

/* Today's Visitors stat card as a clickable jump-link */
.vms-stat-clickable-col{ display:block; text-decoration:none; color:inherit; }
.vms-stat-clickable{
  display:block; text-decoration:none; color:inherit;
  transition:box-shadow .15s ease, transform .08s ease;
  cursor:pointer;
}
.vms-stat-clickable:hover{ box-shadow:var(--shadow-pop); color:inherit; text-decoration:none; }
.vms-stat-clickable:active{ transform:translateY(1px); }

/* Form page (form_data.php) */
.vms-form-section-label{
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--brass-500); margin:0 0 16px;
}
.vms-field{ margin-bottom:16px; }
.vms-field-warning{ display:block; color:var(--danger); font-size:11.5px; margin-top:5px; }
.vms-field-warning:empty{ display:none; }
/* A field left empty or wrong (meeting_booking.php). The second line outlines the Select2 box drawn right after a <select>. */
.vms-input.vms-invalid,
.vms-invalid + .select2-container .select2-selection{ border-color:var(--danger) !important; box-shadow:0 0 0 3px var(--danger-bg); }
.vms-form-error{ background:var(--danger-bg); color:var(--danger); border-radius:var(--r-sm); padding:10px 14px; font-size:13px; font-weight:600; margin-top:14px; }
.vms-form-error:empty{ display:none; }
/* Free times for the picked room and day (meeting_booking.php) */
.vms-slots{ margin-top:4px; padding:14px 16px; border:1px solid var(--border); border-radius:var(--r-md); background:var(--bg); }
.vms-slots-title{ font-size:12.5px; font-weight:600; color:var(--text-muted); margin:0 0 10px; }
.vms-slots-note{ font-size:12.5px; color:var(--text-muted); margin:0; }
.vms-slots-list{ display:flex; flex-wrap:wrap; gap:8px; }
.vms-slot-chip{
  border:1px solid var(--border); background:var(--surface); border-radius:999px;
  padding:6px 12px; font-size:12.5px; font-weight:600; color:var(--ink-900); cursor:pointer;
}
.vms-slot-chip:hover, .vms-slot-chip:focus-visible{ border-color:var(--brass-500); background:var(--brass-100); }
.vms-form-actions{
  display:flex; align-items:center; gap:12px; margin-top:8px;
  padding-top:20px; border-top:1px solid var(--border); flex-wrap:wrap;
}
.vms-btn-danger{ background:transparent; color:var(--danger); border:1px solid var(--danger-bg); }
.vms-btn-danger:hover{ background:var(--danger-bg); color:var(--danger); text-decoration:none; }
.vms-record-pills{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.vms-record-pills .vms-btn.active{ background:var(--brass-500); color:var(--ink-900); }

/* Form sections as distinct soft panels instead of flat columns */
.vms-form-section{
  background:#FAFBFD;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  padding:20px 20px 6px;
  height:100%;
}
.vms-form-section-head{
  display:flex; align-items:center; gap:9px;
  margin-bottom:18px;
}
.vms-form-section-icon{
  width:28px; height:28px; border-radius:8px;
  background:var(--brass-100); color:#8A6420;
  display:flex; align-items:center; justify-content:center;
  flex:none;
}
.vms-form-section-label{
  font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ink-900); margin:0;
}

/* Native select — custom chevron so it matches the rest of the UI */
select.vms-input{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
}

/* Native date input — align the calendar icon and give it a hover state */
input[type="date"].vms-input::-webkit-calendar-picker-indicator{
  opacity:0.55; cursor:pointer; transition:opacity .15s ease;
}
input[type="date"].vms-input:hover::-webkit-calendar-picker-indicator{ opacity:1; }

/* Slightly larger, calmer inputs inside the form specifically */
.vms-form-section .vms-input{ background:var(--surface); }
.vms-form-section .vms-field:last-child{ margin-bottom:14px; }

/* Card housing the whole form gets a touch more breathing room */
form > .vms-card{ padding:28px; }

/* Submit / actions row polish */
.vms-form-actions .vms-btn-primary{ padding:11px 28px; font-size:14px; }

/* Reports page — preview + download bar */
.vms-report-preview{
  display:flex; align-items:center; justify-content:space-between;
  background:var(--ink-100); border-radius:var(--r-md);
  padding:16px 20px; flex-wrap:wrap; gap:14px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}

/* =========================================================
   Profile dropdown (header_profile.php)
   Added for: click the avatar/name in the header to reveal
   Settings + Log Out, instead of it being a dead, unclickable badge.
   ========================================================= */
.vms-head-profile{ position:relative; cursor:pointer; user-select:none; }
.vms-head-profile .vms-profile-caret{
  margin-left:2px; color:var(--text-muted); font-size:10px;
  display:inline-block; transition:transform .15s ease;
}
.vms-head-profile.open .vms-profile-caret{ transform:rotate(180deg); }
.vms-profile-menu{
  display:none;
  position:absolute; top:calc(100% + 10px); right:0;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); box-shadow:var(--shadow-pop);
  min-width:170px; padding:6px; z-index:50;
}
.vms-head-profile.open .vms-profile-menu{ display:block; }
.vms-profile-menu a{
  display:flex; align-items:center; gap:9px;
  padding:9px 10px; border-radius:8px;
  font-size:13px; font-weight:600; color:var(--text);
  text-decoration:none;
}
.vms-profile-menu a:hover{ background:var(--ink-100); text-decoration:none; }
.vms-profile-menu a.vms-logout-link{ color:var(--danger); }
.vms-profile-menu a.vms-logout-link:hover{ background:var(--danger-bg); }
.vms-profile-menu-divider{ height:1px; background:var(--border); margin:6px 2px; }