:root {
  --bronze: #7415E8;
  --bronze-deep: #421078;
  --bronze-soft: #9b6cf0;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --cream: #faf8f5;
  --card: #ffffff;
  --border: #e8e0f2;
  --header: #141210;
  --green: #2f9e6b;
  --green-bg: #e8f6ef;
  --blue: #3b7dd8;
  --blue-bg: #e8f0fb;
  --orange: #9b6cf0;
  --orange-bg: #f1e9ff;
  --purple: #7b6bc7;
  --purple-bg: #efebf9;
  --shadow: 0 4px 16px rgba(26, 22, 16, 0.06);
  --radius: 14px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Manrope", system-ui, sans-serif;
  --font-script: "Manrope", system-ui, sans-serif;
  --page-hero-min-height: 148px;
  --topbar-h: 72px;
  /* Shared Avent brand gradient — use for all filled / outline buttons */
  --avent-1: #7415E8;
  --avent-2: #9333EA;
  --avent-3: #C026D3;
  --avent-ink: #421078;
  --avent-gradient: linear-gradient(100deg, var(--avent-1) 0%, var(--avent-2) 50%, var(--avent-3) 100%);
  --avent-shadow: 0 5px 20px rgba(164, 35, 210, 0.25);
  --avent-outline-fill: #ffffff;
  --avent-outline-hover: #f8f1ff;
  --form-focus: #421078;
  --form-focus-ring: rgba(66, 16, 120, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html {
  scroll-padding-top: var(--topbar-h, 72px);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--topbar-h, 72px);
}

/* ========== HEADER ========== */
.topbar {
  background: #fff;
  color: var(--ink);
  padding: 8px 20px;
  min-height: var(--topbar-h, 72px);
  height: var(--topbar-h, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 190;
  overflow: visible;
  border-bottom: 1px solid var(--border);
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-sizing: border-box;
}
.topbar.is-scrolled {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: 0 8px 20px rgba(26, 22, 16, 0.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.is-scrolled {
    background: #fff;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar.is-scrolled {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h, 72px);
  z-index: 200;
  pointer-events: none;
  padding: 0 260px;
  box-sizing: border-box;
}
.main-nav > * {
  pointer-events: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  border-radius: 14px;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.nav-link svg { display: none; }
.nav-link:hover { color: #1a1a1a; background: rgba(20, 18, 16, 0.06); }
.nav-link.active,
.nav-link.active-pill {
  background: linear-gradient(110deg, #35066F 0%, #5B16B5 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 8px 12px;
  min-height: 36px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(75, 20, 140, 0.15);
}
.nav-link.active:hover,
.nav-link.active-pill:hover {
  background: linear-gradient(110deg, #450A8C, #6B20C7);
  color: #FFFFFF;
  box-shadow: 0 5px 16px rgba(75, 20, 140, 0.25);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 18, 16, 0.05);
  color: #1a1a1a;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn:hover { background: rgba(20, 18, 16, 0.1); color: #1a1a1a; }
.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e04545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--header);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.04);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #7415E8, #421078);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.profile-meta { line-height: 1.15; }
.profile-meta strong { display: block; font-size: 12.5px; font-weight: 600; }
.profile-meta span { font-size: 11px; color: var(--muted); }
.profile svg { color: #6b6b6b; transition: transform 0.15s; }
.profile-menu { position: relative; }
.profile-menu.open .profile svg { transform: rotate(180deg); }
.profile {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.profile-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: #1c1916;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 80;
}
.profile-panel[hidden] { display: none; }
.profile-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.profile-logout:hover { background: rgba(255,255,255,0.08); }
.logout-modal { max-width: 420px; }
.logout-modal .modal-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.logout-modal .modal-foot form { margin: 0; }

/* ========== HERO ========== */
.hero {
  position: relative;
  margin: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  min-height: var(--page-hero-min-height);
  height: auto;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 28px 36px;
  box-sizing: border-box;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0c0a08;
  background-image:
    linear-gradient(90deg, rgba(12,10,8,0.58) 0%, rgba(12,10,8,0.28) 50%, rgba(12,10,8,0.52) 100%),
    url("login-bg.jpg");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-greet h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: #fff;
}
.hero-greet h1 .name { color: #fff; }
.hero-greet p {
  font-size: 13.5px;
  color: #fff;
}

.hero-quote {
  text-align: center;
}
.hero-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: #fff;
  line-height: 1.35;
}
.hero-quote .rule {
  width: 56px;
  height: 2px;
  background: #fff;
  margin: 12px auto 0;
  border-radius: 2px;
}

.hero-date {
  text-align: right;
}
.hero-date .date {
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
}
.hero-date .tagline {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 550;
  line-height: 1.2;
  color: #fff;
}

.month-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 4px;
}
.month-picker button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  border-radius: 8px;
}
.month-picker button:hover { background: rgba(255,255,255,0.12); }
.month-picker input[type="month"] {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  padding: 4px 6px;
  min-width: 148px;
  color-scheme: dark;
}
.month-picker input[type="month"]:focus { outline: none; }

/* ========== PAGE BODY ========== */
.page-body {
  flex: 1;
  padding: 7px !important;
  max-width: none;
  width: 100%;
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
}
.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.metric-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(116, 21, 232, 0.12);
  color: var(--bronze-deep);
  display: grid;
  place-items: center;
}
.metric-icon svg { width: 18px; height: 18px; }
.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
}
.metric-trend {
  font-size: 12px;
  color: var(--green);
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric-trend span { color: var(--muted-soft); font-weight: 400; }
.metric-trend.down { color: #d14b4b; }

/* ========== GRID ========== */
.dash-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 0.95fr;
  gap: 16px;
  margin-bottom: 16px;
}
.dash-grid .dash-not-fit {
  grid-column: 1 / -1;
}
.dash-not-fit .dash-not-fit-copy,
#dashNotFitCopyAll {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.card-head h3 {
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
}
.card-head .link {
  font-size: 12.5px;
  color: var(--bronze-deep);
  font-weight: 550;
}
.card-head .link:hover { text-decoration: underline; }

.select-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 7px 28px 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: inherit;
}

.legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.legend .l1 { background: #421078; }
.legend .l2 { background: #e8e0f2; }

.chart-wrap { height: 220px; position: relative; }
.chart-wrap.donut { height: 210px; }

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.sources-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.sources-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.sources-list strong { font-weight: 650; color: var(--ink); }

/* Events list */
.event-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.event-item:last-child { border-bottom: none; padding-bottom: 0; }
.event-date {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(116, 21, 232, 0.12);
  color: var(--bronze-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  flex-shrink: 0;
}
.event-date strong { font-size: 16px; font-weight: 700; }
.event-date span { font-size: 9px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.event-info { flex: 1; min-width: 0; }
.event-info strong { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.event-info span {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.new { background: var(--blue-bg); color: var(--blue); }
.pill.contacted { background: var(--orange-bg); color: var(--orange); }
.pill.proposal { background: var(--purple-bg); color: var(--purple); }
.user-form-modal {
  max-width: 480px;
  width: calc(100% - 28px);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}
.user-form-modal .modal-head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid #efeae3;
}
.user-form-modal .modal-body {
  padding: 16px 18px;
}
.user-form-modal .modal-foot {
  padding: 12px 18px 18px;
  border-top: 1px solid #efeae3;
}
.user-form-modal .admin-simple-form input[type="text"],
.user-form-modal .admin-simple-form input[type="email"],
.user-form-modal .admin-simple-form input[type="password"],
.user-form-modal .admin-simple-form input:not([type]),
.user-form-modal .admin-simple-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.user-form-modal .admin-simple-form input:focus,
.user-form-modal .admin-simple-form select:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.pill.closed, .pill.confirmed { background: var(--green-bg); color: var(--green); }
.pill.planning { background: var(--blue-bg); color: var(--blue); }

/* Table */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 12px 12px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.data-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--muted-soft); font-weight: 500; }
.data-table .customer { font-weight: 600; color: var(--ink); }

.card-head.dash-actions-head {
  align-items: flex-start;
}
.card-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 450;
  max-width: 38em;
}

/* Pending actions */
.actions-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.action-copy a {
  color: inherit;
  text-decoration: none;
}
.action-copy a:hover strong { color: var(--bronze-deep); }
.action-item {
  display: grid;
  grid-template-columns: 18px 28px 1fr auto 28px;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
}
.action-item:last-child { border-bottom: none; }
.action-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--form-focus);
}
.action-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(116, 21, 232, 0.12);
  color: var(--bronze-deep);
  display: grid;
  place-items: center;
}
.action-ico svg { width: 14px; height: 14px; }
.action-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.action-copy span { font-size: 11.5px; color: var(--muted); }
.action-due {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.action-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--bronze-deep);
  display: grid;
  place-items: center;
}
.action-btn:hover { background: rgba(116, 21, 232, 0.12); }

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e04545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

/* CTA */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
  padding: 28px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0c0a08;
  background-image:
    linear-gradient(180deg, rgba(12,10,8,0.12) 0%, rgba(12,10,8,0.55) 100%),
    url("cta-arch.jpg");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, contain;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 550;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 220px;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--avent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  width: fit-content;
  box-shadow: var(--avent-shadow);
}
.btn-gold:hover { filter: none; }

/* Inner pages */
.page-hero-sm {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 28px 32px;
  min-height: var(--page-hero-min-height);
  height: auto;
  border-radius: 0 0 16px 16px;
  color: #fff;
  box-sizing: border-box;
}
.page-hero-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0c0a08;
  background-image:
    linear-gradient(90deg, rgba(12,10,8,0.58) 0%, rgba(12,10,8,0.28) 50%, rgba(12,10,8,0.52) 100%),
    url("login-bg.jpg");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  z-index: 0;
}
.page-hero-sm > * { position: relative; z-index: 1; }
.page-hero-sm h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 550;
  color: #fff;
}
.page-hero-sm p {
  color: #fff;
  font-size: 13.5px;
  margin-top: 4px;
}
.page-hero-sm .search-field {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
}
.page-hero-sm .search-field input {
  color: #fff;
  background: transparent;
}
.page-hero-sm .search-field input::placeholder { color: rgba(255,255,255,0.45); }
.page-hero-sm .btn-outline {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.page-hero-sm .btn-outline:hover {
  background: rgba(255,255,255,0.14);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  min-width: 220px;
  box-shadow: var(--shadow);
}
.search-field input {
  border: none;
  outline: none;
  font: inherit;
  font-size: 13px;
  width: 100%;
  background: transparent;
}
.btn-outline {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  font-size: 13px;
  font-weight: 600;
  color: var(--avent-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
}
.btn-outline:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}
.btn-primary {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--avent-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--avent-shadow);
}

.empty-note {
  color: var(--muted);
  font-size: 13.5px;
  padding: 8px 0 4px;
}
.linkish {
  border: none;
  background: none;
  padding: 0;
  color: var(--bronze-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Footer */
.app-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  padding: 5px 28px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-top: 1px solid var(--border);
  color: #1a1a1a;
  font-size: 12px;
  line-height: 1.2;
  background: #fff;
}
.app-footer::before {
  content: none;
  display: none;
}
.app-footer > * { position: relative; z-index: 1; }
.app-footer .footer-copy {
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  min-width: 0;
  color: #1a1a1a;
}
.app-footer .footer-credit {
  text-align: right;
  color: #1a1a1a;
  font-size: 14px;
  white-space: nowrap;
  text-shadow: none;
  margin-left: auto;
}
.app-footer .footer-credit a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.app-footer .footer-credit a:hover {
  color: #1a1a1a;
}
.app-footer .footer-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.app-footer .links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  color: #1a1a1a;
}
.app-footer .links a {
  color: #1a1a1a;
  text-decoration: none;
}
.app-footer .links a:hover { color: #1a1a1a; text-decoration: underline; }
.app-footer .sep { opacity: 0.7; color: #1a1a1a; }
.app-footer .script {
  font-family: var(--font-script);
  font-size: 18px;
  line-height: 1;
  color: #1a1a1a;
  flex-shrink: 0;
  text-shadow: none;
}

/* ========== LIST PAGES (Vendors, etc.) ========== */
.list-hero {
  position: relative;
  margin: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  min-height: var(--page-hero-min-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px 32px;
  color: #fff;
  box-sizing: border-box;
}
.list-hero.enq-hero {
  margin: 0;
  border-radius: 0 0 16px 16px;
}
/* Keep hero CTAs content-sized (do not stretch into the old quote column) */
.list-hero > .btn-primary,
.list-hero > .btn-gold,
.list-hero > .btn-save,
.list-hero > .avent-wrapper,
.list-hero > .list-hero-actions {
  justify-self: end;
  align-self: center;
  width: auto;
  max-width: max-content;
  flex: 0 0 auto;
}
.list-hero > .avent-wrapper {
  display: inline-flex;
}
.list-hero > .avent-wrapper.avent-wrapper--block {
  width: auto;
  max-width: max-content;
}
.list-hero > .avent-wrapper > .btn-primary,
.list-hero > .avent-wrapper > .btn-gold,
.list-hero > .avent-wrapper > .btn-save,
.list-hero > .avent-wrapper > .avent-btn {
  width: auto;
  flex: 0 0 auto;
}
.list-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0c0a08;
  background-image:
    linear-gradient(90deg, rgba(12,10,8,0.58) 0%, rgba(12,10,8,0.28) 50%, rgba(12,10,8,0.52) 100%),
    url("login-bg.jpg");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  z-index: 0;
}
.list-hero > * { position: relative; z-index: 1; }
.timeline-ornament {
  display: block;
  height: 52px;
  margin: 18px 0 10px;
  background: url("timeline-ornament.jpg") center / contain no-repeat;
  border-radius: 10px;
}
.list-hero h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 6px;
  color: #fff;
}
.list-hero p {
  font-size: 13.5px;
  color: #fff;
  max-width: 420px;
}
.list-hero-quote { display: none !important; }
.list-hero .form-title-ico {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.stat-card::after,
.metric-card::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  max-width: 42%;
  max-height: 88%;
  background: none;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.stat-card > *,
.metric-card > * {
  position: relative;
  z-index: 1;
}
.stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.stat-ico svg { width: 20px; height: 20px; }
.stat-ico.bronze { background: rgba(116, 21, 232,0.15); color: var(--bronze-deep); }
.stat-ico.green { background: var(--green-bg); color: var(--green); }
.stat-ico.orange { background: var(--orange-bg); color: var(--orange); }
.stat-ico.red { background: #fdecec; color: #d14b4b; }
.stat-card .label { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.stat-card .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.stat-card .trend { font-size: 12px; font-weight: 550; margin-top: 4px; }
.stat-card .trend.up { color: var(--green); }
.stat-card .trend.down { color: #d14b4b; }

.filter-bar {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.filter-bar--flat {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 4px 0 12px;
  border-radius: 0;
}
.filter-bar > .filter-search,
.filter-bar > .filter-select,
.filter-bar > .btn-outline,
.filter-bar > .btn-reset,
.filter-bar > .filter-date-btn,
.filter-bar > .filter-field {
  align-self: flex-end;
  flex-shrink: 0;
}
.filter-bar > .btn-outline,
.filter-bar > .btn-reset {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-bar > .filter-select,
.filter-bar > .filter-date-btn {
  height: 40px;
}
.filter-field .filter-select {
  height: 40px;
  min-width: 160px;
}
.filter-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}
.filter-search input {
  border: none;
  outline: none;
  width: 100%;
  font: inherit;
  font-size: 13px;
  background: transparent;
}
.filter-select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 32px 0 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  min-width: 140px;
}
.filter-field-wide .filter-select { min-width: 210px; }
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-field label { font-size: 11px; color: var(--muted); font-weight: 550; }
.btn-reset {
  border: none;
  background: none;
  color: var(--avent-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
  margin-left: auto;
}
.btn-reset:hover { text-decoration: underline; }

.table-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
}
.vendor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.vendor-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  background: #faf8f5;
  white-space: nowrap;
}
.vendor-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--ink-soft);
}
.vendor-table tr:last-child td { border-bottom: none; }
.vendor-table tr:hover td { background: #faf8f5; }
.vendor-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--form-focus);
}

.vendor-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.vendor-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.vendor-cell strong { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.vendor-cell span { font-size: 11.5px; color: var(--muted); }

.cat {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cat.decoration { background: #e8f0fb; color: #3b7dd8; }
.cat.catering { background: #f1e9ff; color: #9b6cf0; }
.cat.event { background: #efebf9; color: #7b6bc7; }
.cat.photo { background: #fce8f0; color: #c45a8a; }
.cat.florist { background: #fce8f0; color: #c45a8a; }
.cat.av { background: #e8f4fb; color: #3a8fc4; }
.cat.sound { background: #e8eef8; color: #3b7dd8; }
.cat.light { background: #f1e9ff; color: #7415E8; }
.cat.transport { background: #e8f6ef; color: #2f9e6b; }
.cat.flowers { background: #fce8f0; color: #c45a8a; }
.cat-more,
.count-tip {
  position: relative;
  display: inline-flex;
  margin-left: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #faf8f5;
  vertical-align: middle;
  cursor: help;
}
.count-tip-list {
  display: none;
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  max-width: 280px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #1a120c;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}
.count-tip-list span { display: block; }
.count-tip:hover .count-tip-list,
.count-tip:focus .count-tip-list,
.count-tip:focus-within .count-tip-list { display: block; }
.table-card:has(.count-tip:hover) .table-wrap,
.table-card:has(.count-tip:focus-within) .table-wrap { overflow: visible; }
.vendor-sub-name {
  font-size: 12.5px;
  color: var(--ink);
}
.vendor-subcat {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.loc svg { color: var(--muted-soft); flex-shrink: 0; }

.pill.inactive { background: #fdecec; color: #d14b4b; }
.pill.pending { background: var(--orange-bg); color: var(--orange); }
.pill.active { background: var(--green-bg); color: var(--green); }

.row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.row-actions a, .row-actions button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.row-actions a:hover, .row-actions button:hover { background: #f1e9ff; color: var(--ink); }
.row-actions .del:hover { background: #fdecec; color: #d14b4b; }

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.pager {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pager a, .pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-weight: 550;
}
.pager a:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}
.pager .current {
  background: var(--avent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--avent-shadow);
}
.pager .ellipsis {
  border: none;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.table-foot .filter-select {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}

/* ========== ADD VENDOR FORM ========== */
.form-page {
  background: #efeae4;
  flex: 1;
  padding: 20px 28px 32px;
  width: 100%;
}
.form-sheet {
  max-width: none;
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(26, 22, 16, 0.12);
  overflow: hidden;
}
.form-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
}
.form-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.form-title-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(116, 21, 232,0.15);
  color: var(--bronze-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.form-title h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 4px;
}
.form-title p { font-size: 13px; color: var(--muted); max-width: 420px; }
.quote-box {
  background: #faf8f5;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--bronze-deep);
  line-height: 1.35;
}
.quote-box svg { flex-shrink: 0; color: var(--bronze); }
.close-x {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
}
.close-x svg { display: block; pointer-events: none; }
.close-x:hover { background: #f1e9ff; color: var(--ink); }
.close-x:focus-visible {
  outline: 2px solid var(--form-focus);
  outline-offset: 2px;
}
.modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="1"] .enq-chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="2"] .enq-chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] .enq-chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="4"] .enq-chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="5"] .enq-chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="1"] .chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="2"] .chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] .chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="4"] .chip,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="5"] .chip {
  pointer-events: none;
  cursor: default;
  opacity: 0.92;
}
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="1"] input:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="2"] input:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] input:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="4"] input:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="5"] input:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="1"] textarea:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="2"] textarea:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] textarea:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="4"] textarea:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="5"] textarea:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="1"] select:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="2"] select:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] select:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="4"] select:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="5"] select:disabled {
  opacity: 1;
  color: var(--ink);
  background: #faf8f5;
  cursor: default;
}
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="1"] .add-row,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] .add-row,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] .event-plan-remove,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="1"] button:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="2"] button:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="3"] button:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="4"] button:disabled,
.prop-enq-modal.prop-is-viewing .enq-panel[data-panel="5"] button:disabled {
  opacity: 0.55;
  cursor: default;
}

.form-body { padding: 22px 28px; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.form-section-head .si {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(66, 16, 120, 0.1);
  color: var(--form-focus);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.form-section-head h3 { font-size: 15px; font-weight: 650; }
.form-section-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.form-section-head .grow { margin-left: auto; }

.fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.fields-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
}
.field label .req { color: #d14b4b; }
.field-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.field .enq-checkline input[type="checkbox"],
.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  flex: none;
  accent-color: var(--form-focus);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.field.is-invalid .ms-control,
.field.is-invalid .phone-row input {
  border-color: #d14b4b;
  box-shadow: 0 0 0 3px rgba(209, 75, 75, 0.12);
}
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #d14b4b;
  line-height: 1.35;
}
.input-ico {
  position: relative;
}
.input-ico > svg, .input-ico > .lead {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-soft);
  pointer-events: none;
}
.input-ico input { padding-left: 36px; }
.phone-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}
.upload-box {
  border: 1.5px dashed #d8d0c6;
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background: #faf8f5;
  text-align: center;
  padding: 16px;
  cursor: pointer;
}
.upload-box strong { font-size: 13px; color: var(--ink-soft); }
.upload-box span { font-size: 11.5px; }
.upload-box svg { color: var(--bronze); margin-bottom: 4px; }

.status-select {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.btn-outline-bronze {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-bronze:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
}

.map-box {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #e8eef3;
  position: relative;
  min-height: 220px;
}
.map-search {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 48px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.map-search input {
  border: none;
  outline: none;
  width: 100%;
  font: inherit;
  font-size: 12px;
}
.map-place-suggest {
  position: absolute;
  top: 52px;
  left: 10px;
  right: 48px;
  z-index: 4;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 168px;
  overflow: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.map-place-suggest[hidden] { display: none; }
.map-place-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.map-place-suggest button:last-child { border-bottom: 0; }
.map-place-suggest button strong { display: block; font-weight: 650; }
.map-place-suggest button span { color: var(--muted); font-size: 11px; }
.map-place-suggest button:hover,
.map-place-suggest button.on { background: #faf8f5; }
.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.map-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.map-canvas {
  width: 100%;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(180,200,180,0.3), rgba(160,180,200,0.25)),
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.25) 24px, rgba(255,255,255,0.25) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,0.2) 24px, rgba(255,255,255,0.2) 25px),
    #c5d4c8;
  position: relative;
}
.map-pin {
  position: absolute;
  left: 52%;
  top: 48%;
  transform: translate(-50%, -100%);
  color: #e04545;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.map-foot a { color: var(--bronze-deep); font-weight: 600; }

.form-tabs {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  background: #faf8f5;
  border-bottom: 1px solid var(--border);
}
.form-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.form-tab svg { flex-shrink: 0; }
.form-tab:hover { color: var(--ink-soft); }
.form-tab.active {
  color: var(--bronze-deep);
  border-bottom-color: var(--bronze);
}
.form-tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #efe8dc;
  color: var(--bronze-deep);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.form-tab.active .form-tab-badge {
  background: rgba(116, 21, 232, 0.22);
}
.form-tab-panel { display: none; }
.form-tab-panel.active { display: block; }
.form-foot-actions [hidden] { display: none !important; }
.vendor-modal-backdrop {
  padding: 16px 20px;
  align-items: center;
  z-index: 180;
}
.modal.vendor-form-modal {
  max-width: min(1240px, calc(100vw - 40px));
  width: 100%;
  max-height: calc(100vh - 32px);
  height: calc(100vh - 32px);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}
.vendor-form-modal .form-sheet {
  box-shadow: none;
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: none;
}
.vendor-form-modal .form-sheet-head,
.vendor-form-modal .form-tabs,
.vendor-form-modal .stepper,
.vendor-form-modal .form-foot {
  flex-shrink: 0;
}
.vendor-form-modal .stepper {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
}
.vendor-form-modal .form-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  margin-bottom: 0;
  background: #faf8f5;
}
.vendor-form-modal .form-grid-2 { margin-bottom: 0; }
.vendor-form-modal .form-tab-panel { display: block; }
.vendor-form-modal #tabProducts {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.vendor-extra-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--form-focus);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}
.vendor-extra-btn:hover { background: #faf8f5; }
.vendor-extra-btn:focus-visible {
  outline: 2px solid var(--form-focus);
  outline-offset: 2px;
}
.vendor-extra-btn.is-filled::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bronze);
}
#vendorExtraModal { z-index: 260; }
#vendorExtraModal .vendor-extra-modal { max-width: 680px; }
#productModal { z-index: 240; }
@media (max-width: 860px) {
  .vendor-modal-backdrop { padding: 0; }
  .vendor-form-modal {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .vendor-form-modal .quote-box { display: none; }
}
@media (max-width: 720px) {
  .form-tabs { padding: 0 16px; overflow-x: auto; }
  .form-tab { white-space: nowrap; }
}

.products-section { margin-top: 0; }
.products-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.products-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.products-catalog-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.mini-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  background: #faf8f5;
  white-space: nowrap;
}
.mini-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--ink-soft);
}
.mini-table tr.product-row-flash td {
  background: #efe6ff;
  transition: background 1.4s ease;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--border);
  background: #faf8f5;
  flex-wrap: wrap;
}
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-inline input { accent-color: var(--form-focus); width: 15px; height: 15px; }
.form-foot-actions { display: flex; gap: 10px; }
.btn-cancel {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.btn-cancel:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
}
.btn-save {
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  background: var(--avent-gradient);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--avent-shadow);
}
.btn-save:hover { filter: none; }

/* Responsive */
@media (max-width: 1200px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid .span-2 { grid-column: 1 / -1; }
  .hero {
    grid-template-columns: 1.2fr 1fr;
    text-align: left;
    gap: 12px;
    padding: 22px 24px;
  }
  .hero-quote { display: none; }
  .hero-date { text-align: left; }
  .main-nav { justify-content: flex-start; }
  .list-hero { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar { padding: 0 14px; height: 64px; min-height: 64px; flex-wrap: nowrap; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .page-body { padding: 7px !important; }
  .hero { margin: 0; border-radius: 0 0 16px 16px; padding: 22px; }
  .profile-meta { display: none; }
  .list-hero { margin: 0; border-radius: 0 0 16px 16px; padding: 22px; }
  .list-hero.enq-hero { margin: 0; border-radius: 0 0 16px 16px; }
  .fields-2, .fields-3 { grid-template-columns: 1fr; }
  .form-page { padding: 12px 14px; }
  .form-body, .form-sheet-head, .form-foot { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* Modal + toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow: hidden;
}
#productModal .modal.product-modal {
  max-width: min(1100px, calc(100vw - 48px)) !important;
  width: min(1100px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}
#productModal .product-modal form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
#productModal .product-modal .modal-body {
  overflow-y: auto;
  min-height: 0;
}
#productModal .product-fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px 18px;
}
#productModal .product-field-name,
#productModal .product-field-sub,
#productModal .product-field-desc {
  grid-column: 1 / -1;
}
#productModal .product-extra-block .fields-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px 18px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}
.modal-body { padding: 18px 20px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
}
#productModal .modal-foot .check-inline {
  margin-right: auto;
}
  border-top: 1px solid var(--border);
  background: #faf8f5;
}
.modal-foot .btn-save {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.pkg-view-modal { max-width: 640px; }
.pkg-view-hero {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px;
}
.pkg-view-hero .thumb,
.pkg-view-hero img {
  width: 88px; height: 64px; border-radius: 10px; object-fit: cover;
  display: grid; place-items: center; font-size: 28px; flex-shrink: 0;
}
.pkg-view-hero h4 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin: 0 0 4px;
}
.pkg-view-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); margin-top: 6px;
}
.pkg-view-section { margin-top: 14px; }
.pkg-view-section h5 {
  font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink);
}
.pkg-view-section ul { margin: 0; padding-left: 18px; }
.pkg-view-section li { font-size: 13px; color: var(--ink-soft); margin: 4px 0; }
.pkg-view-price { font-size: 20px; font-weight: 700; color: var(--bronze-deep); }
.cus-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.cus-view-item label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
  font-weight: 600;
}
.cus-view-item strong,
.cus-view-item span {
  font-size: 13.5px;
  color: var(--ink);
}
@media (max-width: 560px) {
  .cus-view-grid { grid-template-columns: 1fr; }
}
.app-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: auto;
  background: #7415E8;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: 0 10px 30px rgba(116, 21, 232, 0.35);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 10050;
  max-width: 320px;
}
.app-toast.show { opacity: 1; transform: translateY(0); }
.app-toast.ok { background: #7415E8; }
.app-toast.err { background: #7415E8; }
.upload-box.has-file {
  border-style: solid;
  border-color: var(--bronze);
  background: #faf8f5;
}
.upload-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px !important;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe6ff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 550;
  margin: 2px 4px 2px 0;
}
.tag-chip button {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  min-height: 42px;
}
.tags-wrap input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 120px;
  padding: 4px !important;
}
/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.step .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efefef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.step.active {
  background: rgba(116, 21, 232, 0.12);
  color: var(--bronze-deep);
  border-color: rgba(116, 21, 232, 0.25);
}
.step.active .num { background: var(--bronze); color: #fff; }
.step.done { color: var(--green); }
.step.done .num { background: var(--green-bg); color: var(--green); }
.step-panel { display: none; }
.step-panel.active { display: block; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feature-tags .tag-chip { background: #eef4fb; color: #3b7dd8; }
.btn-add-tag {
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}

.product-picker { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; }
.picker-col {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #faf8f5;
}
.picker-col h4 { font-size: 13px; font-weight: 650; margin-bottom: 10px; color: var(--ink); }
.product-meta {
  margin-top: 10px; background: #faf8f5; border-radius: 10px; padding: 10px 12px;
  font-size: 12px; color: var(--ink-soft); line-height: 1.5;
}
.vendor-multi {
  display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: #fff;
}
.vendor-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: #eef4fb; color: #3b7dd8; font-size: 12px; font-weight: 600;
}
.vendor-chip button { border: none; background: none; cursor: pointer; color: #6b7280; font-size: 14px; line-height: 1; }
.vendor-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  margin-top: 8px;
}
.vendor-check-list label,
.vendor-check-list .vendor-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  margin: 0;
}
.vendor-check-list input[type="checkbox"],
.field .vendor-check-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: var(--form-focus);
}
.thumb-cell { display: flex; align-items: center; gap: 10px; }
.thumb {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0; background: #efe6ff;
}
.vendor-avatars { display: flex; align-items: center; }
.vendor-avatars span {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff; border: 2px solid #fff; margin-left: -6px;
}
.vendor-avatars span:first-child { margin-left: 0; }
.vendor-avatars .more { background: #e8e4df !important; color: var(--muted) !important; font-size: 10px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.image-tile { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; position: relative; }
.image-tile img { width: 100%; height: 110px; object-fit: cover; }
.image-tile .cap { padding: 8px; font-size: 11.5px; color: var(--muted); }
.image-tile .rm {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: none;
  border-radius: 6px; background: rgba(0,0,0,0.55); color: #fff; cursor: pointer;
}
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.list-hero.decor-hero::before,
.list-hero.pkg-hero::before,
.list-hero.bkg-hero::before,
.list-hero.prop-hero::before,
.list-hero.enq-hero::before,
.list-hero.cus-hero::before,
.list-hero.prc-hero::before,
.list-hero.jira-hero::before,
.list-hero.dsm-hero::before {
  background-color: #0c0a08;
  background-image:
    linear-gradient(90deg, rgba(12,10,8,0.58) 0%, rgba(12,10,8,0.28) 50%, rgba(12,10,8,0.52) 100%),
    url("login-bg.jpg");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
}
@media (max-width: 1100px) {
  .product-picker { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr 1fr; }
}

/* Packages */
.pkg-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}
.decor-pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.decor-pick-item,
.decor-pick-row {
  display: grid;
  grid-template-columns: 18px 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.decor-pick-item.selected,
.decor-pick-row:has(input:checked) { border-color: rgba(116, 21, 232,0.55); background: #faf8f5; }
.decor-pick-item .thumb-img,
.decor-pick-row img {
  width: 56px; height: 40px; border-radius: 8px; object-fit: cover;
  display: grid; place-items: center; font-size: 18px; background: #efe6ff;
}
.decor-pick-item strong,
.decor-pick-row strong { display: block; font-size: 13px; }
.decor-pick-item span,
.decor-pick-row span { font-size: 11.5px; color: var(--muted); }
.decor-pick-row .view-chip {
  height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(116, 21, 232,0.4);
  background: #faf8f5; color: var(--bronze-deep); font-size: 12px; font-weight: 600;
  display: inline-grid; place-items: center;
}
.particular-row .part-name,
.particular-row .part-price,
.particular-row .part-desc {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font: inherit; background: #fff;
}
.particular-row .part-desc { margin-top: 8px; min-height: 64px; resize: vertical; }
.particular-row .part-num { padding-top: 10px; font-weight: 650; color: var(--muted); }
.particular-row .part-del {
  width: 32px; height: 32px; border: none; background: transparent; color: #c45a5a; cursor: pointer;
  display: grid; place-items: center; margin-top: 4px;
}
.btn-view-sm {
  height: 30px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink); font-size: 12px; font-weight: 600; cursor: pointer;
}
.particular-row {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff;
}
.particular-top {
  display: grid; grid-template-columns: 24px 28px 1fr 120px 32px; gap: 8px; align-items: start;
}
.drag-handle { color: var(--muted-soft); cursor: grab; padding-top: 10px; user-select: none; }
.char-count { font-size: 11px; color: var(--muted-soft); text-align: right; margin-top: 4px; }
.btn-add-block {
  width: 100%; height: 42px; border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink); font-weight: 650; font-size: 13.5px; cursor: pointer;
}
.review-box {
  background: #faf8f5; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px;
}
.review-box h4 { font-size: 14px; margin-bottom: 8px; }
.review-box li { font-size: 13px; color: var(--ink-soft); margin: 4px 0 4px 16px; }
.empty-state {
  padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--border); border-radius: 12px; background: #faf8f5;
}
@media (max-width: 1100px) {
  .pkg-layout { grid-template-columns: 1fr; }
}

