/* The hidden attribute must win over component display rules (e.g. .mode-btn { display: flex }). */
[hidden] { display: none !important; }

:root {
  --bg-canvas: #F5F2EB;
  --bg-surface: #FFFDF9;
  --bg-elevated: #EFECE3;
  --bg-forest: #12291E;
  --bg-forest-mid: #1B3B2B;
  --bg-forest-soft: #E5EFE9;

  --text-primary: #14221A;
  --text-secondary: #43544A;
  --text-muted: #697A70;
  --text-on-dark: #F5F2EB;

  --border-subtle: #DDD8CB;
  --border-strong: #C2BBA8;

  --accent-emerald: #1F6E4A;
  --accent-emerald-light: #DDF3E7;
  --accent-terracotta: #C25E40;
  --accent-terracotta-light: #FCECE7;
  --accent-amber: #B47418;
  --accent-amber-light: #FDF3DF;
  --accent-sky: #1E5C7B;
  --accent-sky-light: #E2F1F8;
  --accent-danger: #B42318;
  --accent-danger-light: #FEE4E2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(18, 41, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 41, 30, 0.08);
  --shadow-lg: 0 20px 44px rgba(18, 41, 30, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.4rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.18;
}

h2 {
  font-size: 1.32rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

p {
  margin: 0 0 0.75rem 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
  margin-bottom: 0.3rem;
}

.muted-text {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===================================================================== */
/* TOP GLOBAL HEADER                                                     */
/* ===================================================================== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-forest);
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.brand-emblem svg {
  width: 38px;
  height: 38px;
  display: block;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFDF9;
  letter-spacing: -0.01em;
}

.brand-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(116, 195, 154, 0.18);
  color: #9EE2BF;
  border: 1px solid rgba(116, 195, 154, 0.34);
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
}

.brand-subtitle {
  margin: 0.08rem 0 0 0;
  font-size: 0.73rem;
  color: rgba(245, 242, 235, 0.72);
}

.mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.07);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border: none;
  padding: 0.46rem 0.8rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.mode-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.mode-btn.active {
  background: #FFFDF9;
  color: var(--bg-forest);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.store-dot { background: #E38B6D; }
.customer-dot { background: #5EC2E8; }
.employee-dot { background: #F7C568; }
.ops-dot { background: #38B27B; }

.mode-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.08rem 0.4rem;
  border-radius: 99px;
  background: rgba(18, 41, 30, 0.12);
}

.mode-btn:not(.active) .mode-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #FFF;
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-Badge-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #38B27B;
  color: #10241A;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-pill-meta strong {
  font-size: 0.78rem;
  color: #FFF;
}

.user-pill-meta span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #9EE2BF;
  letter-spacing: 0.04em;
}

.text-emerald { color: #6CE0A7 !important; }
.text-amber { color: #F7C568 !important; }
.text-sky { color: #7CCDF7 !important; }
.text-terracotta { color: #F59D82 !important; }

/* ===================================================================== */
/* CINEMATIC ANIMATED VIDEO HERO TOP SECTION                             */
/* ===================================================================== */
.video-hero-section {
  position: relative;
  min-height: 610px;
  background: #0B1B13;
  color: var(--text-on-dark);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.video-stage-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  pointer-events: none;
}

.video-gradient-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(9, 23, 16, 0.88) 0%,
    rgba(13, 32, 23, 0.72) 52%,
    rgba(13, 32, 23, 0.52) 100%
  );
}

.video-hero-overlay {
  position: relative;
  z-index: 2;
  padding-top: 2.75rem;
  padding-bottom: 1.75rem;
}

.video-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .video-hero-grid {
    grid-template-columns: 1fr;
  }
}

.video-live-pill-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.video-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  background: rgba(200, 109, 81, 0.24);
  color: #FFB69E;
  border: 1px solid rgba(200, 109, 81, 0.5);
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF6E4A;
  box-shadow: 0 0 0 0 rgba(255, 110, 74, 0.7);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 110, 74, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(255, 110, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 110, 74, 0); }
}

.hero-Scene-label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #9EE2BF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
}

.video-hero-copy h1 {
  color: #FFFDF9;
  font-size: clamp(2.05rem, 3.3vw, 2.95rem);
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  color: rgba(245, 242, 235, 0.9);
  font-size: 1.03rem;
  max-width: 62ch;
  margin-bottom: 1.45rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.45rem;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFDF9;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  background: rgba(11, 27, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
}

.video-ctrl-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0.34rem 0.68rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}

