/* ════════════════════════════════════════════════════════════
   Yutie Client Overrides · chunk 1D (with chunk 1E hotfix)
   ─────────────────────────────────────────────────────────────
   Customer portal becomes Access. Pairs with the wholesale
   theme view replacement at views/themes/perfex/*.
   See CASCADE-AUDIT.md (b) for stylesheet load order, (d) for
   cascade-winner analysis, (f) for the strategy.

   Specificity floor: html[data-theme] body.customers (0,2,2).
   `!important` annotated with the matching Perfex selector.

   ─────────────────────────────────────────────────────────────
   Chunk 1E diagnosis:
   Bug class: same as admin · the chunk 1D "lift Perfex chrome
        above the canvas" rule used `body.customers > *` which
        also matches #bgCanvas. That promotes the canvas from
        `position: fixed` (yutie-brand.css) to `position: relative`,
        which (in customer body's `display: flex; flex-direction:
        column; min-height: 100vh` layout, theme/style.css:1-15)
        turns the canvas into a flex item with intrinsic
        ~window-sized dimensions. The canvas then occupies the
        first vertical slot, pushing the navbar, wrapper, and
        footer below the initial viewport. Eutychus hadn't yet
        verified this on customer; chunk 1E pre-emptively fixes
        the parallel bug.
   Fix: changed `body.customers > *` to
        `body.customers > *:not(#bgCanvas)` so the canvas keeps
        its locked `position: fixed`. The `*:not(...)` selector
        has the same specificity as `*` (zero from the universal
        selector and the negation), so the existing chunk 1D
        cascade-winning logic is preserved for every non-canvas
        child of body.
═══════════════════════════════════════════════════════════ */

/* ─── BODY CASCADE ─────────────────────────────────────────
   Perfex theme: `body { background:#f8fafc; color:#334155 }`
   at assets/themes/perfex/css/style.css:1-15 (specificity 0,0,1) */
html[data-theme="dark"] body.customers,
html[data-theme="light"] body.customers {
  background: var(--bg);
  color: var(--text);
}

/* Float Perfex chrome above the canvas.
   chunk 1E: excluded #bgCanvas via :not(). The canvas must keep its
   `position: fixed` from yutie-brand.css; otherwise it becomes a
   flex item in body's `display: flex; flex-direction: column`
   layout and consumes the first viewport-sized slot, pushing
   real content out of view.
   chunk 1G: also exclude `nav` (Fix B per chunk 1G spec). With the
   nav forced to z-index:1, it was establishing a stacking context
   that trapped Bootstrap's .dropdown-menu (z-index:1000) inside,
   below sibling #wrapper (also z-index:1). Letting the nav default
   to Bootstrap's `.navbar { position: relative }` with z-index:auto
   means it does NOT create a stacking context, so the dropdown's
   z-index:1000 resolves in the body's stacking context and renders
   above wrapper content (z=1). The navbar still paints above the
   canvas because navbar is later in DOM than #bgCanvas at the same
   effective z=0 stacking layer (CSS 2.1 z-auto-tiebreak rule). */
html[data-theme] body.customers > *:not(#bgCanvas):not(nav) {
  position: relative;
  z-index: 1;
}
/* The fixed canvas sits at z-index:0 from yutie-brand.css */

/* ─── CANVAS RING OPACITY (chunk 1E walk-back) ────────────
   Chunk 1D set 0.88/0.68 ("dominant"). Chunk 1E: 0.70/0.55 to
   match admin and read as "clearly visible peripheral presence". */
html[data-theme="dark"] body.customers #bgCanvas {
  opacity: 0.70;
  filter: drop-shadow(0 0 14px var(--gold-glow));
}
html[data-theme="light"] body.customers #bgCanvas {
  opacity: 0.55;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}
html[data-theme] body.customers.calm #bgCanvas {
  opacity: 0.20;
  filter: none;
}

/* ─── LOGO SIZING ──────────────────────────────────────── */
.yutie-logo { display: block; height: auto; }
.yutie-logo-sidebar { width: 40px; }
.yutie-logo-topnav  { width: 28px; }
.yutie-logo-login   { max-height: 80px; width: auto; margin: 0 auto 20px; }

/* ════════════════════════════════════════════════════════════
   TOP NAV · .yutie-customer-nav .navbar.navbar-default.header
   Perfex theme: `.navbar-default { background:white; border-bottom:1px solid #e2e8f0 }`
   at theme/style.css:469-473 (0,1,0).
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .navbar.navbar-default.header,
html[data-theme] body.customers .navbar.navbar-default,
html[data-theme] body.customers .navbar.header {
  background: var(--glass) !important;
  border: none !important;
  border-bottom: 1px solid var(--rule) !important;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  margin-bottom: 0;
  /* chunk 1H: backdrop-filter creates a stacking context regardless of
     z-index (CSS spec, "stacking context creation triggers"). Chunk 1G's
     Fix B (excluding nav from the position:relative; z-index:1 selector)
     therefore did NOT escape the stacking context · the navbar still
     isolates because backdrop-filter is non-none. The dropdown-menu
     (Bootstrap z:1000, raised to z:9000 by Perfex's tailwind.css build)
     resolves WITHIN the nav's context. Wrapper sibling at z:1 then
     paints above the nav in body's stacking context (DOM-order tiebreak
     of z=0 vs z=1: wrapper z=1 wins). Files/Calendar (inside wrapper)
     appear above the dropdown.
     Real fix: explicit z-index on the nav, higher than wrapper's z:1
     but below Bootstrap modal z:1040 so modals still beat the nav.
     z-index: 50 chosen as the safe middle ground. */
  position: relative;
  z-index: 50;
}

/* chunk 1G: the wordmark is now the gold Y SVG alone (the "Access" text
   was removed from navigation.php). The brand-mark anchor still uses
   inline-flex so the Y centers vertically in the 60px navbar line. */