/* ========== CREATE PROPOSAL ========== */
.prop-page {
  max-width: none;
  width: 100%;
  margin: 0;
}
.prop-sheet {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.prop-sheet .form-sheet-head {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.prop-sheet .form-body {
  padding: 0;
}
.vendor-form-modal .prop-sheet {
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: none;
}
.vendor-form-modal .prop-sheet .form-sheet-head,
.vendor-form-modal .prop-stepper,
.vendor-form-modal .prop-sheet .form-foot {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.vendor-form-modal .prop-sheet .form-sheet-head {
  border: none;
  border-bottom: 1px solid var(--border);
}
.vendor-form-modal .prop-stepper {
  border: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.vendor-form-modal .prop-sheet .form-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 16px 20px 20px;
  background: #faf8f5;
}
.vendor-form-modal .prop-sheet .form-foot {
  border: none;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.prop-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.prop-step {
  flex: 1;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0 4px;
  color: var(--muted);
}
.prop-step::before {
  content: "";
  position: absolute;
  top: 15px;
  right: calc(50% + 18px);
  left: calc(-50% + 18px);
  height: 2px;
  background: #e8e4df;
  z-index: 0;
}
.prop-step:first-child::before { display: none; }
.prop-step.done::before { background: var(--green); }
.prop-step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efefef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}
.prop-step .label {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  max-width: 110px;
}
.prop-step.active { color: var(--bronze-deep); }
.prop-step.active .num {
  background: var(--bronze);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(116, 21, 232,0.18);
}
.prop-step.active .label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prop-step.done { color: var(--green); }
.prop-step.done .num {
  background: var(--green);
  color: #fff;
  font-size: 0;
}
.prop-step.done .num::after {
  content: "✓";
  font-size: 13px;
  font-weight: 700;
}

.prop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.prop-layout.qtn-wide {
  grid-template-columns: 1fr;
}
.prop-layout.qtn-wide .prop-side { display: none; }
.prop-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.prop-side {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enquiry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.enquiry-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.enquiry-card h3 svg { color: var(--bronze-deep); }
.enq-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f0ece6;
}
.enq-row:last-child { border-bottom: none; }
.enq-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}
.enq-ico.purple { background: #efeaf8; color: #7b6bc7; }
.enq-ico.orange { background: #f1e9ff; color: #9b6cf0; }
.enq-ico.pink { background: #fceef3; color: #c45a8a; }
.enq-ico.teal { background: #e8f6f4; color: #2a9d8f; }
.enq-ico.blue { background: #eef4fb; color: #3b7dd8; }
.enq-ico.green { background: #eaf6ee; color: #2f9e5b; }
.enq-ico.brown { background: #faf8f5; color: var(--bronze-deep); }
.enq-ico.red { background: #fdeeee; color: #c45a5a; }
.enq-meta { min-width: 0; }
.enq-meta .k {
  font-size: 11px;
  color: var(--muted);
  font-weight: 550;
}
.enq-meta .v {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 1px;
  word-break: break-word;
}
.enq-meta .v small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 1px;
}
.enq-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.enq-actions .btn-cancel {
  height: 36px;
  padding: 0 8px;
  font-size: 11.5px;
  justify-content: center;
  text-align: center;
}
.quote-soft {
  background: #fceef3;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: #9a4068;
  line-height: 1.4;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.quote-soft svg { flex-shrink: 0; margin-top: 2px; color: #c45a8a; }

.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.step-head-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.step-head-left .si {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(66, 16, 120, 0.1);
  color: var(--form-focus);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step-head h2 { font-size: 18px; font-weight: 700; }
.step-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.step-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-prefill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}
.btn-edit-enq {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sub-block { margin-bottom: 18px; }
.sub-block > h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.fields-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 14px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 12px;
}
.check-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f5;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 550;
}
.check-tile:has(input:checked) {
  border-color: rgba(116, 21, 232,0.55);
  background: #faf8f5;
  color: var(--bronze-deep);
}
.check-tile input { accent-color: var(--form-focus); width: 14px; height: 14px; }

.inline-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}
.inline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 720px;
}
.inline-table th {
  text-align: left;
  padding: 10px 8px;
  background: #faf8f5;
  color: var(--muted);
  font-weight: 650;
  font-size: 11.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.inline-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.inline-table tr:last-child td { border-bottom: none; }
.inline-table input,
.inline-table select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  font: inherit;
  font-size: 12.5px;
  background: #fff;
  outline: none;
}
.inline-table input:focus,
.inline-table select:focus {
  border-color: var(--form-focus);
  box-shadow: 0 0 0 2px var(--form-focus-ring);
}
.row-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.row-actions button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.row-actions button:hover { background: #f1e9ff; color: var(--ink); }
.row-actions .del:hover { background: #fdeeee; color: #c45a5a; }
.btn-add-row {
  margin-top: 10px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.info-banner {
  margin-top: 14px;
  background: #eef6fb;
  border: 1px solid #d5e6f4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #3a6ea5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.tip-box {
  background: #faf8f5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--bronze-deep);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}
.tip-box svg { flex-shrink: 0; margin-top: 1px; }
.ceremony-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ceremony-tags label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.ceremony-tags label:has(input:checked) {
  background: #faf8f5;
  border-color: rgba(116, 21, 232,0.5);
  color: var(--bronze-deep);
}
.ceremony-tags input { display: none; }

.budget-range {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf8f5;
}
.budget-range .bar {
  height: 8px;
  border-radius: 999px;
  background: #e8e0f2;
  position: relative;
  margin: 10px 0 8px;
  overflow: hidden;
}
.budget-range .bar > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #7415E8, #7415E8);
  border-radius: 999px;
}
.budget-range .scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.pricing-summary {
  margin-top: 14px;
  margin-left: auto;
  max-width: 320px;
  background: #faf8f5;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.pricing-summary .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 0;
}
.pricing-summary .total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}
.ai-layout.preview-open {
  grid-template-columns: 1fr;
}
.ai-layout.preview-open > div:last-child { display: none; }
.ai-summary-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #faf8f5;
}
.ai-summary-card h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 12px;
}
.ai-sum-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #efeae4;
  font-size: 12.5px;
}
.ai-sum-row:last-child { border-bottom: none; }
.ai-sum-row .k { color: var(--muted); min-width: 100px; font-weight: 550; }
.ai-sum-row .v { color: var(--ink); font-weight: 600; flex: 1; }
.ai-actions-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn-ai {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--avent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--avent-shadow);
}
.btn-ai-outline {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
}
.ai-status {
  background: #eaf6ee;
  color: var(--green);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 12px;
  display: none;
}
.ai-status.show { display: block; }
.ai-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ai-score {
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border);
}
.ai-score .n { font-size: 22px; font-weight: 750; line-height: 1.1; }
.ai-score .l { font-size: 11.5px; margin-top: 4px; font-weight: 600; }
.ai-score.missing { background: #fdeeee; color: #c45a5a; border-color: #f5d0d0; }
.ai-score.suggest { background: #f1e9ff; color: #7415E8; border-color: #e8e0f2; }
.ai-score.good { background: #eaf6ee; color: var(--green); border-color: #c8e6d2; }
.ai-score.complete { background: #eef4fb; color: #3b7dd8; border-color: #cfdff3; }
.ai-list {
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.ai-list h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-list.missing { background: #fff8f8; border-color: #f5d0d0; }
.ai-list.suggest { background: #faf8f5; border-color: #e8e0f2; }
.ai-list.good { background: #f6fbf7; border-color: #c8e6d2; }
.ai-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 12.5px;
}
.ai-item:last-child { border-bottom: none; }
.ai-item button {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid currentColor;
  background: #fff;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.prop-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.prop-tab {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.prop-tab.active {
  color: var(--bronze-deep);
  border-bottom-color: var(--bronze);
}

@media (max-width: 1100px) {
  .prop-layout { grid-template-columns: 1fr; }
  .prop-side { position: static; }
  .fields-4, .check-grid { grid-template-columns: 1fr 1fr; }
  .ai-layout { grid-template-columns: 1fr; }
  .ai-score-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .fields-4, .check-grid { grid-template-columns: 1fr; }
  .prop-step .label { font-size: 10.5px; }
}

/* ========== BOOKINGS LIST ========== */
.stats-row-5 {
  grid-template-columns: repeat(5, 1fr);
}
.stats-row-4 {
  grid-template-columns: repeat(4, 1fr);
}
.stat-ico.blue { background: var(--blue-bg); color: var(--blue); }
.stat-ico.purple { background: #efe6ff; color: #5B16B5; }


.filter-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  min-width: 210px;
  background-image: none !important;
  padding-right: 12px !important;
  text-align: left;
  color: var(--ink-soft);
}
.filter-date-btn svg { color: var(--muted-soft); flex-shrink: 0; }

.bkg-table .bkg-id {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.bkg-table td { white-space: nowrap; }
.bkg-table td:nth-child(6) { white-space: normal; min-width: 160px; }

.table-card:has(.prop-list-table) {
  background: #fff;
  border: 1px solid #efe6f5;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(92, 64, 32, 0.06);
  padding: 12px 12px 0;
}
.prop-list-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.prop-list-table thead th {
  background: linear-gradient(90deg, #F1E9FF 0%, #F8F1FF 100%) !important;
  color: #421078 !important;
  font-size: 12.5px;
  font-weight: 650;
  border-bottom: none;
  padding: 13px 12px;
}
.prop-list-table thead th:first-child { border-radius: 12px 0 0 12px; }
.prop-list-table thead th:last-child { border-radius: 0 12px 12px 0; }
.prop-list-table th,
.prop-list-table td {
  padding: 10px 8px;
  vertical-align: middle;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.prop-list-table tbody tr:hover td {
  background: #faf7ff;
}
.prop-list-table .col-num {
  width: 36px;
  color: var(--muted);
  text-align: center;
}
.prop-list-table th.col-num { text-align: center; }
.prop-list-table .col-id { width: 12%; }
.prop-list-table .col-client { width: 14%; }
.prop-list-table .col-event,
.prop-list-table .col-wedding {
  width: 18%;
  white-space: normal;
  line-height: 1.35;
}
.prop-list-table .col-decor { width: 14%; max-width: 180px; }
.prop-list-table .col-decor-budget,
.prop-list-table .col-overall { width: 15%; }
.prop-list-table .col-value {
  width: 12%;
  font-variant-numeric: tabular-nums;
}
.prop-list-table .col-actions {
  width: 108px;
  vertical-align: middle;
}
.prop-list-table td.col-actions,
.prop-list-table td.bkg-actions-cell {
  vertical-align: middle;
}
.prop-list-table .cell-main {
  display: block;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.prop-list-table .cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prop-list-table .enq-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 0;
  grid-template-columns: none;
}
.prop-list-table .act-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  box-shadow: none;
}
.prop-list-table .act-ico:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}
.prop-list-table .act-ico svg {
  width: 14px;
  height: 14px;
}
.prop-list-table .btn-create-prop {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none !important;
  border-radius: 999px !important;
  background: var(--avent-gradient) !important;
  color: #fff !important;
  box-shadow: var(--avent-shadow) !important;
}
.prop-list-table .btn-create-prop svg {
  flex: none;
  color: #fff;
}
.prop-list-table .btn-create-prop:hover {
  filter: none;
  box-shadow: var(--avent-shadow) !important;
}
.table-card:has(.prop-list-table) .table-wrap {
  overflow-x: hidden;
}
.table-card:has(.prop-list-table) .table-foot {
  border-top: none;
  padding: 14px 6px 16px;
}
.table-card:has(.prop-list-table) .table-foot .filter-select {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}
/* Proposals stats — Avent tone */
.page-body:has(.prop-list-table) .stat-ico.green {
  background: #eaf6ee;
  color: #1f8a4c;
}
.page-body:has(.prop-list-table) .stat-ico.purple {
  background: #efe6ff;
  color: #5B16B5;
}
.page-body:has(.prop-list-table) .stat-card .trend.up {
  color: var(--avent-ink);
}

.pill.paid { background: var(--green-bg); color: var(--green); }
.pill.refunded { background: #fdecec; color: #d14b4b; }
.pill.cancelled { background: #fdecec; color: #d14b4b; }
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.bkg-actions-cell { position: relative; overflow: visible; }
.bkg-menu-wrap { position: relative; display: inline-flex; z-index: 1; flex-shrink: 0; }
.bkg-menu-wrap.is-open { z-index: 80; }
.icon-more {
  width: 32px;
  height: 32px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-more:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}
.bkg-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  min-width: 200px;
  max-width: min(240px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(26, 22, 16, 0.18);
  padding: 6px;
  z-index: 4000;
  white-space: normal;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  box-sizing: border-box;
}
.bkg-menu.open {
  display: flex;
}
.bkg-menu button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 7px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}
.bkg-menu button:hover { background: #faf8f5; color: var(--ink); }
.bkg-menu button.danger { color: #d14b4b; }
.bkg-menu button.danger:hover { background: #fdeeee; }

@media (max-width: 1200px) {
  .stats-row-5 { grid-template-columns: repeat(3, 1fr); }
  .stats-row-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .stats-row-5 { grid-template-columns: 1fr 1fr; }
  .stats-row-4 { grid-template-columns: 1fr; }
}

.table-card:has(.bkg-menu.open) { overflow: visible; }
.table-card:has(.bkg-menu.open) .table-wrap { overflow: visible; }
.bkg-table { position: relative; }

/* ========== PROPOSALS LIST ========== */
.bkg-menu a {
  display: block;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
}
.bkg-menu a:hover { background: #faf8f5; color: var(--ink); }

/* ========== ENQUIRIES LIST ========== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.enq-hero-actions,
.list-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.enq-filter-btn,
.list-filter-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.enq-filter-btn:hover,
.enq-filter-btn.is-active,
.list-filter-btn:hover,
.list-filter-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.enq-filter-btn:focus-visible,
.list-filter-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}
.enq-filter-btn svg,
.list-filter-btn svg {
  display: block;
}

.enq-board-top {
  display: none !important;
}
.page-body.enq-page-body,
.page-body.list-page-body {
  position: relative;
  z-index: 1;
}
.page-body.enq-page-body {
  padding: 7px !important;
}
.enq-filter-modal,
.list-filter-modal {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin-top: -108px;
  z-index: 45;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.28s ease;
}
.enq-filter-modal.is-open,
.list-filter-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.enq-filter-modal[hidden]:not(.is-closing),
.list-filter-modal[hidden]:not(.is-closing) {
  display: none !important;
}
.enq-filter-modal.is-closing,
.list-filter-modal.is-closing {
  display: flex !important;
}
.enq-filter-scrim,
.list-filter-scrim {
  position: absolute;
  inset: -8px;
  margin: 0;
  z-index: 0;
  background: linear-gradient(110deg, #6900e847 0%, #a900e83d 55%, #8742146e 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(105, 0, 232, 0.22);
  transition: all 0.3s ease;
  backdrop-filter: blur(1.5px);
}
.enq-filter-panel-inner,
.list-filter-panel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(53, 6, 111, 0.16);
  padding: 16px 18px 18px;
}
.enq-filter-panel-head,
.list-filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.enq-filter-panel-title,
.list-filter-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2b2140;
}
.enq-filter-panel-ico,
.list-filter-panel-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(110deg, #35066F 0%, #5B16B5 100%);
  color: #fff;
}
.enq-filter-close,
.list-filter-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b6280;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.enq-filter-close:hover,
.list-filter-close:hover {
  background: rgba(53, 6, 111, 0.08);
  color: #35066F;
}
.enq-filter-bar,
.list-filter-bar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: end;
  gap: 10px !important;
}
.enq-filter-bar .filter-search,
.list-filter-bar .filter-search {
  flex: 1.4 1 0;
  min-width: 0;
  background: #f7f5fa;
  border: none;
  border-radius: 12px;
  height: 40px;
}
.enq-filter-bar .filter-field,
.list-filter-bar .filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}
.enq-filter-bar .filter-field-label,
.list-filter-bar .filter-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7190;
}
.enq-filter-bar .filter-select,
.list-filter-bar .filter-select {
  width: 100%;
  min-width: 0;
  height: 40px;
  background: #f7f5fa;
  border: none;
  border-radius: 12px;
}
.enq-filter-actions,
.list-filter-actions {
  display: flex;
  align-items: end;
  flex: 0 0 auto;
  margin: 0;
}
.enq-filter-actions .btn-primary,
.enq-filter-actions .avent-wrapper,
.list-filter-actions .btn-primary,
.list-filter-actions .avent-wrapper {
  max-width: max-content;
  height: 40px;
}
.list-filter-bar .btn-reset {
  display: none !important;
}

.enq-stats-bar {
  margin: 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #efe6f5;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(92, 64, 32, 0.05);
}
.enq-stats-bar .enq-fold-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.enq-stats-bar .enq-fold-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 10px;
  border-right: 1px solid #efe6f5;
  font-size: 14px;
  font-weight: 600;
  color: #5c5470;
  white-space: nowrap;
}
.enq-stats-bar .enq-fold-stat:last-child { border-right: 0; }
.enq-stats-bar .enq-fold-stat b {
  font-size: 20px;
  font-weight: 700;
  color: #1c1712;
  letter-spacing: -0.02em;
}
.enq-fold-stat-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
}
.enq-fold-stat-ico--total { background: #efe6ff; color: #5B16B5; }
.enq-fold-stat-ico--new { background: #e7f6ec; color: #1f8a4c; }
.enq-fold-stat-ico--progress { background: #f1e9ff; color: #7415E8; }
.enq-fold-stat-ico--converted { background: #fce8f0; color: #c45a8a; }

@media (max-width: 1100px) {
  .enq-filter-bar,
  .list-filter-bar {
    flex-wrap: wrap !important;
  }
  .enq-filter-bar .filter-search,
  .list-filter-bar .filter-search {
    flex: 1 1 100%;
  }
  .enq-filter-bar .filter-field,
  .list-filter-bar .filter-field {
    flex: 1 1 calc(50% - 10px);
  }
  .enq-filter-actions,
  .list-filter-actions {
    margin-left: auto;
  }
}
@media (max-width: 720px) {
  .enq-filter-bar .filter-field,
  .list-filter-bar .filter-field {
    flex: 1 1 100%;
  }
  .enq-stats-bar .enq-fold-counts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .enq-stats-bar .enq-fold-stat {
    justify-content: flex-start;
    border-right: 0;
    padding: 6px 0;
  }
}

.enq-fold { display: none !important; margin-bottom: 14px; }
.enq-col-check,
#selectAll,
.row-check,
.enq-avatar {
  display: none !important;
}
.enq-fold-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
}
.enq-fold .stats-row,
.enq-fold .stat-card {
  overflow: visible;
}
.enq-fold .stat-card {
  position: relative;
  padding-right: 44px;
}
.enq-fold .stat-card-copy {
  min-width: 0;
}
.enq-fold .stat-card-eye {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(28, 23, 18, 0.06);
  color: #6b5d4d;
  cursor: pointer;
  z-index: 2;
}
.enq-fold .stat-card-eye:hover,
.enq-fold .stat-card-eye[aria-expanded="true"] {
  background: rgba(28, 23, 18, 0.12);
  color: var(--ink);
}
.enq-fold .stat-card-tip {
  position: absolute;
  top: calc(100% + 6px);
  left: 12px;
  right: 12px;
  z-index: 40;
  padding: 10px 12px;
  background: #1c1712;
  color: #f7f1e8;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(28, 23, 18, 0.28);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
}
.enq-fold .stat-card-tip[hidden] { display: none !important; }
.enq-fold-counts {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.enq-fold-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
.enq-fold-stat b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.enq-fold-chev {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin: 0;
  display: grid;
  place-items: center;
  color: #5c5c5c;
}
.enq-fold-chev svg {
  display: block;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}
.enq-fold.is-open .enq-fold-chev svg {
  transform: rotate(180deg);
}
.enq-fold-panel { padding-top: 12px; }
.enq-fold .stats-row { margin-bottom: 12px; }
.enq-fold .filter-bar {
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 0;
  gap: 8px;
}
.enq-fold .filter-bar > .filter-search {
  flex: 1.3 1 140px;
  min-width: 120px;
}
.enq-fold .filter-bar > .filter-select,
.enq-fold .filter-bar > .filter-date-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.enq-fold .filter-bar > .filter-date-btn {
  flex: 1.2 1 168px;
  min-width: 168px;
}
.enq-fold .filter-bar > .btn-reset {
  flex: 0 0 auto;
}

.table-card:has(.enq-table) {
  background: #fff;
  border: 1px solid #efe6f5;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(92, 64, 32, 0.06);
  padding: 12px 12px 0;
}
.enq-table {
  table-layout: auto;
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}
.enq-table .enq-col-check { width: 44px; }
.enq-table .enq-col-no { width: 28px; }
.enq-table .enq-th-no,
.enq-table td.enq-no {
  width: 28px;
  max-width: 36px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #8a7d6d);
  white-space: nowrap;
}
.enq-table thead th.enq-th-no {
  font-size: 11px;
  letter-spacing: 0;
}
.enq-table .enq-col-created { width: 118px; }
.enq-table .enq-col-customer { width: 210px; }
.enq-table .enq-col-resp { width: 150px; }
.enq-table .enq-col-event { width: 140px; }
.enq-table .enq-col-band { width: 148px; }
.enq-band {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  white-space: normal;
  max-width: 100%;
}
.enq-band-name {
  font-weight: 700;
  color: var(--ink);
}
.enq-band-range {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.enq-table .enq-col-budget { width: 120px; }
.enq-table .enq-col-activity { width: 176px; }
.enq-table .enq-col-next { width: 210px; }
.enq-table .enq-col-actions { width: 132px; }
.enq-table thead th {
  background: linear-gradient(90deg, #F1E9FF 0%, #F8F1FF 100%);
  color: #421078;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0;
  padding: 13px 12px;
  border-bottom: none;
  vertical-align: middle;
  white-space: nowrap;
}
.enq-table thead th:first-child { border-radius: 12px 0 0 12px; }
.enq-table thead th:last-child { border-radius: 0 12px 12px 0; }
.enq-th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.enq-th svg { display: none !important; }
/* Hide decorative icons in all table headers */
table thead th svg,
.app-shell table thead th svg,
.vendor-table thead th svg,
.enq-table thead th svg,
.data-table thead th svg {
  display: none !important;
}
.enq-table thead input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #421078;
  border-radius: 4px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.enq-table thead input[type="checkbox"]:checked {
  background: #421078;
  box-shadow: inset 0 0 0 3px #F1E9FF;
}
.enq-table tbody input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--form-focus);
}
.enq-resp {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.enq-resp-line {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.enq-resp-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.enq-resp-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.enq-resp-sub {
  font-size: 11.5px;
  color: var(--muted);
}
.enq-resp-missing {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f3d6d4;
}
.enq-resp-missing::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d92d20;
  box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.5);
  animation: enq-resp-splash 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes enq-resp-splash {
  0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(217, 45, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 45, 32, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .enq-resp-missing::before { animation: none; }
}
.enq-table th,
.enq-table td {
  font-size: 13px;
  vertical-align: middle;
  padding: 16px 12px;
  white-space: nowrap;
}
.enq-table tbody td {
  border-bottom: 1px solid #f4efe8;
  background: #fff;
}
.enq-table tbody tr:hover td { background: #fbf8f4; }
.enq-table tbody tr:last-child td { border-bottom: none; }
.enq-created {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.enq-created strong {
  color: #1c1712;
  font-size: 13.5px;
  font-weight: 750;
}
.enq-created span {
  color: #8d847b;
  font-size: 11.5px;
  font-weight: 500;
}
.enq-cust {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.enq-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4e7d4;
  color: #421078;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 750;
  flex-shrink: 0;
}
.enq-phone {
  display: block;
  margin-top: 2px;
  color: #8d847b;
  font-size: 12px;
  line-height: 1.3;
}
.enq-budget-val {
  font-weight: 700;
  color: #1c1712;
}
.enq-table td:nth-child(8),
.enq-table td:nth-child(9),
.enq-table .enq-next-cell {
  overflow: hidden;
  vertical-align: middle;
}
.enq-table .pill,
.enq-table .pill.new,
.enq-table .pill.contacted,
.enq-table .pill.proposal,
.enq-table .pill.closed,
.enq-table .pill.confirmed,
.enq-table .pill.planning {
  display: block;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
  line-height: 29px;
  width: 160px;
  max-width: 100%;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid #16a34a;
  color: rgb(66, 16, 120) !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.enq-table .pill svg { flex-shrink: 0; }
.enq-table .pill .dot { display: none; }
.enq-table .cust-cell strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.enq-table .cust-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.enq-table .cust-top strong {
  margin: 0;
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enq-table .wa-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
}
.enq-table .wa-cell svg { color: #25d366; flex-shrink: 0; }
.src-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #efe6ff;
  color: var(--bronze-deep);
}
.src-ico svg { width: 12px; height: 12px; display: block; }
.src-ico.src-fb { background: #e8f0fe; color: #1877f2; }
.src-ico.src-ig { background: #fce8f3; color: #c13584; }
.src-ico.src-wa { background: #e8f8ef; color: #25d366; }
.src-ico.src-yt { background: #fdecea; color: #ff0000; }
.src-ico.src-go,
.src-ico.src-web { background: #eef3ff; color: #4285f4; }
.src-ico.src-ff,
.src-ico.src-guest,
.src-ico.src-ref { background: #efe6ff; color: var(--bronze-deep); }
.enq-table .ev-pill {
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
}
.enq-table .ev-pill svg { flex-shrink: 0; }
.enq-table .event-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.enq-table .enq-days {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.enq-table .enq-days.is-ok { color: #1f7a4d; }
.enq-table .enq-days.is-soon { color: #b45309; }
.enq-table .enq-days.is-past { color: #b42318; }
.enq-table .enq-event-when {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
  background: none;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
}
.table-card:has(.enq-table) .table-wrap {
  overflow-x: auto;
}
.enq-table td:nth-child(7) {
  white-space: normal;
  line-height: 1.25;
  overflow: hidden;
}
.enq-table .enq-next-cell {
  min-width: 198px;
  max-width: 210px;
  width: 210px;
}
.enq-table .enq-next-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 198px;
  min-width: 0;
}
.enq-table .btn-pipeline-do {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  max-width: none;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  gap: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #dc2626;
  color: #dc2626;
}
.enq-table .btn-pipeline-do:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}
.enq-table .btn-ops-card {
  width: 100%;
  max-width: 198px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  flex-direction: row;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border-color: #dc2626;
  color: #dc2626;
}
.enq-table .btn-ops-card:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
  box-shadow: none;
}
.enq-table .btn-ops-card-top {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.enq-table .btn-ops-card-label,
.enq-table .btn-ops-card-count,
.enq-table .btn-ops-card-top svg.gear,
.enq-table .btn-ops-card-top svg.chev {
  color: #dc2626;
}
.enq-table .btn-ops-card-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.enq-table .btn-ops-card-bar {
  display: none;
}
.enq-table .btn-ops-card-bar i {
  background: #dc2626;
}
.enq-table .btn-pipeline-do svg { flex-shrink: 0; }
.enq-table .btn-pipeline-do span {
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enq-table .btn-pipeline-do .enq-next-chev { margin-left: 2px; }
.enq-table .src-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.enq-table .btn-pipeline-skip {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  align-self: center;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #dc2626;
  color: #dc2626;
}
.enq-table .btn-pipeline-skip:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}
.enq-table .enq-next-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}
.enq-table .bkg-actions-cell {
  white-space: normal;
  overflow: visible;
  vertical-align: middle;
}
.enq-table .enq-actions {
  /* Two lines: view/edit/more, then send/history/note */
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-auto-rows: 30px;
  gap: 6px;
  width: max-content;
  margin: 0;
  align-items: center;
  justify-items: center;
}
.enq-table .enq-actions .bkg-menu-wrap {
  width: 30px;
  height: 30px;
  display: inline-flex;
  flex: 0 0 30px;
}
.enq-table .enq-actions .bkg-menu {
  white-space: normal;
}
.enq-table .act-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  box-shadow: none;
}
.enq-table .act-ico:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}
.enq-table .act-ico svg {
  width: 14px;
  height: 14px;
}
.table-card:has(.enq-table) .table-foot {
  border-top: none;
  padding: 14px 6px 16px;
}
.enq-table .btn-pipeline-skip svg {
  width: 13px;
  height: 13px;
}

.enq-edit-modal {
  max-width: 720px;
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}
#enqEditModal.is-qual.modal-backdrop,
#enqEditModal.is-qual.modal-backdrop.open {
  padding: 8px;
  align-items: center;
  justify-content: center;
}
#enqEditModal.is-qual .enq-edit-modal {
  width: calc(100vw - 16px);
  max-width: none;
  height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
  margin: 0;
}
#enqEditModal.is-qual .enq-edit-body,
#enqEditModal.is-qual .enq-edit-foot {
  display: none;
}
.enq-qual-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #faf8f5 !important;
}
.enq-qual-frame[hidden] {
  display: none;
}
#enqViewModal.modal-backdrop,
#enqViewModal.modal-backdrop.open {
  padding: 8px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#enqViewModal .enq-view-modal {
  width: calc(100vw - 16px);
  max-width: none;
  height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  overflow: hidden;
}
.enq-view-modal .modal-head h3,
.enq-view-modal #enqViewTitle {
  font-family: var(--font-sans) !important;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
#enqViewModal .enq-view-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 16px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#enqViewModal .enq-view-modal .modal-foot {
  flex: 0 0 auto;
}
.enq-view-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}
.enq-view-sheet .pkg-view-hero {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 2px 12px;
  border-bottom: 1px solid var(--border);
}
.enq-view-board {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-content: start;
  gap: 12px;
}
.enq-view-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  border: 1px solid #efe8de;
  border-radius: 14px;
  background: #faf8f5;
}
.enq-view-card.customer,
.enq-view-card.program,
.enq-view-card.events { grid-column: span 2; }
.enq-view-card.vendors,
.enq-view-card.budget { grid-column: span 3; }
.enq-view-card h5 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #421078;
}
.enq-view-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-content: start;
}
.enq-view-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.enq-view-line span {
  color: #78716c;
  font-weight: 600;
}
.enq-view-line strong {
  font-weight: 650;
  color: var(--ink);
}
.enq-view-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.enq-view-plans {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.enq-view-plans li {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #efe8de;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.enq-view-plans li b { font-weight: 650; }
.enq-view-plans li em {
  font-style: normal;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .enq-view-board {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .enq-view-card.customer,
  .enq-view-card.program,
  .enq-view-card.events,
  .enq-view-card.vendors,
  .enq-view-card.budget { grid-column: auto; }
  #enqViewModal .enq-view-modal .modal-body { overflow: auto; }
}
.enq-sheet {
  display: grid;
  gap: 0;
}
.enq-sheet-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0 12px;
  border-bottom: 1px solid var(--border);
}
.enq-sheet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #7415E8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.enq-sheet-hero-copy {
  min-width: 0;
}
.enq-sheet-name {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.enq-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
.enq-sheet-section {
  padding: 12px 0 2px;
  border-bottom: 1px solid var(--border);
}
.enq-sheet-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.enq-sheet-section h5 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.enq-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.enq-sheet-row {
  min-width: 0;
}
.enq-sheet-row.is-wide {
  grid-column: 1 / -1;
}
.enq-sheet-row dt {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.enq-sheet-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}
.enq-sheet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.enq-sheet-list li {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.enq-sheet-list li:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
}
.enq-sheet-events {
  display: grid;
  gap: 10px;
}
.enq-sheet-event {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafaf9;
}
.enq-sheet-event header {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.enq-sheet-event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}
.enq-sheet-event-meta dt {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}
.enq-sheet-event-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 560px) {
  .enq-sheet-grid,
  .enq-sheet-event-meta {
    grid-template-columns: 1fr;
  }
}
.enq-add-modal {
  --enq-bronze: #7415E8;
  --enq-ink: #1c1917;
  --enq-muted: #78716c;
  --enq-line: #e7e5e4;
  --enq-soft: #f5f5f4;
  --enq-white: #ffffff;
  max-width: min(880px, calc(100vw - 40px));
  width: calc(100vw - 40px);
  max-height: min(88vh, 760px);
  height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--enq-white);
  border: 1px solid var(--enq-line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.14);
  font-family: var(--font-sans);
}
.enq-add-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: var(--enq-white);
  border-bottom: 1px solid var(--enq-line);
  padding: 14px 20px 12px;
}
.enq-add-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.enq-add-head-copy {
  min-width: 0;
}
.enq-add-kicker {
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--enq-muted);
}
.enq-add-modal .modal-head h3,
.enq-add-modal #enqAddTitle {
  margin: 0;
  color: var(--enq-ink);
  font-family: var(--font-sans) !important;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.enq-add-modal .enq-edit-sub {
  margin: 4px 0 0;
  color: var(--enq-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}
.enq-add-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}
.enq-add-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: 100%;
}
.enq-add-progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 2px 4px 0;
  border: 0;
  background: transparent;
  color: var(--enq-muted);
  cursor: pointer;
  font-family: var(--font-sans);
}
.enq-add-progress-step:not(:last-child)::after,
.enq-add-progress-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 11px;
  height: 1px;
  background: var(--enq-line);
  pointer-events: none;
}
.enq-add-progress-step:not(:last-child)::after {
  right: -1px;
  width: calc(50% - 14px);
}
.enq-add-progress-step:not(:first-child)::before {
  left: -1px;
  width: calc(50% - 14px);
}
.enq-add-progress-step.done:not(:last-child)::after,
.enq-add-progress-step.on:not(:last-child)::after,
.enq-add-progress-step.done:not(:first-child)::before,
.enq-add-progress-step.on:not(:first-child)::before {
  background: var(--enq-bronze);
}
.enq-add-progress-step .n {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--enq-white);
  border: 1px solid var(--enq-line);
  color: var(--enq-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  box-shadow: none;
}
.enq-add-progress-step .t {
  font-size: 11px;
  font-weight: 500;
  color: var(--enq-muted);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.enq-add-progress-step.on {
  color: var(--enq-ink);
}
.enq-add-progress-step.on .n {
  background: var(--enq-bronze);
  border-color: var(--enq-bronze);
  color: #fff;
  box-shadow: none;
}
.enq-add-progress-step.on .t {
  color: var(--enq-ink);
  font-weight: 650;
}
.enq-add-progress-step.done .n {
  background: #efe6ff;
  border-color: #d4b8f5;
  color: var(--enq-ink);
}
.enq-add-progress-step.done .t {
  color: #57534e;
}
.enq-add-progress-step:hover .t {
  color: var(--enq-ink);
}
@media (max-width: 640px) {
  .enq-add-progress-step .t {
    display: none;
  }
}
.enq-add-body {
  flex: 1 1 auto;
  padding: 0 !important;
  min-height: 0;
  overflow: hidden;
  background: var(--enq-white);
}
.enq-add-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.enq-edit-modal.prop-enq-modal {
  --enq-bronze: #7415E8;
  --enq-ink: #1c1917;
  --enq-muted: #6b6280;
  --enq-line: #e8e0f2;
  --enq-soft: #faf8f5;
  --enq-white: #ffffff;
  --prop-avent: var(--avent-gradient);
  --prop-avent-ink: var(--avent-ink);
  max-width: none;
  width: calc(100vw - 32px);
  max-height: min(90vh, 820px);
  height: min(90vh, 820px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--enq-white);
  border: 1px solid var(--enq-line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(53, 6, 111, 0.14);
  font-family: var(--font-sans);
}
.enq-edit-modal.prop-enq-modal.prop-enq-wide {
  max-width: none;
  width: calc(100vw - 32px);
  max-height: min(94vh, 900px);
  height: min(94vh, 900px);
}
#proposalModal.modal-backdrop {
  padding: 8px;
  align-items: center;
  justify-content: center;
}
#proposalModal.modal-backdrop.open {
  align-items: center;
}
#proposalModal .prop-enq-modal,
#proposalModal .prop-enq-modal.prop-enq-wide {
  width: calc(100vw - 16px);
  max-width: none;
  height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
}
.prop-modal-head.enq-add-head {
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: none;
  background:
    radial-gradient(90% 140% at 100% -20%, rgba(192, 38, 211, 0.18), transparent 52%),
    linear-gradient(180deg, #F8F1FF 0%, #F1E9FF 100%);
}
.prop-modal-head.enq-add-head::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  width: min(520px, 46%);
  height: 150px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 180' fill='none'%3E%3Cpath d='M-10 48c90 36 150-28 240 8s150 42 230-6 130-28 180 14' stroke='%23d4c2f0' stroke-width='1.4'/%3E%3Cpath d='M-10 86c100 30 160-26 250 10s160 34 220-8 120-18 180 16' stroke='%23e0d2f5' stroke-width='1.2'/%3E%3Cpath d='M20 122c110 24 170-20 260 12s150 26 210-10 110-12 150 18' stroke='%23ebe3f8' stroke-width='1.1'/%3E%3C/svg%3E") no-repeat right top / cover;
  opacity: 0.95;
}
.prop-modal-head .enq-add-head-top,
.prop-modal-head .prop-progress-wrap {
  position: relative;
  z-index: 1;
}
.prop-modal-head .enq-add-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--avent-ink);
}
.prop-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.prop-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 36px;
  height: 38px;
  padding: 0 14px;
  margin: 0;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.prop-icon-btn svg {
  display: block;
  flex: none;
}
.prop-icon-btn:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  border-color: transparent;
  color: var(--avent-ink);
}
.prop-icon-btn:focus-visible {
  outline: 2px solid rgba(192, 38, 211, 0.45);
  outline-offset: 2px;
}
.prop-edit-toggle {
  padding-left: 12px;
  padding-right: 12px;
}
.prop-note-btn.has-notes {
  color: var(--avent-ink);
  border-color: transparent;
  background:
    linear-gradient(#f8f1ff, #f8f1ff) padding-box,
    var(--avent-gradient) border-box;
}
.prop-edit-toggle .prop-icon-btn-label {
  display: inline;
}
.prop-edit-toggle.is-editing {
  color: #fff;
  background: var(--avent-gradient);
  border-color: transparent;
  box-shadow: var(--avent-shadow);
}
.prop-edit-toggle.is-editing:hover {
  color: #fff;
  background: var(--avent-gradient);
  border-color: transparent;
}
.prop-close-btn {
  width: 36px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #78716c;
}
.prop-close-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: transparent;
  color: #1c1917;
}
.prop-gen-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 16, 12, 0.52);
  backdrop-filter: blur(4px);
}
.prop-gen-overlay[hidden] {
  display: none !important;
}
.prop-gen-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.22);
  text-align: center;
  overflow: hidden;
}
.prop-gen-orb {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f8f1ff, #C026D3 45%, #7415E8 75%, #C026D3);
  box-shadow: 0 0 0 0 rgba(192, 38, 211, 0.45);
  animation: prop-gen-pulse 1.4s ease-out infinite;
}
@keyframes prop-gen-pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 38, 211, 0.45); transform: scale(1); }
  70% { box-shadow: 0 0 0 16px rgba(192, 38, 211, 0); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(192, 38, 211, 0); transform: scale(1); }
}
.prop-gen-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716c;
}
.prop-gen-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #1c1917;
}
.prop-gen-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: #78716c;
  line-height: 1.45;
}
.prop-gen-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.prop-gen-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #a8a29e;
  font-size: 11px;
  font-weight: 500;
}
.prop-gen-step .n {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e5e4;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}
.prop-gen-step.on {
  color: #1c1917;
}
.prop-gen-step.on .n {
  background: #7415E8;
  border-color: #7415E8;
  color: #fff;
}
.prop-gen-step.done .n {
  background: #efe6ff;
  border-color: #d4b8f5;
  color: #1c1917;
}
.prop-reply-cloud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
  border: 1px solid #d7e8f8;
  color: #3b6ea5;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.prop-reply-cloud .cloud {
  font-size: 13px;
  line-height: 1;
}
.prop-reply-cloud.is-expired {
  background: #faf8f5;
  border-color: #eadfce;
  color: #421078;
}

