/**
 * FutureCloud — customer portal design
 * Loaded after futurecloud-theme.css on every customer-area page. Rules for the logged-in area are scoped to
 * body.customers.fc-calm; the sign-in / register pages use the .fc-auth-* section at the end.
 *
 * Direction: simple, professional and easy on the eyes — soft cool-grey paper instead of glaring white,
 * the FutureCloud brass (yellow) for actions with ink text, the same as the admin, flat surfaces separated by hairline borders, IBM Plex Sans Arabic for Arabic text.
 * The --calm-* variable names are kept so every existing rule follows the palette.
 */

/* ── Tokens ─────────────────────────────────────────────────── */

html body.customers {
  --fc-font-sans: "Inter", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  --pt-accent: #e8a33d;
  --pt-accent-hover: #d8922a;
  --pt-accent-soft: rgba(232, 163, 61, 0.25);
  --pt-paper: #f4f6f8;
  --pt-surface: #fcfdfd;
  --pt-border: #e2e7ec;
  --pt-text: #1f2d3a;
  --pt-text-2: #4a5765;
}

html body.customers.fc-calm {
  --calm-bg: #f4f6f8;
  --calm-bg-2: #f4f6f8;
  --calm-surface: #fcfdfd;
  --calm-raised: #f1f4f6;
  --calm-border: #e2e7ec;
  --calm-border-strong: #cdd5dc;
  --calm-text: #1f2d3a;
  --calm-text-2: #4a5765;
  --calm-text-3: #5f6b78;

  --calm-primary: #e8a33d;
  --calm-primary-hover: #d8922a;
  --calm-primary-ink: #0e1a2b;
  --calm-primary-text: #8a5a08;
  --calm-primary-soft: #fdf3e2;
  --calm-primary-soft-2: #f8e2b8;
  --calm-ring: rgba(232, 163, 61, 0.28);

  --calm-lavender: #5c6a96;
  --calm-lavender-soft: #eceef7;
  --calm-moss: #3f7a57;
  --calm-moss-soft: #e4f2e9;
  --calm-ochre: #946a24;
  --calm-ochre-soft: #fbf0dc;
  --calm-clay: #a5493f;
  --calm-clay-soft: #fbe8e5;
  --calm-mist: #3d6d8c;
  --calm-mist-soft: #e2eef5;
  --calm-moss-ink: #256640;
  --calm-clay-ink: #962f25;
  --calm-ochre-ink: #7d520c;
  --calm-mist-ink: #255a7a;
  --calm-lavender-ink: #3e4b86;
  --calm-status-ink-mix: 38%;
  --calm-status-bg-mix: 12%;

  /* Flat surfaces: hierarchy comes from borders and radius, shadows only for things that float */
  --calm-shadow: 0 0 0 transparent;
  --calm-shadow-hover: 0 10px 30px rgba(31, 45, 58, 0.12);
  --calm-nav-bg: rgba(252, 253, 253, 0.94);
  --calm-radius: 12px;

  --fc-primary-50: var(--calm-primary-soft);
  --fc-primary-100: var(--calm-primary-soft-2);
  --fc-primary-200: #f6d79e;
  --fc-primary-300: #f0c06c;
  --fc-primary-400: #ecb052;
  --fc-primary-500: var(--calm-primary);
  --fc-primary-600: var(--calm-primary-hover);
  --fc-primary-700: #8a5a08;
  --fc-primary-800: #6b4606;
  --fc-primary-900: #4a3004;
  --fc-secondary-500: var(--calm-lavender);
  --fc-secondary-600: #414f8a;
  --fc-secondary-700: #374377;
  --fc-info-50: var(--calm-mist-soft);
  --fc-info-100: #c9dfec;
  --fc-info-500: var(--calm-mist);
  --fc-info-600: #275d7e;
  --fc-info-700: #1f4b66;
  --fc-success-50: var(--calm-moss-soft);
  --fc-success-100: #c8e5d2;
  --fc-success-500: var(--calm-moss);
  --fc-success-600: #276a43;
  --fc-success-700: #1f5636;
  --fc-warning-50: var(--calm-ochre-soft);
  --fc-warning-100: #f4dcae;
  --fc-warning-500: #b98a44;
  --fc-warning-600: var(--calm-ochre);
  --fc-warning-700: #7d520c;
  --fc-danger-50: var(--calm-clay-soft);
  --fc-danger-100: #f5cdc7;
  --fc-danger-400: #d06e62;
  --fc-danger-500: var(--calm-clay);
  --fc-danger-600: #962f25;
  --fc-danger-700: #7b261e;
  --fc-neutral-50: #f8f9fb;
  --fc-neutral-100: var(--calm-raised);
  --fc-neutral-200: var(--calm-border);
  --fc-neutral-300: var(--calm-border-strong);
  --fc-neutral-400: #98a3b2;
  --fc-neutral-500: var(--calm-text-3);
  --fc-neutral-600: var(--calm-text-2);
  --fc-neutral-700: #2c394b;
  --fc-neutral-800: var(--calm-text);
  --fc-neutral-900: #0d1829;
  --fc-surface: var(--calm-surface);
  --fc-surface-raised: var(--calm-raised);
  --fc-background: var(--calm-bg);
  --fc-text-primary: var(--calm-text);
  --fc-text-secondary: var(--calm-text-2);
  --fc-text-tertiary: var(--calm-text-3);
  --fc-border-default: var(--calm-border);
  --fc-border-hover: var(--calm-border-strong);
  --fc-border-focus: var(--calm-primary);
  --fc-border-divider: var(--calm-raised);
  --fc-shadow-focus: 0 0 0 3px var(--calm-ring);
  --fc-shadow-glow-primary: none;
}

html[data-theme="dark"] body.customers {
  --pt-accent: #e8a33d;
  --pt-accent-hover: #f0b65a;
  --pt-accent-soft: rgba(232, 163, 61, 0.25);
  --pt-paper: #151b22;
  --pt-surface: #1b232c;
  --pt-border: #2a3540;
  --pt-text: #e3e8ed;
  --pt-text-2: #b3bdc7;
}

html[data-theme="dark"] body.customers.fc-calm {
  --calm-bg: #151b22;
  --calm-bg-2: #151b22;
  --calm-surface: #1b232c;
  --calm-raised: #212b35;
  --calm-border: #2a3540;
  --calm-border-strong: #384551;
  --calm-text: #e3e8ed;
  --calm-text-2: #b3bdc7;
  --calm-text-3: #97a2ad;

  --calm-primary: #e8a33d;
  --calm-primary-hover: #f0b65a;
  --calm-primary-ink: #0e1a2b;
  --calm-primary-text: #f0c06c;
  --calm-primary-soft: rgba(232, 163, 61, 0.13);
  --calm-primary-soft-2: rgba(232, 163, 61, 0.2);
  --calm-ring: rgba(232, 163, 61, 0.3);

  --calm-lavender: #a4afe0;
  --calm-lavender-soft: rgba(164, 175, 224, 0.12);
  --calm-moss: #7fcf9c;
  --calm-moss-soft: rgba(127, 207, 156, 0.12);
  --calm-ochre: #e6b85e;
  --calm-ochre-soft: rgba(230, 184, 94, 0.12);
  --calm-clay: #ec8c80;
  --calm-clay-soft: rgba(236, 140, 128, 0.12);
  --calm-mist: #8ac0e2;
  --calm-mist-soft: rgba(138, 192, 226, 0.12);
  --calm-moss-ink: var(--calm-moss);
  --calm-clay-ink: var(--calm-clay);
  --calm-ochre-ink: var(--calm-ochre);
  --calm-mist-ink: var(--calm-mist);
  --calm-lavender-ink: var(--calm-lavender);
  --calm-status-ink-mix: 50%;
  --calm-status-bg-mix: 16%;

  --calm-shadow: 0 0 0 transparent;
  --calm-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
  --calm-nav-bg: rgba(27, 35, 44, 0.94);

  --fc-primary-50: var(--calm-primary-soft);
  --fc-primary-100: var(--calm-primary-soft-2);
  --fc-primary-200: #4a3a1c;
  --fc-primary-300: #6b5224;
  --fc-primary-400: #b98a44;
  --fc-primary-500: var(--calm-primary);
  --fc-primary-600: var(--calm-primary-hover);
  --fc-primary-700: #f6d79e;
  --fc-success-50: var(--calm-moss-soft);
  --fc-success-500: var(--calm-moss);
  --fc-success-600: #a5e0ba;
  --fc-warning-50: var(--calm-ochre-soft);
  --fc-warning-500: var(--calm-ochre);
  --fc-warning-600: #f0cf8e;
  --fc-danger-50: var(--calm-clay-soft);
  --fc-danger-400: #f2aea5;
  --fc-danger-500: var(--calm-clay);
  --fc-danger-600: #f2aea5;
  --fc-info-50: var(--calm-mist-soft);
  --fc-info-500: var(--calm-mist);
  --fc-neutral-50: #182029;
  --fc-neutral-100: var(--calm-raised);
  --fc-neutral-200: var(--calm-border);
  --fc-neutral-300: var(--calm-border-strong);
  /* Same direction as the shared dark theme: 500–900 stay dark because its rules use them as backgrounds */
  --fc-neutral-400: #6b7a8f;
  --fc-neutral-500: #7a889b;
  --fc-neutral-600: #4a5a70;
  --fc-neutral-700: #2a3a50;
  --fc-neutral-800: var(--calm-surface);
  --fc-neutral-900: var(--calm-bg);
  --fc-text-inverse: #0e1a2b;
  --fc-border-divider: var(--calm-raised);
  --fc-shadow-glow-primary: none;
}