html[data-theme] body.customers .navbar-brand,
html[data-theme] body.customers .yutie-brand-mark {
  display: inline-flex !important;
  align-items: center;
  padding: 14px 0;
  height: auto;
  color: var(--text);
}
html[data-theme] body.customers .yutie-brand-mark .yutie-logo {
  width: 32px;
  height: 32px;
}
/* .yutie-brand-word retained as a defensive selector in case any
   downstream code re-emits the text; harmless if never matched. */
html[data-theme] body.customers .yutie-brand-word {
  display: none;
}

/* matches: .navbar-default .navbar-nav > li > a { color:#334155 } at theme/style.css:475 (0,3,2) */
html[data-theme] body.customers .navbar-default .navbar-nav > li > a {
  color: var(--text2) !important;
  font-family: var(--spartan);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
  background: transparent !important;
  line-height: 60px !important;
  border-radius: 0 !important;
}
html[data-theme] body.customers .navbar-default .navbar-nav > li > a i {
  color: inherit;
}
/* matches: .navbar-default .navbar-nav > .active > a { color:#0f172a; background:#f1f5f9 } at theme/style.css:499 (0,4,3) */
html[data-theme] body.customers .navbar-default .navbar-nav > .active > a,
html[data-theme] body.customers .navbar-default .navbar-nav > .active > a:focus,
html[data-theme] body.customers .navbar-default .navbar-nav > .active > a:hover,
html[data-theme] body.customers .navbar-default .navbar-nav > li > a:hover,
html[data-theme] body.customers .navbar-default .navbar-nav > li > a:focus {
  color: var(--gold) !important;
  background: transparent !important;
  border-radius: 0 !important;
}
html[data-theme] body.customers .navbar-default .navbar-nav > .active > a {
  border-bottom: 2px solid var(--gold) !important;
}

/* The login CTA `.customers-nav-item-login > a` carries !important on
   bg/color in the stock theme. Same Yutie three-state map. */
/* matches: .navbar-default .navbar-nav > li.customers-nav-item-login > a {background:#2563eb!important} theme/style.css:532 */
html[data-theme] body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold)) !important;
  color: #08080a !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 16px !important;
  line-height: 1.4 !important;
  margin-left: 10px;
  font-weight: 700;
}
html[data-theme] body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a:hover,
html[data-theme] body.customers .navbar-default .navbar-nav > li.customers-nav-item-login > a:active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dp)) !important;
  border-radius: var(--r-sm) !important;
  color: #08080a !important;
}

/* Customer top submenu (Files / Calendar). */
html[data-theme] body.customers .submenu.customer-top-submenu {
  background: var(--glass);
  border-radius: var(--r);
  padding: 12px 20px;
  margin: 18px 0 24px;
  border: 1px solid var(--rule);
  list-style: none;
  display: flex;
  gap: 22px;
}
html[data-theme] body.customers .submenu.customer-top-submenu a {
  color: var(--text2);
  font-family: var(--spartan);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
html[data-theme] body.customers .submenu.customer-top-submenu a:hover {
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   PANELS
   Bootstrap `.panel{background:#fff}` 0,1,0 + Tailwind `.tw-bg-white !important`.
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .panel,
html[data-theme] body.customers .panel.panel-default,
html[data-theme] body.customers .panel_s,
html[data-theme] body.customers .well,
html[data-theme] body.customers .tw-bg-white {
  background: var(--glass) !important;
  border: 1px solid var(--rule) !important;
  border-radius: var(--r) !important;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 1px 2px rgba(0, 0, 0, 0.10),
    0 18px 48px var(--shadow);
}
html[data-theme] body.customers .panel-heading {
  background: transparent !important;
  border-bottom: 1px solid var(--rule) !important;
  color: var(--gold);
  font-family: var(--spartan);
  font-weight: 700;
}
html[data-theme] body.customers .panel-body {
  background: transparent !important;
  color: var(--text);
}
html[data-theme] body.customers .panel-footer {
  background: transparent !important;
  border-top: 1px solid var(--rule) !important;
  color: var(--text2);
}

html[data-theme] body.customers h1,
html[data-theme] body.customers h2,
html[data-theme] body.customers h3,
html[data-theme] body.customers h4,
html[data-theme] body.customers h5,
html[data-theme] body.customers h6 {
  color: var(--text);
}
html[data-theme] body.customers .text-muted {
  color: var(--text2) !important;
}

/* ════════════════════════════════════════════════════════════
   TABLES + DataTables
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .table,
html[data-theme] body.customers table.dataTable {
  background: var(--glass) !important;
  border-radius: var(--r-sm);
  color: var(--text);
  overflow: hidden;
}
html[data-theme] body.customers .table > thead > tr > th,
html[data-theme] body.customers table.dataTable thead th {
  background: var(--glass-2) !important;
  color: var(--gold) !important;
  font-family: var(--spartan);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule) !important;
}
html[data-theme] body.customers .table > tbody > tr > td,
html[data-theme] body.customers table.dataTable tbody td {
  border-top: 1px solid var(--rule) !important;
  color: var(--text);
  background: transparent;
}
html[data-theme] body.customers .table > tbody > tr:hover,
html[data-theme] body.customers table.dataTable tbody tr:hover {
  background: var(--gold-pale) !important;
}
html[data-theme] body.customers .dataTables_wrapper .dataTables_filter input,
html[data-theme] body.customers .dataTables_wrapper .dataTables_length select {
  background: var(--glass-2) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--text);
  border-radius: var(--r-xs);
}
html[data-theme] body.customers .dataTables_wrapper .paginate_button {
  background: transparent !important;
  border: 1px solid var(--rule) !important;
  color: var(--text2) !important;
  border-radius: var(--r-xs);
}
html[data-theme] body.customers .dataTables_wrapper .paginate_button.current,
html[data-theme] body.customers .dataTables_wrapper .paginate_button:hover {
  background: var(--gold-pale) !important;
  border-color: var(--gold-line) !important;
  color: var(--gold) !important;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .btn {
  font-family: var(--spartan);
  font-weight: 600;
  letter-spacing: 0.10em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
}
/* matches: Bootstrap .btn-primary {background-color:#337ab7} */
html[data-theme] body.customers .btn-primary,
html[data-theme] body.customers .btn.btn-primary,
html[data-theme] body.customers button.btn-primary {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold)) !important;
  border-color: var(--gold) !important;
  color: #08080a !important;
  box-shadow: 0 4px 16px var(--gold-glow);
}
html[data-theme] body.customers .btn-primary:hover,
html[data-theme] body.customers .btn-primary:focus,
html[data-theme] body.customers .btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dp)) !important;
  color: #08080a !important;
  box-shadow: 0 0 0 3px var(--gold-glow), 0 8px 24px var(--gold-glow) !important;
  transform: translateY(-1px);
}
/* matches: Bootstrap .btn-default {background:#fff} */
html[data-theme] body.customers .btn-default,
html[data-theme] body.customers .btn.btn-default {
  background: transparent !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--text) !important;
}
html[data-theme] body.customers .btn-default:hover,
html[data-theme] body.customers .btn-default:focus {
  background: var(--glass-2) !important;
  border-color: var(--gold-line) !important;
  color: var(--text) !important;
}
/* three-state map */
html[data-theme] body.customers .btn-success {
  background: var(--tending-bg) !important;
  border-color: var(--tending) !important;
  color: var(--text) !important;
}
html[data-theme] body.customers .btn-info {
  background: var(--quiet-bg) !important;
  border-color: var(--quiet) !important;
  color: var(--text) !important;
}
html[data-theme] body.customers .btn-warning,
html[data-theme] body.customers .btn-danger {
  background: var(--waiting-bg) !important;
  border-color: var(--waiting) !important;
  color: var(--text) !important;
}
html[data-theme] body.customers .bg-success {
  background: var(--tending) !important;
  color: #08080a !important;
}
html[data-theme] body.customers .bg-info {
  background: var(--quiet) !important;
  color: #08080a !important;
}
html[data-theme] body.customers .bg-warning,
html[data-theme] body.customers .bg-danger {
  background: var(--waiting) !important;
  color: #08080a !important;
}

