/* ==========================================================================
   FixnBook UI - design tokens + component layer for every web panel
   --------------------------------------------------------------------------
   Owner-approved design system (FixnBook_UIUX_Redesign_Recommendation,
   2026-10-13). Loaded LAST on every panel page and every sign-in page
   (backend/shared/fnb_ui_assets.php), so it restyles the Bootstrap 4 +
   Stisla 2.3 markup in place - no page view is rewritten.

   Sections
     1. Tokens            8. Tabs, breadcrumbs, pagination, dropdowns
     2. Base + type       9. Modals, toasts (iziToast, SweetAlert2)
     3. Shell             10. Tables (bootstrap-table): rows, sticky header,
     4. Page header           numbers, phone card mode, empty state, skeleton
     5. Buttons           11. Focus + contrast
     6. Cards, alerts     12. Overlays (install card, chat bubble, queue tray)
     7. Forms, badges     13. Sign-in screens      14. Phones      15. Motion

   Rules of thumb for this file
   - Every text/background pair is >= 4.5:1 (checked with the audit tooling
     in the UI/UX audit scratchpad, not by eye).
   - Colours come from the tokens below. A one-off hex here is a bug.
   - !important only where the theme itself uses it (Stisla/custom.css put
     it on .btn, .text-muted, alerts...) - otherwise specificity.
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  /* brand */
  --fnb-brand: #0270EB;          /* accents, icons, borders - not body text */
  --fnb-brand-600: #0258C4;      /* buttons + links: white text 6.57:1 */
  --fnb-brand-700: #0047A8;      /* hover / pressed */
  --fnb-brand-50: #EEF5FF;       /* tint surfaces (brand-600 on it 5.99:1) */
  --fnb-brand-100: #DCEBFF;
  --fnb-brand-200: #B9D6FF;
  --fnb-accent: #FF7A00;         /* logo orange: decoration only, never a text bg */

  /* ink + brand-tinted neutrals */
  --fnb-ink: #0D131B;            /* headings */
  --fnb-ink-2: #344054;          /* body text 10.46:1 */
  --fnb-muted: #5B6878;          /* secondary text 5.68:1 on white, 5.29 on canvas */
  --fnb-subtle: #8A95A5;         /* icons / placeholders only, never body text */
  --fnb-border: #E3E8EF;
  --fnb-border-strong: #CDD5DF;
  --fnb-surface: #FFFFFF;
  --fnb-canvas: #F4F7FB;
  --fnb-hover: #F2F5F9;

  /* semantic: text on tint (all >= 4.7:1) + solid fills (white text >= 4.8:1) */
  --fnb-success: #0F7B4A;  --fnb-success-bg: #E7F6EE;  --fnb-success-bd: #B7E4CB;
  --fnb-warning: #8A5300;  --fnb-warning-bg: #FFF4E0;  --fnb-warning-bd: #F7D59B;
  --fnb-danger: #B42318;   --fnb-danger-bg: #FDECEA;   --fnb-danger-bd: #F5C2BC;
  --fnb-info: #0B5CAD;     --fnb-info-bg: #E8F2FD;     --fnb-info-bd: #BCD8F7;
  --fnb-neutral: #475467;  --fnb-neutral-bg: #F2F4F7;  --fnb-neutral-bd: #D9DEE5;

  /* booking status (same everywhere: tables, chips, calendars) */
  --fnb-st-pending: #475467;     --fnb-st-pending-bg: #F2F4F7;
  --fnb-st-awaiting: #8A5300;    --fnb-st-awaiting-bg: #FFF4E0;
  --fnb-st-confirmed: #0B5CAD;   --fnb-st-confirmed-bg: #E8F2FD;
  --fnb-st-rescheduled: #6D3FC0; --fnb-st-rescheduled-bg: #F1EBFC;
  --fnb-st-started: #4338CA;     --fnb-st-started-bg: #EEF0FF;
  --fnb-st-completed: #0F7B4A;   --fnb-st-completed-bg: #E7F6EE;
  --fnb-st-cancelled: #B42318;   --fnb-st-cancelled-bg: #FDECEA;

  /* type */
  --fnb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fnb-fs-xs: 12px; --fnb-fs-sm: 13px; --fnb-fs-md: 14px; --fnb-fs-lg: 16px;
  --fnb-fs-xl: 18px; --fnb-fs-2xl: 22px; --fnb-fs-3xl: 28px;

  /* 4pt spacing */
  --fnb-s1: 4px; --fnb-s2: 8px; --fnb-s3: 12px; --fnb-s4: 16px; --fnb-s5: 24px; --fnb-s6: 32px; --fnb-s7: 48px;

  /* shape + depth */
  --fnb-r-sm: 8px; --fnb-r-md: 12px; --fnb-r-lg: 16px; --fnb-r-full: 999px;
  --fnb-e1: 0 1px 2px rgba(13, 19, 27, .05);
  --fnb-e2: 0 2px 6px rgba(13, 19, 27, .06), 0 8px 24px rgba(13, 19, 27, .06);
  --fnb-e3: 0 12px 32px rgba(13, 19, 27, .16), 0 2px 6px rgba(13, 19, 27, .08);

  /* motion */
  --fnb-t-fast: 150ms; --fnb-t-base: 250ms; --fnb-ease: cubic-bezier(.2, .8, .2, 1);

  /* control sizes */
  --fnb-h-sm: 32px; --fnb-h-md: 40px; --fnb-h-lg: 48px;
  --fnb-focus: 0 0 0 3px rgba(2, 112, 235, .35);
  --fnb-sidebar-w: 260px;

  /* panel1 (2026-11-23): tokens the vendor panel layer (fnb-partner-ui.css) paints with.
     Buttons - five kinds; every legacy button class is an alias of one of them. */
  --fnb-btn-primary-bg: var(--fnb-brand-600); --fnb-btn-primary-ink: #fff; --fnb-btn-primary-hover: var(--fnb-brand-700);
  --fnb-btn-secondary-bg: var(--fnb-surface); --fnb-btn-secondary-ink: var(--fnb-ink-2); --fnb-btn-secondary-bd: var(--fnb-border-strong); --fnb-btn-secondary-hover: var(--fnb-hover);
  --fnb-btn-outline-ink: var(--fnb-brand-600); --fnb-btn-outline-bd: var(--fnb-brand-600); --fnb-btn-outline-hover: var(--fnb-brand-50);
  --fnb-btn-danger-ink: var(--fnb-danger); --fnb-btn-danger-bd: var(--fnb-danger-bd); --fnb-btn-danger-hover: var(--fnb-danger-bg);
  --fnb-btn-danger-fill: #B42318; --fnb-btn-danger-fill-hover: #912018;
  --fnb-btn-link-ink: var(--fnb-brand-600);
  /* Focus ring + touch target */
  --fnb-focus-ring: var(--fnb-brand-600); --fnb-focus-halo: rgba(2, 112, 235, .18);
  --fnb-touch: 44px;
  /* Charts: six colours, distinguishable with the common colour-vision deficiencies
     (blue / orange / bluish green / reddish purple / sky / vermilion, Okabe-Ito based),
     each >= 3:1 on the surface. Axis, grid and tooltip follow the theme. */
  --fnb-chart-1: #0258C4; --fnb-chart-2: #B86E00; --fnb-chart-3: #00805F; --fnb-chart-4: #A2417F; --fnb-chart-5: #2F7FC1; --fnb-chart-6: #C2410C;
  --fnb-chart-axis: #5B6878; --fnb-chart-grid: #E3E8EF; --fnb-chart-tooltip-bg: #0D131B; --fnb-chart-tooltip-ink: #FFFFFF;
  --fnb-chart-box: var(--fnb-surface);
}

/* The theme reads --primary-color (set inline per panel from settings).
   Point it at the AA-safe shade so every legacy rule that paints white text
   on "primary" passes contrast. !important beats the inline body style. */
body {
  --primary-color: #0258C4 !important;
  --primary: #0258C4 !important;
  --secondary-color: #0D131B !important;
}

/* 2. BASE + TYPE ============================================================ */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fnb-font);
  font-size: var(--fnb-fs-md);
  line-height: 1.5;
  color: var(--fnb-ink-2);
  background-color: var(--fnb-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
/* One family. Lexend/Nunito/Poppins came from earlier passes; headings,
   buttons and controls follow the body now. */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.btn, .navbar-brand, .card-title, .section-header h1,
input, select, textarea, button, .form-control, .dropdown-item, .tooltip, .popover,
.select2-container, .iziToast, .swal2-popup, .table, .modal {
  font-family: var(--fnb-font);
}
/* Page-level one-offs (Poppins tickets, Lexend headings, system stacks)
   follow too. Icon fonts are excluded by class/tag; rich-text editors and
   code keep their own faces. */
:is(.main-content, .main-sidebar, .main-navbar, .modal, .dropdown-menu, .main-footer)
  *:not(i):not(code):not(pre):not(kbd):not(.material-symbols-outlined):not(.material-icons):not([class*="fa"]):not([class*="icon"]):not([class*="bi-"]):not(.ion):not([class*="symbol"]):not(:is(.note-editable, .ql-editor, .CodeMirror, .mce-content-body) *) {
  font-family: var(--fnb-font);
}
/* Material Icons and Material Symbols are the same ligature set: one icon face */
.material-icons { font-family: 'Material Symbols Outlined' !important; font-feature-settings: 'liga'; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--fnb-ink); letter-spacing: -.01em; }
h1, .h1 { font-size: var(--fnb-fs-3xl); font-weight: 700; }
h2, .h2 { font-size: var(--fnb-fs-2xl); font-weight: 700; }
h3, .h3 { font-size: var(--fnb-fs-xl); font-weight: 600; }
h4, .h4 { font-size: var(--fnb-fs-lg); font-weight: 600; }
h5, .h5 { font-size: var(--fnb-fs-md); font-weight: 600; }
h6, .h6 { font-size: var(--fnb-fs-sm); font-weight: 600; }
p { color: inherit; }
small, .small, .text-small { font-size: var(--fnb-fs-sm); }
.text-muted, .text-secondary, .text-gray, .text-grey, .text-job, .text-time { color: var(--fnb-muted) !important; }
.text-dark { color: var(--fnb-ink) !important; }
.text-primary, .text-new-primary { color: var(--fnb-brand-600) !important; }
.text-success { color: var(--fnb-success) !important; }
.text-danger { color: var(--fnb-danger) !important; }
.text-warning { color: var(--fnb-warning) !important; }
.text-info { color: var(--fnb-info) !important; }
.text-light, .text-white-50 { color: var(--fnb-muted) !important; }
.bg-primary .text-white-50, .bg-dark .text-white-50 { color: #fff !important; }
.font-weight-bold, b, strong { font-weight: 600; }
a { color: var(--fnb-brand-600); text-decoration: none; }
a:hover { color: var(--fnb-brand-700); }
/* Money, counts, dates line up in columns. */
.table, .badge, .tag, .card-statistic-1 .card-body, .card-statistic-2 .card-body,
.fnb-num, .pagination, input[type=number], .stat, [class*="stat-value"], [class*="kpi"] {
  font-variant-numeric: tabular-nums;
}
hr { border-top-color: var(--fnb-border); }
::selection { background: var(--fnb-brand-100); color: var(--fnb-ink); }

/* 3. SHELL: top bar, sidebar, content, footer ============================= */
.main-wrapper { background: var(--fnb-canvas); }
.navbar-bg { display: none !important; }
.main-navbar, .navbar.new_nav_bar {
  background: var(--fnb-surface) !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--fnb-border);
  min-height: 64px;
  height: auto;
  padding-top: var(--fnb-s2);
  padding-bottom: var(--fnb-s2);
}
.main-navbar .nav-link,
.main-navbar .nav-link.nav-link-lg { color: var(--fnb-ink-2) !important; }
.main-navbar .nav-link.nav-link-lg i { font-size: 18px; }
.main-navbar [data-toggle="sidebar"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0 !important; border-radius: var(--fnb-r-sm);
}
.main-navbar [data-toggle="sidebar"]:hover { background: var(--fnb-hover); }
/* Right-hand group (notifications, language, account): calm neutral buttons
   instead of three solid blue blocks. */
.navbar_dropdown {
  background: transparent !important;
  border-radius: var(--fnb-r-sm);
}
.main-navbar .navbar-right { align-items: center; gap: var(--fnb-s2); }
/* Technician / supplier / property manager / accountant bars are one
   right-aligned list that starts with the menu button: keep that button on
   the left like the provider and admin bars. */
.main-navbar > ul.navbar-right.ml-auto { margin-left: 0 !important; flex: 1 1 auto; flex-direction: row; }
.main-navbar > ul.navbar-right.ml-auto > li:first-child { margin-right: auto !important; }
.main-navbar .navbar-right > li, .main-navbar .navbar-right > ul > li { margin-top: 0 !important; margin-bottom: 0 !important; }
.main-navbar .navbar_dropdown > .nav-link,
.main-navbar .navbar-right .nav-link.nav-link-user {
  display: inline-flex; align-items: center; gap: var(--fnb-s2);
  min-height: 40px; padding: 4px 12px !important;
  border: 1px solid var(--fnb-border); border-radius: var(--fnb-r-sm);
  background: var(--fnb-surface);
  color: var(--fnb-ink-2) !important; font-weight: 500; font-size: var(--fnb-fs-md);
  transition: background-color var(--fnb-t-fast) var(--fnb-ease), border-color var(--fnb-t-fast) var(--fnb-ease);
}
.main-navbar .navbar_dropdown > .nav-link:hover,
.main-navbar .navbar-right .nav-link.nav-link-user:hover { background: var(--fnb-hover); border-color: var(--fnb-border-strong); }
.main-navbar .navbar_dropdown > .nav-link *,
.main-navbar .navbar-right .nav-link-user * { color: inherit; }
/* The initial-in-a-circle avatars (Supplier, Property Manager, Technician) sit on the
   brand blue: the inherit above turned their letter grey-on-blue (2:1). UX audit 2026-10-24. */