/* ── Page ───────────────────────────────────────────────────── */

html body.customers.fc-calm,
html[data-theme="dark"] body.customers.fc-calm {
  background: linear-gradient(180deg, var(--calm-bg-2) 0, var(--calm-bg) 420px) var(--calm-bg) !important;
  background-attachment: fixed !important;
  color: var(--calm-text);
}

body.customers.fc-calm #wrapper,
body.customers.fc-calm #content {
  background: transparent !important;
}

body.customers.fc-calm #content {
  padding-top: 28px;
  padding-bottom: 40px;
}

body.customers.fc-calm ::selection {
  background: var(--calm-primary-soft-2);
  color: var(--calm-text);
}

body.customers.fc-calm a {
  color: var(--calm-primary-text);
}

body.customers.fc-calm a:hover,
body.customers.fc-calm a:focus {
  color: var(--calm-primary-hover);
}

body.customers.fc-calm h1,
body.customers.fc-calm h2,
body.customers.fc-calm h3,
body.customers.fc-calm h4,
body.customers.fc-calm h5,
body.customers.fc-calm .section-heading {
  color: var(--calm-text) !important;
  letter-spacing: -0.01em;
}

body.customers.fc-calm .text-muted {
  color: var(--calm-text-3) !important;
}

body.customers.fc-calm hr {
  border-color: var(--calm-border);
}

/* Tailwind utilities used by the portal templates */
body.customers.fc-calm .tw-text-neutral-500 { color: var(--calm-text-3) !important; }
body.customers.fc-calm .tw-text-neutral-600 { color: var(--calm-text-2) !important; }
body.customers.fc-calm .tw-text-neutral-700,
body.customers.fc-calm .tw-text-neutral-800 { color: var(--calm-text) !important; }
body.customers.fc-calm .tw-text-primary-600,
body.customers.fc-calm .tw-text-primary-700 { color: var(--calm-primary-text) !important; }
body.customers.fc-calm .tw-bg-white { background-color: var(--calm-surface) !important; }
body.customers.fc-calm .tw-bg-neutral-50 { background-color: var(--calm-raised) !important; }
body.customers.fc-calm .tw-border-neutral-200,
body.customers.fc-calm .tw-border-neutral-300 { border-color: var(--calm-border) !important; }

/* The Tailwind build hard-codes light divider colours, which glare in dark mode */
body.customers.fc-calm .tw-divide-neutral-100 > :not([hidden]) ~ :not([hidden]),
body.customers.fc-calm .tw-divide-neutral-200 > :not([hidden]) ~ :not([hidden]),
body.customers.fc-calm .tw-divide-neutral-300 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--calm-border) !important;
}

body.customers.fc-calm .tw-border-neutral-100 {
  border-color: var(--calm-border) !important;
}

/* tw-space-x-* spaces siblings with margin-left, which lands on the wrong side in RTL
   (labels ran into their values, e.g. on the project overview) — use gap instead */
html[dir="rtl"] body.customers.fc-calm .tw-flex[class*="tw-space-x-"] > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[dir="rtl"] body.customers.fc-calm .tw-flex.tw-space-x-1 { column-gap: 0.25rem; }
html[dir="rtl"] body.customers.fc-calm .tw-flex.tw-space-x-2 { column-gap: 0.5rem; }
html[dir="rtl"] body.customers.fc-calm .tw-flex.tw-space-x-3 { column-gap: 0.75rem; }
html[dir="rtl"] body.customers.fc-calm .tw-flex.tw-space-x-4 { column-gap: 1rem; }

/* ── Navbar ─────────────────────────────────────────────────── */

html body.customers.fc-calm .navbar-default,
html[data-theme="dark"] body.customers.fc-calm .navbar-default {
  background: var(--calm-nav-bg) !important;
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border: 0 !important;
  border-bottom: 1px solid var(--calm-border) !important;
  box-shadow: none !important;
}

html body.customers.fc-calm .navbar-default .navbar-brand,
html body.customers.fc-calm .fc-navbar-brand-text,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-brand,
html[data-theme="dark"] body.customers.fc-calm .fc-navbar-brand-text {
  color: var(--calm-text) !important;
  font-weight: 700;
}

html body.customers.fc-calm .navbar-default .navbar-nav > li > a,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-nav > li > a {
  color: var(--calm-text-2) !important;
  background: transparent !important;
  border-radius: 999px !important;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html body.customers.fc-calm .navbar-default .navbar-nav > li > a:hover,
html body.customers.fc-calm .navbar-default .navbar-nav > li > a:focus,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-nav > li > a:hover,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-nav > li > a:focus {
  color: var(--calm-text) !important;
  background: var(--calm-raised) !important;
  border-radius: 999px !important;
}

html body.customers.fc-calm .navbar-default .navbar-nav > .active > a,
html body.customers.fc-calm .navbar-default .navbar-nav > .active > a:hover,
html body.customers.fc-calm .navbar-default .navbar-nav > .active > a:focus,
html body.customers.fc-calm .navbar-default .navbar-nav > .open > a,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-nav > .active > a,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-nav > .active > a:hover,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-nav > .active > a:focus,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .navbar-nav > .open > a {
  color: var(--calm-primary-text) !important;
  background: var(--calm-primary-soft) !important;
  border-radius: 999px !important;
}

body.customers.fc-calm .navbar-default .navbar-toggle {
  border-color: var(--calm-border) !important;
  background: var(--calm-surface) !important;
  border-radius: 10px;
}

body.customers.fc-calm .navbar-default .navbar-toggle .icon-bar {
  background-color: var(--calm-text-2) !important;
}

body.customers.fc-calm .navbar-default .navbar-collapse {
  border-color: var(--calm-border) !important;
}

body.customers.fc-calm .client-profile-image-small {
  border: 2px solid var(--calm-primary-soft-2);
  box-shadow: 0 0 0 2px var(--calm-surface);
}

/* ── Dropdowns ──────────────────────────────────────────────── */

body.customers.fc-calm .dropdown-menu {
  background: var(--calm-surface) !important;
  border: 1px solid var(--calm-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--calm-shadow-hover) !important;
  padding: 6px;
}

body.customers.fc-calm .dropdown-menu > li > a {
  color: var(--calm-text-2) !important;
  border-radius: 8px;
  padding: 7px 12px;
}

body.customers.fc-calm .dropdown-menu > li > a:hover,
body.customers.fc-calm .dropdown-menu > li > a:focus,
body.customers.fc-calm .dropdown-menu > .active > a {
  background: var(--calm-primary-soft) !important;
  color: var(--calm-primary-text) !important;
}

body.customers.fc-calm .dropdown-menu .divider {
  background-color: var(--calm-border);
}

/* ── Sub menu (files / calendar) ────────────────────────────── */

body.customers.fc-calm .submenu.customer-top-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 15px 20px;
  padding: 0;
}

body.customers.fc-calm .submenu.customer-top-submenu > li {
  float: none;
  margin: 0;
}

body.customers.fc-calm .submenu.customer-top-submenu > li > a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--calm-border);
  background: var(--calm-surface);
  color: var(--calm-text-2) !important;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

body.customers.fc-calm .submenu.customer-top-submenu > li > a:hover {
  border-color: var(--calm-primary);
  color: var(--calm-primary-text) !important;
}

/* ── Dashboard hero ─────────────────────────────────────────── */

body.customers.fc-calm .fc-calm-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--calm-border);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--calm-lavender-soft) 0%, transparent 55%),
    radial-gradient(120% 140% at 0% 100%, var(--calm-primary-soft) 0%, transparent 60%),
    var(--calm-surface);
  box-shadow: var(--calm-shadow);
}

