/* =====================================================================
   VMS Portal Styles
   Scope: Front-end vendor portal only
   Notes:
   - Layout and form chrome for availability / portal pages
   - Shared 7-column calendar base (.vms-av-grid) lives in vms-ui.css
   ===================================================================== */

.vms-av-wrap {
    max-width: 980px;
}

.vms-av-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 14px;
    margin: 0 0 14px;
}

.vms-av-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.vms-av-row .field {
    min-width: 260px;
    flex: 1;
}

.vms-av-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vms-av-muted {
    opacity: .8;
}

.vms-av-help {
    font-size: 12px;
    opacity: .8;
    margin: 10px 0 0;
}

.vms-av-month details {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    margin: 0 0 12px;
    overflow: hidden;
}

.vms-av-month details[open] {
    overflow: visible;
}

.vms-av-month summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vms-av-month summary::-webkit-details-marker {
    display: none;
}


/* ==========================================================================
   Manual Availability — Calendar Skin (Vendor Portal)
   Goal: match the “Schedule” calendar card style, not the old square buttons.
   ========================================================================== */

.vms-portal .vms-av-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 10px !important; /* vms-ui.css sets 0 !important; override here */
  margin-top: 10px;
}

.vms-portal .vms-av-grid th {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 0;
  opacity: 0.75;
}

.vms-portal .vms-av-grid td {
  padding: 0;
  vertical-align: top;
  position: relative;
}

.vms-portal .vms-av-grid td.vms-pop-cell-open {
  z-index: 30;
}

.vms-portal .vms-av-grid td.vms-av-empty {
  background: transparent !important;
  border: 0 !important;
}

.vms-portal .vms-av-day {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  pointer-events: none;
}

.vms-portal .vms-av-daynum {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.8;
}

.vms-portal .vms-av-badge-booked {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  pointer-events: none;
}

.vms-portal .vms-av-badge-tentative {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.30);
  pointer-events: none;
}



.vms-portal .vms-av-btn,
.vms-portal .vms-av-readonly {
  width: 100% !important; /* vms-ui.css / theme styles can set fixed widths */
  max-width: none !important;
  min-height: 118px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: #0f172a; /* force contrast (some themes force white button text) */
  padding: 30px 10px 16px; /* leaves room for the day number */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.vms-portal .vms-av-btn {
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.vms-portal .vms-av-btn:focus {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.vms-portal .vms-av-btn[data-visual="available"],
.vms-portal .vms-av-readonly.is-available {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}

.vms-portal .vms-av-btn[data-visual="unavailable"],
.vms-portal .vms-av-readonly.is-unavailable {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}

.vms-portal .vms-av-grid td.vms-av-past .vms-av-btn,
.vms-portal .vms-av-grid td.vms-av-past .vms-av-readonly {
  opacity: 0.78;
  box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, 0.03);
  border-style: dashed;
}

/* Out-of-season / inactive days (still shown, but clearly muted) */
.vms-portal .vms-av-grid td.vms-av-inactive .vms-av-btn,
.vms-portal .vms-av-grid td.vms-av-inactive .vms-av-readonly {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

.vms-portal .vms-av-grid td.vms-av-inactive .vms-av-daynum {
  opacity: 0.45;
}

.vms-portal .vms-av-state {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.vms-portal .vms-av-src {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 14px;
  opacity: 0.7;
  pointer-events: none;
}


.vms-portal .vms-av-event-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.95;
  z-index: 12;
  pointer-events: none;
}

.vms-portal .vms-av-counts {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
}

/* Mobile tightening */

/* ===========================================================
   Availability grid — narrow/mobile mode (vendor portal)
   Uses JS-added .vms-portal--narrow so it works even when
   viewport media queries are unreliable (e.g., "Request Desktop Site")
   =========================================================== */

.vms-portal.vms-portal--narrow .vms-av-card {
  padding: 8px !important;
}

.vms-portal.vms-portal--narrow .vms-av-month summary {
  padding: 10px 10px !important;
}

.vms-portal.vms-portal--narrow .vms-av-month details {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.vms-portal.vms-portal--narrow .vms-av-grid {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
  border-spacing: 0 !important; /* no gaps; fit 7 columns on mobile */
  margin-top: 6px !important;
}

.vms-portal.vms-portal--narrow .vms-av-grid th {
  font-size: 10px !important;
  padding: 2px 0 !important;
}

.vms-portal.vms-portal--narrow .vms-av-btn,
.vms-portal.vms-portal--narrow .vms-av-readonly {
  /* Fill the cell and become true square tiles */
  width: 100% !important;
  max-width: none !important;
  min-height: 56px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: block !important;
  position: relative !important;
}

.vms-portal.vms-portal--narrow .vms-av-day {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -55%) !important;
}

.vms-portal.vms-portal--narrow .vms-av-daynum {
  font-size: 16px !important;
}

.vms-portal.vms-portal--narrow .vms-av-event-title {
  display: none !important;
}

/* Mobile icon-only: show only icons (no text stacks) */
.vms-portal.vms-portal--narrow .vms-av-statewrap,
.vms-portal.vms-portal--narrow .vms-av-state,
.vms-portal.vms-portal--narrow .vms-av-actionhint {
  display: none !important;
}

.vms-portal.vms-portal--narrow .vms-av-btn::before,
.vms-portal.vms-portal--narrow .vms-av-readonly::before {
  content: "" !important;
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.85;
}

.vms-portal.vms-portal--narrow .vms-av-btn[data-visual="available"]::before,
.vms-portal.vms-portal--narrow .vms-av-readonly[data-visual="available"]::before {
  content: "✓" !important;
}

.vms-portal.vms-portal--narrow .vms-av-btn[data-visual="unavailable"]::before,
.vms-portal.vms-portal--narrow .vms-av-readonly[data-visual="unavailable"]::before {
  content: "×" !important;
}



/* Availability UI polish (vendor portal) */
.vms-portal .vms-av-monthlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vms-portal .vms-av-howto {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.10);
}

.vms-portal .vms-av-lookback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.06);
}

.vms-portal .vms-av-lookback label {
  font-weight: 700;
}

.vms-portal .vms-av-lookback select {
  max-width: 220px;
}

.vms-portal .vms-av-statewrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vms-portal .vms-av-hint {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.70;
  display: none;
}


.vms-portal .vms-av-readonly {
  position: relative;
}

/* Small legend */
.vms-portal .vms-av-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
}

.vms-portal .vms-av-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.vms-portal .vms-av-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
}

