/* =========================================================
   PUBLIC LANDING PAGE & MOVING HERO CAROUSEL
   ========================================================= */
.public-landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-topbar {
  background: linear-gradient(135deg, #280417 0%, #3d0725 50%, #4a0d33 100%);
  padding: 12px 24px;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(40, 4, 23, 0.25);
}

.landing-topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #fbcfe8;
}

.landing-logo strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.landing-logo small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f9a8d4;
}

.landing-search-wrap {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.landing-search-wrap svg {
  width: 15px;
  height: 15px;
  color: #db2777;
}

.landing-search-wrap input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  color: #334155 !important;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-hotline svg {
  width: 20px;
  height: 20px;
  color: #f472b6;
}

.landing-hotline span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbcfe8;
}

.landing-hotline strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
}

.landing-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
}

.landing-portal-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.landing-login-btn {
  padding: 8px 22px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #4a0d33;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.18s;
}

.landing-login-btn:hover {
  transform: translateY(-1px);
}

.landing-nav-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.landing-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  overflow-x: auto;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.nav-pill svg {
  width: 15px;
  height: 15px;
}

.nav-pill:hover {
  background: #fdf2f8;
  color: #be185d;
}

.nav-pill.active {
  background: #4a0d33;
  color: #ffffff;
}

/* Main Moving Card */
.landing-main {
  max-width: 1300px;
  margin: 32px auto;
  padding: 0 24px;
  width: 100%;
}

.landing-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffe5ee 0%, #ffd7e7 40%, #fbcfe8 100%);
  border: 1px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 16px 45px rgba(219, 39, 119, 0.12);
  padding: 48px;
  min-height: 440px;
}

/* Ambient Heartbeat SVG Animation */
.ecg-ambient-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
}

.ecg-ambient-svg {
  width: 100%;
  height: 100%;
}

.pulse-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ecgDash 3.2s linear infinite;
}

@keyframes ecgDash {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}

/* Slides */
.hero-carousel-slide {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  animation: fadeInSlide 0.5s ease-out;
}

.hero-carousel-slide.active {
  display: grid;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-left h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  color: #3b0724;
  margin: 14px 0 16px;
}

.highlight-text {
  color: #be185d;
}

.hero-left p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 24px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.4);
  font-size: 11px;
  font-weight: 800;
  color: #9d174d;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #db2777;
  box-shadow: 0 0 8px #db2777;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta {
  padding: 13px 24px !important;
  font-size: 14px !important;
  border-radius: 14px !important;
}

/* Stage Card (Right Graphic) */
.hospital-stage-card {
  position: relative;
  background: linear-gradient(135deg, #4a0d33 0%, #32061f 60%, #1e0312 100%);
  border-radius: 24px;
  padding: 32px 28px;
  color: #ffffff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(40, 4, 23, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stage-variant-2 {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 60%, #4a0d33 100%);
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #4a0d33;
  font-size: 11px;
  font-weight: 900;
  align-self: flex-start;
}

.stage-accredited {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 12px;
  color: #3b0724;
}

.stage-accredited svg {
  width: 16px;
  height: 16px;
  color: #db2777;
}

.stage-accredited small {
  display: block;
  font-size: 8px;
  font-weight: 900;
  color: #94a3b8;
}

.stage-accredited strong {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: #1e293b;
}

.stage-details h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.stage-details p {
  margin: 0;
  font-size: 12px;
  color: #fbcfe8;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 5;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(219, 39, 119, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot-btn.active {
  width: 28px;
  background: #be185d;
}

/* Highlight Strip */
.landing-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.metric-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.metric-box:hover {
  transform: translateY(-2px);
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fdf2f8;
  color: #be185d;
  display: grid;
  place-items: center;
}

.metric-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.metric-box strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.metric-box small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-carousel-slide {
    grid-template-columns: 1fr;
  }
  .landing-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-search-wrap,
  .landing-hotline {
    display: none;
  }
}

/* =========================================================
   BAMMI PUBLIC LANDING PAGE + KEEP PRIVATE PORTALS INTACT
   ========================================================= */
/* Critical: author display rules must never reveal a section carrying [hidden]. */
#app[hidden], #customerDashboard[hidden], #publicLanding[hidden],
#accountChooser[hidden], #login[hidden], #customerAuthScreen[hidden],
.customer-view[hidden], section[hidden], div[hidden] { display:none !important; }

#publicLanding { display:flex; flex-direction:column; min-height:100vh; }
#publicLanding .landing-topbar { position:relative; z-index:5; }
#publicLanding .landing-nav-strip { position:sticky; top:0; z-index:4; }
#publicLanding .landing-main { width:min(1320px, calc(100% - 48px)); margin:32px auto 64px; }
#publicLanding .landing-hero-card { overflow:hidden; }
#publicLanding .hero-carousel-slide { min-height:420px; }
#publicLanding .hero-left h1 { max-width:620px; }
.bammi-shop-highlights { margin-bottom:34px; }
.bammi-info-section { scroll-margin-top:90px; margin:30px 0 42px; }
.bammi-section-heading { text-align:center; margin:0 auto 22px; }
.bammi-section-heading > span { color:var(--brand-700); font-size:11px; font-weight:900; letter-spacing:2px; }
.bammi-section-heading h2 { margin:8px 0; color:var(--text); font-size:clamp(26px,3vw,36px); font-weight:900; }
.bammi-section-heading p { margin:0; color:var(--text-muted); }
.bammi-staff-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.bammi-staff-card,.bammi-about-card {
  background:var(--panel); border:1px solid var(--border); border-radius:22px;
  padding:26px; box-shadow:var(--shadow-card); color:var(--text);
}
.bammi-staff-card { text-align:center; }
.bammi-staff-avatar { width:54px;height:54px;border-radius:18px;margin:0 auto 12px;display:grid;place-items:center;
  background:linear-gradient(135deg,#f9a8d4,#db2777);color:white;font-size:25px;font-weight:900; }
.bammi-staff-card h3 { margin:0 0 18px; font-size:20px; color:var(--text); }
.bammi-discord-entry { display:flex; flex-direction:column; gap:5px; padding:12px; margin-top:9px;
  border:1px solid var(--border); border-radius:13px; background:var(--bg); }
.bammi-discord-entry strong { color:var(--text); }
.bammi-discord-entry code { color:var(--text-muted); font-size:12px; overflow-wrap:anywhere; }
.bammi-about-card { max-width:1000px; margin:0 auto; padding:clamp(22px,4vw,38px); line-height:1.85; }
.bammi-about-card h3 { margin:0 0 14px; font-size:22px; color:var(--brand-700); }
.bammi-about-card p { color:var(--text-muted); margin:0 0 14px; }
.bammi-about-card .bammi-signoff { margin-top:22px; font-size:18px; }
.bammi-social-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.bammi-social-links a { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px;
  background:var(--brand-50); border:1px solid var(--border); color:var(--brand-700); text-decoration:none; font-weight:800; }
:root[data-theme="dark"] .bammi-staff-card,
:root[data-theme="dark"] .bammi-about-card { background:var(--panel); border-color:var(--border); }
:root[data-theme="dark"] .bammi-discord-entry { background:#211621; }
:root[data-theme="dark"] .bammi-social-links a { background:#3b2336; color:#ffc1df; border-color:var(--border); }
@media(max-width:760px) {
  #publicLanding .landing-main { width:min(100% - 28px,1320px); margin:20px auto 42px; }
  #publicLanding .hero-carousel-slide { min-height:unset; padding:28px 20px; }
  .bammi-staff-grid { grid-template-columns:1fr; }
  .bammi-staff-card,.bammi-about-card { padding:20px; }
  .bammi-social-links { flex-direction:column; }
  .bammi-social-links a { justify-content:center; }
}

.bammi-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 14px;border-radius:999px;border:1px solid rgba(249,168,212,.5);background:#fff7fa;color:#881337;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
.bammi-theme-toggle svg{width:16px;height:16px}
:root[data-theme="dark"] .bammi-theme-toggle{background:#332233;color:#ffe4f1;border-color:rgba(249,168,212,.3)}
@media(max-width:760px){.bammi-theme-toggle span{display:none}.bammi-theme-toggle{padding:9px 11px}}


/* =========================================================
   BAMMI DARK MODE — full palette for public and private pages
   ========================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#120b13;
  --panel:#211522;
  --border:#4a2944;
  --border-light:#352036;
  --text:#fff0f7;
  --text-muted:#c3aabd;
  --text-light:#987f94;
  --brand-50:#321b2d;
  --brand-100:#48213a;
  --brand-200:#67304f;
  --brand-300:#a84b7b;
  --green-soft:#153a2e;
  --green-text:#8be0b8;
  --red-soft:#421d2c;
  --red:#ff8eaa;
  --shadow-card:0 12px 32px rgba(0,0,0,.25);
}
:root[data-theme="dark"] body { background:#120b13 !important; color:var(--text) !important; }
:root[data-theme="dark"] .landing-topbar { background:linear-gradient(110deg,#170813,#350b28 65%,#26091f) !important; }
:root[data-theme="dark"] .landing-nav-strip,
:root[data-theme="dark"] .landing-nav-inner { background:#1b111d !important; border-color:#42213b !important; }
:root[data-theme="dark"] .nav-pill { color:#e6cddd !important; }
:root[data-theme="dark"] .nav-pill.active { background:#b51668 !important; color:#fff !important; }
:root[data-theme="dark"] .landing-main,
:root[data-theme="dark"] .bammi-info-section { color:var(--text) !important; }
:root[data-theme="dark"] .landing-hero-card {
  background:linear-gradient(135deg,#32162c 0%,#4b1b3a 48%,#32142e 100%) !important;
  border-color:#77345e !important; box-shadow:0 18px 48px rgba(0,0,0,.3) !important;
}
:root[data-theme="dark"] .hero-left h1 { color:#fff0f7 !important; }
:root[data-theme="dark"] .hero-left p,
:root[data-theme="dark"] .bammi-section-heading p { color:#d4bbce !important; }
:root[data-theme="dark"] .hero-left .highlight-text { color:#ff8bc5 !important; }
:root[data-theme="dark"] .metric-box,
:root[data-theme="dark"] .bammi-staff-card,
:root[data-theme="dark"] .bammi-about-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .customer-portal aside {
  background:#211522 !important; color:var(--text) !important; border-color:#4a2944 !important;
}
:root[data-theme="dark"] .bammi-discord-entry { background:#170f19 !important; border-color:#4a2944 !important; }
:root[data-theme="dark"] .bammi-about-card p,
:root[data-theme="dark"] .bammi-discord-entry code { color:#c3aabd !important; }
:root[data-theme="dark"] .bammi-social-links a { background:#3a1d34 !important; color:#ffb8dc !important; border-color:#623052 !important; }
:root[data-theme="dark"] .landing-search-wrap,
:root[data-theme="dark"] .landing-search-wrap input { background:#241522 !important; color:#fff0f7 !important; border-color:#56304c !important; }
:root[data-theme="dark"] .landing-search-wrap input::placeholder { color:#a98fa4 !important; }
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  background:#1b111d !important; color:#fff0f7 !important; border-color:#57304e !important;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color:#a98fa4 !important; }
:root[data-theme="dark"] .secondary-btn,
:root[data-theme="dark"] .nav-link,
:root[data-theme="dark"] .customer-auth-tab {
  background:#2b192a !important; color:#f8ddeb !important; border-color:#56304c !important;
}
:root[data-theme="dark"] .primary-btn,
:root[data-theme="dark"] .btn-hero-book { background:linear-gradient(135deg,#ec2389,#b50d68) !important; color:#fff !important; }
:root[data-theme="dark"] .btn-hero-explore { background:#2b192a !important; color:#ffd7ea !important; border-color:#71405e !important; }
:root[data-theme="dark"] .landing-login-btn,
:root[data-theme="dark"] .bammi-theme-toggle { background:#3a1d34 !important; color:#ffe6f2 !important; border-color:#74405f !important; }
:root[data-theme="dark"] .landing-hotline,
:root[data-theme="dark"] .landing-logo strong { color:#fff !important; }
:root[data-theme="dark"] .login-screen { background:#120b13 !important; }
:root[data-theme="dark"] .form-message { color:#ffc2df !important; }
:root[data-theme="dark"] .bammi-staff-card h3,
:root[data-theme="dark"] .bammi-about-card h3,
:root[data-theme="dark"] .bammi-section-heading h2 { color:#ffe6f2 !important; }
:root[data-theme="dark"] .bammi-section-heading > span { color:#ff80bd !important; }

/* Separate public navigation pages */
#publicLanding [data-landing-view][hidden] { display:none !important; }
#publicLanding .landing-main[data-landing-view="home"] { display:block; }
#publicLanding .landing-page-section { width:min(1320px,calc(100% - 48px)); margin:42px auto 64px; }
#publicLanding .bammi-info-section[hidden] { display:none !important; }

/* Customer auth: fixed upper-left back link and clear Sign In / Sign Up choice */
#customerAuthScreen .login-card { position:relative; padding-top:54px !important; }
#customerAuthScreen .login-card > .compact-btn,
#login .login-card > .compact-btn,
#accountChooser .login-card > .compact-btn {
  position:fixed !important; z-index:1000; top:18px; left:18px;
  width:auto !important; margin:0 !important; box-shadow:0 6px 22px rgba(0,0,0,.12);
}
.customer-auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:18px 0 16px; padding:5px;
  border:1px solid var(--border); border-radius:14px; background:var(--bg); }
.customer-auth-tab { border:0; border-radius:10px; padding:11px 14px; font-weight:900; color:var(--text-muted); background:transparent; }
.customer-auth-tab.active { background:var(--brand-700); color:white; box-shadow:0 4px 12px rgba(190,24,93,.2); }
#customerAuthScreen #customerEmailForm[hidden],
#customerAuthScreen #customerLoginForm[hidden],
#customerAuthScreen #customerCodeForm[hidden] { display:none !important; }
#customerAuthScreen #backToOwnerLogin { display:none !important; }

@media(max-width:760px) {
  #publicLanding .landing-topbar-inner { flex-wrap:wrap; gap:10px; }
  #publicLanding .landing-actions { flex-wrap:wrap; justify-content:flex-end; }
  #publicLanding .landing-search-wrap { order:3; flex-basis:100%; max-width:none; }
  #publicLanding .landing-page-section { width:calc(100% - 28px); margin:24px auto 42px; }
  #customerAuthScreen .login-card > .compact-btn,
  #login .login-card > .compact-btn,
  #accountChooser .login-card > .compact-btn { top:10px; left:10px; }
}

#publicLanding > .landing-page-section:not([hidden]) { display:block; }
#publicLanding > .landing-main:not([hidden]) { display:block; }



/* ===== Complete BAMMI's Booch landing + portal styling ===== */
.landing-logo-icon.bammi-heart-logo {
  background:linear-gradient(145deg,#ed3294,#bd176d);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  box-shadow:0 8px 22px rgba(219,39,119,.28);
}
.landing-logo-icon.bammi-heart-logo svg { width:23px;height:23px;stroke-width:2.7; }
.brand-icon.bammi-logo-mark {
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  color:#fff;background:linear-gradient(145deg,#ed3294,#bd176d);
  box-shadow:0 8px 22px rgba(219,39,119,.22);
}
.brand-icon.bammi-logo-mark svg { width:24px;height:24px;stroke-width:2.6; }

/* Buyer portal: override legacy inline white sidebar and fixed-width layout. */
#customerDashboard { min-height:100vh; padding:1px 0 34px; }
#customerDashboard > .topbar {
  max-width:1500px !important; margin:18px auto 0 !important;
  padding:15px 22px !important; min-height:76px;
  border:1px solid var(--border); border-radius:20px;
  background:var(--panel); box-shadow:var(--shadow-card);
}
#customerDashboard > .topbar strong { color:var(--text); font-size:20px; font-weight:950; }
#customerDashboard .customer-main {
  max-width:1500px !important; width:100%;
  margin:0 auto !important; padding:24px clamp(14px,2vw,28px) 40px;
  grid-template-columns:250px minmax(0,1fr) !important; gap:24px !important;
  align-items:start;
}
#customerDashboard .customer-side-menu {
  position:sticky; top:18px;
  display:flex !important; flex-direction:column; gap:8px !important;
  height:auto !important; padding:17px !important;
  border:1px solid var(--border) !important; border-radius:20px !important;
  background:var(--panel) !important; box-shadow:var(--shadow-card);
}
#customerDashboard .customer-menu-heading {
  padding:4px 10px 12px !important; color:var(--text-light) !important;
  font-size:10px; font-weight:950; letter-spacing:1.6px;
}
#customerDashboard .customer-side-menu button {
  display:flex; align-items:center; justify-content:flex-start;
  width:100%; min-height:46px; padding:11px 13px;
  border-radius:12px; text-align:left; font-weight:850;
}
#customerDashboard .customer-side-menu button:hover {
  background:var(--brand-50); border-color:var(--border); color:var(--brand-700);
}
#customerDashboard .customer-content { min-width:0; display:grid; gap:20px; }
#customerDashboard .customer-view { min-width:0; }
#customerDashboard .customer-content .content-card {
  padding:clamp(19px,2.3vw,29px); border-radius:20px;
  border:1px solid var(--border); background:var(--panel); box-shadow:var(--shadow-card);
}
#customerDashboard .customer-content h3 {
  color:var(--text); font-size:19px; font-weight:950; letter-spacing:-.025em;
}
#customerDashboard .customer-content p { color:var(--text-muted); }
#customerDashboard .customer-content .card-heading {
  display:flex; align-items:flex-start; justify-content:space-between;
  flex-wrap:wrap; gap:12px; margin-bottom:20px;
}
#customerDashboard .customer-content .formgrid { gap:17px; }
#customerDashboard .customer-content .field { min-width:0; }
#customerDashboard .customer-content input:not([type=file]):not([type=checkbox]),
#customerDashboard .customer-content select,
#customerDashboard .customer-content textarea {
  width:100%; min-height:45px; border-radius:12px;
}
#customerDashboard .customer-content textarea { min-height:110px; }
#customerDashboard .customer-content .primary-btn,
#customerDashboard .customer-content .secondary-btn { min-height:43px; border-radius:12px; }
#customerDashboard .stats { gap:13px; }
#customerDashboard .stat-card {
  border:1px solid var(--border); border-radius:17px;
  background:var(--panel); box-shadow:var(--shadow-card); padding:19px;
}
#customerDashboard .stat-card strong { font-size:26px; font-weight:950; }
#customerDashboard .customer-content .empty-state {
  padding:38px 18px; border:1px dashed var(--border);
  border-radius:16px; background:var(--panel-soft); color:var(--text-muted);
}

/* Owner portal: keep all existing panels and actions, improve visual consistency. */
#app .sidebar { box-shadow:8px 0 28px rgba(50,6,31,.15); }
#app .sidebar .brand { padding-bottom:22px; }
#app .topbar {
  min-height:74px; padding:14px clamp(16px,2.5vw,32px);
  border-bottom:1px solid var(--border); box-shadow:0 5px 20px rgba(50,6,31,.05);
}
#app .topbar-title-block strong { font-size:20px; font-weight:950; letter-spacing:-.025em; }
#app .content-card,#app .stat-card,#app .panel {
  border-radius:18px;
}
#app .nav-link { min-height:44px; border-radius:12px; font-weight:850; }
#app button.primary-btn,#app button.secondary-btn,#app button.danger-btn {
  border-radius:11px;
}