/* perfex_saas single-package mode hides every dashboard child except #greeting — keep the hero (:not(#id) beats its id selector) */
body.customers.fc-calm .section-client-dashboard > .fc-calm-hero:not(#fc-calm-none) {
  display: flex !important;
}

body.customers.fc-calm .fc-calm-hero__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--calm-text) !important;
}

body.customers.fc-calm .fc-calm-hero__title b {
  font-weight: 700;
}

body.customers.fc-calm .fc-calm-hero__date {
  margin: 0;
  font-size: 14px;
  color: var(--calm-text-3);
}

body.customers.fc-calm .fc-calm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.customers.fc-calm .fc-calm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--calm-border);
  background: var(--calm-surface);
  color: var(--calm-text-2) !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

body.customers.fc-calm .fc-calm-chip i {
  color: var(--calm-primary-text);
}

body.customers.fc-calm .fc-calm-chip:hover,
body.customers.fc-calm .fc-calm-chip:focus {
  border-color: var(--calm-primary);
  color: var(--calm-text) !important;
}

body.customers.fc-calm .fc-calm-chip--accent,
body.customers.fc-calm .fc-calm-chip--accent i {
  background: var(--calm-primary);
  border-color: var(--calm-primary);
  color: var(--calm-primary-ink) !important;
}

body.customers.fc-calm .fc-calm-chip--accent:hover,
body.customers.fc-calm .fc-calm-chip--accent:focus {
  background: var(--calm-primary-hover);
  border-color: var(--calm-primary-hover);
  color: var(--calm-primary-ink) !important;
}

body.customers.fc-calm .projects-summary-heading,
body.customers.fc-calm .invoices-quick-info-heading,
body.customers.fc-calm .tickets-summary-heading {
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* ── Status tiles (projects / tickets summary) ──────────────── */

body.customers.fc-calm .fc-calm-tile {
  position: relative;
  display: block;
  border: 1px solid var(--calm-border) !important;
  border-radius: var(--calm-radius) !important;
  background: var(--calm-surface) !important;
  box-shadow: var(--calm-shadow);
  text-decoration: none !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

body.customers.fc-calm .fc-calm-tile:hover {
  border-color: var(--calm-border-strong) !important;
  box-shadow: var(--calm-shadow-hover);
  transform: translateY(-1px);
}

body.customers.fc-calm .fc-calm-tile > div {
  padding: 16px 18px !important;
}

/* Status colours come from the database and are often loud — show them muted, as a small dot */
body.customers.fc-calm .fc-calm-tile dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--calm-text-2) !important;
  font-size: 13px;
  font-weight: 500;
}

body.customers.fc-calm .fc-calm-tile dt::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tile-color, var(--calm-primary)) 55%, var(--calm-text-3));
}

body.customers.fc-calm .fc-calm-tile dd > div {
  margin-top: 6px;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--calm-text) !important;
  font-variant-numeric: tabular-nums;
}

/* ── Panels ─────────────────────────────────────────────────── */

html body.customers.fc-calm .panel_s,
html[data-theme="dark"] body.customers.fc-calm .panel_s,
html body.customers.fc-calm .panel,
html[data-theme="dark"] body.customers.fc-calm .panel {
  background: var(--calm-surface) !important;
  border: 1px solid var(--calm-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--calm-shadow) !important;
}

html body.customers.fc-calm .panel_s > .panel-body,
html[data-theme="dark"] body.customers.fc-calm .panel_s > .panel-body,
html body.customers.fc-calm .panel-body,
html[data-theme="dark"] body.customers.fc-calm .panel-body {
  background: transparent !important;
  color: var(--calm-text-2);
}

html body.customers.fc-calm .panel-heading,
html[data-theme="dark"] body.customers.fc-calm .panel-heading,
html body.customers.fc-calm .panel-footer,
html[data-theme="dark"] body.customers.fc-calm .panel-footer {
  background: var(--calm-raised) !important;
  border-color: var(--calm-border) !important;
  color: var(--calm-text) !important;
}

/* ── Invoice status summary (home + invoices page) ──────────── */

body.customers.fc-calm .invoices-stats {
  display: flex;
  flex-wrap: wrap;
  row-gap: 12px;
}

body.customers.fc-calm .invoices-stats > [class*="col-"] > .row {
  height: 100%;
  margin: 0 2px;
  padding: 14px 4px 10px;
  border-radius: var(--calm-radius);
  border: 1px solid var(--calm-border);
  background: var(--calm-raised);
}

body.customers.fc-calm .invoices-stats .stats-status a {
  color: var(--calm-text-2) !important;
  font-size: 13px;
}

body.customers.fc-calm .invoices-stats .stats-numbers {
  color: var(--calm-text) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body.customers.fc-calm .progress {
  height: 6px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--calm-border) !important;
  box-shadow: none;
}

/* The stats script writes "NN%" inside the bar; the number is already shown beside it */
body.customers.fc-calm .progress-bar {
  font-size: 0;
  border-radius: 999px;
  box-shadow: none;
  background-color: var(--calm-primary);
}

/* Softened a step towards the surface so the bars read as gentle accents */
body.customers.fc-calm .progress-bar-success { background-color: color-mix(in srgb, var(--calm-moss) 78%, var(--calm-surface)) !important; }
body.customers.fc-calm .progress-bar-danger { background-color: color-mix(in srgb, var(--calm-clay) 78%, var(--calm-surface)) !important; }
body.customers.fc-calm .progress-bar-warning { background-color: color-mix(in srgb, var(--calm-ochre) 78%, var(--calm-surface)) !important; }
body.customers.fc-calm .progress-bar-info { background-color: color-mix(in srgb, var(--calm-mist) 78%, var(--calm-surface)) !important; }

/* ── Buttons ────────────────────────────────────────────────── */