/* Customer needs redesign modal */
.prop-change-modal {
  max-width: 480px;
  width: calc(100% - 28px);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.18);
}
.prop-change-head {
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #efeae3;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(116, 21, 232, 0.14), transparent 55%),
    linear-gradient(180deg, #fffdf9, #faf8f5);
}
.prop-change-kicker {
  margin: 0 0 4px;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #421078;
}
.prop-change-head h3 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.15;
}
.prop-change-head .enq-edit-sub {
  margin: 6px 0 0;
  color: #78716c;
}
.prop-change-body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 8px;
}
.prop-change-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f3ee;
  font-size: 13px;
  color: #57534e;
}
.prop-change-meta strong { color: #1c1917; }
.prop-change-label {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 650;
  color: #57534e;
}
.prop-change-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prop-change-chip {
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #44403c;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.prop-change-chip:hover {
  border-color: #9b6cf0;
  background: #faf8f5;
}
.prop-change-chip.on {
  border-color: #7415E8;
  background: #7415E8;
  color: #fff;
}
.prop-change-body textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 13.5px;
  color: #1c1917;
  background: #fff;
}
.prop-change-body textarea:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.prop-change-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #78716c;
}
.prop-change-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 18px;
  border-top: none;
}
@media (max-width: 640px) {
  .prop-change-modal { max-width: none; }
  .prop-change-foot { flex-direction: column-reverse; }
  .prop-change-foot .btn-cancel,
  .prop-change-foot .btn-save { width: 100%; }
}
@media (max-width: 640px) {
  .prop-edit-toggle .prop-icon-btn-label {
    display: none;
  }
  .prop-edit-toggle {
    width: 36px;
    padding: 0;
  }
}
.prop-enq-modal .modal-head h3,
.prop-enq-modal #pageTitle {
  margin: 0;
  color: var(--avent-ink);
  font-family: var(--font-sans) !important;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.prop-enq-modal .enq-edit-sub {
  margin: 6px 0 0;
  color: #6b6280;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.prop-progress.enq-add-progress {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.prop-progress-wrap {
  margin: 2px 0 0;
  padding: 16px 10px 12px;
  border: 1px solid #e8e0f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(53, 6, 111, 0.06);
}
.prop-progress-meter {
  display: none;
}
.prop-progress .enq-add-progress-step {
  gap: 8px;
  padding: 0 2px;
}
.prop-progress .enq-add-progress-step:not(:last-child)::after,
.prop-progress .enq-add-progress-step:not(:first-child)::before {
  top: 19px;
  height: 2px;
  background: #e4d6f5;
}
.prop-progress .enq-add-progress-step:not(:last-child)::after {
  width: calc(50% - 26px);
}
.prop-progress .enq-add-progress-step:not(:first-child)::before {
  width: calc(50% - 26px);
}
.prop-progress .enq-add-progress-step.on:not(:last-child)::after {
  background: #e4d6f5;
}
.prop-progress .enq-add-progress-step.done:not(:last-child)::after,
.prop-progress .enq-add-progress-step.done:not(:first-child)::before,
.prop-progress .enq-add-progress-step.on:not(:first-child)::before {
  background: var(--avent-gradient);
}
.prop-progress .enq-add-progress-step .n {
  width: 40px;
  height: 40px;
  background: #faf8f5;
  border: 1px solid #e4d6f5;
  color: #5B16B5;
}
.prop-progress .enq-add-progress-step .n svg {
  width: 18px;
  height: 18px;
  display: block;
}
.prop-progress .enq-add-progress-step .t {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  overflow: visible;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b6280;
  white-space: nowrap;
}
.prop-progress .enq-add-progress-step .tn {
  font-size: 11px;
  font-weight: 600;
  color: #9a90b0;
  line-height: 1.1;
}
.prop-progress .enq-add-progress-step.on .n {
  background: var(--avent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(192, 38, 211, 0.18), var(--avent-shadow);
}
.prop-progress .enq-add-progress-step.on .tl {
  color: var(--avent-ink);
  font-weight: 750;
}
.prop-progress .enq-add-progress-step.on .tn {
  color: #5B16B5;
}
.prop-progress .enq-add-progress-step.done .n {
  background: #efe6ff;
  border-color: #d4c2f0;
  color: #5B16B5;
}
.prop-progress .enq-add-progress-step.done .n svg {
  display: none;
}
.prop-progress .enq-add-progress-step.done .n::after {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid #5B16B5;
  border-bottom: 2px solid #5B16B5;
  transform: rotate(-45deg);
}
.prop-progress .enq-add-progress-step.done .tl {
  color: #4a4260;
  font-weight: 650;
}
.prop-modal-body.enq-edit-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px !important;
  background: #faf8f5 !important;
  overflow: auto;
}
#proposalModal .enq-panel[data-panel="6"].on {
  flex: none;
  min-height: auto;
  gap: 8px;
}
#proposalModal .enq-panel[data-panel="6"] .prop-step-intro {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
#proposalModal .enq-panel[data-panel="6"] .enq-panel-eyebrow,
#proposalModal .enq-panel[data-panel="6"] .prop-step-lead {
  display: none;
}
#proposalModal .enq-panel[data-panel="6"] .enq-panel-title {
  font-size: 16px;
  margin: 0;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-step-tabs {
  margin-bottom: 0;
}
#proposalModal .enq-panel[data-panel="6"].on > .qtn-sheet--edit,
#proposalModal .enq-panel[data-panel="6"].on > .qtn-step-preview:not([hidden]) {
  flex: 1 1 auto;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-sheet--edit:not([hidden]) {
  display: block;
  height: auto;
  overflow: visible;
  padding: 12px 16px 4px;
}

/* Proposal share modal */
.prop-share-modal {
  max-width: 480px;
  width: min(480px, calc(100vw - 24px));
}
.prop-share-body {
  display: grid;
  gap: 14px;
}
.prop-share-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.prop-share-link-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e8e0f2;
  border-radius: 10px;
  background: #faf8f5;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}
.prop-share-channel {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prop-share-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e8e0f2;
  background: #fff;
  color: var(--avent-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.prop-share-chip.on {
  border-color: transparent;
  background: var(--avent-gradient);
  color: #fff;
}
.prop-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-sheet--edit[hidden] {
  display: none !important;
}
#proposalModal .enq-panel[data-panel="6"] > .qtn-step-preview:not([hidden]) {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-top {
  margin-bottom: 8px;
  padding-bottom: 8px;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 8px;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-child(2n) {
  border-right: 1px solid var(--qtn-line);
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-child(4n) {
  border-right: 0;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--qtn-line);
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-last-child(-n + 4) {
  border-bottom: 0;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-section-label {
  margin-bottom: 4px;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta,
#proposalModal .enq-panel[data-panel="6"] .qtn-table-wrap {
  flex: none;
  height: auto;
  min-height: 0;
  overflow: auto;
}
#proposalModal .enq-panel[data-panel="6"] .qtn-step-preview .qtn-preview--doc,
#proposalModal .enq-panel[data-panel="6"] .qtn-doc-table {
  width: 100%;
  max-width: none;
}
.prop-enq-modal .enq-panel.on {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#proposalModal .enq-panel[data-panel="1"].on {
  gap: 8px;
}
.prop-step-intro {
  margin: 0 0 2px;
}
#proposalModal .enq-panel[data-panel="1"] .prop-step-intro {
  display: grid;
  gap: 2px;
  margin: 0;
}
#proposalModal .enq-panel[data-panel="1"] .enq-panel-eyebrow {
  margin: 0;
}
#proposalModal .enq-panel[data-panel="1"] .enq-panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
#proposalModal .enq-panel[data-panel="1"] .prop-step-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: none;
}
.prop-customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.prop-customer-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
}
.prop-customer-contact {
  height: 100%;
  box-sizing: border-box;
}
.prop-customer-side > .prop-block:last-child {
  flex: 1 1 auto;
}
#proposalModal .enq-panel[data-panel="1"] .prop-block {
  gap: 10px;
  padding: 14px 14px 12px;
}
#proposalModal .enq-panel[data-panel="1"] .fields-2 {
  gap: 10px 12px;
}
#proposalModal .enq-panel[data-panel="1"] .field > label {
  margin-bottom: 4px;
}
#proposalModal .enq-panel[data-panel="1"] .field input,
#proposalModal .enq-panel[data-panel="1"] .field select {
  padding: 8px 10px;
  min-height: 38px;
  color: var(--ink);
  background: #fff;
}
#proposalModal .enq-panel[data-panel="1"] .field-hint {
  margin: 4px 0 0;
}
#proposalModal .enq-panel[data-panel="1"] .enq-checkline {
  margin: 0;
  padding: 6px 10px;
}
#proposalModal .enq-panel[data-panel="1"] .enq-chip {
  padding: 6px 11px;
  font-size: 12px;
}
#proposalModal .enq-panel[data-panel="1"] .enq-chip-grid {
  gap: 6px;
}
@media (max-width: 900px) {
  .prop-customer-grid {
    grid-template-columns: 1fr;
  }
  .prop-customer-contact,
  .prop-customer-side {
    height: auto;
  }
  .prop-customer-side > .prop-block:last-child {
    flex: none;
  }
}

/* Program step — couple full width, then type | functions */
#proposalModal .enq-panel[data-panel="2"].on {
  gap: 8px;
}
#proposalModal .enq-panel[data-panel="2"] .prop-step-intro {
  display: grid;
  gap: 2px;
  margin: 0;
}
#proposalModal .enq-panel[data-panel="2"] .enq-panel-eyebrow {
  margin: 0;
}
#proposalModal .enq-panel[data-panel="2"] .enq-panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
#proposalModal .enq-panel[data-panel="2"] .prop-step-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: none;
}
.prop-program-couple {
  width: 100%;
}
.prop-program-couple .fields-4 {
  margin: 0 !important;
  gap: 8px 10px;
}
.prop-program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.prop-program-type,
.prop-program-functions {
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}
#proposalModal .enq-panel[data-panel="2"] .prop-block {
  gap: 8px;
  padding: 12px 14px;
}
#proposalModal .enq-panel[data-panel="2"] .field > label {
  margin-bottom: 4px;
}
#proposalModal .enq-panel[data-panel="2"] .field input {
  padding: 8px 10px;
  min-height: 38px;
}
#proposalModal .enq-panel[data-panel="2"] .prop-hint-top,
#proposalModal .enq-panel[data-panel="2"] .field-hint {
  margin: 0 0 4px;
}
#proposalModal .enq-panel[data-panel="2"] .program-event-rows {
  gap: 6px;
}
#proposalModal .enq-panel[data-panel="2"] .enq-chip-grid {
  gap: 6px;
}
#proposalModal .enq-panel[data-panel="2"] .enq-chip {
  padding: 6px 11px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .prop-program-grid {
    grid-template-columns: 1fr;
  }
  .prop-program-couple .fields-4 {
    grid-template-columns: 1fr 1fr;
  }
  .prop-program-type,
  .prop-program-functions {
    height: auto;
  }
}

/* Events & guests — date/venue + event plan single lines */
#proposalModal .enq-panel[data-panel="3"].on {
  gap: 8px;
}
#proposalModal .enq-panel[data-panel="3"] .prop-step-intro {
  display: grid;
  gap: 2px;
  margin: 0;
}
#proposalModal .enq-panel[data-panel="3"] .enq-panel-eyebrow {
  margin: 0;
}
#proposalModal .enq-panel[data-panel="3"] .enq-panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
#proposalModal .enq-panel[data-panel="3"] .prop-step-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: none;
}
#proposalModal .enq-panel[data-panel="3"] .prop-block {
  gap: 8px;
  padding: 12px 14px;
}
.prop-date-venue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.prop-dv-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.prop-dv-card .prop-block-title {
  margin: 0;
}
.prop-dv-inline {
  display: flex;
  align-items: end;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.prop-dv-pipe {
  flex: 0 0 auto;
  align-self: stretch;
  width: 1px;
  margin: 18px 0 0;
  background: #ddd4ea;
}
.prop-dv-status {
  flex: 0 1 auto;
  min-width: 0;
}
.prop-dv-value {
  flex: 1 1 140px;
  min-width: 0;
}
.prop-dv-card .field {
  gap: 4px;
}
.prop-dv-card .field > label {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}
.prop-dv-card .field input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  box-sizing: border-box;
}
.prop-dv-card .enq-chip-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}
.prop-dv-card .enq-chip {
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.prop-dv-card .field-hint {
  margin: 2px 0 0;
  font-size: 11px;
}
@media (max-width: 720px) {
  .prop-dv-inline {
    flex-wrap: wrap;
  }
  .prop-dv-pipe {
    display: none;
  }
  .prop-dv-status,
  .prop-dv-value {
    flex: 1 1 100%;
  }
}
.prop-events-plan .prop-block-head {
  margin-bottom: 2px;
}
.prop-events-plan .field-hint {
  margin: 0;
}
.enq-event-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
@media (max-width: 720px) {
  .prop-date-venue-grid {
    grid-template-columns: 1fr;
  }
}

/* Vendors step — booking | suggestions equal cards */
#proposalModal .enq-panel[data-panel="4"].on {
  gap: 8px;
}
#proposalModal .enq-panel[data-panel="4"] .prop-step-intro {
  display: grid;
  gap: 2px;
  margin: 0;
}
#proposalModal .enq-panel[data-panel="4"] .enq-panel-eyebrow {
  margin: 0;
}
#proposalModal .enq-panel[data-panel="4"] .enq-panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
#proposalModal .enq-panel[data-panel="4"] .prop-step-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: none;
}
.prop-vendors-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.prop-vendors-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#proposalModal .enq-panel[data-panel="4"] .prop-block {
  gap: 10px;
  padding: 12px 14px;
}
#proposalModal .enq-panel[data-panel="4"] .field > label {
  margin-bottom: 4px;
}
#proposalModal .enq-panel[data-panel="4"] .field-hint {
  margin: 0 0 4px;
}
#proposalModal .enq-panel[data-panel="4"] .enq-chip-grid {
  gap: 6px;
}
#proposalModal .enq-panel[data-panel="4"] .enq-chip {
  padding: 6px 11px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .prop-vendors-grid {
    grid-template-columns: 1fr;
  }
}

/* Budget step — decoration | overall, notes full width */
#proposalModal .enq-panel[data-panel="5"].on {
  gap: 8px;
}
#proposalModal .enq-panel[data-panel="5"] .prop-step-intro {
  display: grid;
  gap: 2px;
  margin: 0;
}
#proposalModal .enq-panel[data-panel="5"] .enq-panel-eyebrow {
  margin: 0;
}
#proposalModal .enq-panel[data-panel="5"] .enq-panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
#proposalModal .enq-panel[data-panel="5"] .prop-step-lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: none;
}
.prop-budget-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.prop-budget-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.prop-budget-notes {
  width: 100%;
}
#proposalModal .enq-panel[data-panel="5"] .prop-block {
  gap: 10px;
  padding: 12px 14px;
}
#proposalModal .enq-panel[data-panel="5"] .field > label {
  margin-bottom: 4px;
}
#proposalModal .enq-panel[data-panel="5"] .field-hint {
  margin: 0 0 6px;
}
#proposalModal .enq-panel[data-panel="5"] .enq-chip-grid {
  gap: 6px;
}
#proposalModal .enq-panel[data-panel="5"] .enq-chip {
  padding: 6px 11px;
  font-size: 12px;
}
#proposalModal .enq-panel[data-panel="5"] textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  box-sizing: border-box;
  resize: vertical;
}
@media (max-width: 900px) {
  .prop-budget-grid {
    grid-template-columns: 1fr;
  }
}
.prop-enq-modal .enq-panel-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #421078;
}
.prop-enq-modal .enq-panel-title {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--enq-ink, var(--ink));
  line-height: 1.2;
}
.prop-step-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 13.5px;
  line-height: 1.45;
  color: #78716c;
  font-weight: 500;
}
.prop-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(53, 6, 111, 0.04);
}
.prop-block-soft {
  background: #f8f1ff;
  border-style: dashed;
}
.prop-block-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #78716c;
}
.prop-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.prop-block-head .prop-block-title {
  margin-bottom: 4px;
}
.prop-add-event-btn {
  flex: none;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}
.prop-enq-modal .fields-2,
.prop-enq-modal .fields-3 {
  margin: 0 !important;
  gap: 14px 18px;
}
.prop-enq-modal .field {
  margin: 0 !important;
}
.prop-enq-modal .field > label {
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #44403c;
}
.prop-enq-modal .field-hint,
.prop-hint-top {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #8a847c;
}
.prop-enq-modal .enq-checkline {
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fafaf9;
}
.prop-enq-modal .enq-chip-grid {
  gap: 8px;
}
.prop-enq-modal .enq-chip {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
}
.prop-enq-modal .program-event-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prop-field-follow {
  margin-top: 12px;
}
.prop-fields-stack > .field {
  min-width: 0;
}
.prop-modal-foot.enq-edit-foot {
  flex: 0 0 auto;
  padding: 14px 24px;
  background: #fff;
  border-top: 1px solid var(--enq-line, var(--border));
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(28, 25, 23, 0.04);
}
.prop-enq-modal .enq-edit-nav {
  gap: 10px;
}
.prop-enq-modal .prop-draft-btn {
  opacity: 0.85;
}
.prop-enq-modal .qtn-sheet {
  border: 1px solid #e8e0f2;
  border-radius: 16px;
  padding: 22px 24px 26px;
  margin-top: 8px;
  background: #fff;
  overflow: auto;
  box-shadow: 0 10px 28px rgba(53, 6, 111, 0.06);
}
.prop-enq-modal .ai-layout {
  margin-top: 4px;
  grid-template-columns: minmax(440px, 1fr) minmax(0, 1.1fr);
}
.prop-enq-modal .btn-ai {
  background: var(--avent-gradient) !important;
  box-shadow: var(--avent-shadow) !important;
}
@media (max-width: 720px) {
  .prop-progress.enq-add-progress .tl {
    display: none;
  }
  .prop-enq-modal #pageTitle {
    font-size: 20px;
  }
  .prop-modal-body.enq-edit-body {
    padding: 16px 14px 22px !important;
  }
  .prop-block {
    padding: 14px;
  }
  .prop-block-head {
    flex-direction: column;
    align-items: stretch;
  }
  .prop-add-event-btn {
    width: 100%;
  }
  #proposalModal.modal-backdrop {
    padding: 10px;
  }
  .enq-edit-modal.prop-enq-modal,
  .enq-edit-modal.prop-enq-modal.prop-enq-wide {
    max-width: none;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    height: calc(100vh - 20px);
  }
}
.enq-edit-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.enq-not-fit-companies {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}
.enq-not-fit-companies label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.enq-not-fit-companies label:has(input:checked) {
  border-color: var(--bronze);
  background: #f8f1ff;
  color: var(--bronze-deep);
}
.enq-not-fit-other {
  flex: 1 1 220px;
}
.enq-not-fit-other input[type="text"] {
  flex: 1 1 auto;
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
}
.enq-not-fit-other:has(input[type="radio"]:checked) input[type="text"] {
  border-color: var(--bronze);
}
.pm-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-table .pm-copy-row {
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.hot-board-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.hot-board-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}
.hot-board-tab.active {
  background: var(--bronze);
  border-color: var(--bronze);
  color: #fff;
}
.enq-edit-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  background: #faf8f5;
}
.enq-tab {
  border: 0;
  background: transparent;
  padding: 12px 12px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.enq-tab span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #efe6f5;
  color: var(--bronze-deep);
  font-size: 11px;
}
.enq-tab.active {
  color: var(--bronze-deep);
  border-bottom-color: var(--bronze);
}
.enq-tab.active span {
  background: var(--bronze);
  color: #fff;
}
.enq-edit-body {
  overflow: auto;
  flex: 1;
  max-height: none;
}
.enq-panel { display: none; }
.enq-panel.on { display: block; }
.enq-panel-eyebrow {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 4px;
}
.enq-panel-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 550;
  margin: 0 0 14px;
  color: var(--ink);
}
.field-hint {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
.enq-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.enq-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
  cursor: pointer;
}
.enq-chip.on {
  border-color: transparent;
  background: var(--avent-gradient);
  color: #fff;
  font-weight: 650;
}
#proposalModal .enq-chip.on,
.prop-main .enq-chip.on {
  border-color: transparent;
  background: var(--avent-gradient);
  color: #fff;
  font-weight: 650;
}
#proposalModal .enq-chip.on[disabled],
.prop-main .enq-chip.on[disabled] {
  opacity: 1;
  cursor: default;
}
.enq-checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.enq-chip-meta {
  font-style: normal;
  font-weight: 600;
  color: var(--bronze-deep);
  font-size: 11.5px;
}
.enq-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 36px 12px 12px;
  background: #fff;
  margin-bottom: 10px;
}
.enq-event-card.enq-event-card--row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.45fr) minmax(120px, 0.95fr) minmax(0, 1.4fr) minmax(80px, 0.6fr) minmax(0, 1.2fr) 36px;
  grid-template-areas: "num name date time guests venue kill";
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: end;
  column-gap: 10px;
  row-gap: 0;
  padding: 10px 12px !important;
  margin-bottom: 0;
}
.enq-event-card--row .enq-event-num { grid-area: num; padding-top: 0; align-self: center; text-align: center; }
.enq-event-card--row .enq-event-name { grid-area: name; }
.enq-event-card--row .enq-event-date { grid-area: date; }
.enq-event-card--row .enq-event-time { grid-area: time; }
.enq-event-card--row .enq-event-clock { grid-area: clock; }
.enq-event-card--row .enq-event-guests { grid-area: guests; }
.enq-event-card--row .enq-event-venue { grid-area: venue; }
.enq-event-card--row .enq-event-remove {
  grid-area: kill;
  position: static;
  width: 36px;
  height: 36px;
  align-self: end;
  display: grid;
  place-items: center;
}
.enq-event-card--row .field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.enq-event-card--row .field > label {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.enq-event-card--row .field input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 12.5px;
  box-sizing: border-box;
}
.enq-event-card--row .enq-chip-grid {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 36px;
}
.enq-event-card--row .enq-chip {
  height: 36px;
  padding: 0 10px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.enq-event-card--row .ep-clock-wrap.hidden {
  display: none !important;
}
.enq-event-card--row:has(.ep-clock-wrap:not(.hidden)) {
  grid-template-columns: 28px minmax(0, 1.25fr) minmax(120px, 0.85fr) minmax(0, 1.2fr) minmax(100px, 0.7fr) minmax(80px, 0.55fr) minmax(0, 1.05fr) 36px;
  grid-template-areas: "num name date time clock guests venue kill";
}
@media (max-width: 1100px) {
  .enq-event-card.enq-event-card--row,
  .enq-event-card--row:has(.ep-clock-wrap:not(.hidden)) {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 36px;
    grid-template-areas:
      "num name date kill"
      ". time time time"
      ". clock guests venue";
    align-items: start;
    row-gap: 8px;
  }
}
.enq-event-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--bronze);
  padding-top: 22px;
}
.enq-event-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #efe6ff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.enq-suggest-detail {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.enq-suggest-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e8e0f2;
  border-radius: 12px;
  background: #faf8f5;
}
.enq-suggest-panel + .enq-suggest-panel {
  margin-top: 10px;
}
.enq-suggest-kind {
  display: block;
  margin-bottom: 10px;
  color: var(--bronze-deep);
  font-size: 14px;
}
.enq-suggest-unit {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.prop-suggest-picked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8e0f2;
  color: #1c1917;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
}
.prop-suggest-picked-k {
  color: #421078;
  font-weight: 750;
}
.prop-suggest-empty {
  margin: 0;
  font-size: 13px;
  color: #78716c;
}
.hidden { display: none !important; }
.enq-budget-slider {
  display: grid;
  gap: 8px;
}
.enq-budget-slider strong {
  color: var(--bronze-deep);
  font-size: 15px;
}
.enq-budget-slider input[type="range"] {
  width: 100%;
  accent-color: var(--form-focus);
}
.enq-budget-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.enq-edit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.enq-edit-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.enq-view-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.enq-view-section h5 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bronze-deep);
}
@media (max-width: 720px) {
  .enq-event-row { grid-template-columns: 1fr 1fr; }
  .enq-edit-tabs { padding: 0 10px; }
  .enq-tab { padding: 10px 8px; font-size: 11.5px; }
}

.created-ago, .phone-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--ink-soft);
}
.created-ago svg, .phone-cell svg { color: var(--muted-soft); flex-shrink: 0; }