.vms-portal .vms-av-swatch.is-available {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

.vms-portal .vms-av-swatch.is-unavailable {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.vms-portal .vms-av-swatch.is-tentative {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.vms-portal .vms-av-swatch.is-booked {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}


/* Portal utilities */
.vms-portal .vms-m0{margin:0 !important;}
.vms-portal .vms-mb-0{margin-bottom:0 !important;}
.vms-portal .vms-mb-10{margin-bottom:10px !important;}
.vms-portal .vms-mb-12{margin-bottom:12px !important;}
.vms-portal .vms-mt-0{margin-top:0 !important;}
.vms-portal .vms-mt-2{margin-top:2px !important;}
.vms-portal .vms-mt-8{margin-top:8px !important;}
.vms-portal .vms-mt-10{margin-top:10px !important;}
.vms-portal .vms-mt-14{margin-top:14px !important;}
.vms-portal .vms-ml-10{margin-left:10px !important;}
.vms-portal .vms-opacity-85{opacity:0.85 !important;}
.vms-portal .vms-pt-12{padding-top:12px !important;}
.vms-portal .vms-pl-18{padding-left:18px !important;}
.vms-portal .vms-w-100{width:100% !important;}

.vms-portal .vms-portal-vendor-switch{margin:0 0 10px;}
.vms-portal .vms-portal-vendor-switch-label{display:block;font-weight:600;margin:0 0 4px;}
.vms-portal .vms-portal-vendor-switch-select{width:100%;max-width:420px;}
.vms-portal .vms-portal-header h2{margin:0 0 8px;}
.vms-portal .vms-portal-card h3{margin:0 0 6px;}
.vms-portal .vms-portal-hero-value{font-weight:900;font-size:18px;}

.vms-portal form.vms-av-row{margin:0;}
.vms-portal .vms-label-block{display:block;margin-bottom:8px;}
.vms-portal .vms-field-tight{flex:0 0 auto;min-width:240px;}

.vms-portal .vms-av-card--plain{border:none;margin:0;padding:14px;}

.vms-portal .vms-flex{display:flex;}
.vms-portal .vms-wrap{flex-wrap:wrap;}
.vms-portal .vms-ai-center{align-items:center;}
.vms-portal .vms-gap-6{gap:6px;}
.vms-portal .vms-gap-8{gap:8px;}
.vms-portal .vms-gap-10{gap:10px;}

.vms-portal .vms-av-lookback .vms-av-muted{margin-left:10px;}

.vms-portal .vms-portal-logo-thumb{max-width:180px;height:auto;border:1px solid #ddd;border-radius:8px;padding:6px;background:#fff;}
.vms-mt-18{margin-top:18px;}
.vms-mb-8{margin-bottom:8px;}
.vms-ai-start{align-items:flex-start;}

/* Staff portal – month toggle + month cards */
.vms-month-toggle{
  width:100%;
  border:1px solid #ddd;
  background:#f7f7f7;
  padding:12px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
}

.vms-portal .vms-portal-month{
  margin:0 0 14px;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:10px 12px;
}

.vms-portal .vms-portal-month summary{
  cursor:pointer;
  font-weight:700;
  font-size:15px;
}

.vms-portal .vms-portal-month[open] summary{
  border-bottom:1px solid #eee;
  padding-bottom:10px;
  margin-bottom:10px;
}

.vms-portal .vms-portal-month table.widefat{
  margin-top:10px;
}

.vms-mb-14{margin-bottom:14px;}
.vms-mt-0{margin-top:0;}

/* ==========================================================
 * All Vendors (portal) — Schedule-style month grid
 * ========================================================== */
.vms-portal details.vms-sch-month {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  margin: 16px 0;
}

.vms-portal details.vms-sch-month > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.vms-portal details.vms-sch-month[open] > summary {
  border-bottom: 1px solid #eee;
}

.vms-portal .vms-sch-monthlabel {
  font-size: 18px;
  line-height: 1.2;
}

.vms-portal table.vms-sch-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 10px;
  background: transparent;
  margin: 0;
}

.vms-portal .vms-sch-dow {
  text-align: center;
  color: #6b7280;
  font-weight: 600;
  padding: 6px 0;
}

.vms-portal .vms-sch-cell {
  min-height: 92px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.vms-portal td.is-past .vms-sch-cell {
  background: #fafafa;
  opacity: .65;
}

.vms-portal td.is-today .vms-sch-cell {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 2px rgba(199,210,254,.5);
}

.vms-portal .vms-sch-daynum {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
  color: #111827;
}

.vms-portal .vms-sch-planline {
  margin-top: 6px;
}

.vms-portal .vms-sch-venue-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vms-portal .vms-sch-planitem {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #1f2937;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .vms-portal table.vms-sch-grid {
    border-spacing: 0;
  }

  .vms-portal .vms-sch-cell {
    min-height: 78px;
    padding: 6px;
    border-radius: 12px;
  }

  .vms-portal .vms-sch-dow {
    font-size: 12px;
    padding: 4px 0;
  }

  .vms-portal .vms-sch-daynum {
    font-size: 13px;
  }

  .vms-portal .vms-sch-venue-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  .vms-portal .vms-sch-planitem {
    font-size: 11px;
    padding: 2px 6px;
  }
}

.vms-portal .vms-av-month summary {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}
test

text/css vms-portal.css ( UTF-8 Unicode text )
/* =====================================================================
   VMS Portal Styles
   Scope: Front-end vendor portal only
   Notes:
   - Layout and form chrome for availability / portal pages
   - Shared 7-column calendar base (.vms-av-grid) lives in vms-ui.css
   ===================================================================== */

.vms-av-wrap {
  max-width: 980px;
}

.vms-av-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 14px;
}

.vms-av-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.vms-av-row .field {
  min-width: 260px;
  flex: 1;
}

.vms-av-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vms-av-muted {
  opacity: .8;
}

.vms-av-help {
  font-size: 12px;
  opacity: .8;
  margin: 10px 0 0;
}

.vms-av-month details {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  margin: 0 0 12px;
  overflow: hidden;
}

.vms-av-month summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vms-av-month summary::-webkit-details-marker {
  display: none;
}


/* ==========================================================================
   Manual Availability — Calendar Skin (Vendor Portal)
   Goal: match the “Schedule” calendar card style, not the old square buttons.
   ========================================================================== */

.vms-portal .vms-av-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 10px !important;
  /* vms-ui.css sets 0 !important; override here */
  margin-top: 10px;
}

.vms-portal .vms-av-grid th {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 0;
  opacity: 0.75;
}

.vms-portal .vms-av-grid td {
  padding: 0;
  vertical-align: top;
  position: relative;
}

.vms-portal .vms-av-grid td.vms-av-empty {
  background: transparent !important;
  border: 0 !important;
}

.vms-portal .vms-av-day {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  pointer-events: none;
}

.vms-portal .vms-av-daynum {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.8;
}

.vms-portal .vms-av-badge-booked {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  pointer-events: none;
}

.vms-portal .vms-av-badge-tentative {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.30);
  pointer-events: none;
}



.vms-portal .vms-av-btn,
.vms-portal .vms-av-readonly {
  width: 100% !important;
  /* vms-ui.css / theme styles can set fixed widths */
  max-width: none !important;
  min-height: 118px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: #0f172a;
  /* force contrast (some themes force white button text) */
  padding: 30px 10px 16px;
  /* leaves room for the day number */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.vms-portal .vms-av-btn {
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.vms-portal .vms-av-btn:focus {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.vms-portal .vms-av-btn[data-visual="available"],
.vms-portal .vms-av-readonly.is-available {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}

.vms-portal .vms-av-btn[data-visual="unavailable"],
.vms-portal .vms-av-readonly.is-unavailable {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
}

.vms-portal .vms-av-grid td.vms-av-past .vms-av-btn,
.vms-portal .vms-av-grid td.vms-av-past .vms-av-readonly {
  opacity: 0.78;
  box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, 0.03);
  border-style: dashed;
}

/* Out-of-season / inactive days (still shown, but clearly muted) */
.vms-portal .vms-av-grid td.vms-av-inactive .vms-av-btn,
.vms-portal .vms-av-grid td.vms-av-inactive .vms-av-readonly {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

.vms-portal .vms-av-grid td.vms-av-inactive .vms-av-daynum {
  opacity: 0.45;
}

.vms-portal .vms-av-state {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.vms-portal .vms-av-src {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 14px;
  opacity: 0.7;
  pointer-events: none;
}


.vms-portal .vms-av-event-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.95;
  pointer-events: none;
}

.vms-portal .vms-av-counts {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
}

/* Mobile tightening */

/* ===========================================================
   Availability grid — narrow/mobile mode (vendor portal)
   Uses JS-added .vms-portal--narrow so it works even when
   viewport media queries are unreliable (e.g., "Request Desktop Site")
   =========================================================== */

.vms-portal.vms-portal--narrow .vms-av-card {
  padding: 8px !important;
}

.vms-portal.vms-portal--narrow .vms-av-month summary {
  padding: 10px 10px !important;
}

.vms-portal.vms-portal--narrow .vms-av-month details {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.vms-portal.vms-portal--narrow .vms-av-grid {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
  border-spacing: 0 !important;
  /* no gaps; fit 7 columns on mobile */
  margin-top: 6px !important;
}

.vms-portal.vms-portal--narrow .vms-av-grid th {
  font-size: 10px !important;
  padding: 2px 0 !important;
}

.vms-portal.vms-portal--narrow .vms-av-btn,
.vms-portal.vms-portal--narrow .vms-av-readonly {
  /* Fill the cell and become true square tiles */
  width: 100% !important;
  max-width: none !important;
  min-height: 56px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: block !important;
  position: relative !important;
}

.vms-portal.vms-portal--narrow .vms-av-day {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -55%) !important;
}

.vms-portal.vms-portal--narrow .vms-av-daynum {
  font-size: 16px !important;
}

.vms-portal.vms-portal--narrow .vms-av-event-title {
  display: none !important;
}

/* Mobile icon-only: show only icons (no text stacks) */
.vms-portal.vms-portal--narrow .vms-av-statewrap,
.vms-portal.vms-portal--narrow .vms-av-state,
.vms-portal.vms-portal--narrow .vms-av-actionhint {
  display: none !important;
}

.vms-portal.vms-portal--narrow .vms-av-btn::before,
.vms-portal.vms-portal--narrow .vms-av-readonly::before {
  content: "" !important;
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.85;
}

.vms-portal.vms-portal--narrow .vms-av-btn[data-visual="available"]::before,
.vms-portal.vms-portal--narrow .vms-av-readonly[data-visual="available"]::before {
  content: "✓" !important;
}

.vms-portal.vms-portal--narrow .vms-av-btn[data-visual="unavailable"]::before,
.vms-portal.vms-portal--narrow .vms-av-readonly[data-visual="unavailable"]::before {
  content: "×" !important;
}



/* Availability UI polish (vendor portal) */
.vms-portal .vms-av-monthlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vms-portal .vms-av-howto {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.10);
}

.vms-portal .vms-av-lookback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.06);
}