body.customers.fc-calm .btn {
  border-radius: 10px;
  font-weight: 500;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

html body.customers.fc-calm .btn-primary,
html[data-theme="dark"] body.customers.fc-calm .btn-primary {
  background: var(--calm-primary) !important;
  border-color: var(--calm-primary) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm .btn-primary:hover,
html body.customers.fc-calm .btn-primary:focus,
html body.customers.fc-calm .btn-primary:active,
html[data-theme="dark"] body.customers.fc-calm .btn-primary:hover,
html[data-theme="dark"] body.customers.fc-calm .btn-primary:focus,
html[data-theme="dark"] body.customers.fc-calm .btn-primary:active {
  background: var(--calm-primary-hover) !important;
  border-color: var(--calm-primary-hover) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm .btn-default,
html[data-theme="dark"] body.customers.fc-calm .btn-default {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border-strong) !important;
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm .btn-default:hover,
html body.customers.fc-calm .btn-default:focus,
html[data-theme="dark"] body.customers.fc-calm .btn-default:hover,
html[data-theme="dark"] body.customers.fc-calm .btn-default:focus {
  background: var(--calm-raised) !important;
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .btn-success,
html[data-theme="dark"] body.customers.fc-calm .btn-success {
  background: var(--calm-moss) !important;
  border-color: var(--calm-moss) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm .btn-danger,
html[data-theme="dark"] body.customers.fc-calm .btn-danger {
  background: var(--calm-clay) !important;
  border-color: var(--calm-clay) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm .btn-info,
html[data-theme="dark"] body.customers.fc-calm .btn-info {
  background: var(--calm-mist) !important;
  border-color: var(--calm-mist) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm .btn-warning,
html[data-theme="dark"] body.customers.fc-calm .btn-warning {
  background: var(--calm-ochre) !important;
  border-color: var(--calm-ochre) !important;
  color: var(--calm-primary-ink) !important;
}

body.customers.fc-calm .btn-success:hover,
body.customers.fc-calm .btn-danger:hover,
body.customers.fc-calm .btn-info:hover,
body.customers.fc-calm .btn-warning:hover {
  filter: brightness(0.94);
}

/* ── Forms ──────────────────────────────────────────────────── */

html body.customers.fc-calm .form-control,
html[data-theme="dark"] body.customers.fc-calm .form-control,
html body.customers.fc-calm .bootstrap-select > .dropdown-toggle,
html[data-theme="dark"] body.customers.fc-calm .bootstrap-select > .dropdown-toggle {
  background: var(--calm-surface) !important;
  border: 1px solid var(--calm-border-strong) !important;
  border-radius: 10px !important;
  color: var(--calm-text) !important;
  box-shadow: none !important;
}

html body.customers.fc-calm .form-control:focus,
html[data-theme="dark"] body.customers.fc-calm .form-control:focus,
html body.customers.fc-calm .bootstrap-select > .dropdown-toggle:focus,
html[data-theme="dark"] body.customers.fc-calm .bootstrap-select > .dropdown-toggle:focus {
  border-color: var(--calm-primary) !important;
  box-shadow: 0 0 0 3px var(--calm-ring) !important;
  outline: none !important;
}

body.customers.fc-calm .form-control::placeholder {
  color: var(--calm-text-3) !important;
}

body.customers.fc-calm .control-label,
body.customers.fc-calm label {
  color: var(--calm-text-2) !important;
}

body.customers.fc-calm input[type="checkbox"],
body.customers.fc-calm input[type="radio"] {
  accent-color: var(--calm-primary);
}

/* bootstrap-select puts .form-control on its wrapper too; only the inner button should look like a field */
html body.customers.fc-calm .bootstrap-select.form-control,
html[data-theme="dark"] body.customers.fc-calm .bootstrap-select.form-control {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Styled checkboxes (.checkbox + label::before) from the shared build use hard-coded bright colours */
body.customers.fc-calm .checkbox label::before,
body.customers.fc-calm .radio label::before {
  background-color: var(--calm-surface) !important;
  border-color: var(--calm-border-strong) !important;
}

body.customers.fc-calm .checkbox input[type="checkbox"]:checked + label::before,
body.customers.fc-calm .checkbox input[type="radio"]:checked + label::before {
  background-color: var(--calm-primary) !important;
  border-color: var(--calm-primary) !important;
}

body.customers.fc-calm .checkbox input[type="checkbox"]:checked + label::after,
body.customers.fc-calm .checkbox input[type="radio"]:checked + label::after {
  color: var(--calm-primary-ink) !important;
}

body.customers.fc-calm .radio input[type="radio"]:checked + label::after {
  background-color: var(--calm-primary) !important;
}

body.customers.fc-calm input[type="file"]::file-selector-button {
  margin-inline-end: 10px;
  padding: 4px 12px;
  border: 1px solid var(--calm-border-strong);
  border-radius: 8px;
  background: var(--calm-raised);
  color: var(--calm-text-2);
  cursor: pointer;
}

/* ── Tables ─────────────────────────────────────────────────── */

html body.customers.fc-calm .table,
html[data-theme="dark"] body.customers.fc-calm .table {
  background: transparent !important;
  color: var(--calm-text-2);
}

html body.customers.fc-calm .table > thead > tr > th,
html[data-theme="dark"] body.customers.fc-calm .table > thead > tr > th {
  background: var(--calm-raised) !important;
  color: var(--calm-text-3) !important;
  border-color: var(--calm-border) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html body.customers.fc-calm .table > thead > tr > th:first-child {
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
}

html body.customers.fc-calm .table > thead > tr > th:last-child {
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
}

html body.customers.fc-calm .table > tbody > tr > td,
html[data-theme="dark"] body.customers.fc-calm .table > tbody > tr > td {
  background: transparent !important;
  border-color: var(--calm-border) !important;
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm .table > tfoot > tr > td,
html[data-theme="dark"] body.customers.fc-calm .table > tfoot > tr > td,
html body.customers.fc-calm .table > tfoot > tr > th,
html[data-theme="dark"] body.customers.fc-calm .table > tfoot > tr > th {
  background: transparent !important;
  border-color: var(--calm-border) !important;
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .table > tbody > tr:hover > td,
html[data-theme="dark"] body.customers.fc-calm .table > tbody > tr:hover > td {
  background: var(--calm-primary-soft) !important;
}

html body.customers.fc-calm .table-striped > tbody > tr:nth-of-type(odd) > td,
html[data-theme="dark"] body.customers.fc-calm .table-striped > tbody > tr:nth-of-type(odd) > td {
  background: var(--calm-raised) !important;
}

/* Sort arrows sit at the inline start of the header cell; leave room so they don't cover the label */
body.customers.fc-calm table.dataTable thead > tr > th.sorting,
body.customers.fc-calm table.dataTable thead > tr > th.sorting_asc,
body.customers.fc-calm table.dataTable thead > tr > th.sorting_desc {
  padding-inline-start: 28px !important;
}

body.customers.fc-calm .dataTables_wrapper .dataTables_info,
body.customers.fc-calm .dataTables_wrapper .dataTables_length label,
body.customers.fc-calm .dataTables_wrapper .dataTables_filter label {
  color: var(--calm-text-3) !important;
}

html body.customers.fc-calm .pagination > li > a,
html body.customers.fc-calm .pagination > li > span,
html[data-theme="dark"] body.customers.fc-calm .pagination > li > a,
html[data-theme="dark"] body.customers.fc-calm .pagination > li > span {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border) !important;
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm .pagination > .active > a,
html body.customers.fc-calm .pagination > .active > span,
html[data-theme="dark"] body.customers.fc-calm .pagination > .active > a,
html[data-theme="dark"] body.customers.fc-calm .pagination > .active > span {
  background: var(--calm-primary) !important;
  border-color: var(--calm-primary) !important;
  color: var(--calm-primary-ink) !important;
}

/* ── Status labels & badges ─────────────────────────────────── */

body.customers.fc-calm .label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 600;
}

html body.customers.fc-calm .label-success,
html[data-theme="dark"] body.customers.fc-calm .label-success {
  background: var(--calm-moss-soft) !important;
  border-color: color-mix(in srgb, var(--calm-moss) 25%, transparent) !important;
  color: var(--calm-moss-ink) !important;
}

html body.customers.fc-calm .label-danger,
html[data-theme="dark"] body.customers.fc-calm .label-danger {
  background: var(--calm-clay-soft) !important;
  border-color: color-mix(in srgb, var(--calm-clay) 25%, transparent) !important;
  color: var(--calm-clay-ink) !important;
}

html body.customers.fc-calm .label-warning,
html[data-theme="dark"] body.customers.fc-calm .label-warning {
  background: var(--calm-ochre-soft) !important;
  border-color: color-mix(in srgb, var(--calm-ochre) 25%, transparent) !important;
  color: var(--calm-ochre-ink) !important;
}

html body.customers.fc-calm .label-info,
html[data-theme="dark"] body.customers.fc-calm .label-info {
  background: var(--calm-mist-soft) !important;
  border-color: color-mix(in srgb, var(--calm-mist) 25%, transparent) !important;
  color: var(--calm-mist-ink) !important;
}

html body.customers.fc-calm .label-primary,
html[data-theme="dark"] body.customers.fc-calm .label-primary {
  background: var(--calm-primary-soft) !important;
  border-color: color-mix(in srgb, var(--calm-primary) 25%, transparent) !important;
  color: var(--calm-primary-text) !important;
}

html body.customers.fc-calm .label-default,
html[data-theme="dark"] body.customers.fc-calm .label-default {
  background: var(--calm-raised) !important;
  border-color: var(--calm-border) !important;
  color: var(--calm-text-2) !important;
}

/* Ticket and project statuses carry their database colour in --status-color (see the theme templates) */
html body.customers.fc-calm .label.fc-status-label,
html[data-theme="dark"] body.customers.fc-calm .label.fc-status-label {
  background: color-mix(in srgb, var(--status-color) var(--calm-status-bg-mix), var(--calm-surface)) !important;
  border: 1px solid color-mix(in srgb, var(--status-color) 30%, transparent) !important;
  color: color-mix(in srgb, var(--status-color) var(--calm-status-ink-mix), var(--calm-text)) !important;
}

body.customers.fc-calm .badge {
  background: var(--calm-lavender-soft) !important;
  color: var(--calm-lavender-ink) !important;
  font-weight: 600;
}

/* ── Alerts ─────────────────────────────────────────────────── */

body.customers.fc-calm .alert {
  border-radius: 14px;
  border-width: 1px;
  box-shadow: none;
}

body.customers.fc-calm .alert-success { background: var(--calm-moss-soft) !important; border-color: color-mix(in srgb, var(--calm-moss) 25%, transparent) !important; color: var(--calm-moss-ink) !important; }
body.customers.fc-calm .alert-danger { background: var(--calm-clay-soft) !important; border-color: color-mix(in srgb, var(--calm-clay) 25%, transparent) !important; color: var(--calm-clay-ink) !important; }
body.customers.fc-calm .alert-warning { background: var(--calm-ochre-soft) !important; border-color: color-mix(in srgb, var(--calm-ochre) 25%, transparent) !important; color: var(--calm-ochre-ink) !important; }
body.customers.fc-calm .alert-info { background: var(--calm-mist-soft) !important; border-color: color-mix(in srgb, var(--calm-mist) 25%, transparent) !important; color: var(--calm-mist-ink) !important; }

/* ── Calendar (FullCalendar) ───────────────────────────────── */

html body.customers.fc-calm .fc,
html[data-theme="dark"] body.customers.fc-calm .fc {
  --fc-border-color: var(--calm-border);
  --fc-page-bg-color: var(--calm-surface);
  --fc-neutral-bg-color: var(--calm-raised);
  --fc-today-bg-color: var(--calm-primary-soft);
}

html body.customers.fc-calm .fc .fc-daygrid-day,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-daygrid-day {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border) !important;
}

html body.customers.fc-calm .fc .fc-daygrid-day.fc-day-other,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-daygrid-day.fc-day-other {
  background: var(--calm-raised) !important;
}

html body.customers.fc-calm .fc .fc-daygrid-day.fc-day-today,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-daygrid-day.fc-day-today {
  background: var(--calm-primary-soft) !important;
}

html body.customers.fc-calm .fc .fc-daygrid-day-number,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-daygrid-day-number,
html body.customers.fc-calm .fc .fc-col-header-cell-cushion,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-col-header-cell-cushion {
  color: var(--calm-text-2) !important;
  background: transparent !important;
  text-decoration: none !important;
}

html body.customers.fc-calm .fc .fc-day-other .fc-daygrid-day-number {
  color: var(--calm-text-3) !important;
  opacity: 0.7;
}

html body.customers.fc-calm .fc .fc-day-today .fc-daygrid-day-number,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-day-today .fc-daygrid-day-number {
  color: var(--calm-primary-ink) !important;
  background: var(--calm-primary) !important;
  border-radius: 999px;
  font-weight: 600;
}

html body.customers.fc-calm .fc .fc-toolbar-title,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-toolbar-title {
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .fc .fc-button,
html body.customers.fc-calm .fc .fc-button-primary,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-button,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-button-primary {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border-strong) !important;
  color: var(--calm-text-2) !important;
  box-shadow: none !important;
}

html body.customers.fc-calm .fc .fc-button:hover,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-button:hover {
  background: var(--calm-raised) !important;
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .fc .fc-button-primary:not(:disabled).fc-button-active,
html body.customers.fc-calm .fc .fc-button-primary:not(:disabled):active,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-button-primary:not(:disabled).fc-button-active,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-button-primary:not(:disabled):active {
  background: var(--calm-primary) !important;
  border-color: var(--calm-primary) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm .fc .fc-button:disabled,
html[data-theme="dark"] body.customers.fc-calm .fc .fc-button:disabled {
  opacity: 0.55;
}

html body.customers.fc-calm .fc-event,
html[data-theme="dark"] body.customers.fc-calm .fc-event {
  background: var(--calm-primary-soft-2) !important;
  border-color: transparent !important;
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .fc-event .fc-event-title,
html body.customers.fc-calm .fc-event .fc-event-time,
html[data-theme="dark"] body.customers.fc-calm .fc-event .fc-event-title,
html[data-theme="dark"] body.customers.fc-calm .fc-event .fc-event-time {
  color: var(--calm-text) !important;
}

/* ── File upload (dropzone) ─────────────────────────────────── */

body.customers.fc-calm .dropzone {
  border: 1.5px dashed var(--calm-border-strong) !important;
  border-radius: var(--calm-radius) !important;
  background: var(--calm-raised) !important;
}

body.customers.fc-calm .dropzone .dz-message,
body.customers.fc-calm .dropzone .dz-message span {
  color: var(--calm-text-2) !important;
}

/* ── Tabs (project, ticket and profile pages) ───────────────── */

html body.customers.fc-calm .nav-tabs,
html[data-theme="dark"] body.customers.fc-calm .nav-tabs {
  background: transparent !important;
  border-bottom-color: var(--calm-border) !important;
}

body.customers.fc-calm .nav-tabs > li > a {
  color: var(--calm-text-3) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
}

body.customers.fc-calm .nav-tabs > li > a:hover {
  color: var(--calm-text) !important;
}

body.customers.fc-calm .nav-tabs > li.active > a,
body.customers.fc-calm .nav-tabs > li.active > a:hover,
body.customers.fc-calm .nav-tabs > li.active > a:focus {
  color: var(--calm-primary-text) !important;
  border-bottom-color: var(--calm-primary) !important;
}

/* ── Modals ─────────────────────────────────────────────────── */

body.customers.fc-calm .modal-content {
  background: var(--calm-surface) !important;
  border: 1px solid var(--calm-border) !important;
  border-radius: 18px !important;
  color: var(--calm-text-2);
}

body.customers.fc-calm .modal-header,
body.customers.fc-calm .modal-footer {
  border-color: var(--calm-border) !important;
}

/* ── Footer ─────────────────────────────────────────────────── */

html body.customers.fc-calm .footer,
html[data-theme="dark"] body.customers.fc-calm .footer {
  background: transparent !important;
  border-top: 1px solid var(--calm-border) !important;
  color: var(--calm-text-3) !important;
}

body.customers.fc-calm .footer a {
  color: var(--calm-text-2) !important;
}

/* ── Knowledge base ─────────────────────────────────────────── */

/* The shared theme pins #content to the viewport and centres it vertically, which leaves a large gap above
   short pages and cuts off the top of long article lists; logged-in contacts get normal page flow instead */
html body.customers.fc-calm.customers-kb {
  overflow: visible;
}

html body.customers.fc-calm.customers-kb #content {
  position: static !important;
  display: block !important;
  overflow: visible !important;
  padding-top: 28px !important;
}

html body.customers.fc-calm.customers-kb #content > .container {
  margin-left: auto;
  margin-right: auto;
}

html body.customers.fc-calm.customers-kb #content .kb-search-jumbotron,
html[data-theme="dark"] body.customers.fc-calm.customers-kb #content .kb-search-jumbotron {
  max-width: 1170px;
  margin: 0 auto 8px !important;
  padding: 36px 15px !important;
  border: 1px solid var(--calm-border) !important;
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--calm-lavender-soft) 0%, transparent 55%),
    radial-gradient(120% 140% at 0% 100%, var(--calm-primary-soft) 0%, transparent 60%),
    var(--calm-surface) !important;
  box-shadow: var(--calm-shadow);
}

html body.customers.fc-calm.customers-kb .kb-search-heading,
html[data-theme="dark"] body.customers.fc-calm.customers-kb .kb-search-heading {
  color: var(--calm-text) !important;
}

html body.customers.fc-calm.customers-kb .kb-search input[type="search"],
html[data-theme="dark"] body.customers.fc-calm.customers-kb .kb-search input[type="search"] {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border-strong) !important;
  color: var(--calm-text) !important;
}

html body.customers.fc-calm.customers-kb .kb-search-icon,
html[data-theme="dark"] body.customers.fc-calm.customers-kb .kb-search-icon {
  color: var(--calm-text-3) !important;
}

/* RTL: the search icon sits on the right, over the start of the placeholder */
html[dir="rtl"] body.customers.fc-calm .kb-search input[type="search"].kb-search-input {
  padding-left: 14px !important;
  padding-right: 42px !important;
}

@media (max-width: 767px) {
  html body.customers.fc-calm.customers-kb #content .kb-search-jumbotron,
  html[data-theme="dark"] body.customers.fc-calm.customers-kb #content .kb-search-jumbotron {
    margin: 0 15px 8px !important;
    padding: 24px 4px !important;
    border-radius: 16px;
  }

  /* Results card had no side gutter (its .row's negative margins cancelled the container padding) */
  html body.customers.fc-calm.customers-kb #content > .container:last-child {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  html body.customers.fc-calm.customers-kb #content > .container:last-child > .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Top bar + sidebar (logged-in navigation) ───────────────── */

body.customers.fc-calm {
  --fc-side-w: 256px;
  --fc-top-h: 60px;
}

html body.customers.fc-calm .navbar.fc-portal-topbar,
html[data-theme="dark"] body.customers.fc-calm .navbar.fc-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--fc-top-h);
  margin: 0;
  border-radius: 0;
}

body.customers.fc-calm .fc-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--fc-top-h);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

html body.customers.fc-calm .fc-portal-topbar .navbar-brand,
html body.customers.fc-calm .navbar-default .navbar-header .navbar-brand.logo {
  float: none;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
  font-size: 18px;
}

body.customers.fc-calm .fc-portal-topbar .navbar-brand img {
  max-height: 34px;
  width: auto;
}

/* Brand sits beside the sidebar column on desktop, so the page title area starts where content starts */
@media (min-width: 992px) {
  body.customers.fc-calm .fc-portal-topbar .navbar-brand {
    width: calc(var(--fc-side-w) - 28px);
  }
}

html body.customers.fc-calm .fc-topbar-actions,
html[data-theme="dark"] body.customers.fc-calm .fc-topbar-actions {
  display: flex !important;
  align-items: center;
  gap: 4px;
  float: none !important;
  margin: 0 !important;
  margin-inline-start: auto !important;
  padding: 0;
}

html body.customers.fc-calm .fc-topbar-actions > li {
  float: none !important;
}

html body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px !important;
  line-height: 1 !important;
  border-radius: 10px !important;
}

/* Icon-only module links (cart, tags) arrive with their own inline spacing */
html body.customers.fc-calm .fc-topbar-actions > li {
  display: flex;
  align-items: center;
  height: 38px;
}

html body.customers.fc-calm .fc-topbar-actions > li > a > i,
html body.customers.fc-calm .fc-topbar-actions > li > a > svg {
  margin: 0 !important;
  position: static !important;
  font-size: 15px;
}

/* fixed_equipment prints its cart count as white text; show it as a small badge, hidden while empty */
body.customers.fc-calm .fc-topbar-actions .fe_qty_total:empty {
  display: none;
}

body.customers.fc-calm .fc-topbar-actions .fe_qty_total {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--calm-primary);
  color: var(--calm-primary-ink) !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* On the dashboard keep only "Dashboard" highlighted (perfex_saas also flags its subscription item there) */
body.customers.fc-calm .fc-portal-sidebar:has(.customers-nav-item-dashboard.active) .fc-side-list > li.active:not(.customers-nav-item-dashboard) > a {
  background: transparent;
  color: var(--calm-text-2) !important;
  font-weight: 500;
}

body.customers.fc-calm .fc-portal-sidebar:has(.customers-nav-item-dashboard.active) .fc-side-list > li.active:not(.customers-nav-item-dashboard) > a > i:first-child {
  color: var(--calm-text-3);
}

body.customers.fc-calm .fc-topbar-actions .client-profile-image-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

body.customers.fc-calm .fc-topbar-actions .dropdown-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-inline-start: auto;
  left: auto;
  min-width: 220px;
  margin-top: 8px;
}

html[dir="rtl"] body.customers.fc-calm .fc-topbar-actions .dropdown-menu {
  left: 0;
  right: auto;
}

body.customers.fc-calm .fc-side-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--calm-border);
  border-radius: 10px;
  background: var(--calm-surface);
  color: var(--calm-text-2);
  font-size: 17px;
  cursor: pointer;
}