.ev-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.ev-wedding { background: #fce8f0; color: #c45a8a; }
.ev-reception { background: #e8f0fb; color: #3b7dd8; }
.ev-haldi { background: #f1e9ff; color: #9b6cf0; }
.ev-engagement { background: #e8f6ef; color: #2f9e6b; }
.ev-birthday { background: #efebf9; color: #7b6bc7; }
.ev-corporate { background: #ebe7f8; color: #5b4db0; }
.ev-sangeet { background: #fce8f0; color: #b44d7a; }
.ev-anniversary { background: #faf8f5; color: var(--bronze-deep); }
.ev-default { background: #f1e9ff; color: var(--muted); }

.mini-entity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
}
.mini-entity img, .thumb-emoji {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}
.thumb-emoji {
  display: grid;
  place-items: center;
  font-size: 13px;
  background: #efe6ff;
}
.mini-entity span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.decor-stack {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 200px;
}
.decor-stack img, .decor-stack .thumb-emoji {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid #fff;
  margin-left: -4px;
}
.decor-stack img:first-child, .decor-stack .thumb-emoji:first-child { margin-left: 0; }
.thumb-more {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #efeae4;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-left: -4px;
  border: 2px solid #fff;
}
.decor-selected {
  display: inline-block;
  max-width: 220px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.muted-dash { color: var(--muted-soft); }

.enq-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.act-ico {
  width: 28px;
  height: 28px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(var(--avent-outline-fill), var(--avent-outline-fill)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.act-ico:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
  color: var(--avent-ink);
}
.btn-create-prop {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--avent-gradient);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--avent-shadow);
}
.btn-create-prop svg {
  flex: none;
}
.btn-create-prop:hover { filter: none; }

/* Send enquiry form modal */
.enq-send-modal { max-width: 520px; }
.enq-send-to {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f3ee;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}
.enq-send-to strong { color: var(--ink); }
.enq-send-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.enq-send-card {
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  min-height: 84px;
  padding: 18px 96px 18px 16px;
  cursor: pointer;
  display: grid;
  align-content: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.enq-send-card:hover {
  border-color: #25d366;
  background: #f4fff8;
  transform: translateY(-1px);
}
.enq-send-card[data-send-type="default"],
.enq-send-card[data-send-type="hindu"],
.enq-send-card[data-send-type="muslim"],
.enq-send-card[data-send-type="christian"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}
.enq-send-card[data-send-type="default"] { border-color: rgba(196, 92, 48, 0.4); }
.enq-send-card[data-send-type="hindu"] { border-color: rgba(116, 21, 232, 0.5); }
.enq-send-card[data-send-type="muslim"] { border-color: rgba(61, 139, 110, 0.45); }
.enq-send-card[data-send-type="christian"] { border-color: rgba(74, 111, 165, 0.4); }
.enq-send-card[data-send-type="default"]::after,
.enq-send-card[data-send-type="hindu"]::after,
.enq-send-card[data-send-type="muslim"]::after,
.enq-send-card[data-send-type="christian"]::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}
.enq-send-card[data-send-type="default"]::after { background-image: url("default-mandala.png"); }
.enq-send-card[data-send-type="hindu"]::after { background-image: url("ganapathy.png"); }
.enq-send-card[data-send-type="muslim"]::after { background-image: url("muslim-crescent.png"); }
.enq-send-card[data-send-type="christian"]::after { background-image: url("christian-cross.png"); }
.enq-send-card[data-send-type="default"] > *,
.enq-send-card[data-send-type="hindu"] > *,
.enq-send-card[data-send-type="muslim"] > *,
.enq-send-card[data-send-type="christian"] > * {
  position: relative;
  z-index: 1;
}
.enq-send-card[data-send-type="default"]:hover {
  border-color: #7415E8;
  background: #faf8f5;
}
.enq-send-card[data-send-type="hindu"]:hover {
  border-color: #7415E8;
  background: #faf8f5;
}
.enq-send-card[data-send-type="muslim"]:hover {
  border-color: #3d8b6e;
  background: #f4fbf7;
}
.enq-send-card[data-send-type="christian"]:hover {
  border-color: #4a6fa5;
  background: #f5f7fb;
}
.enq-send-card strong {
  font-size: 14px;
  color: var(--ink);
}
.enq-send-anim { padding: 8px 0 4px; }
.enq-send-anim.hidden,
#enqSendPick.hidden { display: none; }
.enq-send-stage {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 8px;
}
.enq-send-form-card {
  width: 118px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 2;
}
.enq-send-form-top {
  height: 8px;
  border-radius: 999px;
  background: var(--avent-gradient);
  margin-bottom: 8px;
}
.enq-send-form-lines { display: grid; gap: 5px; margin-bottom: 8px; }
.enq-send-form-lines i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e8e0f2;
}
.enq-send-form-lines i:nth-child(2) { width: 78%; }
.enq-send-form-lines i:nth-child(3) { width: 55%; }
.enq-send-form-card strong {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.enq-send-path {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.enq-send-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9c2b8;
  opacity: 0.35;
}
.enq-send-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  z-index: 2;
}
.enq-send-wa strong { display: block; font-size: 13px; }
.enq-send-wa span { display: block; font-size: 12px; opacity: 0.92; }
.enq-send-status {
  text-align: center;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 550;
}
.enq-send-anim.sending .enq-send-form-card {
  animation: enqFormFly 1.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.enq-send-anim.sending .enq-send-dot {
  animation: enqDotPulse 0.9s ease-in-out infinite;
}
.enq-send-anim.sending .enq-send-dot:nth-child(2) { animation-delay: 0.15s; }
.enq-send-anim.sending .enq-send-dot:nth-child(3) { animation-delay: 0.3s; }
.enq-send-anim.sending .enq-send-wa {
  animation: enqWaPulse 1.35s ease-in-out;
}
.enq-send-anim.done .enq-send-form-card { opacity: 0; transform: translate(140px, 0) scale(0.35); }
.enq-send-anim.done .enq-send-wa {
  background: #128c7e;
  transform: scale(1.04);
}
@keyframes enqFormFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  55% { transform: translate(70px, -8px) scale(0.85); opacity: 1; }
  100% { transform: translate(140px, 0) scale(0.35); opacity: 0; }
}
@keyframes enqDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); background: #c9c2b8; }
  50% { opacity: 1; transform: scale(1.25); background: #25d366; }
}
@keyframes enqWaPulse {
  0%, 100% { transform: scale(1); }
  70% { transform: scale(1); }
  85% { transform: scale(1.08); }
  100% { transform: scale(1.04); }
}
@media (max-width: 560px) {
  .enq-send-grid { grid-template-columns: 1fr; }
  .enq-send-stage { flex-direction: column; min-height: 220px; }
  .enq-send-anim.sending .enq-send-form-card,
  .enq-send-anim.done .enq-send-form-card {
    animation: enqFormFlyMobile 1.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  @keyframes enqFormFlyMobile {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(0, 90px) scale(0.4); opacity: 0; }
  }
}
.act-ico.propose,
.act-ico.hist:hover,
.act-ico.invoice:hover,
.act-ico.propose:hover {
  color: var(--avent-ink);
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
}
.enq-hist-modal {
  max-width: 620px;
  width: min(620px, 94vw);
}
.enq-hist-modal .modal-body {
  max-height: min(78vh, 640px);
}
.enq-hist-add {
  margin: 16px 0 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f5;
  overflow: visible;
}
.enq-hist-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.enq-hist-acc-btn:hover {
  background: rgba(116, 21, 232, 0.06);
}
.enq-hist-acc-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.enq-hist-acc-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.enq-hist-acc-copy span {
  font-size: 12.5px;
  color: var(--muted);
}
.enq-hist-acc-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.enq-hist-add.is-open .enq-hist-acc-arrow {
  transform: rotate(180deg);
}
.enq-hist-acc-panel {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.enq-hist-acc-panel[hidden] {
  display: none !important;
}
.enq-hist-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding-top: 12px;
}
.enq-hist-add-grid .enq-hist-span {
  grid-column: 1 / -1;
}
.enq-hist-add-grid .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink-soft);
}
.enq-hist-add-grid input,
.enq-hist-add-grid select,
.enq-hist-add-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  background: #fff;
}
.enq-hist-type-dd {
  position: relative;
}
.enq-hist-type-dd.open #enqHistTypeSearch {
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.enq-hist-type-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(26, 22, 16, 0.16);
  padding: 4px;
}
.enq-hist-type-opt {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.enq-hist-type-opt:hover,
.enq-hist-type-opt.is-active {
  background: #faf8f5;
}
.enq-hist-type-opt.on {
  background: #faf8f5;
  color: #421078;
}
.enq-hist-type-empty {
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.enq-hist-add-actions .btn-primary {
  width: 100%;
}
@media (max-width: 560px) {
  .enq-hist-add-grid { grid-template-columns: 1fr; }
}
.act-ico.edit:hover { color: var(--avent-ink); }
.act-ico.more { font-size: 16px; line-height: 1; }

.enq-legend {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
}
.enq-legend-left {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 550;
}
.enq-legend-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.enq-legend-left svg { color: var(--bronze-deep); }
.enq-legend-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .enq-legend { flex-direction: column; align-items: flex-start; }
}

/* ========== CUSTOMERS LIST ========== */
.cus-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.cus-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.cus-name strong {
  color: var(--ink);
  font-size: 13.5px;
}
.act-ico.del:hover {
  color: #d14b4b;
  background: #fdeeee;
}

/* ========== PRICING LIST ========== */

/* ========== WENYU QTN quotation sheet ========== */
.qtn-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 22px;
}
.qtn-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.qtn-logo {
  width: auto;
  height: 128px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.qtn-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.qtn-badge {
  text-align: right;
  min-width: 180px;
}
.qtn-no,
.qtn-date-in {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: right;
  font: inherit;
  color: var(--ink);
}
.qtn-no {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 4px 0;
}
.qtn-head {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.qtn-head td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.qtn-head .qtn-label {
  width: 120px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.qtn-head input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
}
.qtn-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.qtn-toolbar--tabs {
  margin: 0 0 0 auto;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.qtn-budget-field {
  margin: 0;
  min-width: 200px;
  max-width: 260px;
  flex: 0 1 240px;
}
.qtn-budget-field select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border, #e8e0f2);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink, #2f2a26);
  box-sizing: border-box;
}
.qtn-toolbar--tabs .btn-add-row {
  height: 36px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.qtn-table-wrap { overflow-x: auto; }
.qtn-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12.5px;
  table-layout: fixed;
}
.qtn-table th {
  background: #faf8f5;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.qtn-table td {
  padding: 6px;
  border-bottom: 1px solid #e8e0f2;
  vertical-align: middle;
}
.qtn-table .col-cat { width: 16%; }
.qtn-table .col-sl { width: 6%; text-align: center; }
.qtn-table .col-el { width: 38%; }
.qtn-table .col-spec { width: 16%; }
.qtn-table .col-unit { width: 10%; }
.qtn-table .col-rate { width: 12%; }
.qtn-table .col-amt { width: 14%; }
.qtn-table .col-x { width: 36px; }
.qtn-cat-head td {
  background: #faf8f5;
  padding: 8px 10px;
  border-bottom: 1px solid #d4b8f5;
}
.qtn-cat-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.qtn-cat-head-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.qtn-cat-head-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.qtn-cat-head-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.qtn-cat-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qtn-add-part,
.qtn-add-custom {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d4b8f5;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.qtn-add-part {
  background: #efe6ff;
}
.qtn-add-part:hover,
.qtn-add-custom:hover {
  border-color: var(--bronze);
}
.qtn-pick-overlay {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(53, 6, 111, 0.42);
}
.qtn-pick-overlay[hidden] { display: none !important; }
.qtn-pick-modal {
  max-width: 860px;
  width: min(860px, calc(100vw - 24px));
  height: min(780px, calc(100vh - 32px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e0f2;
}
.qtn-pick-filters {
  grid-template-columns: 1.6fr 1fr;
  gap: 16px 20px;
}
.qtn-pick-modal .modal-head {
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid #e8e0f2;
}
.qtn-pick-modal .modal-foot {
  background: #fff;
  border-top: 1px solid #e8e0f2;
}
.qtn-pick-modal .modal-head h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  padding-top: 2px;
}
.qtn-pick-modal .decor-catalog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px 12px;
  background: #faf8f5;
}
.qtn-pick-modal .decor-catalog-intro {
  margin: 0;
  line-height: 1.5;
}
.qtn-pick-modal .field {
  gap: 10px;
}
.qtn-pick-modal .field > label {
  margin: 0;
  line-height: 1.35;
}
.qtn-pick-modal .decor-catalog-toolbar {
  padding-top: 2px;
}
.qtn-pick-modal .decor-cat-group-head {
  padding: 10px 16px;
}
.qtn-pick-modal .decor-cat-item {
  gap: 12px;
  padding: 12px 16px;
}
.decor-cat-item.is-on-quote { opacity: 0.72; }
.qtn-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: #efe6ff;
  border: 1px solid #d4b8f5;
  border-radius: 6px;
  padding: 4px 7px;
  margin-bottom: 4px;
}
#pricingBody .qtn-cat { display: none; }
.qtn-in {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: #faf8f5;
  border-radius: 6px;
  font: inherit;
  padding: 6px 7px;
  color: var(--ink);
}
.qtn-in:focus {
  outline: none;
  border-color: var(--form-focus);
  background: #fff;
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.qtn-in::placeholder { color: #b5aea4; }
.qtn-el-wrap {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.qtn-el-wrap .qtn-el { flex: 1; min-width: 0; }
.qtn-note-btn {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #7a6f8f;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.qtn-note-btn.is-on,
.qtn-note-btn:hover {
  background: #efe6ff;
  border-color: #d4b8f5;
  color: var(--ink);
}
.qtn-row-note {
  display: block;
  width: 100%;
  margin-top: 4px;
  min-height: 44px;
  height: auto;
  resize: vertical;
  font-size: 12px;
  line-height: 1.35;
}
.qtn-row-note.hidden { display: none; }
.qtn-el {
  min-height: 52px;
  height: auto;
  resize: vertical;
  white-space: pre-wrap;
  overflow: auto;
  line-height: 1.35;
  field-sizing: content;
}
.qtn-sl,
.qtn-num { text-align: right; }
.qtn-sl { text-align: center; }
.qtn-cat-select {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid #d4b8f5;
  background: #efe6ff;
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--ink);
}
.qtn-x {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #7a6f8f;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}
.qtn-x:hover { background: #fdeeee; color: #d14b4b; }
.qtn-totals {
  max-width: 520px;
  margin-left: auto;
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.qtn-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink);
}
.qtn-pct {
  width: 52px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
  text-align: center;
}
.qtn-grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.qtn-grand strong { font-size: 18px; }
.qtn-sec-h { margin: 22px 0 8px; }
.qtn-sec-h h4 { margin: 0; font-size: 15px; }
.qtn-notes {
  margin: 0;
  padding-left: 18px;
  color: #421078;
  font-size: 13.5px;
  line-height: 1.55;
}
.qtn-notes li { margin: 4px 0; }
.qtn-sign {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}
.qtn-sign input,
.qtn-prep input {
  display: block;
  width: min(280px, 100%);
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 4px 0;
}
.qtn-prep { text-align: right; }
.qtn-prep input { margin-left: auto; text-align: right; }
.qtn-closing {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.qtn-step-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.qtn-step-tabs .prop-tab {
  flex: 0 0 auto;
}
.qtn-step-preview {
  margin-top: 0;
  border: 1px solid var(--enq-line, var(--border));
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  overflow: auto;
  max-height: none;
}
.qtn-step-preview .qtn-preview {
  border: 0;
  padding: 8px 4px 12px;
  margin: 0;
  box-shadow: none;
}
.qtn-step-preview .qtn-logo,
.qtn-preview .qtn-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}
.qtn-center { text-align: center; }
.qtn-right { text-align: right; white-space: nowrap; }
.vendor-form-modal .qtn-sheet { border: 0; padding: 0; }
.ai-summary-card[hidden],
.qtn-preview-wrap[hidden] { display: none !important; }

/* ── Quotation edit sheet (standard document layout) ── */
.qtn-sheet--edit {
  --qtn-ink: #1c1915;
  --qtn-muted: #6b6280;
  --qtn-line: #e8e0f2;
  --qtn-accent: #421078;
  padding: 22px 24px 26px;
  color: var(--qtn-ink);
}
.qtn-edit-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--qtn-ink);
}
.qtn-edit-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.qtn-sheet--edit .qtn-logo {
  width: auto;
  height: 128px;
  max-width: 180px;
  object-fit: contain;
  flex: none;
}
.qtn-edit-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.qtn-edit-brand-copy strong {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}
.qtn-edit-brand-copy span {
  font-size: 12px;
  color: var(--qtn-muted);
  font-weight: 500;
}
.qtn-edit-badge {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 180px;
  text-align: right;
}
.qtn-edit-badge-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--qtn-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.qtn-edit-field {
  display: grid;
  gap: 2px;
  width: 100%;
  max-width: 220px;
}
.qtn-edit-field > span {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--qtn-muted);
}
.qtn-sheet--edit .qtn-no,
.qtn-sheet--edit .qtn-date-in {
  text-align: right;
  padding: 0;
  margin: 0;
}
.qtn-sheet--edit .qtn-date-in {
  font-size: 13px;
  font-weight: 600;
  color: var(--qtn-muted);
}
.qtn-edit-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--qtn-line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f1ff 0%, #fff 100%);
}
.qtn-edit-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border-right: 1px solid var(--qtn-line);
  border-bottom: 1px solid var(--qtn-line);
  margin: 0;
  min-width: 0;
}
.qtn-edit-meta-cell:nth-child(2n) { border-right: 0; }
.qtn-edit-meta-cell:nth-last-child(-n + 2) { border-bottom: 0; }
.qtn-edit-meta-cell > span {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--qtn-muted);
}
.qtn-edit-meta-cell input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--qtn-ink);
  padding: 0;
  outline: none;
}
.qtn-edit-section-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qtn-accent);
}
.qtn-sheet--edit .qtn-table-wrap {
  margin-bottom: 16px;
  border: 1px solid var(--qtn-line);
  border-radius: 12px;
  overflow-x: auto;
}
.qtn-sheet--edit .qtn-table th {
  background: var(--qtn-ink);
  color: #fff;
  border-bottom: 0;
  letter-spacing: 0.06em;
}
.qtn-edit-foot {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}
.qtn-edit-terms h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qtn-accent);
}
.qtn-sheet--edit .qtn-totals {
  max-width: none;
  margin: 0;
  display: block;
  border: 1px solid var(--qtn-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.qtn-sheet--edit .qtn-total-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--qtn-line);
  font-size: 12.5px;
}
.qtn-sheet--edit .qtn-total-row:last-child { border-bottom: 0; }
.qtn-sheet--edit .qtn-total-row span {
  color: var(--qtn-muted);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.qtn-sheet--edit .qtn-total-row span em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}
.qtn-sheet--edit .qtn-total-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}
.qtn-sheet--edit .qtn-grand {
  margin: 0;
  padding: 12px 14px;
  border-top: 0;
  background: var(--qtn-ink);
  color: #fff;
}
.qtn-sheet--edit .qtn-grand span,
.qtn-sheet--edit .qtn-grand strong {
  color: #fff;
}
.qtn-sheet--edit .qtn-grand strong { font-size: 17px; }
.qtn-sheet--edit .qtn-sign {
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px dashed var(--qtn-line);
}
.qtn-step-tabs-main {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #faf8f5;
}
.prop-enq-modal .qtn-step-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 0;
  padding: 6px 8px;
  min-height: 48px;
  border: 1px solid #e8e0f2;
  border-bottom: 1px solid #e8e0f2;
  border-radius: 14px;
  background: #faf8f5;
  gap: 10px;
}
.prop-enq-modal .qtn-step-tabs .prop-tab {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b6280;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 34px;
}
.prop-enq-modal .qtn-step-tabs .prop-tab.active {
  background: #fff;
  color: var(--avent-ink);
  box-shadow: 0 1px 3px rgba(53, 6, 111, 0.1);
}
.prop-enq-modal .qtn-toolbar--tabs {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  padding: 0;
}
.qtn-pdf-btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--avent-gradient);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 34px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--avent-shadow);
}
.qtn-pdf-btn:hover { filter: none; background: var(--avent-gradient); }
.prop-enq-modal .qtn-toolbar--tabs .btn-add-row {
  margin-top: 0;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
}
.prop-enq-modal .qtn-budget-field.field {
  display: block;
  margin: 0 !important;
  min-width: 180px;
  max-width: 220px;
  flex: none;
}
.prop-enq-modal .qtn-budget-field select {
  height: 34px;
  margin: 0;
}
@media (max-width: 1100px) {
  #proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta {
    grid-template-columns: 1fr 1fr;
  }
  #proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-child(4n) {
    border-right: 1px solid var(--qtn-line);
  }
  #proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-child(2n) {
    border-right: 0;
  }
  #proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--qtn-line);
  }
  #proposalModal .enq-panel[data-panel="6"] .qtn-edit-meta-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 860px) {
  .qtn-edit-top { flex-direction: column; }
  .qtn-edit-badge {
    justify-items: start;
    text-align: left;
    width: 100%;
  }
  .qtn-edit-field,
  .qtn-sheet--edit .qtn-no,
  .qtn-sheet--edit .qtn-date-in {
    text-align: left;
    max-width: none;
  }
  .qtn-edit-meta { grid-template-columns: 1fr; }
  .qtn-edit-meta-cell,
  .qtn-edit-meta-cell:nth-child(2n) { border-right: 0; }
  .qtn-edit-meta-cell:nth-last-child(-n + 2) { border-bottom: 1px solid var(--qtn-line); }
  .qtn-edit-meta-cell:last-child { border-bottom: 0; }
  .qtn-edit-foot { grid-template-columns: 1fr; }
  .qtn-sheet--edit .qtn-sign { flex-direction: column; }
  .qtn-sheet--edit .qtn-prep { text-align: left; }
  .qtn-sheet--edit .qtn-prep input { margin-left: 0; text-align: left; }
}

/* ── Quotation document preview (PDF-style) ─────────── */
.qtn-preview--doc {
  --qtn-ink: #1c1915;
  --qtn-muted: #6b6280;
  --qtn-line: #e8e0f2;
  --qtn-band: #faf8f5;
  --qtn-accent: #421078;
  position: relative;
  isolation: isolate;
  background: #fff;
  color: var(--qtn-ink);
  border: 1px solid var(--qtn-line);
  border-radius: 14px;
  padding: 22px 22px 28px;
  box-shadow: 0 10px 28px rgba(40, 28, 12, 0.06);
}
.qtn-step-preview .qtn-preview--doc {
  border: 0;
  box-shadow: none;
  padding: 10px 6px 18px;
}
.qtn-doc-watermark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.qtn-doc-watermark {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, 46%);
  opacity: 0.07;
}
.qtn-doc-watermark img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.qtn-doc-watermark--print {
  display: none;
}
.qtn-preview--doc > *:not(.qtn-doc-watermark-layer):not(.qtn-doc-watermark--print) {
  position: relative;
  z-index: 1;
}
@media print {
  .qtn-doc-watermark-layer {
    display: none !important;
  }
  .qtn-doc-watermark--print {
    display: block !important;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 48vw);
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .qtn-doc-watermark--print img,
  .qtn-doc-letter-mark img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .qtn-doc-letter-mark {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .qtn-preview--doc {
    box-shadow: none;
    border: 0;
  }
}
.qtn-doc-letter {
  position: relative;
  margin-bottom: 18px;
  background: #fff;
}
.qtn-doc-letter-mark {
  position: absolute;
  left: 62%;
  top: 68%;
  width: min(300px, 44%);
  transform: translate(-50%, -50%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.qtn-doc-letter-mark img {
  width: 100%;
  height: auto;
  display: block;
}
.qtn-doc-letter > *:not(.qtn-doc-letter-mark) {
  position: relative;
  z-index: 1;
}
.qtn-doc-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 2px 2px 16px;
}
.qtn-doc-contact {
  text-align: right;
  font-size: 12.5px;
  line-height: 1.6;
  color: #3a2f4a;
  flex: none;
}
.qtn-doc-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #421078;
  margin-bottom: 6px;
}
.qtn-doc-phones {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1c1915;
}
.qtn-doc-places {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b4a78;
}
.qtn-doc-rule {
  height: 2px;
  margin: 0 0 14px;
  background: var(--avent-gradient);
}
.qtn-doc-client {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid #1c1915;
}
.qtn-doc-client th,
.qtn-doc-client td {
  border: 1px solid #e0d6ef;
  padding: 9px 14px;
  text-align: left;
  vertical-align: middle;
  background: transparent;
}
.qtn-doc-client th {
  width: 22%;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b4a78;
  background: #faf8f5;
}
.qtn-doc-side {
  width: 32%;
  text-align: center;
  vertical-align: middle;
  background: transparent;
  border-left: 1px solid #1c1915;
  padding: 18px 16px;
}
.qtn-doc-side strong,
.qtn-doc-side span {
  display: block;
}
.qtn-doc-side strong {
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
  color: #1c1915;
}
.qtn-doc-side-k {
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #421078;
}
.qtn-doc-side-k:first-child { margin-top: 0; }
.qtn-doc-side-v {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  color: #1c1915;
}
.qtn-doc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.qtn-preview--doc .qtn-doc-top {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.qtn-preview--doc .qtn-logo {
  width: 156px;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
  flex: none;
  object-fit: contain;
}
.qtn-doc-brand-text {
  display: grid;
  gap: 2px;
}
.qtn-doc-brand-text strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qtn-doc-brand-text span {
  font-size: 12px;
  color: var(--qtn-muted);
}
.qtn-doc-badge {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.qtn-doc-badge-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--qtn-accent);
  padding: 5px 10px;
  border-radius: 999px;
}
.qtn-doc-qtn {
  font-size: 15px;
  letter-spacing: 0.02em;
}
.qtn-doc-date {
  font-size: 12px;
  color: var(--qtn-muted);
}
.qtn-doc-meta {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f8f1ff 0%, #fff 100%);
  border: 1px solid var(--qtn-line);
  border-radius: 10px;
}
.qtn-doc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.qtn-doc-meta-grid > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.qtn-doc-meta-grid span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--qtn-muted);
}
.qtn-doc-meta-grid strong {
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-word;
}
.qtn-doc-table-wrap {
  overflow-x: auto;
  border: 1px solid #1c1915;
}
.qtn-doc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.qtn-doc-table thead th:nth-child(1) { width: 7%; }
.qtn-doc-table thead th:nth-child(2) { width: 41%; }
.qtn-doc-table thead th:nth-child(3) { width: 14%; }
.qtn-doc-table thead th:nth-child(4) { width: 10%; }
.qtn-doc-table thead th:nth-child(5) { width: 12%; }
.qtn-doc-table thead th:nth-child(6) { width: 16%; }
.qtn-doc-table th,
.qtn-doc-table td {
  border: 1px solid #1c1915;
}
.qtn-doc-table thead th {
  background: linear-gradient(90deg, #F1E9FF 0%, #F8F1FF 100%);
  color: #421078;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.qtn-doc-table thead th:nth-child(2) { text-align: left; }
.qtn-doc-group td {
  background: #2f6b45;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.qtn-doc-cat td {
  background: #f1e9ff;
  color: #1c1915;
  font-weight: 800;
  padding: 6px 8px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.qtn-doc-line td {
  padding: 6px 8px;
  vertical-align: top;
  color: var(--qtn-ink);
  background: transparent;
}
.qtn-doc-sl { width: 42px; text-align: center; vertical-align: middle; }
.qtn-doc-fee .qtn-doc-sl,
.qtn-doc-fee .qtn-doc-amt { vertical-align: middle; }
.qtn-doc-bullets {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}
.qtn-doc-fee-note {
  margin: 8px 0 0;
  color: #b42318;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
}
.qtn-doc-sum td {
  font-weight: 800;
  text-align: right;
  padding: 7px 8px;
  background: #efe6ff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.qtn-doc-grandsum td {
  background: #c4a0f0;
  text-align: center;
  font-size: 13px;
}
.qtn-doc-grandsum td.qtn-doc-amt { text-align: right; }
.qtn-doc-line.is-svc td {
  font-weight: 650;
}
.qtn-doc-catcell { width: 12%; }
.qtn-doc-el { width: 32%; font-weight: 600; line-height: 1.35; white-space: pre-wrap; }
.qtn-doc-sub {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--qtn-muted);
}
.qtn-doc-spec { width: 12%; color: var(--qtn-muted); }
.qtn-doc-amt { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; white-space: nowrap; }
.qtn-doc-note {
  font-style: italic;
  font-weight: 500;
  color: var(--qtn-muted);
}
.qtn-doc-close {
  border: 1px solid #1c1915;
  border-top: 0;
  color: #1c1915;
  font-size: 12.5px;
  line-height: 1.45;
}
.qtn-doc-pay { padding: 10px 12px 12px; }
.qtn-doc-pay h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.qtn-doc-pay ol {
  margin: 0 0 12px;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}
.qtn-doc-account {
  width: min(460px, 78%);
  border: 1px solid #1c1915;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}
.qtn-doc-account strong { font-size: 13px; }
.qtn-doc-foot {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.qtn-doc-totals {
  order: 2;
  border: 1px solid var(--qtn-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qtn-doc-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--qtn-line);
  font-size: 13px;
}
.qtn-doc-total-row:last-child { border-bottom: 0; }
.qtn-doc-total-row span { color: var(--qtn-muted); }
.qtn-doc-total-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--qtn-ink);
}
.qtn-doc-total-row.is-grand {
  background: var(--qtn-ink);
  color: #fff;
  padding: 12px;
}
.qtn-doc-total-row.is-grand span,
.qtn-doc-total-row.is-grand strong { color: #fff; }
.qtn-doc-total-row.is-grand small {
  display: inline-block;
  margin-left: 6px;
  opacity: 0.75;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qtn-doc-terms { order: 1; }
.qtn-doc-terms h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.qtn-doc-terms ul {
  margin: 0;
  padding-left: 16px;
  color: var(--qtn-muted);
  font-size: 12.5px;
  line-height: 1.45;
  display: grid;
  gap: 4px;
}
.qtn-doc-close .qtn-doc-sign {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 10px 12px 14px;
  border-top: 0;
}
.qtn-doc-close .qtn-doc-sign span,
.qtn-doc-close .qtn-doc-prep span {
  color: #1c1915;
  font-size: 12.5px;
  margin-bottom: 2px;
}
.qtn-doc-close .qtn-doc-sign strong { font-size: 13px; }
.qtn-doc-close .qtn-doc-sign em { color: #1c1915; margin-top: 2px; }
.qtn-doc-close .qtn-doc-closing {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid #1c1915;
  color: #1c1915;
  font-size: 12.5px;
}
.qtn-doc-sign {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--qtn-line);
}
.qtn-doc-sign span,
.qtn-doc-prep span {
  display: block;
  font-size: 11px;
  color: var(--qtn-muted);
  margin-bottom: 4px;
}
.qtn-doc-sign strong { display: block; font-size: 13px; }
.qtn-doc-sign em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--qtn-muted);
  font-size: 12px;
}
.qtn-doc-prep { text-align: right; }
.qtn-doc-closing {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--qtn-muted);
}
@media (max-width: 900px) {
  .qtn-doc-foot { grid-template-columns: 1fr; }
  .qtn-doc-totals { order: 1; }
  .qtn-doc-terms { order: 2; }
  .qtn-doc-meta-grid { grid-template-columns: 1fr; }
  .qtn-doc-top { flex-direction: column; align-items: stretch; }
  .qtn-preview--doc .qtn-doc-top { flex-direction: row; align-items: center; }
  .qtn-preview--doc .qtn-doc-contact { text-align: right; }
  .qtn-doc-badge { justify-items: start; text-align: left; }
  .qtn-doc-sign { flex-direction: column; }
  .qtn-doc-prep { text-align: left; }
}

/* ── Directory ───────────────────────────────────────── */
.dir-wizard {
  padding: 22px 24px;
  margin-bottom: 18px;
}
.dir-step {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
#dirLocationStep {
  border-bottom: 0;
  padding-bottom: 8px;
}
.dir-wizard .fields-2 {
  align-items: start;
}
.dir-wizard .field-hint {
  margin-top: 8px;
  margin-bottom: 0;
}
.dir-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.dir-step-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.dir-step-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.dir-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dir-chip-grid-sm .dir-chip {
  font-size: 12px;
  padding: 7px 12px;
}
.dir-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dir-chip:hover {
  border-color: #c4b5d4;
  background: #faf8f5;
}
.dir-chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.dir-wizard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.dir-result-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.dir-results-head {
  padding: 18px 20px 6px;
}
.dir-results-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.dir-results-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.dir-table .cell-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 720px) {
  .dir-wizard { padding: 16px; }
  .dir-wizard-foot { flex-direction: column; align-items: flex-start; }
}

.dir-loc-wrap {
  position: relative;
}
.dir-loc-wrap .filter-search {
  width: 100%;
}
.dir-loc-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(40, 32, 24, 0.12);
  max-height: 240px;
  overflow: auto;
}
.dir-loc-suggest li { margin: 0; }
.dir-loc-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.dir-loc-item:hover,
.dir-loc-item:focus {
  background: #f7f2ea;
  outline: none;
}
.dir-loc-empty {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.btn-wa {
  border: 1px solid #1faa59;
  background: #e8f8ef;
  color: #0f7a3a;
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-wa:hover {
  background: #d5f3e2;
}
.dir-loc-search {
  width: 100%;
  min-width: 0;
  flex: none;
}
.dir-loc-search:has(input:disabled) {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Followup ────────────────────────────────────────── */
.fu-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.fu-groups,
.fu-detail {
  padding: 0;
  overflow: hidden;
}
.fu-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.fu-pane-head h3 {
  margin: 0;
  font-size: 15px;
}
.fu-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1ebe3;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fu-group-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 62vh;
  overflow: auto;
}
.fu-group-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.fu-group-item strong {
  font-size: 13.5px;
}
.fu-group-item span {
  font-size: 12px;
  color: var(--muted);
}
.fu-group-item:hover {
  background: #faf8f5;
}
.fu-group-item.on {
  background: #f4eee6;
  border-color: #e2d5c4;
}
.fu-detail {
  min-height: 420px;
}
.fu-empty {
  padding: 64px 28px;
  text-align: center;
  color: var(--muted);
}
.fu-empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}
.fu-empty p { margin: 0; font-size: 13.5px; }
.fu-empty-inline {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.fu-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.fu-detail-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.fu-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.fu-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fu-pick-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.fu-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  margin: 0;
}
.fu-pick-row:last-child { border-bottom: 0; }
.fu-pick-row:hover { background: #faf8f5; }
.fu-pick-row strong {
  display: block;
  font-size: 13.5px;
}
.fu-pick-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.fu-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.fu-attach-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f5;
}
.fu-attach-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #1c1610;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.fu-attach-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}
.fu-attach-meta {
  min-width: 0;
  flex: 1;
}
.fu-attach-meta strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.fu-attach-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.fu-attach-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fu-attach-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
}