/* text-color utilities → three-state map */
html[data-theme] body.customers .text-warning { color: var(--waiting) !important; }
html[data-theme] body.customers .text-success { color: var(--tending) !important; }
html[data-theme] body.customers .text-info    { color: var(--quiet)   !important; }
html[data-theme] body.customers .text-danger  { color: var(--waiting) !important; }

/* ════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .form-control,
html[data-theme] body.customers input[type="text"],
html[data-theme] body.customers input[type="email"],
html[data-theme] body.customers input[type="password"],
html[data-theme] body.customers input[type="tel"],
html[data-theme] body.customers input[type="url"],
html[data-theme] body.customers input[type="number"],
html[data-theme] body.customers input[type="search"],
html[data-theme] body.customers textarea,
html[data-theme] body.customers select {
  background: var(--glass-2) !important;
  border: 1px solid var(--rule-2) !important;
  border-radius: var(--r-xs);
  color: var(--text) !important;
  font-family: var(--outfit);
}
html[data-theme] body.customers .form-control:focus,
html[data-theme] body.customers input:focus,
html[data-theme] body.customers textarea:focus,
html[data-theme] body.customers select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px var(--gold-pale) !important;
  outline: none;
}
html[data-theme] body.customers .control-label,
html[data-theme] body.customers label {
  color: var(--text2);
  font-family: var(--spartan);
  font-weight: 500;
  letter-spacing: 0.04em;
}
html[data-theme] body.customers input[type="radio"],
html[data-theme] body.customers input[type="checkbox"] {
  accent-color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .modal-content {
  background: var(--bg) !important;
  border: 1px solid var(--gold-line) !important;
  border-radius: var(--r);
  color: var(--text);
}
html[data-theme] body.customers .modal-header { border-bottom: 1px solid var(--rule) !important; }
html[data-theme] body.customers .modal-footer { border-top: 1px solid var(--rule) !important; }
html[data-theme] body.customers .modal-backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ════════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .alert {
  border-radius: var(--r-sm);
  border-left: 3px solid;
  color: var(--text);
}
html[data-theme] body.customers .alert-success {
  background: var(--tending-bg) !important;
  border-color: var(--tending) !important;
}
html[data-theme] body.customers .alert-warning,
html[data-theme] body.customers .alert-danger {
  background: var(--waiting-bg) !important;
  border-color: var(--waiting) !important;
}
html[data-theme] body.customers .alert-info {
  background: var(--quiet-bg) !important;
  border-color: var(--quiet) !important;
}

/* ════════════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .nav-tabs {
  border-bottom: 1px solid var(--rule);
}
html[data-theme] body.customers .nav-tabs > li > a {
  border: none !important;
  color: var(--text2) !important;
  background: transparent !important;
  font-family: var(--spartan);
  font-weight: 600;
  letter-spacing: 0.06em;
}
html[data-theme] body.customers .nav-tabs > li > a:hover {
  background: transparent !important;
  color: var(--gold) !important;
}
html[data-theme] body.customers .nav-tabs > li.active > a,
html[data-theme] body.customers .nav-tabs > li.active > a:hover {
  background: transparent !important;
  color: var(--gold) !important;
  border-bottom: 2px solid var(--gold) !important;
}

/* ════════════════════════════════════════════════════════════
   DROPDOWNS
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .dropdown-menu {
  background: var(--bg) !important;
  border: 1px solid var(--rule-2) !important;
  border-radius: var(--r-sm);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 18px 48px var(--shadow);
}
html[data-theme] body.customers .dropdown-menu > li > a {
  color: var(--text) !important;
  background: transparent !important;
}
html[data-theme] body.customers .dropdown-menu > li > a:hover,
html[data-theme] body.customers .dropdown-menu > li > a:focus {
  background: var(--gold-pale) !important;
  color: var(--text) !important;
}

/* Chunk 1F's z-index:100 rule on the navbar is REMOVED in chunk 1G.
   It never actually won the cascade · the chunk 1D selector
   `body.customers > *:not(#bgCanvas)` is (1,2,2) specificity because
   :not(#bgCanvas) contributes an ID; chunk 1F's
   `body.customers > nav.navbar` is only (0,3,3) and lost on the
   ID column. Chunk 1G replaces the workaround with Fix B above
   (exclude nav from the chunk 1D selector entirely). */