.vms-portal .vms-av-lookback label {
  font-weight: 700;
}

.vms-portal .vms-av-lookback select {
  max-width: 220px;
}

.vms-portal .vms-av-statewrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vms-portal .vms-av-hint {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.70;
  display: none;
}


.vms-portal .vms-av-readonly {
  position: relative;
}

/* Small legend */
.vms-portal .vms-av-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
}

.vms-portal .vms-av-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.vms-portal .vms-av-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
}

.vms-portal .vms-av-swatch.is-available {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

.vms-portal .vms-av-swatch.is-unavailable {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

.vms-portal .vms-av-swatch.is-tentative {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.vms-portal .vms-av-swatch.is-booked {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}


/* Portal utilities */
.vms-portal .vms-m0 {
  margin: 0 !important;
}

.vms-portal .vms-mb-0 {
  margin-bottom: 0 !important;
}

.vms-portal .vms-mb-10 {
  margin-bottom: 10px !important;
}

.vms-portal .vms-mb-12 {
  margin-bottom: 12px !important;
}

.vms-portal .vms-mt-0 {
  margin-top: 0 !important;
}

.vms-portal .vms-mt-2 {
  margin-top: 2px !important;
}

.vms-portal .vms-mt-8 {
  margin-top: 8px !important;
}

.vms-portal .vms-mt-10 {
  margin-top: 10px !important;
}

.vms-portal .vms-mt-14 {
  margin-top: 14px !important;
}

.vms-portal .vms-ml-10 {
  margin-left: 10px !important;
}

.vms-portal .vms-opacity-85 {
  opacity: 0.85 !important;
}

.vms-portal .vms-pt-12 {
  padding-top: 12px !important;
}

.vms-portal .vms-pl-18 {
  padding-left: 18px !important;
}

.vms-portal .vms-w-100 {
  width: 100% !important;
}

.vms-portal .vms-portal-vendor-switch {
  margin: 0 0 10px;
}

.vms-portal .vms-portal-vendor-switch-label {
  display: block;
  font-weight: 600;
  margin: 0 0 4px;
}

.vms-portal .vms-portal-vendor-switch-select {
  width: 100%;
  max-width: 420px;
}

.vms-portal .vms-portal-header h2 {
  margin: 0 0 8px;
}

.vms-portal .vms-portal-card h3 {
  margin: 0 0 6px;
}

.vms-portal .vms-portal-hero-value {
  font-weight: 900;
  font-size: 18px;
}

.vms-portal form.vms-av-row {
  margin: 0;
}

.vms-portal .vms-label-block {
  display: block;
  margin-bottom: 8px;
}

.vms-portal .vms-field-tight {
  flex: 0 0 auto;
  min-width: 240px;
}

.vms-portal .vms-av-card--plain {
  border: none;
  margin: 0;
  padding: 14px;
}

.vms-portal .vms-flex {
  display: flex;
}

.vms-portal .vms-wrap {
  flex-wrap: wrap;
}

.vms-portal .vms-ai-center {
  align-items: center;
}

.vms-portal .vms-gap-6 {
  gap: 6px;
}

.vms-portal .vms-gap-8 {
  gap: 8px;
}

.vms-portal .vms-gap-10 {
  gap: 10px;
}

.vms-portal .vms-av-lookback .vms-av-muted {
  margin-left: 10px;
}

.vms-portal .vms-portal-logo-thumb {
  max-width: 180px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.vms-mt-18 {
  margin-top: 18px;
}

.vms-mb-8 {
  margin-bottom: 8px;
}

.vms-ai-start {
  align-items: flex-start;
}

/* Staff portal – month toggle + month cards */
.vms-month-toggle {
  width: 100%;
  border: 1px solid #ddd;
  background: #f7f7f7;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.vms-portal .vms-portal-month {
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 10px 12px;
}

.vms-portal .vms-portal-month summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.vms-portal .vms-portal-month[open] summary {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.vms-portal .vms-portal-month table.widefat {
  margin-top: 10px;
}

.vms-mb-14 {
  margin-bottom: 14px;
}

.vms-mt-0 {
  margin-top: 0;
}

/* ==========================================================
 * All Vendors (portal) — Schedule-style month grid
 * ========================================================== */
.vms-portal details.vms-sch-month {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  margin: 16px 0;
}

.vms-portal details.vms-sch-month>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.vms-portal details.vms-sch-month[open]>summary {
  border-bottom: 1px solid #eee;
}

.vms-portal .vms-sch-monthlabel {
  font-size: 18px;
  line-height: 1.2;
}

.vms-portal table.vms-sch-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 10px;
  background: transparent;
  margin: 0;
}

.vms-portal .vms-sch-dow {
  text-align: center;
  color: #6b7280;
  font-weight: 600;
  padding: 6px 0;
}

.vms-portal .vms-sch-cell {
  min-height: 92px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.vms-portal td.is-past .vms-sch-cell {
  background: #fafafa;
  opacity: .65;
}

.vms-portal td.is-today .vms-sch-cell {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 2px rgba(199, 210, 254, .5);
}

.vms-portal .vms-sch-daynum {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
  color: #111827;
}

.vms-portal .vms-sch-planline {
  margin-top: 6px;
}

.vms-portal .vms-sch-venue-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vms-portal .vms-sch-planitem {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #1f2937;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .vms-portal table.vms-sch-grid {
    border-spacing: 0;
  }

  .vms-portal .vms-sch-cell {
    min-height: 78px;
    padding: 6px;
    border-radius: 12px;
  }

  .vms-portal .vms-sch-dow {
    font-size: 12px;
    padding: 4px 0;
  }

  .vms-portal .vms-sch-daynum {
    font-size: 13px;
  }

  .vms-portal .vms-sch-venue-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  .vms-portal .vms-sch-planitem {
    font-size: 11px;
    padding: 2px 6px;
  }
}

.vms-portal .vms-av-month summary {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}

/* ==========================================================================
EVERYTHING BELOW   
ADDED FROM CUSTOMIZER ADDITIONAL CSS
   ========================================================================== */


/* ==========================================================================
   VMS UI (single source of truth)
   ========================================================================== */

/* Notices */
.vms-notice {
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid transparent;
  font-weight: 600
}

.vms-notice-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46
}

.vms-notice-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e
}

.vms-notice-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b
}

/* Cards / basic layout */
.vms-portal-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 14px
}