.video-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.video-scene-pills {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.scene-pill {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0.32rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scene-pill:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.scene-pill.active {
  background: #38B27B;
  color: #0D2117;
  border-color: #38B27B;
}

.hero-portal-strip {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.video-telemetry-bar {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .video-telemetry-bar {
    grid-template-columns: 1fr 1fr;
  }
}

.telemetry-item {
  background: rgba(12, 29, 21, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  backdrop-filter: blur(6px);
}

.telemetry-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(245, 242, 235, 0.65);
  margin-bottom: 0.18rem;
}

.telemetry-item strong {
  font-size: 0.84rem;
  color: #FFF;
}

/* ===================================================================== */
/* PORTAL IDENTITY BANNERS (CUSTOMER, EMPLOYEE, OWNER)                   */
/* ===================================================================== */
.portal-identity-banner {
  padding: 1.65rem 0;
  color: #FFFDF9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.customer-banner {
  background: linear-gradient(120deg, #133326 0%, #1B4A3E 100%);
}

.employee-banner {
  background: linear-gradient(120deg, #1E3224 0%, #2E4829 100%);
}

.owner-banner {
  background: linear-gradient(120deg, #12241B 0%, #243B2E 100%);
}

.portal-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.portal-identity-banner h1 {
  color: #FFFDF9;
  margin-bottom: 0.25rem;
}

.portal-switcher-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  min-width: 310px;
}

.portal-switcher-box label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9EE2BF;
  margin-bottom: 0.3rem;
}

/* ===================================================================== */
/* SUB-NAVIGATION & SECTIONS                                             */
/* ===================================================================== */
.ops-subnav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 60px;
  z-index: 80;
}

.ops-subnav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
}

.ops-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ops-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(31, 110, 74, 0.04);
}

.ops-tab-btn.active {
  color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
  background: rgba(31, 110, 74, 0.06);
}

.workspace-view {
  display: none;
}

.workspace-view.active {
  display: block;
}

.ops-section,
.cust-section,
.emp-section {
  display: none;
  padding: 1.5rem 0 3.5rem 0;
}

.ops-section.active,
.cust-section.active,
.emp-section.active {
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 74ch;
  margin: 0.25rem 0 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ===================================================================== */
/* BUTTONS & INPUTS                                                      */
/* ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.56rem 1.05rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-forest);
  color: #FFFDF9;
  border-color: var(--bg-forest);
}

.btn-primary:hover {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.btn-terracotta {
  background: var(--accent-terracotta);
  color: #FFF;
  border-color: var(--accent-terracotta);
}

.btn-terracotta:hover {
  background: #A94D31;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
}

.btn-outline {
  background: transparent;
  color: var(--accent-emerald);
  border-color: rgba(31, 110, 74, 0.35);
}

.btn-outline:hover {
  background: var(--accent-emerald-light);
}

.btn-sm {
  padding: 0.36rem 0.72rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 0.78rem 1.35rem;
  font-size: 0.94rem;
}

.btn-block {
  width: 100%;
}

.input-field {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.75rem;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-actions .input-field,
.catalog-filters .input-field {
  width: auto;
}

.input-field:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(31, 110, 74, 0.14);
}

/* ===================================================================== */
/* CARDS, KPI GRID & ALLOCATION BAR                                      */
/* ===================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.card-header-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.25rem 0;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 0.79rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.allocation-card {
  margin-bottom: 1.25rem;
}

.allocation-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.allocation-bar-track {
  height: 22px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  gap: 2px;
  padding: 2px;
}

.allocation-segment {
  height: 100%;
  transition: width 0.35s ease;
}

.seg-available { background: #26855A; }
.seg-event { background: #D9822B; }
.seg-office { background: #2B6CB0; }
.seg-rehab { background: #C85A3B; }

.dashboard-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.queue-item {
  border: 1px solid var(--border-subtle);
  background: #FAF8F3;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.queue-item h4 {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.queue-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

/* ===================================================================== */
/* STATUS & CONDITION BADGES                                             */
/* ===================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.badge-amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.badge-terracotta {
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
}

.badge-sky {
  background: var(--accent-sky-light);
  color: var(--accent-sky);
}

.badge-danger {
  background: var(--accent-danger-light);
  color: var(--accent-danger);
}

.badge-neutral {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

/* ===================================================================== */
/* TABLES, EVENT CARDS, OFFICES & REHAB                                  */
/* ===================================================================== */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  background: #F2EFE7;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: #FAF8F2;
}

.num-col {
  text-align: right !important;
  font-family: var(--font-mono);
}

.plant-cell-flex {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.plant-thumb-svg {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-forest-soft);
  border: 1px solid rgba(31, 110, 74, 0.18);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.plant-thumb-svg svg {
  width: 38px;
  height: 38px;
}

.sku-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.events-ops-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.event-ops-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.event-ops-top {
  padding: 1.2rem 1.4rem;
  background: #FAF8F3;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.event-title-cluster h3 {
  font-size: 1.18rem;
  margin-bottom: 0.25rem;
}

.event-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.event-subdetails {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.event-care-strip {
  padding: 0.85rem 1.4rem;
  background: var(--bg-forest-soft);
  border-bottom: 1px solid rgba(31, 110, 74, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.event-care-strip.no-care {
  background: #F4F1EA;
  border-bottom-color: var(--border-subtle);
}

.event-condition-table-wrap {
  padding: 1.1rem 1.4rem;
  overflow-x: auto;
}

.cond-box {
  background: #FAF8F3;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
}

.event-ops-footer {
  padding: 0.95rem 1.4rem;
  background: #F6F3EB;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.financial-pills {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.offices-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(510px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .offices-ops-grid {
    grid-template-columns: 1fr;
  }
}

.office-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.zone-alloc-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  max-height: 230px;
  overflow-y: auto;
}

.zone-alloc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: #FAF8F3;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.82rem;
}

.tasks-board-grid,
.rehab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.15rem;
}

.task-card,
.rehab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checklist-items li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.checklist-items li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
}