/* ════════════════════════════════════════════════════════════
   ACCESS LANDING PAGE
═══════════════════════════════════════════════════════════ */

.yutie-access-landing {
  padding-top: 30px;
}
.yutie-access-greeting {
  margin-bottom: 36px;
}
.yutie-access-greeting .eyebrow {
  font-family: var(--spartan);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.yutie-access-greeting-line {
  font-family: var(--spartan);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 32px;
  color: var(--text);
  margin: 0 0 10px;
}
.yutie-access-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--text2);
  margin: 0;
  letter-spacing: 0.005em;
}

.yutie-access-card {
  background: var(--glass);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 18px 48px var(--shadow);
}
.yutie-access-card .eyebrow {
  font-family: var(--spartan);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.yutie-access-card-title {
  font-family: var(--spartan);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--text);
  margin: 0 0 8px;
}
.yutie-access-card-body {
  font-family: var(--outfit);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text2);
  margin: 0;
}

.yutie-access-section {
  margin-bottom: 28px;
}
.yutie-access-section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.yutie-access-section-heading {
  font-family: var(--spartan);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
}
.yutie-access-aux-link {
  font-family: var(--spartan);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.yutie-access-aux-link:hover {
  color: var(--gold-lt);
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */

html[data-theme] body.customers .footer.yutie-footer {
  background: transparent;
  border-top: 1px solid var(--rule);
  padding: 18px 0;
  margin-top: 40px;
}
html[data-theme] body.customers .footer.yutie-footer .copyright-footer,
html[data-theme] body.customers .footer.yutie-footer .yutie-footer-mark {
  font-family: var(--outfit);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text3);
}
html[data-theme] body.customers .footer.yutie-footer .yutie-footer-sep {
  color: var(--text3);
  margin: 0 6px;
}
html[data-theme] body.customers .footer.yutie-footer a {
  color: var(--gold);
  text-decoration: none;
}
html[data-theme] body.customers .footer.yutie-footer a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════
   YUTIE NAVBAR TOGGLES · customer
   (Shared component CSS lives in admin-overrides; customer
   navbar wrapper sizing differs slightly.)
═══════════════════════════════════════════════════════════ */

/* Toggle component (pill + icon) selectors are defined in
   yutie-admin-overrides.css. Both files load when their context
   matches; the selectors there are not body-scoped on .app.admin,
   so they apply identically here.

   Customer-specific override: the .yutie-toggles-wrap <li> must
   align inside the .navbar-nav 60px line-height. */
html[data-theme] body.customers .yutie-toggles-wrap {
  list-style: none;
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
  padding: 18px 0;
  line-height: 1 !important;
}

/* Theme pill · duplicate the admin-side rules here so customer
   pages don't depend on admin-overrides being loaded. */
.yutie-toggles {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
body.customers .yutie-theme-pill {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 24px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--rule);
  position: relative;
  padding: 0;
  margin: 0;
  cursor: pointer;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  display: inline-block;
  vertical-align: middle;
  font: inherit;
  line-height: 1;
}
body.customers .yutie-theme-pill:hover { border-color: var(--gold-line); }
body.customers .yutie-theme-pill:focus,
body.customers .yutie-theme-pill:focus-visible {
  outline: 2px solid var(--gold-glow);
  outline-offset: 2px;
}
body.customers .yutie-theme-pill-dot {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 6px var(--gold-glow);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  pointer-events: none;
}
body.customers .yutie-theme-pill[data-state="dark"] .yutie-theme-pill-dot {
  transform: translateX(3px);
}
body.customers .yutie-theme-pill[data-state="light"] .yutie-theme-pill-dot {
  transform: translateX(25px);
}
body.customers .yutie-theme-pill:hover .yutie-theme-pill-dot {
  box-shadow: 0 0 8px var(--gold-glow), 0 2px 6px var(--gold-glow);
}
body.customers .yutie-calm-icon {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  background: var(--glass);
  border: 1px solid var(--rule);
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  font: inherit;
  line-height: 1;
}
body.customers .yutie-calm-icon:hover {
  color: var(--gold);
  border-color: var(--gold-line);
}
body.customers .yutie-calm-icon:focus,
body.customers .yutie-calm-icon:focus-visible {
  outline: 2px solid var(--gold-glow);
  outline-offset: 2px;
}
body.customers .yutie-calm-icon[data-state="on"] {
  color: var(--gold);
  background: var(--gold-pale);
  border-color: var(--gold-line);
}
body.customers .yutie-calm-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* ════════════════════════════════════════════════════════════
   LOGIN TOGGLE CORNER · chunk 1E (customer)
   The customer login override view emits a .yutie-login-toggles
   wrapper just before the form composition. Pin it to the top-right
   above the fixed canvas. Pill/icon styling reused from the existing
   body.customers .yutie-theme-pill / .yutie-calm-icon rules below.
═══════════════════════════════════════════════════════════ */

.yutie-login-toggles {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ════════════════════════════════════════════════════════════
   CUSTOMER LOGIN CHROME (customer auth · /authentication/login)
═══════════════════════════════════════════════════════════ */

body.customers.customers_login {
  min-height: 100vh;
}
body.customers.customers_login #wrapper,
body.customers.customers_login #content,
body.customers.customers_login #content > .container {
  background: transparent;
}
body.customers.customers_login .yutie-customer-login-wrap {
  padding-top: 12vh;
}
body.customers.customers_login .yutie-customer-login-col {
  padding-left: 12px;
  padding-right: 12px;
}
body.customers.customers_login .yutie-login-wrap {
  text-align: center;
  margin-bottom: 28px;
}
body.customers.customers_login .yutie-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
body.customers.customers_login .yutie-login-logo .yutie-logo {
  max-height: 80px;
  width: auto;
}
body.customers.customers_login h1 {
  font-family: var(--spartan);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 40px;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 14px;
}
body.customers.customers_login .yutie-login-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text2);
  letter-spacing: 0.005em;
}
body.customers.customers_login .yutie-login-card {
  background: var(--glass) !important;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 36px 36px 32px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 18px 60px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] body.customers.customers_login .yutie-login-card {
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 18px 60px rgba(0, 0, 0, 0.10);
}
body.customers.customers_login .yutie-login-card .form-group {
  margin-bottom: 18px;
}
body.customers.customers_login .yutie-login-card label {
  color: var(--text2);
  font-family: var(--spartan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
}
body.customers.customers_login .yutie-login-card .btn.btn-primary {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold)) !important;
  border-color: var(--gold);
  color: #08080a !important;
  font-family: var(--spartan);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 16px var(--gold-glow);
}
body.customers.customers_login .yutie-login-card a {
  color: var(--gold);
}
body.customers.customers_login .yutie-login-card .text-muted {
  color: var(--text2) !important;
}
body.customers.customers_login .yutie-login-footer {
  text-align: center;
  margin: 24px auto 0;
  max-width: 460px;
  padding: 0 16px 28px;
  font-family: var(--outfit);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text3);
}