.vms-muted {
  opacity: .8
}

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

@media (max-width:820px) {
  .vms-portal-grid {
    grid-template-columns: 1fr
  }
}

.vms-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0
}

.vms-portal-nav a {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  text-decoration: none
}

.vms-portal-nav a.is-active {
  border-color: #111827;
  font-weight: 800
}

.vms-field {
  margin: 0 0 14px
}

.vms-field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 800
}

.vms-field input,
.vms-field textarea,
.vms-field select {
  width: 100%;
  max-width: 520px
}

/* Shared collapsible panels (months, sections, etc.) */
.vms-panel {
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  background: #fff;
  margin: 12px 0;
  overflow: hidden
}

.vms-panel>summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 12px
}

.vms-panel>summary::-webkit-details-marker {
  display: none
}

.vms-panel-body {
  padding: 12px 12px 14px
}

.vms-panel-accent {
  border-left: 6px solid var(--vms-accent, #4f46e5)
}

.vms-panel-month {
  border-left: 6px solid #10b981
}

/* ==========================================================================
   Schedule calendar cells
   ========================================================================== */
.vms-sch-cell {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 10px;
  min-height: 92px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vms-sch-cell.is-outside {
  opacity: .35;
  background: #fbfbfb
}

.vms-sch-cell.is-closed {
  background: #f7f7f7;
  border-style: dashed
}

.vms-sch-daynum {
  font-weight: 900;
  font-size: 12px;
  opacity: .8;
  margin: 0 0 8px
}

.vms-sch-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  margin: 0 0 8px;
}

.vms-sch-badge.is-open {
  background: #eef6ff;
  border-color: #cfe3ff;
  color: #1e3a8a
}

.vms-sch-badge.is-closed {
  background: #f1f1f1;
  border-color: #dedede;
  color: #4b5563
}

.vms-sch-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vms-sch-cell .button {
  padding: 2px 10px;
  min-height: 26px;
  line-height: 22px;
  border-radius: 10px;
  font-size: 12px;
}

/* ==========================================================================
   Availability grid: source icon + booked styling
   ========================================================================== */
.vms-av-grid .vms-av-btn {
  position: relative
}

.vms-av-grid .vms-av-src {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 12px;
  line-height: 1;
  opacity: .75;
  pointer-events: none
}

.vms-av-badge-booked {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a
}

/* Booked should always win visually */
.vms-av-grid .vms-av-btn[data-src="booked"] {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
}

.vms-av-grid .vms-av-btn[data-src="booked"] .vms-av-state {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .02em
}

/* ==========================================================================
   Method accordions (ICS / Pattern / Manual)
   ========================================================================== */
details.vms-av-method {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  margin: 0 0 12px;
  overflow: hidden
}

.vms-av-method summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.vms-av-method summary::-webkit-details-marker {
  display: none
}

/* Title clamps */
.vms-av-method summary>span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Meta stays one line */
.vms-av-summarymeta {
  font-weight: 700;
  font-size: 12px;
  opacity: .65;
  flex: 0 0 auto;
  white-space: nowrap;
  margin-left: 12px
}

/* Body padding */
details.vms-av-method>:not(summary) {
  padding: 14px
}

details.vms-av-method>:not(summary) .vms-av-card {
  padding: 0
}

details.vms-av-method .vms-av-card {
  border: none;
  margin: 0
}

/* ICS form tweaks */
details.vms-av-method[data-method="ics"] .vms-av-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

details.vms-av-method[data-method="ics"] .vms-av-actions .button {
  flex: 1 1 220px;
  min-width: 0
}

details.vms-av-method[data-method="ics"] .field input[type="url"] {
  width: 100% !important;
  max-width: 520px;
  font-size: 12px;
  padding: 8px 10px
}

/* Mobile polish */
@media (max-width:520px) {
  .vms-av-grid .vms-av-btn .vms-av-src {
    display: none !important
  }

  .vms-av-grid td {
    padding: 8px !important
  }

  .vms-av-grid .vms-av-btn {
    border-radius: 999px !important;
    padding: 6px 0 !important;
    min-height: 34px !important
  }

  .vms-av-grid .vms-av-btn .vms-av-state {
    font-size: 15px !important;
    line-height: 1 !important;
    white-space: nowrap !important
  }

  details.vms-av-method[data-method="ics"] .vms-av-row {
    flex-direction: column;
    align-items: stretch
  }

  details.vms-av-method[data-method="ics"] .vms-av-row>.field {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    width: 100% !important
  }

  details.vms-av-method[data-method="ics"] .vms-av-actions .button {
    width: 100% !important;
    display: block
  }
}


.vms-vp-progress-section {
  border-color: #dbe7ff;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.vms-vp-progress-section__header {
  margin: 0 0 12px;
}

.vms-vp-progress-list {
  display: grid;
  gap: 12px;
}

.vms-vp-progress-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.vms-vp-progress-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.vms-vp-progress-card__titles {
  min-width: 0;
}

.vms-vp-progress-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.vms-vp-progress-card__date {
  margin-top: 4px;
  color: var(--vms-muted, #5a5f67);
  font-size: 13px;
}

.vms-vp-progress-card__amount {
  text-align: right;
  min-width: 140px;
}

.vms-vp-progress-card__amount-label,
.vms-vp-progress-stat__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--vms-muted, #5a5f67);
  margin-bottom: 4px;
}

.vms-vp-progress-card__amount strong {
  font-size: 19px;
  line-height: 1.1;
}

.vms-vp-progress-card__countline {
  margin: 10px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.vms-vp-progress-meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
}

.vms-vp-progress-meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.vms-vp-progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.vms-vp-progress-stat {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
}

.vms-vp-progress-stat strong {
  display: block;
  line-height: 1.25;
}

.vms-vp-progress-breakdown {
  display: grid;
  gap: 6px;
}

.vms-vp-progress-breakdown__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.vms-vp-progress-breakdown__label {
  color: var(--vms-muted, #5a5f67);
  font-size: 12px;
  line-height: 1.3;
}

.vms-vp-progress-breakdown__row strong {
  min-width: 1.5em;
  text-align: right;
}

.vms-vp-progress-inline-note {
  font-size: 12px;
  font-weight: 700;
  color: var(--vms-muted, #5a5f67);
}

.vms-vp-progress-card__foot {
  margin-top: 10px;
  font-size: 12px;
}

@media (max-width:820px) {
  .vms-vp-progress-card__top {
    flex-direction: column;
  }

  .vms-vp-progress-card__amount {
    text-align: left;
    min-width: 0;
  }

  .vms-vp-progress-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:520px) {
  .vms-vp-progress-stats {
    grid-template-columns: 1fr;
  }
}

/* Dashboard layout */
.vms-dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px
}

@media (max-width:820px) {
  .vms-dash-grid {
    grid-template-columns: 1fr
  }
}

.vms-dash-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0
}

.vms-dash-kpi {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 160px;
  background: #fff
}

.vms-dash-kpi b {
  display: block;
  font-size: 12px;
  opacity: .7;
  margin: 0 0 4px
}

.vms-dash-kpi span {
  font-weight: 900
}

.vms-dash-list {
  margin: 10px 0 0;
  padding-left: 18px
}

.vms-dash-list li {
  margin: 6px 0
}

.vms-dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px
}

/* Schedule: cell shading */
.vms-sch-cell.is-open {
  background: rgba(34, 197, 94, .06);
  border-color: rgba(34, 197, 94, .22);
}

.vms-sch-cell.is-closed {
  background: rgba(0, 0, 0, .03);
  border-style: dashed;
}