body.customers.fc-calm .fc-side-toggle:hover {
  color: var(--calm-text);
  background: var(--calm-raised);
}

body.customers.fc-calm .fc-portal-sidebar {
  position: fixed;
  top: var(--fc-top-h);
  bottom: 0;
  inset-inline-start: 0;
  z-index: 1020;
  width: var(--fc-side-w);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  padding-inline-start: max(12px, env(safe-area-inset-right, 0px));
  background: var(--calm-surface);
  border-inline-end: 1px solid var(--calm-border);
  scrollbar-width: thin;
}

html[dir="ltr"] body.customers.fc-calm .fc-portal-sidebar {
  padding-inline-start: max(12px, env(safe-area-inset-left, 0px));
}

body.customers.fc-calm .fc-side-group {
  margin: 20px 12px 6px;
  color: var(--calm-text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.customers.fc-calm .fc-side-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.customers.fc-calm .fc-side-list > li {
  float: none;
  margin: 0;
}

html body.customers.fc-calm .fc-side-list > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--calm-text-2) !important;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.customers.fc-calm .fc-side-list > li > a .fc-side-icon,
body.customers.fc-calm .fc-side-list > li > a > i:first-child {
  flex: none;
  width: 20px;
  margin: 0 !important;
  text-align: center;
  font-size: 15px;
  color: var(--calm-text-3);
  transition: color 0.15s ease;
}

html body.customers.fc-calm .fc-side-list > li > a:hover,
html body.customers.fc-calm .fc-side-list > li > a:focus-visible {
  background: var(--calm-raised);
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .fc-side-list > li.active > a {
  background: var(--calm-primary-soft);
  color: var(--calm-primary-text) !important;
  font-weight: 600;
}

body.customers.fc-calm .fc-side-list > li.active > a .fc-side-icon,
body.customers.fc-calm .fc-side-list > li.active > a > i:first-child {
  color: var(--calm-primary-text);
}

body.customers.fc-calm .fc-side-list .badge {
  margin-inline-start: auto;
}

body.customers.fc-calm .fc-side-backdrop {
  display: none;
}

/* Content and footer make room for the sidebar */
@media (min-width: 992px) {
  /* The shared theme zeroes #wrapper's side margins with !important (admin layout leftover) */
  html body.customers.fc-calm.fc-has-sidebar #wrapper,
  html body.customers.fc-calm.fc-has-sidebar .footer {
    width: auto !important;
    max-width: none;
  }

  /* Breathing room between the sidebar and the page cards */
  html body.customers.fc-calm.fc-has-sidebar #wrapper {
    padding-inline: 20px;
  }

  html[dir="rtl"] body.customers.fc-calm.fc-has-sidebar #wrapper,
  html[dir="rtl"] body.customers.fc-calm.fc-has-sidebar .footer {
    margin-right: var(--fc-side-w) !important;
    margin-left: 0 !important;
  }

  html[dir="ltr"] body.customers.fc-calm.fc-has-sidebar #wrapper,
  html[dir="ltr"] body.customers.fc-calm.fc-has-sidebar .footer {
    margin-left: var(--fc-side-w) !important;
    margin-right: 0 !important;
  }

}

/* Phones and tablets: the sidebar becomes a drawer opened from the top bar */
@media (max-width: 991px) {
  body.customers.fc-calm .fc-side-toggle {
    display: grid;
  }

  body.customers.fc-calm .fc-portal-sidebar {
    top: 0;
    z-index: 1050;
    width: min(300px, 86vw);
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    box-shadow: var(--calm-shadow-hover);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }

  html[dir="rtl"] body.customers.fc-calm .fc-portal-sidebar {
    transform: translateX(100%);
  }

  html body.customers.fc-calm.fc-side-open .fc-portal-sidebar {
    transform: none;
    visibility: visible;
  }

  body.customers.fc-calm.fc-side-open .fc-side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(20, 28, 25, 0.38);
  }

  body.customers.fc-calm.fc-side-open {
    overflow: hidden;
  }

  html body.customers.fc-calm .fc-portal-topbar .navbar-brand {
    font-size: 16px;
  }
}