/* ===================================================================== */
/* STOREFRONT CATALOG, DESIGNER PACKAGES & QUOTE BUILDER                 */
/* ===================================================================== */
.hero-packages-card {
  background: rgba(255, 253, 249, 0.97);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
}

.packages-header h3 {
  margin-bottom: 0.2rem;
}

.packages-header p {
  font-size: 0.81rem;
  color: var(--text-secondary);
}

.preset-packages-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.preset-pkg-item {
  background: #F6F3EB;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.preset-pkg-item h4 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.preset-pkg-item p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.pkg-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.store-main-layout {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 1.75rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

@media (max-width: 1120px) {
  .store-main-layout {
    grid-template-columns: 1fr;
  }
}

.catalog-filters {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.store-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.15rem;
}

.catalog-plant-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.catalog-plant-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.catalog-art-banner {
  height: 155px;
  background: linear-gradient(180deg, #E7F0EA 0%, #F5F2EB 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
}

.catalog-art-banner svg {
  width: 115px;
  height: 115px;
}

.catalog-stock-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.catalog-height-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(18, 41, 30, 0.82);
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

.catalog-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.botanical-latin {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
}

.catalog-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  font-size: 0.76rem;
  background: #FAF8F3;
  padding: 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.catalog-card-footer {
  padding: 0.85rem 1.1rem;
  background: #F6F3EB;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rate-stack strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-primary);
}

.rate-stack span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
}

.stepper-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.stepper-btn:hover {
  background: var(--bg-forest);
  color: #FFF;
}

.stepper-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.store-quote-sidebar {
  position: sticky;
  top: 78px;
}

.quote-builder-card {
  background: var(--bg-surface);
  border: 2px solid var(--bg-forest);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
}

.quote-selected-items {
  max-height: 210px;
  overflow-y: auto;
  margin: 0.75rem 0 1rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #FAF8F3;
  padding: 0.6rem;
}

.quote-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.3rem;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.82rem;
}

.quote-item-row:last-child {
  border-bottom: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-bottom: 0.75rem;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.care-toggle-box {
  background: var(--bg-forest-soft);
  border: 1px solid rgba(31, 110, 74, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.83rem;
}

.checkbox-label input {
  margin-top: 0.22rem;
}

.checkbox-label small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.care-suboptions {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(31, 110, 74, 0.16);
}

.quote-pricing-summary {
  background: #F4F1E8;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.price-row.total {
  font-size: 0.98rem;
  font-weight: 700;
  border-top: 1px solid var(--border-strong);
  padding-top: 0.45rem;
  margin-top: 0.4rem;
}

.store-office-section {
  background: #EAE5D9;
  border-top: 1px solid var(--border-strong);
  padding: 3.25rem 0 4rem 0;
}

.office-configurator-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .office-configurator-grid {
    grid-template-columns: 1fr;
  }
}

.office-tiers-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.office-tier-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.office-tier-card.active {
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-md);
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  margin-bottom: 0.45rem;
}

.tier-badge.secondary {
  background: var(--accent-sky-light);
  color: var(--accent-sky);
}

.check-list {
  margin: 0.65rem 0 0 0;
  padding-left: 1.15rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.check-list li {
  margin-bottom: 0.3rem;
}

.office-estimate-banner {
  background: var(--bg-forest);
  color: #FFFDF9;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===================================================================== */
/* LOGIN ROLE DEMO CARDS & MODAL DIALOGS                                 */
/* ===================================================================== */
.demo-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .demo-roles-grid {
    grid-template-columns: 1fr;
  }
}

.demo-role-card {
  background: #FAF8F3;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
}

.demo-role-card h4 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 28, 21, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 1.1rem 1.4rem;
  background: var(--bg-forest);
  color: #FFFDF9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  color: #FFFDF9;
  margin: 0;
  font-size: 1.2rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #FFFDF9;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 1.4rem;
  overflow-y: auto;
}

.toast-container {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: var(--bg-forest);
  color: #FFFDF9;
  border-left: 4px solid #52D196;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  font-weight: 500;
  max-width: 440px;
}

@media print {
  .top-header, .ops-subnav, .btn, .toast-container, .portal-identity-banner {
    display: none !important;
  }
  .modal-backdrop {
    position: static;
    background: none;
    padding: 0;
  }
  .modal-panel {
    max-width: 100%;
    max-height: none;
    box-shadow: none;
    border: none;
  }
}
