/* ==========================================================================
   Customer-area pages for doctor.ayurvedabio.com - landing design language
   Covers: Customer/customer_dashboard, Home/login, Home/register,
           Home/forget_password, Home/set_new_password, Home/confirm

   DESIGN ONLY. Every rule here is scoped under `body.cx`, which is the single
   markup change on those views. No id, form action, input name or JS hook is
   touched, so front_js.js / bootstrap tabs / bootstrap modals keep working.

   Loaded AFTER style.css, media.css, rs6.css, landing-header-footer.css and
   the per-page checkout.css / registrationpage.css, so it wins the cascade.
   Design tokens come from landing-header-footer.css (:root).

   NOTE for future edits: front_js.js `new_alert()` calls $(el).removeClass()
   on the message divs, so they can never be styled by class - only by #id and
   by the .alert-success / .alert-danger classes JS adds afterwards. It also
   sets an inline `border: 1px solid #aaa`, hence the !important on borders.
   ========================================================================== */

/* ---------- page shell ---------- */
body.cx {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

.cx .cx-head h1, .cx .container-dash h2, .cx .container-dash h3, .cx .container-dash h4,
.cx .login-back h2, .cx .section-registration h2, .cx .section-registration h3,
.cx .modal .modal-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

/* scoped to page content only - header.header and footer.footer keep their own link colours */
.cx .container-dash a,
.cx .login-back a,
.cx .section-registration a,
.cx .cx-head a,
.cx .modal a { color: var(--leaf); }
.cx .container-dash a:hover,
.cx .login-back a:hover,
.cx .section-registration a:hover,
.cx .modal a:hover { color: var(--cta-green-dark); }

/* ---------- page header band (added markup: .cx-head) ---------- */
.cx .cx-head {
  padding: 44px 0 38px;
  text-align: center;
  background: linear-gradient(180deg, var(--sage) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.cx .cx-head .cx-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.cx .cx-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.cx .cx-head h1 {
  margin: 0 auto;
  max-width: 24ch;
  font-size: var(--step-4);
  line-height: 1.1;
}
.cx .cx-head p {
  max-width: 58ch;
  margin: 14px auto 0;
  font-size: var(--step-1);
  color: var(--muted);
}
.cx .cx-pulse { display: block; width: min(260px, 58%); margin: 16px auto 0; color: var(--gold); }
.cx .cx-pulse svg { display: block; width: 100%; height: auto; }

/* ==========================================================================
   FORM CONTROLS - shared by every customer page
   ========================================================================== */

/* style.css ships a global `input, select { box-shadow: 0 0 7px 0 #56b44a !important }`
   which paints a green halo on every field. It can only be beaten with !important. */
.cx input, .cx select, .cx textarea { box-shadow: none !important; }

/* text-ish inputs (registrationpage.css / checkout.css set the old look) */
.cx .form_wrapper input[type="text"],
.cx .form_wrapper input[type="phone"],
.cx .form_wrapper input[type="tel"],
.cx .form_wrapper input[type="email"],
.cx .form_wrapper input[type="password"],
.cx .form_wrapper input[type="number"],
.cx .form_wrapper textarea,
.cx .form-control {
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 12px 16px 12px 44px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  box-sizing: border-box;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* .form-control inputs (login / forgot / new password) have no icon column */
.cx .form-control { padding-left: 16px; }

.cx .form_wrapper input[type="text"]:hover,
.cx .form_wrapper input[type="phone"]:hover,
.cx .form_wrapper input[type="email"]:hover,
.cx .form_wrapper input[type="password"]:hover,
.cx .form-control:hover { background: #FFFDF9; }

.cx .form_wrapper input[type="text"]:focus,
.cx .form_wrapper input[type="phone"]:focus,
.cx .form_wrapper input[type="email"]:focus,
.cx .form_wrapper input[type="password"]:focus,
.cx .form_wrapper textarea:focus,
.cx .form-control:focus {
  background: #FFFFFF;
  border-color: var(--cta-green);
  box-shadow: 0 0 0 3px rgba(94, 155, 115, .18) !important;
}

.cx input::placeholder, .cx textarea::placeholder { color: #94A08F; opacity: 1; }

/* the icon gutter in .input_field */
.cx .form_wrapper .input_field { margin-bottom: 16px; }
.cx .form_wrapper .input_field > span {
  top: 1px;
  left: 1px;
  width: 40px;
  height: calc(100% - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
  background: var(--sage);
  color: var(--leaf);
}
.cx .form_wrapper .input_field > span > i { padding-top: 0; font-size: 15px; }

/* native selects - the server replaces their <option>s over ajax, so the
   element itself must stay a plain <select>; only the skin changes */
.cx .select_option select {
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 12px 40px 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cx .select_option select:hover {
  background: #FFFDF9;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.cx .select_option select:focus {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--cta-green);
  box-shadow: 0 0 0 3px rgba(94, 155, 115, .18) !important;
  outline: none;
}
.cx .select_arrow {
  top: calc(50% - 3px);
  right: 18px;
  border-width: 7px 5px 0 5px;
  border-top-color: var(--leaf);
}
.cx .select_option select:hover + .select_arrow,
.cx .select_option select:focus + .select_arrow { border-top-color: var(--cta-green-dark); }

/* checkboxes */
.cx input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cta-green);
  cursor: pointer;
}

/* ---------- submit buttons (keep .form-submit-btn - JS hides/shows it) ---------- */
.cx .form_wrapper input[type="submit"],
.cx input.button.form-submit-btn,
.cx button.form-submit-btn,
.cx input.form-submit-btn,
.cx .btn.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--cta-green);
  background-image: none;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 8px 22px rgba(94, 155, 115, .32) !important;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.cx .form_wrapper input[type="submit"]:hover,
.cx input.button.form-submit-btn:hover,
.cx button.form-submit-btn:hover,
.cx input.form-submit-btn:hover,
.cx .btn.btn-outline-primary:hover,
.cx .btn.btn-outline-primary:focus {
  background: var(--cta-green-dark);
  background-image: none;
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(94, 155, 115, .4) !important;
  transform: translateY(-2px);
}
.cx .form_wrapper input[type="submit"]:active,
.cx button.form-submit-btn:active,
.cx input.form-submit-btn:active { transform: translateY(0); }
.cx .form_wrapper input[type="submit"]:focus-visible,
.cx button.form-submit-btn:focus-visible,
.cx input.form-submit-btn:focus-visible {
  outline: 3px solid var(--cta-green-dark);
  outline-offset: 2px;
}

/* ---------- ajax message boxes (styled by #id + the classes JS adds) ---------- */
.cx .alert-success,
.cx .alert-danger,
.cx .alert-warning {
  padding: 13px 16px !important;
  border-radius: 12px !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.cx .alert-success {
  background: rgba(94, 155, 115, .13);
  border: 1px solid rgba(94, 155, 115, .5) !important;
  color: var(--leaf);
}
.cx .alert-danger {
  background: #FDECEC;
  border: 1px solid #F1C6C6 !important;
  color: #A32A2A;
}
.cx .alert-warning {
  background: rgba(232, 180, 90, .16);
  border: 1px solid rgba(232, 180, 90, .6) !important;
  color: var(--gold-text);
}

/* ==========================================================================
   AUTH PAGES - login / forget_password / set_new_password
   ========================================================================== */
/* the layouts use empty Bootstrap columns as left spacers; hide them and centre
   the card instead, so the page reads the same at every breakpoint */
.cx .login-back .col-lg-8.col-md-2,
.cx .section-registration > .container > .row > .col-md-3.col-sm-3.col-xs-12,
.cx .section-registration > .container > .row > .col-md-7.col-sm-5.col-xs-12 { display: none; }

.cx .section-registration > .container > .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
}
.cx .section-registration > .container > .row::before,
.cx .section-registration > .container > .row::after { display: none !important; }

.cx .login-back {
  padding: 60px 0 90px;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, .96) 0%, rgba(255, 249, 240, .86) 55%, rgba(255, 249, 240, .96) 100%),
    url("../img/doc1.jpeg") center / cover no-repeat;
  background-attachment: scroll;
}
.cx .login-box {
  display: flow-root; /* the .col-lg-12 children are floated - keep them inside the card */
  float: none;
  margin: 0 auto;
  padding: 30px 28px 26px;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(28, 53, 39, .12);
  text-align: center;
}
.cx .login-key {
  height: auto;
  line-height: 1;
  margin-bottom: 6px;
  padding: 0;
  -webkit-text-fill-color: currentColor;
}
.cx .login-key img { width: 84px !important; margin: 0 auto; }
.cx .login-box .title_container { padding: 6px 0 4px; }
.cx .login-box .title_container h2 {
  font-family: "Cormorant Garamond", serif !important;
  font-size: var(--step-3) !important;
  line-height: 1.15;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.cx .login-form { margin-top: 4px; padding: 0; }
.cx .login-box .form-group { margin-bottom: 12px; }
.cx .login-box .loginbttm { padding: 0; }
.cx .login-box .login-btm { float: none; width: 100%; padding: 0; }
.cx .login-button { margin: 6px 0 0; }
.cx .login-button button { margin-bottom: 16px; }
.cx .login-box .link-left,
.cx .login-box .link-right { margin: 0; font-size: 15px; font-weight: 600; }
.cx .login-box .link-left { float: left; }
.cx .login-box .link-right { float: right; }
.cx .login-box label { font-weight: 500; color: var(--muted); }
.cx .login-box .text-left { color: var(--muted); font-size: 15px; }

/* remember-me row */
.cx .login-box .form-group input[type="checkbox"] { vertical-align: -4px; }

/* ==========================================================================
   REGISTER / CONFIRM - .section-registration + .form_wrapper card
   ========================================================================== */
.cx .form_wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(28, 53, 39, .12);
}
.cx .form_wrapper .title_container { text-align: center; padding-bottom: 18px; }
.cx .form_wrapper h2 {
  font-size: var(--step-3);
  line-height: 1.15;
  margin: 0;
  padding-bottom: 16px;
  /* registrationpage.css ships a bare `h2 { border-bottom: 2px solid #59b853 }` */
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.cx .form_wrapper h3 { font-size: var(--step-1); color: var(--muted); }
.cx .form_wrapper .row { margin: 0 -8px; }
.cx .form_wrapper .row > div { padding: 0 8px; }
@media (min-width: 560px) {
  .cx .form_wrapper .col_half { width: 50%; float: left; }
}
.cx .section-registration { padding: 50px 0 90px; }
.cx .section-registration::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 249, 240, .66) 0%, rgba(255, 249, 240, .44) 55%, rgba(255, 249, 240, .70) 100%);
}

/* ==========================================================================
   DASHBOARD - Customer/customer_dashboard
   ========================================================================== */

/* Bootstrap 3 puts a `content:" "; display:table` clearfix on ::before/::after of
   .container-fluid, .nav and .row. Inside a grid/flex container those pseudo-elements
   become REAL anonymous items and push every child one cell along - which silently
   swapped the sidebar and the content column. Kill them wherever we lay out with grid. */
.cx .container-dash::before,
.cx .container-dash::after,
.cx .nav-dash ul.nav::before,
.cx .nav-dash ul.nav::after,
.cx #menu1.tab-pane::before,
.cx #menu1.tab-pane::after { display: none !important; }

/* the dark navy shell becomes the page canvas */
.cx .container-dash {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 70px !important;
  background-color: transparent !important;
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
@media (min-width: 992px) {
  .cx .container-dash { grid-template-columns: 264px minmax(0, 1fr); gap: 26px; }
}

/* left column: the tab list, as a cream card of pills */
.cx .nav-dash {
  float: none !important;
  width: auto !important;
  min-height: 0;
  margin: 0 !important;
  padding: 10px !important;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.cx .nav-dash .container-fluid { padding: 0; }
.cx .nav-dash .navbar-collapse { padding: 0; border: 0; box-shadow: none; }
.cx .nav-dash .navbar-header { padding: 0 4px; }
.cx .nav-dash ul.nav {
  display: grid;
  gap: 4px;
  float: none;
  width: 100%;
  margin: 0;
  border: 0;
}
.cx .nav-dash li { width: 100%; margin: 0; float: none; }
.cx .nav-dash li a {
  display: flex !important;
  align-items: center;
  padding: 12px 15px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: background .16s ease, color .16s ease;
}
.cx .nav-dash li a:hover,
.cx .nav-dash li a:focus {
  background: var(--sage) !important;
  color: var(--leaf) !important;
  border-color: transparent !important;
}
.cx .nav-dash li.active > a,
.cx .nav-dash li.active > a:hover,
.cx .nav-dash li.active > a:focus {
  background: var(--cta-green) !important;
  color: #FFFFFF !important;
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(94, 155, 115, .28);
}
/* the last item is Изход - a plain link, never .active */
.cx .nav-dash li:last-child a {
  margin-top: 6px !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 0 12px 12px !important;
  color: var(--muted) !important;
  font-weight: 600;
}
.cx .nav-dash li:last-child a:hover { color: #A32A2A !important; background: #FDECEC !important; }

/* mobile hamburger */
.cx .nav-dash .navbar-toggle {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.cx .nav-dash .navbar-toggle .icon-bar { background-color: var(--leaf) !important; }

/* right column: the tab content, as one cream card */
.cx .tab-content.nav-dashr {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 26px 28px 30px !important;
  background: var(--card);
  border: 1px solid var(--line) !important;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.cx .nav-dashr h2 {
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-3);
  line-height: 1.15;
  color: var(--ink);
  text-align: left;
}
.cx .nav-dashr h2 font { font-family: inherit !important; }

/* forms inside the dashboard are already inside a card - flatten them */
.cx .nav-dashr .form_wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cx .nav-dashr .form_wrapper .title_container { text-align: left; padding: 0 0 20px; }
.cx .nav-dashr .form_container { max-width: 520px; }
.cx .nav-dashr .form_wrapper input[type="submit"] { max-width: 320px; }

/* tab 1: booking form + schedule side by side */
@media (min-width: 1100px) {
  .cx #menu1.tab-pane.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
  }
  .cx #menu1 #menu8 { min-width: 0; }
}
.cx #menu9 {
  float: none !important;
  width: 100%;
  margin: 26px 0 0;
  padding: 20px 22px !important;
  background: var(--sage);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}
@media (min-width: 1100px) {
  .cx #menu9 { margin-top: 0; }
}
.cx #menu9 h2 {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-2);
  text-align: center;
}
.cx #menu9 table, .cx #menu9 td { border: 0 !important; padding: 0 !important; }
.cx #menu9 td { font-size: 15px; line-height: 1.55; color: var(--muted); }
.cx #menu9 hr { margin: 12px 0; border: 0; border-top: 1px solid var(--line); }

/* "искам да запазя час за друг пациент" checkbox row */
.cx #menu8 .input_field > div[style*="float:left"] + div,
.cx .form_wrapper .input_field > div { font-size: 15px; color: var(--ink); }

/* ---------- tables (Моите консултации / Моето семейство) ---------- */
.cx .shop_table.my_account_orders {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}
.cx .shop_table.my_account_orders th,
.cx .shop_table.my_account_orders td {
  padding: 14px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.cx .shop_table.my_account_orders tr > th.order-date {
  padding-top: 0 !important;
  color: var(--muted) !important;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cx .shop_table.my_account_orders tr:last-child > td,
.cx .shop_table.my_account_orders tr:last-child > th { border-bottom: 0 !important; }
.cx .consult-row:hover { background-color: var(--sage) !important; }
.cx .shop_table a { font-weight: 600; }
.cx .i-del { color: #C0392B !important; }
.cx .shop_table .fa { font-size: 17px; }
.cx .shop_table th h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--step-2);
  text-align: center;
}
.cx .mobile-consultations > div { font-size: 15px; line-height: 1.6; color: var(--ink); }
.cx .mobile-consultations strong { color: var(--leaf); }

/* empty states */
.cx .nav-dashr .tab-pane > div[style*="text-align: center"] a { font-weight: 700; }

/* ---------- modals ---------- */
.cx .modal .modal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(28, 53, 39, .28);
  overflow: hidden;
}
.cx .modal .modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(94, 155, 115, .13), rgba(94, 155, 115, .02));
}
.cx .modal .modal-title { font-size: var(--step-2); color: var(--leaf); }
.cx .modal .modal-header .close {
  margin-top: 2px;
  color: var(--muted);
  opacity: .7;
  font-size: 26px;
  text-shadow: none;
}
.cx .modal .modal-header .close:hover { color: var(--ink); opacity: 1; }
.cx .modal .modal-body { padding: 22px 24px 24px; color: var(--ink); }
.cx .modal .modal-body .input_field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
}
.cx .modal .modal-body .input_field input[type="text"]:focus {
  border-color: var(--cta-green);
  box-shadow: 0 0 0 3px rgba(94, 155, 115, .18) !important;
  outline: none;
}
.cx .modal input.btn.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--cta-green);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(94, 155, 115, .32) !important;
}
.cx .modal input.btn.form-submit-btn:hover { background: var(--cta-green-dark); color: #FFFFFF; }

/* bootbox confirm dialogs (delete family member / cancel consultation) */
.cx + .bootbox .modal-content,
.bootbox .modal-content {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.bootbox .modal-footer { border-top: 1px solid var(--line); }
.bootbox .btn-success {
  background: var(--cta-green);
  border-color: var(--cta-green);
  border-radius: 999px;
  font-weight: 600;
}
.bootbox .btn-success:hover { background: var(--cta-green-dark); border-color: var(--cta-green-dark); }
.bootbox .btn-danger { border-radius: 999px; font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 991px) {
  .cx .nav-dash ul.nav { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .cx .container-dash { padding: 24px 14px 56px !important; }
  .cx .tab-content.nav-dashr { padding: 20px 16px 24px !important; }
  .cx .login-box { padding: 24px 18px 22px; }
  .cx .form_wrapper { padding: 22px 18px 20px; }
  .cx .cx-head { padding: 34px 0 28px; }
}
@media (max-width: 560px) {
  .cx .login-box .link-left,
  .cx .login-box .link-right { float: none; display: block; margin-bottom: 8px; }
}

/* ==========================================================================
   ГРАФИК - accordion by location (built by assets_web/js/schedule-accordion.js)
   Replaces a ~21 900px flat list of 133 clinic days with 23 collapsed rows.
   If the script does not run, the original table renders unchanged.
   ========================================================================== */
.cx #menu9.sched-ready { max-height: none; overflow: visible; }

.cx .sched { display: block; }
.cx .sched-summary {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: center;
}
.cx .sched-search {
  width: 100%;
  min-height: 42px;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--ink);
}
.cx .sched-search:focus {
  border-color: var(--cta-green);
  box-shadow: 0 0 0 3px rgba(94, 155, 115, .18) !important;
  outline: none;
}

.cx .sched-list {
  display: grid;
  gap: 6px;
  max-height: 520px;
  margin: 0;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 155, 115, .45) transparent;
}
.cx .sched-list::-webkit-scrollbar { width: 8px; }
.cx .sched-list::-webkit-scrollbar-track { background: transparent; }
.cx .sched-list::-webkit-scrollbar-thumb {
  background: rgba(94, 155, 115, .38);
  border-radius: 999px;
}
.cx .sched-list::-webkit-scrollbar-thumb:hover { background: rgba(94, 155, 115, .6); }
.cx .sched-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.cx .sched-item.is-open { border-color: rgba(94, 155, 115, .5); }

.cx .sched-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  padding: 11px 36px 11px 14px;
  position: relative;
  border: 0;
  background: transparent;
  font-family: "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
}
.cx .sched-head:hover { background: var(--sage); }
.cx .sched-head:focus-visible { outline: 3px solid var(--cta-green-dark); outline-offset: -3px; }
.cx .sched-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.cx .sched-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 3px;
  font-size: 12.5px;
}
.cx .sched-next { font-weight: 700; color: var(--leaf); }
.cx .sched-count {
  padding: 2px 9px;
  background: rgba(232, 180, 90, .22);
  border-radius: 999px;
  color: var(--gold-text);
  font-weight: 700;
}
.cx .sched-chev {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}
.cx .sched-item.is-open .sched-chev { transform: rotate(180deg); color: var(--leaf); }

.cx .sched-body {
  padding: 2px 14px 14px;
  border-top: 1px solid var(--line);
}
.cx .sched-addr {
  margin: 12px 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.cx .sched-dates { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.cx .sched-month {
  margin: 8px 0 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.cx .sched-date {
  display: grid;
  grid-template-columns: 46px 26px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(233, 221, 203, .55);
  font-size: 14px;
}
.cx .sched-date:last-child { border-bottom: 0; }
.cx .sched-date.is-past { opacity: .45; }
.cx .sched-day { font-weight: 700; color: var(--ink); }
.cx .sched-dow { color: var(--muted); font-size: 12.5px; }
.cx .sched-doc { color: var(--leaf); font-weight: 600; }

.cx .sched-empty {
  margin: 14px 0 4px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.cx .sched-foot {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.cx .sched-foot a { font-weight: 700; white-space: nowrap; }

@media (max-width: 767px) {
  .cx .sched-list { max-height: 60vh; }
}