/* Sending animation */
.fu-send-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 22, 16, 0.45);
  backdrop-filter: blur(4px);
}
.fu-send-overlay[hidden] { display: none !important; }
.fu-send-card {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(20, 14, 8, 0.25);
  animation: fuPop 0.35s ease;
}
@keyframes fuPop {
  from { transform: translateY(10px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.fu-send-orb {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
}
.fu-send-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(31, 170, 89, 0.35);
  animation: fuPulse 1.4s ease-out infinite;
}
.fu-send-ring-2 {
  animation-delay: 0.45s;
}
@keyframes fuPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.fu-send-plane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #e8f8ef;
  border-radius: 50%;
  color: #0f7a3a;
  animation: fuFly 1.1s ease-in-out infinite;
}
@keyframes fuFly {
  0%, 100% { transform: translate(0, 2px) rotate(-12deg); }
  50% { transform: translate(4px, -4px) rotate(8deg); }
}
.fu-send-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.fu-send-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  min-height: 1.3em;
}
.fu-send-bar {
  height: 8px;
  border-radius: 999px;
  background: #efe6f5;
  overflow: hidden;
}
.fu-send-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1faa59, #6ad18f);
  transition: width 0.35s ease;
}
.fu-send-meta {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
@media (max-width: 900px) {
  .fu-layout { grid-template-columns: 1fr; }
  .fu-detail-head { flex-direction: column; }
}

/* ── Performer (dense leaderboard) ───────────────────── */
.perf-page {
  padding-top: 12px;
  padding-bottom: 12px;
}
.perf-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.perf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #faf8f5;
}
.perf-toolbar-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.perf-toolbar-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.perf-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.perf-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #efeae3;
  gap: 2px;
}
.perf-seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.perf-seg-btn:hover { color: var(--ink); }
.perf-seg-btn.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.perf-period-note {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.perf-lead {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2fr) auto;
  gap: 12px 18px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(116, 21, 232, 0.14), rgba(116, 21, 232, 0.02) 55%, transparent);
}
.perf-lead-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.perf-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}
.perf-lead-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.perf-lead-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #421078;
}
.perf-lead-copy strong {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
}
.perf-lead-copy span:last-child {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perf-score-wrap {
  text-align: right;
  padding-left: 8px;
}
.perf-score-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.perf-score {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.perf-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.perf-metric {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.perf-metric span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.perf-metric strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.perf-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.perf-table {
  margin: 0;
}
.perf-table th,
.perf-table td {
  padding: 10px 12px;
  font-size: 13px;
}
.perf-table th {
  background: #f7f4ef;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.perf-col-rank { width: 44px; }
.perf-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.perf-name-cell .cell-sub {
  font-size: 11.5px;
  color: var(--muted);
}
.perf-mini-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}
.perf-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f1ebe3;
  font-weight: 700;
  font-size: 12px;
}
.perf-row-top .perf-rank {
  background: #7415E8;
  color: #fff;
}
.perf-row-top td {
  background: #f8f1ff;
}
.perf-hero.is-empty .perf-score,
.perf-lead.is-empty .perf-score { color: var(--muted); }
.perf-lead.is-empty {
  background: #faf8f5;
}
@media (max-width: 900px) {
  .perf-lead {
    grid-template-columns: 1fr;
  }
  .perf-score-wrap {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .perf-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .perf-toolbar { padding: 12px; }
  .perf-seg { width: 100%; }
  .perf-seg-btn { flex: 1 1 0; padding: 8px 6px; text-align: center; }
  .perf-period-note { width: 100%; }
}

/* ── Application Pricing ─────────────────────────────── */
.app-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.app-price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
}
.app-price-card[hidden] { display: none !important; }
.app-price-card-featured {
  background:
    linear-gradient(160deg, rgba(116, 21, 232, 0.12), rgba(255,255,255,0.96)),
    #fff;
  border-color: #e8e0f2;
}
.app-price-tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #421078;
  background: rgba(116, 21, 232, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
}
.app-price-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}
.app-price-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.app-price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.app-price-from,
.app-price-unit {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.app-price-amount strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.app-price-block {
  margin-bottom: 14px;
}
.app-price-block h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-price-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.app-price-block li { margin: 4px 0; }
.app-price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.app-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #faf8f5;
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
}
.app-price-compare {
  margin-top: 4px;
}
@media (max-width: 860px) {
  .app-price-grid { grid-template-columns: 1fr; }
}

/* Application Pricing — detail tables */
.app-price-filters {
  padding: 18px 20px;
  margin-bottom: 16px;
}
.app-price-summary {
  padding: 20px 22px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(116, 21, 232, 0.1), rgba(255,255,255,0.95)),
    #fff;
}
.app-price-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.app-price-summary h2 {
  margin: 0 0 4px;
  font-size: 22px;
}
.app-price-summary #appPath {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.app-price-quote {
  text-align: right;
}
.app-price-quote .app-price-from {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-price-quote strong {
  display: block;
  font-size: 32px;
  line-height: 1.15;
  margin: 2px 0;
}
.app-price-range {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.app-price-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.app-meta-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  padding: 10px 12px;
}
.app-meta-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.app-meta-item strong {
  font-size: 13.5px;
}
.app-cost-table tfoot td {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.app-cost-total td {
  background: #f8f1ff;
}
.app-price-note h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.app-price-note ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.app-price-note li { margin: 6px 0; }
@media (max-width: 900px) {
  .app-price-meta { grid-template-columns: 1fr 1fr; }
  .app-price-quote { text-align: left; }
}

.app-inc-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.app-inc-list li { margin: 4px 0; }
.app-inc-list strong { color: var(--ink); }

.app-module-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .app-module-row { grid-template-columns: 1fr; }
}

.app-addons-table td {
  vertical-align: top;
  font-size: 13px;
  line-height: 1.45;
}
.app-addons-table td:nth-child(3),
.app-addons-table td:nth-child(4) {
  color: var(--ink-soft);
  max-width: 280px;
}

.app-plan-benefits {
  margin-bottom: 16px;
  padding: 0;
  border: 1px solid #e8e0f2;
  background:
    linear-gradient(135deg, rgba(116, 21, 232, 0.1), rgba(255,255,255,0.96)),
    #fff;
  overflow: hidden;
}
.app-plan-benefits.is-standard {
  border-color: #7415E8;
}
.app-plan-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.app-plan-acc-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-plan-rec {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #421078;
  background: rgba(116, 21, 232, 0.22);
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 2px;
}
.app-plan-acc-copy strong {
  font-size: 15.5px;
  color: var(--ink);
}
.app-plan-acc-copy span:last-child {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.app-plan-acc-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.app-plan-benefits.is-open .app-plan-acc-arrow {
  transform: rotate(180deg);
}
.app-plan-acc-panel {
  padding: 0 18px 16px;
}
.app-plan-acc-panel[hidden] {
  display: none !important;
}
.app-plan-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.app-plan-benefit {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  padding: 12px 14px;
}
.app-plan-benefit strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
  color: var(--ink);
}
.app-plan-benefit span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .app-plan-benefit-grid { grid-template-columns: 1fr; }
}

a.icon-btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
a.icon-btn-link.is-active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* Payments / Calendar / Tasks */
.ops-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.ops-pill.ok {
  background: rgba(46, 125, 80, 0.12);
  color: #2e7d50;
}
.ops-pill.warn {
  background: rgba(180, 110, 30, 0.12);
  color: #421078;
}
.cal-layout,
.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cal-month-head h2 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
}
.cal-month-head .btn-outline {
  min-width: 40px;
  padding: 8px 12px;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cal-cell {
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: inherit;
  color: inherit;
}
.cal-cell.is-empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}
.cal-cell.has-events {
  background: linear-gradient(180deg, #faf8f5 0%, #fff 70%);
}
.cal-cell.is-selected {
  border-color: #7415E8;
  box-shadow: 0 0 0 2px rgba(116, 21, 232, 0.25);
}
.cal-day-num {
  font-size: 13px;
  font-weight: 700;
}
.cal-cell-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  min-height: 18px;
}
.cal-cell.has-dsm {
  background: linear-gradient(180deg, #f7f3ec 0%, #fff 72%);
}
.cal-dsm-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(116, 21, 232, 0.2);
  color: #421078;
  flex: 0 0 auto;
  line-height: 1;
}
.cal-dsm-flag em {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
}
.cal-dots {
  display: flex;
  gap: 3px;
  margin-top: auto;
}
.cal-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7415E8;
  display: block;
}
.cal-chip {
  font-size: 10.5px;
  color: #421078;
  font-weight: 600;
}
.cal-side {
  min-height: 320px;
}
.cal-side-empty {
  padding: 28px 8px;
  text-align: center;
}
.cal-side-empty strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.cal-side-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.cal-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cal-side-head h3 {
  margin: 0 0 2px;
  font-size: 17px;
}
.cal-side-head p,
.cal-none {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.cal-side-head .btn-primary {
  flex: 0 0 auto;
  white-space: nowrap;
}
.cal-ops-mini {
  margin-top: 4px;
  font-weight: 600;
  color: #421078;
}
.cal-event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.cal-event-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf8f5;
}
.cal-event-card strong {
  display: block;
  font-size: 14px;
}
.cal-open-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.cal-detail-modal {
  max-width: 680px;
  width: min(680px, 94vw);
}
.cal-detail-modal .modal-body {
  max-height: min(72vh, 640px);
  overflow: auto;
}
.cal-ops {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f5;
  padding: 14px;
}
.cal-ops-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cal-ops-head h4 {
  margin: 0 0 4px;
  font-size: 15px;
}
.cal-ops-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 360px;
}
.cal-ops-progress {
  min-width: 110px;
  text-align: right;
}
.cal-ops-progress strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.cal-ops-group {
  margin-top: 12px;
}
.cal-ops-group h5 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #421078;
}
.cal-ops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-ops-list li {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
}
.cal-ops-list li.is-done {
  background: rgba(46, 125, 80, 0.06);
  border-color: rgba(46, 125, 80, 0.22);
}
.cal-ops-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
}
.cal-ops-check input {
  margin-top: 2px;
}
.cal-ops-list li.is-done .cal-ops-check span {
  color: #2e7d50;
}
.cal-ops-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.cal-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cal-ops-actions .btn-wa:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.cal-ops-ready {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #2e7d50;
}
.cal-ops-ready.is-wait {
  color: var(--muted);
  font-weight: 500;
}
.gst-process-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
}
.gst-process-btn:hover {
  border-color: #7415E8;
  color: #421078;
  background: #faf8f5;
}
.gst-modal {
  max-width: 640px;
  width: min(640px, 94vw);
}
.gst-modal .modal-body {
  max-height: min(68vh, 560px);
  overflow: auto;
}
.gst-confirm-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f5;
  padding: 16px;
}
.gst-confirm-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.gst-confirm-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.gst-confirm-card.gst-warn {
  border-color: rgba(180, 110, 30, 0.35);
  background: #faf8f5;
}
.gst-confirm-card.gst-done {
  border-color: rgba(46, 125, 80, 0.3);
  background: rgba(46, 125, 80, 0.06);
}
.gst-cut-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gst-cut-row input[type="range"] {
  flex: 1;
}
.gst-edit-table input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
}
.gst-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
}
.gst-countdown {
  text-align: center;
  padding: 18px 8px 8px;
}
.gst-count-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid rgba(116, 21, 232, 0.25);
  box-shadow: inset 0 0 0 6px #fff, 0 0 0 2px #7415E8;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gstPulse 1s ease-in-out infinite;
}
.gst-count-ring span {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
}
.gst-countdown p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.gst-count-bar {
  height: 8px;
  border-radius: 999px;
  background: #eee8e0;
  overflow: hidden;
}
.gst-count-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7415E8, #421078);
  transition: width 0.9s linear;
}
@keyframes gstPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.cal-ops-hint {
  font-size: 12.5px;
  color: var(--muted);
}
.trans-dist-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #e8e4df;
}
.trans-calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 650;
}
.trans-calc-btn svg {
  flex: none;
}
.trans-dist-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
  min-width: 180px;
}
.prop-travel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trans-vehicle-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.prop-travel-vehicle {
  position: relative;
}
.trans-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.trans-vehicle-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fff;
  color: #44403c;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.trans-vehicle-card:hover {
  border-color: #e8e0f2;
  background: #faf8f5;
  color: #1c1917;
}
.trans-vehicle-card.on {
  border-color: #7415E8;
  background: linear-gradient(180deg, #fff9f1, #f3e6d4);
  color: #1c1917;
  box-shadow: inset 0 0 0 1px rgba(116, 21, 232, 0.35);
}
.trans-vehicle-card .tv-name {
  line-height: 1.25;
}
.trans-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px 12px;
  align-items: end;
}
.trans-route-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 42px;
  border-radius: 999px;
  background: #faf8f5;
  color: #421078;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1px;
}
.trans-fare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(140px, 1.1fr);
  gap: 12px 14px;
  align-items: stretch;
}
.trans-fare-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c1917, #3f3a34);
  color: #fff;
  min-height: 72px;
}
.trans-fare-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.trans-fare-amount {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.trans-notes-field {
  margin-top: 2px;
}
.trans-opt {
  font-style: normal;
  font-weight: 500;
  color: #a8a29e;
}
.trans-summary {
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf9, #f7f0e6);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #44403c;
}
.trans-summary-empty strong,
.trans-summary-head {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #421078;
}
.trans-summary-empty p {
  margin: 0;
  color: #78716c;
  font-size: 13px;
  line-height: 1.45;
}
.trans-summary-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1917;
}
.trans-summary-route {
  margin: 0 0 10px;
  color: #57534e;
  font-size: 13.5px;
}
.trans-summary-math {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.trans-summary-math .amt {
  font-size: 18px;
  font-weight: 750;
  color: #1c1917;
}
.trans-summary-note {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: #78716c;
}
@media (max-width: 720px) {
  .trans-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trans-route {
    grid-template-columns: 1fr;
  }
  .trans-route-arrow {
    width: 100%;
    height: 28px;
    transform: rotate(90deg);
  }
  .trans-fare-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trans-fare-total {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .cal-ops-head { flex-direction: column; }
  .cal-ops-progress { text-align: left; width: 100%; }
  .cal-ops-foot { flex-direction: column; align-items: stretch; }
}
.cal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.cal-detail-grid span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}
.cal-detail-grid strong {
  font-size: 13.5px;
}
.cal-detail-modal h4 {
  margin: 14px 0 8px;
  font-size: 14px;
}
.cal-detail-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cal-detail-list li.is-done {
  color: #2e7d50;
}
.task-events {
  padding: 0;
  overflow: hidden;
}
.task-event-list {
  display: flex;
  flex-direction: column;
  max-height: 560px;
  overflow: auto;
}
.task-event-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.task-event-item:hover {
  background: #faf8f5;
}
.task-event-item.is-active {
  background: rgba(116, 21, 232, 0.1);
  border-left: 3px solid #7415E8;
}
.task-event-item strong {
  font-size: 14px;
}
.task-event-item span {
  font-size: 12.5px;
  color: var(--muted);
}
.task-mini {
  font-weight: 600 !important;
  color: #421078 !important;
}
.task-progress {
  min-width: 140px;
  text-align: right;
}
.task-progress span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.task-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #eee8e0;
  overflow: hidden;
}
.task-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7415E8, #421078);
  border-radius: inherit;
}
.task-check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-check-list li {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}
.task-check-list li.is-done {
  background: rgba(46, 125, 80, 0.06);
  border-color: rgba(46, 125, 80, 0.2);
}
.task-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.task-check input {
  margin-top: 2px;
}
.task-check-list li.is-done .task-check span {
  text-decoration: line-through;
  color: #2e7d50;
}
@media (max-width: 980px) {
  .cal-layout,
  .task-layout {
    grid-template-columns: 1fr;
  }
  .cal-detail-grid {
    grid-template-columns: 1fr;
  }
  .cal-cell {
    min-height: 72px;
  }
}

.pay-wa-btn {
  white-space: nowrap;
  font-size: 12px;
  padding: 7px 12px;
}
.pay-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pay-hist-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.pay-hist-btn:hover {
  border-color: #7415E8;
  color: #421078;
  background: #faf8f5;
}
.pay-hist-modal {
  max-width: 560px;
  width: min(560px, 94vw);
}
.pay-hist-modal .modal-body {
  max-height: min(70vh, 560px);
  overflow: auto;
}
.pay-timeline {
  margin-top: 18px;
  position: relative;
  padding-left: 18px;
}
.pay-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e8e0d4;
}
.pay-tl-item {
  position: relative;
  padding: 0 0 16px 16px;
}
.pay-tl-item:last-child {
  padding-bottom: 0;
}
.pay-tl-dot {
  position: absolute;
  left: -16px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d6cbb8;
  background: #7415E8;
}
.pay-tl-item.is-pay .pay-tl-dot { background: #2e7d50; }
.pay-tl-item.is-remind .pay-tl-dot { background: #25d366; }
.pay-tl-item.is-book .pay-tl-dot { background: #3b6ea5; }
.pay-tl-item.is-note .pay-tl-dot { background: #7a7190; }
.pay-tl-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}
.pay-tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.pay-tl-type {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #421078;
}
.pay-tl-top time {
  font-size: 12px;
  color: var(--muted);
}
.pay-tl-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.pay-tl-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.pay-tl-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}
.pay-tl-amt {
  font-weight: 700;
  color: #2e7d50;
}
.pay-wa-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf8f5;
}
.pay-wa-meta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}
.pay-wa-meta strong {
  font-size: 13.5px;
}
@media (max-width: 560px) {
  .pay-wa-meta { grid-template-columns: 1fr; }
  .pay-row-actions { flex-direction: column; align-items: stretch; }
}

/* ========== GLOBAL MOBILE RESPONSIVE ========== */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #1a1a1a;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}
.nav-toggle:hover {
  background: rgba(116, 21, 232, 0.25);
  border-color: rgba(116, 21, 232, 0.55);
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle-x {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.nav-drawer-head {
  display: none;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 10, 0.48);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open .topbar {
  z-index: 120;
}
body.nav-open .nav-toggle {
  background: rgba(116, 21, 232, 0.35);
  border-color: rgba(116, 21, 232, 0.75);
}

/* Compact layout below typical laptop widths */
@media (max-width: 1280px) {
  .nav-toggle {
    display: inline-flex !important;
    order: 2;
    margin-left: auto;
  }
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 0 14px !important;
    min-height: 64px;
    height: 64px !important;
    flex-wrap: nowrap !important;
  }
  :root {
    --topbar-h: 64px;
  }
  .brand { order: 1; }
  .topbar-right { order: 3; gap: 8px; }
  .main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(300px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 110 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    flex: none !important;
    gap: 2px !important;
    padding: 16px 14px 24px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
    transform: translateX(-105%) !important;
    transition: transform 0.25s ease !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.28);
    border-right: 1px solid var(--border);
  }
  body.nav-open .main-nav {
    transform: translateX(0) !important;
  }
  .nav-drawer-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
  }
  .nav-drawer-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
  }
  .nav-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: #1a1a1a;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-drawer-close:hover {
    background: rgba(116, 21, 232, 0.3);
    border-color: rgba(116, 21, 232, 0.7);
  }
  .nav-link {
    width: 100%;
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 10px;
    white-space: normal;
  }
  .profile svg,
  .profile-meta { display: none !important; }
  .page-body { padding: 7px !important; }
  .list-hero {
    margin: 0 !important;
    border-radius: 0 0 16px 16px !important;
    padding: 18px 16px !important;
    grid-template-columns: 1fr !important;
  }
  .list-hero.enq-hero {
    margin: 0 !important;
    border-radius: 0 0 16px 16px !important;
  }
  .list-hero h1 { font-size: 26px; }
  .hero {
    margin: 0 !important;
    border-radius: 0 0 16px 16px !important;
    padding: 18px 16px !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    min-height: var(--page-hero-min-height);
  }
  .hero-quote,
  .hero-date { text-align: left !important; }
  .hero-quote .rule { margin-left: 0 !important; }
  .hero-greet h1 { font-size: 26px; }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stats-row,
  .stats-row-4,
  .stats-row-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .dash-grid { grid-template-columns: 1fr !important; }
  .dash-grid .span-2 { grid-column: 1 / -1 !important; }
  .filter-bar { padding: 12px; gap: 8px; }
  .filter-bar > .filter-search,
  .filter-bar > .filter-select,
  .filter-bar > .btn-outline,
  .filter-bar > .btn-reset,
  .filter-bar > .filter-date-btn,
  .filter-bar > .filter-field,
  .filter-bar > .filter-field-wide,
  .filter-bar > .btn-primary {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }
  .filter-search { min-width: 0 !important; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar .btn-primary,
  .toolbar .btn-outline,
  .toolbar .btn-reset {
    width: 100%;
    justify-content: center;
  }
  .table-wrap,
  .inline-table-wrap,
  .qtn-table-wrap,
  .card.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .vendor-table { min-width: 680px; }
  .vendor-table th,
  .vendor-table td { padding: 10px; font-size: 12.5px; }
  .modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal,
  .pkg-view-modal,
  .enq-send-modal,
  .enq-hist-modal,
  .pay-hist-modal,
  .gst-modal,
  .confirm-delete-modal,
  .enq-edit-modal,
  .enq-view-modal,
  .enq-edit-modal.prop-enq-modal,
  .enq-edit-modal.prop-enq-modal.prop-enq-wide,
  #proposalModal .prop-enq-modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: min(94vh, 100%);
    border-radius: 16px 16px 0 0 !important;
    margin: 0;
  }
  #productModal.modal-backdrop {
    padding: 20px !important;
    align-items: center !important;
  }
  #productModal .modal.product-modal {
    max-width: min(1100px, calc(100vw - 40px)) !important;
    width: min(1100px, calc(100vw - 40px)) !important;
    border-radius: 16px !important;
  }
  #productModal .product-fields,
  #productModal .product-extra-block .fields-2 {
    grid-template-columns: 1fr 1fr !important;
  }
  .modal-body,
  .pay-hist-modal .modal-body,
  .gst-modal .modal-body {
    max-height: min(62vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #enqViewModal.modal-backdrop,
  #enqViewModal.modal-backdrop.open {
    padding: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  #enqViewModal .enq-view-modal {
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }
  #enqViewModal .enq-view-modal .modal-body {
    max-height: none !important;
    overflow: hidden !important;
  }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn-primary,
  .modal-foot .btn-outline,
  .modal-foot .btn-save {
    flex: 1 1 auto;
    justify-content: center;
  }
  .vendor-form-modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100%;
    max-height: 100%;
    border-radius: 0 !important;
  }
  .cus-view-grid,
  .pay-wa-meta,
  .app-price-meta,
  .cal-detail-grid,
  .ai-layout,
  .ai-layout.preview-open,
  .fields-2,
  .fields-3,
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .app-price-quote { text-align: left; }
  .app-price-quote strong { font-size: 26px; }
  .qtn-toolbar { flex-wrap: wrap; }
  .qtn-toolbar--tabs {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 8px 0 10px;
  }
  .qtn-budget-field {
    flex: 1 1 180px;
    max-width: none;
  }
  .enq-edit-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .form-foot,
  .form-foot-actions { flex-wrap: wrap; }
  .form-foot-actions { width: 100%; }
  .form-foot-actions .btn-primary,
  .form-foot-actions .btn-outline { flex: 1 1 auto; }
  .cal-layout,
  .task-layout { grid-template-columns: 1fr !important; }
  .cal-cell { min-height: 64px; padding: 4px; font-size: 11px; }
  .metric-value,
  .stat-card .value { font-size: 22px; }
  .gst-cut-row { flex-direction: column; align-items: stretch; }
  .gst-edit-table { min-width: 420px; }
  .pay-row-actions { flex-direction: column; align-items: stretch; }
  .pay-wa-btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .metrics,
  .stats-row,
  .stats-row-4,
  .stats-row-5 {
    grid-template-columns: 1fr !important;
  }
  .topbar-right .icon-btn:not(.icon-btn-link) { display: none; }
  .topbar-right .btn-siren { display: inline-flex; }
  .brand-logo { height: 48px; max-width: 180px; }
  .list-hero h1,
  .hero-greet h1 { font-size: 22px; }
  .list-hero p { font-size: 13px; }
  .vendor-table { min-width: 600px; }
  .modal-head,
  .modal-body,
  .modal-foot { padding-left: 14px; padding-right: 14px; }
  .card { border-radius: 12px; }
}

html,
body {
  overflow-x: clip;
  max-width: 100%;
}
.app-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Attention beacon (SLA alarms) */
.btn-siren {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #7415E8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  padding: 0;
  overflow: visible;
}
.btn-siren:hover {
  background: rgba(255, 70, 55, 0.12);
  border-color: rgba(255, 100, 90, 0.35);
}
.btn-siren.has-alarms {
  animation: siren-pulse 1.4s ease-in-out infinite;
  border-color: rgba(255, 50, 40, 0.45);
  background: rgba(255, 60, 50, 0.1);
}
.siren-ico,
.beacon-light-ico {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 4px rgba(255, 40, 30, 0.55));
}
.btn-siren.has-alarms .beacon-light-ico {
  animation: beacon-glow 1.4s ease-in-out infinite;
}
.siren-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e04545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--header, #1c1814);
  line-height: 1;
}
@keyframes siren-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 50, 40, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(224, 50, 40, 0); }
}
@keyframes beacon-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 40, 30, 0.45)) brightness(1); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 30, 20, 0.95)) brightness(1.15); }
}

#attentionModal.modal-backdrop {
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
}
#attentionModal.modal-backdrop.open,
#attentionModal.modal-backdrop[aria-hidden="false"] {
  display: flex !important;
}
.attention-modal {
  max-width: min(960px, 100%);
  width: 100%;
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
}
.attention-modal .modal-head {
  align-items: flex-start;
  gap: 12px;
}
.attention-modal .modal-head h3 {
  margin: 0;
}
.attention-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #7a7190;
}
.attention-modal .modal-body {
  overflow: auto;
  flex: 1;
}
.attention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 14px;
}
.attention-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: #faf8f5;
  border: 1px solid var(--border, #e8e0f2);
  font-size: 12px;
  line-height: 1.35;
  color: #4a453f;
  cursor: pointer;
  font: inherit;
  text-align: left;
  max-width: 100%;
}
.attention-chip:hover {
  border-color: #d9cfc0;
  background: #fff;
}
.attention-chip.is-on {
  background: #fdeeee;
  border-color: #e8b4ad;
  color: #8a322c;
  font-weight: 650;
}
.attention-chip strong {
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
  text-align: right;
}
.attention-table-wrap {
  overflow: auto;
  border: 1px solid var(--border, #e8e0f2);
  border-radius: 12px;
}
.attention-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.attention-table th,
.attention-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border, #e8e0f2);
  vertical-align: top;
}
.attention-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a827a;
  background: #faf8f5;
  position: sticky;
  top: 0;
}
.attention-table tr:last-child td {
  border-bottom: 0;
}
.attention-table .mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.attention-type {
  font-weight: 700;
  color: #2f2a26;
}
.attention-reason,
.attention-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #7a7190;
  line-height: 1.35;
}
.attention-overdue {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fdeeee;
  color: #a33b32;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.attention-empty {
  text-align: center;
  color: #7a7190;
  padding: 28px 16px !important;
}
.attention-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fdeeee;
  color: #a33b32;
  font-size: 12px;
  font-weight: 700;
  margin-right: auto;
}
.attention-modal .modal-foot {
  justify-content: flex-end;
  align-items: center;
}
.attention-actions .btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

@media (max-width: 820px) {
  #attentionModal.modal-backdrop.open {
    padding: 0;
    align-items: stretch;
  }
  .attention-modal {
    max-width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
  }
  .attention-table thead {
    display: none;
  }
  .attention-table,
  .attention-table tbody,
  .attention-table tr,
  .attention-table td {
    display: block;
    width: 100%;
  }
  .attention-table tr {
    padding: 12px;
    border-bottom: 1px solid var(--border, #e8e0f2);
  }
  .attention-table td {
    border: 0;
    padding: 4px 0;
  }
  .attention-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a827a;
    margin-bottom: 2px;
  }
  .attention-table td.attention-actions::before {
    content: none;
  }
  .attention-actions {
    margin-top: 8px;
  }
}


/* ===== Ported from wenyuDash: nav dropdown, ms-select, dir-layout ===== */
.main-nav .nav-link,
.main-nav .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  min-height: 36px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: none;
  box-sizing: border-box;
}
.main-nav .nav-link svg {
  display: none;
}
.main-nav .nav-link:hover,
.main-nav .nav-dropdown-toggle:hover {
  color: #1a1a1a;
  background: rgba(20, 18, 16, 0.06);
}
.main-nav .nav-link.active,
.main-nav .nav-link.active-pill,
.main-nav .nav-dropdown-toggle.on,
.main-nav .nav-dropdown:has(.nav-link.active-pill) > .nav-dropdown-toggle,
.main-nav .nav-dropdown:has(.nav-link.active) > .nav-dropdown-toggle {
  background: linear-gradient(110deg, #35066F 0%, #5B16B5 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 8px 12px;
  min-height: 36px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(75, 20, 140, 0.15);
}
.main-nav .nav-link.active:hover,
.main-nav .nav-link.active-pill:hover,
.main-nav .nav-dropdown-toggle.on:hover,
.main-nav .nav-dropdown:has(.nav-link.active-pill) > .nav-dropdown-toggle:hover,
.main-nav .nav-dropdown:has(.nav-link.active) > .nav-dropdown-toggle:hover {
  background: linear-gradient(110deg, #450A8C, #6B20C7);
  color: #FFFFFF;
  box-shadow: 0 5px 16px rgba(75, 20, 140, 0.25);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1;
  overflow: visible;
}
/* Keep only the active dropdown above its neighbors so adjacent menus
   (Catalog / Leads / Users) don't steal hover or clicks. */
.nav-dropdown:hover,
.nav-dropdown.is-hover-open,
.nav-dropdown.open,
.nav-dropdown:focus-within {
  z-index: 100;
}
/* Narrow gap filler under the toggle only — wide bridges overlapped neighbors. */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  z-index: 79;
  pointer-events: none;
}
.nav-dropdown.is-hover-open::after,
.nav-dropdown.open::after,
.nav-dropdown:focus-within::after {
  pointer-events: auto;
}
.nav-dropdown-toggle svg {
  display: inline-block !important;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform 0.15s;
}
.nav-dropdown.open .nav-dropdown-toggle svg,
.nav-dropdown.is-hover-open .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  margin-top: 6px;
  min-width: 176px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 120;
  flex-direction: column;
  gap: 2px;
  pointer-events: auto;
}
/* Desktop open state is driven by JS (.is-hover-open) so only one menu
   is interactive at a time; :hover alone must not open neighbors. */
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-hover-open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 12px;
  min-height: 34px;
  border-radius: 8px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #1a1a1a;
  background: transparent;
}
.nav-dropdown-menu .nav-link:hover {
  color: #1a1a1a;
  background: rgba(20, 18, 16, 0.06);
}
.nav-dropdown-menu .nav-link.active,
.nav-dropdown-menu .nav-link.active-pill {
  background: linear-gradient(110deg, #35066F 0%, #5B16B5 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(75, 20, 140, 0.15);
  transition: all 0.3s ease;
}
.nav-dropdown-menu .nav-link.active:hover,
.nav-dropdown-menu .nav-link.active-pill:hover {
  background: linear-gradient(110deg, #450A8C, #6B20C7);
  color: #FFFFFF;
  box-shadow: 0 5px 16px rgba(75, 20, 140, 0.25);
}

.ms-select {
  position: relative;
  width: 100%;
  z-index: 1;
}
.ms-select.is-open { z-index: 90; }
.ms-select.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.ms-control {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 28px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: text;
  position: relative;
}
.ms-select.is-open .ms-control {
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.ms-chips { display: contents; }
.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #efe6ff;
  color: #421078;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
}
.ms-chip-x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 2px;
  cursor: pointer;
  opacity: 0.75;
}
.ms-chip-x:hover { opacity: 1; }
.ms-search {
  flex: 1 1 120px;
  min-width: 100px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 4px 2px !important;
  margin: 0;
  font: inherit;
  font-size: 13px;
  background: transparent;
  height: auto !important;
  min-height: 0 !important;
}
.ms-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}
.ms-select.is-open .ms-caret { transform: translateY(-50%) rotate(180deg); }
.ms-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 100;
  width: 100%;
  height: auto !important;
  max-height: 240px;
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(26, 22, 16, 0.18);
  padding: 0;
}
.ms-dropdown[hidden] { display: none !important; }
.ms-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: #faf8f5;
}
.ms-select-all,
.ms-clear-all {
  border: 0;
  background: transparent;
  color: #421078;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 4px;
  cursor: pointer;
}
.ms-select-all:hover,
.ms-clear-all:hover { text-decoration: underline; }
.ms-select-all:disabled {
  opacity: 0.4;
  cursor: default;
  text-decoration: none;
}
.ms-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.ms-options {
  max-height: 176px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px;
}
.ms-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.ms-option:hover { background: #f7f3ee; }
.ms-option.is-on {
  background: #faf8f5;
  font-weight: 650;
}
.ms-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid #c4b8a8;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  color: transparent;
  box-sizing: border-box;
}
.ms-option.is-on .ms-check {
  background: var(--form-focus);
  border-color: var(--form-focus);
  color: #fff;
}
.ms-empty {
  display: none;
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
.ms-empty.is-shown { display: block; }
.ms-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ms-cat-list .cat {
  white-space: normal;
  max-width: 160px;
}

.loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.loc svg { color: var(--muted-soft); flex-shrink: 0; }

.pill.inactive { background: #fdecec; color: #d14b4b; }
.pill.pending { background: var(--orange-bg); color: var(--orange); }
.pill.active { background: var(--green-bg); color: var(--green); }

.row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.row-actions a, .row-actions button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.row-actions a:hover, .row-actions button:hover { background: #f1e9ff; color: var(--ink); }
.row-actions .del:hover { background: #fdecec; color: #d14b4b; }

/* ── Directory ───────────────────────────────────────── */
.dir-page {
  padding-top: 8px;
}
.dir-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.dir-wizard {
  padding: 0;
  margin-bottom: 0;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.dir-wizard:has(.ms-select.is-open) {
  overflow: visible;
}
.dir-step .ms-select.is-open {
  z-index: 40;
}
.dir-wizard-head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
}
.dir-wizard-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.dir-wizard-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.dir-step {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
#dirLocationStep {
  border-bottom: 0;
  padding-bottom: 10px;
}
.dir-loc-fields {
  display: grid;
  gap: 12px;
}
.dir-wizard .field-hint {
  margin-top: 8px;
  margin-bottom: 0;
}
.dir-wizard .filter-select {
  width: 100%;
  min-width: 0;
}
.dir-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.dir-step-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.dir-step-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.dir-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dir-chip-grid-sm .dir-chip {
  font-size: 12px;
  padding: 7px 12px;
}
.dir-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dir-chip:hover {
  border-color: #c4b5d4;
  background: #faf8f5;
}
.dir-chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.dir-wizard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #faf8f5;
  position: sticky;
  bottom: 0;
}
.dir-result-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  line-height: 1.35;
}
.dir-results {
  margin: 0;
  min-width: 0;
  min-height: 420px;
}
.dir-results-head {
  padding: 18px 20px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.dir-results-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.dir-results-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.dir-table .cell-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 980px) {
  .dir-layout {
    grid-template-columns: 1fr;
  }
  .dir-wizard {
    position: static;
    max-height: none;
  }
}
@media (max-width: 720px) {
  .dir-wizard-foot { flex-direction: column; align-items: flex-start; }
  .dir-result-count { text-align: left; }
}

@media (max-width: 1280px) {
  .nav-link,
  .main-nav .nav-link,
  .main-nav .nav-dropdown-toggle {
    width: 100%;
    padding: 11px 12px;
    min-height: 42px;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    border-radius: 10px;
    white-space: normal;
    justify-content: flex-start;
  }
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-dropdown::after {
    display: none;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    margin-top: 0;
    min-width: 0;
    width: 100%;
    display: none;
    margin: 2px 0 6px;
    padding: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.open:hover .nav-dropdown-menu,
  .nav-dropdown.open:focus-within .nav-dropdown-menu {
    display: flex;
  }
  .nav-dropdown-menu .nav-link {
    padding-left: 18px;
    font-size: 14px;
    font-weight: 600;
    min-height: 40px;
  }
}

/* Master catalog picker (Décor / AV / Entertainment / Hospitality / Logistics / FX) */
#decorCatalogModal { z-index: 250; }
#decorCatalogModal .decor-catalog-modal {
  max-width: 920px;
  width: min(920px, calc(100vw - 24px));
  height: min(860px, calc(100vh - 32px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}
#decorCatalogModal .decor-catalog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px 12px;
  background: #faf8f5;
}
.decor-catalog-intro { margin: 0; line-height: 1.5; }
.decor-catalog-filters .field { gap: 10px; }
.decor-catalog-filters .field > label { margin: 0; line-height: 1.35; }
.decor-catalog-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.decor-catalog-filter-group { grid-column: 1 / -1; }
.decor-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.decor-catalog-list {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: min(52vh, 480px);
  overflow: auto;
  border: 1px solid #e8e0f2;
  border-radius: 10px;
  background: #fff;
}
.decor-cat-group {
  border-bottom: 1px solid #e8e0f2;
}
.decor-cat-group:last-child { border-bottom: none; }
.decor-cat-group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--avent-ink);
  background: #efe6ff;
  border-bottom: 1px solid #e8e0f2;
}
.decor-cat-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(116, 21, 232, 0.06);
  cursor: pointer;
  background: #fff;
}
.decor-cat-item:last-child { border-bottom: none; }
.decor-cat-item:hover { background: #f8f1ff; }
.decor-cat-item input { margin-top: 3px; accent-color: var(--form-focus); }
.decor-cat-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.decor-cat-item-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.decor-cat-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 220px;
}
.decor-cat-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: #efe6ff;
  color: var(--avent-ink);
  border: 1px solid #e0d6ef;
  white-space: nowrap;
}
.decor-cat-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 720px) {
  .decor-catalog-filters {
    grid-template-columns: 1fr 1fr;
  }
  .decor-catalog-filter-group { grid-column: 1 / -1; }
  .decor-cat-item {
    grid-template-columns: 18px minmax(0, 1fr);
  }
  .decor-cat-item-tags {
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
  }
}