.main-navbar .navbar-right .nav-link-user .supplier-topbar-avatar,
.main-navbar .navbar-right .nav-link-user .pm-topbar-avatar,
.main-navbar .navbar-right .nav-link-user .tech-avatar-fallback { color: #fff; }
.main-navbar .navbar_dropdown > .nav-link .badge,
.main-navbar .navbar-right .nav-link .badge { color: #fff !important; }
.main-navbar .nav-link-user img, .main-navbar .navbar_image {
  width: 28px !important; height: 28px !important; object-fit: cover;
  border: 1px solid var(--fnb-border) !important; border-radius: 50% !important; margin: 0 !important;
}
.main-navbar .dropdown-toggle::after { border-top-color: currentColor; opacity: .7; }
.main-navbar .form-control,
.main-navbar #menu-search, .main-navbar input[type="search"] {
  height: 40px; border-radius: var(--fnb-r-sm) !important;
  background: var(--fnb-canvas); border: 1px solid var(--fnb-border) !important;
  color: var(--fnb-ink-2);
}
.main-navbar .search-element .btn { min-height: 40px; box-shadow: none !important; background: transparent !important; border: 0 !important; color: var(--fnb-muted) !important; }
.main-navbar .badge { font-weight: 600; }

/* Sidebar */
.main-sidebar {
  background: var(--fnb-surface) !important;
  box-shadow: none !important;
  border-right: 1px solid var(--fnb-border);
  /* The menu scrolls inside the sidebar and never spills over the page.
     Native scrolling: on the supplier / property manager / technician /
     accountant panels niceScroll is not loaded, so the links below the fold
     could not be reached at all. Where niceScroll runs it sets its own inline
     overflow, which wins over this. */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--fnb-border-strong) transparent;
}
.main-sidebar .sidebar-brand {
  background: var(--fnb-surface) !important;
  border-bottom: 1px solid var(--fnb-border) !important;
  height: 64px; line-height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.main-sidebar .sidebar-brand img, .main-sidebar .sidebar-brand .sidebar_logo { max-height: 44px; width: auto; }
.main-sidebar .sidebar-menu { padding: var(--fnb-s2) 0 var(--fnb-s6); }
.main-sidebar .sidebar-menu li.menu-header,
.main-sidebar .sidebar-menu .menu-header,
.main-sidebar .heading_lable {
  padding: 18px 22px 6px !important;
  font-size: var(--fnb-fs-xs) !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase;
  color: var(--fnb-muted) !important;
  line-height: 1.35;
  height: auto;
  white-space: normal;
}
.main-sidebar .heading_lable::before { display: none !important; }
.main-sidebar .sidebar-menu > li > a,
.main-sidebar .tech-sidebar-menu > li > a,
.main-sidebar .sidebar-menu li a {
  height: auto !important;
  min-height: 40px;
  margin: 1px 12px;
  width: auto;
  padding: 8px 10px !important;
  border-radius: var(--fnb-r-sm);
  color: var(--fnb-ink-2) !important;
  font-size: var(--fnb-fs-md);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  border: 0 !important;
  transition: background-color var(--fnb-t-fast) var(--fnb-ease), color var(--fnb-t-fast) var(--fnb-ease);
}
/* Labels stay on one line; a label too long for the column ends in an
   ellipsis and shows in full as a tooltip (title set by fnb-ui.js). */
.main-sidebar .sidebar-menu li a > span:not(.material-symbols-outlined):not(.material-icons):not(.badge):not([class*="badge"]),
.main-sidebar .tech-sidebar-menu li a > span:not(.material-symbols-outlined):not(.material-icons):not(.badge):not([class*="badge"]) {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0 !important;
  width: auto !important;
}
.main-sidebar .sidebar-menu li a:hover,
.main-sidebar .tech-sidebar-menu li a:hover { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
.main-sidebar .sidebar-menu li > a > .material-symbols-outlined,
.main-sidebar .tech-sidebar-menu li > a > .material-symbols-outlined,
.main-sidebar .sidebar-menu li > a > i,
.main-sidebar .sidebar-menu li > a > .material-icons {
  flex: none;
  width: 24px !important; height: 24px !important; min-width: 24px !important;
  margin: 0 12px 0 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--fnb-muted) !important;
  font-size: 20px !important;
  display: inline-flex; align-items: center; justify-content: center;
}
.main-sidebar .sidebar-menu li.active > a,
.main-sidebar .tech-sidebar-menu li.active > a,
.main-sidebar .sidebar-menu li a.active,
.main-sidebar .sidebar-menu li.nav-item.active > a {
  background: var(--fnb-brand-50) !important;
  color: var(--fnb-brand-600) !important;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--fnb-brand-600);
}
.main-sidebar .sidebar-menu li.active > a > .material-symbols-outlined,
.main-sidebar .tech-sidebar-menu li.active > a > .material-symbols-outlined,
.main-sidebar .sidebar-menu li.active > a > i,
.main-sidebar .sidebar-menu li a.active > .material-symbols-outlined { color: var(--fnb-brand-600) !important; }
.main-sidebar .sidebar-menu li.active > a::before, .main-sidebar .sidebar-menu li a::before { display: none; }
/* Sub-menus (admin + partner groups) */
.main-sidebar .sidebar-menu li ul.dropdown-menu { background: transparent !important; padding: 2px 0 6px; }
.main-sidebar .sidebar-menu li ul.dropdown-menu li a {
  min-height: 36px; margin: 1px 12px 1px 36px; padding: 6px 10px !important;
  font-size: var(--fnb-fs-md); font-weight: 400; color: var(--fnb-ink-2) !important;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a,
.main-sidebar .sidebar-menu li ul.dropdown-menu li a.active { box-shadow: none; background: var(--fnb-brand-50) !important; color: var(--fnb-brand-600) !important; font-weight: 600; }
.main-sidebar .sidebar-menu li a.has-dropdown::after { color: var(--fnb-subtle); }
.main-sidebar .sidebar-menu li a .badge,
.main-sidebar .chat-sidebar-unread-badge { flex: none; margin-left: auto; }
/* Locked (plan) items read as quieter, still AA. */
.main-sidebar .sidebar-menu li a.locked, .main-sidebar .sidebar-menu li a[data-locked] { color: var(--fnb-muted) !important; }

/* Content column */
.main-content {
  padding-top: 88px;
  padding-bottom: 104px; /* room so the bottom-right dock never sits on the last row */
  min-height: 100vh;
}
/* Width of the content column: see section 16 (screen sizes). */
.section > .section-body, .section .section-body { margin-top: 0; }
.section .section-title { font-size: var(--fnb-fs-lg); font-weight: 600; color: var(--fnb-ink); margin: var(--fnb-s5) 0 var(--fnb-s3); }
.section .section-title::before { display: none; }
.section-lead { color: var(--fnb-muted); font-size: var(--fnb-fs-md); margin-left: 0; }
.main-content .row + .row { margin-top: 0; }

/* Footer */
.main-footer, .main-footer.new-footer {
  background: transparent;
  border-top: 1px solid var(--fnb-border);
  color: var(--fnb-muted) !important;
  font-size: var(--fnb-fs-sm);
  padding: var(--fnb-s4) 30px !important;
}
.main-footer a, .main-footer .text-muted { color: var(--fnb-muted) !important; font-size: var(--fnb-fs-sm) !important; }
.main-footer a:hover { color: var(--fnb-brand-600) !important; }
.main-footer .gap-3 { column-gap: var(--fnb-s4); }
@media (min-width: 1025px) {
  body:not(.sidebar-mini) .main-footer, body:not(.sidebar-mini) .main-footer.new-footer { padding-left: calc(var(--fnb-sidebar-w) + 30px) !important; }
  body.sidebar-mini .main-footer { padding-left: 95px !important; }
}

/* 4. PAGE HEADER =========================================================== */
.section .section-header,
.section-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--fnb-s2) var(--fnb-s4);
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0;
  padding: var(--fnb-s2) 0 0 !important;
  margin: 0 0 var(--fnb-s5) !important;
}
.section .section-header h1, .section-header h1 {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  font-size: var(--fnb-fs-2xl) !important;
  line-height: 1.25;
  font-weight: 700 !important;
  color: var(--fnb-ink) !important;
  letter-spacing: -.015em;
}
.section-header .section-header-back { order: 0; margin-right: 0; }
/* Anything else in the header (actions, badges, forms) follows the title; only
   the breadcrumb goes above it and a subtitle wraps below. */
.section .section-header > *, .section-header > * { order: 2; }
.section-header .section-header-button, .section-header .section-header-actions, .section-header > .btn, .section-header > .ml-auto { order: 2; margin: 0 !important; }
.section .section-header .section-header-back, .section-header .section-header-back { order: 0; }
.section-header > p, .section-header > .section-lead, .section-header > small, .section-header > .text-muted { order: 3; flex: 1 1 100%; margin: 0 !important; }
.section .section-header .section-header-breadcrumb, .section-header .section-header-breadcrumb {
  order: -1;
  flex: 1 1 100%;
  margin: 0 !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--fnb-s2);
  font-size: var(--fnb-fs-sm);
  color: var(--fnb-muted);
}
.section-header .section-header-breadcrumb .breadcrumb-item { font-size: var(--fnb-fs-sm); color: var(--fnb-muted); padding: 0 !important; }
.section-header .section-header-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--fnb-subtle); padding: 0 var(--fnb-s2) 0 0; }
/* Buttons placed in the header (New agreement, Log new ticket, ...) keep their own colours:
   without :not(.btn) a .btn-primary there showed grey text on blue (2026-10-28). */
.section-header .section-header-breadcrumb a:not(.btn),
.breadcrumb-item a { color: var(--fnb-muted) !important; font-weight: 500; }
.section-header .section-header-breadcrumb a:not(.btn):hover, .breadcrumb-item a:hover { color: var(--fnb-brand-600) !important; }
.section-header .section-header-breadcrumb :not(.btn) > i, .breadcrumb-item i { color: var(--fnb-muted) !important; font-size: 12px; }
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: var(--fnb-fs-sm); }
.breadcrumb-item.active { color: var(--fnb-muted); }
/* Optional subtitle under the page title (.fnb-page-subtitle / .section-lead) */
.fnb-page-subtitle { order: 3; flex: 1 1 100%; margin: 0; color: var(--fnb-muted); font-size: var(--fnb-fs-md); }

/* 5. BUTTONS =============================================================== */
/* One system: primary, secondary, outline, ghost, danger, success, link,
   in sm / md / lg. The ~25 legacy variants map onto these. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--fnb-s2);
  min-height: var(--fnb-h-md);
  padding: 8px 16px;
  font-size: var(--fnb-fs-md) !important;
  font-weight: 600 !important;
  line-height: 1.25;
  letter-spacing: 0 !important;
  text-transform: none;
  border-radius: var(--fnb-r-sm) !important;
  border: 1px solid transparent;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background-color var(--fnb-t-fast) var(--fnb-ease), border-color var(--fnb-t-fast) var(--fnb-ease), color var(--fnb-t-fast) var(--fnb-ease);
}
/* A full-width button has a fixed width, so a long label must wrap rather
   than run out of the button ("Update Service Provider Data" in a half card,
   any label in pl/de at 390 px). Inline buttons keep nowrap. */