/* Schedule: event “pill” links */
.vms-sch-plan a {
  display: block;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.15;
}

.vms-sch-plan a:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* If multiple plans stack nicely */
.vms-sch-plan+.vms-sch-plan {
  margin-top: 6px;
}

/* =====================================================================
   CSS-02 follow-up: portal inline-style migration
   ===================================================================== */

/* Logged-out auth split */
.vms-portal-auth-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 0 4px;
}

.vms-portal-auth-header {
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.18), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #f7fbf9 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.vms-portal-auth-kicker,
.vms-vendor-apply-confirmation__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.10);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vms-portal-auth-header h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.vms-portal-auth-header p {
  max-width: 760px;
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.55;
}

.vms-portal-auth-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vms-portal-auth-col {
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.vms-portal-auth-login {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
}

.vms-portal-auth-apply {
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.95), rgba(255, 255, 255, 0.98));
}

.vms-portal-auth-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vms-portal-auth-col h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.12;
}

.vms-portal-auth-copy {
  margin: 0 0 16px;
  color: #334155;
  line-height: 1.55;
}

.vms-portal-auth-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #0f172a;
}

.vms-portal-auth-list li + li {
  margin-top: 8px;
}

.vms-portal-auth-login form {
  margin: 0;
}

.vms-portal-auth-login form p {
  margin: 0 0 14px;
}

.vms-portal-auth-login label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.vms-portal-auth-login input[type="text"],
.vms-portal-auth-login input[type="password"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 10px 12px;
  min-height: 44px;
  box-sizing: border-box;
}

.vms-portal-auth-login .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 600;
}

.vms-portal-auth-login .login-submit {
  margin-top: 14px;
}

.vms-portal-auth-login .login-submit .button,
.vms-portal-auth-login .login-submit input[type="submit"] {
  width: 100%;
  min-height: 46px;
}

.vms-portal-auth-wrap .vms-portal-auth-link-row {
  margin-top: 10px;
}

.vms-portal-auth-wrap .vms-portal-auth-hint {
  margin: 14px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.vms-vendor-apply-flow {
  max-width: 760px;
}

.vms-vendor-apply-form {
  margin: 0;
}

.vms-vendor-apply-notice p {
  margin: 0;
}

.vms-vendor-apply-notice p + p {
  margin-top: 6px;
}

.vms-vendor-apply-turnstile {
  margin: 12px 0;
}

.vms-vendor-apply-confirmation {
  max-width: 760px;
}

.vms-vendor-apply-confirmation__notice p,
.vms-vendor-apply-confirmation__card p {
  margin: 0;
}

.vms-vendor-apply-confirmation__notice p + p {
  margin-top: 6px;
}

.vms-vendor-apply-confirmation__card {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 34%),
    #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.vms-vendor-apply-confirmation__card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
}

.vms-vendor-apply-confirmation__card > p {
  color: #334155;
  line-height: 1.55;
}

.vms-vendor-apply-confirmation__steps {
  margin: 16px 0 0;
  padding-left: 20px;
}

.vms-vendor-apply-confirmation__steps li + li {
  margin-top: 10px;
}

.vms-vendor-apply-confirmation__actions,
.vms-vendor-account-guide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vms-vendor-apply-confirmation__resend {
  margin: 0;
}

.vms-vendor-apply-confirmation__resend .button {
  min-height: 44px;
}

.vms-vendor-account-guide {
  margin-bottom: 18px;
}

.vms-vendor-account-guide p {
  margin: 0;
}

.vms-vendor-account-guide p + p {
  margin-top: 6px;
}

.vms-vendor-app-confirmation-page__main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.vms-vendor-applicant-state {
  width: 100%;
}

@media (max-width: 820px) {
  .vms-portal-auth-wrap {
    grid-template-columns: 1fr;
  }

  .vms-portal-auth-header,
  .vms-portal-auth-col,
  .vms-vendor-apply-confirmation__card {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .vms-portal-auth-header h1,
  .vms-portal-auth-col h2,
  .vms-vendor-apply-confirmation__card h2 {
    font-size: 26px;
  }

  .vms-vendor-apply-confirmation__actions .button,
  .vms-vendor-account-guide__actions .button,
  .vms-portal-auth-col .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Vendor portal: tax profile card layout */
.vms-portal .vms-vtp-panel-body {
  padding: 14px 14px 16px;
}

.vms-portal .vms-vtp-intro {
  margin: 0 0 12px;
  max-width: 860px;
}

.vms-portal .vms-vtp-subhead {
  margin: 18px 0 8px;
}

.vms-portal .vms-vtp-subhead-first {
  margin-top: 14px;
}

.vms-portal .vms-vtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 860px;
}

.vms-portal .vms-vtp-full {
  grid-column: 1 / -1;
}

.vms-portal .vms-vtp-provider-note {
  max-width: 860px;
  white-space: pre-line;
}

.vms-portal .vms-vtp-upload-note {
  margin: 8px 0 10px;
}

.vms-portal .vms-vtp-field-wide {
  max-width: 860px;
  margin-top: 10px;
}

.vms-portal .vms-vtp-attest-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Staff portal: tax + availability sections */
.vms-portal .vms-staff-tax-body,
.vms-portal .vms-staff-avail-body {
  padding: 14px 14px 16px;
}

.vms-portal .vms-staff-tax-intro,
.vms-portal .vms-staff-avail-intro {
  margin: 0 0 12px;
  max-width: 860px;
}

.vms-portal .vms-staff-tax-subhead {
  margin: 18px 0 8px;
}

.vms-portal .vms-staff-tax-subhead-first {
  margin-top: 14px;
}

.vms-portal .vms-staff-tax-upload-note {
  margin: 0 0 10px;
}

.vms-portal .vms-staff-tax-upload-field {
  margin: 0 0 10px;
}

.vms-portal .vms-staff-avail-toggle-row {
  margin: 8px 0 14px;
}

/* Vendor portal mobile mode (migrated from inline block) */
.vms-portal--mobile .vms-av-card {
  padding: 10px !important;
}

.vms-portal--mobile .vms-av-month summary {
  padding: 10px 10px !important;
}

.vms-portal--mobile .vms-av-grid {
  border-spacing: 2px 2px !important;
  margin-top: 6px !important;
}

.vms-portal--mobile .vms-av-grid th {
  font-size: 10px !important;
  padding: 2px 0 !important;
}

.vms-portal--mobile .vms-av-btn,
.vms-portal--mobile .vms-av-readonly {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
  padding: 0 !important;
  position: relative !important;
}

.vms-portal--mobile .vms-av-day {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  transform: none !important;
  z-index: 3 !important;
}

.vms-portal--mobile .vms-av-daynum {
  font-size: 14px !important;
}

.vms-portal--mobile .vms-av-event-title,
.vms-portal--mobile .vms-av-btn .vms-av-statewrap {
  display: none !important;
}

.vms-portal--mobile .vms-av-btn::before,
.vms-portal--mobile .vms-av-readonly::before {
  content: "";
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.85;
}

.vms-portal--mobile .vms-av-btn[data-visual="available"]::before,
.vms-portal--mobile .vms-av-readonly[data-visual="available"]::before {
  content: "✓";
}

.vms-portal--mobile .vms-av-btn[data-visual="unavailable"]::before,
.vms-portal--mobile .vms-av-readonly[data-visual="unavailable"]::before {
  content: "×";
}

@media (max-width: 900px) {
  .vms-portal .vms-vtp-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CSS-05: vendor portal availability past-day shading hardening
   Keep past dates visually muted across desktop + mobile overrides.
   ========================================================================== */
.vms-portal .vms-av-grid td.vms-av-past {
  background: rgba(15, 23, 42, 0.035);
}

.vms-portal .vms-av-grid td.vms-av-past .vms-av-btn,
.vms-portal .vms-av-grid td.vms-av-past .vms-av-readonly {
  opacity: 0.72 !important;
  border-style: dashed !important;
  box-shadow:
    inset 0 0 0 9999px rgba(15, 23, 42, 0.07),
    inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.vms-portal .vms-av-grid td.vms-av-past .vms-av-daynum {
  opacity: 0.56;
}

.vms-portal--mobile .vms-av-grid td.vms-av-past .vms-av-btn::before,
.vms-portal--mobile .vms-av-grid td.vms-av-past .vms-av-readonly::before {
  opacity: 0.55;
}

/* ==========================================================================
   Calendar engine: move manual status into top badge row (avoid title overlap)
   ========================================================================== */
.vms-portal .vms-av-cell-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: calc(100% - 48px);
}

.vms-portal .vms-av-badge-booked,
.vms-portal .vms-av-badge-tentative,
.vms-portal .vms-av-badge-status {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
}

.vms-portal .vms-av-badge-booked {
  color: #1e3a8a;
}

.vms-portal .vms-av-badge-tentative {
  color: #92400e;
}

.vms-portal .vms-av-badge-status.is-unset {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.20);
  color: #1f2937;
}

.vms-portal .vms-av-badge-status.is-available {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.36);
  color: #166534;
}