/* Dark mode must also override legacy inline white dashboard surfaces. */
:root[data-theme="dark"] #customerDashboard > .topbar,
:root[data-theme="dark"] #customerDashboard .customer-side-menu,
:root[data-theme="dark"] #customerDashboard .customer-content .content-card,
:root[data-theme="dark"] #customerDashboard .stat-card {
  background:#211522 !important; color:#fff0f7 !important; border-color:#4a2944 !important;
}
:root[data-theme="dark"] #customerDashboard .customer-side-menu button {
  background:#2b192a !important; color:#f8ddeb !important; border-color:#56304c !important;
}
:root[data-theme="dark"] #customerDashboard .customer-side-menu button:hover {
  background:#48213a !important; color:#fff !important;
}
:root[data-theme="dark"] #customerDashboard .customer-content input,
:root[data-theme="dark"] #customerDashboard .customer-content select,
:root[data-theme="dark"] #customerDashboard .customer-content textarea {
  background:#1b111d !important; color:#fff0f7 !important; border-color:#57304e !important;
}
:root[data-theme="dark"] #customerDashboard .customer-content label,
:root[data-theme="dark"] #customerDashboard .customer-content strong { color:#fff0f7; }
:root[data-theme="dark"] #customerDashboard .stat-card span { color:#c3aabd; }
:root[data-theme="dark"] .landing-logo-icon.bammi-heart-logo { background:linear-gradient(145deg,#ec2389,#a80e60); }
@media(max-width:900px) {
  #customerDashboard .customer-main { grid-template-columns:1fr !important; gap:15px !important; }
  #customerDashboard .customer-side-menu { position:static; display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #customerDashboard .customer-menu-heading { grid-column:1/-1; }
}
@media(max-width:580px) {
  #customerDashboard > .topbar { margin:10px 10px 0 !important; padding:12px !important; }
  #customerDashboard .customer-main { padding:14px 10px 28px; }
  #customerDashboard .customer-side-menu button { font-size:11px; padding:9px; }
  #customerDashboard .customer-content .content-card { padding:16px; }
  #customerDashboard .stats { grid-template-columns:1fr; }
}


/* =========================================================
   BAMMI'S BOOCH DISCOUNTED SHOP — shared footer + refinement
   ========================================================= */
.bammi-global-footer {
  width: min(1260px, calc(100% - 40px));
  margin: 26px auto 24px;
  padding: 18px 20px 14px;
  border: 1px solid var(--border, #f1dce8);
  border-radius: 20px;
  background: var(--panel, #fff);
  box-shadow: var(--shadow-card, 0 8px 24px rgba(157,23,77,.06));
  color: var(--text, #1e293b);
}
.bammi-footer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.bammi-footer-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--panel-soft, #fdf2f8);
  border: 1px solid var(--border-light, #f8ecf3);
}
.bammi-footer-stat strong {
  color: var(--text, #1e293b);
  font-size: clamp(20px,2vw,27px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.04em;
}
.bammi-footer-stat span {
  color: var(--text-muted, #64748b);
  font-size: 12px;
  font-weight: 700;
}
.bammi-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}
.bammi-footer-bottom i { font-style: normal; color: var(--brand-600); padding: 0 3px; }
.bammi-footer-bottom a { color: var(--brand-700); font-weight: 900; text-decoration: none; }
.bammi-footer-bottom a:hover { text-decoration: underline; }
.dashboard-footer { margin-top: 28px; margin-bottom: 24px; }
.owner-footer { width: calc(100% - 48px); }
:root[data-theme="dark"] .bammi-global-footer {
  background: #100d19;
  color: #f8eaf3;
  border-color: #30243a;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
:root[data-theme="dark"] .bammi-footer-stat {
  background: #151323;
  border-color: #30243a;
}
:root[data-theme="dark"] .bammi-footer-stat strong { color: #fff3fa; }
:root[data-theme="dark"] .bammi-footer-stat span,
:root[data-theme="dark"] .bammi-footer-bottom { color: #b9adc2; }
:root[data-theme="dark"] .bammi-footer-bottom { border-top-color: #30243a; }
:root[data-theme="dark"] .bammi-footer-bottom a { color: #ff83c1; }

@media (max-width: 760px) {
  .bammi-global-footer { width: calc(100% - 24px); padding: 14px; margin: 18px auto; }
  .bammi-footer-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .bammi-footer-stat { padding: 12px; }
  .bammi-footer-bottom { flex-direction: column; align-items: flex-start; }
  .owner-footer { width: calc(100% - 24px); }
}
@media (max-width: 420px) {
  .bammi-footer-stat strong { font-size: 19px; }
  .bammi-footer-stat span { font-size: 10px; }
}


/* Customer portal and authentication refinements */
#customerDashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#customerDashboard[hidden] { display: none !important; }
#customerDashboard .customer-main { flex: 1 0 auto; }
#customerDashboard > .bammi-global-footer { margin-top: auto; }
.password-field { position: relative; display: flex; align-items: center; width: 100%; }
.password-field input { width: 100%; padding-right: 48px !important; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-muted); cursor: pointer; z-index: 2;
}
.password-toggle:hover { background: var(--brand-50); color: var(--brand-primary); }
.customer-auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:5px; margin:14px 0 18px; border:1px solid var(--border); border-radius:14px; background:var(--panel-soft); }
.customer-auth-tab { min-height:42px; border:0; border-radius:10px; background:transparent; color:var(--text-muted); font-weight:800; cursor:pointer; }
.customer-auth-tab.active { background:var(--brand-primary); color:#fff; box-shadow:0 4px 12px rgba(190,24,93,.18); }
.password-mask { letter-spacing:2px; font-weight:800; }
#ownerCustomerList .data-table { width:100%; min-width:850px; border-collapse:collapse; }
#ownerCustomerList .data-table th, #ownerCustomerList .data-table td { padding:12px; text-align:left; border-bottom:1px solid var(--border); vertical-align:middle; }
#ownerCustomerList .data-table th { background:var(--brand-50); color:var(--text); font-size:12px; }
#ownerCustomerList .data-table td { font-size:13px; }
#ownerCustomerList .data-table small { color:var(--text-muted); }
#customerDashboard .customer-side-menu button,
#customerDashboard .customer-content button,
#customerDashboard .customer-content select { cursor:pointer; }
:root[data-theme="dark"] #customerDashboard .customer-auth-tabs { background:#1b111d; border-color:#57304e; }
:root[data-theme="dark"] #customerDashboard .customer-auth-tab { color:#e9c8dc; }
:root[data-theme="dark"] #customerDashboard .customer-auth-tab.active { background:linear-gradient(135deg,#ec2389,#a80e60); color:#fff; }
:root[data-theme="dark"] #customerDashboard .password-toggle { color:#f5cde2; }
:root[data-theme="dark"] #ownerCustomerList .data-table th { background:#32192e; color:#fff0f7; }
:root[data-theme="dark"] #ownerCustomerList .data-table td { color:#f8eaf3; border-color:#42253c; }
:root[data-theme="dark"] #ownerCustomerList .data-table small { color:#c3aabd; }
@media(max-width:760px) {
  #customerDashboard .customer-main { width:100%; }
  #ownerCustomerList .data-table { min-width:900px; }
}

/* Respect the HTML hidden attribute even on elements with inline display rules. */
[hidden] { display: none !important; }

/* =========================================================
   BAMMI CONSOLIDATED POLISH — 2026-11-08
   ========================================================= */
/* Public header: remove unused search/emergency slots and keep account/theme controls tidy. */
#publicLanding .landing-topbar-inner { justify-content:space-between; gap:18px; }
#publicLanding .landing-actions { margin-left:auto; gap:12px; flex-shrink:0; }
#publicLanding .landing-login-btn { min-width:86px; white-space:nowrap; }
#publicLanding #openOwnerLoginBtn[data-customer-logged-in="true"] { max-width:190px; overflow:hidden; text-overflow:ellipsis; }

/* Customer portal header uses a single aligned row. */
#customerDashboard > .customer-portal-header {
  width:min(1300px,calc(100% - 32px)); max-width:1300px !important;
  min-height:78px; margin:18px auto 0 !important; padding:14px 20px !important;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
}
.customer-portal-brand,.customer-portal-actions { display:flex; align-items:center; }
.customer-portal-brand { gap:12px; min-width:0; }
.customer-portal-brand strong { line-height:1.2; white-space:nowrap; }
.customer-portal-actions { justify-content:flex-end; gap:10px; flex-wrap:nowrap; }
.customer-portal-actions > button { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
.customer-signout-btn { min-width:104px; text-align:center; }
.customer-signout-btn svg { flex:0 0 auto; }
.customer-signout-btn span { display:inline-block; line-height:1; }
@media(max-width:680px) {
  #customerDashboard > .customer-portal-header { width:calc(100% - 20px); padding:12px !important; align-items:flex-start; flex-direction:column; }
  .customer-portal-actions { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .customer-portal-actions > button { min-width:0; padding:9px 6px !important; font-size:11px !important; }
  .customer-portal-brand strong { font-size:18px !important; }
}

/* Footer stays at the bottom of the available dashboard workspace and lines up with content. */
#app { min-height:100vh; }
#app .main-content { min-height:100vh; min-width:0; display:flex; flex-direction:column; }
#app .main-content > .dashboard-footer,
#app .main-content > .owner-footer { width:100%; max-width:none; margin: auto 0 0; box-sizing:border-box; }
#app .main-content > .panel { flex:0 0 auto; }
#app .main-content > .dashboard-footer { margin-top:auto; }
@media(max-width:760px) {
  #app .main-content > .dashboard-footer,
  #app .main-content > .owner-footer { width:100%; margin:24px 0 0; }
}
#customerDashboard { min-height:100vh; }
#customerDashboard > .dashboard-footer { width:min(1300px,calc(100% - 32px)); margin: auto auto 24px; }

/* The source select is visually clipped, not rendered next to its custom control. */
.bammi-select-wrap { position:relative; width:100%; min-width:0; }
select.bammi-native-select {
  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; clip-path:inset(50%) !important;
  white-space:nowrap !important; border:0 !important; opacity:0 !important;
  pointer-events:none !important;
}
.bammi-select-trigger {
  width:100%; min-height:46px; padding:11px 42px 11px 15px;
  display:flex; align-items:center; justify-content:flex-start; text-align:left;
  position:relative; border:1px solid var(--border); border-radius:12px;
  background:var(--panel) !important; color:var(--text) !important;
  font-size:13px; font-weight:650; box-shadow:none; cursor:pointer;
}
.bammi-select-trigger::after {
  content:""; position:absolute; right:16px; top:50%; width:8px; height:8px;
  border-right:2px solid var(--text-muted); border-bottom:2px solid var(--text-muted);
  transform:translateY(-70%) rotate(45deg); transition:transform .16s ease;
}
.bammi-select-trigger[aria-expanded="true"]::after { transform:translateY(-25%) rotate(225deg); }
.bammi-select-trigger.is-placeholder { color:var(--text-muted) !important; }
.bammi-select-trigger:focus-visible { outline:3px solid rgba(219,39,119,.2); border-color:var(--brand-600); }
.bammi-select-menu {
  position:absolute; z-index:1000; inset:calc(100% + 6px) 0 auto; max-height:240px; overflow:auto;
  padding:6px; border:1px solid var(--border); border-radius:13px;
  background:var(--panel); box-shadow:0 16px 36px rgba(45,8,30,.18);
}
.bammi-select-menu[hidden] { display:none !important; }
.bammi-select-option {
  display:flex; width:100%; min-height:40px; align-items:center; padding:9px 11px;
  border:0; border-radius:9px; background:transparent; color:var(--text);
  text-align:left; font-size:13px; cursor:pointer;
}
.bammi-select-option:hover,.bammi-select-option:focus { background:var(--brand-50); color:var(--brand-700); outline:none; }
:root[data-theme="dark"] .bammi-select-trigger,
:root[data-theme="dark"] .bammi-select-menu { background:#211522 !important; color:#fff0f7 !important; border-color:#57304e !important; }
:root[data-theme="dark"] .bammi-select-option { color:#fff0f7; }
:root[data-theme="dark"] .bammi-select-option:hover,
:root[data-theme="dark"] .bammi-select-option:focus { background:#48213a; color:#fff; }

/* Consistent empty states: message only, no decorative heart or stray glyph. */
.empty-state { display:flex; align-items:center; justify-content:center; min-height:76px; padding:22px 18px; text-align:center; }
.empty-state > span { display:none !important; }
.empty-state p { margin:0; line-height:1.55; }

/* Order/report detail panels: separate labels from values and wrap long evidence names. */
.order-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; margin:18px 0; }
.order-detail-grid > div { min-width:0; display:flex; flex-direction:column; gap:4px; padding:11px 13px; border:1px solid var(--border); border-radius:11px; background:var(--panel-soft); }
.order-detail-grid small,.order-detail-block small { color:var(--text-muted); font-size:11px; font-weight:800; }
.order-detail-grid strong { color:var(--text); font-size:13px; font-weight:800; overflow-wrap:anywhere; }
.order-detail-block { margin:14px 0; padding:13px 15px; border:1px solid var(--border); border-radius:12px; }
.order-detail-block p { margin:7px 0 0; line-height:1.6; overflow-wrap:anywhere; }
.report-source-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.report-source-grid > div { min-width:0; display:flex; flex-direction:column; gap:4px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:var(--panel-soft); }
.report-source-grid span { color:var(--text-muted); font-size:11px; font-weight:800; }
.report-source-grid strong { color:var(--text); font-size:13px; overflow-wrap:anywhere; }
.report-evidence-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.report-evidence-item { min-width:0; display:flex; flex-direction:column; gap:5px; padding:12px; border:1px solid var(--border); border-radius:11px; overflow-wrap:anywhere; }
.order-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
@media(max-width:560px) { .order-detail-grid,.report-source-grid,.report-evidence-grid { grid-template-columns:1fr; } }

/* Premium burgundy/pink modal family replaces browser-native dialogs. */
.bammi-modal-backdrop {
  position:fixed; inset:0; z-index:20000; display:grid; place-items:center;
  padding:18px; background:rgba(12,5,15,.72); backdrop-filter:blur(5px);
  animation:bammiFadeIn .16s ease-out;
}
.bammi-modal {
  width:min(490px,100%); padding:28px 26px 24px; border-radius:20px;
  background:linear-gradient(145deg,#241b24 0%,#1d1a20 100%);
  border:1px solid rgba(255,130,190,.22); color:#fff7fb;
  box-shadow:0 28px 90px rgba(0,0,0,.48); text-align:center;
  animation:bammiModalIn .2s ease-out;
}
.bammi-modal-icon { width:54px; height:54px; margin:0 auto 16px; display:grid; place-items:center; border-radius:15px; background:linear-gradient(135deg,#ec2389,#a80e60); color:#fff; }
.bammi-modal-icon svg { width:30px; height:30px; stroke-width:2.4; }
.bammi-modal-icon.success { background:linear-gradient(135deg,#0c9d69,#08784f); }
.bammi-modal-icon.danger { background:linear-gradient(135deg,#b91c3b,#76132c); }
.bammi-modal h2 { margin:0 0 9px; color:#fff7fb; font-size:22px; font-weight:900; }
.bammi-modal-message { margin:0; color:#eadce5; font-size:14px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.bammi-modal-input { margin-top:18px; background:#2a202b !important; color:#fff !important; border:1px solid #63334f !important; }
.bammi-modal-actions { display:flex; justify-content:center; gap:10px; margin-top:22px; }
.bammi-modal-actions button { min-width:108px; min-height:42px; padding:10px 18px; border-radius:10px; font-weight:850; font-size:12px; }
.bammi-modal-confirm { border:1px solid #c21b65; background:linear-gradient(135deg,#ed238b,#b80f62); color:#fff; box-shadow:0 7px 18px rgba(205,20,105,.25); }
.bammi-modal-cancel { border:1px solid #5a3a50; background:#302331; color:#fce7f3; }
@keyframes bammiFadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes bammiModalIn { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
:root[data-theme="light"] .bammi-modal { background:linear-gradient(145deg,#3a1029,#25091d); }
@media(max-width:480px) { .bammi-modal { padding:23px 18px 19px; } .bammi-modal-actions { flex-direction:column-reverse; } .bammi-modal-actions button { width:100%; } }

/* Report form: balanced spacing, readable section hierarchy, tidy upload cards. */
.bammi-report-form { display:grid; gap:18px; padding:18px; }
.bammi-report-section { min-width:0; padding:18px; border:1px solid var(--border); border-radius:16px; background:var(--panel); }
.report-form-section-heading { display:flex; align-items:center; gap:12px; padding-bottom:13px; margin-bottom:16px; border-bottom:1px solid var(--border); }
.report-form-section-heading > div { display:grid; gap:4px; min-width:0; }
.report-form-section-heading strong { font-size:15px; font-weight:900; color:var(--text); }
.report-form-section-heading small { font-size:11px; color:var(--text-muted); line-height:1.5; }
.report-dynamic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 16px; align-items:start; }
.report-dynamic-grid .field { min-width:0; display:flex; flex-direction:column; gap:7px; }
.report-dynamic-grid .field label,.bammi-report-form > .bammi-report-section .field label { font-size:12px; font-weight:800; line-height:1.4; color:var(--text); }
.report-dynamic-grid input,.report-dynamic-grid textarea,.report-dynamic-grid .bammi-select-trigger,
.bammi-report-form input:not([type=file]),.bammi-report-form textarea { min-height:45px; width:100%; }
.report-calculation-grid { margin-top:15px; }
.report-evidence-slots { display:grid; gap:11px; margin-top:14px; }
.report-evidence-slot { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px; border:1px dashed var(--brand-300); border-radius:13px; background:var(--brand-50); cursor:pointer; }
.report-evidence-number { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:#fce7f3; color:#be185d; font-size:12px; font-weight:900; }
.report-evidence-copy { min-width:0; display:grid; gap:4px; }
.report-evidence-copy strong { font-size:12px; line-height:1.45; color:var(--text); }
.report-evidence-copy small,.report-evidence-filename { color:var(--text-muted); font-size:11px; overflow-wrap:anywhere; }
.report-evidence-attach { padding:9px 13px; border-radius:9px; background:linear-gradient(135deg,#ed238b,#b80f62); color:#fff; font-size:11px; font-weight:900; white-space:nowrap; }
.report-evidence-slot input[type=file] { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.bammi-report-submit { display:flex; justify-content:flex-end; padding:0 18px 18px; }
.bammi-report-submit button { min-width:170px; min-height:45px; }
:root[data-theme="dark"] .bammi-report-section { background:#211522; border-color:#57304e; }
:root[data-theme="dark"] .report-evidence-slot { background:#2a1727; border-color:#824267; }
:root[data-theme="dark"] .report-evidence-number { background:#48213a; color:#ffc0df; }
@media(max-width:650px) { .report-dynamic-grid { grid-template-columns:1fr; } .report-evidence-slot { grid-template-columns:28px minmax(0,1fr); } .report-evidence-attach { grid-column:2; justify-self:start; } .bammi-report-form { padding:10px; } .bammi-report-section { padding:14px; } }

/* Order/report detail dialogs follow the active light/dark theme. */
.order-detail-backdrop { background:rgba(15,8,17,.58) !important; backdrop-filter:blur(5px); z-index:12000 !important; }
.order-detail-dialog {
  background:var(--panel) !important; color:var(--text) !important;
  border:1px solid var(--border) !important; border-radius:20px !important;
  box-shadow:0 28px 90px rgba(0,0,0,.24) !important;
}
.order-detail-dialog h2,.order-detail-dialog h3,.order-detail-dialog strong { color:var(--text) !important; }
.order-detail-dialog p,.order-detail-dialog .muted,.order-detail-dialog small,
.order-detail-dialog .section-kicker,.order-detail-dialog .report-source-grid span { color:var(--text-muted) !important; }
.order-detail-dialog .order-detail-grid > div,
.order-detail-dialog .order-detail-block,
.order-detail-dialog .report-source-grid > div,
.order-detail-dialog .report-evidence-item {
  background:var(--panel-soft, var(--bg)) !important; border-color:var(--border) !important; color:var(--text) !important;
}
.order-detail-dialog .order-detail-grid strong,.order-detail-dialog .report-source-grid strong { color:var(--text) !important; }
.order-detail-dialog .order-detail-close {
  background:var(--brand-50, var(--panel)) !important; color:var(--text) !important; border-color:var(--border) !important;
}
:root[data-theme="light"] .order-detail-backdrop { background:rgba(38,16,30,.34) !important; }
:root[data-theme="dark"] .order-detail-backdrop { background:rgba(0,0,0,.68) !important; }
.delivery-section-heading { align-items:center !important; justify-content:flex-start !important; }
.delivery-section-heading h3 { display:inline-flex; align-items:center; gap:9px; margin:0; line-height:1.25; }
.delivery-section-heading h3 i,.delivery-section-heading h3 svg {
  display:block; width:21px; height:21px; flex:0 0 21px; margin:0; vertical-align:middle;
}

/* BAMMI report form polish: clear section hierarchy in both themes. */
.bammi-report-dialog { width:min(980px, calc(100vw - 28px)); max-height:calc(100vh - 28px); overflow:auto; }
.bammi-report-header { padding:4px 4px 18px; }
.bammi-report-header h2 { margin:10px 0 6px; font-size:clamp(21px,3vw,28px); }
.bammi-report-form { gap:16px; }
.bammi-report-section { background:#fff !important; color:#263044; }
.bammi-report-section .report-form-section-heading { border-color:#f4d4e4; }
.bammi-report-section .report-form-section-heading strong { color:#831843; }
.bammi-report-section .report-form-section-heading small { color:#64748b; }
.bammi-report-section .field { min-width:0; }
.bammi-report-section .field input:not([type=checkbox]):not([type=file]),
.bammi-report-section .field textarea,
.bammi-report-section .field .bammi-select-trigger { width:100%; box-sizing:border-box; }
.bammi-report-section .report-full-field { grid-column:1/-1; }
.bammi-report-section .report-password-field .password-field { display:flex; gap:7px; }
.bammi-report-section .report-password-field .password-field input { flex:1; min-width:0; }
.bammi-report-section .report-check-label { display:flex; align-items:center; gap:9px; font-weight:700; }
.bammi-report-section .report-check-label input { width:17px; height:17px; accent-color:#c21867; }
.bammi-report-section .report-evidence-slot { min-width:0; }
.bammi-report-section .report-evidence-slot.is-dragging { outline:2px solid #db2777; background:#fce7f3; }
.bammi-report-section .report-evidence-slot input[type=file] { display:block; }
.bammi-report-section .report-evidence-copy { overflow-wrap:anywhere; }
.bammi-report-section .report-calculation-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.bammi-report-section .report-custom-duration[hidden],
.bammi-report-section [hidden] { display:none !important; }
:root[data-theme="dark"] .bammi-report-dialog { background:#1b101b !important; color:#fff2fa !important; }
:root[data-theme="dark"] .bammi-report-section { background:#2a1929 !important; border-color:#62344f !important; color:#fff2fa !important; }
:root[data-theme="dark"] .bammi-report-section .report-form-section-heading { border-color:#60334e; }
:root[data-theme="dark"] .bammi-report-section .report-form-section-heading strong,
:root[data-theme="dark"] .bammi-report-section .field label { color:#ffe4f1 !important; }
:root[data-theme="dark"] .bammi-report-section .report-form-section-heading small,
:root[data-theme="dark"] .bammi-report-section .muted { color:#d6b7c9 !important; }
:root[data-theme="dark"] .bammi-report-section input:not([type=checkbox]):not([type=file]),
:root[data-theme="dark"] .bammi-report-section textarea,
:root[data-theme="dark"] .bammi-report-section .bammi-select-trigger { background:#1d111d !important; color:#fff5fa !important; border-color:#75445f !important; }
:root[data-theme="dark"] .bammi-report-section .bammi-select-menu { background:#281626 !important; border-color:#75445f !important; }
:root[data-theme="dark"] .bammi-report-section .bammi-select-option { color:#fff2fa !important; }
:root[data-theme="dark"] .bammi-report-section .bammi-select-option:hover { background:#54213e !important; }
:root[data-theme="dark"] .bammi-report-section .report-evidence-slot { background:#211421 !important; border-color:#8e4a70 !important; }
:root[data-theme="dark"] .bammi-report-section .report-evidence-slot.is-dragging { background:#54213e !important; }
:root[data-theme="dark"] .bammi-report-section .report-evidence-copy small,
:root[data-theme="dark"] .bammi-report-section .report-evidence-filename { color:#d7b6c9 !important; }
.stage-owned-by small { color:#9a7890 !important; }
.stage-owned-by strong { color:#350b25 !important; }
@media(max-width:650px) {
  .bammi-report-dialog { width:calc(100vw - 14px); max-height:calc(100vh - 14px); }
  .bammi-report-form { padding:9px; }
  .bammi-report-section { padding:13px; }
  .bammi-report-section .report-calculation-grid { grid-template-columns:1fr; }
}

/* =========================================================
   FINAL CONSOLIDATED CUSTOMER PORTAL + REPORT THEME FIXES
   ========================================================= */
/* Customer portal now follows the owner's left-sidebar workspace. */
#customerDashboard {
  display:flex !important;
  flex-direction:column;
  min-height:100vh;
  padding:0 0 24px;
  background:var(--page-bg, #fff7fb);
  color:var(--text, #263044);
}
#customerDashboard[hidden] { display:none !important; }
#customerDashboard > .customer-portal-header {
  width:auto !important;
  max-width:none !important;
  min-height:86px;
  margin:0 0 0 235px !important;
  padding:16px 28px !important;
  border:0 !important;
  border-bottom:1px solid var(--border) !important;
  border-radius:0 !important;
  background:var(--panel) !important;
  box-shadow:0 4px 18px rgba(52,7,32,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.customer-portal-brand strong { font-size:20px; font-weight:900; color:var(--text); }
.customer-portal-profile { margin-left:auto; display:flex; align-items:center; gap:10px; min-width:0; }
.customer-profile-avatar { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:50%; background:var(--brand-50); color:var(--brand-primary); }
.customer-portal-profile > span:last-child { display:grid; gap:2px; min-width:0; }
.customer-portal-profile strong { color:var(--text); font-size:12px; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.customer-portal-profile small { color:var(--text-muted); font-size:10px; }
#customerDashboard .customer-main {
  flex:1 0 auto;
  display:block !important;
  width:auto !important;
  max-width:none !important;
  margin:0 28px 0 263px !important;
  padding:22px 0 28px !important;
}
#customerDashboard .customer-side-menu {
  position:fixed;
  z-index:50;
  inset:0 auto 0 0;
  width:235px;
  height:100vh !important;
  padding:22px 12px 18px !important;
  display:flex !important;
  flex-direction:column;
  gap:8px !important;
  overflow-y:auto;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(180deg,#30091f 0%,#210817 100%) !important;
  box-shadow:8px 0 28px rgba(35,5,22,.16);
}
#customerDashboard .customer-side-menu::before {
  content:"BAMMI’S BOOCH ♡";
  display:block;
  padding:8px 10px 22px;
  margin-bottom:8px;
  color:#fff;
  font-size:17px;
  font-weight:950;
  letter-spacing:-.4px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
#customerDashboard .customer-menu-heading {
  color:#c9a6bb !important;
  padding:6px 10px 10px !important;
  letter-spacing:1.4px;
}
#customerDashboard .customer-side-menu button {
  min-height:44px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:11px 13px !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  background:transparent !important;
  color:#f6dce9 !important;
  font-size:12px;
  font-weight:800;
  text-align:left;
  box-shadow:none !important;
}
#customerDashboard .customer-side-menu button:hover,
#customerDashboard .customer-side-menu button.active {
  background:linear-gradient(135deg,#e92787,#c31670) !important;
  border-color:#f34c9d !important;
  color:#fff !important;
  box-shadow:0 7px 18px rgba(220,27,119,.22) !important;
}
#customerDashboard .customer-side-menu button[data-customer-target="customerOverview"]::before { content:"▦"; margin-right:10px; font-size:16px; }
#customerDashboard .customer-side-menu button[data-customer-target="customerPlaceOrderSection"]::before { content:"♧"; margin-right:10px; font-size:16px; }
#customerDashboard .customer-side-menu button[data-customer-target="customerOrderHistorySection"]::before { content:"▤"; margin-right:10px; font-size:16px; }
#customerDashboard .customer-side-menu button[data-customer-target="customerSubmitReportSection"]::before { content:"▧"; margin-right:10px; font-size:16px; }
#customerDashboard .customer-side-menu button[data-customer-target="customerReportsSection"]::before { content:"♡"; margin-right:10px; font-size:16px; }
#customerDashboard .customer-content { display:block; width:100%; min-width:0; }
#customerDashboard .customer-content .content-card,
#customerDashboard .customer-content .stat-card {
  background:var(--panel) !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
  box-shadow:var(--shadow-card,0 7px 22px rgba(157,23,77,.06));
}
#customerDashboard .customer-pinkcare-banner {
  min-height:174px;
  margin:0 0 20px;
  padding:28px 32px;
  border-radius:20px;
  background:linear-gradient(110deg,#df2180 0%,#a20e55 55%,#4a0d33 100%);
  box-shadow:0 15px 34px rgba(157,23,77,.18);
}
#customerDashboard .customer-pinkcare-banner h1 { font-size:clamp(23px,3vw,34px); line-height:1.12; }
#customerDashboard .customer-pinkcare-banner h1 span { color:#ffd3e9; }
#customerDashboard .customer-pinkcare-banner p { max-width:620px; color:#ffe5f1; }
#customerDashboard #customerOverview > .content-card { margin-bottom:18px; padding:22px; }
#customerDashboard #customerOverview .stats { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
#customerDashboard .customer-content .stat-card { padding:18px; min-width:0; }
#customerDashboard .customer-content .stat-card strong { display:block; font-size:27px; margin-top:7px; color:var(--text); }
#customerDashboard .customer-content .stat-card span { color:var(--text-muted); font-weight:750; }
#customerDashboard > .bammi-global-footer {
  width:auto !important;
  margin: auto 28px 0 263px !important;
}
#customerDashboard .customer-view[hidden] { display:none !important; }

/* The modal frame remains wine-red, but its form panels follow the selected theme. */
.bammi-report-dialog { color:#fff3fa !important; }
.bammi-report-dialog #bammiReportTitle { color:#fff3fa !important; text-transform:uppercase; letter-spacing:.035em; }
.bammi-report-dialog .bammi-report-header .section-kicker { color:#f1c4d9 !important; }
.bammi-report-dialog .bammi-report-section { color:#263044 !important; }
.bammi-report-dialog .bammi-report-section .report-form-section-heading strong,
.bammi-report-dialog .bammi-report-section .field label,
.bammi-report-dialog .bammi-report-section .report-evidence-copy strong { color:#263044 !important; }
.bammi-report-dialog .bammi-report-section .report-form-section-heading small,
.bammi-report-dialog .bammi-report-section .muted,
.bammi-report-dialog .bammi-report-section .report-evidence-copy small,
.bammi-report-dialog .bammi-report-section .report-evidence-filename { color:#64748b !important; }
.bammi-report-dialog .bammi-report-section input:not([type=checkbox]):not([type=file]),
.bammi-report-dialog .bammi-report-section textarea,
.bammi-report-dialog .bammi-report-section .bammi-select-trigger {
  background:#fff !important;
  color:#263044 !important;
  border:1px solid #f1cfe0 !important;
  color-scheme:light;
}
.bammi-report-dialog .bammi-report-section input::placeholder,
.bammi-report-dialog .bammi-report-section textarea::placeholder { color:#8490a3 !important; opacity:1; }
.bammi-report-dialog .bammi-report-section .bammi-select-menu { background:#fff !important; border-color:#f1cfe0 !important; }
.bammi-report-dialog .bammi-report-section .bammi-select-option { color:#263044 !important; }
.bammi-report-dialog .bammi-report-section .bammi-select-option:hover,
.bammi-report-dialog .bammi-report-section .bammi-select-option:focus { background:#fce7f3 !important; color:#831843 !important; }
.bammi-report-dialog .bammi-report-section .report-form-section-heading strong { text-transform:uppercase; letter-spacing:.025em; }
.bammi-report-dialog .bammi-report-section .report-step { color:#831843; background:#fce7f3; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section { background:#2a1929 !important; border-color:#62344f !important; color:#fff2fa !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .report-form-section-heading strong,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .field label,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .report-evidence-copy strong { color:#fff0f7 !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .report-form-section-heading small,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .muted,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .report-evidence-copy small,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .report-evidence-filename { color:#d6b7c9 !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section input:not([type=checkbox]):not([type=file]),
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section textarea,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .bammi-select-trigger {
  background:#1d111d !important;
  color:#fff5fa !important;
  border-color:#75445f !important;
  color-scheme:dark;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section input::placeholder,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section textarea::placeholder { color:#bda3b6 !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .bammi-select-menu { background:#281626 !important; border-color:#75445f !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .bammi-select-option { color:#fff2fa !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .bammi-select-option:hover { background:#54213e !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .report-step { color:#ffd5e8; background:#54213e; }

@media(max-width:900px) {
  #customerDashboard > .customer-portal-header { margin-left:0 !important; padding:14px 18px !important; }
  #customerDashboard .customer-side-menu { position:static; width:auto; height:auto !important; margin:14px 18px 0; border-radius:14px !important; display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #customerDashboard .customer-side-menu::before { grid-column:1/-1; padding-bottom:12px; }
  #customerDashboard .customer-menu-heading { grid-column:1/-1; }
  #customerDashboard .customer-main { margin:0 18px !important; padding:16px 0 24px !important; }
  #customerDashboard > .bammi-global-footer { margin:18px !important; }
}
@media(max-width:650px) {
  #customerDashboard > .customer-portal-header { align-items:flex-start; flex-wrap:wrap; gap:12px; }
  #customerDashboard .customer-portal-brand { width:100%; }
  #customerDashboard .customer-portal-profile { margin-left:0; }
  #customerDashboard .customer-portal-actions { margin-left:auto; width:auto; display:flex; flex-wrap:wrap; }
  #customerDashboard .customer-portal-actions > button { min-height:38px; }
  #customerDashboard .customer-main { margin:0 12px !important; }
  #customerDashboard .customer-pinkcare-banner { padding:22px 18px; }
  #customerDashboard #customerOverview .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #customerDashboard .customer-side-menu { margin:12px 12px 0; }
  #customerDashboard .customer-side-menu button { min-height:42px; font-size:11px; }
  #customerDashboard > .bammi-global-footer { margin:16px 12px !important; }
}
@media(max-width:420px) {
  #customerDashboard .customer-portal-actions { width:100%; justify-content:space-between; }
  #customerDashboard .customer-portal-actions > button { flex:1 1 auto; padding:8px 7px !important; font-size:10px !important; }
}
#customerDashboard { background:var(--bg,#fff7fb) !important; }
#customerDashboard .customer-content .card-heading h3,
#customerDashboard .customer-content > .content-card > h3 { text-transform:uppercase; letter-spacing:.025em; }


/* =========================================================
   BAMMI GLOBAL THEME SYNC PATCH
   Applies the selected theme consistently to dynamically
   created dialogs, report forms, customer and owner views.
   ========================================================= */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#fff7fb;
  --panel:#ffffff;
  --border:#f4d4e4;
  --border-light:#f8ecf3;
  --text:#263044;
  --text-muted:#64748b;
  --text-light:#94a3b8;
}
:root[data-theme="light"] body,
:root[data-theme="light"] #app,
:root[data-theme="light"] #customerDashboard {
  background:#fff7fb !important;
  color:#263044 !important;
}

/* Report modal: explicit light palette (including the cards). */
:root[data-theme="light"] .bammi-report-dialog {
  background:linear-gradient(145deg,#fff8fc,#fff) !important;
  color:#263044 !important;
}
:root[data-theme="light"] .bammi-report-dialog .bammi-report-section {
  background:#fff !important;
  color:#263044 !important;
  border-color:#f4d4e4 !important;
}
:root[data-theme="light"] .bammi-report-dialog .report-form-section-heading strong,
:root[data-theme="light"] .bammi-report-dialog .field label {
  color:#263044 !important;
}
:root[data-theme="light"] .bammi-report-dialog .report-form-section-heading small,
:root[data-theme="light"] .bammi-report-dialog .muted,
:root[data-theme="light"] .bammi-report-dialog .report-evidence-copy small,
:root[data-theme="light"] .bammi-report-dialog .report-evidence-filename {
  color:#64748b !important;
}
:root[data-theme="light"] .bammi-report-dialog .bammi-report-section input:not([type=checkbox]):not([type=file]),
:root[data-theme="light"] .bammi-report-dialog .bammi-report-section textarea,
:root[data-theme="light"] .bammi-report-dialog .bammi-report-section select,
:root[data-theme="light"] .bammi-report-dialog .bammi-report-section .bammi-select-trigger {
  background:#fff !important;
  color:#263044 !important;
  border-color:#f1cadd !important;
  color-scheme:light;
}
:root[data-theme="light"] .bammi-report-dialog .bammi-report-section input::placeholder,
:root[data-theme="light"] .bammi-report-dialog .bammi-report-section textarea::placeholder {
  color:#94a3b8 !important;
}
:root[data-theme="light"] .bammi-report-dialog .bammi-select-menu {
  background:#fff !important;
  color:#263044 !important;
  border-color:#f1cadd !important;
}
:root[data-theme="light"] .bammi-report-dialog .bammi-select-option { color:#263044 !important; }
:root[data-theme="light"] .bammi-report-dialog .bammi-select-option:hover {
  background:#fce7f3 !important;
  color:#881337 !important;
}
:root[data-theme="light"] .bammi-report-dialog .report-step {
  color:#be185d !important;
  background:#fce7f3 !important;
}

/* Report modal: explicit dark palette. */
:root[data-theme="dark"] .bammi-report-dialog {
  background:linear-gradient(145deg,#241322,#170d18) !important;
  color:#fff2fa !important;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section {
  background:#2a1929 !important;
  color:#fff2fa !important;
  border-color:#62344f !important;
}
:root[data-theme="dark"] .bammi-report-dialog .report-form-section-heading strong,
:root[data-theme="dark"] .bammi-report-dialog .field label {
  color:#ffe4f1 !important;
}
:root[data-theme="dark"] .bammi-report-dialog .report-form-section-heading small,
:root[data-theme="dark"] .bammi-report-dialog .muted,
:root[data-theme="dark"] .bammi-report-dialog .report-evidence-copy small,
:root[data-theme="dark"] .bammi-report-dialog .report-evidence-filename {
  color:#d6b7c9 !important;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section input:not([type=checkbox]):not([type=file]),
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section textarea,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section select,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section .bammi-select-trigger {
  background:#1d111d !important;
  color:#fff5fa !important;
  border-color:#75445f !important;
  color-scheme:dark;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section input::placeholder,
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-section textarea::placeholder {
  color:#bda3b6 !important;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-select-menu {
  background:#281626 !important;
  color:#fff2fa !important;
  border-color:#75445f !important;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-select-option { color:#fff2fa !important; }
:root[data-theme="dark"] .bammi-report-dialog .bammi-select-option:hover {
  background:#54213e !important;
  color:#fff !important;
}
:root[data-theme="dark"] .bammi-report-dialog .report-step {
  color:#ffd5e8 !important;
  background:#54213e !important;
}

/* Theme-aware customer and owner portal surfaces and controls. */
:root[data-theme="light"] #customerDashboard .customer-content .content-card,
:root[data-theme="light"] #customerDashboard .customer-side-menu,
:root[data-theme="light"] #customerDashboard > .customer-portal-header {
  background:#fff !important;
  color:#263044 !important;
  border-color:#f4d4e4 !important;
}
:root[data-theme="dark"] #customerDashboard .customer-content .content-card,
:root[data-theme="dark"] #customerDashboard .customer-side-menu,
:root[data-theme="dark"] #customerDashboard > .customer-portal-header {
  background:#211522 !important;
  color:#fff0f7 !important;
  border-color:#4a2944 !important;
}
:root[data-theme="dark"] #customerDashboard .customer-content,
:root[data-theme="dark"] #customerDashboard .customer-content p,
:root[data-theme="dark"] #customerDashboard .customer-content label,
:root[data-theme="dark"] #customerDashboard .customer-content strong,
:root[data-theme="dark"] #customerDashboard .customer-side-menu button {
  color:#fff0f7;
}
:root[data-theme="dark"] #customerDashboard .customer-content input,
:root[data-theme="dark"] #customerDashboard .customer-content textarea,
:root[data-theme="dark"] #customerDashboard .customer-content select {
  background:#1b111d !important;
  color:#fff0f7 !important;
  border-color:#57304e !important;
  color-scheme:dark;
}
:root[data-theme="dark"] #ownerDashboard input,
:root[data-theme="dark"] #ownerDashboard textarea,
:root[data-theme="dark"] #ownerDashboard select {
  background:#1b111d !important;
  color:#fff0f7 !important;
  border-color:#57304e !important;
  color-scheme:dark;
}



/* =========================================================
   BAMMI REPORT CHAT + CUSTOMER REPORT CARDS + FLOATING SUPPORT
   ========================================================= */
.report-thread { margin-top:24px; padding-top:20px; border-top:1px solid var(--border,#ead7e2); }
.report-thread > h3 { margin:0 0 14px; color:var(--text,#381326); }
.report-messages {
  display:flex; flex-direction:column; gap:12px; max-height:360px; overflow:auto;
  padding:16px; border:1px solid var(--border,#ead7e2); border-radius:18px;
  background:var(--panel,#fffafd);
}
.report-message {
  align-self:flex-end; width:fit-content; max-width:min(82%,620px);
  padding:11px 14px; border-radius:18px 18px 5px 18px;
  background:linear-gradient(135deg,#f7d5e8,#fceaf3); color:#51223c;
  box-shadow:0 4px 14px rgba(115,27,72,.07); overflow-wrap:anywhere;
}
.report-message.owner-message {
  align-self:flex-start; border-radius:18px 18px 18px 5px;
  background:#762344; color:#fff7fb;
}
.report-message small { display:block; margin-bottom:5px; font-size:10px; font-weight:800; opacity:.78; }
.report-message p { margin:0; white-space:pre-wrap; line-height:1.55; }
.report-message .reply-attachments { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.report-message .reply-attachment { color:inherit; text-decoration:underline; font-size:12px; }
.report-empty-thread { padding:10px 4px; }
.report-reply-form { display:grid; gap:12px; margin-top:14px; }
.report-reply-form textarea { width:100%; min-height:92px; resize:vertical; }
.customer-report-summary { margin-top:18px; padding:16px; border:1px solid var(--border,#ead7e2); border-radius:16px; background:var(--panel,#fffafd); }
.customer-report-summary h3 { margin:0 0 8px; color:var(--text,#381326); }
.customer-report-summary p { margin:0; color:var(--text-muted,#76616d); white-space:pre-wrap; overflow-wrap:anywhere; }
.customer-report-status-note { margin-top:12px !important; padding:10px 12px; border-radius:10px; background:rgba(232,91,157,.10); }
.customer-report-evidence { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.customer-report-card {
  display:block; width:100%; margin:10px 0; padding:17px 18px; text-align:left;
  border:1px solid var(--border,#ead7e2); border-radius:16px;
  background:var(--panel,#fffafd); color:var(--text,#381326); cursor:pointer;
  box-shadow:0 5px 18px rgba(91,22,59,.05); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.customer-report-card:hover { transform:translateY(-2px); border-color:#e58ab8; box-shadow:0 10px 24px rgba(173,40,105,.12); }
.customer-report-card .customer-order-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.customer-report-card h3 { margin:4px 0; color:var(--text,#381326); }
.customer-report-card p { margin:10px 0 0; color:var(--text-muted,#76616d); }
.customer-report-open-hint { display:inline-block; margin-top:12px; color:#bd367d; font-size:12px; font-weight:800; }
.customer-report-list-heading { gap:14px; flex-wrap:wrap; }
.customer-report-list-actions { display:flex; align-items:center; gap:9px; min-width:min(100%,360px); }
.customer-report-search { min-width:180px; max-width:260px; min-height:38px; padding:8px 12px; border:1px solid var(--border,#ead7e2); border-radius:10px; background:var(--panel,#fffafd); color:var(--text,#381326); }
.customer-report-search::placeholder { color:var(--text-muted,#76616d); }
.bammi-support-launcher {
  position:fixed; right:24px; bottom:24px; z-index:12000; width:64px; height:64px;
  display:grid; place-items:center; border:0; border-radius:50%;
  color:#fff; background:linear-gradient(145deg,#9d285f,#5d153c);
  box-shadow:0 10px 28px rgba(83,12,49,.30); cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease;
}
.bammi-support-launcher:hover { transform:translateY(-3px) scale(1.03); box-shadow:0 14px 32px rgba(83,12,49,.38); }
.bammi-support-launcher svg { width:27px; height:27px; stroke-width:2.4; }
.bammi-support-panel {
  position:fixed; right:24px; bottom:100px; z-index:12000; width:min(360px,calc(100vw - 32px));
  padding:0; overflow:hidden; border:1px solid rgba(236,160,198,.55); border-radius:20px;
  background:var(--panel,#fffafd); color:var(--text,#381326);
  box-shadow:0 18px 55px rgba(48,8,31,.25);
}
.bammi-support-panel[hidden] { display:none !important; }
.bammi-support-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; color:#fff; background:linear-gradient(115deg,#4b102f,#9d285f); }
.bammi-support-panel-head strong { display:block; font-size:15px; }
.bammi-support-panel-head small { display:block; margin-top:3px; color:#ffd9eb; font-size:11px; }
.bammi-support-close { width:30px; height:30px; border:0; border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:20px; cursor:pointer; }
.bammi-support-panel-body { padding:17px; }
.bammi-support-panel-body p { margin:0 0 14px; color:var(--text-muted,#76616d); line-height:1.5; font-size:13px; }
.bammi-support-action { display:flex; align-items:center; justify-content:center; width:100%; min-height:42px; margin-top:9px; padding:10px 13px; border:1px solid #e7a3c5; border-radius:12px; color:#84234f; background:#fff0f7; font-weight:800; cursor:pointer; }
.bammi-support-action.primary { border-color:transparent; color:#fff; background:linear-gradient(110deg,#8b2454,#d33b91); }
:root[data-theme="dark"] .report-thread { border-color:var(--border); }
:root[data-theme="dark"] .report-messages,
:root[data-theme="dark"] .customer-report-summary,
:root[data-theme="dark"] .customer-report-card { background:#211522; border-color:#4a2944; color:#fff0f7; }
:root[data-theme="dark"] .report-message:not(.owner-message) { background:linear-gradient(135deg,#51263f,#3c2035); color:#fff0f7; }
:root[data-theme="dark"] .report-message.owner-message { background:linear-gradient(135deg,#762344,#4d1737); color:#fff7fb; }
:root[data-theme="dark"] .customer-report-card h3,
:root[data-theme="dark"] .customer-report-summary h3 { color:#fff0f7; }
:root[data-theme="dark"] .customer-report-open-hint { color:#ff9bc9; }
:root[data-theme="dark"] .customer-report-search { background:#211522; border-color:#4a2944; color:#fff0f7; }
:root[data-theme="dark"] .bammi-support-panel { background:#211522; border-color:#67304f; color:#fff0f7; }
:root[data-theme="dark"] .bammi-support-action { background:#3a2034; color:#ffd8eb; border-color:#75405f; }
:root[data-theme="dark"] .bammi-support-action.primary { background:linear-gradient(110deg,#8b2454,#c63886); color:#fff; }
@media(max-width:640px) {
  .bammi-support-launcher { right:16px; bottom:16px; width:58px; height:58px; }
  .bammi-support-panel { right:12px; bottom:86px; width:calc(100vw - 24px); }
  .customer-report-list-actions { width:100%; }
  .customer-report-search { flex:1; min-width:0; max-width:none; }
  .report-message { max-width:92%; }
  .report-messages { padding:11px; max-height:48vh; }
}

/* =========================================================
   CUSTOMER PORTAL SIDEBAR — OWNER PORTAL MATCH (FINAL OVERRIDE)
   ========================================================= */
#customerDashboard .customer-side-menu,
:root[data-theme="light"] #customerDashboard .customer-side-menu,
:root[data-theme="dark"] #customerDashboard .customer-side-menu {
  position:fixed !important;
  inset:0 auto 0 0 !important;
  z-index:60 !important;
  width:253px !important;
  height:100vh !important;
  margin:0 !important;
  padding:18px 9px 16px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:8px !important;
  overflow-y:auto !important;
  border:0 !important;
  border-radius:0 !important;
  background:linear-gradient(180deg,#30091f 0%,#250817 58%,#1d0613 100%) !important;
  color:#fff !important;
  box-shadow:8px 0 28px rgba(35,5,22,.18) !important;
}
#customerDashboard .customer-side-brand {
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-height:84px;
  padding:4px 8px 20px !important;
  margin-bottom:10px !important;
  border-bottom:1px solid rgba(255,255,255,.13) !important;
}
#customerDashboard .customer-side-brand .brand-icon {
  width:39px !important;
  height:42px !important;
  flex:0 0 39px;
  display:grid !important;
  place-items:center !important;
  border-radius:12px !important;
  background:#d91f79 !important;
  color:#fff !important;
  box-shadow:0 6px 18px rgba(217,31,121,.22);
}
#customerDashboard .customer-side-brand .brand-icon svg { width:23px; height:23px; stroke-width:2.3; }
#customerDashboard .customer-side-brand strong {
  display:block;
  color:#fff !important;
  font-size:17px !important;
  line-height:1.1;
  font-weight:950 !important;
  letter-spacing:-.35px;
}
#customerDashboard .customer-side-brand strong span { color:#f7a8ce !important; }
#customerDashboard .customer-side-brand small {
  display:block;
  margin-top:4px;
  color:#cba9bc !important;
  font-size:9px !important;
  line-height:1.2;
  font-weight:800;
  letter-spacing:1.1px;
}
#customerDashboard .customer-side-menu::before { content:none !important; display:none !important; }
#customerDashboard .customer-menu-heading {
  display:block !important;
  padding:7px 12px 9px !important;
  margin:0 0 2px !important;
  color:#b88da5 !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:1.35px !important;
}
#customerDashboard .customer-side-menu > button[data-customer-target] {
  min-height:44px !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  padding:10px 13px !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  background:transparent !important;
  color:#f7d9e8 !important;
  font-size:12px !important;
  font-weight:850 !important;
  text-align:left !important;
  box-shadow:none !important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
#customerDashboard .customer-side-menu > button[data-customer-target]::before {
  color:#e99bc1 !important;
  opacity:.95;
  min-width:18px;
  margin-right:0 !important;
  font-size:16px !important;
  text-align:center;
}
#customerDashboard .customer-side-menu > button[data-customer-target]:hover:not(.active) {
  background:rgba(232,91,157,.13) !important;
  border-color:rgba(244,150,194,.13) !important;
  color:#fff !important;
}
#customerDashboard .customer-side-menu > button[data-customer-target].active {
  background:linear-gradient(110deg,#e92787 0%,#c31670 100%) !important;
  border-color:#f34c9d !important;
  color:#fff !important;
  box-shadow:0 7px 18px rgba(220,27,119,.24) !important;
}
#customerDashboard .customer-side-menu > button[data-customer-target].active::before { color:#fff !important; }
#customerDashboard .customer-side-spacer { flex:1 1 auto; min-height:22px; }
#customerDashboard .customer-side-footer {
  display:grid;
  gap:10px;
  margin-top:auto;
  padding:10px 0 0;
}
#customerDashboard .customer-side-footer button {
  width:100% !important;
  min-height:42px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  border-radius:11px !important;
  font-size:12px !important;
  font-weight:900 !important;
  cursor:pointer;
}
#customerDashboard .customer-side-website {
  border:1px solid rgba(255,255,255,.75) !important;
  background:#fff !important;
  color:#350d27 !important;
}
#customerDashboard .customer-side-website:hover { background:#ffeaf4 !important; }
#customerDashboard .customer-side-signout {
  border:1px solid rgba(255,255,255,.07) !important;
  background:#4a1028 !important;
  color:#ffb3c0 !important;
}
#customerDashboard .customer-side-signout:hover { background:#64132f !important; color:#fff !important; }
#customerDashboard > .customer-portal-header { margin-left:253px !important; }
#customerDashboard .customer-main { margin-left:281px !important; }
#customerDashboard > .bammi-global-footer { margin-left:281px !important; }

/* =========================================================
   SUPPORT POPUP — CHATWOOT-STYLE SUPPORT CARD
   ========================================================= */
/* Removed obsolete green launcher override; BAMMI support uses brand pink. */
.bammi-support-panel {
  position:fixed !important;
  right:24px !important;
  bottom:100px !important;
  z-index:11999 !important;
  width:min(390px,calc(100vw - 32px)) !important;
  height:min(640px,calc(100vh - 122px)) !important;
  min-height:420px;
  display:flex;
  flex-direction:column;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #e5e7eb !important;
  border-radius:16px !important;
  background:#f7f8fa !important;
  color:#17212b !important;
  box-shadow:0 18px 48px rgba(18,28,38,.20) !important;
}
.bammi-support-panel[hidden] { display:none !important; }
.bammi-support-panel-head {
  display:block !important;
  flex:0 0 auto;
  padding:17px 18px 15px !important;
  border:0 !important;
  border-bottom:1px solid #edf0f2 !important;
  background:#fff !important;
  color:#17212b !important;
}
.bammi-support-title-row { display:flex; align-items:center; gap:7px; }
.bammi-support-panel-head strong { color:#17212b !important; font-size:15px !important; font-weight:750 !important; }
.bammi-support-online-dot { width:8px; height:8px; border-radius:50%; background:#13a879; display:inline-block; }
.bammi-support-panel-head small { display:block; margin-top:4px !important; color:#667085 !important; font-size:12px !important; }
.bammi-support-panel-space { flex:1 1 auto; min-height:100px; background:#f7f8fa; }
.bammi-support-start-card {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 14px 10px;
  padding:18px 20px;
  border:1px solid #e4e7eb;
  border-radius:15px;
  background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.05);
}
.bammi-support-start-copy { display:flex; flex-direction:column; align-items:flex-start; gap:7px; min-width:0; }
.bammi-support-start-copy > strong { color:#17212b; font-size:15px; font-weight:750; }
.bammi-support-start-copy > span { color:#667085; font-size:13px; }
.bammi-support-start-link {
  display:inline-flex !important;
  align-items:center;
  gap:5px;
  margin-top:7px;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#07865d !important;
  font-size:14px !important;
  font-weight:750 !important;
  cursor:pointer;
}
.bammi-support-start-link:hover { color:#056c4b !important; }
.bammi-support-start-link svg { width:17px; height:17px; }
.bammi-support-agent-avatar {
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#ffe0bd;
  color:#a35c24;
  font-size:14px;
  font-weight:800;
}
.bammi-support-powered {
  flex:0 0 auto;
  padding:0 10px 12px;
  color:#8a9099;
  text-align:center;
  font-size:11px;
}
:root[data-theme="dark"] .bammi-support-panel { background:#f7f8fa !important; color:#17212b !important; }
@media(max-width:900px) {
  #customerDashboard > .customer-portal-header { margin-left:253px !important; }
  #customerDashboard .customer-side-menu { position:fixed !important; inset:0 auto 0 0 !important; width:253px !important; height:100vh !important; margin:0 !important; display:flex !important; grid-template-columns:none !important; }
  #customerDashboard .customer-main { margin:0 18px 0 271px !important; }
  #customerDashboard > .bammi-global-footer { margin:18px 18px 0 271px !important; }
}
@media(max-width:650px) {
  #customerDashboard > .customer-portal-header { margin-left:0 !important; }
  #customerDashboard .customer-side-menu { position:relative !important; inset:auto !important; width:auto !important; height:auto !important; margin:12px !important; display:flex !important; border-radius:14px !important; }
  #customerDashboard .customer-side-brand { min-height:68px; }
  #customerDashboard .customer-side-spacer { display:none; }
  #customerDashboard .customer-side-footer { grid-template-columns:1fr 1fr; }
  #customerDashboard .customer-main { margin:0 12px !important; }
  #customerDashboard > .bammi-global-footer { margin:16px 12px !important; }
  .bammi-support-launcher { right:16px !important; bottom:16px !important; width:58px !important; height:58px !important; }
  .bammi-support-panel { right:10px !important; bottom:84px !important; width:calc(100vw - 20px) !important; height:min(640px,calc(100vh - 104px)) !important; min-height:360px; }
}


/* FINAL CUSTOMER PORTAL ACCOUNT + COLLAPSIBLE SIDEBAR */
#customerDashboard .customer-side-menu { transition:width .22s ease, padding .22s ease; }
#customerDashboard .customer-sidebar-toggle { align-self:flex-end; width:38px !important; min-height:36px !important; padding:7px !important; color:#f8c9df !important; border:1px solid rgba(255,255,255,.14) !important; }
#customerDashboard .customer-sidebar-toggle:hover { background:rgba(255,255,255,.12) !important; }
#customerDashboard .customer-side-brand { display:flex; align-items:center; gap:12px; padding:5px 8px 20px; border-bottom:1px solid rgba(255,255,255,.13); }
#customerDashboard .customer-side-brand .brand-icon { flex:0 0 40px; }
#customerDashboard .customer-side-brand strong { display:block; color:#fff; font-size:16px; line-height:1.15; }
#customerDashboard .customer-side-brand small { display:block; color:#cba6ba; font-size:9px; letter-spacing:1px; margin-top:4px; }
#customerDashboard .customer-side-menu.is-collapsed { width:76px !important; padding-left:10px !important; padding-right:10px !important; }
#customerDashboard .customer-side-menu.is-collapsed .customer-side-brand > div:last-child,
#customerDashboard .customer-side-menu.is-collapsed .customer-menu-heading,
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target] { font-size:0 !important; }
#customerDashboard .customer-side-menu.is-collapsed .customer-side-brand { justify-content:center; padding-left:0; padding-right:0; }
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target] { justify-content:center !important; padding:10px !important; }
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target]::before { margin:0 !important; font-size:18px !important; }
#customerDashboard .customer-side-menu.is-collapsed .customer-side-footer button span { display:none; }
#customerDashboard .customer-side-menu.is-collapsed .customer-side-footer button { justify-content:center; padding:10px !important; }
#customerDashboard:has(.customer-side-menu.is-collapsed) > .customer-portal-header { margin-left:94px !important; }
#customerDashboard:has(.customer-side-menu.is-collapsed) .customer-main { margin-left:122px !important; }
#customerDashboard .customer-unlisted-toggle { background:var(--brand-50); border:1px solid var(--border); border-radius:12px; padding:13px; }
#customerDashboard .checkbox-line { display:flex; align-items:center; gap:10px; font-weight:800; }
#customerDashboard .checkbox-line input { width:18px; height:18px; accent-color:var(--brand-primary); }
#customerDashboard .customer-unlisted-toggle small { display:block; color:var(--text-muted); margin:6px 0 0 28px; }
#customerDashboard .customer-view[hidden] { display:none !important; }
#customerDashboard .customer-view:not([hidden]) { animation:customerViewIn .18s ease; }
@keyframes customerViewIn { from { opacity:.65; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media(max-width:900px) {
  #customerDashboard .customer-side-menu { width:76px !important; }
  #customerDashboard .customer-side-menu .customer-side-brand > div:last-child,
  #customerDashboard .customer-side-menu .customer-menu-heading,
  #customerDashboard .customer-side-menu [data-customer-target] { font-size:0 !important; }
  #customerDashboard .customer-side-menu [data-customer-target] { justify-content:center !important; padding:10px !important; }
  #customerDashboard .customer-side-menu [data-customer-target]::before { margin:0 !important; font-size:18px !important; }
  #customerDashboard > .customer-portal-header { margin-left:94px !important; }
  #customerDashboard .customer-main { margin-left:94px !important; }
}
@media(max-width:640px) {
  #customerDashboard .customer-side-menu { position:fixed !important; width:76px !important; }
  #customerDashboard > .customer-portal-header { margin-left:86px !important; width:calc(100% - 94px) !important; }
  #customerDashboard .customer-main { margin:0 10px 0 86px !important; }
  #customerDashboard .customer-side-brand { justify-content:center; }
  #customerDashboard .customer-sidebar-toggle { align-self:center; }
  #customerDashboard .customer-content .formgrid { grid-template-columns:1fr !important; }
}

.custom-product-flag { display:inline-block; margin-top:3px; padding:2px 6px; border-radius:5px; background:#ffe3f0; color:#a30e5c; font-size:9px; font-weight:900; letter-spacing:.5px; }
:root[data-theme="dark"] .custom-product-flag { background:#54223f; color:#ffc0df; }
@media(max-width:900px) {
  #customerDashboard .customer-side-menu:not(.is-collapsed) { width:235px !important; z-index:80; box-shadow:12px 0 36px rgba(20,0,12,.3); }
  #customerDashboard .customer-side-menu:not(.is-collapsed) .customer-side-brand > div:last-child { display:block !important; }
  #customerDashboard .customer-side-menu:not(.is-collapsed) .customer-menu-heading { font-size:11px !important; }
  #customerDashboard .customer-side-menu:not(.is-collapsed) [data-customer-target] { justify-content:flex-start !important; font-size:12px !important; }
  #customerDashboard .customer-side-menu:not(.is-collapsed) [data-customer-target]::before { margin-right:10px !important; font-size:16px !important; }
  #customerDashboard .customer-side-menu.is-collapsed { width:76px !important; }
  #customerDashboard .customer-side-menu.is-collapsed .customer-side-brand > div:last-child,
  #customerDashboard .customer-side-menu.is-collapsed .customer-menu-heading,
  #customerDashboard .customer-side-menu.is-collapsed [data-customer-target] { font-size:0 !important; }
}

#customerDashboard:has(.customer-side-menu.is-collapsed) > .bammi-global-footer { margin-left:122px !important; }
@media(max-width:900px) {
  #customerDashboard > .bammi-global-footer { margin-left:94px !important; }
  #customerDashboard:has(.customer-side-menu:not(.is-collapsed)) > .bammi-global-footer { margin-left:94px !important; }
}


/* Unified compact sidebar behavior for BOTH owner and customer portals.
   Colors are intentionally inherited from the existing BAMMI theme. */
#app .sidebar {
  width:260px !important;
  min-width:260px !important;
  transition:width .22s ease,min-width .22s ease,padding .22s ease;
  overflow-x:hidden;
  box-sizing:border-box;
}
#app .main-content {
  margin-left:260px !important;
  width:calc(100% - 260px) !important;
  transition:margin-left .22s ease,width .22s ease;
}
#app.owner-sidebar-collapsed .sidebar {
  width:48px !important;
  min-width:48px !important;
  padding-left:5px !important;
  padding-right:5px !important;
}
#app.owner-sidebar-collapsed .main-content {
  margin-left:48px !important;
  width:calc(100% - 48px) !important;
}
#app.owner-sidebar-collapsed .sidebar .brand > div:last-child,
#app.owner-sidebar-collapsed .sidebar .sidebar-label,
#app.owner-sidebar-collapsed .sidebar .nav-link span,
#app.owner-sidebar-collapsed .sidebar .sidebar-note {
  display:none !important;
}
#app.owner-sidebar-collapsed .sidebar .brand {
  justify-content:center !important;
  padding:8px 0 16px !important;
}
#app.owner-sidebar-collapsed .sidebar .brand-icon { margin:auto; }
#app.owner-sidebar-collapsed .sidebar .nav-link,
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom > button {
  justify-content:center !important;
  padding-left:0 !important;
  padding-right:0 !important;
  gap:0 !important;
}
#app.owner-sidebar-collapsed .sidebar .nav-link i,
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom > button i { margin:0 !important; }
.owner-sidebar-toggle {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; margin:0 0 12px auto;
  border:0; border-radius:9px; cursor:pointer;
  color:#f7c4dc; background:rgba(255,255,255,.08);
}
.owner-sidebar-toggle:hover { background:rgba(255,255,255,.14); }
#customerDashboard .customer-side-menu {
  width:250px !important;
  min-width:250px !important;
  transition:width .22s ease,min-width .22s ease,padding .22s ease;
}
#customerDashboard .customer-side-menu.is-collapsed {
  width:48px !important;
  min-width:48px !important;
  padding-left:5px !important;
  padding-right:5px !important;
}
#customerDashboard:has(.customer-side-menu.is-collapsed) .customer-main {
  margin-left:64px !important;
  grid-template-columns:1fr !important;
}
#customerDashboard:has(.customer-side-menu.is-collapsed) > .customer-portal-header {
  margin-left:64px !important;
}
#customerDashboard .customer-side-menu.is-collapsed .customer-side-brand > div:last-child,
#customerDashboard .customer-side-menu.is-collapsed .customer-menu-heading,
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target] span,
#customerDashboard .customer-side-menu.is-collapsed .customer-side-footer button span {
  display:none !important;
}
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target] {
  width:100%; justify-content:center !important; padding:10px 0 !important;
}
#customerDashboard .customer-side-menu.is-collapsed .customer-sidebar-toggle {
  align-self:center !important;
}
@media(max-width:760px) {
  #app.owner-sidebar-collapsed .sidebar { width:48px !important; min-width:48px !important; }
  #app.owner-sidebar-collapsed .main-content { margin-left:48px !important; width:calc(100% - 48px) !important; }
  #app:not(.owner-sidebar-collapsed) .sidebar { width:240px !important; min-width:240px !important; }
  #app:not(.owner-sidebar-collapsed) .main-content { margin-left:240px !important; width:calc(100% - 240px) !important; }
  #customerDashboard .customer-side-menu.is-collapsed { width:48px !important; min-width:48px !important; }
  #customerDashboard:has(.customer-side-menu.is-collapsed) .customer-main,
  #customerDashboard:has(.customer-side-menu.is-collapsed) > .customer-portal-header { margin-left:64px !important; }
}


/* =========================================================
   BAMMI RESPONSIVE REPAIR — SIDEBARS + PUBLIC MOBILE LANDING
   Keep the existing wine / burgundy / pink palette unchanged.
   ========================================================= */

/* Desktop: both portals use a true narrow icon rail when collapsed. */
#app .sidebar {
  position:fixed !important;
  inset:0 auto 0 0 !important;
  transform:none !important;
  width:260px !important;
  min-width:260px !important;
  max-width:260px !important;
  transition:width .22s ease,min-width .22s ease,max-width .22s ease !important;
  overflow-x:hidden !important;
}
#app .main-content {
  margin-left:260px !important;
  width:calc(100% - 260px) !important;
  min-width:0 !important;
  transition:margin-left .22s ease,width .22s ease !important;
}
#app.owner-sidebar-collapsed .sidebar {
  width:48px !important;
  min-width:48px !important;
  max-width:48px !important;
  padding-left:5px !important;
  padding-right:5px !important;
}
#app.owner-sidebar-collapsed .main-content {
  margin-left:48px !important;
  width:calc(100% - 48px) !important;
}
#app.owner-sidebar-collapsed .sidebar .brand > div:last-child,
#app.owner-sidebar-collapsed .sidebar .sidebar-label,
#app.owner-sidebar-collapsed .sidebar .nav-link span,
#app.owner-sidebar-collapsed .sidebar .sidebar-note,
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom button span {
  display:none !important;
}
#app.owner-sidebar-collapsed .sidebar .brand {
  justify-content:center !important;
  padding:8px 0 16px !important;
}
#app.owner-sidebar-collapsed .sidebar .brand-icon { margin:0 auto !important; }
#app.owner-sidebar-collapsed .sidebar .nav-link,
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom > button {
  justify-content:center !important;
  gap:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
#app.owner-sidebar-collapsed .sidebar .nav-link svg,
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom > button svg { margin:0 !important; }

/* Customer desktop sidebar uses the same compact rail dimensions. */
#customerDashboard .customer-side-menu {
  width:250px !important;
  min-width:250px !important;
  max-width:250px !important;
  transition:width .22s ease,min-width .22s ease,max-width .22s ease,padding .22s ease !important;
}
#customerDashboard .customer-side-menu.is-collapsed {
  width:48px !important;
  min-width:48px !important;
  max-width:48px !important;
  padding-left:5px !important;
  padding-right:5px !important;
}
#customerDashboard .customer-side-menu.is-collapsed .customer-side-brand > div:last-child,
#customerDashboard .customer-side-menu.is-collapsed .customer-menu-heading,
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target] span,
#customerDashboard .customer-side-menu.is-collapsed .customer-side-footer button span {
  display:none !important;
}
#customerDashboard .customer-side-menu.is-collapsed .customer-side-brand {
  justify-content:center !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target],
#customerDashboard .customer-side-menu.is-collapsed .customer-side-footer button {
  justify-content:center !important;
  width:100% !important;
  gap:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
#customerDashboard .customer-side-menu.is-collapsed .customer-sidebar-toggle {
  align-self:center !important;
}

/* Phone/tablet: sidebar stays as a slim fixed rail; opening it overlays
   the page instead of squeezing the content into an unusably narrow column. */
@media (max-width: 860px) {
  #app .sidebar {
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    padding:12px 5px !important;
    transform:none !important;
    z-index:1000 !important;
  }
  #app:not(.owner-sidebar-collapsed) .sidebar {
    width:240px !important;
    min-width:240px !important;
    max-width:240px !important;
    box-shadow:12px 0 36px rgba(20,0,12,.28) !important;
  }
  #app .main-content,
  #app.owner-sidebar-collapsed .main-content,
  #app:not(.owner-sidebar-collapsed) .main-content {
    margin-left:48px !important;
    width:calc(100% - 48px) !important;
    padding:14px 12px 28px !important;
  }
  #app.owner-sidebar-collapsed .sidebar .brand > div:last-child,
  #app.owner-sidebar-collapsed .sidebar .sidebar-label,
  #app.owner-sidebar-collapsed .sidebar .nav-link span,
  #app.owner-sidebar-collapsed .sidebar .sidebar-note,
  #app.owner-sidebar-collapsed .sidebar .sidebar-bottom button span {
    display:none !important;
  }

  #customerDashboard .customer-side-menu {
    position:fixed !important;
    inset:0 auto 0 0 !important;
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:100dvh !important;
    margin:0 !important;
    border-radius:0 !important;
    z-index:1000 !important;
    padding:12px 5px !important;
    overflow-y:auto !important;
  }
  #customerDashboard .customer-side-menu:not(.is-collapsed) {
    width:min(250px,82vw) !important;
    min-width:min(250px,82vw) !important;
    max-width:min(250px,82vw) !important;
    box-shadow:12px 0 36px rgba(20,0,12,.3) !important;
  }
  #customerDashboard > .customer-portal-header {
    margin-left:48px !important;
    width:calc(100% - 48px) !important;
    padding:12px 14px !important;
  }
  #customerDashboard .customer-main {
    margin:0 10px 0 58px !important;
    width:auto !important;
    min-width:0 !important;
  }
  #customerDashboard > .bammi-global-footer {
    margin:14px 10px 0 58px !important;
  }
  #customerDashboard .customer-content .formgrid,
  #customerDashboard .customer-content .stats {
    grid-template-columns:1fr !important;
  }
}

/* Public landing page: prevent fixed-width desktop columns from overflowing
   narrow Android/iPhone viewports. */
@media (max-width: 700px) {
  html, body { width:100% !important; max-width:100% !important; overflow-x:hidden !important; }
  #publicLanding { width:100% !important; max-width:100% !important; overflow-x:clip !important; }
  #publicLanding .landing-topbar { padding:10px 14px !important; }
  #publicLanding .landing-topbar-inner {
    width:100% !important;
    max-width:none !important;
    flex-wrap:wrap !important;
    gap:10px !important;
  }
  #publicLanding .landing-logo { min-width:0 !important; gap:8px !important; }
  #publicLanding .landing-logo strong { font-size:16px !important; }
  #publicLanding .landing-logo small { font-size:8px !important; letter-spacing:1px !important; }
  #publicLanding .landing-actions {
    width:auto !important;
    margin-left:auto !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }
  #publicLanding .landing-hotline,
  #publicLanding .landing-search-wrap { display:none !important; }
  #publicLanding .landing-login-btn,
  #publicLanding .landing-portal-btn { padding:8px 12px !important; font-size:12px !important; }
  #publicLanding .landing-nav-strip { width:100% !important; overflow:hidden !important; }
  #publicLanding .landing-nav-inner {
    width:100% !important;
    max-width:none !important;
    padding:8px 12px !important;
    gap:6px !important;
    overflow-x:auto !important;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
  }
  #publicLanding .landing-nav-inner::-webkit-scrollbar { display:none; }
  #publicLanding .nav-pill { flex:0 0 auto !important; padding:8px 12px !important; font-size:12px !important; }
  #publicLanding .landing-main {
    width:100% !important;
    max-width:none !important;
    margin:16px 0 28px !important;
    padding:0 12px !important;
  }
  #publicLanding .landing-hero-card {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:24px 18px !important;
    border-radius:22px !important;
  }
  #publicLanding .hero-carousel-slide,
  #publicLanding .hero-carousel-slide.active {
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:20px !important;
    padding:12px 0 !important;
  }
  #publicLanding .hero-left,
  #publicLanding .hero-right { width:100% !important; max-width:none !important; min-width:0 !important; }
  #publicLanding .hero-left h1 {
    width:100% !important;
    max-width:none !important;
    font-size:clamp(32px,10vw,42px) !important;
    line-height:1.08 !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    margin:14px 0 !important;
  }
  #publicLanding .hero-left p {
    width:100% !important;
    max-width:none !important;
    font-size:15px !important;
    line-height:1.65 !important;
  }
  #publicLanding .hero-cta-group {
    display:grid !important;
    grid-template-columns:1fr !important;
    width:100% !important;
    gap:10px !important;
    margin-top:18px !important;
  }
  #publicLanding .hero-cta-group > button {
    width:100% !important;
    min-height:52px !important;
    justify-content:center !important;
    white-space:normal !important;
  }
  #publicLanding .hospital-stage-card {
    width:100% !important;
    min-height:190px !important;
    padding:20px !important;
  }
  #publicLanding .stage-details h3 { font-size:19px !important; }
  #publicLanding .stage-details p { font-size:13px !important; line-height:1.5 !important; }
  #publicLanding .landing-metric-grid,
  #publicLanding .bammi-shop-highlights {
    width:100% !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    margin-top:16px !important;
  }
  #publicLanding .metric-box {
    width:100% !important;
    min-width:0 !important;
    padding:16px !important;
  }
  #publicLanding .ecg-ambient-container { opacity:.18 !important; }
  #publicLanding .bammi-support-launcher { right:14px !important; bottom:18px !important; }
}
@media (max-width: 380px) {
  #publicLanding .landing-logo strong { font-size:14px !important; }
  #publicLanding .landing-login-btn { padding:7px 10px !important; }
  #publicLanding .landing-main { padding:0 10px !important; }
  #publicLanding .landing-hero-card { padding:20px 15px !important; }
  #publicLanding .hero-left h1 { font-size:32px !important; }
}


/* FINAL LAYOUT OVERRIDE: fixed sidebar is outside the customer content grid. */
#customerDashboard .customer-main {
  display:block !important;
  grid-template-columns:minmax(0,1fr) !important;
  max-width:none !important;
}
#customerDashboard .customer-content { width:100% !important; min-width:0 !important; }
#customerDashboard > .customer-portal-header { margin-left:250px !important; }
#customerDashboard .customer-main { margin:0 24px 0 270px !important; }
#customerDashboard > .bammi-global-footer { margin:18px 24px 0 270px !important; }
#customerDashboard:has(.customer-side-menu.is-collapsed) > .customer-portal-header { margin-left:48px !important; }
#customerDashboard:has(.customer-side-menu.is-collapsed) .customer-main { margin:0 24px 0 64px !important; }
#customerDashboard:has(.customer-side-menu.is-collapsed) > .bammi-global-footer { margin:18px 24px 0 64px !important; }
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target] {
  font-size:0 !important;
}
#customerDashboard .customer-side-menu.is-collapsed [data-customer-target]::before {
  margin:0 !important;
  min-width:20px !important;
  font-size:18px !important;
}
@media(max-width:860px) {
  #customerDashboard > .customer-portal-header {
    margin-left:48px !important;
    width:calc(100% - 48px) !important;
  }
  #customerDashboard .customer-main {
    display:block !important;
    grid-template-columns:minmax(0,1fr) !important;
    margin:0 10px 0 58px !important;
    width:auto !important;
  }
  #customerDashboard > .bammi-global-footer { margin:14px 10px 0 58px !important; }
  #customerDashboard .customer-side-menu.is-collapsed { width:48px !important; min-width:48px !important; max-width:48px !important; }
}


/* CUSTOMER MENU ICON + TYPE REPAIR — explicit icons, no pseudo-glyphs. */
#customerDashboard .customer-side-menu > button[data-customer-target] {
  min-height:46px !important;
  gap:12px !important;
  padding:10px 14px !important;
  font-family:inherit !important;
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:750 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
}
#customerDashboard .customer-side-menu > button[data-customer-target]::before {
  content:none !important;
  display:none !important;
}
#customerDashboard .customer-side-menu > button[data-customer-target] > i,
#customerDashboard .customer-side-menu > button[data-customer-target] > svg {
  display:block !important;
  flex:0 0 19px !important;
  width:19px !important;
  height:19px !important;
  color:#efa8cb !important;
  stroke-width:2.3 !important;
}
#customerDashboard .customer-side-menu > button[data-customer-target].active > i,
#customerDashboard .customer-side-menu > button[data-customer-target].active > svg {
  color:#fff !important;
}
#customerDashboard .customer-side-menu > button[data-customer-target] > span {
  display:inline !important;
  font-size:14px !important;
  line-height:1.25 !important;
  font-weight:750 !important;
  color:inherit !important;
}
#customerDashboard .customer-menu-heading {
  font-size:11px !important;
  line-height:1.4 !important;
  font-weight:850 !important;
  letter-spacing:1.15px !important;
  color:#d59ab8 !important;
}
#customerDashboard .customer-side-menu.is-collapsed > button[data-customer-target] {
  justify-content:center !important;
  gap:0 !important;
  padding:10px 0 !important;
}
#customerDashboard .customer-side-menu.is-collapsed > button[data-customer-target] > span {
  display:none !important;
}
#customerDashboard .customer-side-menu.is-collapsed > button[data-customer-target] > i,
#customerDashboard .customer-side-menu.is-collapsed > button[data-customer-target] > svg {
  margin:0 !important;
}
#publicLanding .landing-nav-inner a.nav-pill,
#publicLanding .landing-nav-inner a.nav-pill:link,
#publicLanding .landing-nav-inner a.nav-pill:visited,
#publicLanding .landing-nav-inner a.nav-pill:hover,
#publicLanding .landing-nav-inner a.nav-pill:focus {
  text-decoration:none !important;
  border-bottom:0 !important;
  outline-offset:3px;
}


/* =========================================================
   BAMMI SUPPORT CHAT — PINK THEME + REAL CHAT COMPOSER
   ========================================================= */
.bammi-support-panel {
  display:flex !important;
  flex-direction:column !important;
  height:min(640px,calc(100vh - 122px)) !important;
  min-height:420px !important;
  background:#fff7fb !important;
  border:1px solid #efb8d3 !important;
  border-radius:18px !important;
  color:#351126 !important;
}
.bammi-support-panel[hidden] { display:none !important; }
.bammi-support-panel-head {
  flex:0 0 auto !important;
  background:linear-gradient(110deg,#4a0d2e,#c51b72) !important;
  color:#fff !important;
  border-bottom:1px solid #edb2d0 !important;
}
.bammi-support-panel-head strong { color:#fff !important; }
.bammi-support-panel-head small { color:#ffe1ef !important; }
.bammi-support-close { background:rgba(255,255,255,.17) !important; color:#fff !important; }
.bammi-support-panel-space {
  flex:1 1 auto !important;
  display:flex !important;
  align-items:flex-end !important;
  min-height:100px !important;
  padding:12px 12px 0 !important;
  background:#fff7fb !important;
}
.bammi-support-start-card {
  width:100% !important;
  margin:0 0 10px !important;
  border-color:#f0c6da !important;
  background:#fff !important;
  border-radius:16px !important;
  box-shadow:0 4px 14px rgba(135,25,81,.08) !important;
}
.bammi-support-start-copy > strong { color:#4a0d2e !important; }
.bammi-support-start-copy > span { color:#806879 !important; }
.bammi-support-start-link { color:#c51b72 !important; }
.bammi-support-start-link:hover { color:#8e124f !important; }
.bammi-support-agent-avatar { background:#ffe0ef !important; color:#9c185b !important; }
.bammi-support-powered { color:#9b7c8d !important; background:#fff7fb !important; }
.bammi-support-chat-view {
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  background:#fff7fb !important;
}
.bammi-support-chat-view[hidden] { display:none !important; }
.bammi-support-chat-messages {
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  padding:16px !important;
}
.bammi-support-message {
  max-width:84% !important;
  width:fit-content !important;
  padding:11px 14px !important;
  border-radius:16px 16px 16px 5px !important;
  background:#f8dce9 !important;
  color:#42142c !important;
  box-shadow:0 3px 12px rgba(120,22,70,.08) !important;
  overflow-wrap:anywhere !important;
}
.bammi-support-message.buyer {
  align-self:flex-end !important;
  border-radius:16px 16px 5px 16px !important;
  background:linear-gradient(135deg,#e72a88,#bd176b) !important;
  color:#fff !important;
}
.bammi-support-message.owner { align-self:flex-start !important; }
.bammi-support-message small {
  display:block !important;
  margin-bottom:5px !important;
  color:inherit !important;
  opacity:.9 !important;
  font-size:10px !important;
  font-weight:800 !important;
}
.bammi-support-message p { margin:0 !important; line-height:1.5 !important; white-space:pre-wrap !important; }
.bammi-support-empty,.bammi-support-error {
  margin:auto !important;
  padding:16px !important;
  text-align:center !important;
  color:#876c7c !important;
}
.bammi-support-error { color:#b42355 !important; }
.bammi-support-composer {
  flex:0 0 auto !important;
  display:flex !important;
  align-items:flex-end !important;
  gap:8px !important;
  padding:11px 12px !important;
  border-top:1px solid #f0d5e2 !important;
  background:#fff !important;
}
.bammi-support-composer textarea {
  flex:1 1 auto !important;
  min-width:0 !important;
  min-height:42px !important;
  max-height:110px !important;
  resize:vertical !important;
  padding:11px 13px !important;
  border:1px solid #e9bfd3 !important;
  border-radius:12px !important;
  background:#fffafd !important;
  color:#351126 !important;
  font:inherit !important;
}
.bammi-support-composer button {
  flex:0 0 42px !important;
  width:42px !important;
  height:42px !important;
  display:grid !important;
  place-items:center !important;
  border:0 !important;
  border-radius:12px !important;
  background:linear-gradient(135deg,#e72a88,#b91367) !important;
  color:#fff !important;
  cursor:pointer !important;
}
.bammi-support-composer button:disabled { opacity:.55 !important; cursor:wait !important; }
.bammi-support-signin {
  width:100% !important;
  margin:auto 0 10px !important;
  padding:18px !important;
  border:1px solid #efc6d9 !important;
  border-radius:16px !important;
  background:#fff !important;
}
.bammi-support-signin strong { color:#4a0d2e !important; }
.bammi-support-signin p { color:#806879 !important; font-size:13px !important; }
.bammi-support-launcher {
  background:linear-gradient(145deg,#e72a88,#a90e5b) !important;
  box-shadow:0 10px 28px rgba(173,15,94,.30) !important;
}
.bammi-support-launcher:hover { box-shadow:0 14px 32px rgba(173,15,94,.4) !important; }
:root[data-theme="dark"] .bammi-support-panel,
:root[data-theme="dark"] .bammi-support-chat-view,
:root[data-theme="dark"] .bammi-support-panel-space { background:#241321 !important; color:#fff0f7 !important; }
:root[data-theme="dark"] .bammi-support-start-card,
:root[data-theme="dark"] .bammi-support-signin,
:root[data-theme="dark"] .bammi-support-composer { background:#301a2a !important; border-color:#63334f !important; }
:root[data-theme="dark"] .bammi-support-start-copy > strong,
:root[data-theme="dark"] .bammi-support-signin strong { color:#fff0f7 !important; }
:root[data-theme="dark"] .bammi-support-composer textarea { background:#241321 !important; border-color:#70405b !important; color:#fff0f7 !important; }

/* Report conversation: readable text, stronger timestamps, balanced bubble widths. */
.report-messages {
  min-height:150px !important;
  max-height:440px !important;
  gap:14px !important;
  background:#fffafd !important;
  border:1px solid #efc6d9 !important;
}
.report-message {
  max-width:min(82%,620px) !important;
  min-width:110px !important;
  padding:13px 15px !important;
  font-size:14px !important;
  line-height:1.5 !important;
}
.report-message small {
  color:inherit !important;
  opacity:1 !important;
  font-size:11px !important;
  line-height:1.35 !important;
  font-weight:800 !important;
}
.report-message p { color:inherit !important; font-size:14px !important; }
.report-message.buyer-message {
  align-self:flex-end !important;
  background:linear-gradient(135deg,#f9d9e9,#fcebf3) !important;
  color:#54213c !important;
}
.report-message.owner-message {
  align-self:flex-start !important;
  background:linear-gradient(135deg,#a91e61,#64153e) !important;
  color:#fff !important;
}
.customer-report-detail-dialog {
  background:#fffafd !important;
  color:#351126 !important;
  border:1px solid #efbfd5 !important;
}
.customer-report-detail-dialog h2,
.customer-report-detail-dialog h3,
.customer-report-detail-dialog .report-thread > h3 { color:#4a0d2e !important; }
.customer-report-detail-dialog .report-messages { background:#fff7fb !important; }
:root[data-theme="dark"] .customer-report-detail-dialog {
  background:#241321 !important;
  color:#fff0f7 !important;
}
:root[data-theme="dark"] .customer-report-detail-dialog h2,
:root[data-theme="dark"] .customer-report-detail-dialog h3 { color:#fff0f7 !important; }
:root[data-theme="dark"] .customer-report-detail-dialog .report-messages { background:#1b101b !important; }

/* Owner Report Center: replace unstyled native-looking report rows with real cards. */
#reportList { width:100% !important; min-width:0 !important; overflow:visible !important; }
#reportList .report-ticket-list { display:grid !important; grid-template-columns:1fr !important; gap:10px !important; width:100% !important; }
#reportList .report-ticket-row {
  appearance:none !important;
  -webkit-appearance:none !important;
  width:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  padding:14px 16px !important;
  border:1px solid #f0c5da !important;
  border-radius:14px !important;
  background:#fffafd !important;
  color:#381326 !important;
  text-align:left !important;
  white-space:normal !important;
  cursor:pointer !important;
  box-shadow:0 4px 14px rgba(91,22,59,.06) !important;
}
#reportList .report-ticket-row:hover {
  border-color:#d94b91 !important;
  background:#fff3f9 !important;
  box-shadow:0 8px 20px rgba(173,40,105,.12) !important;
}
#reportList .report-ticket-main { display:flex !important; flex-direction:column !important; gap:4px !important; min-width:0 !important; }
#reportList .report-ticket-main strong { color:#7d1649 !important; font-size:14px !important; overflow-wrap:anywhere !important; }
#reportList .report-ticket-main span { color:#786373 !important; font-size:12px !important; }
#reportList .report-ticket-meta { color:#4c3443 !important; font-size:13px !important; overflow-wrap:anywhere !important; }
#reportList .report-ticket-status {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:6px 10px !important;
  border-radius:999px !important;
  background:#fff0f6 !important;
  color:#a3155d !important;
  font-size:11px !important;
  font-weight:850 !important;
  white-space:nowrap !important;
}
#reportList .report-ticket-status.fixed { background:#e8f8ef !important; color:#167443 !important; }
#reportList .report-ticket-status.voided { background:#f2eaf0 !important; color:#6d5363 !important; }
:root[data-theme="dark"] #reportList .report-ticket-row { background:#261522 !important; border-color:#59314a !important; color:#fff0f7 !important; }
:root[data-theme="dark"] #reportList .report-ticket-main strong,
:root[data-theme="dark"] #reportList .report-ticket-meta { color:#ffe1ef !important; }
:root[data-theme="dark"] #reportList .report-ticket-main span { color:#d1b6c6 !important; }

/* Customer report history cards: deliberate card layout, no native select appearance. */
#customerReportList { display:grid !important; grid-template-columns:1fr !important; gap:10px !important; width:100% !important; }
#customerReportList .customer-report-card {
  appearance:none !important;
  -webkit-appearance:none !important;
  width:100% !important;
  display:block !important;
  margin:0 !important;
  padding:17px 18px !important;
  border:1px solid #efc5d9 !important;
  border-radius:15px !important;
  background:#fffafd !important;
  color:#351126 !important;
  text-align:left !important;
  white-space:normal !important;
  box-shadow:0 5px 16px rgba(113,20,69,.07) !important;
}
#customerReportList .customer-report-card .customer-order-heading { display:flex !important; align-items:flex-start !important; justify-content:space-between !important; gap:12px !important; }
#customerReportList .customer-report-card .section-kicker { color:#a51b60 !important; font-size:11px !important; font-weight:850 !important; overflow-wrap:anywhere !important; }
#customerReportList .customer-report-card h3 { margin:5px 0 !important; color:#351126 !important; font-size:17px !important; }
#customerReportList .customer-report-card p { margin:9px 0 0 !important; color:#796676 !important; font-size:13px !important; line-height:1.5 !important; }
#customerReportList .customer-report-open-hint { display:block !important; margin-top:12px !important; color:#bd2675 !important; font-size:12px !important; font-weight:850 !important; }
:root[data-theme="dark"] #customerReportList .customer-report-card { background:#241321 !important; border-color:#63334f !important; color:#fff0f7 !important; }
:root[data-theme="dark"] #customerReportList .customer-report-card h3 { color:#fff0f7 !important; }
:root[data-theme="dark"] #customerReportList .customer-report-card p { color:#d6bdcc !important; }

/* Owner Support Inbox cards */
.owner-support-inbox { display:grid !important; gap:9px !important; }
.owner-support-row {
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  padding:13px 14px !important;
  border:1px solid #efc5d9 !important;
  border-radius:13px !important;
  background:#fffafd !important;
  color:#351126 !important;
  text-align:left !important;
  cursor:pointer !important;
}
.owner-support-row:hover { background:#fff0f7 !important; border-color:#d94b91 !important; }
.owner-support-avatar { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:50%; background:#fde0ee; color:#a3155d; }
.owner-support-row-main { min-width:0; flex:1; display:flex; flex-direction:column; gap:3px; }
.owner-support-row-main strong { font-size:14px; color:#4a0d2e; }
.owner-support-row-main small { color:#806879; font-size:11px; }
.owner-support-row-main > span { color:#5e4a57; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.owner-support-row-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.owner-support-row-meta b { color:#b51d6b; font-size:11px; }
.owner-support-row-meta small { color:#917b89; font-size:10px; }
.owner-support-dialog { max-width:680px !important; }
:root[data-theme="dark"] .owner-support-row { background:#261522 !important; border-color:#59314a !important; color:#fff0f7 !important; }
:root[data-theme="dark"] .owner-support-row-main strong,
:root[data-theme="dark"] .owner-support-row-main > span { color:#ffe1ef !important; }

@media(max-width:640px) {
  .bammi-support-panel { right:10px !important; bottom:82px !important; width:calc(100vw - 20px) !important; height:min(620px,calc(100dvh - 104px)) !important; min-height:340px !important; }
  .bammi-support-launcher { right:14px !important; bottom:14px !important; }
  #reportList .report-ticket-row { grid-template-columns:1fr !important; gap:7px !important; padding:13px !important; }
  #reportList .report-ticket-status { justify-self:start !important; }
  .report-message { max-width:92% !important; }
  .report-messages { max-height:52vh !important; }
}

.bammi-support-panel-space[hidden] { display:none !important; }
.bammi-support-chat-view[hidden] { display:none !important; }


/* FINAL BRAND + HEADER CORRECTION — supersedes legacy launcher styles */
button#bammiSupportLauncher.bammi-support-launcher,
.bammi-support-widget button#bammiSupportLauncher {
  background:linear-gradient(145deg,#ec3995 0%,#bd176b 58%,#861247 100%) !important;
  background-color:#bd176b !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:0 9px 26px rgba(173,15,94,.34) !important;
}
button#bammiSupportLauncher.bammi-support-launcher:hover,
.bammi-support-widget button#bammiSupportLauncher:hover {
  background:linear-gradient(145deg,#f04b9f 0%,#c51d75 58%,#941650 100%) !important;
  background-color:#c51d75 !important;
  box-shadow:0 12px 30px rgba(173,15,94,.42) !important;
}
#bammiSupportLauncher svg,
#bammiSupportLauncher i { color:#fff !important; stroke:#fff !important; }

#bammiSupportPanel .bammi-support-panel-head {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  min-height:76px !important;
  padding:15px 16px !important;
  background:linear-gradient(112deg,#4a0d2e 0%,#8d1550 55%,#bd176b 100%) !important;
  color:#fff !important;
}
#bammiSupportPanel .bammi-support-title-copy {
  display:flex !important;
  flex:1 1 auto !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:5px !important;
  min-width:0 !important;
}
#bammiSupportPanel .bammi-support-title-copy strong {
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  color:#fff !important;
  font-size:15px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  white-space:normal !important;
}
#bammiSupportPanel .bammi-support-title-copy small {
  display:block !important;
  margin:0 !important;
  color:#f9dce9 !important;
  font-size:12px !important;
  line-height:1.35 !important;
  font-weight:500 !important;
  white-space:normal !important;
}
#bammiSupportPanel .bammi-support-online-dot {
  width:8px !important;
  height:8px !important;
  flex:0 0 8px !important;
  display:inline-block !important;
  margin:0 !important;
  border-radius:50% !important;
  background:#4ee0a6 !important;
  box-shadow:0 0 0 3px rgba(78,224,166,.15) !important;
}
#bammiSupportPanel .bammi-support-close {
  position:static !important;
  inset:auto !important;
  float:none !important;
  flex:0 0 34px !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.24) !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.13) !important;
  color:#fff !important;
  font-size:22px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
#bammiSupportPanel .bammi-support-close:hover {
  background:rgba(255,255,255,.24) !important;
}
@media(max-width:420px) {
  #bammiSupportPanel .bammi-support-panel-head { min-height:72px !important; padding:13px 14px !important; }
  #bammiSupportPanel .bammi-support-title-copy strong { font-size:14px !important; }
  #bammiSupportPanel .bammi-support-title-copy small { font-size:11px !important; }
}


/* BAMMI website requested navigation and autobuy refinements */
#publicLanding .landing-nav-inner .nav-pill[data-open-autobuy] {
  border: 1px solid var(--border);
  background: var(--brand-50);
  color: var(--brand-700);
}
#publicLanding .landing-nav-inner .nav-pill[data-open-autobuy]:hover {
  background: var(--brand-100);
  border-color: var(--brand-300);
}
#customerDashboard .customer-side-footer button {
  border: 1px solid rgba(249,168,212,.38) !important;
  box-shadow: 0 2px 8px rgba(20,0,12,.08);
}
#customerDashboard .customer-side-website {
  border: 1px solid rgba(249,168,212,.42) !important;
}
#customerDashboard .customer-side-signout {
  border: 1px solid rgba(249,168,212,.32) !important;
}
#customerDashboard .customer-sidebar-toggle {
  width: 46px !important;
  min-width: 46px !important;
  min-height: 44px !important;
  padding: 9px !important;
  border-radius: 12px !important;
}
#customerDashboard .customer-sidebar-toggle > svg,
#customerDashboard .customer-sidebar-toggle > i {
  width: 22px !important;
  height: 22px !important;
}
#app .owner-sidebar-toggle {
  width: 46px !important;
  min-width: 46px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
}
#app .owner-sidebar-toggle > svg,
#app .owner-sidebar-toggle > i {
  width: 22px !important;
  height: 22px !important;
}
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom > button {
  min-width: 42px !important;
  width: 42px !important;
  height: 42px !important;
  padding: 9px !important;
  border: 1px solid rgba(249,168,212,.34) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom > button span {
  display: none !important;
}
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom > button svg {
  width: 21px !important;
  height: 21px !important;
  flex: 0 0 21px;
}
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom {
  justify-items: center;
}
#app.owner-sidebar-collapsed .sidebar .sidebar-bottom .sidebar-note {
  display: none !important;
}

.autobuy-balance-strip {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:15px 18px; margin:12px 0 18px; border-radius:14px;
  background:var(--brand-50); border:1px solid var(--brand-200);
  color:var(--brand-700); font-size:12px; font-weight:800;
}
.autobuy-balance-strip strong { font-size:20px; color:var(--brand-primary); }
.autobuy-link-notice {
  padding:16px; margin:12px 0; border:1px solid var(--brand-200);
  border-radius:14px; background:var(--brand-50); color:var(--text);
}
.autobuy-link-notice p { color:var(--text-muted); font-size:12px; margin:6px 0 12px; }
.customer-autobuy-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px;
}
.customer-autobuy-card {
  min-width:0; padding:18px; border:1px solid var(--border); border-radius:16px;
  background:var(--panel); box-shadow:var(--shadow-sm);
}
.customer-autobuy-card h4 { margin:0 0 7px; font-size:15px; color:var(--text); }
.customer-autobuy-card .autobuy-price { font-size:21px; font-weight:900; color:var(--brand-700); }
.customer-autobuy-card p { min-height:34px; color:var(--text-muted); font-size:12px; }
.customer-autobuy-card .autobuy-stock { font-size:11px; color:var(--text-muted); font-weight:800; }
.customer-autobuy-card .autobuy-quantity { display:block; margin-top:12px; font-size:11px; font-weight:800; }
.customer-autobuy-card .autobuy-quantity input { margin-top:5px; }
.customer-autobuy-card button { width:100%; margin-top:12px; }
.customer-autobuy-card button:disabled { opacity:.45; }
.autobuy-order-delivery {
  padding:10px 12px; margin-top:10px; border-radius:10px;
  background:var(--brand-50); border:1px solid var(--brand-100);
  overflow-wrap:anywhere; font-size:12px;
}
@media(max-width:650px) {
  .autobuy-balance-strip { align-items:flex-start; flex-direction:column; }
}


/* =========================================================
   BAMMI CUSTOMER ORDER / REPORT VISIBILITY FIXES
   ========================================================= */
.customer-order-card {
  color: #1e293b !important;
  background: #fff !important;
  border: 1px solid #f1dce8;
  border-radius: 16px;
}
.customer-order-card *,
.customer-order-detail-dialog *,
.bammi-report-dialog * {
  color: inherit;
}
.customer-order-card .section-kicker,
.customer-order-detail-dialog .section-kicker { color: #9d174d !important; }
.customer-order-card h3,
.customer-order-detail-dialog h2,
.customer-order-detail-dialog strong { color: #32061f !important; }
.customer-order-card .muted,
.customer-order-detail-dialog small,
.customer-order-detail-dialog p { color: #64748b !important; }
.customer-order-clickable { cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.customer-order-clickable:hover,
.customer-order-clickable:focus-visible {
  border-color: #e879b0;
  box-shadow: 0 8px 24px rgba(157,23,77,.10);
  outline: none;
  transform: translateY(-1px);
}
.customer-order-open-hint {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 12px;
  color: #be185d !important;
  font-size: 12px;
  font-weight: 800;
}
.customer-order-detail-dialog { color: #1e293b; }
.customer-order-detail-dialog .order-detail-grid > div,
.customer-order-detail-dialog .order-detail-block {
  min-width: 0;
}
.customer-order-detail-dialog .order-detail-block p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bammi-report-dialog {
  color: #1e293b !important;
  background: #fff !important;
}
.bammi-report-dialog .bammi-report-header {
  color: #1e293b !important;
  background: #fff7fb !important;
}
.bammi-report-dialog .bammi-report-header h2 { color: #32061f !important; }
.bammi-report-dialog .bammi-report-header p,
.bammi-report-dialog .bammi-report-header .section-kicker { color: #64748b !important; }
.bammi-report-dialog label,
.bammi-report-dialog strong,
.bammi-report-dialog .report-step { color: #32061f !important; }
.bammi-report-dialog small,
.bammi-report-dialog .field small { color: #64748b !important; }
.bammi-report-dialog input,
.bammi-report-dialog select,
.bammi-report-dialog textarea { color: #1e293b !important; background: #fff !important; }
.order-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.order-type-badge.autobuy { color: #7c2d12; background: #ffedd5; }
.order-type-badge.manual { color: #9d174d; background: #fce7f3; }
.admin-order-section-heading {
  justify-content: center !important;
  text-align: center;
  align-items: center !important;
}
.admin-order-section-heading > div { width: 100%; text-align: center; }
.admin-order-section-heading h3 { justify-content: center; }
.admin-order-create-card #orderForm { justify-items: stretch; }
.admin-order-create-card #orderForm > button[type="submit"] {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  min-width: 180px;
}
.admin-order-list-card .search-wrap { margin-left: auto; margin-right: auto; }
@media (max-width: 700px) {
  .customer-order-heading { align-items: flex-start; gap: 10px; }
  .customer-order-heading h3 { overflow-wrap: anywhere; }
  .admin-order-section-heading { text-align: center; }
}




.customer-order-card {
  display: block;
  margin: 0 0 12px;
  padding: 17px 18px;
  color: #1e293b !important;
  background: #fff !important;
  border: 1px solid #f1dce8;
  border-radius: 16px;
}
.customer-order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.customer-order-heading > div { min-width: 0; }
.customer-order-heading h3 { margin: 5px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.customer-order-card .status-badge { flex: 0 0 auto; }
.customer-order-card .muted { margin: 12px 0; }
.customer-order-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.customer-order-card .autobuy-order-delivery,
.customer-order-card .customer-digital-delivery {
  padding: 12px 14px;
  border: 1px solid #f5dce9;
  border-radius: 12px;
  background: #fff7fb;
  color: #334155 !important;
}
.customer-order-card .autobuy-order-delivery strong,
.customer-order-card .customer-digital-delivery small { color: #831843 !important; }
.customer-order-card .customer-digital-delivery p { margin: 6px 0 0; color: #475569 !important; overflow-wrap: anywhere; }


/* =========================================================
   BAMMI FINAL COLOR + PUBLIC NAVIGATION CONSISTENCY PATCH
   Keeps dynamically-created customer dialogs readable in both themes.
   ========================================================= */

/* Public landing navigation: one consistent pill system for every tab. */
#publicLanding .landing-nav-inner {
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
}
#publicLanding .landing-nav-inner .nav-pill,
#publicLanding .landing-nav-inner .nav-pill[data-open-autobuy] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  padding: 9px 18px !important;
  border: 1px solid #f0c6da !important;
  border-radius: 999px !important;
  background: #fff7fb !important;
  color: #71304f !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(92, 15, 55, .05) !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
#publicLanding .landing-nav-inner .nav-pill svg,
#publicLanding .landing-nav-inner .nav-pill i {
  width: 15px !important;
  height: 15px !important;
  color: currentColor !important;
}
#publicLanding .landing-nav-inner .nav-pill:hover,
#publicLanding .landing-nav-inner .nav-pill[data-open-autobuy]:hover {
  background: #fce7f3 !important;
  color: #9d174d !important;
  border-color: #e8a7c7 !important;
  transform: translateY(-1px);
}
#publicLanding .landing-nav-inner .nav-pill.active,
#publicLanding .landing-nav-inner .nav-pill.active[data-open-autobuy] {
  background: linear-gradient(135deg, #6b123f 0%, #941653 100%) !important;
  color: #fff !important;
  border-color: #6b123f !important;
  box-shadow: 0 5px 14px rgba(107, 18, 63, .18) !important;
}
#publicLanding .landing-nav-inner .nav-pill.active svg,
#publicLanding .landing-nav-inner .nav-pill.active i {
  color: #fff !important;
}
@media(max-width:760px) {
  #publicLanding .landing-nav-inner {
    justify-content: flex-start !important;
    gap: 7px !important;
    padding: 9px 14px !important;
  }
  #publicLanding .landing-nav-inner .nav-pill,
  #publicLanding .landing-nav-inner .nav-pill[data-open-autobuy] {
    min-height: 40px !important;
    padding: 8px 13px !important;
    font-size: 12px !important;
  }
}

/* Report and order dialogs: reset the inherited dark-card text rules. */
.customer-order-detail-dialog,
.customer-report-detail-dialog,
.bammi-report-dialog {
  isolation: isolate;
}
.customer-order-detail-dialog .order-detail-grid > div,
.customer-report-detail-dialog .order-detail-grid > div {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}
.customer-order-detail-dialog .order-detail-grid small,
.customer-report-detail-dialog .order-detail-grid small {
  display: block !important;
  margin-bottom: 5px !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}
.customer-order-detail-dialog .order-detail-grid strong,
.customer-report-detail-dialog .order-detail-grid strong {
  display: block !important;
  overflow-wrap: anywhere !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.customer-report-detail-dialog .customer-report-summary {
  border-radius: 15px !important;
  padding: 16px !important;
  margin-top: 16px !important;
}
.customer-report-detail-dialog .customer-report-summary h3 {
  margin: 0 0 9px !important;
}
.customer-report-detail-dialog .customer-report-summary p {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  line-height: 1.6 !important;
}
.customer-report-detail-dialog .customer-report-evidence a,
.customer-report-detail-dialog .reply-attachments a {
  display: inline-block !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  text-decoration: underline !important;
}
.customer-report-detail-dialog .report-thread,
.customer-report-detail-dialog .report-thread p,
.customer-report-detail-dialog .report-thread small {
  line-height: 1.55 !important;
}
.bammi-report-dialog .bammi-report-header h2 {
  margin: 10px 0 7px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}
.bammi-report-dialog .bammi-report-header p {
  line-height: 1.5 !important;
}
.bammi-report-dialog .bammi-report-section .field label {
  display: block !important;
  margin-bottom: 7px !important;
  font-weight: 800 !important;
}
.bammi-report-dialog .bammi-report-section input,
.bammi-report-dialog .bammi-report-section select,
.bammi-report-dialog .bammi-report-section textarea,
.bammi-report-dialog .bammi-report-section .bammi-select-trigger {
  min-height: 44px !important;
  border-radius: 11px !important;
}
.bammi-report-dialog .bammi-report-section input:focus,
.bammi-report-dialog .bammi-report-section select:focus,
.bammi-report-dialog .bammi-report-section textarea:focus,
.bammi-report-dialog .bammi-report-section .bammi-select-trigger:focus {
  outline: 3px solid rgba(219, 39, 119, .16) !important;
  border-color: #c02670 !important;
}
.bammi-report-dialog #bammiReportTitle,
.bammi-report-dialog .bammi-report-header h2 {
  color: #4a0d2e !important;
}
.bammi-report-dialog .bammi-report-header .section-kicker {
  color: #9d174d !important;
}
.customer-order-detail-dialog .order-detail-block,
.customer-order-detail-dialog .order-detail-block p,
.customer-order-detail-dialog .order-detail-block strong {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.customer-order-detail-dialog .order-detail-block p {
  line-height: 1.6 !important;
}

/* Light theme: light surfaces always use dark, high-contrast text. */
:root[data-theme="light"] .customer-order-detail-dialog,
:root[data-theme="light"] .customer-report-detail-dialog {
  background: #fffafd !important;
  color: #302033 !important;
  border: 1px solid #efc6d9 !important;
}
:root[data-theme="light"] .customer-order-detail-dialog h2,
:root[data-theme="light"] .customer-order-detail-dialog h3,
:root[data-theme="light"] .customer-order-detail-dialog strong,
:root[data-theme="light"] .customer-report-detail-dialog h2,
:root[data-theme="light"] .customer-report-detail-dialog h3,
:root[data-theme="light"] .customer-report-detail-dialog strong {
  color: #42132f !important;
}
:root[data-theme="light"] .customer-order-detail-dialog small,
:root[data-theme="light"] .customer-report-detail-dialog small,
:root[data-theme="light"] .customer-order-detail-dialog p,
:root[data-theme="light"] .customer-report-detail-dialog p {
  color: #625064 !important;
}
:root[data-theme="light"] .customer-order-detail-dialog .order-detail-grid > div,
:root[data-theme="light"] .customer-report-detail-dialog .order-detail-grid > div {
  background: #f9edf4 !important;
  border: 1px solid #efd3e1 !important;
  color: #42132f !important;
}
:root[data-theme="light"] .customer-order-detail-dialog .order-detail-grid small,
:root[data-theme="light"] .customer-report-detail-dialog .order-detail-grid small {
  color: #80677a !important;
}
:root[data-theme="light"] .customer-order-detail-dialog .order-detail-grid strong,
:root[data-theme="light"] .customer-report-detail-dialog .order-detail-grid strong {
  color: #42132f !important;
}
:root[data-theme="light"] .customer-report-detail-dialog .customer-report-summary {
  background: #fff !important;
  border: 1px solid #efc6d9 !important;
}
:root[data-theme="light"] .customer-report-detail-dialog .customer-report-summary h3 {
  color: #42132f !important;
}
:root[data-theme="light"] .customer-report-detail-dialog .customer-report-summary p {
  color: #625064 !important;
}
:root[data-theme="light"] .customer-report-detail-dialog a {
  color: #a3155d !important;
}
:root[data-theme="light"] .customer-order-detail-dialog .order-detail-block,
:root[data-theme="light"] .customer-order-detail-dialog .order-detail-block p {
  background: #fff4f9 !important;
  color: #514052 !important;
}
:root[data-theme="light"] .customer-order-detail-dialog .order-detail-block strong {
  color: #42132f !important;
}
:root[data-theme="light"] .bammi-report-dialog {
  background: #fffafd !important;
  color: #302033 !important;
}
:root[data-theme="light"] .bammi-report-dialog .bammi-report-header h2,
:root[data-theme="light"] .bammi-report-dialog #bammiReportTitle {
  color: #42132f !important;
}
:root[data-theme="light"] .bammi-report-dialog .bammi-report-header p {
  color: #625064 !important;
}

/* Dark theme: dark surfaces always use light, high-contrast text. */
:root[data-theme="dark"] .customer-order-detail-dialog,
:root[data-theme="dark"] .customer-report-detail-dialog {
  background: #211522 !important;
  color: #fff0f7 !important;
  border: 1px solid #63334f !important;
}
:root[data-theme="dark"] .customer-order-detail-dialog h2,
:root[data-theme="dark"] .customer-order-detail-dialog h3,
:root[data-theme="dark"] .customer-order-detail-dialog strong,
:root[data-theme="dark"] .customer-report-detail-dialog h2,
:root[data-theme="dark"] .customer-report-detail-dialog h3,
:root[data-theme="dark"] .customer-report-detail-dialog strong {
  color: #fff0f7 !important;
}
:root[data-theme="dark"] .customer-order-detail-dialog small,
:root[data-theme="dark"] .customer-report-detail-dialog small,
:root[data-theme="dark"] .customer-order-detail-dialog p,
:root[data-theme="dark"] .customer-report-detail-dialog p {
  color: #d8c2d1 !important;
}
:root[data-theme="dark"] .customer-order-detail-dialog .order-detail-grid > div,
:root[data-theme="dark"] .customer-report-detail-dialog .order-detail-grid > div {
  background: #35182d !important;
  border: 1px solid #63334f !important;
  color: #fff0f7 !important;
}
:root[data-theme="dark"] .customer-order-detail-dialog .order-detail-grid small,
:root[data-theme="dark"] .customer-report-detail-dialog .order-detail-grid small {
  color: #d6b7c9 !important;
}
:root[data-theme="dark"] .customer-order-detail-dialog .order-detail-grid strong,
:root[data-theme="dark"] .customer-report-detail-dialog .order-detail-grid strong {
  color: #fff0f7 !important;
}
:root[data-theme="dark"] .customer-report-detail-dialog .customer-report-summary {
  background: #2a1929 !important;
  border: 1px solid #63334f !important;
}
:root[data-theme="dark"] .customer-report-detail-dialog .customer-report-summary h3 {
  color: #fff0f7 !important;
}
:root[data-theme="dark"] .customer-report-detail-dialog .customer-report-summary p {
  color: #e1ccda !important;
}
:root[data-theme="dark"] .customer-report-detail-dialog a {
  color: #ff9bc9 !important;
}
:root[data-theme="dark"] .customer-order-detail-dialog .order-detail-block,
:root[data-theme="dark"] .customer-order-detail-dialog .order-detail-block p {
  background: #2a1929 !important;
  color: #e1ccda !important;
}
:root[data-theme="dark"] .customer-order-detail-dialog .order-detail-block strong {
  color: #fff0f7 !important;
}
:root[data-theme="dark"] .bammi-report-dialog {
  background: #211522 !important;
  color: #fff0f7 !important;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-header h2,
:root[data-theme="dark"] .bammi-report-dialog #bammiReportTitle {
  color: #fff0f7 !important;
}
:root[data-theme="dark"] .bammi-report-dialog .bammi-report-header p {
  color: #e1ccda !important;
}

/* BAMMI 2.0.2: Order section headers aligned to left with centered icon/text baseline */
#orders .admin-order-section-heading,
#orders .admin-order-section-heading > div {
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  text-align:left !important; width:100% !important;
}
#orders .admin-order-section-heading > div {width:auto !important; flex:1; min-width:0; display:block !important;}
#orders .admin-order-section-heading h3 {
  display:inline-flex !important; align-items:center !important; justify-content:flex-start !important;
  gap:9px !important; text-align:left !important; margin:0 !important;
}
#orders .admin-order-section-heading h3 svg,
#orders .admin-order-section-heading h3 i {width:20px; height:20px; flex:0 0 20px; vertical-align:middle;}
#orders .admin-order-section-heading p {text-align:left !important; margin-top:5px;}
#orders .admin-order-section-heading .mini-badge {margin-left:auto;flex-shrink:0;}
@media(max-width:600px){#orders .admin-order-section-heading{flex-wrap:wrap; gap:12px;}}

/* The refund tool is optional and expandable, with distinct readable rows */
.refund-calculator {border:1px solid var(--border,#ead1e0);border-radius:14px;padding:16px 18px;margin:20px 0;}
.refund-calculator > summary {list-style:none;cursor:pointer;display:flex;gap:12px;align-items:center;justify-content:space-between;}
.refund-calculator > summary::-webkit-details-marker {display:none;}
.refund-calculator > summary h3 {margin:0 !important;}
.refund-calculator > summary svg {height:18px;width:18px;transition:transform .2s;}
.refund-calculator[open] > summary svg {transform:rotate(180deg);}
.refund-calculator-body {padding-top:18px;display:grid;gap:16px;}
.refund-calculator-body > p {margin:0 0 2px !important;line-height:1.55;}
.refund-calculator .report-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;}
.refund-calculator .field {display:flex;flex-direction:column;gap:7px;min-width:0;margin:0 !important;}
.refund-calculator .field label {display:block;margin:0 !important;font-size:13px;line-height:1.4;}
.refund-calculator input,.refund-calculator select {width:100%;min-height:42px;}
.refund-calculator .refund-result {display:grid;gap:12px;padding:14px 16px;border-radius:12px;border:1px solid var(--border,#ead1e0);}
.refund-calculator .refund-result > div {display:flex;justify-content:space-between;align-items:baseline;gap:14px;flex-wrap:wrap;}
.refund-calculator .refund-result small {line-height:1.5;}
@media(max-width:550px){.refund-calculator .report-form-grid{grid-template-columns:1fr;}}
:root[data-theme="light"] .refund-calculator {background:#fff9fc;color:#263044;border-color:#eac9dc;}
:root[data-theme="light"] .refund-calculator .refund-result {background:#fff;color:#263044;border-color:#f0d7e5;}
:root[data-theme="dark"] .refund-calculator {background:#211522;color:#fff0f7;border-color:#57304e;}
:root[data-theme="dark"] .refund-calculator .refund-result {background:#2b192b;color:#fff0f7;border-color:#69405b;}

/* Unified color scheme in forms, modals, and dynamically inserted dialogs */
:root[data-theme="light"] :is(.content-card,.bammi-report-dialog,.bammi-modal,.order-detail-modal,.report-detail-modal,.refund-calculator) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select),
:root[data-theme="light"] :is(#app,#customerDashboard) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:#fff !important;color:#263044 !important;border-color:#e8cddd !important;color-scheme:light;
}
:root[data-theme="dark"] :is(.content-card,.bammi-report-dialog,.bammi-modal,.order-detail-modal,.report-detail-modal,.refund-calculator) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select),
:root[data-theme="dark"] :is(#app,#customerDashboard) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:#211522 !important;color:#fff0f7 !important;border-color:#68405b !important;color-scheme:dark;
}
:root[data-theme="light"] :is(.content-card,.bammi-report-dialog,.bammi-modal,.refund-calculator) :is(input,textarea)::placeholder {color:#8190a5 !important;opacity:1;}
:root[data-theme="dark"] :is(.content-card,.bammi-report-dialog,.bammi-modal,.refund-calculator) :is(input,textarea)::placeholder {color:#bea7bb !important;opacity:1;}
:root[data-theme="light"] :is(.content-card,.bammi-report-dialog,.bammi-modal,.refund-calculator) label {color:#263044 !important;}
:root[data-theme="dark"] :is(.content-card,.bammi-report-dialog,.bammi-modal,.refund-calculator) label {color:#fff0f7 !important;}


/* BAMMI 2.0.2 modal theme reconciliation.
   The owner report detail dialog was always painted dark, while <details>
   inherited the current root light theme. Apply a single palette to all its
   surfaces (including controls and the collapsed summary) in either mode. */
:root[data-theme="light"] .order-detail-dialog.report-detail-dialog {
  color-scheme:light;
  background:#fffafd !important;
  color:#302033 !important;
  border-color:#e9c6da !important;
}
:root[data-theme="dark"] .order-detail-dialog.report-detail-dialog {
  color-scheme:dark;
  background:linear-gradient(145deg,#2b1024,#1c111d) !important;
  color:#fff0f7 !important;
  border-color:#693451 !important;
}
:root[data-theme="light"] .report-detail-dialog :is(h2,h3,strong) {color:#42132f !important;}
:root[data-theme="dark"] .report-detail-dialog :is(h2,h3,strong) {color:#fff0f7 !important;}
:root[data-theme="light"] .report-detail-dialog :is(p,small,.muted,.section-kicker,.report-source-grid span,.order-detail-grid small,.field label) {color:#665468 !important;}
:root[data-theme="dark"] .report-detail-dialog :is(p,small,.muted,.section-kicker,.report-source-grid span,.order-detail-grid small,.field label) {color:#dcc3d2 !important;}
:root[data-theme="light"] .report-detail-dialog :is(.order-detail-grid > div,.order-detail-block,.report-source-grid > div,.report-evidence-item,.report-messages,.report-message,.refund-result) {
  background:#fff3f9 !important;border-color:#e9c6da !important;color:#302033 !important;
}
:root[data-theme="dark"] .report-detail-dialog :is(.order-detail-grid > div,.order-detail-block,.report-source-grid > div,.report-evidence-item,.report-messages,.report-message,.refund-result) {
  background:#35182d !important;border-color:#63334f !important;color:#fff0f7 !important;
}
:root[data-theme="light"] .report-detail-dialog .report-source-grid strong,
:root[data-theme="light"] .report-detail-dialog .order-detail-grid strong {color:#42132f !important;}
:root[data-theme="dark"] .report-detail-dialog .report-source-grid strong,
:root[data-theme="dark"] .report-detail-dialog .order-detail-grid strong {color:#fff0f7 !important;}
:root[data-theme="light"] .report-detail-dialog a {color:#9d174d !important;}
:root[data-theme="dark"] .report-detail-dialog a {color:#ffc1df !important;}
:root[data-theme="light"] .report-detail-dialog .order-detail-close {background:#fff1f7 !important;color:#42132f !important;border-color:#e9c6da !important;}
:root[data-theme="dark"] .report-detail-dialog .order-detail-close {background:#3a1b31 !important;color:#fff0f7 !important;border-color:#74405e !important;}

/* Override inherited summary styles, and align the summary with its modal. */
.report-detail-dialog .refund-calculator > summary {
  min-height:44px;
  padding:2px 0;
  background:transparent !important;
  border:0 !important;
  color:inherit !important;
  border-radius:0;
}
.report-detail-dialog .refund-calculator > summary h3 {color:inherit !important;}
.report-detail-dialog .refund-calculator > summary svg {color:inherit !important;flex-shrink:0;}
:root[data-theme="light"] .report-detail-dialog .refund-calculator {
  background:#fff5fa !important;color:#42132f !important;border-color:#e9c6da !important;
}
:root[data-theme="dark"] .report-detail-dialog .refund-calculator {
  background:#2c1929 !important;color:#fff0f7 !important;border-color:#70405b !important;
}
:root[data-theme="light"] .report-detail-dialog .refund-calculator > summary {color:#42132f !important;}
:root[data-theme="dark"] .report-detail-dialog .refund-calculator > summary {color:#fff0f7 !important;}
:root[data-theme="light"] .report-detail-dialog :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:#fff !important;color:#302033 !important;border-color:#ddb5cf !important;color-scheme:light;
}
:root[data-theme="dark"] .report-detail-dialog :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:#211522 !important;color:#fff0f7 !important;border-color:#70405b !important;color-scheme:dark;
}
:root[data-theme="light"] .report-detail-dialog :is(input,textarea)::placeholder {color:#776677 !important;opacity:1;}
:root[data-theme="dark"] .report-detail-dialog :is(input,textarea)::placeholder {color:#c4a7b9 !important;opacity:1;}
:root[data-theme="light"] .report-detail-dialog .refund-calculator :is(p,small,.muted,.field label) {color:#665468 !important;}
:root[data-theme="dark"] .report-detail-dialog .refund-calculator :is(p,small,.muted,.field label) {color:#dcc3d2 !important;}
:root[data-theme="light"] .report-detail-dialog .refund-calculator .refund-result {background:#fff !important;color:#42132f !important;border-color:#e9c6da !important;}
:root[data-theme="dark"] .report-detail-dialog .refund-calculator .refund-result {background:#35182d !important;color:#fff0f7 !important;border-color:#70405b !important;}


/* =========================================================
   BAMMI WEBSITE CUMULATIVE UI UPDATE — 2026-11-14
   ========================================================= */

/* Brand consistency and owner/customer header alignment */
.brand strong, .customer-side-brand strong { letter-spacing:-.025em; }
.customer-portal-brand { min-width:0; display:flex; align-items:center; gap:12px; }
.customer-portal-brand strong { line-height:1.2; }
.customer-portal-profile { display:flex; align-items:center; gap:10px; min-width:0; }
.customer-portal-actions { display:flex; align-items:center; gap:8px; }

/* Report cards: balanced columns, internal padding and aligned status pills */
#reportList .report-ticket-list { display:grid; gap:10px; padding:3px 4px 5px; }
#reportList .report-ticket-row {
  box-sizing:border-box; width:100%; min-height:68px;
  display:grid; grid-template-columns:minmax(220px,1.15fr) minmax(150px,.9fr) minmax(130px,auto);
  align-items:center; column-gap:20px; padding:14px 18px !important;
  border-radius:14px; overflow:hidden;
}
#reportList .report-ticket-main { min-width:0; display:grid; gap:4px; }
#reportList .report-ticket-main strong { overflow-wrap:anywhere; }
#reportList .report-ticket-meta { min-width:0; text-align:center; padding:0 10px; overflow-wrap:anywhere; }
#reportList .report-ticket-status { justify-self:end; align-self:center; min-width:112px; text-align:center; white-space:nowrap; box-sizing:border-box; }
#reportList .report-ticket-status.pending { min-width:112px; }
#reportList .report-ticket-status.fixed { min-width:112px; }

/* Orders category filter and pagination */
.order-filter-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 14px; }
.order-filter-tabs button {
  border:1px solid var(--border); background:var(--surface); color:var(--text);
  border-radius:999px; padding:9px 14px; font:inherit; font-size:12px; font-weight:800; cursor:pointer;
}
.order-filter-tabs button.active { color:#fff; background:var(--brand-primary); border-color:var(--brand-primary); }
.list-pagination { display:flex; align-items:center; justify-content:center; gap:14px; padding:16px 8px 6px; flex-wrap:wrap; }
.list-pagination > span { color:var(--text-muted); font-size:12px; }
.list-pagination button:disabled { opacity:.42; cursor:not-allowed; }

/* Customer support inbox: open and delete are separate, intentional actions */
.owner-support-row { display:flex !important; align-items:center; gap:10px; padding:10px !important; }
.owner-support-open { flex:1; min-width:0; display:flex; align-items:center; gap:12px; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; padding:2px; }
.owner-support-row-main { min-width:0; flex:1; display:grid; gap:3px; }
.owner-support-row-main > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.owner-support-row-meta { flex:0 0 auto; }
.owner-support-delete { flex:0 0 auto; padding:8px 12px !important; font-size:12px !important; }

/* Report evidence: buttons open an in-page preview instead of a blank data URL tab */
.report-evidence-item { width:100%; text-align:left; font:inherit; cursor:pointer; }
.evidence-preview-backdrop { position:fixed; inset:0; z-index:10050; display:grid; place-items:center; padding:18px; background:rgba(14,5,12,.78); }
.evidence-preview-panel { width:min(900px,96vw); max-height:92vh; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border); border-radius:18px; background:var(--surface); color:var(--text); box-shadow:0 24px 80px rgba(0,0,0,.35); }
.evidence-preview-panel header,.evidence-preview-panel footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); }
.evidence-preview-panel footer { justify-content:flex-end; border:0; border-top:1px solid var(--border); }
.evidence-preview-close { border:0; border-radius:10px; width:36px; height:36px; background:var(--brand-50); color:var(--text); font-size:24px; cursor:pointer; }
.evidence-preview-content { min-height:180px; overflow:auto; display:grid; place-items:center; padding:12px; }
.evidence-preview-content img { display:block; max-width:100%; max-height:68vh; object-fit:contain; }
.evidence-preview-content iframe { width:100%; height:68vh; border:0; background:#fff; }
.evidence-preview-trigger { cursor:pointer; }

/* Report detail form spacing and attachment field */
.report-detail-dialog .report-status-field { margin:18px 0 16px !important; }
.report-detail-dialog .report-status-field label,
.report-detail-dialog .field > label { display:block; margin-bottom:8px !important; line-height:1.4; }
.report-detail-dialog #reportStatusSelect { margin-top:2px; min-height:42px; }
.report-detail-dialog #reportStatusReason { margin-top:2px; min-height:76px; }
.report-detail-dialog #saveReportStatus { margin-top:12px; }
.report-detail-dialog .report-thread { margin-top:24px; }
.report-detail-dialog .report-reply-form { display:grid; gap:14px; margin-top:14px; }
.report-detail-dialog .reply-file-label { display:grid; gap:10px; padding:12px 14px; border-radius:12px; line-height:1.4; }
.report-detail-dialog .reply-file-label input { margin-top:2px; }

/* Records Export: separated category cards with clear hierarchy */
#exportDatasetList { display:grid; gap:12px; margin-top:16px; }
.export-dataset-row {
  display:grid !important; grid-template-columns:minmax(0,1fr) auto auto; align-items:center;
  gap:18px; padding:16px 18px; border:1px solid var(--border);
  border-radius:14px; background:var(--surface); box-shadow:0 4px 14px rgba(100,20,65,.045);
}
.export-dataset-row > div { min-width:0; display:grid; gap:5px; }
.export-dataset-row > div strong { font-size:15px; }
.export-dataset-row > div small { color:var(--text-muted); line-height:1.45; }
.export-dataset-row > span { color:var(--text-muted); font-size:12px; white-space:nowrap; }

/* Customer dashboard: richer cards, consistent visual hierarchy */
#customerDashboard .customer-main { align-items:start; }
#customerDashboard .customer-content { min-width:0; display:grid; gap:18px; }
#customerDashboard .customer-pinkcare-banner { min-height:180px; padding:30px 34px; }
#customerDashboard .customer-overview-dashboard { display:grid; grid-template-columns:minmax(250px,.9fr) minmax(0,1.5fr); gap:16px; align-items:stretch; }
#customerDashboard .customer-overview-dashboard > .content-card {
  padding:24px; border-radius:18px; border:1px solid var(--border);
  background:linear-gradient(145deg,var(--surface),var(--brand-50));
  box-shadow:0 8px 24px rgba(105,20,65,.07);
}
#customerDashboard .customer-overview-dashboard > .content-card h3 { margin:0 0 18px; font-size:19px; }
#customerDashboard .customer-overview-dashboard > .content-card strong { display:block; overflow-wrap:anywhere; font-size:14px; }
#customerDashboard .customer-overview-dashboard > .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-content:stretch; }
#customerDashboard .customer-overview-dashboard .stat-card {
  min-height:105px; border-radius:16px; padding:18px; border:1px solid var(--border);
  background:var(--surface); box-shadow:0 8px 22px rgba(105,20,65,.06);
}
#customerDashboard .customer-overview-dashboard .stat-card strong { font-size:27px; color:var(--brand-primary); }
#customerDashboard .customer-sidebar-note { margin:12px 0; padding:14px; border-radius:14px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); display:grid; gap:8px; color:var(--sidebar-text,#fff); }
#customerDashboard .customer-sidebar-note p { margin:0; font-size:12px; line-height:1.4; opacity:.82; }
#customerDashboard .customer-side-website { width:100%; min-height:42px; border-radius:12px; justify-content:center; background:#fff !important; color:#4b1235 !important; font-weight:800; }
#customerDashboard .customer-side-signout { width:100%; min-height:42px; border-radius:12px; justify-content:flex-start; }

/* Header and hero are responsive on tablet/mobile */
@media (max-width: 900px) {
  #customerDashboard > .customer-portal-header { margin-left:0 !important; width:100% !important; }
  #customerDashboard .customer-main { margin:0 14px !important; display:block !important; }
  #customerDashboard .customer-side-menu { position:relative !important; inset:auto !important; width:100% !important; height:auto !important; margin:12px 0 16px !important; }
  #customerDashboard .customer-overview-dashboard { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .customer-portal-header { min-height:unset; padding:10px 14px !important; display:grid !important; grid-template-columns:minmax(0,1fr) auto; gap:10px !important; }
  .customer-portal-brand { grid-column:1 / -1; justify-content:flex-start; }
  .customer-portal-brand strong { font-size:15px; }
  .customer-portal-profile { grid-column:1; grid-row:2; }
  .customer-portal-actions { grid-column:2; grid-row:2; justify-content:flex-end; }
  .customer-portal-actions .secondary-btn { padding:8px 10px !important; white-space:nowrap; }
  #customerDashboard .customer-main { margin:0 10px !important; }
  #customerDashboard .customer-pinkcare-banner { min-height:unset; padding:22px 20px; }
  #customerDashboard .customer-pinkcare-banner h1 { font-size:clamp(23px,6vw,34px); line-height:1.12; }
  #customerDashboard .customer-pinkcare-banner h1 br { display:none; }
  #customerDashboard .customer-pinkcare-banner p { max-width:100%; font-size:13px; }
  #customerDashboard .customer-pinkcare-banner .banner-art { width:100px; opacity:.55; }
  #customerDashboard .customer-overview-dashboard .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #reportList .report-ticket-row { grid-template-columns:minmax(0,1fr) auto !important; gap:8px 12px !important; padding:14px !important; }
  #reportList .report-ticket-meta { grid-column:1; text-align:left; padding:0; }
  #reportList .report-ticket-status { grid-column:2; grid-row:1 / span 2; min-width:108px; }
  .export-dataset-row { grid-template-columns:minmax(0,1fr) auto !important; gap:10px 14px !important; }
  .export-dataset-row > span { grid-column:1; }
  .export-dataset-row > button { grid-column:2; grid-row:1 / span 2; }
}
@media (max-width: 420px) {
  .customer-portal-header { grid-template-columns:1fr; }
  .customer-portal-brand,.customer-portal-profile,.customer-portal-actions { grid-column:1; grid-row:auto; }
  .customer-portal-actions { justify-content:flex-start; }
  #customerDashboard .customer-overview-dashboard .stats { grid-template-columns:1fr 1fr; }
  .list-pagination { gap:8px; }
  .list-pagination button { min-width:92px; }
  .owner-support-row { flex-wrap:wrap; }
  .owner-support-delete { margin-left:auto; }
}


/* Final responsive overrides: prevent stacked legacy rules from breaking the portal header */
#customerDashboard > .customer-portal-header {
  box-sizing:border-box; width:100%; min-width:0; display:flex; align-items:center;
  justify-content:space-between; gap:18px; padding:12px 22px;
}
#customerDashboard .customer-portal-brand strong { display:block; line-height:1.15; font-size:18px; }
#customerDashboard .customer-portal-brand strong small { display:block; margin-top:3px; }
#customerDashboard .customer-portal-brand strong small { font-size:10px; font-weight:600; color:var(--text-muted); letter-spacing:.04em; }
#customerDashboard .customer-portal-brand .brand-heart { display:inline; color:var(--brand-primary); }
#customerDashboard .customer-side-footer { display:grid; gap:10px; margin-top:auto; }
#customerDashboard .customer-sidebar-note { order:0; }
#customerDashboard .customer-side-website { order:1; }
#customerDashboard .customer-side-signout { order:2; }
#customerDashboard .customer-side-menu { box-sizing:border-box; }
#customerDashboard .customer-main { box-sizing:border-box; }
#customerDashboard .customer-content { min-width:0; }
#customerDashboard .customer-pinkcare-banner { box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:20px; overflow:hidden; }
#customerDashboard .customer-pinkcare-banner .banner-content { min-width:0; max-width:760px; }
#customerDashboard .customer-pinkcare-banner .banner-art { flex:0 1 210px; min-width:70px; }
#app .pinkcare-banner { box-sizing:border-box; }
.report-detail-dialog .report-status-field + .field { margin-top:16px !important; }
.report-detail-dialog .report-status-field select,
.report-detail-dialog .field textarea { width:100%; box-sizing:border-box; }
.report-detail-dialog .report-status-field select { margin-bottom:2px; }
.report-detail-dialog .report-status-field + .field label { margin-bottom:8px !important; }
.report-detail-dialog .report-attachment-field { margin:12px 0 !important; }
.report-detail-dialog .report-attachment-field input[type=file] { display:block; width:100%; margin-top:8px; }
.customer-report-evidence .evidence-preview-trigger { display:inline-flex; }
.reply-attachments .evidence-preview-trigger { max-width:100%; overflow-wrap:anywhere; }

/* Brand/header and hero responsiveness for both portals */
@media (max-width: 760px) {
  #customerDashboard > .customer-portal-header {
    display:grid !important; grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center; gap:10px 12px !important; padding:10px 14px !important;
  }
  #customerDashboard .customer-portal-brand { grid-column:1 / -1; min-width:0; }
  #customerDashboard .customer-portal-brand strong { font-size:15px; }
  #customerDashboard .customer-portal-profile { grid-column:1; min-width:0; }
  #customerDashboard .customer-portal-actions { grid-column:2; justify-self:end; }
  #customerDashboard .customer-portal-actions button { min-height:38px; }
  #customerDashboard .customer-main { margin:0 12px !important; padding:0 !important; }
  #customerDashboard .customer-side-menu { width:100% !important; min-width:0 !important; max-width:none !important; }
  #customerDashboard .customer-pinkcare-banner { padding:22px !important; min-height:unset !important; }
  #customerDashboard .customer-pinkcare-banner h1 { font-size:clamp(24px,5.8vw,34px) !important; line-height:1.12; }
  #customerDashboard .customer-pinkcare-banner p { max-width:100%; }
  #customerDashboard .customer-pinkcare-banner .banner-art { flex-basis:100px; }
  #app .pinkcare-banner { padding:22px !important; min-height:unset !important; }
  #app .pinkcare-banner h1 { font-size:clamp(24px,5.8vw,34px) !important; line-height:1.12; }
  #app .pinkcare-banner .banner-art { flex-basis:100px; }
}
@media (max-width: 520px) {
  #customerDashboard > .customer-portal-header { grid-template-columns:minmax(0,1fr) !important; }
  #customerDashboard .customer-portal-brand,
  #customerDashboard .customer-portal-profile,
  #customerDashboard .customer-portal-actions { grid-column:1; justify-self:start; }
  #customerDashboard .customer-portal-profile { grid-row:auto; }
  #customerDashboard .customer-portal-actions { grid-row:auto; }
  #customerDashboard .customer-portal-brand strong { font-size:14px; }
  #customerDashboard .customer-pinkcare-banner .banner-art { display:none; }
  #app .pinkcare-banner .banner-art { display:none; }
  .owner-support-open { flex-wrap:wrap; }
  .owner-support-row-meta { margin-left:auto; }
  .owner-support-delete { margin-left:auto; }
}


/* ===== Customer overview metrics: match the owner's icon-led dashboard ===== */
#customerDashboard .customer-overview-dashboard {
  grid-template-columns:minmax(245px,.95fr) minmax(0,2.25fr) !important;
  gap:16px !important;
  align-items:stretch;
}
#customerDashboard .customer-overview-dashboard > .customer-profile-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  min-width:0;
  padding:22px !important;
  background:var(--panel) !important;
}
#customerDashboard .customer-profile-heading {
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:14px;
}
#customerDashboard .customer-profile-heading h3 { margin:0 !important; }
#customerDashboard .customer-profile-icon {
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:var(--brand-600);
  background:var(--brand-50);
}
#customerDashboard .customer-profile-icon svg { width:20px; height:20px; stroke-width:2.2; }
#customerDashboard .customer-profile-card .customer-profile-label {
  margin:9px 0 2px !important;
  color:var(--text-muted);
  font-size:12px;
}
#customerDashboard .customer-profile-card > strong {
  max-width:100%;
  overflow-wrap:anywhere;
  color:var(--text);
  font-size:14px;
  font-weight:850;
}
#customerDashboard .customer-summary-stats {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:13px !important;
  align-content:stretch;
}
#customerDashboard .customer-summary-stats .stat-card {
  min-width:0;
  min-height:166px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  padding:17px 16px !important;
  border:1px solid var(--border);
  border-radius:17px;
  background:var(--panel);
  box-shadow:var(--shadow-card);
}
#customerDashboard .customer-summary-stats .stat-icon {
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  margin-bottom:4px;
  border-radius:12px;
}
#customerDashboard .customer-summary-stats .stat-icon svg { width:21px; height:21px; stroke-width:2.2; }
#customerDashboard .customer-summary-stats .stat-card > span {
  color:var(--text-muted);
  font-size:11px;
  font-weight:800;
  line-height:1.3;
}
#customerDashboard .customer-summary-stats .stat-card > strong {
  color:var(--brand-primary);
  font-size:27px;
  font-weight:950;
  line-height:1.1;
}
#customerDashboard .customer-summary-stats .trend-text {
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:auto;
  color:#8b9bb2;
  font-size:10px;
  font-weight:750;
  line-height:1.3;
}
#customerDashboard .customer-summary-stats .trend-text svg { width:17px; height:17px; flex:0 0 17px; }
#customerDashboard .customer-summary-stats .trend-text.positive { color:#047857; }
#customerDashboard .customer-summary-stats .trend-text.warning { color:#b45309; }
#customerDashboard .customer-sidebar-note { display:none !important; }

@media (max-width:1100px) {
  #customerDashboard .customer-overview-dashboard {
    grid-template-columns:minmax(220px,.85fr) minmax(0,1.8fr) !important;
  }
  #customerDashboard .customer-summary-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:900px) {
  #customerDashboard .customer-overview-dashboard { grid-template-columns:1fr !important; }
  #customerDashboard .customer-summary-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:420px) {
  #customerDashboard .customer-summary-stats { grid-template-columns:1fr 1fr !important; gap:9px !important; }
  #customerDashboard .customer-summary-stats .stat-card { min-height:150px; padding:13px !important; }
  #customerDashboard .customer-summary-stats .stat-card > span { font-size:10px; }
  #customerDashboard .customer-summary-stats .trend-text { font-size:9px; }
}


/* ===== Shared report-form checkbox and attachment styling ===== */
.bammi-report-section .password-input-row {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.bammi-report-section .password-input-row .password-field {
  flex:1 1 auto;
  min-width:0;
}
.bammi-report-section .report-inline-no-password {
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  flex:0 0 auto;
  min-height:42px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel-soft, var(--bg));
  color:var(--text);
  font-size:12px;
  font-weight:750;
  white-space:nowrap;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.bammi-report-section .report-inline-no-password input,
.bammi-report-section .report-check-label input {
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin:0;
  accent-color:#9d174d;
  cursor:pointer;
}
.bammi-report-section .report-inline-no-password:has(input:checked) {
  background:#fce7f3;
  border-color:#9d174d;
  color:#831843;
}
:root[data-theme="dark"] .bammi-report-section .report-inline-no-password:has(input:checked) {
  background:#4a1735;
  border-color:#f472b6;
  color:#fff1f7;
}
.bammi-report-section .report-check-field { margin:0; }
.bammi-report-section .report-check-label {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  line-height:1.35;
}
.bammi-report-section .report-replaced-checkbox-wrap {
  display:flex;
  align-items:center;
  min-height:44px;
  padding-top:2px;
}
.bammi-report-section .report-replaced-checkbox-wrap .field { margin:0; }
.bammi-report-section .report-check-label input:checked {
  accent-color:#9d174d;
}
@media(max-width:560px) {
  .bammi-report-section .password-input-row { align-items:stretch; flex-direction:column; gap:7px; }
  .bammi-report-section .report-inline-no-password { align-self:flex-start; min-height:34px; }
}

/* One attachment-chip design shared by owner/admin and customer views. */
.bammi-attachment-chip {
  appearance:none;
  display:inline-flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  width:auto;
  max-width:100%;
  min-width:0;
  min-height:40px;
  padding:9px 13px !important;
  border:1px solid var(--border) !important;
  border-radius:13px !important;
  background:var(--panel-soft, var(--bg)) !important;
  color:var(--text) !important;
  font:inherit;
  font-size:13px !important;
  font-weight:700;
  line-height:1.35;
  text-align:left;
  text-decoration:none !important;
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(70,20,48,.045);
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.bammi-attachment-chip:hover {
  border-color:var(--brand-primary, #c21867) !important;
  background:var(--brand-50, #fff1f7) !important;
  box-shadow:0 5px 14px rgba(194,24,103,.10);
  transform:translateY(-1px);
}
.bammi-attachment-chip:focus-visible {
  outline:3px solid rgba(219,39,119,.28);
  outline-offset:2px;
}
.bammi-attachment-chip::before {
  content:"";
  display:block;
  width:16px;
  height:16px;
  flex:0 0 16px;
  background:currentColor;
  opacity:.72;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05 12.25 20.24a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.82-2.83l8.49-8.48'/%3E%3C/svg%3E") center/contain no-repeat;
}
.report-evidence-grid,
.reply-attachments,
.customer-report-evidence {
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:9px;
}
.report-evidence-grid .bammi-attachment-chip,
.reply-attachments .bammi-attachment-chip {
  flex:0 1 auto;
}
:root[data-theme="dark"] .bammi-attachment-chip {
  background:var(--panel-soft, #291522) !important;
  color:var(--text, #fff0f7) !important;
  border-color:var(--border, #573149) !important;
  box-shadow:none;
}
:root[data-theme="dark"] .bammi-attachment-chip:hover {
  background:#422039 !important;
  border-color:#e879b0 !important;
}

/* Customer My Reports: collapsible submitted form details. */
.customer-submitted-details {
  margin-top:14px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--panel-soft, var(--bg));
}
.customer-submitted-details > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 15px;
  color:var(--text);
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  list-style:none;
}
.customer-submitted-details > summary::-webkit-details-marker { display:none; }
.customer-submitted-details > summary::after {
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  transition:transform .16s ease;
  margin:0 4px 4px 0;
}
.customer-submitted-details[open] > summary::after {
  transform:rotate(225deg);
  margin-top:7px;
}
.customer-submitted-details-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  padding:0 13px 13px;
}
.customer-submitted-detail-item {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:10px 11px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--panel);
}
.customer-submitted-detail-item span {
  color:var(--text-muted);
  font-size:10px;
  font-weight:800;
  text-transform:capitalize;
}
.customer-submitted-detail-item strong {
  color:var(--text);
  font-size:12px;
  font-weight:750;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
@media(max-width:560px) {
  .customer-submitted-details-grid { grid-template-columns:1fr; }
}