.btn.btn-block, .btn.w-100 { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn i, .btn .fas, .btn .far, .btn .fa { margin: 0 !important; }
.btn .material-symbols-outlined, .btn .material-icons { font-size: 18px !important; line-height: 1; margin: 0 !important; }
.btn-sm, .btn-group-sm > .btn, .btn-xs { min-height: var(--fnb-h-sm); padding: 4px 12px; font-size: var(--fnb-fs-sm) !important; }
.btn-lg, .btn-group-lg > .btn { min-height: var(--fnb-h-lg); padding: 10px 20px; font-size: var(--fnb-fs-lg) !important; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }

/* primary */
.btn-primary, .btn-primary.disabled, .btn-primary:disabled,
.btn-cta, .btn-cta-orange, .btn-pos-cta, .btn--primary, .btn-step-submit, .btn-step-next, .btn-next, .btn-change-plan, .btn-info,
.fnb-btn-primary {
  background-color: var(--fnb-brand-600) !important;
  border-color: var(--fnb-brand-600) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-cta:hover, .btn-cta-orange:hover, .btn-cta-orange:focus, .btn-pos-cta:hover, .btn--primary:hover,
.btn-step-submit:hover, .btn-step-next:hover, .btn-next:hover, .btn-change-plan:hover, .btn-info:hover, .btn-info:focus, .btn-info:active {
  background-color: var(--fnb-brand-700) !important;
  border-color: var(--fnb-brand-700) !important;
  color: #fff !important;
}
.btn-cta-orange, .btn-cta { border-radius: var(--fnb-r-sm) !important; }
/* secondary (neutral, bordered) */
.btn-secondary, .btn-light, .btn-default, .btn-grey, .btn-back, .btn-step-back, .btn-cancel-edit, .btn-preview, .btn-seed,
.btn-warning, .export_download, .btn.btn-white, .btn-outline-secondary, .btn-outline-dark, .btn-dark {
  background-color: var(--fnb-surface) !important;
  border-color: var(--fnb-border-strong) !important;
  color: var(--fnb-ink-2) !important;
}
.btn-secondary:hover, .btn-light:hover, .btn-default:hover, .btn-grey:hover, .btn-back:hover, .btn-step-back:hover,
.btn-cancel-edit:hover, .btn-preview:hover, .btn-seed:hover, .btn-warning:hover, .export_download:hover, .btn.btn-white:hover,
.btn-outline-secondary:hover, .btn-outline-dark:hover, .btn-dark:hover,
.btn-secondary:focus, .btn-secondary:active, .btn-secondary.active, .btn-outline-secondary.active, .btn-outline-secondary:active,
.btn-light:active, .btn-warning:active, .btn-warning:focus {
  background-color: var(--fnb-hover) !important;
  border-color: var(--fnb-subtle) !important;
  color: var(--fnb-ink) !important;
}
.btn-warning { color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
.btn-warning:hover { background-color: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd) !important; }
/* outline (brand) */
.btn-outline-primary, .btn-outline, .btn-outline-info, .btn-add-question, .btn-add-shift, .btn-label {
  background-color: var(--fnb-surface) !important;
  border-color: var(--fnb-brand-600) !important;
  color: var(--fnb-brand-600) !important;
}
.btn-outline-primary:hover, .btn-outline:hover, .btn-outline-info:hover, .btn-add-question:hover, .btn-add-shift:hover, .btn-label:hover,
.btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary:focus {
  background-color: var(--fnb-brand-50) !important;
  border-color: var(--fnb-brand-700) !important;
  color: var(--fnb-brand-700) !important;
}
/* ghost: icon/text button with no chrome until hover */
.btn-ghost, .btn-text, .btn-action-text, .btn-action-icon, .action-button, .btn-icon:not([class*="btn-primary"]):not([class*="btn-danger"]):not([class*="btn-success"]):not([class*="btn-outline"]):not([class*="btn-secondary"]):not([class*="btn-light"]):not([class*="btn-warning"]):not([class*="btn-info"]) {
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--fnb-ink-2) !important;
}
.btn-ghost:hover, .btn-text:hover, .btn-action-text:hover, .btn-action-icon:hover, .action-button:hover { background-color: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
.action-button, .btn-action-icon { min-width: var(--fnb-h-sm); min-height: var(--fnb-h-sm); padding: 4px !important; }
.btn-icon { padding-left: 10px; padding-right: 10px; }
/* danger */
.btn-danger, .btn-remove-shift, .btn-delete-question {
  background-color: var(--fnb-danger) !important; border-color: var(--fnb-danger) !important; color: #fff !important;
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-remove-shift:hover, .btn-delete-question:hover { background-color: #912018 !important; border-color: #912018 !important; color: #fff !important; }
.btn-outline-danger { background-color: var(--fnb-surface) !important; border-color: var(--fnb-danger-bd) !important; color: var(--fnb-danger) !important; }
.btn-outline-danger:hover, .btn-outline-danger:active, .btn-outline-danger.active { background-color: var(--fnb-danger-bg) !important; border-color: var(--fnb-danger) !important; color: var(--fnb-danger) !important; }
/* success */
.btn-success { background-color: var(--fnb-success) !important; border-color: var(--fnb-success) !important; color: #fff !important; }
.btn-success:hover, .btn-success:focus, .btn-success:active { background-color: #0B5E39 !important; border-color: #0B5E39 !important; color: #fff !important; }
.btn-outline-success, .btn-outline-warning { background-color: var(--fnb-surface) !important; border-color: var(--fnb-success-bd) !important; color: var(--fnb-success) !important; }
.btn-outline-warning { border-color: var(--fnb-warning-bd) !important; color: var(--fnb-warning) !important; }
.btn-outline-success:hover, .btn-outline-success.active, .btn-outline-success:active { background-color: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; }
.btn-outline-warning:hover, .btn-outline-warning.active { background-color: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; }
/* link */
.btn-link { background: transparent !important; border-color: transparent !important; color: var(--fnb-brand-600) !important; padding-left: 4px; padding-right: 4px; font-weight: 600 !important; }
.btn-link:hover { color: var(--fnb-brand-700) !important; text-decoration: underline; }
/* Toggle groups (Email / Phone, view switchers) */
.btn-group > .btn { border-radius: 0 !important; }
.btn-group > .btn:first-child { border-top-left-radius: var(--fnb-r-sm) !important; border-bottom-left-radius: var(--fnb-r-sm) !important; }
.btn-group > .btn:last-child { border-top-right-radius: var(--fnb-r-sm) !important; border-bottom-right-radius: var(--fnb-r-sm) !important; }
.btn-group > .btn:only-of-type { border-radius: var(--fnb-r-sm) !important; }
/* Search field + button: two separate rounded controls, not a fused pill */
.input-group > .input-group-append > .btn, .input-group > .input-group-append > button {
  border-radius: var(--fnb-r-sm) !important; margin-left: var(--fnb-s2) !important; min-width: var(--fnb-h-md);
}
.input-group > .form-control:not(:last-child):has(+ .input-group-append > .btn) { border-radius: var(--fnb-r-sm) !important; }
.bootstrap-table .fixed-table-pagination .page-list .btn, .bootstrap-table .fixed-table-pagination .page-list .btn-group > .btn { min-height: var(--fnb-h-md); padding: 8px 14px; border-radius: var(--fnb-r-sm) !important; }
/* List / tree view switchers */
.view-toggle-btn { min-height: var(--fnb-h-md) !important; height: auto !important; border-radius: var(--fnb-r-sm) !important; font-weight: 600 !important; background: transparent !important; color: var(--fnb-ink-2) !important; box-shadow: none !important; }
.view-toggle-btn.active { background: var(--fnb-surface) !important; color: var(--fnb-brand-600) !important; border: 1px solid var(--fnb-border-strong) !important; }
/* Row "more" menus and drawer close controls: 32px ghost icon buttons */
.table td a[data-toggle="dropdown"], .table td a[id^="dropdownMenuLink"], #cancelButton, .drawer [id*="cancel"][role="button"], .drawer .close {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: var(--fnb-h-sm); min-height: var(--fnb-h-sm); padding: 4px; border-radius: var(--fnb-r-sm) !important;
  font-weight: 600; color: var(--fnb-ink-2); background: transparent; cursor: pointer;
}
.table td a[data-toggle="dropdown"]:hover, #cancelButton:hover { background: var(--fnb-hover); }
.btn-group-toggle > .btn.active, .btn-group > .btn.active { background-color: var(--fnb-brand-50) !important; border-color: var(--fnb-brand-600) !important; color: var(--fnb-brand-600) !important; }
.btn .spinner-border { width: 1em; height: 1em; border-width: .15em; }
.close, button.close { color: var(--fnb-muted); opacity: 1; text-shadow: none; font-weight: 400; }
.close:hover { color: var(--fnb-ink); opacity: 1; }

/* 6. CARDS + ALERTS ======================================================== */
.card {
  background: var(--fnb-surface);
  border: 1px solid var(--fnb-border) !important;
  border-radius: var(--fnb-r-md) !important;
  box-shadow: var(--fnb-e1) !important;
  margin-bottom: var(--fnb-s5);
}
.card:hover { box-shadow: var(--fnb-e1) !important; }
.card a.card:hover, a.card:hover, .card.card-hover:hover { box-shadow: var(--fnb-e2) !important; }
.card .card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--fnb-border) !important;
  min-height: 56px;
  padding: var(--fnb-s3) var(--fnb-s5) !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--fnb-s2) var(--fnb-s3);
}
.card .card-header h4, .card .card-header h3, .card .card-header h5, .card .card-header .card-title {
  font-size: var(--fnb-fs-lg) !important;
  font-weight: 600 !important;
  color: var(--fnb-ink) !important;
  letter-spacing: -.005em;
  line-height: 1.35;
  margin: 0;
  text-transform: none;
}
.card .card-header .card-header-action, .card .card-header .card-header-form { margin-left: auto; }
.card .card-body { padding: var(--fnb-s5); color: var(--fnb-ink-2); }
.card .card-header + .card-body { padding-top: var(--fnb-s4); }
.card .card-footer { background: transparent !important; border-top: 1px solid var(--fnb-border); padding: var(--fnb-s4) var(--fnb-s5); }
.card .card-body p { color: var(--fnb-ink-2); line-height: 1.55; }
p, .card p, .section-lead { line-height: 1.55; }
.card.card-primary, .card.card-success, .card.card-danger, .card.card-warning, .card.card-info, .card.card-secondary { border-top: 1px solid var(--fnb-border) !important; }
/* KPI / statistic cards */
/* Dashboard labels: calm sentence-case headings, no tracking */
.main-content :is(h1, h2, h3, h4, h5, h6, p, span, div, label, a, td, th, li, small, strong) { letter-spacing: normal; }
.dashboard_large_label { font-size: var(--fnb-fs-lg) !important; font-weight: 600 !important; color: var(--fnb-ink) !important; line-height: 1.35; }
.dashboard_small_label, .dashboard_extra_small_label { font-size: var(--fnb-fs-sm) !important; font-weight: 500 !important; color: var(--fnb-muted) !important; }
.dashboard_label, .card .counter { font-size: var(--fnb-fs-2xl) !important; font-weight: 700 !important; color: var(--fnb-ink) !important; font-variant-numeric: tabular-nums; }
.dashboard_extra_small_label { border-radius: var(--fnb-r-sm) !important; background: var(--fnb-canvas) !important; color: var(--fnb-ink-2) !important; }
/* KPI icon tiles: one calm tile style instead of four solid colours */
.provider_a, .provider_a[class*="bg-"] {
  width: 44px !important; height: 44px !important; min-width: 44px; border-radius: var(--fnb-r-md) !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--fnb-brand-50) !important; color: var(--fnb-brand-600) !important; box-shadow: none !important;
}
.provider_a i, .provider_a .material-icons, .provider_a .material-symbols-outlined { color: var(--fnb-brand-600) !important; font-size: 22px !important; }
.card.card-statistic-1 .card-icon, .card.card-statistic-2 .card-icon {
  width: 48px; height: 48px; line-height: 48px; margin: var(--fnb-s4); border-radius: var(--fnb-r-md) !important;
  background: var(--fnb-brand-50) !important; box-shadow: none !important;
}
.card.card-statistic-1 .card-icon i, .card.card-statistic-2 .card-icon i,
.card.card-statistic-1 .card-icon .material-symbols-outlined { color: var(--fnb-brand-600) !important; font-size: 22px; }
.card.card-statistic-1 .card-header h4, .card.card-statistic-2 .card-header h4 { font-size: var(--fnb-fs-sm) !important; font-weight: 500 !important; color: var(--fnb-muted) !important; }
.card.card-statistic-1 .card-body, .card.card-statistic-2 .card-body { font-size: var(--fnb-fs-2xl); font-weight: 700; color: var(--fnb-ink); padding-top: 0; }
.card.card-statistic-1 .card-header, .card.card-statistic-2 .card-header { border: 0 !important; min-height: 0; padding-bottom: 0 !important; }

.alert {
  display: flex; align-items: flex-start; gap: var(--fnb-s3);
  border-radius: var(--fnb-r-md) !important;
  border: 1px solid var(--fnb-info-bd) !important;
  background: var(--fnb-info-bg) !important;
  color: var(--fnb-ink-2) !important;
  padding: var(--fnb-s3) var(--fnb-s4) !important;
  font-size: var(--fnb-fs-md);
  line-height: 1.5;
  box-shadow: none !important;
}
.alert.d-block, .alert.fade:not(.d-flex) { display: block; }
.alert > i:first-child, .alert > .fas:first-child, .alert > .material-symbols-outlined:first-child { margin-top: 2px; flex: none; }
.alert .alert-title, .alert strong, .alert b, .alert h4, .alert h5, .alert h6 { color: var(--fnb-ink) !important; }
.alert a:not(.btn), .alert .alert-link { color: var(--fnb-brand-700) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.alert p, .alert div, .alert span, .alert li, .alert small { color: inherit; }
.alert-primary, .alert-info, .alert-light, .alert-secondary { background: var(--fnb-info-bg) !important; border-color: var(--fnb-info-bd) !important; }
.alert-primary > i, .alert-info > i, .alert-info .fa-lightbulb { color: var(--fnb-info) !important; }
.alert-success { background: var(--fnb-success-bg) !important; border-color: var(--fnb-success-bd) !important; }
.alert-success > i { color: var(--fnb-success) !important; }
.alert-warning { background: var(--fnb-warning-bg) !important; border-color: var(--fnb-warning-bd) !important; }
.alert-warning > i { color: var(--fnb-warning) !important; }
.alert-danger { background: var(--fnb-danger-bg) !important; border-color: var(--fnb-danger-bd) !important; }
.alert-danger > i { color: var(--fnb-danger) !important; }
.alert-light, .alert-secondary { background: var(--fnb-neutral-bg) !important; border-color: var(--fnb-neutral-bd) !important; }
.alert .close { color: var(--fnb-muted) !important; opacity: 1; text-shadow: none; }
.alert.alert-has-icon .alert-icon { color: inherit; }
/* Help strip "Do czego to sluzy": readable tint instead of white on cyan. */
.panel-help-row .alert.panel-help, .alert.panel-help {
  background: var(--fnb-brand-50) !important;
  border-color: var(--fnb-brand-100) !important;
  color: var(--fnb-ink-2) !important;
  font-size: var(--fnb-fs-md);
}
.alert.panel-help > i, .alert.panel-help .fa-lightbulb { color: var(--fnb-brand-600) !important; }
.alert.panel-help strong { color: var(--fnb-ink) !important; }
.alert.panel-help .panel-help-tip { opacity: 1; color: var(--fnb-muted); }
.panel-help-close { color: var(--fnb-muted) !important; opacity: 1 !important; }
/* Solid brand surfaces (filter drawer headers, hero strips): white on the
   AA-safe blue, headings included. */
.bg-primary, .bg-new-primary, .bg-info { background-color: var(--fnb-brand-600) !important; color: #fff !important; }
.bg-primary :where(h1, h2, h3, h4, h5, h6, p, span, label, small, a:not(.btn), i),
.bg-new-primary :where(h1, h2, h3, h4, h5, h6, p, span, label, small, a:not(.btn), i),
.bg-info :where(h1, h2, h3, h4, h5, h6, p, span, label, small, a:not(.btn), i),
.text-white :is(h1, h2, h3, h4, h5, h6) { color: #fff !important; }
:is(.bg-primary, .bg-new-primary, .bg-info) :is(.bg-white, .bg-light),
:is(.bg-primary, .bg-new-primary, .bg-info) :is(.bg-white, .bg-light) * { color: var(--fnb-brand-600) !important; }
.bg-success { background-color: var(--fnb-success) !important; }
.bg-danger { background-color: var(--fnb-danger) !important; }
.bg-warning, .bg-warning.text-white { background-color: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; }
.bg-warning .text-white { color: var(--fnb-warning) !important; }
.bg-light { background-color: var(--fnb-canvas) !important; }

/* 7. FORMS, BADGES, STATUS CHIPS =========================================== */
label, .form-label, .col-form-label, .control-label, .heading_lable_form {
  font-size: var(--fnb-fs-sm) !important;
  font-weight: 600 !important;
  color: var(--fnb-ink-2) !important;
  letter-spacing: 0 !important;
  text-transform: none;
  margin-bottom: 6px;
}
.form-check-label, .custom-control-label, .form-check label, .checkbox label, .custom-switch-description { font-weight: 400 !important; font-size: var(--fnb-fs-md) !important; margin-bottom: 0; }
.form-group { margin-bottom: var(--fnb-s4); }
.form-control, .custom-select, select.form-control, .selectric, input.form-control, textarea.form-control {
  min-height: var(--fnb-h-md);
  height: auto;
  padding: 8px 12px;
  font-size: var(--fnb-fs-md) !important;
  line-height: 1.4;
  color: var(--fnb-ink);
  background-color: var(--fnb-surface) !important;
  border: 1px solid var(--fnb-border-strong) !important;
  border-radius: var(--fnb-r-sm) !important;
  box-shadow: none;
  transition: border-color var(--fnb-t-fast) var(--fnb-ease), box-shadow var(--fnb-t-fast) var(--fnb-ease);
}
textarea.form-control { min-height: 88px; }
.form-control-sm { min-height: var(--fnb-h-sm); padding: 4px 10px; font-size: var(--fnb-fs-sm) !important; }
.form-control::placeholder { color: #6B7686; opacity: 1; }
.form-control:hover { border-color: var(--fnb-subtle) !important; }
.form-control:focus, .custom-select:focus {
  border-color: var(--fnb-brand) !important;
  box-shadow: var(--fnb-focus) !important;
  outline: none;
  background-color: var(--fnb-surface) !important;
}
.form-control:disabled, .form-control[readonly] { background-color: var(--fnb-canvas) !important; color: var(--fnb-muted); }
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: var(--fnb-danger) !important; }
.invalid-feedback, .text-danger.small, .error { color: var(--fnb-danger); font-size: var(--fnb-fs-sm); }
.form-text, small.form-text, .form-text.text-muted, .help-block { color: var(--fnb-muted) !important; font-size: var(--fnb-fs-sm); }
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group-text {
  background: var(--fnb-canvas) !important; border: 1px solid var(--fnb-border-strong) !important; color: var(--fnb-muted) !important;
  border-radius: var(--fnb-r-sm); font-size: var(--fnb-fs-md); min-height: var(--fnb-h-md);
}
.input-group-prepend .input-group-text { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; border-right: 0 !important; }
.input-group-append .input-group-text, .input-group-append .btn { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group-prepend .btn { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group > .input-group-append > .btn { min-height: var(--fnb-h-md); }
select.form-control, .custom-select { padding-right: 32px; }
/* Checkbox / radio: brand colour, 16px */
input[type="checkbox"], input[type="radio"] { accent-color: var(--fnb-brand-600); }
.custom-control-input:checked ~ .custom-control-label::before,
.custom-switch-input:checked ~ .custom-switch-indicator { background-color: var(--fnb-brand-600) !important; border-color: var(--fnb-brand-600) !important; }
.custom-switch-indicator { background: var(--fnb-border-strong); }
/* The switch is an inline-flex label: with a long description beside it the
   flexbox shrank the knob's track to a sliver (8-13px instead of 36px) and the
   text ran over the knob (Website controls, 2026-10-18). The track never
   shrinks and the text wraps beside it; in a form the whole label is a 44px
   tap target. */
.custom-switch { align-items: flex-start; max-width: 100%; cursor: pointer; }
.form-group > .custom-switch { min-height: 44px; padding-top: 2px; }
.custom-switch-indicator { flex: 0 0 auto; margin-top: 1px; }
.custom-switch-description { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* select2 */
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: var(--fnb-h-md) !important;
  border: 1px solid var(--fnb-border-strong) !important;
  border-radius: var(--fnb-r-sm) !important;
  background: var(--fnb-surface) !important;
  display: flex; align-items: center; flex-wrap: wrap;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.4 !important; padding: 8px 32px 8px 12px !important; color: var(--fnb-ink) !important; font-size: var(--fnb-fs-md);
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; top: 0 !important; right: 6px !important; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #6B7686 !important; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--fnb-brand) !important; box-shadow: var(--fnb-focus) !important; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--fnb-brand-50) !important; border: 1px solid var(--fnb-brand-100) !important; color: var(--fnb-brand-700) !important;
  border-radius: var(--fnb-r-full) !important; padding: 2px 10px !important; font-size: var(--fnb-fs-sm); margin-top: 6px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--fnb-brand-700) !important; }
.select2-dropdown { border: 1px solid var(--fnb-border) !important; border-radius: var(--fnb-r-sm) !important; box-shadow: var(--fnb-e3); overflow: hidden; }
.select2-container--default .select2-results__option { padding: 8px 12px; font-size: var(--fnb-fs-md); color: var(--fnb-ink-2); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--fnb-brand-600) !important; color: #fff !important; }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--fnb-brand-50); color: var(--fnb-brand-700); }
.select2-search--dropdown .select2-search__field { border: 1px solid var(--fnb-border-strong) !important; border-radius: var(--fnb-r-sm); min-height: 36px; padding: 6px 10px; }
/* Native file input: styled button; fnb-ui.js swaps the browser's
   English "Choose File / No file chosen" for a translated control. */
input[type="file"].form-control, input[type="file"] { font-size: var(--fnb-fs-sm); color: var(--fnb-muted); }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 14px; border: 1px solid var(--fnb-border-strong); border-radius: var(--fnb-r-sm);
  background: var(--fnb-surface); color: var(--fnb-ink-2); font: 600 13px/1.2 var(--fnb-font); cursor: pointer;
  transition: background-color var(--fnb-t-fast) var(--fnb-ease);
}
input[type="file"]::file-selector-button:hover { background: var(--fnb-hover); }
input[type="file"].form-control { padding: 4px 6px; }
.fnb-file { position: relative; display: flex; align-items: center; gap: var(--fnb-s3); flex-wrap: wrap; min-height: var(--fnb-h-md);
  padding: 4px; border: 1px dashed var(--fnb-border-strong); border-radius: var(--fnb-r-sm); background: var(--fnb-surface); }
.fnb-file:hover { border-color: var(--fnb-subtle); background: var(--fnb-canvas); }
.fnb-file:focus-within { border-color: var(--fnb-brand); box-shadow: var(--fnb-focus); }
.fnb-file > input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; font-size: 0; }
.fnb-file__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--fnb-border-strong); border-radius: var(--fnb-r-sm);
  background: var(--fnb-surface); color: var(--fnb-ink-2); font-weight: 600; font-size: var(--fnb-fs-sm); pointer-events: none; }
.fnb-file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fnb-muted); font-size: var(--fnb-fs-sm); pointer-events: none; flex: 1 1 0; }
.fnb-file.has-file .fnb-file__name { color: var(--fnb-ink); }
/* FilePond / Dropzone frames */
.filepond--panel-root { background: var(--fnb-canvas) !important; border: 1px dashed var(--fnb-border-strong); border-radius: var(--fnb-r-md) !important; }
.filepond--drop-label { color: var(--fnb-muted) !important; font-size: var(--fnb-fs-sm); }
.dropzone { border: 1px dashed var(--fnb-border-strong) !important; border-radius: var(--fnb-r-md) !important; background: var(--fnb-canvas) !important; }