/* Typed-confirm delete */
#confirmDeleteModal.modal-backdrop {
  z-index: 520;
}
.confirm-delete-modal {
  max-width: 440px;
}
.confirm-delete-modal .modal-head {
  align-items: flex-start;
  gap: 12px;
}
.confirm-delete-modal .modal-head h3 {
  margin: 0;
}
.confirm-delete-card {
  border: 1px solid rgba(209, 75, 75, 0.28);
  border-radius: 14px;
  background: #fdf6f6;
  padding: 16px;
}
.confirm-delete-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
  color: #b42318;
}
.confirm-delete-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.confirm-delete-modal .field label strong {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.confirm-delete-modal .field-hint.is-ok { color: #2e7d50; }
.confirm-delete-modal .field-hint.is-err { color: #d14b4b; }
.btn-save.btn-delete {
  background: #c24747;
  box-shadow: 0 6px 16px rgba(194, 71, 71, 0.28);
  color: #fff;
}
.btn-save.btn-delete:hover { filter: brightness(1.05); }
.btn-save.btn-delete:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}
.link-danger {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: #d14b4b;
  cursor: pointer;
  text-decoration: none;
}
.link-danger:hover { text-decoration: underline; }

/* ── Calendar DSM notes (right side + modal) ─────────── */
.cal-dsm-side {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cal-dsm-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cal-dsm-side-head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.cal-dsm-side-head span {
  font-size: 11.5px;
  font-weight: 600;
  color: #421078;
  background: rgba(116, 21, 232, 0.14);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.cal-dsm-modal {
  max-width: 560px;
  width: min(560px, 94vw);
}
.cal-dsm-modal-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.cal-dsm-modal-sub code {
  font-size: 12px;
  background: #f1ebe3;
  padding: 1px 5px;
  border-radius: 4px;
}
.cal-dsm-input-wrap {
  position: relative;
}
.cal-dsm-input-wrap textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  background: #fff;
  color: var(--ink);
}
.cal-dsm-input-wrap textarea:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.cal-dsm-mention {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% - 8px);
  bottom: auto;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}
.cal-dsm-mention-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.cal-dsm-mention-item:hover,
.cal-dsm-mention-item.is-on {
  background: #f8f1ff;
}
.cal-dsm-mention-item strong {
  font-size: 13px;
  color: var(--ink);
}
.cal-dsm-mention-item span {
  font-size: 11.5px;
  color: var(--muted);
}
.cal-dsm-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.cal-dsm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(42vh, 360px);
  overflow: auto;
}
.cal-dsm-empty {
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #faf8f5;
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.cal-dsm-note {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.cal-dsm-note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.cal-dsm-note-head strong {
  color: var(--ink);
}
.cal-dsm-note-head span {
  color: var(--muted);
}
.cal-dsm-del {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.cal-dsm-del:hover { color: #b91c1c; }
.cal-dsm-note-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.cal-dsm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cal-dsm-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #421078;
  background: rgba(116, 21, 232, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
}
@media (max-width: 720px) {
  .cal-side-head { flex-direction: column; align-items: stretch; }
  .cal-side-head .btn-primary { width: 100%; }
}


.list-hero.jira-hero {
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  min-height: var(--page-hero-min-height);
}

/* Jira-style task board */
.jira-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.jira-hero-copy {
  min-width: 0;
  flex: 1;
}
.jira-hero-top #jiraCreateBtn,
.jira-hero-top .list-hero-actions {
  flex-shrink: 0;
  white-space: nowrap;
}
.jira-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.jira-hero-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.jira-hero-status,
.jira-hero-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.jira-hero-status {
  flex: 0 1 auto;
}
.jira-hero-filters {
  flex: 1 1 auto;
  justify-content: flex-end;
}
.jira-hero-status .btn-outline,
.jira-hero-status .btn-primary,
.jira-hero-filters .filter-select {
  white-space: nowrap;
}
.jira-hero-filters .filter-select {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 200px;
}
.jira-search {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.jira-search input {
  border: 0;
  outline: none;
  font: inherit;
  font-size: 13.5px;
  width: 100%;
  min-width: 0;
  background: transparent;
}
.jira-board-wrap {
  padding-top: 4px;
}
.jira-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.jira-col {
  background: #faf8f5;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 260px);
}
.jira-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
  flex-shrink: 0;
}
.jira-col-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 1;
}
.jira-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jira-col-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 2px 8px;
}
.jira-col-body {
  flex: 1;
  min-height: 120px;
  overflow: auto;
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jira-col-body.is-over {
  background: rgba(116, 21, 232, 0.14);
  outline: 2px dashed #7415E8;
  outline-offset: -4px;
  border-radius: 10px;
}
.jira-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding: 28px 8px;
  border: 1px dashed #d9d0c3;
  border-radius: 10px;
}
.jira-col-add {
  margin: 0 10px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.jira-col-add:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}
.jira-card {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 10px;
  padding: 10px 11px 11px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(40, 32, 24, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.jira-card:hover {
  box-shadow: 0 6px 16px rgba(40, 32, 24, 0.1);
}
.jira-card:focus {
  outline: 2px solid rgba(116, 21, 232, 0.45);
  outline-offset: 1px;
}
.jira-card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.jira-card.is-locked {
  cursor: default;
  opacity: 0.92;
}
.jira-card.is-locked:hover {
  box-shadow: 0 1px 2px rgba(40, 32, 24, 0.04);
}
.jira-card.is-completed {
  border-color: #86efac;
  background: #f0fdf4;
}
.jira-completed-tick {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jira-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.jira-key {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.jira-prio {
  display: inline-flex;
  line-height: 0;
}
.jira-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}
.jira-event {
  margin-top: 6px;
  font-size: 11.5px;
  color: #421078;
  font-weight: 600;
}
.jira-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.jira-label {
  font-size: 10.5px;
  font-weight: 650;
  background: #efe7db;
  color: #6b6280;
  border-radius: 4px;
  padding: 2px 6px;
}
.jira-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.jira-due {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.jira-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2c241c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jira-modal {
  max-width: 820px;
  width: min(820px, 96vw);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
}
.jira-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.jira-modal .modal-head,
.jira-modal .modal-foot {
  flex-shrink: 0;
}
.jira-comments {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ebe4da;
}
.jira-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.jira-comments-head h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a7190;
}
.jira-comments-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #efe6ff;
  color: #5c5470;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jira-comments-list {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 12px;
}
.jira-comment {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.jira-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2c241c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jira-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-bottom: 3px;
}
.jira-comment-name {
  font-size: 13px;
  font-weight: 700;
  color: #1c1915;
}
.jira-comment-time {
  font-size: 11.5px;
  color: #7a7190;
}
.jira-comment-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3a3a3a;
}
.jira-comments-empty {
  margin: 0;
  padding: 10px 0 4px;
  color: #7a7190;
  font-size: 13px;
}
.jira-comments-compose {
  display: grid;
  gap: 8px;
}
.jira-comments-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 64px;
  border: 1px solid #ebe4da;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.jira-comments-compose .btn-primary {
  justify-self: end;
}
.dsm-status-modal {
  max-width: 760px;
  width: min(760px, 94vw);
}
.dsm-status-modal .modal-body {
  max-height: min(72vh, 680px);
  overflow: auto;
}
.dsm-section { margin: 0 0 16px; }
.dsm-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7190;
}
.dsm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.dsm-leave {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-soft);
}
.dsm-leave input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--form-focus);
  box-shadow: none;
}
.dsm-half.is-leave textarea {
  background: #faf8f5;
  color: #7a7190;
}
.dsm-half-line { margin-top: 8px; }
.dsm-half-line em {
  display: block;
  margin-bottom: 2px;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
}
.dsm-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dsm-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1e9ff;
  color: var(--avent-ink);
  border: 1px solid #e8e0f2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .dsm-form-grid { grid-template-columns: 1fr; }
}
.jira-modal .modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dsm-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.dsm-page {
  max-width: none;
  width: 100%;
}
.dsm-hero {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.dsm-hero .list-hero-actions {
  align-self: center;
}
.dsm-board-card {
  background: #fff;
  border: 1px solid #e8e0f2;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(53, 6, 111, 0.06);
  padding: 16px 18px 18px;
}
.dsm-intro {
  margin: 0 0 16px;
  color: #6b6280;
  font-size: 13.5px;
  line-height: 1.45;
}
.dsm-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #faf8f5;
  border: 1px solid #efe6f5;
}
.dsm-month-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 160px;
}
.dsm-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7190;
}
.dsm-month-filter[hidden] { display: none !important; }
.dsm-month-filter .filter-select,
.dsm-month-filter select {
  width: 100%;
  min-width: 160px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237416E8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  box-shadow: inset 0 0 0 1px #e8e0f2;
}
.dsm-month-filter .filter-select:focus,
.dsm-month-filter select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--avent-1), 0 0 0 3px rgba(116, 21, 232, 0.14);
}
.dsm-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.dsm-compare-arrow {
  align-self: center;
  color: var(--avent-1);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}
.dsm-compare-col {
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(53, 6, 111, 0.05);
}
.dsm-compare-head {
  padding: 14px 16px;
  background: #faf8f5;
  border-bottom: 1px solid #efe6f5;
}
.dsm-compare-head strong { display: block; font-size: 16px; color: var(--ink); }
.dsm-compare-head span { color: #6b6280; font-size: 12px; }
.dsm-compare-block { padding: 14px 16px; }
.dsm-compare-block + .dsm-compare-block { border-top: 1px solid #efe6f5; }
.dsm-compare-block h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7190;
}
@media (max-width: 900px) {
  .dsm-compare { grid-template-columns: 1fr; }
  .dsm-compare-arrow { justify-self: center; transform: rotate(90deg); }
}
.dsm-empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed #e8e0f2;
  border-radius: 14px;
  color: #6b6280;
  background: #faf8f5;
  text-align: center;
  font-size: 13.5px;
}
.dsm-day { margin-bottom: 8px; }
.dsm-day + .dsm-day { margin-top: 22px; }
.dsm-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.dsm-day-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.dsm-day-head span {
  color: #6b6280;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1e9ff;
  border: 1px solid #e8e0f2;
}
.dsm-person {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(53, 6, 111, 0.04);
}
.dsm-person-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #faf8f5 0%, #f6efff 100%);
  border-right: 1px solid #efe6f5;
}
.dsm-person-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dsm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--avent-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--avent-shadow);
}
.dsm-person-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dsm-person-id strong {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.25;
}
.dsm-person-id span {
  color: #6b6280;
  font-size: 12px;
}
.dsm-panel {
  padding: 16px;
  border-right: 1px solid #efe6f5;
  background: #fff;
}
.dsm-panel:nth-child(3) { border-right: 0; }
.dsm-panel h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7190;
}
.dsm-slot + .dsm-slot { margin-top: 12px; }
.dsm-slot strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--avent-ink);
}
.dsm-slot.is-leave {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #faf8f5;
  border: 1px solid #efe6f5;
}
.dsm-slot.is-leave strong { margin: 0; }
.dsm-slot p,
.dsm-legacy {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.dsm-plan {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid #efe6f5;
  background: #faf8f5;
}
.dsm-plan em {
  display: block;
  margin-bottom: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7190;
}
.dsm-plan p { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.45; }
.dsm-plan-halves {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
}
.dsm-plan-actions { flex: 0 0 auto; }
.dsm-waiting {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e8e0f2;
  background: #faf8f5;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}
.dsm-waiting strong {
  margin-right: 6px;
  color: #7415E8;
}
@media (max-width: 860px) {
  .dsm-person { grid-template-columns: 1fr; }
  .dsm-person-id,
  .dsm-panel { border-right: 0; border-bottom: 1px solid #efe6f5; }
  .dsm-panel:nth-child(3) { border-bottom: 0; }
  .dsm-plan { flex-direction: column; }
  .dsm-plan-halves { grid-template-columns: 1fr; }
  .dsm-toolbar { align-items: stretch; }
  .dsm-tab-meta { margin-left: 0; width: 100%; }
}
.dsm-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e0f2;
}
.dsm-tab {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: #6b6280;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dsm-tab:hover { color: var(--avent-ink); background: #faf8f5; }
.dsm-tab.is-on {
  background: var(--avent-gradient);
  color: #fff;
  box-shadow: var(--avent-shadow);
}
.dsm-tab-meta {
  margin-left: auto;
  color: #6b6280;
  font-size: 12px;
  font-weight: 650;
  align-self: center;
}
.dsm-verdict { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #6b6280; }
.dsm-marks { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dsm-mark {
  border: 1px solid #e8e0f2;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: var(--avent-ink);
  cursor: pointer;
}
.dsm-mark:hover { background: #faf8f5; }
.dsm-mark.is-done { background: #e8f6ee; border-color: #1f7a45; color: #1f7a45; }
.dsm-mark.is-missed { background: #fdecec; border-color: #b42318; color: #b42318; }
.att-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0 0 14px;
  color: #3a3a3a;
  font-size: 13px;
}
.att-legend span { display: inline-flex; align-items: center; gap: 8px; }
.att-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
}
.att-legend i.is-work { background: #e8f6ee; border-color: #1f7a45; }
.att-legend i.is-half { background: #f1e9ff; border-color: #7415E8; }
.att-legend i.is-off { background: #fdecec; border-color: #b42318; }
.att-legend i.is-none { background: #f4f1ec; border-color: #e8e0f2; }
.att-week,
.att-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.att-week { margin-bottom: 8px; }
.att-week span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7190;
}
.att-cell {
  min-height: 84px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  color: #1a1612;
  cursor: pointer;
}
.att-cell strong { display: block; font-size: 14px; }
.att-cell em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  line-height: 1.3;
  color: #6b6280;
}
.att-cell.is-pad { border: 0; background: transparent; cursor: default; min-height: 0; }
.att-cell.is-work { background: #e8f6ee; border-color: #1f7a45; }
.att-cell.is-half { background: #f1e9ff; border-color: #7415E8; }
.att-cell.is-off { background: #fdecec; border-color: #b42318; }
.att-cell.is-none { background: #faf8f5; }
.att-cell.is-future { background: #fff; color: #b8a8c8; cursor: default; }
.att-cell.is-future em { color: transparent; }
.att-cell.is-today { box-shadow: inset 0 0 0 2px #1a1612; }
.att-cell.is-on { box-shadow: 0 0 0 2px #1a1612; }
.att-detail {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.att-detail strong { display: block; margin-bottom: 6px; }
.att-detail p { margin: 4px 0 0; font-size: 14px; }
.att-detail span {
  display: inline-block;
  min-width: 92px;
  color: #6b6280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .att-cell { min-height: 64px; padding: 6px; }
  .att-cell em { display: none; }
}

/* Week timeline */
.jira-week-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(40, 32, 24, 0.04);
}
.jira-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.jira-week-head h2 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
}
.jira-week-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.jira-week-head-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.jira-week-nav {
  min-width: 40px;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1;
}
.jira-week-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 4px 28px;
}
.jira-week-line {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 18px;
  height: 2px;
  background: #c9daf8;
  border-radius: 2px;
  pointer-events: none;
}
.jira-week-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.jira-week-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 4px;
  color: inherit;
  position: relative;
}
.jira-week-weekday {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.jira-week-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  background: #faf8f5;
  color: var(--ink);
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.jira-week-day.is-today .jira-week-num {
  box-shadow: 0 0 0 3px rgba(116, 21, 232, 0.25);
}
.jira-week-day.is-selected .jira-week-num {
  background: #7415E8;
  color: #fff;
}
.jira-week-pin:hover .jira-week-num {
  border-color: #7415E8;
}
.jira-week-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  margin-top: 2px;
}
.jira-week-dot.has-carry {
  background: #dc2626;
}
.dsm-report-modal {
  max-width: 720px;
  width: min(720px, calc(100vw - 24px));
}
.dsm-report-toolbar {
  margin-bottom: 12px;
}
.dsm-report-cal {
  margin-top: 10px;
}
.dsm-view-body {
  display: grid;
  gap: 4px;
}
.dsm-view-text {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f5;
  padding: 10px 12px;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.dsm-view-text.is-blank {
  background: #f1e9ff;
  border-color: #7415E8;
  color: #8a4b00;
}
.dsm-view-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.dsm-view-empty-miss {
  background: #fdecec;
  border: 1px solid #b42318;
  border-radius: 10px;
  color: #8a1f16;
  padding: 12px 14px;
}

/* Hover tooltip (like reference) */
.jira-week-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  background: #fbf5e6;
  border-radius: 12px;
  padding: 12px 14px 12px;
  box-shadow: 0 10px 28px rgba(40, 32, 24, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
  text-align: left;
}
.jira-week-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #fbf5e6;
  border-bottom: 0;
}
.jira-week-day:hover .jira-week-tip,
.jira-week-day:focus-within .jira-week-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.jira-week-day:first-child .jira-week-tip {
  left: 0;
  transform: translateX(0) translateY(4px);
}
.jira-week-day:first-child:hover .jira-week-tip,
.jira-week-day:first-child:focus-within .jira-week-tip {
  transform: translateX(0) translateY(0);
}
.jira-week-day:first-child .jira-week-tip::after {
  left: 28px;
}
.jira-week-day:last-child .jira-week-tip {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}
.jira-week-day:last-child:hover .jira-week-tip,
.jira-week-day:last-child:focus-within .jira-week-tip {
  transform: translateX(0) translateY(0);
}
.jira-week-day:last-child .jira-week-tip::after {
  left: auto;
  right: 28px;
  margin-left: 0;
}
.jira-week-tip-title {
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 6px;
}
.jira-week-tip-pct {
  font-size: 12.5px;
  font-weight: 650;
  color: #5c5470;
  margin-bottom: 6px;
}
.jira-week-tip-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  margin-bottom: 10px;
}
.jira-week-tip-bar i {
  display: block;
  height: 100%;
  background: #7415E8;
  border-radius: 999px;
}
.jira-week-tip-stats {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jira-week-tip-stats li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #5c5470;
}
.jira-week-tip-stats strong {
  font-size: 12px;
}
.jira-week-tip-stats strong.cf {
  color: #dc2626;
}
.jira-week-tip-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jira-tip-ok {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jira-tip-cf {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jira-tip-count {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5ddd0;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c5470;
}

/* Carry-forward cards in red */
.jira-card.is-carryforward {
  border-color: #f0a8a8;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 70%);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08);
}
.jira-card.is-carryforward:hover {
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.12);
}
.jira-carry-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #dc2626;
  border-radius: 4px;
  padding: 2px 6px;
}
.jira-due.is-overdue {
  color: #dc2626;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .jira-board {
    grid-template-columns: repeat(5, minmax(200px, 1fr));
  }
}
@media (max-width: 1100px) {
  .jira-toolbar,
  .jira-hero-tools {
    flex-wrap: wrap;
  }
  .jira-hero-status,
  .jira-hero-filters {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .jira-hero-top {
    flex-direction: column;
    align-items: stretch;
  }
  .jira-hero-top #jiraCreateBtn,
  .jira-hero-top .list-hero-actions,
  .jira-hero-top .list-hero-actions .btn-primary {
    width: 100%;
  }
  .jira-hero-status .btn-outline,
  .jira-hero-status .btn-primary,
  .jira-hero-filters .filter-select {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
  .jira-search {
    flex: 1 1 100%;
    max-width: none;
  }
  .jira-col {
    max-height: none;
    min-height: 280px;
  }
  .jira-week-head {
    flex-wrap: wrap;
  }
  .jira-week-num {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .jira-week-tip {
    width: 200px;
  }
}

/* New Enquiry ops / next-action / handover (ported from wenyuDash) */
.enq-next-cell {
  min-width: 272px;
  max-width: none;
}
.enq-next-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
}
.enq-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
}
.btn-pipeline-do,
.btn-pipeline-skip {
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-pipeline-do {
  flex: 1 1 140px;
  text-align: left;
  border: 1.5px solid #dc2626;
  background: #fff;
  color: #dc2626;
}
.btn-pipeline-do:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}
.btn-pipeline-skip {
  flex: 0 0 auto;
  border: 1.5px solid #dc2626;
  background: #fff;
  color: #dc2626;
  padding-inline: 12px;
}
.btn-pipeline-skip:hover {
  border-color: #b91c1c;
  color: #b91c1c;
  background: #fef2f2;
}
.btn-ops {
  display: none;
}
.btn-ops-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  border: 1.5px solid #dc2626;
  background: #fff;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 12px 11px;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-ops-card:hover {
  background: #fef2f2;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
  border-color: #b91c1c;
}
.btn-ops-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ops-card-top svg.gear {
  flex-shrink: 0;
  color: #dc2626;
}
.btn-ops-card-label {
  flex: 1 0 auto;
  min-width: auto;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-ops-card-count {
  font-size: 12.5px;
  font-weight: 800;
  color: #dc2626;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-ops-card-top svg.chev {
  flex-shrink: 0;
  color: #dc2626;
  opacity: 0.85;
}
.btn-ops-card-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  overflow: hidden;
}
.btn-ops-card-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #dc2626;
  min-width: 0;
}
.list-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.enq-ops-modal {
  max-width: 460px;
}
.enq-ops-backdrop {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  z-index: 120;
}
.enq-ops-backdrop.open {
  display: flex;
}
.enq-ops-fullscreen {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #f7f4ef;
  overflow: hidden;
}
.enq-ops-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(116, 21, 232, 0.28);
  isolation: isolate;
}
.enq-ops-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #421078;
  background-image:
    radial-gradient(ellipse 80% 70% at 12% 20%, rgba(194, 38, 211, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 30%, rgba(147, 51, 234, 0.35), transparent 50%),
    linear-gradient(115deg, #2a0a4a 0%, #421078 42%, #5b16b5 72%, #7415E8 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.enq-ops-top > * {
  position: relative;
  z-index: 1;
}
.enq-ops-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 4px;
}
.enq-ops-top h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.enq-ops-top .enq-edit-sub {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.enq-ops-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.enq-ops-status-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  min-width: 150px;
}
.enq-ops-status-pill span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.enq-ops-status-pill strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.enq-ops-top .close-x {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
}
.enq-ops-top .close-x:hover {
  background: rgba(255,255,255,0.18);
}

/* —— Sidebar + workspace —— */
.enq-ops-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.enq-ops-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-right: 1px solid var(--border);
}
.enq-ops-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.enq-ops-side-head strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.enq-ops-side-head span {
  font-size: 11px;
  color: var(--muted-soft);
  font-weight: 600;
}
.enq-ops-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: #fff;
}
.enq-ops-group {
  margin: 10px 4px 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #faf8f5;
  color: #6d5433;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.qtn-group-head td {
  background: #1c1915;
  color: #f6efe4;
  padding: 0;
}
.qtn-group-head-label {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.qtn-sheet--edit .qtn-table tr.qtn-fee-line > td {
  padding: 8px 12px 12px;
  background: #fffdf8;
  border-bottom: 1px solid #efe7db;
  vertical-align: top;
}
.qtn-sheet--edit .qtn-table tr.qtn-fee-line > td.qtn-fee-pct-cell {
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}
.qtn-fee-pct-cell .qtn-fee-amt {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.qtn-fee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.55fr) minmax(150px, 0.7fr);
  gap: 10px;
  align-items: start;
  width: 100%;
}
.qtn-sheet--edit .qtn-table tr.qtn-fee-line > td {
  overflow: visible;
}
.qtn-fee-grid select.qtn-in,
.qtn-fee-grid textarea.qtn-in,
.qtn-fee-grid input.qtn-in {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: none;
  box-sizing: border-box;
  border: 1px solid #e4dccf;
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  line-height: 42px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.qtn-fee-grid select.qtn-in {
  padding-right: 28px;
  line-height: normal;
}
.qtn-fee-grid textarea.qtn-in {
  height: 72px;
  min-height: 72px;
  padding: 10px 12px;
  line-height: 1.45;
  white-space: normal;
  overflow: auto;
  text-overflow: clip;
  resize: vertical;
}
.qtn-fee-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.qtn-fee-actions .qtn-in {
  flex: 1 1 auto;
  min-width: 72px;
  width: auto;
}
.qtn-fee-actions .qtn-x { flex: none; margin: 0; }
.qtn-fee-line .qtn-fee-name {
  padding-top: 10px;
  padding-bottom: 10px;
}
.qtn-fee-pct-cell {
  vertical-align: middle;
  white-space: nowrap;
}
.qtn-fee-name-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.qtn-fee-name-input {
  width: 100%;
  height: 40px;
  min-height: 40px;
}
.qtn-fee-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.qtn-fee-pct .qtn-in {
  width: 72px;
  height: 40px;
  min-height: 40px;
  text-align: right;
  padding-right: 8px;
}
.qtn-fee-amt {
  flex: 0 0 120px;
  padding-top: 10px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .qtn-fee-grid { grid-template-columns: 1fr; }
}
.enq-ops-fee-add {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 140px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
}
.enq-ops-fee-add label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 650; }
.enq-ops-fee-rate { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) {
  .enq-ops-fee-add { grid-template-columns: 1fr; }
}
.enq-ops-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  white-space: normal;
  align-items: flex-start;
}
.enq-ops-tab-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ddd6cc;
}
.enq-ops-tab.is-set .enq-ops-tab-dot {
  background: var(--green);
}
.enq-ops-tab-label {
  flex: 1;
  min-width: 0;
  overflow: visible;
  white-space: normal;
  line-height: 1.35;
  text-overflow: unset;
}
.enq-ops-tab-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-soft);
  background: #efe6ff;
  border-radius: 999px;
  padding: 2px 7px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 1px;
}
.enq-ops-tab:hover {
  background: #f7f3ed;
}
.enq-ops-tab.on {
  background: #1a1612;
  color: #fff;
}
.enq-ops-tab.on .enq-ops-tab-count {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
}
.enq-ops-tab.on .enq-ops-tab-dot {
  background: var(--bronze);
  box-shadow: 0 0 0 3px rgba(116, 21, 232, 0.28);
}
.enq-ops-tab[data-ops-tab="Extras"] {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  padding-top: 14px;
}
.enq-ops-workspace {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(116, 21, 232, 0.08), transparent 55%),
    #f4f0ea;
}
.enq-ops-body {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 20px 22px 12px;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
/* Extras tab: scroll inside the modal workspace, never the page */
.enq-ops-body:has(.enq-ops-summary) {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.enq-ops-panel {
  max-width: none;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.enq-ops-panel.enq-ops-summary {
  flex: 0 0 auto;
  min-height: auto;
  height: auto;
  overflow: visible;
}
.enq-ops-table-wrap {
  flex: 1;
  min-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.enq-ops-table-wrap:has(.enq-ops-empty) {
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}
.enq-ops-assign-table {
  width: 100%;
  min-width: 1020px;
  table-layout: fixed;
}
.enq-ops-assign-table th:nth-child(1),
.enq-ops-assign-table td:nth-child(1) { width: 16%; }
.enq-ops-assign-table th:nth-child(2),
.enq-ops-assign-table td:nth-child(2) { width: 18%; }
.enq-ops-assign-table th:nth-child(3),
.enq-ops-assign-table td:nth-child(3) { width: 18%; }
.enq-ops-assign-table th:nth-child(4),
.enq-ops-assign-table td:nth-child(4) { width: 8%; }
.enq-ops-assign-table th:nth-child(5),
.enq-ops-assign-table td:nth-child(5) { width: 8%; }
.enq-ops-assign-table th:nth-child(6),
.enq-ops-assign-table td:nth-child(6) { width: 12%; }
.enq-ops-assign-table th:nth-child(7),
.enq-ops-assign-table td:nth-child(7) { width: 20%; }

.enq-ops-composer {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px 16px;
  box-shadow: 0 -4px 24px rgba(26, 22, 16, 0.04);
  position: relative;
  z-index: 5;
}
.enq-ops-composer-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 10px;
}
.enq-ops-composer-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.15fr) minmax(160px, 1.15fr) minmax(88px, 0.7fr) 84px 132px 80px;
  gap: 10px;
  align-items: end;
  width: 100%;
}
.enq-ops-composer-row > .enq-ops-field,
.enq-ops-composer-row > .enq-ops-field-sm {
  min-width: 0;
}
.enq-ops-composer .enq-ops-field > label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}
.enq-ops-composer-action {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.enq-ops-composer-action .btn-save {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  background: #7415E8;
  box-shadow: none;
  justify-content: center;
}
@media (max-width: 1280px) {
  .enq-ops-composer-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .enq-ops-composer-action {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .enq-ops-composer-action .btn-save {
    width: auto;
    min-width: 96px;
  }
}
@media (max-width: 1100px) {
  .enq-ops-composer-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .enq-ops-composer-row {
    grid-template-columns: 1fr;
  }
}
.enq-ops-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.enq-ops-panel-head h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.enq-ops-panel-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 56ch;
}
.enq-ops-progress {
  font-size: 12px;
  font-weight: 700;
  color: var(--bronze-deep);
  background: #fff;
  border: 1px solid #e6d9c8;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(26, 22, 16, 0.04);
}
.enq-ops-progress.is-empty {
  color: var(--muted);
  border-color: var(--border);
  background: #f7f4ef;
}

/* Assignment cards */
.enq-ops-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.enq-ops-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 8px 24px rgba(26, 22, 16, 0.04);
  overflow: visible;
  z-index: 1;
}
.enq-ops-card:focus-within,
.enq-ops-card:has(.enq-ops-dd.open) {
  z-index: 20;
}
.enq-ops-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.enq-ops-card-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.enq-ops-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.enq-ops-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.enq-ops-field > label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Subcategory chips — no dropdown mess */
.enq-ops-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.enq-ops-chip {
  border: 1px solid var(--border);
  background: #faf8f5;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}
.enq-ops-chip:hover {
  border-color: #c4b5d4;
  background: #fff;
}
.enq-ops-chip.on {
  background: #1a1612;
  border-color: #1a1612;
  color: #fff;
}
.enq-ops-schedule {
  background: #faf8f5;
  border: 1px solid #ebe4da;
  border-radius: 12px;
  padding: 12px 14px;
}
.enq-ops-schedule-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.enq-ops-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.enq-ops-empty {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  text-align: center;
  padding: 28px 24px;
  background: rgba(255,255,255,0.55);
  border: 1.5px dashed #d9d0c4;
  border-radius: 16px;
  color: var(--muted);
}
.enq-ops-empty strong {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 6px;
}
.enq-ops-empty p {
  margin: 0 0 14px;
  font-size: 13px;
}
.enq-ops-row-add-wrap {
  margin: 14px 0 4px;
}
.enq-ops-row-add-wrap .btn-outline {
  border-style: dashed;
  background: rgba(255,255,255,0.7);
}
.enq-ops-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 880px;
}
.enq-ops-table th,
.enq-ops-table td {
  box-sizing: border-box;
  vertical-align: middle;
}
.enq-ops-assign-table td:not(.enq-ops-row-actions) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enq-ops-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 12px 10px 10px;
  border-bottom: 1px solid var(--border);
  background: #faf8f5;
  white-space: nowrap;
}
.enq-ops-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.enq-ops-table tr:last-child td { border-bottom: 0; }
.enq-ops-cell-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}
.enq-ops-row-actions {
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
}
.enq-ops-row-actions-inner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}
.enq-ops-row-wa {
  border: 1px solid #1faa59;
  background: #e8f8ef;
  color: #0f7a3a;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.enq-ops-row-wa:hover {
  background: #d5f3e2;
}
.enq-ops-row-confirm {
  border-color: #7415E8;
  background: #f8f1e6;
  color: #421078;
}
.enq-ops-row-confirm:hover {
  background: #f1e4d0;
}
.enq-ops-row-sent {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f7a3a;
  background: #e8f8ef;
  white-space: nowrap;
  line-height: 1.2;
}
.enq-ops-row-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: #c45a5a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.enq-ops-row-del:hover { background: #fdf2ef; }
.enq-ops-avail-preview {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf8f5;
}
.enq-ops-avail-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  align-items: start;
}
.enq-ops-avail-line span {
  color: var(--muted);
  font-weight: 600;
}
.enq-ops-avail-line strong {
  font-weight: 650;
  color: var(--ink);
  word-break: break-word;
}
#enqOpsAvailModal {
  z-index: 260;
}
#enqOpsCompareModal {
  z-index: 270;
}
#enqOpsCongratsModal {
  z-index: 280;
}
.enq-ops-congrats-modal {
  width: min(880px, calc(100vw - 40px));
  max-width: 880px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.enq-ops-congrats-modal .modal-body {
  overflow-y: auto;
  min-height: 0;
}
.enq-ops-congrats-modal .modal-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: #faf8f5;
}
.enq-ops-congrats-modal .fields-3 {
  grid-template-columns: 1fr 1fr 1fr !important;
}
@media (max-width: 720px) {
  .enq-ops-congrats-preview {
    grid-template-columns: 1fr;
  }
  .enq-ops-congrats-modal .fields-3 {
    grid-template-columns: 1fr !important;
  }
}
.enq-ops-congrats-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf8f5;
}
.enq-ops-congrats-badge {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f8ef;
  border: 1px solid #1faa59;
  color: #0f7a3a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.enq-ops-compare-modal {
  width: min(920px, 96vw);
  max-width: 920px;
}
.enq-ops-compare-groups,
#enqOpsCompareGrid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 2px;
}
.enq-ops-compare-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #faf8f5;
  padding: 12px;
}
.enq-ops-compare-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.enq-ops-compare-group-head strong {
  font-size: 14px;
  line-height: 1.35;
}
.enq-ops-compare-group-head span {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.enq-ops-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.enq-ops-compare-card {
  text-align: left;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.enq-ops-compare-card:hover {
  border-color: #9b6cf0;
  box-shadow: 0 6px 18px rgba(26, 22, 16, 0.06);
}
.enq-ops-compare-card.is-selected {
  border-color: #1faa59;
  background: #f3fbf6;
  box-shadow: 0 0 0 1px rgba(31, 170, 89, 0.25);
}
.enq-ops-compare-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.enq-ops-compare-card-top strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.enq-ops-compare-pick {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
}
.enq-ops-compare-card.is-selected .enq-ops-compare-pick {
  color: #0f7a3a;
  border-color: #1faa59;
  background: #e8f8ef;
}
.enq-ops-compare-fields {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.enq-ops-compare-fields label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.enq-ops-compare-fields input,
.enq-ops-compare-fields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.enq-ops-compare-meta {
  display: grid;
  gap: 7px;
}
.enq-ops-compare-meta > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px;
  font-size: 12.5px;
}
.enq-ops-compare-meta span {
  color: var(--muted);
  font-weight: 600;
}
.enq-ops-compare-meta em {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}
.enq-ops-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.enq-ops-compare-btn {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
}
.enq-ops-review-btn {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-color: #7415E8;
  color: #421078;
  background: #faf8f5;
}
.enq-ops-review-btn:hover {
  background: #f3ebe0;
}
.enq-ops-review-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1e9ff;
  border: 1px solid #9b6cf0;
  color: #421078;
  font-size: 12px;
  font-weight: 700;
}
.enq-ops-compare-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.enq-ops-chosen-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f8ef;
  border: 1px solid #1faa59;
  color: #0f7a3a;
  font-size: 12px;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enq-ops-row.is-chosen td {
  background: rgba(232, 248, 239, 0.55);
}
.enq-ops-chosen-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f8ef;
  border: 1px solid #1faa59;
  color: #0f7a3a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .enq-ops-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .enq-ops-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    max-height: 160px;
  }
  .enq-ops-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 10px 12px;
  }
  .enq-ops-tab {
    width: auto;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: #fff;
    padding: 8px 12px;
  }
  .enq-ops-tab[data-ops-tab="Extras"] {
    margin-top: 0;
    border-top: 1px solid var(--border);
    border-radius: 10px;
    padding-top: 8px;
  }
  .enq-ops-card-grid,
  .enq-ops-schedule-grid {
    grid-template-columns: 1fr;
  }
}
.enq-ops-dd {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.enq-ops-dd-multi {
  min-width: 0;
}
.enq-ops-dd-toggle {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.enq-ops-dd-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.enq-ops-dd-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enq-ops-dd-value.is-placeholder {
  color: var(--muted);
  font-weight: 500;
}
.enq-ops-dd.open .enq-ops-dd-toggle {
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.enq-ops-dd-panel {
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(26, 22, 16, 0.18);
  overflow: hidden;
  display: none;
  max-height: 240px;
}
.enq-ops-dd.open > .enq-ops-dd-panel {
  display: flex;
  flex-direction: column;
}
.enq-ops-dd-panel[hidden] {
  display: none !important;
}
.enq-ops-dd-panel[style*="fixed"] {
  z-index: 400;
}
.enq-ops-dd-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
  flex-shrink: 0;
}
.enq-ops-dd-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #9b6cf0 transparent;
}
.enq-ops-dd-list::-webkit-scrollbar {
  width: 8px;
}
.enq-ops-dd-list::-webkit-scrollbar-thumb {
  background: #9b6cf0;
  border-radius: 8px;
}
.enq-ops-dd-option,
.enq-ops-dd-check {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.enq-ops-dd-option:hover,
.enq-ops-dd-check:hover {
  background: #f7f2ea;
}
.enq-ops-dd-option.on,
.enq-ops-dd-check.on {
  background: #efe6ff;
}
.enq-ops-dd-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  background: rgba(168, 121, 69, 0.14);
  border-radius: 999px;
  padding: 1px 6px;
  vertical-align: middle;
}
.enq-ops-dd-check strong {
  display: block;
  font-size: 12.5px;
}
.enq-ops-dd-check span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.enq-ops-dd-check .enq-ops-dd-tag,
.enq-ops-dd-option .enq-ops-dd-tag {
  display: inline-block;
  color: var(--bronze-deep);
  font-weight: 800;
  margin-top: 0;
}
.enq-ops-dd-empty {
  padding: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.enq-ops-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.enq-ops-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.enq-ops-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.enq-ops-block-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.enq-ops-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.enq-ops-chip {
  border: 1px solid var(--border);
  background: #faf8f5;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.enq-ops-chip:hover {
  border-color: #c4b5d4;
  background: #efe6ff;
}
.enq-ops-chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.enq-ops-vendor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.enq-ops-vendor {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--border);
  background: #faf8f5;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}
.enq-ops-vendor:hover {
  border-color: #c4b5d4;
  background: #efe6ff;
}
.enq-ops-vendor.on {
  border-color: var(--bronze);
  background: #f7f0e6;
  box-shadow: inset 0 0 0 1px var(--bronze);
}
.enq-ops-vendor-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.enq-ops-vendor strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.enq-ops-vendor span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.enq-ops-schedule {
  align-items: end;
}
.enq-ops-schedule .field {
  margin: 0;
}
.enq-ops-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.enq-ops-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.enq-ops-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f5;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.enq-ops-item:has(input:checked) {
  background: #eef7f0;
  border-color: #9dcbad;
}
.enq-ops-item input {
  margin-top: 2px;
}
.enq-ops-note-field {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.enq-ops-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.enq-ops-foot-hint {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.enq-ops-foot-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.enq-next-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 210px;
}
.btn-vendor-complete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: var(--avent-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  box-shadow: var(--avent-shadow);
}
.btn-vendor-complete:hover { filter: none; }
.enq-ops-cat-complete {
  height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}
.enq-ops-cat-complete.is-done,
.enq-ops-cat-complete:disabled {
  opacity: 0.72;
  cursor: default;
  filter: none;
}
@media (max-width: 720px) {
  .enq-ops-top { flex-direction: column; }
  .enq-ops-foot { flex-direction: column; align-items: stretch; }
  .enq-ops-foot-actions { justify-content: stretch; }
  .enq-ops-foot-actions .btn-cancel,
  .enq-ops-foot-actions .btn-save,
  .enq-ops-foot-actions .btn-outline { flex: 1; }
}

.enq-ops-summary-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.enq-ops-summary-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf8f5;
  padding: 12px 14px;
}
.enq-ops-summary-box span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.enq-ops-summary-box strong {
  display: block;
  font-size: 14px;
}
.enq-ops-summary-box em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}
.enq-ops-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #efe6ff;
  border: 1px solid #e5d7c4;
}
.enq-ops-summary-hint {
  font-size: 12.5px;
  color: #6b6280;
  max-width: 420px;
  line-height: 1.4;
}
.enq-ops-summary-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: none;
  min-height: 0;
  overflow: visible;
}
.enq-ops-panel.enq-ops-summary > .enq-ops-panel-head,
.enq-ops-panel.enq-ops-summary > .enq-ops-summary-meta,
.enq-ops-panel.enq-ops-summary > .enq-ops-summary-actions {
  flex-shrink: 0;
}
.enq-ops-summary-dept h5 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.enq-ops-summary-dept h5 span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #efe6ff;
  border-radius: 999px;
  padding: 2px 8px;
}
.enq-ops-summary-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #5c5470;
}
.enq-ops-summary-empty {
  border: 1px dashed #d9d0c3;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  background: #faf8f5;
}
.enq-ops-summary-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.enq-ops-summary-section-label {
  margin: 8px 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #421078;
}
.enq-ops-prop-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 4px 10px;
  box-shadow: 0 8px 28px rgba(26, 22, 16, 0.04);
}
.enq-ops-prop-block {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #efe8de;
}
.enq-ops-prop-block:last-child {
  border-bottom: 0;
}
.enq-ops-prop-block h5 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.enq-ops-prop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.enq-ops-prop-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.enq-ops-prop-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.enq-ops-prop-row strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  word-break: break-word;
}
.enq-ops-prop-chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3fbf6;
  border: 1px solid #cfe9d8;
}
.enq-ops-prop-chosen span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f7a3a;
}
.enq-ops-prop-chosen strong {
  font-size: 14px;
  color: var(--ink);
}
.enq-ops-prop-chosen em {
  font-style: normal;
  font-weight: 700;
  color: #0f7a3a;
}
.enq-ops-prop-chosen p {
  flex-basis: 100%;
  margin: 0;
  font-size: 12.5px;
  color: #5c5470;
}
.enq-ops-summary-table tr.is-chosen td {
  background: rgba(232, 248, 239, 0.45);
}
@media (max-width: 720px) {
  .enq-ops-prop-grid {
    grid-template-columns: 1fr;
  }
}
.enq-ops-summary-section-label + .enq-ops-summary-dept,
.enq-ops-summary-section-label + .enq-ops-summary-empty,
.enq-ops-summary-section-label + .enq-ops-prop-sheet {
  margin-top: 4px;
}
.enq-ops-cust-table th {
  width: 28%;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 650;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
}
.enq-ops-cust-table td {
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
}
.enq-ops-cust-step h5 {
  color: #421078;
}
.enq-ops-summary .enq-ops-table-wrap {
  overflow: auto;
}
@media (max-width: 720px) {
  .enq-ops-summary-meta {
    grid-template-columns: 1fr;
  }
}
.enq-handover-modal {
  max-width: 760px;
  width: calc(100vw - 32px);
}
.enq-handover-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.enq-handover-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .enq-handover-cols {
    grid-template-columns: 1fr;
  }
}
.enq-handover-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 360px);
  overflow: auto;
}
.enq-handover-user {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.enq-handover-user:hover {
  border-color: var(--bronze);
  background: #faf8f5;
}
.enq-handover-user.on {
  border-color: var(--bronze);
  background: rgba(116, 21, 232, 0.12);
}
.enq-handover-user .enq-handover-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7415E8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 36px;
  text-align: center;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.enq-handover-user strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}