/* Very narrow phones: menu button + brand + four icons were 7px wider than 360px */
html body.customers.fc-calm .fc-portal-topbar .navbar-brand.fc-navbar-brand-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  body.customers.fc-calm .fc-topbar-inner {
    gap: 8px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  body.customers.fc-calm .fc-topbar-actions {
    gap: 0 !important;
  }

  html body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a,
  html[data-theme="dark"] body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a {
    min-width: 34px;
    padding: 0 7px !important;
  }

  body.customers.fc-calm .fc-side-toggle {
    width: 36px;
    height: 36px;
  }

  html body.customers.fc-calm .fc-portal-topbar .navbar-brand {
    font-size: 15px;
  }
}

/* ── Module pages (store, cart, lists) ──────────────────────── */

/* Like the knowledge base, the shared theme pins the store and cart to the viewport and centres them
   vertically; logged-in contacts get normal page flow beside the sidebar */
html body.customers.fc-calm.fe-store,
html body.customers.fc-calm.fe-cart {
  overflow: visible;
}

html body.customers.fc-calm.fe-store #content,
html body.customers.fc-calm.fe-cart #content {
  position: static !important;
  display: block !important;
  overflow: visible !important;
  padding-top: 28px !important;
}

html body.customers.fc-calm.fe-store #content > .container,
html body.customers.fc-calm.fe-cart #content > .container {
  margin-left: auto;
  margin-right: auto;
}

/* fixed_equipment store: category box and headings used slate blue and pure greys */
html body.customers.fc-calm .left_bar .nav-tabs--vertical {
  background: var(--calm-surface) !important;
  border: 1px solid var(--calm-border);
  border-radius: var(--calm-radius);
  box-shadow: var(--calm-shadow) !important;
  overflow: hidden;
  padding: 0;
}

html body.customers.fc-calm .left_bar .nav-tabs--vertical .head {
  background: var(--calm-raised) !important;
  color: var(--calm-text) !important;
  text-transform: none;
  padding: 12px 14px 26px;
}