/* Badges: soft tints, dark text. Counters on the bell stay solid. */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px !important;
  border-radius: var(--fnb-r-full) !important;
  font-size: var(--fnb-fs-xs) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  box-shadow: none;
}
.badge-primary, .badge-info { background: var(--fnb-info-bg) !important; color: var(--fnb-info) !important; border-color: var(--fnb-info-bd); }
.badge-success { background: var(--fnb-success-bg) !important; color: var(--fnb-success) !important; border-color: var(--fnb-success-bd); }
.badge-warning, .badge-orange { background: var(--fnb-warning-bg) !important; color: var(--fnb-warning) !important; border-color: var(--fnb-warning-bd); }
.badge-danger { background: var(--fnb-danger-bg) !important; color: var(--fnb-danger) !important; border-color: var(--fnb-danger-bd); }
.badge-secondary, .badge-light, .badge-dark { background: var(--fnb-neutral-bg) !important; color: var(--fnb-neutral) !important; border-color: var(--fnb-neutral-bd); }
.navbar .badge-danger, .nav-link .badge-danger, .chat-sidebar-unread-badge, .badge.badge-counter, .badge-pill.badge-danger,
.sidebar-menu .badge-danger, [id*="notification-count"], [id*="unread"].badge {
  background: var(--fnb-danger) !important; color: #fff !important; border-color: var(--fnb-danger) !important;
  padding: 1px 6px !important; min-width: 18px; justify-content: center; font-size: 11px !important;
}
.chat-sidebar-unread-badge { border-radius: var(--fnb-r-full); }
/* Booking-status chips (.tag + bg-emerald-*, rendered by the models) */
.tag {
  display: inline-flex !important; align-items: center; gap: 6px;
  padding: 3px 10px !important;
  border-radius: var(--fnb-r-full) !important;
  font-size: var(--fnb-fs-xs) !important; font-weight: 600 !important; line-height: 1.4 !important;
  white-space: nowrap; border: 1px solid transparent !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tag.bg-emerald-grey { background: var(--fnb-st-pending-bg) !important; color: var(--fnb-st-pending) !important; }
.tag.bg-emerald-100 { background: var(--fnb-st-awaiting-bg) !important; color: var(--fnb-st-awaiting) !important; }
.tag.bg-emerald-warning { background: var(--fnb-st-awaiting-bg) !important; color: var(--fnb-st-awaiting) !important; }
.tag.bg-emerald-purple { background: var(--fnb-st-confirmed-bg) !important; color: var(--fnb-st-confirmed) !important; }
.tag.bg-emerald-blue { background: var(--fnb-st-rescheduled-bg) !important; color: var(--fnb-st-rescheduled) !important; }
.tag.bg-emerald-success { background: var(--fnb-st-completed-bg) !important; color: var(--fnb-st-completed) !important; }
.tag.bg-emerald-danger { background: var(--fnb-st-cancelled-bg) !important; color: var(--fnb-st-cancelled) !important; }
/* Same palette for the emerald utility classes used as text/labels elsewhere */
.text-emerald-success { color: var(--fnb-success) !important; }
.text-emerald-danger { color: var(--fnb-danger) !important; }
.text-emerald-warning { color: var(--fnb-warning) !important; }
.text-emerald-blue { color: var(--fnb-info) !important; }
.text-emerald-grey { color: var(--fnb-neutral) !important; }
.text-emerald-purple { color: var(--fnb-st-rescheduled) !important; }
.bg-emerald-success:not(.tag):not(.filters_table) { background-color: var(--fnb-success-bg) !important; }
.bg-emerald-danger:not(.tag):not(.filters_table) { background-color: var(--fnb-danger-bg) !important; }
.bg-emerald-warning:not(.tag):not(.filters_table) { background-color: var(--fnb-warning-bg) !important; }
.bg-emerald-blue:not(.tag):not(.filters_table) { background-color: var(--fnb-info-bg) !important; }
.bg-emerald-grey:not(.tag):not(.filters_table) { background-color: var(--fnb-neutral-bg) !important; }
/* Filter pills above tables (admin partners/services/reception): one calm style */
.filters_table, .filters_table.tag, .btn.filters_table, .btn.tag.filters_table.filters_table {
  display: inline-flex !important; align-items: center; min-height: var(--fnb-h-md); padding: 8px 16px !important;
  border-radius: var(--fnb-r-sm) !important; font-size: var(--fnb-fs-md) !important; font-weight: 600 !important;
  background: var(--fnb-surface) !important; border: 1px solid var(--fnb-border-strong) !important; color: var(--fnb-ink-2) !important;
  box-shadow: none !important; cursor: pointer;
}
.filters_table.tag::before { display: none !important; }
.filters_table:hover, .filters_table.tag:hover { background: var(--fnb-hover) !important; }
.btn.tag.filters_table.active-filter, .btn.filters_table.filters_table.active-filter, .filters_table.active-filter, .filters_table.active,
.filters_table.bg-emerald-success.active-filter, .filters_table.bg-emerald-danger.active-filter, .filters_table.bg-emerald-warning.active-filter, .filters_table.bg-emerald-blue.active-filter {
  background: var(--fnb-brand-600) !important; border-color: var(--fnb-brand-600) !important; color: #fff !important;
}
/* Progress */
.progress { height: 8px; border-radius: var(--fnb-r-full); background: var(--fnb-neutral-bg); box-shadow: none; }
.progress-bar { background-color: var(--fnb-brand-600); border-radius: var(--fnb-r-full); }

/* 8. TABS, BREADCRUMBS, PAGINATION, DROPDOWNS ============================== */
.nav-tabs { border-bottom: 1px solid var(--fnb-border); gap: var(--fnb-s1); }
.nav-tabs .nav-link {
  border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  color: var(--fnb-muted) !important; font-weight: 600; font-size: var(--fnb-fs-md); padding: 10px 14px; background: transparent !important;
}
.nav-tabs .nav-link:hover { color: var(--fnb-ink) !important; border-bottom-color: var(--fnb-border-strong) !important; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: var(--fnb-brand-600) !important; border-bottom-color: var(--fnb-brand-600) !important; }
.nav-pills { gap: var(--fnb-s2); }
.nav-pills .nav-link {
  border-radius: var(--fnb-r-sm) !important; color: var(--fnb-ink-2) !important; font-weight: 600; font-size: var(--fnb-fs-md);
  padding: 8px 14px; background: transparent; box-shadow: none !important; min-height: 36px;
}
.nav-pills .nav-link:hover { background: var(--fnb-hover); color: var(--fnb-ink) !important; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--fnb-brand-600) !important; color: #fff !important; }
.nav-pills .nav-link.active * { color: #fff !important; }
.pagination { gap: var(--fnb-s1); margin: 0; flex-wrap: wrap; }
.page-item .page-link, .pagination .page-link {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--fnb-border) !important; border-radius: var(--fnb-r-sm) !important;
  background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important;
  font-size: var(--fnb-fs-sm); font-weight: 600; margin: 0 !important; box-shadow: none !important;
}
.page-item .page-link:hover { background: var(--fnb-hover) !important; }
.page-item.active .page-link { background: var(--fnb-brand-600) !important; border-color: var(--fnb-brand-600) !important; color: #fff !important; }
.page-item.disabled .page-link { color: var(--fnb-muted) !important; background: var(--fnb-canvas) !important; }
.dropdown-menu {
  border: 1px solid var(--fnb-border) !important;
  border-radius: var(--fnb-r-md) !important;
  box-shadow: var(--fnb-e3) !important;
  padding: 6px !important;
  font-size: var(--fnb-fs-md);
  min-width: 200px;
}
.dropdown-menu .dropdown-item {
  display: flex; align-items: center; gap: var(--fnb-s2);
  border-radius: 6px; padding: 8px 12px !important;
  font-size: var(--fnb-fs-md) !important; font-weight: 500; color: var(--fnb-ink-2) !important; line-height: 1.35;
  white-space: normal;
}
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus { background: var(--fnb-hover) !important; color: var(--fnb-ink) !important; }
.dropdown-menu .dropdown-item.active, .dropdown-menu .dropdown-item:active { background: var(--fnb-brand-50) !important; color: var(--fnb-brand-700) !important; }
.dropdown-menu .dropdown-item.text-danger { color: var(--fnb-danger) !important; }
.dropdown-menu .dropdown-item.text-primary { color: var(--fnb-brand-600) !important; font-weight: 600; }
.dropdown-menu .dropdown-item i { width: 16px; color: inherit; margin: 0 !important; }
.dropdown-menu .dropdown-header { font-size: var(--fnb-fs-xs); font-weight: 600; color: var(--fnb-muted); letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; }
.dropdown-divider { border-top-color: var(--fnb-border); margin: 4px 0; }
.tooltip-inner { background: var(--fnb-ink); color: #fff; border-radius: 6px; font-size: var(--fnb-fs-sm); padding: 6px 10px; }
.popover { border-color: var(--fnb-border); border-radius: var(--fnb-r-md); box-shadow: var(--fnb-e3); }

/* 9. MODALS + TOASTS ======================================================= */
.modal-content { border: 0 !important; border-radius: var(--fnb-r-lg) !important; box-shadow: var(--fnb-e3) !important; overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--fnb-border) !important; padding: var(--fnb-s4) var(--fnb-s5) !important; align-items: center; }
.modal-title { font-size: var(--fnb-fs-xl) !important; font-weight: 600 !important; color: var(--fnb-ink) !important; }
.modal-body { padding: var(--fnb-s5) !important; color: var(--fnb-ink-2); }
.modal-footer { border-top: 1px solid var(--fnb-border) !important; padding: var(--fnb-s3) var(--fnb-s5) !important; gap: var(--fnb-s2); background: var(--fnb-surface); }
.modal-footer > * { margin: 0 !important; }
.modal-backdrop.show { opacity: .45; background: var(--fnb-ink); }
.modal-header .close { padding: 8px !important; margin: -8px -8px -8px auto !important; width: 40px; height: 40px; border-radius: 50%; }
.modal-header .close:hover { background: var(--fnb-hover); }
/* iziToast */
.iziToast {
  border-radius: var(--fnb-r-md) !important; box-shadow: var(--fnb-e3) !important;
  background: var(--fnb-surface) !important; border-left: 4px solid var(--fnb-brand-600) !important;
  padding: 10px 44px 10px 14px !important; min-height: 52px;
}
.iziToast::after { display: none !important; }
.iziToast > .iziToast-body .iziToast-title { color: var(--fnb-ink) !important; font-weight: 600 !important; font-size: var(--fnb-fs-md) !important; }
.iziToast > .iziToast-body .iziToast-message { color: var(--fnb-ink-2) !important; font-size: var(--fnb-fs-md) !important; }
.iziToast.iziToast-color-green { border-left-color: var(--fnb-success) !important; }
.iziToast.iziToast-color-red { border-left-color: var(--fnb-danger) !important; }
.iziToast.iziToast-color-orange, .iziToast.iziToast-color-yellow { border-left-color: #D18100 !important; }
.iziToast.iziToast-color-blue { border-left-color: var(--fnb-info) !important; }
.iziToast > .iziToast-close { opacity: .7; }
/* SweetAlert2 */
.swal2-popup { border-radius: var(--fnb-r-lg) !important; padding: var(--fnb-s5) !important; font-family: var(--fnb-font) !important; }
.swal2-title { color: var(--fnb-ink) !important; font-size: var(--fnb-fs-2xl) !important; font-weight: 700 !important; }
.swal2-html-container, .swal2-content { color: var(--fnb-ink-2) !important; font-size: var(--fnb-fs-md) !important; }
.swal2-actions { gap: var(--fnb-s2); }
.swal2-styled { margin: 0 !important; border-radius: var(--fnb-r-sm) !important; font-weight: 600 !important; font-size: var(--fnb-fs-md) !important; min-height: var(--fnb-h-md); padding: 8px 18px !important; box-shadow: none !important; }
.swal2-styled.swal2-confirm { background: var(--fnb-brand-600) !important; border: 1px solid var(--fnb-brand-600) !important; color: #fff !important; }
.swal2-styled.swal2-cancel, .swal2-styled.swal2-deny { background: var(--fnb-surface) !important; color: var(--fnb-ink-2) !important; border: 1px solid var(--fnb-border-strong) !important; }
.swal2-styled:focus-visible { box-shadow: var(--fnb-focus) !important; }

/* 10. TABLES =============================================================== */
.table {
  color: var(--fnb-ink-2);
  font-size: var(--fnb-fs-md) !important;
  margin-bottom: 0;
  background: var(--fnb-surface);
}
.table:not(.table-sm) td, .table:not(.table-sm) th,
.table:not(.table-sm) tbody td, .bootstrap-table .fixed-table-container .table td {
  padding: 12px 16px !important;
  height: auto !important;
  vertical-align: middle !important;
  font-size: var(--fnb-fs-md) !important;
  color: var(--fnb-ink-2);
  border-top: 0 !important;
  border-bottom: 1px solid var(--fnb-border) !important;
  line-height: 1.45;
}
.table td *:not(.badge):not(.tag):not(.btn):not(i):not(.material-symbols-outlined):not(.material-icons):not(.text-danger):not(.text-success):not(.text-primary):not(a) { font-size: inherit; }
.table td small, .table td .small, .table td .text-muted, .table td .text-small { font-size: var(--fnb-fs-sm) !important; color: var(--fnb-muted) !important; }
.table thead th, .table:not(.table-sm) thead th, .bootstrap-table .fixed-table-container .table thead th {
  background: #F7F9FC !important;
  color: var(--fnb-ink-2) !important;
  font-size: var(--fnb-fs-sm) !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--fnb-border) !important;
  white-space: nowrap;
  vertical-align: middle !important;
  padding: 10px 16px !important;
}
.bootstrap-table .fixed-table-container .table thead th .th-inner { padding: 0 !important; white-space: nowrap; line-height: 1.3; }
.bootstrap-table .fixed-table-container .table thead th .sortable { padding-right: 22px !important; background-position: right center; }
.table-striped tbody tr:nth-of-type(odd) { background-color: transparent; }
.table-hover tbody tr:hover, .table tbody tr:hover { background-color: #F8FAFD !important; }
.table-bordered, .table-bordered td, .table-bordered th, .table-borderd td, .table-borderd th { border-left: 0 !important; border-right: 0 !important; }
.table tbody tr:last-child td { border-bottom: 0 !important; }
.table td a:not(.btn) { color: var(--fnb-brand-600); font-weight: 500; }
.table td img.rounded-circle, .table td .avatar img, .table td img[class*="avatar"] { width: 36px; height: 36px; object-fit: cover; }
.table td .btn, .table td .action-button { margin: 2px; }
/* bootstrap-table frame: the card already frames it */
.bootstrap-table .fixed-table-container,
.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer) {
  border: 1px solid var(--fnb-border) !important;
  border-radius: var(--fnb-r-md) !important;
  overflow: hidden;
  background: var(--fnb-surface);
}
.bootstrap-table .fixed-table-container .table { border: 0 !important; }
.bootstrap-table .fixed-table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fnb-s2); margin-bottom: var(--fnb-s3); }
.bootstrap-table .fixed-table-toolbar::after { display: none; }
.bootstrap-table .fixed-table-toolbar .bs-bars, .bootstrap-table .fixed-table-toolbar .search, .bootstrap-table .fixed-table-toolbar .columns { margin: 0 !important; float: none !important; }
.bootstrap-table .fixed-table-toolbar .search { margin-left: auto !important; }
.bootstrap-table .fixed-table-toolbar .search .form-control { min-width: 220px; }
.bootstrap-table .fixed-table-toolbar .columns .btn, .bootstrap-table .fixed-table-toolbar .btn-group > .btn { min-height: var(--fnb-h-md); }
.bootstrap-table .fixed-table-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--fnb-s3); padding-top: var(--fnb-s3); }
.bootstrap-table .fixed-table-pagination::after { display: none; }
.bootstrap-table .fixed-table-pagination > .pagination-detail, .bootstrap-table .fixed-table-pagination > .pagination { float: none !important; margin: 0 !important; }
.bootstrap-table .fixed-table-pagination .pagination-detail { color: var(--fnb-muted); font-size: var(--fnb-fs-sm); display: flex; align-items: center; gap: var(--fnb-s2); flex-wrap: wrap; }
.bootstrap-table .fixed-table-pagination .pagination-detail .page-list .btn { min-height: 32px; }
.bootstrap-table .fixed-table-pagination ul.pagination { display: flex; }
/* Sticky header: the body scrolls inside a viewport-tall frame on desktop,
   so the column titles stay visible on long lists. */