/* ════════════════════════════════════════════════════════════
   CHUNK 1G · CUSTOMER POLISH PASS
   ─────────────────────────────────────────────────────────────
   Three-states discipline on Projects Summary, Tickets Summary,
   Quick Invoices Info row. Brand typography on counts. Glass
   treatment on status cards. Empty-state typography. Table /
   pagination / form polish escalations to win cascade where
   chunk 1D selectors lost to Tailwind utility-class importance.
═══════════════════════════════════════════════════════════ */

/* ─── PROJECTS SUMMARY (template_parts/projects/project_summary.php)
       Cards are <a href="/clients/projects/{statusId}">. Default
       Perfex status IDs: 1=Not Started, 2=In Progress, 3=On Hold,
       4=Cancelled, 5=Finished. Three-states map per chunk 1G:
       Finished, In Progress → Tending; On Hold → Waiting;
       Not Started, Cancelled → Quiet. */

/* matches: project_summary.php emits <a class="tw-border tw-border-solid
   tw-border-neutral-200 tw-rounded-md hover:tw-bg-neutral-100
   tw-bg-neutral-50" href="/clients/projects/{id}"> at lines 4-5. */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href*="/clients/projects/"],
html[data-theme] body.customers dl[class*="tw-grid"] > a[href*="/clients/tickets/"] {
  background: var(--glass) !important;
  border: 1px solid var(--rule) !important;
  border-radius: var(--r) !important;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 1px 2px rgba(0, 0, 0, 0.10),
    0 12px 24px var(--shadow);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease-spring);
  text-decoration: none;
}
html[data-theme] body.customers dl[class*="tw-grid"] > a[href*="/clients/projects/"]:hover,
html[data-theme] body.customers dl[class*="tw-grid"] > a[href*="/clients/tickets/"]:hover {
  background: var(--gold-pale) !important;
  border-color: var(--gold-line) !important;
  transform: translateY(-1px);
}

/* The status name <dt> carries an INLINE style="color:{db_color}".
   Override with !important since inline styles otherwise win specificity. */
html[data-theme] body.customers dl[class*="tw-grid"] > a > div > dt {
  color: var(--text2) !important;
  font-family: var(--spartan) !important;
  font-weight: 600 !important;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The count <dd> uses Tailwind .tw-text-primary-600 (Bootstrap-style blue).
   Replace with brand typography in var(--text). The PER-STATUS color is
   applied via the per-href rules below. */
html[data-theme] body.customers dl[class*="tw-grid"] > a > div > dd > div {
  font-family: var(--spartan) !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

/* Three-states map · Projects (status IDs end with /1 through /5). */
/* In Progress (2) → Tending */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/projects/2"] > div > dd > div {
  color: var(--tending) !important;
}
/* Finished (5) → Tending */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/projects/5"] > div > dd > div {
  color: var(--tending) !important;
}
/* On Hold (3) → Waiting */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/projects/3"] > div > dd > div {
  color: var(--waiting) !important;
}
/* Not Started (1) → Quiet */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/projects/1"] > div > dd > div {
  color: var(--quiet) !important;
}
/* Cancelled (4) → Quiet */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/projects/4"] > div > dd > div {
  color: var(--quiet) !important;
}

/* Three-states map · Tickets (status IDs end with /1 through /5).
   Defaults: 1=Open, 2=In Progress, 3=Answered, 4=On Hold, 5=Closed. */
/* Open (1) → Waiting */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/tickets/1"] > div > dd > div {
  color: var(--waiting) !important;
}
/* In Progress (2) → Tending */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/tickets/2"] > div > dd > div {
  color: var(--tending) !important;
}
/* Answered (3) → Tending */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/tickets/3"] > div > dd > div {
  color: var(--tending) !important;
}
/* On Hold (4) → Waiting */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/tickets/4"] > div > dd > div {
  color: var(--waiting) !important;
}
/* Closed (5) → Quiet */
html[data-theme] body.customers dl[class*="tw-grid"] > a[href$="/clients/tickets/5"] > div > dd > div {
  color: var(--quiet) !important;
}

/* ─── QUICK INVOICES INFO ROW
       template_parts/invoices_stats.php emits four .col-md-3 wrappers
       with .invoices-stats-unpaid, -paid, -overdue, -partially-paid.
       The inner progress bars use .progress-bar-danger / -success / -warning
       which chunk 1D already maps to three-states on customer surfaces. */

/* matches: .stats-status > a tw-text-neutral-600 / .stats-numbers from
   invoices_stats.php:23-32, :43-54 etc. */