.vms-portal .vms-av-badge-status.is-unavailable {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.38);
  color: #991b1b;
}

/* Hide center text stack now that status is a badge row. */
.vms-portal .vms-av-btn .vms-av-statewrap,
.vms-portal .vms-av-readonly .vms-av-chip {
  display: none !important;
}

.vms-portal.vms-portal--narrow .vms-av-badge-status,
.vms-portal--mobile .vms-av-badge-status {
  display: inline-flex !important;
}

/* ==========================================================================
   Calendar engine: full-width container + tablet badge icon mode
   ========================================================================== */
#vms-portal-root .vms-portal-body,
#vms-portal-root .vms-av-wrap {
  width: 100%;
  max-width: none !important;
}

@media (max-width: 1024px) {
  /* Use only badge-row icons in compact layouts. */
  #vms-portal-root .vms-av-btn::before,
  #vms-portal-root .vms-av-readonly::before {
    content: none !important;
  }

  #vms-portal-root .vms-av-src {
    display: none !important;
  }

  #vms-portal-root .vms-av-cell-badges {
    gap: 4px;
    max-width: calc(100% - 40px);
  }

  #vms-portal-root .vms-av-badge-booked,
  #vms-portal-root .vms-av-badge-tentative,
  #vms-portal-root .vms-av-badge-status {
    width: 22px;
    min-width: 22px;
    height: 22px;
    justify-content: center;
    padding: 0;
    font-size: 0;
    line-height: 1;
  }

  #vms-portal-root .vms-av-badge-booked::before,
  #vms-portal-root .vms-av-badge-tentative::before,
  #vms-portal-root .vms-av-badge-status::before {
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
  }

  #vms-portal-root .vms-av-badge-booked::before {
    content: "🎟️";
  }

  #vms-portal-root .vms-av-badge-tentative::before {
    content: "⏳";
  }

  #vms-portal-root .vms-av-badge-status.is-available::before {
    content: "✓";
  }

  #vms-portal-root .vms-av-badge-status.is-unavailable::before {
    content: "×";
  }

  #vms-portal-root .vms-av-badge-status.is-unset::before {
    content: "-";
  }
}

/* ==========================================================================
   Calendar engine: compact event/vendor/open-slot rows in availability cells
   ========================================================================== */