@media (min-width: 768px) {
  .bootstrap-table .fixed-table-container:not(.fixed-height) .fixed-table-body { max-height: max(420px, calc(100vh - 180px)); }
  .bootstrap-table .fixed-table-container .fixed-table-body thead th,
  .table.fnb-sticky thead th { position: sticky; top: 0; z-index: 2; }
}
/* Numbers right-aligned, dates/times never wrap (classes set by fnb-ui.js
   from the column's own content). */
.table th.fnb-num, .table td.fnb-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table th.fnb-num .th-inner { justify-content: flex-end; text-align: right; }
.table td.fnb-nowrap, .table th.fnb-nowrap { white-space: nowrap; }
@media (min-width: 768px) {
  .table td.fnb-wide, .table th.fnb-wide { min-width: 260px; max-width: 480px; white-space: normal; }
  .table td.fnb-cell-actions { white-space: nowrap; }
  .table td.fnb-cell-actions > .btn + .btn, .table td.fnb-cell-actions > a + a, .table td.fnb-cell-actions > button + button { margin-left: 4px; }
}
/* Loading: skeleton rows instead of "Loading, please wait" */
.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
  align-items: flex-start !important; justify-content: stretch !important;
  background-color: var(--fnb-surface) !important;
}
.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.open,
.fnb-skeleton-rows {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 100%),
    repeating-linear-gradient(180deg, transparent 0 18px, #EDF1F6 18px 30px, transparent 30px 56px) !important;
  background-size: 40% 100%, calc(100% - 32px) 100% !important;
  background-position: -40% 0, 16px 0 !important;
  background-repeat: no-repeat !important;
  animation: fnb-shimmer 1.2s linear infinite;
}
.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap { opacity: 0; } /* still announced by screen readers */
/* While the first page is loading the table has no rows yet: never show the
   empty state ("nothing found") under the skeleton (UI/UX audit 2026-10-14, U-006). */