html[data-theme] body.customers .invoice-quick-info .stats-status a {
  color: var(--text2) !important;
  font-family: var(--spartan);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-theme] body.customers .invoice-quick-info .stats-status a:hover {
  color: var(--gold) !important;
}
html[data-theme] body.customers .invoice-quick-info .stats-numbers {
  font-family: var(--spartan);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
/* Three-states per invoice status. Paid → Tending; Unpaid / Overdue /
   Partially Paid → Waiting (Overdue gets bolder weight, NOT red, per
   chunk 1G spec). */
html[data-theme] body.customers .invoices-stats-paid .stats-numbers {
  color: var(--tending);
}
html[data-theme] body.customers .invoices-stats-unpaid .stats-numbers,
html[data-theme] body.customers .invoices-stats-partially-paid .stats-numbers {
  color: var(--waiting);
}
html[data-theme] body.customers .invoices-stats-overdue .stats-numbers {
  color: var(--waiting);
  font-weight: 800;
}

/* The .progress / .progress-bar mappings already exist for admin; mirror
   here on the customer side for the invoice quick-info progress bars and
   any other progress visuals. */
/* matches: .progress {background-color:#f5f5f5} from Bootstrap vendor */
html[data-theme] body.customers .progress {
  background: var(--rule) !important;
  border-radius: var(--r-xs);
  overflow: hidden;
  height: 6px;
}
html[data-theme] body.customers .progress .progress-bar {
  background-color: var(--gold) !important;
}
/* matches: Bootstrap .progress-bar-success / -warning / -danger / -info */
html[data-theme] body.customers .progress .progress-bar-success {
  background-color: var(--tending) !important;
}
html[data-theme] body.customers .progress .progress-bar-warning {
  background-color: var(--waiting) !important;
}
html[data-theme] body.customers .progress .progress-bar-danger {
  background-color: var(--waiting) !important;
}
html[data-theme] body.customers .progress .progress-bar-info {
  background-color: var(--quiet) !important;
}

/* ─── TABLES · escalate chunk 1D treatment so Tailwind utility classes
       on Perfex table wrappers don't bleed through. The chunk 1D table
       rule used 0,2,2 specificity; this set adds explicit .panel_s
       parent scoping so the wrapper's tw-bg-white can't paint over. */

/* matches: .dt-table from Perfex (DataTable wrapper) plus inner .table */
html[data-theme] body.customers .panel_s table.table,
html[data-theme] body.customers .panel_s table.dataTable,
html[data-theme] body.customers .panel_s table.dt-table {
  background: transparent !important;
}
html[data-theme] body.customers .panel_s .dataTables_wrapper {
  background: transparent;
  color: var(--text);
}

/* Empty state cell · DataTables emits a <td class="dataTables_empty"> when
   no rows present. Perfex also uses inline "No entries found" prose. */
/* matches: .dataTables_empty in datatables.min.css */
html[data-theme] body.customers .dataTables_empty,
html[data-theme] body.customers .dataTables_wrapper td.dataTables_empty {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--text2) !important;
  text-align: center !important;
  padding: 32px 16px !important;
  background: transparent !important;
}

/* ─── PAGINATION · DataTables wrapper page links */
html[data-theme] body.customers .dataTables_paginate .paginate_button {
  font-family: var(--spartan);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── FORM CONTROLS · escalate scope. Chunk 1D's customer rule for
       .form-control / inputs is body.customers .form-control (0,2,1).
       Some Perfex inputs sit inside .selectpicker / .bootstrap-select
       wrappers that add their own background. This block escalates.
       Chunk 1I: full Bootstrap-select v1.13.12 layout fix. The selected-
       text container needs explicit width, ellipsis, and the caret needs
       enough right-padding room. The chunk 1H rule only set colors and
       not the width / overflow / padding · so long option text was
       getting clipped by the caret. */
html[data-theme] body.customers .bootstrap-select {
  width: 100% !important;
}
html[data-theme] body.customers .bootstrap-select > .dropdown-toggle.btn,
html[data-theme] body.customers .bootstrap-select.btn-group > .dropdown-toggle {
  background: var(--glass-2) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--text) !important;
  font-family: var(--outfit) !important;
  /* Bootstrap-select default padding-right is 25px. With the chunk 1D
     `.btn` rule applying Spartan + 0.10em letter-spacing, the text grows
     wide enough to crowd the caret. Reserve 40px on the right; align
     the inner text to the left. */
  padding: 9px 40px 9px 14px !important;
  text-align: left !important;
  letter-spacing: 0.01em !important;
  font-weight: 400 !important;
  text-transform: none !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  min-height: 40px;
  display: flex !important;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}
/* The inner-inner div holds the actual selected option text.
   Ensure it ellipsizes long values rather than wrapping or overflowing. */
html[data-theme] body.customers .bootstrap-select > .dropdown-toggle.btn .filter-option,
html[data-theme] body.customers .bootstrap-select > .dropdown-toggle.btn .filter-option-inner,
html[data-theme] body.customers .bootstrap-select > .dropdown-toggle.btn .filter-option-inner-inner {
  display: block !important;
  width: 100%;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-family: var(--outfit) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  font-weight: 400 !important;
  color: var(--text) !important;
}
/* Replace Bootstrap-select's stock .caret triangle with an inline-SVG
   gold chevron, positioned absolutely at right 14px. */
html[data-theme] body.customers .bootstrap-select > .dropdown-toggle.btn .caret,
html[data-theme] body.customers .bootstrap-select > .dropdown-toggle.btn .bs-caret {
  position: absolute !important;
  right: 14px !important;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  border: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23C9A84C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 6 6 11 1'/></svg>") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 8px;
}
html[data-theme] body.customers .bootstrap-select > .dropdown-toggle.btn .bs-caret .caret {
  /* The nested .caret inside .bs-caret already gets the SVG via the rule
     above; clear its own triangle border so we don't see both. */
  background: none !important;
  border: none !important;
  width: 0;
  height: 0;
}
html[data-theme] body.customers .bootstrap-select .dropdown-menu {
  background: var(--bg) !important;
  border: 1px solid var(--rule-2) !important;
  min-width: 100% !important;
}
html[data-theme] body.customers .bootstrap-select .dropdown-menu li > a {
  color: var(--text) !important;
  font-family: var(--outfit) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  font-weight: 400 !important;
  padding: 8px 14px !important;
}
html[data-theme] body.customers .bootstrap-select .dropdown-menu li > a .text {
  color: inherit !important;
  font-family: inherit !important;
}
html[data-theme] body.customers .bootstrap-select .dropdown-menu li.selected > a,
html[data-theme] body.customers .bootstrap-select .dropdown-menu li.active > a {
  background: var(--gold-pale) !important;
  color: var(--gold) !important;
}
/* Search-within-dropdown input · Bootstrap-select live-search */
html[data-theme] body.customers .bootstrap-select .bs-searchbox input {
  background: var(--glass-2) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--text) !important;
  font-family: var(--outfit);
}