html body.customers.fc-calm .left_bar .nav-tabs--vertical .head h5 {
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .nav-tabs--vertical .view_all {
  color: var(--calm-primary-text) !important;
  font-size: 12px;
  font-weight: 600;
  bottom: 6px;
  inset-inline-start: 10px;
  left: auto;
}

html body.customers.fc-calm .left_bar .nav-tabs--vertical .nav-item a {
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm .left_bar .nav-tabs--vertical .nav-item.active {
  background: var(--calm-primary-soft) !important;
  border-left: 0;
  border-inline-start: 2px solid var(--calm-primary);
}

html body.customers.fc-calm .head_title div {
  color: var(--calm-text-2) !important;
  border-bottom-color: var(--calm-border) !important;
}

html body.customers.fc-calm .btn_page {
  background: var(--calm-primary) !important;
  color: var(--calm-primary-ink) !important;
  font-style: normal;
}

html body.customers.fc-calm .btn_page.active {
  border-color: var(--calm-primary) !important;
  background: var(--calm-surface) !important;
  color: var(--calm-primary-text) !important;
}

html body.customers.fc-calm .promotions { color: var(--calm-clay-ink) !important; }
html body.customers.fc-calm .head_content i { color: var(--calm-moss) !important; }

/* The shared theme paints the store and cart navy in dark mode; same selectors plus .fc-calm win */
html body.customers.fc-calm.fe-store .product-cell,
html[data-theme="dark"] body.customers.fc-calm.fe-store .product-cell {
  background: var(--calm-surface) !important;
  border: 1px solid var(--calm-border) !important;
  box-shadow: var(--calm-shadow) !important;
}

html body.customers.fc-calm.fe-store .product-cell .title a,
html[data-theme="dark"] body.customers.fc-calm.fe-store .product-cell .title a {
  color: var(--calm-text) !important;
}

html body.customers.fc-calm.fe-store .product-cell .title a:hover,
html[data-theme="dark"] body.customers.fc-calm.fe-store .product-cell .title a:hover {
  color: var(--calm-primary-text) !important;
}

html body.customers.fc-calm.fe-store .product-cell .price,
html[data-theme="dark"] body.customers.fc-calm.fe-store .product-cell .price {
  color: var(--calm-clay-ink) !important;
}

html body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical,
html[data-theme="dark"] body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical {
  background: var(--calm-surface) !important;
  border: 1px solid var(--calm-border) !important;
  box-shadow: var(--calm-shadow) !important;
}

html body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .head,
html[data-theme="dark"] body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .head {
  background: var(--calm-raised) !important;
}

html body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .nav-item a,
html[data-theme="dark"] body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .nav-item a {
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .nav-item.active,
html[data-theme="dark"] body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .nav-item.active {
  background: var(--calm-primary-soft) !important;
  border-color: var(--calm-primary) !important;
}

html body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .nav-item.active a,
html[data-theme="dark"] body.customers.fc-calm.fe-store .left_bar .nav-tabs--vertical .nav-item.active a {
  color: var(--calm-primary-text) !important;
}

html body.customers.fc-calm.fe-store .form-control,
html[data-theme="dark"] body.customers.fc-calm.fe-store .form-control,
html body.customers.fc-calm.fe-cart .form-control,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .form-control,
html body.customers.fc-calm.fe-store .right_bar .form-control,
html[data-theme="dark"] body.customers.fc-calm.fe-store .right_bar .form-control {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border-strong) !important;
  color: var(--calm-text) !important;
}

html body.customers.fc-calm.fe-store .right_bar .form-control:focus,
html[data-theme="dark"] body.customers.fc-calm.fe-store .right_bar .form-control:focus {
  border-color: var(--calm-primary) !important;
  box-shadow: 0 0 0 3px var(--calm-ring) !important;
}

html body.customers.fc-calm.fe-store .head_title div,
html[data-theme="dark"] body.customers.fc-calm.fe-store .head_title div {
  color: var(--calm-text-2) !important;
  border-bottom-color: var(--calm-border) !important;
}

html body.customers.fc-calm.fe-store .btn_page,
html[data-theme="dark"] body.customers.fc-calm.fe-store .btn_page {
  background: var(--calm-primary) !important;
  border-color: var(--calm-primary) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm.fe-store .btn_page.active,
html[data-theme="dark"] body.customers.fc-calm.fe-store .btn_page.active {
  background: var(--calm-surface) !important;
  color: var(--calm-primary-text) !important;
}

html body.customers.fc-calm.fe-store .btn-primary,
html[data-theme="dark"] body.customers.fc-calm.fe-store .btn-primary,
html body.customers.fc-calm.fe-cart .btn-primary,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .btn-primary {
  background-color: var(--calm-primary) !important;
  border-color: var(--calm-primary) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm.fe-store .btn-success,
html[data-theme="dark"] body.customers.fc-calm.fe-store .btn-success,
html body.customers.fc-calm.fe-cart .btn-success,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .btn-success {
  background-color: var(--calm-moss) !important;
  border-color: var(--calm-moss) !important;
  color: var(--calm-primary-ink) !important;
}

html body.customers.fc-calm.fe-store .btn-default,
html[data-theme="dark"] body.customers.fc-calm.fe-store .btn-default,
html body.customers.fc-calm.fe-cart .btn-default,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .btn-default {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border-strong) !important;
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm.fe-store .modal-content,
html[data-theme="dark"] body.customers.fc-calm.fe-store .modal-content,
html body.customers.fc-calm.fe-cart .modal-content,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .modal-content {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border) !important;
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm.fe-cart .panel_s,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .panel_s,
html body.customers.fc-calm.fe-cart .panel-body,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .panel-body {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border) !important;
}

html body.customers.fc-calm.fe-cart .panel-footer,
html[data-theme="dark"] body.customers.fc-calm.fe-cart .panel-footer {
  background: var(--calm-raised) !important;
  border-color: var(--calm-border) !important;
}

/* Now that the store and cart flow normally, Bootstrap's row margins stuck out 15px on phones */
html body.customers.fc-calm.fe-store #content,
html body.customers.fc-calm.fe-cart #content {
  overflow-x: clip !important;
}

/* loyalty portal: profile picture ring was a bright sky blue */
html body.customers.fc-calm .picture {
  border-color: var(--calm-primary-soft-2) !important;
}

/* Bootstrap list groups (team_password categories, other module side lists) */
html body.customers.fc-calm .list-group-item {
  background: var(--calm-surface) !important;
  border-color: var(--calm-border) !important;
  color: var(--calm-text-2) !important;
}

html body.customers.fc-calm .list-group-item.active,
html body.customers.fc-calm .list-group-item.active:hover,
html body.customers.fc-calm .list-group-item.active:focus {
  background: var(--calm-primary-soft) !important;
  border-color: color-mix(in srgb, var(--calm-primary) 35%, transparent) !important;
  color: var(--calm-primary-text) !important;
}

/* ── Focus, scrollbar, motion ───────────────────────────────── */

body.customers.fc-calm a:focus-visible,
body.customers.fc-calm .btn:focus-visible {
  outline: 2px solid var(--calm-primary);
  outline-offset: 2px;
}

body.customers.fc-calm {
  scrollbar-color: var(--calm-border-strong) transparent;
}

/* Up to 1199px: below 992px the page is narrow, and from 992px the sidebar takes 256px of it */
@media (max-width: 1199px) {
  /* The table already scrolls inside .table-responsive; the wrapper only scrolled the -15px margins of its .row
     elements, which showed a second, empty scrollbar under the table */
  body.customers.fc-calm .dataTables_wrapper {
    overflow-x: visible !important;
  }

  body.customers.fc-calm .invoices-stats > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  body.customers.fc-calm dl:has(> .fc-calm-tile) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.customers.fc-calm .fc-calm-tile > div {
    padding: 12px 14px !important;
  }

  body.customers.fc-calm .fc-calm-tile dd > div {
    font-size: 22px !important;
  }

  body.customers.fc-calm .fc-calm-hero {
    padding: 22px 20px;
    border-radius: 16px;
  }

  body.customers.fc-calm .fc-calm-hero__title {
    font-size: 20px;
  }

  body.customers.fc-calm .fc-calm-hero__actions {
    width: 100%;
  }

  html body.customers.fc-calm .navbar-default .navbar-nav > li > a {
    border-radius: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.customers.fc-calm *,
  body.customers.fc-calm *::before {
    transition: none !important;
    transform: none !important;
  }
}


/* ══ Simple layer ═════════════════════════════════════════════
   Flat surfaces separated by hairlines, one accent, generous spacing, nothing that moves on its own. */

/* ── Type ───────────────────────────────────────────────────── */

html body.customers,
html body.customers .btn,
html body.customers .form-control,
html body.customers input,
html body.customers select,
html body.customers textarea {
  font-family: var(--fc-font-sans) !important;
}

html body.customers.fc-calm {
  line-height: 1.65;
}

body.customers.fc-calm h1,
body.customers.fc-calm h2,
body.customers.fc-calm h3,
body.customers.fc-calm h4 {
  font-weight: 600;
  letter-spacing: 0;
}

/* Money and counts line up in columns */
body.customers.fc-calm table,
body.customers.fc-calm .invoices-stats,
body.customers.fc-calm [class*="summary"] {
  font-variant-numeric: tabular-nums;
}

/* ── Surfaces: controls 8px, panels 12px, no drop shadows ───── */

html body.customers.fc-calm .panel_s,
html[data-theme="dark"] body.customers.fc-calm .panel_s,
html body.customers.fc-calm .panel,
html[data-theme="dark"] body.customers.fc-calm .panel {
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.customers.fc-calm .btn,
body.customers.fc-calm .form-control,
body.customers.fc-calm .bootstrap-select > .dropdown-toggle,
body.customers.fc-calm .input-group-addon {
  border-radius: 8px;
}

body.customers.fc-calm .dropdown-menu,
body.customers.fc-calm .modal-content {
  border-radius: 12px !important;
  box-shadow: var(--calm-shadow-hover) !important;
}

body.customers.fc-calm .invoices-stats > div > div,
body.customers.fc-calm .invoices-stats .tw-rounded-lg,
body.customers.fc-calm .invoices-stats .tw-rounded-md {
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* ── Top bar ────────────────────────────────────────────────── */

html body.customers.fc-calm .navbar.fc-portal-topbar,
html[data-theme="dark"] body.customers.fc-calm .navbar.fc-portal-topbar {
  background: var(--calm-nav-bg) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--calm-border) !important;
  box-shadow: none !important;
}

html body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a {
  border-radius: 8px !important;
  color: var(--calm-text-2) !important;
  background: transparent !important;
}

html body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a:hover,
html body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a:focus-visible,
html[data-theme="dark"] body.customers.fc-calm .navbar-default .fc-topbar-actions > li > a:hover {
  background: var(--calm-raised) !important;
  color: var(--calm-text) !important;
}

html body.customers.fc-calm .fc-portal-topbar .navbar-brand,
html body.customers.fc-calm .fc-portal-topbar .navbar-brand:hover {
  color: var(--calm-text) !important;
  font-weight: 700;
  letter-spacing: 0;
}

body.customers.fc-calm .fc-side-toggle {
  border-radius: 8px;
}

/* ── Sidebar: same paper as the content, a hairline between them ── */

html body.customers.fc-calm .fc-portal-sidebar,
html[data-theme="dark"] body.customers.fc-calm .fc-portal-sidebar {
  background: var(--calm-surface);
  border-inline-end: 1px solid var(--calm-border);
}

body.customers.fc-calm .fc-side-group {
  margin: 22px 12px 6px;
  color: var(--calm-text-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}

html body.customers.fc-calm .fc-side-list > li > a {
  position: relative;
  border-radius: 8px;
}

html body.customers.fc-calm .fc-side-list > li.active > a {
  background: var(--calm-primary-soft);
  color: var(--calm-primary-text) !important;
}

/* A thin bar marks the current page */
html body.customers.fc-calm .fc-side-list > li.active > a::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--calm-primary);
}

body.customers.fc-calm .fc-portal-sidebar:has(.customers-nav-item-dashboard.active) .fc-side-list > li.active:not(.customers-nav-item-dashboard) > a::before {
  display: none;
}

/* ── Dashboard header: a plain greeting, no card ────────────── */

html body.customers.fc-calm .fc-calm-hero {
  align-items: flex-end;
  gap: 16px 24px;
  padding: 4px 0 22px;
  margin-bottom: 28px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--calm-border);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body.customers.fc-calm .fc-calm-hero__title {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.35;
}

body.customers.fc-calm .fc-calm-hero__title b {
  font-weight: 600;
}

body.customers.fc-calm .fc-calm-chip {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}

@media (max-width: 575px) {
  body.customers.fc-calm .fc-calm-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body.customers.fc-calm .fc-calm-chip {
    justify-content: center;
  }
}

/* ── Focus ──────────────────────────────────────────────────── */

body.customers.fc-calm a:focus-visible,
body.customers.fc-calm button:focus-visible,
body.customers.fc-calm .btn:focus-visible {
  outline: 2px solid var(--calm-primary);
  outline-offset: 2px;
}

/* ══ Sign-in, register, password pages (guests) ═══════════════ */

html body.customers .fc-auth-bg,
html[data-theme="dark"] body.customers .fc-auth-bg {
  background: var(--pt-paper) !important;
}

html body.customers .fc-auth-bg::before {
  display: none !important;
}

html body.customers .fc-auth-card,
html[data-theme="dark"] body.customers .fc-auth-card {
  border: 1px solid var(--pt-border) !important;
  border-radius: 12px !important;
  background: var(--pt-surface) !important;
  box-shadow: none !important;
}

/* The shared theme draws a blue–violet strip on top of the card */
html body.customers .fc-auth-card::before,
html body.customers .fc-auth-card::after {
  display: none !important;
}

html body.customers .fc-auth-header__title,
html[data-theme="dark"] body.customers .fc-auth-header__title {
  color: var(--pt-text) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

html body.customers .fc-auth-card .control-label {
  color: var(--pt-text-2) !important;
}

html body.customers .fc-auth-card .form-control {
  border-radius: 8px !important;
}

html body.customers .fc-auth-card .form-control:focus {
  border-color: var(--pt-accent) !important;
  box-shadow: 0 0 0 3px var(--pt-accent-soft) !important;
}

html body.customers .fc-auth-card .fc-auth-btn,
html body.customers .fc-auth-card .btn {
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.customers .fc-auth-card .fc-auth-btn:not(.fc-auth-btn--secondary),
html[data-theme="dark"] body.customers .fc-auth-card .fc-auth-btn:not(.fc-auth-btn--secondary),
html body.customers .fc-auth-card .btn-primary {
  background: var(--pt-accent) !important;
  background-image: none !important;
  border-color: var(--pt-accent) !important;
  color: #0e1a2b !important;
}

html body.customers .fc-auth-card .fc-auth-btn:not(.fc-auth-btn--secondary):hover,
html body.customers .fc-auth-card .btn-primary:hover {
  background: var(--pt-accent-hover) !important;
  border-color: var(--pt-accent-hover) !important;
}

html body.customers .fc-auth-card a:not(.btn):not(.fc-auth-btn),
html body.customers .fc-auth-card .fc-auth-btn--secondary {
  color: #8a5a08 !important;
}

html[data-theme="dark"] body.customers .fc-auth-card a:not(.btn):not(.fc-auth-btn),
html[data-theme="dark"] body.customers .fc-auth-card .fc-auth-btn--secondary {
  color: #f0c06c !important;
}

@media (prefers-reduced-motion: reduce) {
  body.customers .fc-portal-sidebar {
    transition: none !important;
  }
}

/* Guest pages, dark mode: the shared theme uses navy for fields and the navbar; keep them on the same slate */
html[data-theme="dark"] body.customers .fc-auth-card .form-control,
html[data-theme="dark"] body.customers .fc-auth-card .bootstrap-select > .dropdown-toggle {
  background: var(--pt-paper) !important;
  border-color: var(--pt-border) !important;
  color: var(--pt-text) !important;
}

html[data-theme="dark"] body.customers:not(.fc-calm) .navbar-default.header {
  background: var(--pt-surface) !important;
  border-color: var(--pt-border) !important;
}

/* Field icons were the old blue; keep them muted, brass while the field is focused */
html body.customers .fc-auth-card .fc-auth-input-icon,
html body.customers .fc-auth-card .fc-auth-input-icon svg {
  color: var(--pt-text-2) !important;
  stroke: currentColor;
}

html body.customers .fc-auth-card .fc-auth-input-wrap:focus-within .fc-auth-input-icon {
  color: #b97a14 !important;
}

/* Guest top bar: brand on the same line as the links */
@media (min-width: 768px) {
  html body.customers:not(.fc-calm) .navbar-default.header > .container {
    display: flex;
    align-items: center;
    min-height: 64px;
  }

  html body.customers:not(.fc-calm) .navbar-default.header .navbar-header,
  html body.customers:not(.fc-calm) .navbar-default.header .navbar-brand {
    float: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
  }

  html body.customers:not(.fc-calm) .navbar-default.header .navbar-collapse {
    flex: 1;
  }
}