.bootstrap-table .fixed-table-body .fixed-table-loading.open ~ table tr.no-records-found { visibility: hidden; }
@keyframes fnb-shimmer { from { background-position: -40% 0, 16px 0; } to { background-position: 140% 0, 16px 0; } }
/* Empty state (replaces the bare "No matching records found" row) */
.table tr.no-records-found td, .table tbody tr.no-records-found > td {
  padding: 48px 24px !important;
  text-align: center !important;
  color: var(--fnb-ink) !important;
  font-weight: 600;
  font-size: var(--fnb-fs-lg) !important;
  border-bottom: 0 !important;
  background: var(--fnb-surface) !important;
}
.table tr.no-records-found td::before {
  content: "";
  display: block;
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--fnb-brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230258C4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.table tr.no-records-found:hover { background: transparent !important; }
.fnb-empty__hint { display: block; margin-top: 6px; font-weight: 400; font-size: var(--fnb-fs-md); color: var(--fnb-muted); }
/* Designed empty state block: backend/shared/empty_state.php and the
   data-fnb-empty-* tables (fnb-format.js). Icon, title, one line, one action. */
.fnb-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  max-width: 520px; margin: 0 auto; padding: 40px 16px; text-align: center; white-space: normal;
}
.fnb-empty__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 8px; border-radius: var(--fnb-r-lg);
  background: var(--fnb-brand-50); color: var(--fnb-brand-600) !important; font-size: 28px !important;
}
.fnb-empty__title { margin: 0; font-size: var(--fnb-fs-lg) !important; font-weight: 600 !important; color: var(--fnb-ink) !important; line-height: 1.35; }
.fnb-empty__text { margin: 0; font-size: var(--fnb-fs-md) !important; font-weight: 400; color: var(--fnb-muted) !important; line-height: 1.55; }
.fnb-empty__action { margin-top: 14px; }
.fnb-empty--compact { padding: 20px 12px; }
.fnb-empty--compact .fnb-empty__icon { width: 40px; height: 40px; font-size: 22px !important; margin-bottom: 4px; }
/* Inside a table row the row's own icon (td::before) is the illustration */
.table tr.no-records-found td .fnb-empty--table { padding: 0; }
.table tr.no-records-found td:has(.fnb-empty--table) { font-size: var(--fnb-fs-md) !important; }
/* Bootstrap-table's own card view (some tables opt into it) */
.bootstrap-table .card-views .card-view { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bootstrap-table .card-views .card-view-title { color: var(--fnb-muted); font-weight: 600; font-size: var(--fnb-fs-sm); }

/* 11. FOCUS + CONTRAST ====================================================== */
:focus { outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible,
summary:focus-visible, .page-link:focus-visible, .nav-link:focus-visible, .dropdown-item:focus-visible,
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible, input[type="file"]:focus-visible, .custom-control-input:focus-visible ~ .custom-control-label::before {
  outline: 2px solid var(--fnb-brand-600) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(2, 112, 235, .18) !important;
}
.form-control:focus-visible, select:focus-visible, textarea:focus-visible, input:not([type="checkbox"]):not([type="radio"]):focus-visible {
  outline: 2px solid var(--fnb-brand) !important;
  outline-offset: 0 !important;
  box-shadow: var(--fnb-focus) !important;
}
.main-sidebar .sidebar-menu li a:focus-visible { outline-offset: -2px !important; }
/* Skip link (inserted by fnb-ui.js) */
.fnb-skip {
  position: fixed; left: 12px; top: 12px; z-index: 3000;
  padding: 10px 16px; border-radius: var(--fnb-r-sm); background: var(--fnb-brand-600); color: #fff !important; font-weight: 600;
  transform: translateY(-160%); transition: transform var(--fnb-t-fast) var(--fnb-ease);
}
.fnb-skip:focus, .fnb-skip:focus-visible { transform: none; }
/* Legacy low-contrast utilities */
.text-white-75, .opacity-75 { opacity: 1 !important; }
.bg-whitesmoke { background-color: var(--fnb-canvas) !important; }

/* 12. OVERLAYS: one tidy dock, bottom-right ================================ */
/* Chat bubble: the corner. */
#kb-chatbot-root { right: 20px !important; bottom: 20px !important; z-index: 1050; }
.kb-chatbot-bubble-btn { width: 52px !important; height: 52px !important; box-shadow: var(--fnb-e2) !important; }
/* Queue tray (admin): a compact pill left of the bubble, not over the table. */
.queue-tray { left: auto !important; right: 84px !important; bottom: 26px !important; transform: none !important; }
.queue-tray.queue-tray--hidden { transform: translateY(140%) !important; }
.queue-tray.queue-tray--visible { transform: none !important; }
.queue-tray__pill { padding: 8px 14px !important; font-size: var(--fnb-fs-sm) !important; box-shadow: var(--fnb-e2) !important; background: var(--fnb-ink) !important; }
/* The pill's text is capped, so the footer below knows how much room the dock takes. */
.queue-tray__pill-text { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Footer: the copyright line (and the vendor panel's links) sit at the right
   end, exactly under the dock. Keep them clear of it: room for the bubble
   (20 + 52px), with the admin queue pill also room for that (84 + pill). On
   phones the line is centred and the dock spans the width, so it sits above.
   (body-prefixed: section 14 sets the tablet/phone footer padding later on.) */
@media (min-width: 768px) {
  body .main-footer, body .main-footer.new-footer { padding-right: 96px !important; }
  body:has(#queue-progress-tray) .main-footer { padding-right: 330px !important; }
}
@media (max-width: 767.98px) {
  body .main-footer, body .main-footer.new-footer { padding-bottom: 96px !important; }
}
/* Install card on panel pages.
   Desktop with the full sidebar: docked in the sidebar's bottom corner, where
   it covers nothing but sidebar space (the sidebar gets matching bottom
   padding so its last links scroll clear). Elsewhere: a compact bar at the
   bottom, the chat bubble above it, and the page's own spacer below. */
body .fnb-pwa-install[data-context="panel"] { box-shadow: var(--fnb-e3); border-color: var(--fnb-border); border-radius: var(--fnb-r-md); padding: 12px; gap: 10px; font-size: var(--fnb-fs-sm); }
body .fnb-pwa-install[data-context="panel"] .fnb-pwa-install__icon { width: 36px; height: 36px; }
body .fnb-pwa-install[data-context="panel"] .fnb-pwa-install__title { font-size: var(--fnb-fs-md); }
body .fnb-pwa-install .fnb-pwa-install__btn { background: var(--fnb-brand-600) !important; border-radius: var(--fnb-r-sm) !important; min-height: 36px; }
@media (min-width: 1025px) {
  body:not(.sidebar-mini) .fnb-pwa-install[data-context="panel"],
  body:not(.sidebar-mini) .fnb-pwa-install[data-context="panel"].fnb-pwa-install--beside-help {
    left: 12px !important; right: auto !important; bottom: 12px !important;
    width: calc(var(--fnb-sidebar-w) - 24px) !important;
    z-index: 885;
    flex-wrap: wrap;
  }
  body:not(.sidebar-mini) .fnb-pwa-install[data-context="panel"] .fnb-pwa-install__text { font-size: var(--fnb-fs-sm); }
  body.fnb-pwa-install-open:not(.sidebar-mini) .main-sidebar .sidebar-menu { padding-bottom: calc(var(--fnb-pwa-install-h, 0px) + 32px); }
  body.fnb-pwa-install-open:not(.sidebar-mini)::after { display: none !important; }
  body.sidebar-mini .fnb-pwa-install[data-context="panel"],
  body.sidebar-mini .fnb-pwa-install[data-context="panel"].fnb-pwa-install--beside-help { right: 20px !important; left: auto !important; bottom: 84px !important; width: 340px !important; }
}
@media (max-width: 1024.98px) {
  body .fnb-pwa-install[data-context="panel"],
  body .fnb-pwa-install[data-context="panel"].fnb-pwa-install--beside-help {
    left: 12px !important; right: 12px !important; width: auto !important; bottom: 12px !important; align-items: center;
  }
  body .fnb-pwa-install[data-context="panel"] .fnb-pwa-install__text { display: none; }
  body .fnb-pwa-install[data-context="panel"] .fnb-pwa-install__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1 1 auto; min-width: 0; }
  body .fnb-pwa-install[data-context="panel"] .fnb-pwa-install__title { margin: 0; }
  body .fnb-pwa-install[data-context="panel"] .fnb-pwa-install__actions { margin: 0; }
  body.fnb-pwa-install-open #kb-chatbot-root { bottom: calc(var(--fnb-pwa-install-h, 64px) + 24px) !important; }
}
/* Phones and small tablets (2026-10-15): the dock never covers what you are
   working on. A smaller bubble inside the safe area; the page ends with room
   for it, so the last row, form button or card action scrolls clear of it;
   while you scroll down the list it tucks to the edge (fnb-ui.js, body.
   fnb-dock-tucked) and comes back when you scroll up or reach the end. */
@media (max-width: 767.98px) {
  #kb-chatbot-root {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    transition: transform var(--fnb-t-base) var(--fnb-ease), opacity var(--fnb-t-base) var(--fnb-ease);
  }
  .kb-chatbot-bubble-btn, #kb-chatbot-root .kb-chatbot-bubble-btn { width: 48px !important; height: 48px !important; }
  .kb-chatbot-bubble-btn svg { width: 22px; height: 22px; }
  body.fnb-dock-tucked #kb-chatbot-root:not(:has(.kb-chatbot-open)):not(:focus-within) { transform: translateX(calc(100% - 14px)); opacity: .55; }
  .queue-tray { right: 68px !important; left: auto !important; bottom: calc(16px + env(safe-area-inset-bottom)) !important; max-width: calc(100vw - 84px); transition: transform var(--fnb-t-base) var(--fnb-ease) !important; }
  body.fnb-dock-tucked .queue-tray.queue-tray--visible:not(:focus-within) { transform: translateY(calc(100% + 24px)) !important; }
  .main-content { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  body.fnb-pwa-install-open .main-content { padding-bottom: calc(var(--fnb-pwa-install-h, 64px) + 96px + env(safe-area-inset-bottom)) !important; }
  /* Sticky form/footer action bars sit above the bubble, not under it. */
  .main-content .sticky-bottom, .main-content .fnb-sticky-actions { padding-right: 64px; }
}
/* "Install the app" in the account menu once the card has been dismissed */
.fnb-install-menu-item .fnb-install-menu-icon { width: 16px; height: 16px; }

/* 13. SIGN-IN SCREENS ====================================================== */
/* All six sign-in screens (admin, provider, technician, supplier, property
   manager, accountant) share one layout: brand-tinted photo on the left,
   one white card on the right, language switch top-right. */
body .auth, body .employee-login-wrapper, body .acc-auth-wrap {
  min-height: 100vh;
  background-color: var(--fnb-ink) !important;
  background-image: linear-gradient(110deg, rgba(2, 71, 168, .78) 0%, rgba(13, 19, 27, .45) 55%, rgba(13, 19, 27, .25) 100%), url("../../../frontend/retro/Login_BG.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
}
body .auth .login-wrapper { min-height: 100vh; display: flex; align-items: center; background: transparent !important; }
body .auth .login-wrapper > section { width: 100%; padding: 32px 0; }
body .auth .card, body .employee-login-card, body .acc-auth-card {
  border: 0 !important;
  border-radius: var(--fnb-r-lg) !important;
  box-shadow: 0 24px 64px rgba(13, 19, 27, .35) !important;
  padding: 36px 36px 28px !important;
  background: var(--fnb-surface) !important;
}
body .auth .card .text-center > img:first-child, body .auth .card > img:first-child, body .auth .card img[class*="logo"],
body .employee-login-card .employee-login-logo, body .acc-auth-card img[class*="logo"] {
  display: block; height: auto !important; max-height: 72px !important; width: auto !important; max-width: 180px !important; margin: 0 auto 12px !important;
}
body .fnb-auth-title, body .acc-auth-card .acc-auth-title {
  display: block; margin: 4px 0 24px !important; text-align: center;
  font-size: var(--fnb-fs-2xl) !important; line-height: 1.25; font-weight: 700 !important; color: var(--fnb-ink) !important; letter-spacing: -.015em;
}
/* One CTA colour on every sign-in screen: the brand blue (white on the
   old orange was 2.6:1). Page styles set the orange with !important, so
   these carry the extra body/.btn specificity. */
body .btn.btn-cta-orange, body .btn.btn-cta-orange:focus, body .acc-btn.acc-btn-cta {
  background-color: var(--fnb-brand-600) !important; border-color: var(--fnb-brand-600) !important; color: #fff !important;
  border-radius: var(--fnb-r-sm) !important; min-height: 48px; font-size: var(--fnb-fs-lg) !important;
}
body .btn.btn-cta-orange:hover, body .acc-btn.acc-btn-cta:hover { background-color: var(--fnb-brand-700) !important; border-color: var(--fnb-brand-700) !important; }
body .auth .card h1, body .auth .card h2, body .auth .card h3, body .auth .card h4, body .employee-login-card h4, body .acc-auth-card h1 {
  color: var(--fnb-ink) !important; font-size: var(--fnb-fs-2xl) !important; font-weight: 700 !important; text-align: center; letter-spacing: -.015em;
}
body .auth .card p, body .auth .card .text-muted, body .auth .card small { color: var(--fnb-muted) !important; }
body .auth .card .form-control, body .employee-login-card .form-control, body .acc-auth-card .form-control { min-height: 44px; font-size: 15px !important; }
body .auth .card .btn[type="submit"], body .employee-login-card .btn[type="submit"], body .acc-auth-card .btn[type="submit"] { min-height: 48px; font-size: var(--fnb-fs-lg) !important; width: 100%; }
body .auth .card a:not(.btn), body .employee-login-card a:not(.btn), body .acc-auth-card a:not(.btn) { color: var(--fnb-brand-600) !important; font-weight: 600; }
/* Accountant sign-in pages (_auth_style.php): same tokens */
body .acc-auth-card .acc-auth-sub, body .acc-auth-card .form-text, body .acc-divider, body .acc-auth-foot { color: var(--fnb-muted) !important; font-size: var(--fnb-fs-sm); }
body .acc-auth-card .acc-input-group { border-color: var(--fnb-border-strong) !important; border-radius: var(--fnb-r-sm) !important; min-height: 44px; }
body .acc-auth-card .acc-input-group:focus-within { border-color: var(--fnb-brand) !important; box-shadow: var(--fnb-focus) !important; }
body .acc-btn.acc-btn-outline { border-color: var(--fnb-brand-600) !important; color: var(--fnb-brand-600) !important; border-radius: var(--fnb-r-sm) !important; min-height: 44px; }
body .acc-auth-links a, body .acc-forgot-link { color: var(--fnb-brand-600) !important; }
body .acc-icon, body .acc-toggle-pw, body [class*="-input-icon-"] { color: var(--fnb-muted) !important; }
/* Role badge ("SUPPLIER LOGIN", "PROPERTY MANAGER LOGIN"...) */
body [class*="role-badge"] { background: var(--fnb-brand-50) !important; color: var(--fnb-brand-700) !important; border: 1px solid var(--fnb-brand-100) !important; font-weight: 600; letter-spacing: .04em; }
/* Email / Phone switch: the selected half reads as selected, not disabled */
body .login-type-toggle { display: flex; gap: 0; padding: 4px; background: var(--fnb-canvas); border: 1px solid var(--fnb-border); border-radius: var(--fnb-r-sm); margin-bottom: 16px; }
body .login-type-toggle .btn { flex: 1 1 0; min-height: 36px; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--fnb-ink-2) !important; }
body .login-type-toggle .btn.active { background: var(--fnb-surface) !important; color: var(--fnb-brand-600) !important; box-shadow: var(--fnb-e1) !important; }
/* Language switch: one place on every sign-in screen */
body .login-lang-switcher { position: fixed !important; top: 16px !important; right: 16px !important; left: auto !important; z-index: 20; }
body .login-lang-switcher .login-lang-toggle, body .employee-lang-switcher select {
  min-height: 44px; padding: 6px 14px; border-radius: var(--fnb-r-sm) !important; background: var(--fnb-surface) !important;
  border: 1px solid var(--fnb-border) !important; color: var(--fnb-ink-2) !important; font-weight: 600; font-size: var(--fnb-fs-sm); box-shadow: var(--fnb-e1);
}
body .employee-lang-switcher { position: fixed !important; top: 16px !important; right: 16px !important; left: auto !important; z-index: 20; margin: 0 !important; }
/* Technician: the card sits where the others do (it was centred with the
   language select on top of the logo) */
body .employee-login-wrapper { display: flex !important; align-items: center !important; justify-content: flex-end !important; padding: 32px 6vw !important; }
body .employee-login-card { width: 100%; max-width: 440px !important; }
body .employee-phone-group, body .supplier-phone-group, body .supplier-password-group, body [class*="-phone-group"], body [class*="-password-group"] {
  border-color: var(--fnb-border-strong) !important; border-radius: var(--fnb-r-sm) !important; min-height: 44px;
}
body [class*="-phone-group"]:focus-within, body [class*="-password-group"]:focus-within { border-color: var(--fnb-brand) !important; box-shadow: var(--fnb-focus); }
body [class*="-phone-group"] input[name="country_code"] { min-width: 64px !important; max-width: 72px !important; flex: 0 0 68px !important; }
body [class*="-phone-group"] .form-control, body [class*="-password-group"] .form-control { border: 0 !important; box-shadow: none !important; }
/* Install card on sign-in pages: never on the card, calm style */
body .fnb-pwa-install[data-context="login"] { box-shadow: var(--fnb-e3); border-radius: var(--fnb-r-md); }
body .fnb-pwa-install.fnb-pwa-install--inline { background: var(--fnb-canvas) !important; box-shadow: none; }
@media (max-width: 767.98px) {
  body .auth, body .employee-login-wrapper, body .acc-auth-wrap { background-image: linear-gradient(180deg, rgba(2, 71, 168, .85), rgba(13, 19, 27, .55)), url("../../../frontend/retro/Login_BG.jpg") !important; }
  body .employee-login-wrapper { justify-content: center !important; padding: 72px 16px 24px !important; }
  body .auth .login-wrapper > section { padding: 72px 0 24px; }
  body .auth .card, body .employee-login-card, body .acc-auth-card { padding: 28px 20px 20px !important; }
}

/* 14. PHONES + TABLETS ====================================================== */
@media (max-width: 1024.98px) {
  /* Off-canvas sidebar: really off (and out of the tab order) until opened */
  body:not(.sidebar-show) .main-sidebar { left: calc(-1 * var(--fnb-sidebar-w) - 20px) !important; visibility: hidden; }
  body.sidebar-show .main-sidebar { left: 0 !important; visibility: visible; box-shadow: var(--fnb-e3) !important; z-index: 1100; }
  .main-sidebar { transition: left var(--fnb-t-base) var(--fnb-ease), visibility 0s linear var(--fnb-t-base); }
  body.sidebar-show .main-sidebar { transition: left var(--fnb-t-base) var(--fnb-ease), visibility 0s; }
  body.sidebar-show::before { background: var(--fnb-ink) !important; opacity: .45 !important; }
  .main-content { padding-left: 20px !important; padding-right: 20px !important; }
  .main-footer, .main-footer.new-footer { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 767.98px) {
  body { font-size: var(--fnb-fs-md); }
  .main-content { padding-left: 16px !important; padding-right: 16px !important; padding-bottom: 96px; }
  .main-content > .section, .main-content .section-body, .main-content .container-fluid { padding-left: 0; padding-right: 0; }
  .card .card-body { padding: var(--fnb-s4); }
  .card .card-header { padding: var(--fnb-s3) var(--fnb-s4) !important; }
  .section .section-header h1, .section-header h1 { font-size: var(--fnb-fs-xl) !important; }
  .row { margin-left: -8px; margin-right: -8px; }
  .row > [class*="col"] { padding-left: 8px; padding-right: 8px; }
  /* 44px touch targets */
  .btn, .btn-sm, .btn-xs, .page-item .page-link, .dropdown-menu .dropdown-item, .nav-pills .nav-link, .nav-tabs .nav-link,
  .main-sidebar .sidebar-menu li a, .main-navbar .nav-link, .filters_table, .action-button, .btn-action-icon {
    min-height: 44px !important;
  }
  .page-item .page-link, .action-button, .btn-action-icon, .btn-icon, .main-navbar [data-toggle="sidebar"] { min-width: 44px; }
  .form-control, .custom-select, .select2-container .select2-selection--single, .select2-container--default .select2-selection--single { min-height: 44px !important; font-size: 16px !important; }
  .main-footer a, .breadcrumb-item a, .section-header-breadcrumb a, .card .card-header a:not(.btn), .table td a:not(.btn), .alert a:not(.btn), .fnb-tap {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  }
  .panel-help-close, .alert .close, .modal-header .close, button.close { min-width: 44px; min-height: 44px; }
  .main-navbar [data-toggle="sidebar"], .main-navbar [data-toggle="search"] { width: 44px !important; min-width: 44px !important; height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
  .fx-link, .fx-list-title, .fx-card-head a, .list-unstyled a, .card-header-action a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  /* Top bar: one tidy row of 40px controls; the greeting text gives way to the avatar */
  .main-navbar, .navbar.new_nav_bar { padding: 8px 12px !important; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start; }
  /* Row 1: menu button, status badge, menu search. Row 2: notifications,
     language, account. (Every control stays in its own box: an earlier
     display:contents version let the badge sit on top of the menu button.) */
  .main-navbar > form.form-inline { flex: 1 1 100%; min-width: 0; margin: 0 !important; }
  .main-navbar > form.form-inline > ul.navbar-nav { display: flex !important; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; min-width: 0; margin: 0 !important; }
  .main-navbar > form.form-inline > ul.navbar-nav > * { margin: 0 !important; flex: none; }
  /* display: flex wins over the theme's 576-767px display: block, which put the search button on a line of its own */
  .main-navbar .search-element { flex: 1 1 auto !important; min-width: 0; position: relative !important; left: auto !important; top: auto !important; margin: 0 !important; display: flex !important; }
  .main-navbar .search-element .form-control, .main-navbar .search-element #menu-search { width: 100% !important; min-width: 0 !important; margin: 0 !important; }
  .main-navbar .search-element .search-result { left: 0; right: 0; width: auto; }
  .main-navbar [data-toggle="sidebar"] { position: relative; z-index: 2; }
  .main-navbar, .navbar.new_nav_bar { max-width: 100vw; overflow-x: clip; }
  .main-navbar .navbar-right, .main-navbar > .navbar-right { margin-left: auto !important; gap: 6px; flex-direction: row; flex-wrap: nowrap; justify-content: flex-end !important; flex: 0 0 auto !important; width: auto !important; }
  .main-navbar .navbar-right > ul.navbar-nav { display: contents; }
  .main-navbar > ul.navbar-right.ml-auto { flex: 1 1 auto !important; width: 100% !important; min-width: 0; }
  .main-navbar .navbar-right .dropdown-menu { position: absolute; right: 0; left: auto; }
  /* The account menu (always the last dropdown) shows just the avatar */
  .main-navbar .navbar-right li.dropdown:last-child > .nav-link-user .d-inline-block,
  .main-navbar .navbar-right li.dropdown:last-child > .nav-link-user .d-lg-inline-block { display: none !important; }
  .main-navbar .badge { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
  .main-navbar .navbar-right li.dropdown:last-child > .nav-link-user:has(> .d-inline-block:only-child)::before {
    content: ""; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .main-navbar .navbar_dropdown > .nav-link, .main-navbar .navbar-right .nav-link.nav-link-user { min-height: 44px; padding: 4px 10px !important; }
  .main-navbar .dropdown-menu { max-width: calc(100vw - 24px); min-width: 0 !important; }
  #partner-notification-dropdown .dropdown-menu, .dropdown-list { width: calc(100vw - 24px) !important; min-width: 0 !important; }
  /* Tables become stacked label:value cards (labels injected by fnb-ui.js) */
  /* No !important on rows/cells: rows a page hides with style="display:none"
     (tab filters) must stay hidden. */
  /* Up to three columns (fnb-ui.js: .fnb-fit) fit the screen instead of the
     theme's 800px minimum, which made e.g. a technician's leave list scroll. */
  .table-responsive .table.fnb-fit { min-width: 0 !important; }
  .table.fnb-cards, .table.fnb-cards > tbody { display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  .table.fnb-cards > tbody > tr { display: block; width: 100%; }
  .table.fnb-cards > tbody > tr > td { width: 100% !important; min-width: 0 !important; max-width: none !important; }
  .table.fnb-cards > thead, .table.fnb-cards > tfoot { display: none !important; }
  .table.fnb-cards { background: transparent !important; }
  .table-responsive:has(> .table.fnb-cards), .fixed-table-body:has(.table.fnb-cards) { overflow: visible !important; }
  .table.fnb-cards > tbody > tr {
    background: var(--fnb-surface); border: 1px solid var(--fnb-border); border-radius: var(--fnb-r-md);
    padding: 6px 14px; margin: 0 0 12px; box-shadow: var(--fnb-e1);
  }
  /* label column | value column; everything the cell holds stacks in the
     value column (text nodes included, as anonymous grid items). */
  .table.fnb-cards > tbody > tr > td {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-auto-flow: row; column-gap: 12px; row-gap: 0;
    align-items: start; justify-items: end;
    text-align: right !important; border-bottom: 1px solid var(--fnb-border) !important;
    white-space: normal !important; overflow-wrap: anywhere; min-height: 0; height: auto !important;
  }
  .bootstrap-table .fixed-table-container .table.fnb-cards > tbody > tr > td,
  .table.fnb-cards.fnb-cards > tbody > tr > td { padding: 8px 0 !important; }
  .bootstrap-table .fixed-table-container .table.fnb-cards > tbody > tr.no-records-found > td,
  .table.fnb-cards.fnb-cards > tbody > tr.no-records-found > td { padding: 36px 16px !important; display: block !important; text-align: center !important; }
  .table.fnb-cards > tbody > tr > td > * { grid-column: 2; max-width: 100%; margin-left: 0; margin-right: 0; }
  .table.fnb-cards > tbody > tr > td:last-child { border-bottom: 0 !important; }
  .table.fnb-cards > tbody > tr > td::before {
    content: attr(data-title); grid-column: 1; grid-row: 1 / span 12; justify-self: start;
    text-align: left; font-size: var(--fnb-fs-sm); font-weight: 600; color: var(--fnb-muted); white-space: normal; overflow-wrap: normal;
  }
  .table.fnb-cards > tbody > tr > td:not([data-title]), .table.fnb-cards > tbody > tr > td[data-title=""] { grid-template-columns: minmax(0, 1fr); justify-items: start; text-align: left !important; }
  .table.fnb-cards > tbody > tr > td:not([data-title])::before, .table.fnb-cards > tbody > tr > td[data-title=""]::before { display: none; }
  .table.fnb-cards > tbody > tr > td:not([data-title]) > *, .table.fnb-cards > tbody > tr > td[data-title=""] > * { grid-column: 1; }
  /* Action cells (only buttons/links): one wrapping row of 44px targets */
  .table.fnb-cards > tbody > tr > td.fnb-cell-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
  .table.fnb-cards > tbody > tr > td.fnb-cell-actions::before { flex: 1 0 40%; margin-right: auto; }
  .table.fnb-cards > tbody > tr > td.fnb-cell-actions > * { margin: 0 !important; }
  .table.fnb-cards > tbody > tr > td.fnb-cell-actions .dropdown-menu { text-align: left; }
  .table.fnb-cards > tbody > tr > td.fnb-cell-empty { display: none !important; }
  .table.fnb-cards > tbody > tr > td.bs-checkbox { justify-content: flex-start; }
  .table.fnb-cards > tbody > tr.no-records-found { padding: 0; box-shadow: none; }
  .table.fnb-cards > tbody > tr.no-records-found > td { display: block !important; text-align: center !important; padding: 36px 16px !important; }
  .table.fnb-cards > tbody > tr.no-records-found > td::before { content: ""; max-width: none; display: block; }
  .bootstrap-table .fixed-table-container { border: 0 !important; background: transparent !important; overflow: visible; }
  .bootstrap-table .fixed-table-container .fixed-table-body { overflow: visible !important; height: auto !important; max-height: none !important; }
  .bootstrap-table .fixed-columns, .bootstrap-table .fixed-columns-right { display: none !important; }
  .bootstrap-table .fixed-table-toolbar .search { margin-left: 0 !important; flex: 1 1 100%; }
  .bootstrap-table .fixed-table-toolbar .search .form-control { min-width: 0; width: 100%; }
  .bootstrap-table .fixed-table-pagination { justify-content: center; }
  .table-responsive { border: 0; }
  /* Overflow guards */
  img, video, iframe, canvas { max-width: 100%; }
  .main-content pre, .main-content code { white-space: pre-wrap; word-break: break-word; }
  .tagify { max-width: 100% !important; }
  .modal-dialog { margin: 12px; }
  /* Three footer buttons did not fit (the technician's job details cut "Potrzebujesz pomocy") */
  .modal-footer { flex-wrap: wrap; }
  .daterangepicker { max-width: calc(100vw - 24px); }
}
/* Admin universal search (fnb-ui.js): a button on phones; open, the box
   covers the first row of the bar (menu button and menu search). */
.fnb-us-toggle { display: none !important; }
@media (max-width: 767.98px) {
  .main-navbar > form.form-inline { position: relative; }
  .main-navbar .fnb-us { position: static !important; }
  .main-navbar .fnb-us-toggle {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px; min-width: 44px; height: 44px; padding: 0 !important;
    background: transparent; border: 0; border-radius: var(--fnb-r-sm);
  }
  .main-navbar .fnb-us:not(.fnb-us-open) #universal_search_input { display: none; }
  .main-navbar .fnb-us.fnb-us-open {
    position: absolute !important; inset: 0; z-index: 900; margin: 0 !important; /* over the menu search (892) */
    display: flex; align-items: center; gap: 8px; background: var(--fnb-surface);
  }
  .main-navbar .fnb-us.fnb-us-open #universal_search_input { order: -1; flex: 1 1 auto; width: auto !important; min-width: 0; }
  .main-navbar .fnb-us.fnb-us-open #universal_search_results { top: 100% !important; left: 0 !important; right: 0 !important; width: auto !important; max-width: none; margin-top: 4px !important; transform: none !important; }
}

/* 14b. PANEL-SPECIFIC LAYERS PULLED ONTO THE TOKENS ======================== */
/* Technician (technician-panel.css): same family, AA-safe accents. */
body.tech-panel {
  font-family: var(--fnb-font);
  --tb: #0258C4; --tb-ink: #0047A8; --tb-soft: #EEF5FF;
  --ao: #B54D00; --sg: #0F7B4A;
  --t-surface: #F4F7FB; --t-muted: #5B6878; --t-ink: #0D131B; --t-line: #E3E8EF; --t-chip: #F2F4F7;
  --t-radius: 16px;
}
body.tech-panel .btn { border-radius: var(--fnb-r-sm) !important; }
body.tech-panel .tech-chip.green { color: var(--fnb-success); }
body.tech-panel .tech-title::before { background: var(--fnb-accent); }
body.tech-panel .tech-hero { box-shadow: var(--fnb-e2); border-radius: var(--fnb-r-lg); }
body.tech-panel .tech-hero p, body.tech-panel .tech-hero-tile .lbl { color: #fff; }
/* The greeting h1 inherited the dark ink: #0D131B on #0258C4 = 2.84:1 (U-016). White = 6.1:1. */
body.tech-panel .tech-hero h1, body.tech-panel .tech-hero h2, body.tech-panel .tech-hero .tech-hero-greeting { color: #fff !important; }
body.tech-panel .tech-metric .m-lbl { text-transform: none; letter-spacing: 0; font-size: var(--fnb-fs-sm); }
body.tech-panel .card { border-radius: var(--fnb-r-md) !important; }
/* Words never break mid-word in stat labels on phones */
body.tech-panel .tech-hero-tile .lbl, .stat-card-text small, [class*="stat"] small { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Admin dashboard (fx-*) buttons and charts on the same tokens */
.fx-btn { border-radius: var(--fnb-r-sm) !important; }
.fx-btn.fx-btn--primary { background: var(--fnb-brand-600) !important; border-color: var(--fnb-brand-600) !important; color: #fff !important; }
.apexcharts-canvas text, .apexcharts-legend-text, .apexcharts-tooltip, .apexcharts-xaxistooltip { font-family: var(--fnb-font) !important; }
.queue-tray__close { width: 32px; height: 32px; border-radius: var(--fnb-r-sm) !important; font-weight: 600 !important; display: inline-flex; align-items: center; justify-content: center; }
/* Icon-only ghost controls share one size (40px) so a screen has one ghost style */
.table td a[data-toggle="dropdown"], .table td a[id^="dropdownMenuLink"], .queue-tray__close, #cancelButton, #kb-chatbot-close {
  height: var(--fnb-h-md) !important; width: auto; min-width: var(--fnb-h-md) !important; min-height: var(--fnb-h-md) !important;
}

/* Care-centre styled pages (carecenter.css: support tickets, reception) */
body .care-panel {
  --cc-tb: #0258C4; --cc-tb-ink: #0047A8; --cc-tb-soft: #EEF5FF;
  --cc-ao: #B54D00; --cc-green: #0F7B4A; --cc-red: #B42318; --cc-amber: #8A5300; --cc-info: #0B5CAD;
  --cc-ink: #0D131B; --cc-muted: #5B6878; --cc-line: #E3E8EF; --cc-chip: #F2F4F7; --cc-radius: 12px;
}
/* Multi-step forms (stepper.css): readable step labels */
.stepper-sidebar .step-item .step-label { color: var(--fnb-ink-2) !important; }
.stepper-sidebar .step-item.disabled .step-label { color: var(--fnb-muted) !important; }
.stepper-sidebar .step-item.completed .step-label { color: var(--fnb-success) !important; }
.stepper-sidebar .step-item.active .step-label { color: var(--fnb-brand-600) !important; }
#stepper-step-subtitle, .step-content-header-text p { color: var(--fnb-muted) !important; }
/* Code / keys: tokens, readable on a neutral chip; one type family */
code { color: var(--fnb-ink-2); background: var(--fnb-neutral-bg); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.text-monospace { font-family: var(--fnb-font) !important; font-variant-numeric: tabular-nums slashed-zero; letter-spacing: .01em; }
/* Help-bot panel controls on the button tokens */
.kb-chatbot-option { border-radius: var(--fnb-r-sm) !important; font-weight: 600 !important; }
#kb-chatbot-close { width: 32px; height: 32px; border-radius: var(--fnb-r-sm) !important; font-weight: 600 !important; }
.kb-chatbot-search-btn { border-radius: var(--fnb-r-sm) !important; font-weight: 600 !important; }
.table td a[data-toggle="dropdown"], .table td a[id^="dropdownMenuLink"] { font-weight: 600 !important; }

/* Supplier / property manager sidebar profile card + Studio checklist */
.main-sidebar [class*="sidebar-profile-role"] { color: var(--fnb-muted) !important; font-size: var(--fnb-fs-xs) !important; }
.main-sidebar [class*="sidebar-profile-name"] { color: var(--fnb-ink) !important; }
body .studio-checklist .studio-check { color: var(--fnb-muted); }
body .studio-checklist li.is-done .studio-check { color: var(--fnb-success); }

/* 15. MOTION ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Print: no chrome */
@media print {
  .main-sidebar, .main-navbar, #kb-chatbot-root, .queue-tray, .fnb-pwa-install, .panel-help-row { display: none !important; }
  .main-content { padding: 0 !important; }
}

/* 16. SCREEN SIZES (2026-10-13) ============================================
   Measured by tests/ui/panel_layout_check.mjs at 375-2560 px on all six
   panels. What each rule fixes:
   - wide screens: the content stopped at 1480px (and at Bootstrap's 1140px
     .container on some pages) and left a dead band on the right while the
     list inside still scrolled sideways;
   - the sidebar must never move sideways: nothing inside it may be wider than
     it, and fnb-ui.js puts scrollLeft back to 0 (overflow-x: hidden still lets
     selection drags, find-in-page, focus and niceScroll scroll it);
   - lists: long text clamps to 3 lines, the actions column stays in view,
     dense lists (10+ columns) get compact cells, image cells one thumbnail. */
@media (min-width: 1025px) {
  /* The sidebar sits at the left edge, whatever state class the theme left. */
  body:not(.sidebar-mini) .main-sidebar,
  body.sidebar-gone:not(.sidebar-mini) .main-sidebar {
    left: 0 !important; right: auto; margin-left: 0 !important; transform: none !important;
    width: var(--fnb-sidebar-w) !important; visibility: visible;
  }
  /* Pages that are not lists stay readable on very wide screens: capped and centred. */
  .main-content > .section, .main-content > section.section { max-width: var(--fnb-content-max); margin-left: auto; margin-right: auto; }
  /* Lists use all the width there is. */
  .main-content > .section:has(.bootstrap-table, .fixed-table-body, .table-responsive),
  .main-content > .section.fnb-fluid { max-width: none; }
  /* Bootstrap's fixed .container (1140px) inside the content column is fluid here. */
  .main-content .container { max-width: none; }
}
:root { --fnb-content-max: 1760px; }
.main-sidebar #sidebar-wrapper, .main-sidebar .sidebar-menu, .main-sidebar .sidebar-brand { max-width: 100%; min-width: 0; }
.main-sidebar .sidebar-brand { overflow: hidden; }
.main-sidebar .sidebar-brand a { display: flex; align-items: center; justify-content: center; max-width: 100%; min-width: 0; }
.main-sidebar .sidebar-brand img, .main-sidebar .sidebar-brand .sidebar_logo { max-width: calc(var(--fnb-sidebar-w) - 32px) !important; object-fit: contain; }
.main-sidebar .sidebar-menu li { max-width: 100%; }
/* A .row straight inside an 8px (px-2) box pulls 15px out of it: 2px of sideways
   page scroll on the provider dashboard at 768-1024. */
.main-content .px-2 > .row { margin-left: -.5rem; margin-right: -.5rem; }

@media (min-width: 768px) {
  /* Prose columns: room, but not 260px each, and never a 10-line row. */
  .table td.fnb-wide, .table th.fnb-wide { min-width: clamp(140px, 11vw, 240px); max-width: 420px; }
  .table td.fnb-wide { overflow-wrap: anywhere; }
  .table td .fnb-clamp {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
    overflow: hidden; white-space: normal; overflow-wrap: anywhere; max-width: 100%;
  }
  .table td .fnb-clamp + a, .table td .fnb-clamp + .btn, .table td .fnb-clamp + button { display: inline-flex; margin-top: 4px; }
  /* The blog list trims its own description and has "View more": three lines while collapsed. */
  .table td .description-content:has(.view-more-btn .fa-eye) .description-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  /* Avatar + name + e-mail cells (providers, customers): one line each, ellipsis, full text as a tooltip. */
  .table td .o-media > :first-child { flex: none; }
  .table td .o-media > :last-child { min-width: 0; flex: 1 1 auto; }
  .table td .o-media__body { min-width: 0; text-align: left; }
  .table td .o-media__body > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* Actions column: stays in view while the list scrolls sideways. */
  .fnb-scrolls > .table th.fnb-col-actions,
  .fnb-scrolls > .table td.fnb-col-actions,
  .fnb-scrolls > table th.fnb-col-actions,
  .fnb-scrolls > table td.fnb-col-actions {
    position: sticky; right: 0; z-index: 1;
    background-color: var(--fnb-surface);
    box-shadow: inset 1px 0 0 var(--fnb-border), -8px 0 12px -10px rgba(13, 19, 27, .25);
  }
  .fnb-scrolls > .table thead th.fnb-col-actions, .fnb-scrolls > table thead th.fnb-col-actions { z-index: 3; background-color: #F7F9FC !important; }
  .fnb-scrolls > .table tbody tr:hover td.fnb-col-actions { background-color: #F8FAFD; }
  .table td.fnb-col-actions, .table th.fnb-col-actions { white-space: nowrap; width: 1%; }

  /* Dense lists (10+ visible columns, e.g. admin bookings): compact cells and
     two-line headers, so they fit a 1440px screen. */
  .table.fnb-dense:not(.table-sm) td, .bootstrap-table .fixed-table-container .table.fnb-dense td { padding: 10px 6px !important; }
  .table.fnb-dense thead th, .bootstrap-table .fixed-table-container .table.fnb-dense thead th { padding: 8px 6px !important; white-space: normal; font-size: var(--fnb-fs-xs) !important; line-height: 1.25; }
  .bootstrap-table .fixed-table-container .table.fnb-dense thead th .th-inner { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: auto; }
  .table.fnb-dense thead th .sortable { padding-right: 14px !important; background-size: 12px; }
  .table.fnb-dense, .table.fnb-dense td, .bootstrap-table .fixed-table-container .table.fnb-dense td { font-size: var(--fnb-fs-sm) !important; }
  .table.fnb-dense td.fnb-wide, .table.fnb-dense th.fnb-wide { min-width: 140px; max-width: 220px; }
  .table.fnb-dense td.fnb-nowrap { white-space: normal; min-width: 64px; }
  .table.fnb-dense td .badge, .table.fnb-dense td .tag { white-space: normal; margin-left: 0 !important; margin-right: 0 !important; max-width: 96px; }
  /* date + time on two lines instead of one 150px line (the formatter sets nowrap inline) */
  .table.fnb-dense td .fnb-datetime { white-space: normal !important; display: inline-block; min-width: 64px; }
  /* and less frame around a dense list: the nested card paddings cost ~90px */
  .main-content .card:has(.table.fnb-dense), .main-content [class*="-card"]:has(> .tab-content .table.fnb-dense), .main-content .card-body:has(.table.fnb-dense) { padding-left: 8px !important; padding-right: 8px !important; }
  .main-content .card:has(.table.fnb-dense) > .row { margin-left: -8px; margin-right: -8px; }
  .main-content .card:has(.table.fnb-dense) > .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
  .table.fnb-dense td .o-media img { width: 36px !important; height: 36px !important; }
  .table.fnb-dense td.fnb-wide, .table.fnb-dense th.fnb-wide { max-width: 200px; }

  /* Image cells: one neat thumbnail, or one small placeholder. */
  .table td.fnb-col-image, .table th.fnb-col-image { width: 1%; white-space: nowrap; text-align: center; }
  .table td.fnb-col-image img:not(.fnb-keep-size) {
    width: 48px !important; height: 48px !important; max-width: none; object-fit: cover;
    padding: 0 !important; border-radius: var(--fnb-r-sm) !important; border: 1px solid var(--fnb-border);
    /* the placeholder icon shows until (or unless) the picture loads */
    background: #EEF2F6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A1B3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 16-5-5L5 19'/%3E%3C/svg%3E") center / 22px no-repeat;
    display: inline-block; vertical-align: middle;
  }
}
.fnb-img-ph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--fnb-r-sm); border: 1px solid var(--fnb-border);
  background: #EEF2F6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A1B3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 16-5-5L5 19'/%3E%3C/svg%3E") center / 22px no-repeat;
  vertical-align: middle;
}

/* Priority columns: a list template marks a column `fnb-priority-low` when its
   content is already in another column (admin bookings: "Date of service" is
   the date of "Starting time", "Duration" is start to end). Between the tablet
   and 1680px those columns step aside so the list fits without scrolling;
   phones (card mode) and wide screens show them. Exports read the data, not
   the screen, so they keep every column. */
@media (min-width: 768px) and (max-width: 1679.98px) {
  .table th.fnb-priority-low, .table td.fnb-priority-low { display: none !important; }
}

/* 16. LIST FILTER ROWS (consistency pass 2026-10-17) ======================= */
/* Admin lists (providers, services, promo codes, sliders, subscriptions,
   users...) put their status chips, a category select and the search box in
   one Bootstrap .row: the first chip was inset (ml-3), the rest of the row and
   every wrapped line sat on the row's negative margin, so on a phone the
   chips, the select and the search started at three different left edges.
   One flex row with one gap; on phones the select and the search take the
   full width. */
.row:has(> .filters_table) { margin-left: 0 !important; margin-right: 0 !important; }
:is(.row, .d-flex):has(> .filters_table) { gap: 8px !important; align-items: center; }
:is(.row, .d-flex):has(> .filters_table) > .filters_table { margin: 0 !important; min-height: 40px; display: inline-flex; align-items: center; }
.row:has(> .filters_table) > div:not(.filters_table) { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.row:has(> .filters_table) > :is(button, .btn, .dropdown) { margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 767.98px) {
  .row:has(> .filters_table) > div:not(.filters_table):has(select, input:not([type=hidden])) { flex: 1 1 100% !important; max-width: 100% !important; min-width: 0 !important; }
  :is(.row, .d-flex):has(> .filters_table) > .filters_table { min-height: 44px; }
}
/* Vendor "My subscription" ticket (dark card #343f53): the net + VAT line
   inherited the body ink (#344054 on #343f53, 1.01:1 - invisible) and the plan
   name button was white on 30 % white (4.41:1). */
.tickets-container .item .active_subscription_plan_price_note { color: rgba(255, 255, 255, .88) !important; }
.tickets-container .buy-button { background-color: rgba(255, 255, 255, .16); }
/* Phones: the accounting-office bar (menu, theme, role badge, language,
   account) was wider than the screen and pushed the menu button off the left
   edge. The role badge is in the account menu's name already; it goes on
   phones, as on the Property Manager bar. */
@media (max-width: 575.98px) {
  .main-navbar .navbar-right > li.nav-item.mt-2.mr-2:has(> .badge) { display: none !important; }
  .main-navbar > ul.navbar-right.ml-auto { min-width: 0; }
}

/* QA 2026-10-24: top-bar search: input and magnifier stay on one line (the button wrapped under the input at 1280 px) */
.main-navbar .nav-item.search-element { display: flex; align-items: center; flex-wrap: nowrap; }

/* Release 16: bank details in a payout list (admin Prośba o wypłatę, vendor list). The one-line ellipsis rule above is right for
   names and e-mails, wrong here: whoever pays must read the WHOLE account number, holder and bank, so these wrap instead of being cut. */
@media (min-width: 768px) {
  .table td .fnb-bank, .table td .fnb-bank > * { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; max-width: none; }
  .table td .fnb-clamp:has(.fnb-bank) { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; max-width: none; }
  .table td:has(.fnb-bank), .table.fnb-dense td.fnb-wide:has(.fnb-bank) { min-width: 200px; max-width: 250px; }
}

/* Release 16: top bar at 1280 px with a long business name was 17 px wider than the screen (sideways scroll on every vendor page):
   the search box kept its width while the account menu on the right grew. The left part now gives way (the search shrinks), the
   right part keeps its size, and the greeting never wraps or pushes. */
@media (min-width: 992px) {
  .main-navbar { flex-wrap: nowrap; }
  .main-navbar > form.form-inline { min-width: 0; flex: 0 1 auto; }
  .main-navbar > form.form-inline > .navbar-nav { min-width: 0; flex: 0 1 auto; }
  .main-navbar .nav-item.search-element { min-width: 0; flex: 0 1 258px; }
  .main-navbar .nav-item.search-element .form-control { min-width: 0; flex: 1 1 auto; }
  .main-navbar > ul.navbar-right { flex: 0 0 auto; }
}

/* b2b4 (2026-11-14): very narrow screens (< 320 px, e.g. a 198 px split view / watch-size browser). The partner
   navbar (theme + notifications + profile in one nowrap row) and the technician dashboard (nowrap badge, "update my
   location" button, job tabs) were wider than the screen and scrolled the whole page sideways. Below 320 px only:
   those rows may wrap; nothing changes at 320 px and wider. Additive, no layout restructuring. */
@media (max-width: 319.98px) {
    .partner-panel .new_nav_bar .navbar-right { flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; }
    .partner-panel .new_nav_bar .form-inline { min-width: 0; max-width: 100%; }
    .partner-panel .main-content .btn,
    .partner-panel .main-content .badge { white-space: normal; max-width: 100%; }
    .partner-panel .main-content .nav-pills,
    .partner-panel .main-content .nav-tabs { flex-wrap: wrap; }
    .partner-panel .section-header,
    .partner-panel .section-header-breadcrumb { flex-wrap: wrap; min-width: 0; max-width: 100%; }
    .partner-panel .main-content .form-inline { flex-wrap: wrap; min-width: 0; max-width: 100%; }
    .partner-panel .main-content .form-inline .form-control { min-width: 0; max-width: 100%; }
    /* technician job page / schedule (fnb-team.css .ft): buttons may wrap their label, rows and cards stay inside */
    .partner-panel .ft .ft-btn { white-space: normal; min-width: 0; max-width: 100%; }
    .partner-panel .ft .ft-btn-row { flex-wrap: wrap; min-width: 0; max-width: 100%; }
    .partner-panel .ft .ws-jobcard { min-width: 0; max-width: 100%; }
    .partner-panel .ft .ft-pill { white-space: normal; max-width: 100%; }
}