/* ─── BADGES (Bootstrap .badge) · the announcements counter inside the
       profile dropdown uses .badge with Bootstrap default styling. */
/* matches: .badge { background-color:#777 } Bootstrap default */
html[data-theme] body.customers .badge {
  background: var(--gold-pale) !important;
  color: var(--gold) !important;
  border-radius: 10px;
  font-family: var(--spartan);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
}
html[data-theme] body.customers .bg-success.badge {
  background: var(--tending) !important;
  color: #08080a !important;
}
html[data-theme] body.customers .bg-warning.badge,
html[data-theme] body.customers .bg-danger.badge {
  background: var(--waiting) !important;
  color: #08080a !important;
}
html[data-theme] body.customers .bg-info.badge {
  background: var(--quiet) !important;
  color: #08080a !important;
}

/* ─── MODAL CLOSE BUTTON · Bootstrap .close uses absolute-positioned
       × in a dim grey. Repaint to brand. */
/* matches: .close { color:#000; opacity:.2 } Bootstrap default */
html[data-theme] body.customers .modal .close {
  color: var(--text2) !important;
  opacity: 0.7;
  font-family: var(--spartan);
  font-size: 22px;
  text-shadow: none;
}
html[data-theme] body.customers .modal .close:hover {
  color: var(--gold) !important;
  opacity: 1;
}

/* ─── BREADCRUMB SEPARATOR · if Perfex emits .breadcrumb anywhere */
/* matches: .breadcrumb > li + li::before { content: "/"; color:#ccc } Bootstrap */
html[data-theme] body.customers .breadcrumb {
  background: transparent !important;
  padding: 0;
  margin: 0 0 16px;
}
html[data-theme] body.customers .breadcrumb > li {
  font-family: var(--spartan);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
html[data-theme] body.customers .breadcrumb > li + li::before {
  color: var(--text3);
  content: "·";
  padding: 0 8px;
}
html[data-theme] body.customers .breadcrumb > li a {
  color: var(--text2);
}
html[data-theme] body.customers .breadcrumb > li.active {
  color: var(--gold);
}

/* ─── SECTION HEADINGS on customer views · h3/h4 inside #content */
/* matches: .section-heading at projects.php:11, tickets.php:27 */
html[data-theme] body.customers h3.section-heading,
html[data-theme] body.customers h4.section-heading,
html[data-theme] body.customers h4.tickets-summary-heading {
  font-family: var(--spartan);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text) !important;
}

/* ─── "Held in care" QUIET card (chunk 1D home.php). The styling lives
       under .yutie-access-card; below confirms the visual still reads as
       intentional after surrounding polish. (No new rules needed; the
       existing .yutie-access-card block from chunk 1D handles it.) */

/* ════════════════════════════════════════════════════════════
   CHUNK 1H · CHART CONTAINERS + EMPTY STATE + LANGUAGE SELECTOR
═══════════════════════════════════════════════════════════ */

/* Customer-side chart containers are typically inside .panel_s with the
   canvas being #contracts-by-type-chart, #client-home-chart, etc.
   chunk 1D already glasses .panel_s. Add a minimum-height so empty
   charts don't collapse to 0px before our empty-state overlay can
   measure. */
html[data-theme] body.customers .panel_s canvas[id$="-chart"],
html[data-theme] body.customers .panel_s canvas[id^="contracts-"],
html[data-theme] body.customers .panel_s canvas[id^="client-home"] {
  min-height: 220px;
}

/* Empty-state overlay · injected by the Chart.js wrapper in
   views/themes/perfex/head.php when a chart's data is empty. */
html[data-theme] body.customers .yutie-chart-empty {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--text2);
  text-align: center;
  padding: 56px 16px;
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  margin: 8px 0;
}

/* ─── LANGUAGE SELECTOR ON CUSTOMER LOGIN
       Chunk 1H deliverable 4. The native <select> in views/themes/perfex/views/login.php
       was cutting off "ENGLISH" under the chevron because the default
       browser chevron sits inside the select's padding-right zone, but
       Perfex's vendor styling sets a tight padding that doesn't leave
       room. Replace with appearance:none + custom inline-SVG chevron
       at right 14px, with 44px right padding so any language name fits. */
body.customers.customers_login .yutie-customer-login-wrap select.form-control,
body.customers.customers_login .yutie-customer-login-wrap select.selectpicker {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding: 10px 44px 10px 14px !important;
  background-color: var(--glass-2) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23C9A84C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 6 6 11 1'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--text) !important;
  font-family: var(--outfit) !important;
  border-radius: var(--r-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 500;
}
body.customers.customers_login .yutie-customer-login-wrap select.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px var(--gold-pale) !important;
}

/* ════════════════════════════════════════════════════════════
   CHUNK 1H · CUSTOMER POLISH PASS v2
═══════════════════════════════════════════════════════════ */

/* ─── FILES / CALENDAR UTILITY BUTTONS (the .submenu cards) ──
       Chunk 1D gave them a flex glass container; chunk 1H paints
       the icons gold-on-hover and tightens spacing. */
html[data-theme] body.customers .submenu.customer-top-submenu li a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--r-xs);
}
html[data-theme] body.customers .submenu.customer-top-submenu li a svg {
  color: var(--text3);
  width: 18px;
  height: 18px;
  transition: color 0.25s var(--ease);
}
html[data-theme] body.customers .submenu.customer-top-submenu li a:hover svg {
  color: var(--gold);
}

/* ─── AVATAR CIRCLE in profile dropdown trigger.
       Perfex emits .client-profile-image-small in the dropdown
       toggle anchor. Bordered glass treatment. */