.enq-handover-user > div span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Configuration — workflow rules */
.cfg-page {
  max-width: 760px;
}
.cfg-intro {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.cfg-intro strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.cfg-intro p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.cfg-status-guide {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 720px) {
  .cfg-status-guide {
    grid-template-columns: 1fr 1fr;
  }
}
.cfg-status-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}
.cfg-status-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.cfg-status-card p,
.cfg-status-card li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.cfg-status-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.cfg-status-card li::marker {
  color: #7415E8;
}
.cfg-list {
  display: grid;
  gap: 14px;
}
.cfg-rule {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
}
.cfg-rule.is-off {
  opacity: 0.72;
}
.cfg-rule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cfg-rule-num {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4efe8;
  color: #421078;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cfg-rule h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px;
}
.cfg-rule-summary {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
}
.cfg-rule-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf8f5;
}
.cfg-rule-flow > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
}
.cfg-rule-flow dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  padding-top: 2px;
}
.cfg-rule-flow dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
}
.cfg-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}
.cfg-switch[aria-checked="true"] .cfg-switch-knob {
  background: #2f9e6b;
}
.cfg-switch[aria-checked="true"] .cfg-switch-knob::after {
  transform: translateX(18px);
}
.cfg-switch-knob {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cfc8bf;
  transition: background 0.15s;
}
.cfg-switch-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
.cfg-switch-label {
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
}
.cfg-empty {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.cfg-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.enq-send-rule-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4efe8;
  color: #6b6280;
  font-size: 12.5px;
  line-height: 1.4;
}
.enq-send-rule-note[hidden] {
  display: none;
}
.enq-send-card[hidden] {
  display: none;
}
.enq-send-grid.is-compact {
  grid-template-columns: 1fr;
}

.app-shell thead th,
.app-shell .data-table th,
.app-shell .vendor-table th,
.app-shell .mini-table th,
.app-shell .inline-table th,
.app-shell .prop-list-table th,
.app-shell .qtn-table th,
.app-shell .qtn-doc-table thead th,
.app-shell .perf-table th,
.app-shell .attention-table th,
.app-shell .enq-ops-table th,
.app-shell .enq-table thead th,
table thead th {
  background: linear-gradient(90deg, #F1E9FF 0%, #F8F1FF 100%) !important;
  color: #421078 !important;
  border-bottom-color: #e4d6f5;
}

/* Users / Roles permission matrix */
.user-custom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.user-custom-toggle input { width: 16px; height: 16px; }
.user-perm-wrap {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f5;
  padding: 12px;
}
.user-perm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.user-perm-toolbar strong { font-size: 13px; }
.user-perm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.user-perm-matrix-wrap { overflow: auto; max-height: 360px; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.user-perm-matrix { width: 100%; border-collapse: collapse; min-width: 560px; }
.user-perm-matrix th,
.user-perm-matrix td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 12.5px;
}
.user-perm-matrix th {
  position: sticky;
  top: 0;
  background: #7415E8;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}
.user-perm-matrix td.c,
.user-perm-matrix th:not(:first-child) { text-align: center; }
.user-perm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.user-perm-check input { width: 16px; height: 16px; accent-color: var(--form-focus); }
.user-row-all { padding: 4px 8px; font-size: 11px; min-width: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.user-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2c241c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-cell strong { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.user-cell span { font-size: 12px; color: var(--muted); }
.users-table td { white-space: nowrap; }
.users-table td:first-child { white-space: normal; }
.user-modal {
  width: min(860px, 96vw);
  max-width: min(860px, 96vw);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
}
.user-modal .modal-head,
.user-modal .modal-foot { flex-shrink: 0; }
.user-modal .modal-body {
  overflow: auto;
  min-height: 0;
}

.roles-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: start;
}
.roles-side { padding: 14px; min-height: 420px; }
.roles-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.roles-item {
  text-align: left;
  border: 1px solid var(--border);
  background: #faf8f5;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.roles-item:hover { border-color: #7415E8; }
.roles-item.is-active {
  border-color: #7415E8;
  background: #faf8f5;
  box-shadow: 0 0 0 2px rgba(116, 21, 232, 0.2);
}
.roles-item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.roles-item span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.roles-item-meta { margin-top: 6px !important; font-weight: 650; color: #421078 !important; }
.roles-detail { padding: 16px; min-height: 420px; }
.roles-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .roles-layout { grid-template-columns: 1fr; }
}



/* —— Super Admin Analytics —— */
.cc-hero {
  grid-template-columns: 1.4fr minmax(280px, 0.9fr);
  align-items: center;
}
.cc-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cc-hero-sub {
  margin: 8px 0 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}
.cc-health {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(360px, 100%);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
}
.cc-health-score {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.cc-health--good .cc-health-score { border-color: #8fd6a8; color: #b8f0c8; }
.cc-health--warn .cc-health-score { border-color: #d4b8f5; color: #efe6ff; }
.cc-health--bad .cc-health-score { border-color: #f0a0a0; color: #ffc4c4; }
.cc-health-meta {
  display: grid;
  gap: 4px;
}
.cc-health-meta strong {
  font-size: 15px;
}
.cc-health-meta span {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.84);
}
.cc-health-meta em {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.cc-page { display: grid; gap: 22px; }
.cc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cc-kpi {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  padding: 14px 15px;
  box-shadow: 0 8px 24px rgba(40, 28, 18, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cc-kpi:hover {
  border-color: #7415E8;
  transform: translateY(-1px);
}
.cc-kpi-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cc-kpi-top em {
  font-style: normal;
  font-weight: 650;
  color: #421078;
}
.cc-kpi-value {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
}
.cc-kpi-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.cc-kpi--green { border-top: 3px solid #5d9b74; }
.cc-kpi--blue { border-top: 3px solid #5b7ea6; }
.cc-kpi--orange { border-top: 3px solid #9b6cf0; }
.cc-kpi--bronze { border-top: 3px solid #7415E8; }
.cc-kpi--purple { border-top: 3px solid #7d6aa6; }

.cc-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cc-panel {
  background: #fff;
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.cc-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0ebe4;
}
.cc-panel > header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.cc-panel > header span {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #f4efe8;
}
.cc-panel--good > header { background: #f3faf5; }
.cc-panel--good > header span { background: #d9f0e1; color: #2f6b45; }
.cc-panel--warn > header { background: #faf8f5; }
.cc-panel--warn > header span { background: #efe6ff; color: #421078; }
.cc-panel--bad > header { background: #fff4f3; }
.cc-panel--bad > header span { background: #f6d4d1; color: #8a3030; }
.cc-signal-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow: auto;
  flex: 1;
}
.cc-signal-list li {
  padding: 10px 16px;
  border-bottom: 1px solid #f5f1eb;
}
.cc-signal-list li:last-child { border-bottom: 0; }
.cc-signal-list a {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}
.cc-signal-list a:hover strong { color: #421078; }
.cc-signal-list strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.cc-signal-list span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.cc-signal-list em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: #421078;
  font-weight: 650;
}
.cc-empty, .cc-empty-cell {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 28px 12px !important;
}

.cc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cc-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.cc-section-head a,
.cc-section-head span {
  font-size: 12.5px;
  color: #421078;
  text-decoration: none;
  font-weight: 650;
}
.cc-section-head a:hover { text-decoration: underline; }

.cc-pipeline,
.cc-modules,
.cc-sla,
.cc-card {
  background: #fff;
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  padding: 16px 18px;
}
.cc-pipeline-bars { display: grid; gap: 12px; }
.cc-pipe-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.cc-pipe-track {
  height: 8px;
  border-radius: 999px;
  background: #efe6ff;
  overflow: hidden;
}
.cc-pipe-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7415E8;
}
.cc-pipe--blue .cc-pipe-track i { background: #5b7ea6; }
.cc-pipe--orange .cc-pipe-track i { background: #9b6cf0; }
.cc-pipe--purple .cc-pipe-track i { background: #7d6aa6; }
.cc-pipe--green .cc-pipe-track i { background: #5d9b74; }

.cc-module-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.cc-module {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid #e8e0f2;
  background: #faf8f5;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cc-module:hover { border-color: #7415E8; background: #fff; }
.cc-module-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cc-module strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}
.cc-module em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.cc-module--warn { border-color: #e8e0f2; background: #faf8f5; }
.cc-module--bad { border-color: #e8b0aa; background: #fff6f5; }
.cc-module--active { border-color: #a8c4e0; background: #f5f9fc; }
.cc-module--ok {}

.cc-tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cc-table { font-size: 12.5px; }
.cc-table a {
  color: #421078;
  font-weight: 650;
  text-decoration: none;
}
.cc-table a:hover { text-decoration: underline; }

.cc-sla-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cc-sla-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e8e0f2;
  background: #faf8f5;
  display: grid;
  gap: 6px;
}
.cc-sla-card strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}
.cc-sla-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.cc-sla-card.is-hot {
  border-color: #e8b0aa;
  background: #fff6f5;
}
.cc-sla-card.is-hot strong { color: #8a3030; }

@media (max-width: 1200px) {
  .cc-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-signal-grid,
  .cc-tables { grid-template-columns: 1fr; }
  .cc-module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-sla-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cc-kpi-grid,
  .cc-module-grid,
  .cc-sla-grid { grid-template-columns: 1fr; }
  .cc-health { min-width: 0; width: 100%; }
}

/* —— Admin Analytics dense BI board —— */
.pm-dash-body {
  background: var(--cream) !important;
}
.pm-dash-body .app-shell {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.pm-dash-body .pm-dash {
  flex: 1 1 auto;
}
.pm-dash-body .page-body { display: none; }
.pm-dash {
  --pm-bg: var(--cream);
  --pm-panel: var(--card);
  --pm-panel-2: #faf8f5;
  --pm-line: var(--border);
  --pm-text: var(--ink);
  --pm-muted: var(--muted);
  --pm-accent: var(--bronze);
  --pm-accent-deep: var(--bronze-deep);
  --pm-accent-soft: var(--bronze-soft);
  --pm-green: var(--green);
  --pm-orange: var(--orange);
  --pm-red: #c45c4a;
  --pm-blue: var(--blue);
  --pm-purple: var(--purple);
  --pm-rail-w: 92px;
  display: grid;
  grid-template-columns: var(--pm-rail-w) 1fr;
  min-height: calc(100vh - var(--topbar-h, 72px));
  background:
    linear-gradient(var(--header), var(--header)) 0 0 / var(--pm-rail-w) 100% no-repeat,
    var(--pm-bg);
  color: var(--pm-text);
  font-family: var(--font-sans);
}
.pm-rail {
  background: var(--header);
  border-right: 1px solid rgba(116, 21, 232, 0.22);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: var(--topbar-h, 72px);
  align-self: stretch;
  min-height: calc(100vh - var(--topbar-h, 72px));
  height: 100%;
  max-height: none;
  overflow: auto;
  color: #fff;
}
.pm-rail-brand {
  padding: 4px 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pm-rail-brand strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
.pm-rail-brand span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}
.pm-rail-block { display: grid; gap: 2px; }
.pm-rail-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0 6px 4px;
}
.pm-rail-item {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 650;
  padding: 6px 8px;
  border-radius: 6px;
}
.pm-rail-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
.pm-rail-item.is-on {
  color: #141210;
  background: linear-gradient(90deg, var(--bronze-soft), var(--bronze));
  box-shadow: 0 0 0 1px rgba(116, 21, 232,0.45);
}
.pm-main {
  padding: 12px 14px 20px;
  min-width: 0;
}
.pm-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.pm-top h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.pm-top p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--pm-muted);
  max-width: 72ch;
  line-height: 1.4;
}
.pm-top p strong { color: var(--bronze-deep); }
.pm-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--bronze), var(--bronze-deep));
  color: #fff;
  text-decoration: none;
}
.pm-btn:hover { filter: brightness(1.05); }
.pm-btn-ghost {
  background: var(--card);
  border: 1px solid var(--pm-line);
  color: var(--ink-soft);
}
.pm-btn-ghost:hover {
  border-color: var(--bronze);
  color: var(--bronze-deep);
}
.pm-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}
.pm-card {
  background: var(--pm-panel);
  border: 1px solid var(--pm-line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.pm-card-grad {
  background: linear-gradient(145deg, #2a241c 0%, #3d3226 45%, #1a1612 100%);
  border-color: rgba(116, 21, 232,0.35);
  color: #f8f7f5;
}
.pm-card-grad .pm-card-head span,
.pm-card-grad .pm-kv span { color: rgba(248,247,245,0.72); }
.pm-card-grad .pm-kv li { border-bottom-color: rgba(255,255,255,0.1); }
.pm-card-grad .pm-kv strong { color: var(--bronze-soft); }
.pm-span-2 { grid-column: span 2; }
.pm-span-3 { grid-column: span 3; }
.pm-span-4 { grid-column: span 4; }
.pm-span-5 { grid-column: span 5; }
.pm-span-6 { grid-column: span 6; }
.pm-span-7 { grid-column: span 7; }
.pm-span-8 { grid-column: span 8; }
.pm-span-12 { grid-column: span 12; }
.pm-daily-card {
  text-decoration: none;
  color: inherit;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(116, 21, 232,0.08), transparent 42%),
    var(--pm-panel);
}
.pm-daily-card:hover { border-color: var(--bronze); }
.pm-daily {
  display: grid;
  grid-template-columns: 168px 132px 132px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.pm-daily-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a241c 0%, #3d3226 55%, #1a1612 100%);
  color: #f8f7f5;
}
.pm-daily-brand span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
.pm-daily-brand strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pm-daily-brand em {
  font-style: normal;
  font-size: 11px;
  color: rgba(248,247,245,0.62);
}
.pm-daily-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 10px 12px 10px 14px;
  border-radius: 8px;
  background: var(--pm-panel-2);
  border: 1px solid var(--pm-line);
  border-left-width: 3px;
}
.pm-daily-stat strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.pm-daily-stat span {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.pm-daily-stat em {
  font-style: normal;
  font-size: 11px;
  color: var(--pm-muted);
}
.pm-daily-stat.is-done { border-left-color: #1f7a4d; background: #f3faf6; }
.pm-daily-stat.is-done strong { color: #1f7a4d; }
.pm-daily-stat.is-pending { border-left-color: #b45309; background: #fdf6ee; }
.pm-daily-stat.is-pending strong { color: #b45309; }
.pm-daily-track {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 14px;
}
.pm-daily-meter {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #efe8de;
}
.pm-daily-meter i { display: block; height: 100%; min-width: 0; }
.pm-daily-meter i.is-done { background: linear-gradient(90deg, #1f7a4d, #3aaa6d); }
.pm-daily-meter i.is-wait { background: linear-gradient(90deg, #9b6cf0, #7415E8); }
.pm-daily-track p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
.pm-daily-track p b {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pm-daily-track p span { margin: 0 6px; color: var(--pm-muted); font-weight: 500; }
.pm-daily-people { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-daily-people b {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fdf6ee;
  border: 1px solid rgba(180,83,9,0.22);
  color: #8a4b08;
  font-size: 11px;
  font-weight: 700;
}
.pm-daily-people em { font-style: normal; font-size: 12px; color: #1f7a4d; font-weight: 700; }
.pm-daily-go {
  align-self: center;
  margin-right: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bronze), var(--bronze-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pm-daily-card:hover .pm-daily-go { filter: brightness(1.06); }
.pm-risk-sub {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pm-muted);
}
.pm-idle-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.pm-idle-row.is-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pm-dash.ta-dash {
  --pm-rail-w: 0px;
  grid-template-columns: 1fr;
  background: var(--pm-bg);
}
.pm-dash.ta-dash button.pm-card {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.pm-dash.ta-dash button.pm-card.is-open {
  box-shadow: 0 0 0 2px rgba(116, 21, 232, 0.45);
}
.pm-dash.ta-dash .ta-exit-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 0;
}
.pm-dash.ta-dash .ta-exit-card .pm-open {
  margin-top: 4px;
}
.ta-board-legend {
  flex-wrap: wrap;
  gap: 8px 12px;
}
.pm-dash.ta-dash .pm-main {
  max-width: none;
  margin-left: 0;
}
.pm-idle-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 128px;
  padding: 14px 14px 12px;
  border: 1px solid var(--pm-line);
  border-left-width: 4px;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
button.pm-idle-col {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.pm-idle-col.is-open {
  border-color: var(--bronze);
  box-shadow: 0 0 0 2px rgba(116, 21, 232, 0.35);
}
.ta-panel[hidden] {
  display: none !important;
}
#taModal.modal-backdrop,
#taModal.modal-backdrop.open {
  padding: 12px;
  align-items: stretch;
  justify-content: stretch;
}
#taModal .ta-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
#taModal .modal-head {
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 12px;
}
#taModal .modal-head h3 {
  margin: 0;
}
#taModal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 16px 16px;
}
.ta-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ta-modal-actions .btn-outline[hidden] {
  display: none !important;
}
#taModal .ta-table-card {
  margin: 0;
  padding: 0 0 12px;
  box-shadow: none;
}
#taModal .ta-enq-table {
  min-width: 100%;
  width: 100%;
}
#taModal .ta-enq-table th,
#taModal .ta-enq-table td {
  padding: 12px 10px;
}
#taModal .ta-enq-table .cust-cell {
  white-space: normal;
  min-width: 140px;
}
#taModal .ta-enq-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
#taModal .ta-enq-link:hover {
  color: var(--bronze);
  text-decoration: underline;
}
#taModal .ta-handover-cell {
  width: 1%;
  white-space: nowrap;
  position: sticky;
  right: 0;
  background: #fff;
}
#taModal .ta-enq-table tbody tr:hover .ta-handover-cell {
  background: #fbf8f4;
}
#taModal .ta-handover-btn {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: none;
}
#taModal .ta-handover-none {
  color: var(--muted);
}
#enqHandoverModal {
  z-index: 260;
}
.pm-idle-kicker {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pm-muted);
}
.pm-idle-col strong {
  margin-top: 2px;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pm-idle-col span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}
.pm-idle-col small {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--pm-muted);
}
.pm-idle-col.is-hot {
  border-left-color: #b42318;
  background: #fff7f6;
}
.pm-idle-col.is-hot strong,
.pm-idle-col.is-hot .pm-idle-kicker { color: #b42318; }
.pm-idle-col.is-clear {
  border-left-color: #1f7a4d;
  background: #f6fbf8;
}
.pm-idle-col.is-clear strong,
.pm-idle-col.is-clear .pm-idle-kicker { color: #1f7a4d; }
.pm-idle-col.is-wait.is-hot {
  border-left-color: #b54708;
  background: #faf8f5;
}
.pm-idle-col.is-wait.is-hot strong,
.pm-idle-col.is-wait.is-hot .pm-idle-kicker { color: #b54708; }
.pm-idle-col:hover { border-color: var(--bronze); transform: translateY(-1px); }
.pm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pm-card-head span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pm-muted);
}
.pm-badge {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.pm-badge.is-hot { background: var(--orange-bg); color: var(--orange); }
.pm-badge.is-ok { background: var(--green-bg); color: var(--green); }
.pm-big {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.pm-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--pm-muted);
}
.pm-chart {
  margin-top: 8px;
  height: 88px;
  position: relative;
}
.pm-chart-tall { height: 150px; }
.pm-kv {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pm-kv li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--pm-line);
}
.pm-kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.pm-kv span { color: var(--pm-muted); }
.pm-kv strong { font-weight: 800; color: var(--ink); }
.pm-kv-compact li { font-size: 11.5px; padding-bottom: 6px; }
.pm-table-wrap { overflow: auto; }
.pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.pm-table th {
  text-align: left;
  color: var(--pm-muted);
  font-weight: 650;
  padding: 6px 6px 8px;
  border-bottom: 1px solid var(--pm-line);
  white-space: nowrap;
}
.pm-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--pm-line);
  white-space: nowrap;
  color: var(--ink-soft);
}
.pm-table .is-low { color: var(--pm-orange); font-weight: 700; }
.pm-table .is-bad { color: var(--pm-red); font-weight: 700; }
.pm-table .is-ok { color: var(--pm-green); font-weight: 700; }
.pm-gauge-wrap {
  position: relative;
  height: 120px;
}
.pm-gauge-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 800;
}
.pm-gauge-label--good { color: var(--pm-green); }
.pm-gauge-label--warn { color: var(--pm-orange); }
.pm-gauge-label--bad { color: var(--pm-red); }
.pm-risk-legend {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--pm-muted);
}
.pm-risk-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}
.pm-risk-legend .g { background: var(--pm-green); }
.pm-risk-legend .m { background: var(--pm-orange); }
.pm-risk-legend .h { background: var(--pm-red); }
.pm-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pm-tile {
  background: var(--pm-panel-2);
  border: 1px solid var(--pm-line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.pm-tile strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--bronze-deep);
}
.pm-tile span {
  font-size: 10.5px;
  color: var(--pm-muted);
  line-height: 1.3;
}
.pm-mini-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--pm-muted);
}
.pm-mini-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}
.pm-mini-legend b { color: var(--pm-text); margin-left: 4px; }
.pm-deviations { display: grid; gap: 10px; margin-top: 10px; }
.pm-dev-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--pm-muted);
  margin-bottom: 4px;
}
.pm-dev-top b { color: var(--pm-text); }
.pm-dev-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8e0f2;
  overflow: hidden;
}
.pm-dev-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bronze-soft), var(--bronze-deep));
}
.pm-emerging {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}
.pm-emerging-badge {
  background: linear-gradient(145deg, var(--bronze), var(--bronze-deep));
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  color: #fff;
}
.pm-emerging-badge strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.pm-emerging-badge span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
}
.pm-emerging-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.pm-emerging-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  padding: 4px 0;
  border-bottom: 1px solid var(--pm-line);
}
.pm-emerging-list span { color: var(--pm-muted); }
.pm-emerging-list b { font-weight: 800; }
.pm-safety {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.pm-safety li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pm-line);
}
.pm-safety span { color: var(--pm-muted); }
.pm-safety strong.is-hot { color: var(--pm-orange); }
.pm-good {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pm-good li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--green-bg);
  border: 1px solid rgba(47,158,107,0.22);
}
.pm-good strong {
  display: block;
  font-size: 12px;
  color: var(--pm-green);
}
.pm-good span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--pm-muted);
}
@media (max-width: 1200px) {
  .pm-dash {
    --pm-rail-w: 72px;
    grid-template-columns: var(--pm-rail-w) 1fr;
  }
  .pm-idle-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pm-idle-row.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-span-2, .pm-span-3, .pm-span-4, .pm-span-5, .pm-span-6, .pm-span-7, .pm-span-8 { grid-column: span 6; }
  .pm-emerging { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .pm-dash {
    --pm-rail-w: 0px;
    grid-template-columns: 1fr;
    background: var(--pm-bg);
  }
  .pm-rail {
    position: static;
    min-height: 0;
    height: auto;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pm-rail-block { display: flex; flex-wrap: wrap; gap: 4px; }
  .pm-span-2, .pm-span-3, .pm-span-4, .pm-span-5, .pm-span-6, .pm-span-7, .pm-span-8 { grid-column: span 12; }
  .pm-idle-row { grid-template-columns: 1fr 1fr; }
  .pm-idle-col:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pm-daily { grid-template-columns: 1fr 1fr; }
  .pm-daily-brand, .pm-daily-track { grid-column: 1 / -1; }
  .pm-daily-go { justify-self: start; margin: 0 0 4px 4px; }
  .pm-top { flex-direction: column; }
}

.pm-click { text-decoration: none; color: inherit; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.pm-click:hover { border-color: rgba(116, 21, 232,.65); transform: translateY(-1px); }
.pm-open {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bronze-deep);
}
.pm-head-link {
  font-size: 11px;
  color: var(--bronze-deep);
  text-decoration: none;
  font-weight: 700;
}
.pm-head-link:hover { text-decoration: underline; }
.pm-row-link { cursor: pointer; }
.pm-row-link:hover td { background: rgba(116, 21, 232,.1); }
.pm-kv-link, .pm-mini-legend a, .pm-safety a, .pm-good a, .pm-emerging-list a, .pm-dev {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.pm-kv-link:hover strong,
.pm-mini-legend a:hover b,
.pm-safety a:hover strong,
.pm-good a:hover strong,
.pm-emerging-list a:hover b { color: var(--bronze-deep); }
.pm-tile { text-decoration: none; color: inherit; }
.pm-tile:hover { border-color: rgba(116, 21, 232,.65); }
.pm-emerging-badge { text-decoration: none; color: inherit; display: block; }
.pm-emerging-badge:hover { filter: brightness(1.06); }
.pm-dev { display: block; }
.pm-dev:hover .pm-dev-top b { color: var(--bronze-deep); }
.pm-good a { display: grid; gap: 2px; }

/* Detailed hover tooltip */
.pm-tip {
  position: fixed;
  z-index: 10050;
  max-width: min(340px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(20, 18, 16, 0.96);
  border: 1px solid rgba(116, 21, 232, 0.5);
  box-shadow: 0 12px 32px rgba(26, 22, 16, 0.28);
  color: #f8f7f5;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.pm-tip.is-on {
  opacity: 1;
  transform: translateY(0);
}
.pm-tip-period {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 6px;
}
.pm-tip-body {
  color: rgba(248,247,245,0.88);
  white-space: pre-wrap;
}
[data-tip]:not([data-tip=""]) {
  cursor: help;
}
.pm-click[data-tip],
.pm-row-link[data-tip],
.pm-tile[data-tip] {
  cursor: pointer;
}

.enq-float-note {
  position: fixed;
  z-index: 420;
  width: min(475px, calc(100vw - 16px));
  height: min(520px, calc(100vh - 24px));
  min-width: 320px;
  min-height: 220px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid rgba(196, 126, 0, 0.35);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20, 16, 10, 0.22);
  overflow: hidden;
}
.enq-float-note[hidden] { display: none; }
.enq-float-note.is-dragging { user-select: none; }
.enq-float-note-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  background: #1c1814;
  color: #fff;
  cursor: grab;
}
.enq-float-note.is-dragging .enq-float-note-bar { cursor: grabbing; }
.enq-float-note-bar strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.enq-float-note-bar span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.enq-float-note-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.enq-float-note-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  overflow: auto;
}
.enq-note-resize {
  position: absolute;
  z-index: 3;
  touch-action: none;
}
.enq-note-resize-e {
  top: 48px;
  right: 0;
  bottom: 14px;
  width: 10px;
  cursor: ew-resize;
}
.enq-note-resize-s {
  left: 10px;
  right: 16px;
  bottom: 0;
  height: 10px;
  cursor: ns-resize;
}
.enq-note-resize-se {
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
}
.qtn-logi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 0 10px;
}
.qtn-logi-sec {
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.qtn-logi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.qtn-logi-head strong {
  font-size: 13px;
  color: #1c1917;
}
.qtn-logi-add,
.qtn-logi-x {
  border: 1px solid #e7e5e4;
  background: #fff;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.qtn-logi-add {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
  color: #421078;
}
.qtn-logi-labels,
.qtn-logi-row {
  display: grid;
  grid-template-columns: minmax(118px, 1.15fr) 1fr 1fr 64px 28px;
  gap: 6px;
  align-items: center;
}
.qtn-logi-labels {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 650;
  color: #78716c;
}
.qtn-logi-row { margin-bottom: 6px; }
.qtn-logi-row input,
.qtn-logi-row select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #e8e0f2;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
.qtn-logi-x {
  width: 28px;
  height: 28px;
  line-height: 1;
}
.qtn-logi-empty {
  margin: 0;
  font-size: 12px;
  color: #8a8176;
}
.qtn-recce {
  grid-column: 1 / -1;
}
.qtn-recce-labels,
.qtn-recce-row {
  display: grid;
  grid-template-columns: 1.4fr 140px 160px 28px;
  gap: 6px;
  align-items: center;
}
.qtn-recce-labels {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 650;
  color: #78716c;
}
.qtn-recce-row { margin-bottom: 6px; }
.qtn-recce-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #e8e0f2;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
@media (max-width: 900px) {
  .qtn-logi { grid-template-columns: 1fr; }
}
.enq-note-resize-se::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #c4b8a8;
  border-bottom: 2px solid #c4b8a8;
}
.enq-float-note-body label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6d655c;
}
.enq-float-note-body input,
.enq-float-note-body textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #e8e0f2;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  color: #1c1814;
  background: #fff;
  box-sizing: border-box;
}
.enq-float-note-body textarea {
  min-height: 110px;
  resize: vertical;
}
.enq-float-note-type-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6d655c;
}
.enq-float-note-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.enq-float-note-types button {
  border: 1px solid #e8e0f2;
  background: #fff;
  color: #1c1814;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}
.enq-float-note-types button.is-on {
  border-color: #7415E8;
  background: #fff6e8;
  color: #421078;
}
.enq-float-note-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.enq-float-note-presets button {
  border: 1px solid #e8e0f2;
  background: #fff;
  color: #1c1814;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}
.enq-float-note-presets button.is-on {
  border-color: #7415E8;
  background: #fff6e8;
  color: #421078;
}
.enq-float-note-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.enq-float-note-actions button {
  border: 1px solid #e6dfd4;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.enq-float-note-add {
  background: #1c1814 !important;
  color: #fff;
  border-color: #1c1814 !important;
}
.enq-float-note-status {
  margin-left: auto;
  font-size: 12px;
  color: #8a8176;
}
.enq-float-note-list {
  display: grid;
  gap: 8px;
}
.enq-float-note-empty {
  margin: 0;
  font-size: 13px;
  color: #8a8176;
}
.enq-float-note-item {
  padding: 10px 12px;
  border: 1px solid #efe8dc;
  border-radius: 12px;
  background: #fff;
}
.enq-float-note-item.is-editing { border-color: #7415E8; }
.enq-float-note-item header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.enq-float-note-item time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #421078;
}
.enq-float-note-item-actions button {
  border: 0;
  background: transparent;
  color: #6d655c;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0 0 0 8px;
}
.enq-float-note-item p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
}
.enq-float-note-meta {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #8a8176;
}
.act-ico.note.has-notes { color: #421078; }

.menu-cfg-page { display: flex; flex-direction: column; gap: 16px; }
.menu-cfg-bar {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;
  background: rgba(248, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.menu-cfg-tabs, .menu-cfg-filters { display: flex; gap: 4px; }
.menu-cfg-filters[hidden],
.menu-cfg-search[hidden] { display: none !important; }
.menu-cfg-tabs button,
.menu-cfg-filters button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 10px;
}
.menu-cfg-tabs button.is-on,
.menu-cfg-filters button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 22, 16, 0.08);
}
.menu-cfg-bar .btn-save { margin-left: auto; height: 38px; flex: 0 0 auto; }
.menu-cfg-search { flex: 1 1 180px; min-width: 160px; }
.menu-cfg-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
}
.menu-cfg-search input:focus { outline: 2px solid var(--form-focus-ring); outline-offset: 1px; border-color: var(--form-focus); }
.menu-cfg-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-cfg-group.is-empty { display: none; }
.menu-cfg-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.menu-cfg-group-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}
.menu-cfg-group-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.menu-cfg-group-count {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}
.menu-cfg-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 12px 20px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.menu-cfg-row:last-child { border-bottom: 0; }
.menu-cfg-row.is-hidden { display: none; }
.menu-cfg-row-name strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.menu-cfg-row-name span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.menu-cfg-row.is-set { background: linear-gradient(90deg, rgba(116, 21, 232, 0.12), transparent 42%); }
.menu-cfg-row.is-set .menu-cfg-row-name span { color: var(--bronze-deep); }
.menu-cfg-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-cfg-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
}
.menu-cfg-chip:hover { border-color: var(--bronze-soft); }
.menu-cfg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.menu-cfg-chip:has(input:checked) {
  background: #1a1612;
  border-color: #1a1612;
  color: #f4e6cf;
}
.menu-cfg-chip:has(input:disabled) { cursor: default; }
.menu-cfg-chip:has(input:focus-visible) { outline: 2px solid var(--form-focus); outline-offset: 2px; }
.menu-cfg-empty {
  margin: 0;
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
}
.menu-cfg-vendor {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 22px;
  padding: 22px;
}
.menu-cfg-vendor h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
}
.menu-cfg-vendor p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.menu-cfg-vendor .menu-cfg-chip { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.menu-cfg-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 640px) {
  .menu-cfg-row,
  .menu-cfg-vendor { grid-template-columns: 1fr; }
  .menu-cfg-bar { top: 8px; }
}