.vms-portal .vms-av-event-title .vms-av-meta-line,
.vms-portal .vms-av-event-title .vms-av-meta-more {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vms-portal .vms-av-event-title .vms-av-meta-line.is-vendor {
  opacity: 0.92;
}

.vms-portal .vms-av-event-title .vms-av-meta-line.is-slot {
  font-weight: 900;
}

.vms-portal .vms-av-event-title .vms-av-meta-line.is-link,
.vms-portal .vms-av-event-title .vms-av-meta-line.is-link a {
  pointer-events: auto;
}

.vms-portal .vms-av-event-title .vms-av-meta-line.is-link a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.vms-portal .vms-av-event-title .vms-av-meta-line.is-trigger {
  pointer-events: auto;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-entry {
  pointer-events: auto;
  margin-top: 0;
  padding-top: 0;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-entry + .vms-cal-entry {
  margin-top: 3px;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-entry-vendors {
  display: block;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-vendor-row {
  pointer-events: auto;
  color: inherit;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-entry-vendor.is-primary {
  font-size: 11px;
  font-weight: 800;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-vendor-row:hover,
.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-vendor-row:focus-visible {
  color: #124e96;
  outline: none;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-pop {
  z-index: 120;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-pop-vendor.is-primary,
.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-pop-vendor.is-secondary {
  white-space: normal;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-pop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-pop-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.vms-portal .vms-av-event-title.vms-public-cal .vms-cal-pop-secondary:hover {
  background: #d1d5db;
}

/* The event-details card is appended to document.body, so it cannot rely on
   .vms-portal ancestor scoping for layout or visibility rules. */
.vms-portal-modal[hidden] {
  display: none !important;
}

.vms-portal-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vms-portal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
}

.vms-portal-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90vh, 760px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.vms-portal-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vms-portal-modal__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
}

.vms-portal-modal__content {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.vms-portal-modal__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.vms-portal-modal__venue,
.vms-portal-modal__date,
.vms-portal-modal__time {
  margin: 0;
  color: #374151;
  font-size: 0.96rem;
}

.vms-portal-modal__excerpt {
  margin: 0;
  color: #4b5563;
}

.vms-portal-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.vms-portal-modal__actions .button {
  margin: 0;
}

@media (max-width: 640px) {
  .vms-portal-modal {
    padding: 16px;
  }
}

/* Align event/content stack from the top of each availability day cell. */
.vms-portal .vms-av-event-title {
  top: 40px;
  bottom: auto;
}


.vms-portal .vms-av-opps-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.vms-portal .vms-av-opps-intro strong {
  font-size: 0.98rem;
}

.vms-portal .vms-av-opportunity-list {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
  pointer-events: none;
}

.vms-portal .vms-av-opportunity-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.vms-portal .vms-av-opportunity-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.vms-portal .vms-av-opportunity-pill.is-open {
  background: #e8f2ff;
  color: #124e96;
}

.vms-portal .vms-av-opportunity-pill.is-pending,
.vms-portal .vms-av-opportunity-pill.is-reviewed {
  background: #fff3c2;
  color: #6f4f00;
}

.vms-portal .vms-av-opportunity-pill.is-withdrawn {
  background: #eceff1;
  color: #4a525a;
}

.vms-portal .vms-av-opportunity-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--vms-muted, #5a5f67);
}

.vms-portal .vms-av-opportunity-action.button {
  min-height: 22px;
  padding: 0 8px;
  line-height: 20px;
  border-radius: 999px;
  font-size: 11px;
}

.vms-portal .vms-av-event-title {
  bottom: 46px;
}

.vms-portal.vms-portal--narrow .vms-av-opps-intro {
  align-items: flex-start;
  flex-direction: column;
}

.vms-portal.vms-portal--narrow .vms-av-opportunity-list,
.vms-portal--mobile .vms-av-opportunity-list {
  display: none !important;
}

/* ==========================================================================
   Vendor opportunities
   ========================================================================== */
.vms-portal .vms-vio-opps-card {
  display: grid;
  gap: 14px;
}

.vms-portal .vms-vio-opps-list {
  display: grid;
  gap: 12px;
}

.vms-portal .vms-vio-opps-item {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.vms-portal .vms-vio-opps-item__meta {
  display: grid;
  gap: 4px;
}

.vms-portal .vms-vio-opps-item__date {
  font-weight: 700;
}

.vms-portal .vms-vio-opps-item__venue {
  color: var(--vms-muted, #5a5f67);
  font-size: 0.95rem;
}

.vms-portal .vms-vio-opps-item__body {
  display: grid;
  gap: 10px;
}

.vms-portal .vms-vio-opps-item__title {
  margin: 0;
}

.vms-portal .vms-vio-opps-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vms-portal .vms-vio-opps-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.vms-portal .vms-vio-opps-status--pending {
  background: #fff3c2;
  color: #6f4f00;
}

.vms-portal .vms-vio-opps-status--accepted {
  background: #dff5e5;
  color: #0f5b2f;
}

.vms-portal .vms-vio-opps-status--open {
  background: #e8f2ff;
  color: #124e96;
}

.vms-portal .vms-vio-opps-status--booked {
  background: #eceff1;
  color: #4a525a;
}

.vms-portal .vms-vio-opps-status--declined,
.vms-portal .vms-vio-opps-status--withdrawn {
  background: #eceff1;
  color: #4a525a;
}

@media (max-width: 760px) {
  .vms-portal .vms-vio-opps-item {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Admin preview mode (Vendor Portal)
   ========================================================================== */

.vms-portal .vms-portal-preview-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.08);
}

.vms-portal .vms-portal-preview-banner__copy {
  flex: 1 1 280px;
}

.vms-portal .vms-portal-preview-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.vms-portal .vms-portal-gallery-preview{margin:8px 0 10px;max-width:180px;}
.vms-portal .vms-portal-gallery-preview img{display:block;width:100%;height:auto;border:1px solid #ddd;border-radius:8px;padding:4px;background:#fff;object-fit:cover;aspect-ratio:1 / 1;}


.vms-vendor-guest-root{display:grid;gap:16px}
.vms-vendor-guest-card{border:1px solid #dcdcde;border-radius:16px;padding:16px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.vms-vendor-guest-topline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:8px}
.vms-vendor-guest-meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:13px;color:#50575e;margin-bottom:12px}
.vms-vendor-guest-pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#f0f6fc;color:#0b57d0;font-size:12px;font-weight:600}
.vms-vendor-guest-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:12px}
.vms-vendor-guest-form-grid label{display:grid;gap:6px;font-weight:600}
.vms-vendor-guest-form-grid input,.vms-vendor-guest-form-grid textarea{width:100%}
.vms-vendor-guest-form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.vms-vendor-guest-list{display:grid;gap:10px;margin-top:14px}
.vms-vendor-guest-entry{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fafafa}
.vms-vendor-guest-entry-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.vms-vendor-guest-entry-meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:13px;color:#50575e;margin-top:6px}
.vms-vendor-guest-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#eef2ff;color:#3730a3}
.vms-vendor-guest-status.is-checked_in{background:#ecfdf3;color:#027a48}
.vms-vendor-guest-status.is-partial{background:#fff7ed;color:#c2410c}
.vms-vendor-guest-status.is-canceled{background:#fef2f2;color:#b42318}
.vms-vendor-guest-help{margin:0 0 10px 0;color:#50575e}
.vms-vendor-guest-tour{margin-bottom:10px}
@media (max-width: 760px){.vms-vendor-guest-card{padding:14px}.vms-vendor-guest-form-actions form{width:100%}}

/* Vendor-managed guest passes */
.vms-vendor-guest-required-marker{color:#b42318;font-weight:700}
.vms-vendor-guest-person-grid__party-size{grid-column:1 / -1;max-width:240px}
.vms-vendor-guest-qty{display:grid;grid-template-columns:auto 72px auto;align-items:center;gap:8px}
.vms-vendor-guest-qty__button{min-height:40px;line-height:1;font-size:20px;padding:0 12px;border-radius:10px}
.vms-vendor-guest-qty input{text-align:center;font-weight:700}
.vms-vendor-guest-party-list{display:grid;gap:12px}
.vms-vendor-guest-person{position:relative;border:1px solid rgba(15,23,42,.12);border-radius:14px;padding:14px;background:#fff}
.vms-vendor-guest-person.is-primary{border-color:#c6dbff;background:#eef4ff}
.vms-vendor-guest-companion-list{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(11,87,208,.14)}
.vms-vendor-guest-person.is-companion{border-color:#d8e7ff;background:#f7fbff;padding:12px}
.vms-vendor-guest-person legend{font-weight:700;padding:0 8px;color:#17324d}
.vms-vendor-guest-person-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:start}
.vms-vendor-guest-person-grid label,.vms-vendor-guest-form-grid label{display:grid;gap:6px;font-weight:600}
.vms-vendor-guest-contact-group{display:grid;gap:6px;grid-column:span 2}
.vms-vendor-guest-contact-group__label{font-weight:600}
.vms-vendor-guest-contact-group__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.vms-vendor-guest-person-help{margin:8px 0 0;color:#64748b;font-size:.95em}
.vms-vendor-guest-person-help--primary{margin-top:10px}
.vms-vendor-guest-person-help--party{margin:8px 0 0}
.vms-vendor-guest-person-footer{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.08)}
.vms-vendor-guest-person-footer .vms-vendor-guest-form-actions{margin-top:12px}
.vms-vendor-guest-form-grid__notes{grid-column:1 / -1}
@media (max-width: 760px){
  .vms-vendor-guest-person-grid__party-size{max-width:none}
  .vms-vendor-guest-contact-group{grid-column:auto}
}

.vms-portal .vms-tax-profile-status {
  margin: 0 0 10px;
}

.vms-portal .vms-av-badge-status.is-working {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.32);
  color: #1d4ed8;
}

.vms-portal .vms-av-badge-status.is-conflict {
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(234, 88, 12, 0.34);
  color: #9a3412;
}

.vms-portal .vms-av-leg-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
}

.vms-portal .vms-av-leg-dot.is-available {
  background: rgba(34, 197, 94, 0.55);
  border-color: rgba(22, 163, 74, 0.36);
}

.vms-portal .vms-av-leg-dot.is-unavailable {
  background: rgba(239, 68, 68, 0.5);
  border-color: rgba(220, 38, 38, 0.38);
}

.vms-portal .vms-av-leg-dot.is-working {
  background: rgba(59, 130, 246, 0.48);
  border-color: rgba(37, 99, 235, 0.32);
}

.vms-portal .vms-av-leg-dot.is-conflict {
  background: rgba(249, 115, 22, 0.48);
  border-color: rgba(234, 88, 12, 0.34);
}

/* ==========================================================================
   Staff portal availability parity: assignment cards inside availability tiles
   ========================================================================== */
.vms-portal .vms-staff-av-event-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.vms-portal .vms-staff-av-event-card {
  padding: 7px 8px;
  border: 1px solid rgba(18, 78, 150, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.vms-portal .vms-staff-av-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.vms-portal .vms-staff-av-event-name {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
}

.vms-portal .vms-staff-av-event-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.vms-portal .vms-staff-av-event-status.is-confirmed {
  background: #e8f7ec;
  color: #166534;
}

.vms-portal .vms-staff-av-event-status.is-proposed {
  background: #fff3c2;
  color: #6f4f00;
}

.vms-portal .vms-staff-av-event-meta {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
  color: #4b5563;
}

.vms-portal.vms-portal--narrow .vms-staff-av-event-card,
.vms-portal--mobile .vms-staff-av-event-card {
  padding: 6px 7px;
}

.vms-portal.vms-portal--narrow .vms-staff-av-event-head,
.vms-portal--mobile .vms-staff-av-event-head {
  flex-direction: column;
  align-items: flex-start;
}


/* ==========================================================================
   Staff portal availability tile rewrite: keep assignment info inside the tile
   ========================================================================== */
.vms-portal .vms-av-btn,
.vms-portal .vms-av-readonly {
  position: relative;
  overflow: hidden;
}

.vms-portal .vms-staff-av-readonly--occupied {
  display: block;
  padding: 30px 8px 8px;
}

.vms-portal .vms-staff-av-tile-body {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 4;
}

.vms-portal .vms-staff-av-event-cards {
  margin-top: 0;
}

.vms-portal .vms-staff-av-event-card {
  padding: 8px 9px;
  border: 1px solid rgba(18, 78, 150, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.vms-portal .vms-staff-av-event-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vms-portal .vms-staff-av-event-meta,
.vms-portal .vms-av-meta-more {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vms-portal .vms-av-meta-more {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #4b5563;
}

.vms-portal.vms-portal--narrow .vms-staff-av-readonly--occupied,
.vms-portal--mobile .vms-staff-av-readonly--occupied {
  padding: 0 !important;
}

.vms-portal.vms-portal--narrow .vms-staff-av-tile-body,
.vms-portal--mobile .vms-staff-av-tile-body {
  left: 6px;
  right: 6px;
  bottom: 6px;
}

.vms-portal.vms-portal--narrow .vms-staff-av-event-card,
.vms-portal--mobile .vms-staff-av-event-card {
  padding: 5px 6px;
  border-radius: 10px;
}

.vms-portal.vms-portal--narrow .vms-staff-av-event-status,
.vms-portal--mobile .vms-staff-av-event-status,
.vms-portal.vms-portal--narrow .vms-staff-av-event-meta,
.vms-portal--mobile .vms-staff-av-event-meta,
.vms-portal.vms-portal--narrow .vms-av-meta-more,
.vms-portal--mobile .vms-av-meta-more {
  display: none;
}

.vms-portal.vms-portal--narrow .vms-staff-av-event-name,
.vms-portal--mobile .vms-staff-av-event-name {
  font-size: 10px;
  line-height: 1.2;
  -webkit-line-clamp: 1;
}


/* ==========================================================================
   Staff portal availability parity v2: use vendor-style inline tile rows
   ========================================================================== */
.vms-portal .vms-staff-av-readonly--occupied {
  align-items: stretch;
  justify-content: flex-start;
}

.vms-portal .vms-staff-av-readonly--occupied .vms-av-chip,
.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-staff-av-event-card,
.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-staff-av-event-cards,
.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-staff-av-tile-body {
  display: none !important;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff {
  top: 44px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  font-size: 11px;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-line,
.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-more {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-line.is-trigger {
  overflow: visible;
  white-space: normal;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-line.is-trigger .vms-cal-entry-vendor.is-primary {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-line.is-trigger .vms-cal-vendor-icon {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  margin-top: 1px;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-line.is-trigger .vms-cal-vendor-name {
  min-width: 0;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-line.is-staff-event {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-line.is-staff-shift {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  color: #4b5563;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-cal-pop-time--staff {
  margin-top: 6px;
  font-weight: 600;
  color: #4b5563;
}

.vms-portal .vms-av-event-title.vms-av-event-title--staff .vms-av-meta-more {
  margin-top: 1px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #4b5563;
}

.vms-portal.vms-portal--narrow .vms-av-event-title.vms-av-event-title--staff,
.vms-portal--mobile .vms-av-event-title.vms-av-event-title--staff {
  display: none !important;
}


/* Headliner promo video — vendor portal */
.vms-portal-promo-video-card {
  display: grid;
  gap: 14px;
}

.vms-portal-promo-video-card__header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.vms-portal-promo-video-card__header h3 {
  margin: 0 0 4px;
}

.vms-portal-promo-video-card__limits,
.vms-portal-promo-video-card__empty {
  margin: 0;
}

.vms-portal-promo-video-form,
.vms-portal-promo-video-remove {
  margin: 0;
}

.vms-portal-promo-video-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vms-headliner-promo-video {
  display: grid;
  gap: 8px;
}

.vms-headliner-promo-video__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.vms-headliner-promo-video__description {
  margin: 0;
  opacity: 0.82;
}

.vms-headliner-promo-video__frame {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
}

.vms-headliner-promo-video__player,
.vms-headliner-promo-video__frame iframe,
.vms-headliner-promo-video__frame embed,
.vms-headliner-promo-video__frame object {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.vms-headliner-promo-video__frame iframe {
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border: 0;
}


/* Staff Portal — Assigned event cards */
.vms-portal .vms-staff-shift-section {
  margin-top: 22px;
}
.vms-portal .vms-staff-shift-section > h3 {
  margin: 0 0 10px;
}
.vms-portal .vms-staff-shift-cards {
  display: grid;
  gap: 14px;
}
.vms-portal .vms-staff-shift-card {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.vms-portal .vms-staff-shift-card > summary {
  list-style: none;
}
.vms-portal .vms-staff-shift-card > summary::-webkit-details-marker {
  display: none;
}
.vms-portal .vms-staff-shift-summary {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
}
.vms-portal .vms-staff-shift-summary-main {
  min-width: 0;
}
.vms-portal .vms-staff-shift-thumb {
  width: 104px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vms-portal .vms-staff-shift-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vms-portal .vms-staff-shift-thumb--fallback {
  color: #475569;
  font-size: 24px;
}
.vms-portal .vms-staff-shift-title {
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.vms-portal .vms-staff-shift-meta {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
}
.vms-portal .vms-staff-shift-meta--tickets {
  font-weight: 600;
  color: #0f172a;
}
.vms-portal .vms-staff-shift-expand {
  align-self: flex-start;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.vms-portal .vms-staff-shift-card[open] .vms-staff-shift-expand {
  color: #0f172a;
}
.vms-portal .vms-staff-shift-body {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(255, 255, 255, 0.9));
}
.vms-portal .vms-staff-shift-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.vms-portal .vms-staff-shift-kpi {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}
.vms-portal .vms-staff-shift-kpi b,
.vms-portal .vms-staff-shift-kpi span {
  display: block;
}
.vms-portal .vms-staff-shift-kpi b {
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}
.vms-portal .vms-staff-shift-kpi span {
  color: #0f172a;
  font-weight: 700;
}
.vms-portal .vms-staff-shift-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.vms-portal .vms-staff-shift-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}
.vms-portal .vms-staff-shift-panel h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 14px;
}
.vms-portal .vms-staff-shift-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vms-portal .vms-staff-shift-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.vms-portal .vms-staff-shift-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.vms-portal .vms-staff-shift-list li:last-child {
  padding-bottom: 0;
}
.vms-portal .vms-staff-shift-list a,
.vms-portal .vms-staff-shift-list strong,
.vms-portal .vms-staff-shift-list span {
  font-size: 13px;
}
.vms-portal .vms-staff-shift-list span {
  color: #64748b;
  text-align: right;
}
@media (max-width: 840px) {
  .vms-portal .vms-staff-shift-summary {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .vms-portal .vms-staff-shift-expand {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
  .vms-portal .vms-staff-shift-kpis,
  .vms-portal .vms-staff-shift-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .vms-portal .vms-staff-shift-summary {
    grid-template-columns: 1fr;
  }
  .vms-portal .vms-staff-shift-thumb {
    width: 100%;
    height: 160px;
  }
  .vms-portal .vms-staff-shift-list li {
    display: block;
  }
  .vms-portal .vms-staff-shift-list span {
    display: block;
    text-align: left;
    margin-top: 2px;
  }
}

/* Staff certification upload/review portal */
.vms-portal .vms-staff-certification-grid {
  align-items: end;
}
.vms-portal .vms-staff-certification-file {
  grid-column: 1 / -1;
}
.vms-portal .vms-staff-certification-list {
  display: grid;
  gap: 12px;
}
.vms-portal .vms-staff-certification-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
}
.vms-portal .vms-staff-certification-main {
  min-width: 0;
}
.vms-portal .vms-staff-certification-main strong {
  display: inline-block;
  margin-right: 8px;
}
.vms-portal .vms-staff-certification-actions {
  flex: 0 0 auto;
}
@media (max-width: 680px) {
  .vms-portal .vms-staff-certification-row {
    display: block;
  }
  .vms-portal .vms-staff-certification-actions {
    margin-top: 10px;
  }
}