html[data-theme] body.customers .navbar-default .customers-nav-item-profile > a > img.client-profile-image-small {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  background: var(--glass-2);
  object-fit: cover;
}
html[data-theme] body.customers .navbar-default .customers-nav-item-profile > a:hover > img.client-profile-image-small,
html[data-theme] body.customers .navbar-default .customers-nav-item-profile.open > a > img.client-profile-image-small {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-pale);
}

/* ─── DROPDOWN MENU ITEMS · explicit padding/typography to beat
       any inherited Perfex styles. */
html[data-theme] body.customers .dropdown-menu {
  min-width: 220px;
  padding: 6px 0;
}
html[data-theme] body.customers .dropdown-menu > li > a {
  padding: 10px 18px !important;
  font-family: var(--outfit) !important;
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
html[data-theme] body.customers .dropdown-menu .divider,
html[data-theme] body.customers .dropdown-menu li.divider {
  background: var(--rule);
  margin: 6px 0;
  height: 1px;
}

/* ─── SECTION HEADINGS in customer views beyond the dashboard ──
       (project_summary heading on /clients/projects, tickets_summary
       heading on /clients/support, h4.tickets-summary-heading, etc.) */
html[data-theme] body.customers h4.tickets-summary-heading,
html[data-theme] body.customers h4.section-heading,
html[data-theme] body.customers h4.section-heading-projects,
html[data-theme] body.customers h4.section-heading-tickets,
html[data-theme] body.customers h4.projects-summary-heading,
html[data-theme] body.customers h4.invoices-quick-info-heading {
  font-family: var(--spartan) !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em;
  color: var(--text) !important;
}

/* ─── PAGE H1 / H4 inside #content (Contracts page header, etc.) */
html[data-theme] body.customers #content h1,
html[data-theme] body.customers #content h2,
html[data-theme] body.customers #content h3,
html[data-theme] body.customers #content h4 {
  color: var(--text) !important;
  font-family: var(--spartan) !important;
}

/* ─── "VIEW ACCOUNT STATEMENT" auxiliary link styling on dashboard
       (already in chunk 1D .yutie-access-aux-link but adding a more
       generic match for any small-caps secondary link). */
html[data-theme] body.customers a.tw-text-sm,
html[data-theme] body.customers .invoices-quick-info-heading + a {
  color: var(--gold) !important;
  font-family: var(--spartan);
  font-size: 11px !important;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
}
html[data-theme] body.customers a.tw-text-sm:hover {
  color: var(--gold-lt) !important;
  text-decoration: underline;
}

/* ─── "NEW TICKET" / "NEW PROPOSAL" etc. ACTION BUTTONS in the
       page heading rows on /clients/support and /clients/proposals.
       Already styled as .btn-primary via chunk 1D, but the chunk 1D
       rule used 0,3,2 specificity; this confirms it lands. */
html[data-theme] body.customers .new-ticket,
html[data-theme] body.customers .new-proposal {
  /* re-apply gold gradient by class · same as .btn-primary already */
  background: linear-gradient(135deg, var(--gold-lt), var(--gold)) !important;
  border-color: var(--gold) !important;
  color: #08080a !important;
}

/* ─── ALERT VARIANTS (e.g. flash messages on customer pages) */
html[data-theme] body.customers .alert {
  font-family: var(--outfit);
  font-size: 13.5px;
  border-radius: var(--r-sm);
  padding: 12px 16px;
}

/* ─── HR DIVIDERS · Perfex emits <hr> in customer surfaces */
html[data-theme] body.customers hr {
  border-color: var(--rule) !important;
  margin: 20px 0;
}

/* ─── CHECKBOX / RADIO group spacing in customer forms */
html[data-theme] body.customers .checkbox {
  padding-left: 24px;
}
html[data-theme] body.customers .checkbox label,
html[data-theme] body.customers .radio label {
  color: var(--text);
  font-family: var(--outfit);
  font-weight: 400;
}

/* ─── PAGINATION on customer DataTables (escalated specificity) */
html[data-theme] body.customers .panel_s .dataTables_paginate .paginate_button {
  font-family: var(--spartan);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--rule) !important;
  color: var(--text2) !important;
  background: transparent !important;
}
html[data-theme] body.customers .panel_s .dataTables_paginate .paginate_button.current,
html[data-theme] body.customers .panel_s .dataTables_paginate .paginate_button:hover {
  background: var(--gold-pale) !important;
  border-color: var(--gold-line) !important;
  color: var(--gold) !important;
}

/* ─── DataTables length-select wrap, info text */
html[data-theme] body.customers .dataTables_length label,
html[data-theme] body.customers .dataTables_filter label,
html[data-theme] body.customers .dataTables_info {
  font-family: var(--outfit);
  font-size: 12.5px;
  color: var(--text2);
}

/* ─── FORM-CONTROL · ESCALATED · catch every form input on customer
       surfaces that Bootstrap-select or Perfex have wrapped. */
html[data-theme] body.customers input.form-control,
html[data-theme] body.customers textarea.form-control,
html[data-theme] body.customers select.form-control,
html[data-theme] body.customers .panel_s input,
html[data-theme] body.customers .panel_s textarea,
html[data-theme] body.customers .panel_s select {
  font-family: var(--outfit) !important;
  color: var(--text) !important;
}
html[data-theme] body.customers .form-control::placeholder,
html[data-theme] body.customers input::placeholder,
html[data-theme] body.customers textarea::placeholder {
  color: var(--text3);
  opacity: 1;
}

/* ─── "No entries found" generic empty state (escalated to catch
       any wrapper not handled by the .dataTables_empty rule). */
html[data-theme] body.customers .panel_s td:only-child:contains("No entries found"),
html[data-theme] body.customers td.dataTables_empty {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--text2) !important;
  text-align: center !important;
  padding: 32px 16px !important;
  background: transparent !important;
}

/* ════════════════════════════════════════════════════════════
   END · yutie-client-overrides.css
═══════════════════════════════════════════════════════════ */