.notif-quiet {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(320px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #1a1612;
  color: #f8f4ee;
  box-shadow: 0 10px 28px rgba(20, 16, 12, 0.28);
  pointer-events: none;
}
.notif-quiet strong { display: block; font-size: 13px; }
.notif-quiet span { display: block; margin-top: 2px; font-size: 12px; color: rgba(248, 244, 238, 0.78); }
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: 420px;
  overflow: auto;
  background: #fff;
  color: #1a1612;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 16, 12, 0.22);
  z-index: 80;
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #efe7db;
}
.notif-panel-head button {
  border: 0;
  background: transparent;
  color: #421078;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.notif-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #efe6ff;
  color: inherit;
  text-decoration: none;
}
.notif-item strong { display: block; font-size: 13.5px; }
.notif-item span,
.notif-item time {
  display: block;
  margin-top: 4px;
  color: #6f675f;
  font-size: 12.5px;
  line-height: 1.4;
}
.notif-item.is-unread { background: #faf8f5; }
.notif-item.is-win {
  background: #e7f6ec;
  border-left: 3px solid #1f8a4c;
}
.notif-item.is-win strong { color: #146c3a; }
.notif-item.is-win span { color: #1d6b3c; white-space: pre-line; }
.notif-item.is-win.is-unread { background: #dff5e6; }
.notif-item.is-win.is-unread strong::before { background: #1f8a4c; }
.notif-quiet.is-win {
  background: #146c3a;
  color: #f4fff7;
}
.notif-quiet.is-win span { color: rgba(244, 255, 247, 0.92); white-space: pre-line; }
.notif-item.is-unread strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #7415E8;
}
.notif-empty { margin: 0; padding: 18px 14px; color: #6f675f; font-size: 13px; }
@media (max-width: 640px) {
  .topbar-right .icon-btn.notif-bell { display: grid; }
}

/* ========== Avent gradient buttons (global) ========== */
.avent-wrapper {
  position: relative;
  display: inline-flex;
  padding: 1.5px;
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  vertical-align: middle;
  max-width: 100%;
}
.avent-wrapper--block {
  display: flex;
  width: 100%;
}
.avent-wrapper:has([hidden]),
.avent-wrapper:has([aria-hidden="true"]),
.avent-wrapper:has([style*="display: none"]),
.avent-wrapper:has([style*="display:none"]) {
  display: none !important;
}
.avent-wrapper::before {
  content: "";
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    #ffffff 0deg,
    var(--avent-3) 10deg,
    var(--avent-2) 24deg,
    var(--avent-1) 40deg,
    transparent 64deg,
    transparent 360deg
  );
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transform: rotate(0deg);
  transform-origin: center center;
  will-change: transform;
}
.avent-wrapper.active::before,
.avent-wrapper:has(:active)::before {
  opacity: 1;
  animation: aventRotate 1.2s linear infinite;
  animation-direction: normal;
}
@keyframes aventRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

button.btn-primary,
a.btn-primary,
button.btn-save:not(.btn-delete),
a.btn-save:not(.btn-delete),
button.btn-gold,
a.btn-gold,
button.btn-ai,
.avent-btn,
.login-wrap button.btn {
  position: relative;
  z-index: 1;
  border: none !important;
  border-radius: 999px !important;
  background: var(--avent-gradient) !important;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--avent-shadow) !important;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
/* Row CTAs: same gradient, no avent wrapper / min-height override */
button.btn-create-prop,
a.btn-create-prop,
a.propose,
button.btn-vendor-complete {
  border: none !important;
  border-radius: 999px !important;
  background: var(--avent-gradient) !important;
  color: #ffffff !important;
  font-weight: 650;
  box-shadow: var(--avent-shadow) !important;
  text-decoration: none;
}
button.btn-primary,
a.btn-primary,
button.btn-save:not(.btn-delete),
a.btn-save:not(.btn-delete),
button.btn-ai,
.avent-btn {
  height: auto;
  min-height: 40px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button.btn-gold,
a.btn-gold {
  padding: 12px 22px;
  width: fit-content;
}
.avent-wrapper > .btn-primary,
.avent-wrapper > .btn-save,
.avent-wrapper > .btn-gold,
.avent-wrapper > .btn-ai,
.avent-wrapper > .avent-btn,
.avent-wrapper > .btn {
  width: 100%;
  flex: 1 1 auto;
}
button.btn-primary:hover,
a.btn-primary:hover,
button.btn-save:not(.btn-delete):hover,
a.btn-save:not(.btn-delete):hover,
button.btn-gold:hover,
a.btn-gold:hover,
button.btn-ai:hover,
.avent-btn:hover,
.login-wrap button.btn:hover,
button.btn-create-prop:hover,
a.btn-create-prop:hover,
a.propose:hover,
button.btn-vendor-complete:hover {
  transform: none;
  box-shadow: var(--avent-shadow) !important;
  filter: none;
}
button.btn-primary:active,
a.btn-primary:active,
button.btn-save:not(.btn-delete):active,
a.btn-save:not(.btn-delete):active,
button.btn-gold:active,
a.btn-gold:active,
button.btn-ai:active,
.avent-btn:active,
.login-wrap button.btn:active {
  transform: scale(0.97);
}
button.btn-primary:focus-visible,
a.btn-primary:focus-visible,
button.btn-save:not(.btn-delete):focus-visible,
a.btn-save:not(.btn-delete):focus-visible,
button.btn-gold:focus-visible,
a.btn-gold:focus-visible,
button.btn-ai:focus-visible,
.avent-btn:focus-visible,
.login-wrap button.btn:focus-visible {
  outline: 3px solid var(--avent-2);
  outline-offset: 6px;
}

/* Keep destructive save buttons red */
button.btn-save.btn-delete,
a.btn-save.btn-delete {
  background: #c24747 !important;
  box-shadow: 0 6px 16px rgba(194, 71, 71, 0.28) !important;
  border-radius: 999px !important;
  color: #fff !important;
}

.enq-ops-composer-action .btn-save:not(.btn-delete),
.prop-enq-modal .btn-ai,
.menu-cfg-bar .btn-save:not(.btn-delete) {
  background: var(--avent-gradient) !important;
  box-shadow: var(--avent-shadow) !important;
}

/* Outline / icon buttons share the same gradient border */
.btn-ai-outline:hover,
.btn-reset {
  color: var(--avent-ink);
}
.btn-ai-outline:hover {
  background:
    linear-gradient(var(--avent-outline-hover), var(--avent-outline-hover)) padding-box,
    var(--avent-gradient) border-box;
}

@media (prefers-reduced-motion: reduce) {
  .avent-wrapper.active::before {
    animation: none;
  }
  button.btn-primary,
  a.btn-primary,
  button.btn-save:not(.btn-delete),
  a.btn-save:not(.btn-delete),
  button.btn-gold,
  a.btn-gold,
  button.btn-ai,
  .avent-btn,
  .login-wrap button.btn {
    transition: none;
  }
}

/* ========== Form focus / accents — Avent purple (global) ========== */
.app-shell input[type="text"],
.app-shell input[type="email"],
.app-shell input[type="tel"],
.app-shell input[type="url"],
.app-shell input[type="number"],
.app-shell input[type="search"],
.app-shell input[type="password"],
.app-shell input[type="date"],
.app-shell input[type="time"],
.app-shell input[type="datetime-local"],
.app-shell input[type="month"],
.app-shell input:not([type]),
.app-shell select,
.app-shell textarea,
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="tel"],
.modal input[type="url"],
.modal input[type="number"],
.modal input[type="search"],
.modal input[type="password"],
.modal input:not([type]),
.modal select,
.modal textarea {
  caret-color: var(--form-focus);
}
.app-shell input[type="text"]:focus,
.app-shell input[type="email"]:focus,
.app-shell input[type="tel"]:focus,
.app-shell input[type="url"]:focus,
.app-shell input[type="number"]:focus,
.app-shell input[type="search"]:focus,
.app-shell input[type="password"]:focus,
.app-shell input[type="date"]:focus,
.app-shell input[type="time"]:focus,
.app-shell input[type="datetime-local"]:focus,
.app-shell input[type="month"]:focus,
.app-shell input:not([type]):focus,
.app-shell select:focus,
.app-shell textarea:focus,
.app-shell .field input:focus,
.app-shell .field select:focus,
.app-shell .field textarea:focus,
.app-shell .filter-select:focus,
.app-shell .qtn-in:focus,
.app-shell input[type="text"]:focus-visible,
.app-shell select:focus-visible,
.app-shell textarea:focus-visible,
.modal input[type="text"]:focus,
.modal input[type="email"]:focus,
.modal input[type="tel"]:focus,
.modal input[type="url"]:focus,
.modal input[type="number"]:focus,
.modal input[type="search"]:focus,
.modal input[type="password"]:focus,
.modal input:not([type]):focus,
.modal select:focus,
.modal textarea:focus,
.modal input:focus-visible,
.modal select:focus-visible,
.modal textarea:focus-visible {
  outline: none !important;
  border-color: var(--form-focus) !important;
  box-shadow: 0 0 0 3px var(--form-focus-ring) !important;
}
.app-shell input[type="checkbox"],
.app-shell input[type="radio"],
.modal input[type="checkbox"],
.modal input[type="radio"] {
  accent-color: var(--form-focus);
}
.enq-hist-type-dd.open #enqHistTypeSearch,
.prop-change-body textarea:focus,
.cal-dsm-input-wrap textarea:focus,
.ms-select.is-open .ms-control {
  border-color: var(--form-focus) !important;
  box-shadow: 0 0 0 3px var(--form-focus-ring) !important;
}
.qtn-in:focus {
  border-color: var(--form-focus) !important;
  background: #fff;
}
.close-x:focus-visible,
.vendor-extra-btn:focus-visible {
  outline-color: var(--form-focus);
}

/* ── Vendor master ───────────────────────────────────── */
.vm-page { display: grid; gap: 16px; }
.vm-stats { margin-bottom: 0; }
.vm-stat-text {
  font-size: 22px !important;
  letter-spacing: -0.02em;
}
.vm-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.vm-side,
.vm-detail {
  padding: 0;
  overflow: hidden;
  min-height: 480px;
}
.vm-side-search {
  padding: 12px 14px 6px;
}
.vm-side-search .filter-search {
  width: 100%;
}
.vm-cat-list {
  padding: 8px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(68vh, 720px);
  overflow: auto;
}
.vm-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.vm-cat-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.vm-cat-item strong {
  font-size: 13.5px;
  line-height: 1.3;
}
.vm-cat-item span {
  font-size: 12px;
  color: var(--muted);
}
.vm-cat-item-badge {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3eaff;
  color: var(--avent-ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vm-cat-item:hover {
  background: #faf6ff;
  border-color: rgba(116, 21, 232, 0.18);
}
.vm-cat-item.is-active {
  background: #faf8f5;
  border-color: rgba(116, 21, 232, 0.35);
  box-shadow: 0 0 0 2px rgba(116, 21, 232, 0.12);
}
.vm-cat-item.is-active .vm-cat-item-badge {
  background: var(--avent-ink);
  color: #fff;
}
.vm-detail-panel.is-active { display: block; }
.vm-kicker {
  margin: 0 0 4px !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--avent-1) !important;
}
.vm-detail .fu-detail-head h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--avent-ink);
}
.vm-detail-body {
  padding: 18px 20px 22px;
}
.vm-sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.vm-sub-head strong {
  font-size: 14px;
  color: var(--ink);
}
.vm-sub-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3eaff;
  color: var(--avent-ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vm-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.vm-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fcf9ff 100%);
  min-height: 52px;
}
.vm-chip-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #f3eaff;
  color: var(--avent-ink);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.vm-chip-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.vm-empty-subs {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed rgba(116, 21, 232, 0.28);
  border-radius: 14px;
  background: #faf6ff;
  margin-bottom: 18px;
}
.vm-empty-subs strong {
  display: block;
  color: var(--avent-ink);
  font-size: 15px;
  margin-bottom: 4px;
}
.vm-empty-subs p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.vm-add-form {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.vm-add-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.vm-add-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.vm-add-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.vm-add-row input:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.vm-add-row .btn-primary {
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
}
@media (max-width: 980px) {
  .vm-layout { grid-template-columns: 1fr; }
  .vm-side { min-height: 0; }
  .vm-cat-list { max-height: 280px; }
  .vm-detail .fu-detail-head {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .vm-chip-grid { grid-template-columns: 1fr; }
  .vm-add-row { flex-direction: column; }
  .vm-add-row .btn-primary { width: 100%; }
}

/* ── CRM page ────────────────────────────────────────── */
.crm-page {
  display: grid;
  gap: 12px;
  align-content: start; /* stop viewport stretch making stats tall */
  grid-template-rows: auto auto;
}
.crm-stats {
  margin-bottom: 0;
  align-items: start;
}
.crm-table-card { padding: 0; overflow: hidden; }
.crm-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.crm-table-head h2 {
  margin: 0 0 2px;
  font-size: 16px;
}
.crm-table-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.crm-search { min-width: min(280px, 100%); }
.crm-table-wrap { position: relative; }
.crm-table {
  width: 100%;
  border-collapse: collapse;
}
.crm-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--avent-ink);
  background: #faf8f5;
  padding: 12px 16px;
  border-top: 1px solid #ead8ff;
  white-space: nowrap;
}
.crm-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  font-size: 13.5px;
}
.crm-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 42px 16px;
  text-align: center;
  color: var(--muted);
}
.crm-empty[hidden] { display: none; }
.crm-empty-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3eaff;
  color: var(--avent-ink);
  margin-bottom: 6px;
}
.crm-empty strong { color: var(--ink); }
.crm-empty p { margin: 0; font-size: 13px; }
.crm-when.is-over { color: #b42318; font-weight: 750; }
.crm-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crm-row-actions .crm-action-btn,
.crm-row-actions a.crm-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.crm-row-actions .crm-action-btn.btn-outline {
  background: #fff;
  border: 1px solid rgba(116, 21, 232, 0.28);
  color: var(--avent-ink);
}
.crm-row-actions .crm-action-btn.btn-outline:hover {
  background: #faf8f5;
  border-color: rgba(116, 21, 232, 0.45);
  color: var(--avent-ink);
}
.crm-row-actions .crm-action-btn.btn-primary {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
.crm-row-actions .crm-action-btn-danger {
  border-color: rgba(209, 75, 75, 0.35) !important;
  color: #b42318 !important;
}
.crm-row-actions .crm-action-btn-danger:hover {
  background: #fdecec !important;
  border-color: rgba(209, 75, 75, 0.55) !important;
  color: #912018 !important;
}
.crm-subnote {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.crm-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.crm-badge-soft {
  background: #f3eaff;
  color: var(--avent-ink);
}
.crm-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: #faf8f5;
  border-radius: 12px;
}
.crm-mode-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.crm-mode-tab.is-active {
  background: #fff;
  color: var(--avent-ink);
  box-shadow: 0 1px 4px rgba(66, 16, 120, 0.12);
}
.crm-modal .modal-body { max-height: min(70vh, 640px); overflow: auto; }
@media (max-width: 900px) {
  .crm-table-head { flex-direction: column; }
  .crm-search { width: 100%; }
}

.crm-timeline-btn {
  border: 1px solid rgba(116, 21, 232, 0.22);
  background: #faf8f5;
  color: var(--avent-ink);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.crm-timeline-btn:hover {
  border-color: rgba(116, 21, 232, 0.45);
}
.crm-timeline-modal .modal-body {
  max-height: min(72vh, 680px);
  overflow: auto;
}
.crm-timeline-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.crm-timeline-summary > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #faf6ff;
  padding: 10px 12px;
}
.crm-timeline-summary span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.crm-timeline-summary strong {
  font-size: 13.5px;
  color: var(--avent-ink);
}
.crm-timeline-add {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.crm-timeline-add label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.crm-timeline-add textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 64px;
}
.crm-timeline-add textarea:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px var(--form-focus-ring);
}
.crm-timeline-add-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .crm-timeline-summary { grid-template-columns: 1fr; }
}

.crm-enq-link {
  font-weight: 700;
  color: var(--avent-ink);
  text-decoration: none;
}
.crm-enq-link:hover { color: var(--avent-1); text-decoration: underline; }

/* Compact CRM stats — content-sized, no stretched empty height */
.crm-stats {
  margin-bottom: 0;
  gap: 10px;
}
.crm-stats .stat-card {
  padding: 10px 12px;
  min-height: 0 !important;
  height: auto !important;
  align-items: center;
  align-self: start;
}
.crm-stats .stat-card::after {
  display: none; /* watermark was adding visual bulk */
}
.crm-stats .stat-ico {
  width: 34px;
  height: 34px;
}
.crm-stats .stat-ico svg {
  width: 17px;
  height: 17px;
}
.crm-stats .stat-card .label {
  font-size: 12px;
  margin-bottom: 0;
}
.crm-stats .stat-card .value {
  font-size: 20px;
  line-height: 1.1;
}
.crm-stats .stat-card .trend {
  font-size: 11px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-to-enq-modal .modal-body {
  max-height: min(74vh, 720px);
  overflow: auto;
  padding-top: 14px;
}
.crm-to-enq-grid {
  margin-bottom: 10px;
  gap: 12px;
}
.crm-to-enq-block {
  margin: 0 0 12px;
}
.crm-to-enq-section {
  margin: 4px 0 12px;
}
.crm-to-enq-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--avent-ink);
}
.crm-to-enq-section .enq-chip-grid {
  gap: 6px;
}
.crm-to-enq-section .enq-chip {
  padding: 6px 11px;
  font-size: 12px;
}

/* Add Enquiry stepper — same icon progress UI as Create Proposal (5 steps) */
#enqEditModal.is-qual .prop-modal-head.enq-add-head {
  gap: 8px;
  padding: 12px 16px 10px;
}
#enqEditModal .prop-progress-wrap.enq-qual-progress-wrap {
  margin: 0;
  padding: 10px 8px 8px;
  border: 1px solid #e8e0f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(53, 6, 111, 0.05);
}
#enqEditModal.is-qual .enq-qual-frame {
  background: #faf8f5 !important;
}
#enqEditModal .prop-progress.enq-add-progress,
#enqEditModal .enq-qual-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  width: 100%;
}
#enqEditModal .enq-add-progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  font-family: var(--font-sans);
  color: #6b6280;
}
#enqEditModal .enq-add-progress-step:not(:last-child)::after,
#enqEditModal .enq-add-progress-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 19px;
  height: 2px;
  background: #e4d6f5;
  pointer-events: none;
}
#enqEditModal .enq-add-progress-step:not(:last-child)::after {
  right: -1px;
  width: calc(50% - 26px);
}
#enqEditModal .enq-add-progress-step:not(:first-child)::before {
  left: -1px;
  width: calc(50% - 26px);
}
#enqEditModal .enq-add-progress-step.on:not(:last-child)::after {
  background: #e4d6f5;
}
#enqEditModal .enq-add-progress-step.done:not(:last-child)::after,
#enqEditModal .enq-add-progress-step.done:not(:first-child)::before,
#enqEditModal .enq-add-progress-step.on:not(:first-child)::before {
  background: var(--avent-gradient);
}
#enqEditModal .enq-add-progress-step > span.n {
  position: relative;
  z-index: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  background: #faf8f5 !important;
  border: 1px solid #e4d6f5 !important;
  color: #5B16B5 !important;
  box-shadow: none;
  flex: none;
}
#enqEditModal .enq-add-progress-step > span.n svg {
  width: 18px;
  height: 18px;
  display: block;
}
#enqEditModal .enq-add-progress-step > span.t {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: auto !important;
  height: auto !important;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b6280;
  white-space: nowrap;
}
#enqEditModal .enq-add-progress-step .tn {
  font-size: 11px;
  font-weight: 600;
  color: #9a90b0;
  line-height: 1.1;
}
#enqEditModal .enq-add-progress-step .tl {
  display: block !important;
  color: #6b6280;
  font-weight: 600;
}
#enqEditModal .enq-add-progress-step.on > span.n {
  background: var(--avent-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 0 0 6px rgba(192, 38, 211, 0.18), var(--avent-shadow);
}
#enqEditModal .enq-add-progress-step.on .tl {
  color: var(--avent-ink);
  font-weight: 750;
}
#enqEditModal .enq-add-progress-step.on .tn {
  color: #5B16B5;
}
#enqEditModal .enq-add-progress-step.done > span.n {
  background: #efe6ff !important;
  border-color: #d4c2f0 !important;
  color: #5B16B5 !important;
}
#enqEditModal .enq-add-progress-step.done > span.n svg {
  display: none;
}
#enqEditModal .enq-add-progress-step.done > span.n::after {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid #5B16B5;
  border-bottom: 2px solid #5B16B5;
  transform: rotate(-45deg);
}
#enqEditModal .enq-add-progress-step.done .tl {
  color: #4a4260;
  font-weight: 650;
}
@media (max-width: 480px) {
  #enqEditModal .enq-add-progress-step .tl {
    display: none !important;
  }
}
