/* ==========================================================================
   Bonbell Console: Apple Human Interface Guidelines theme
   Layered over the live Apex/Bootstrap 4 bundles (vendor + admin).
   Palette: system grays + one accent, Bonbell amber, used sparingly.
   ========================================================================== */

:root {
  /* Backgrounds (HIG grouped style) */
  --bb-bg: #F2F2F7;
  --bb-surface: #FFFFFF;
  --bb-surface-2: #F7F7FA;
  --bb-sidebar: rgba(246, 246, 249, 0.86);
  --bb-fill: rgba(118, 118, 128, 0.12);
  --bb-fill-2: rgba(118, 118, 128, 0.08);
  --bb-fill-3: rgba(118, 118, 128, 0.05);
  --bb-separator: rgba(60, 60, 67, 0.13);
  --bb-separator-strong: rgba(60, 60, 67, 0.22);

  /* Labels */
  --bb-label: #1C1C1E;
  --bb-label-2: rgba(60, 60, 67, 0.78);
  --bb-label-3: rgba(60, 60, 67, 0.52);
  --bb-label-4: rgba(60, 60, 67, 0.30);

  /* Accent: Bonbell amber. Text on the accent is ink, never white. */
  --bb-accent: #F5A623;
  --bb-accent-hover: #EA9A12;
  --bb-accent-press: #D98B06;
  --bb-accent-ink: #1C1C1E;
  --bb-accent-text: #9A5A00;
  --bb-accent-soft: rgba(245, 166, 35, 0.16);
  --bb-accent-soft-2: rgba(245, 166, 35, 0.28);

  /* Semantic (Apple system colours) */
  --bb-blue: #007AFF;
  --bb-blue-text: #0062CC;
  --bb-green: #34C759;
  --bb-green-text: #1F8A3B;
  --bb-red: #FF3B30;
  --bb-red-text: #D70015;
  --bb-orange: #FF9500;
  --bb-indigo: #5856D6;
  --bb-teal: #30B0C7;

  /* Shape and depth */
  --bb-r-sm: 8px;
  --bb-r: 10px;
  --bb-r-lg: 14px;
  --bb-r-xl: 20px;
  --bb-shadow-1: 0 0.5px 0 rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
  --bb-shadow-2: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
  --bb-shadow-3: 0 10px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  --bb-focus: 0 0 0 4px rgba(245, 166, 35, 0.35);

  --bb-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "IBM Plex Sans Arabic",
             "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bb-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "IBM Plex Sans Arabic",
             "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bb-sidebar-w: 248px;
  --bb-navbar-h: 56px;
  --bb-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Typography --------------------------------------------------- */
html.hig body {
  font-family: var(--bb-font) !important;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bb-label) !important;
  background: var(--bb-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
/* Every text element gets the system font, icon fonts keep theirs. */
html.hig body :where(*:not(i):not(.material-icons):not(mat-icon):not(.mat-icon):not(.fa):not([class^="fa-"]):not([class*=" fa-"]):not([class^="ft-"]):not([class*=" ft-"]):not([class^="icon-"]):not([class*=" icon-"]):not([class^="wi-"]):not(.wi):not(.datatable-icon-down):not(.datatable-icon-up):not([class^="datatable-icon"]):not([class*=" datatable-icon"]):not(.vg-icon):not([class*="pi-"]):not(.la):not([class^="la-"])) {
  font-family: var(--bb-font) !important;
}
html.hig h1, html.hig h2, html.hig h3, html.hig .content-header, html.hig .card-title {
  font-family: var(--bb-font-display) !important;
  letter-spacing: -0.02em;
}
html.hig h1, html.hig .h1 { font-size: 28px; font-weight: 700; }
html.hig h2, html.hig .h2 { font-size: 22px; font-weight: 700; }
html.hig h3, html.hig .h3 { font-size: 19px; font-weight: 600; }
html.hig h4, html.hig .h4 { font-size: 17px; font-weight: 600; }
html.hig h5, html.hig .h5 { font-size: 15px; font-weight: 600; }
html.hig h6, html.hig .h6 { font-size: 13px; font-weight: 600; }
html.hig h1, html.hig h2, html.hig h3, html.hig h4, html.hig h5, html.hig h6 { color: var(--bb-label); }
html.hig a { color: var(--bb-accent-text); }
html.hig a:hover { color: var(--bb-accent-press); text-decoration: none; }
html.hig .text-muted, html.hig small.text-muted { color: var(--bb-label-3) !important; }
html.hig .text-primary { color: var(--bb-accent-text) !important; }
html.hig .text-success, html.hig .success { color: var(--bb-green-text) !important; }
html.hig .text-danger, html.hig .danger { color: var(--bb-red-text) !important; }
html.hig .text-info, html.hig .info { color: var(--bb-blue-text) !important; }
html.hig .text-warning, html.hig .warning { color: #B25E00 !important; }
html.hig ::selection { background: var(--bb-accent-soft-2); }
html.hig [dir="rtl"], html.hig [dir="rtl"] body { letter-spacing: 0; }

/* ---------- App shell ---------------------------------------------------- */
html.hig .wrapper { background: var(--bb-bg) !important; }
html.hig .page-loading { background: var(--bb-bg) !important; }
html.hig .main-panel { background: var(--bb-bg) !important; }
html.hig .main-content .content-wrapper { padding: 20px 28px 32px !important; }
@media (max-width: 991.98px) {
  html.hig .main-content .content-wrapper { padding: 14px 14px 28px !important; }
}

/* Sidebar: light, translucent, like a Mac sidebar. */
html.hig .app-sidebar,
html.hig .app-sidebar[data-background-color],
html.hig .off-canvas-sidebar {
  background: var(--bb-sidebar) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-inline-end: 1px solid var(--bb-separator) !important;
  box-shadow: none !important;
  color: var(--bb-label) !important;
}
html.hig .app-sidebar .sidebar-background,
html.hig .app-sidebar .sidebar-background:after { display: none !important; background: none !important; }
html.hig .app-sidebar .sidebar-header { background: transparent !important; border-bottom: 0 !important; }
html.hig .app-sidebar .sidebar-header .logo { background: transparent !important; padding: 14px 14px 10px !important; }
html.hig .app-sidebar .logo .logo-text,
html.hig .app-sidebar .logo .logo-text .text {
  color: var(--bb-label) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
}
html.hig .app-sidebar .logo .logo-img img {
  border-radius: 9px !important;
  box-shadow: 0 0 0 0.5px var(--bb-separator-strong);
  background: #fff;
}
html.hig .app-sidebar .sidebar-header a.nav-toggle,
html.hig .app-sidebar .sidebar-header a.nav-close,
html.hig .app-sidebar .sidebar-header a.nav-toggle i,
html.hig .app-sidebar .sidebar-header a.nav-close i { color: var(--bb-label-3) !important; }

html.hig .app-sidebar .navigation { padding: 4px 10px 24px !important; }
html.hig .app-sidebar .navigation li > a,
html.hig .app-sidebar[data-background-color] .navigation li > a {
  color: var(--bb-label) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 7px 10px !important;
  margin: 1px 0 !important;
  border-radius: var(--bb-r-sm) !important;
  line-height: 20px !important;
  transition: background-color .15s var(--bb-ease);
  background: transparent !important;
  text-transform: none !important;
}
html.hig .app-sidebar .navigation li > a:hover { background: var(--bb-fill-2) !important; }
html.hig .app-sidebar .navigation i,
html.hig .app-sidebar[data-background-color] .navigation i {
  color: var(--bb-accent-text) !important;
  font-size: 17px !important;
  width: 22px !important;
  text-align: center;
  margin-inline-end: 8px !important;
  opacity: 0.95;
}
html.hig .app-sidebar .navigation li.active > a,
html.hig .app-sidebar .navigation li.active > a:hover {
  background: var(--bb-accent-soft-2) !important;
  color: var(--bb-label) !important;
  font-weight: 600 !important;
}
html.hig .app-sidebar .navigation li.active > a:before { display: none !important; }
html.hig .app-sidebar .navigation li.active > a i { color: var(--bb-label) !important; }
html.hig .app-sidebar .navigation .menu-content { background: transparent !important; padding-inline-start: 14px !important; }
html.hig .app-sidebar .navigation .menu-content li > a { font-weight: 400 !important; font-size: 13.5px !important; }
html.hig .app-sidebar .navigation li.has-sub > a:after { color: var(--bb-label-3) !important; }
html.hig .app-sidebar .navigation .badge {
  background: var(--bb-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 2px 7px !important;
}
html.hig .app-sidebar .sidebar-content::-webkit-scrollbar { width: 0; }

/* Top bar: frosted toolbar */
html.hig .header-navbar,
html.hig .navbar.header-navbar {
  background: rgba(242, 242, 247, 0.78) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--bb-separator) !important;
  box-shadow: none !important;
  min-height: var(--bb-navbar-h);
}
html.hig .header-navbar .nav-link,
html.hig .header-navbar .nav-link i,
html.hig .header-navbar .blue-grey,
html.hig .header-navbar .navbar-nav .nav-link span { color: var(--bb-label-2) !important; }
html.hig .header-navbar .nav-link:hover i { color: var(--bb-label) !important; }
html.hig .header-navbar .navbar-nav > .nav-item > .nav-link {
  border-radius: var(--bb-r-sm);
  transition: background-color .15s var(--bb-ease);
}
html.hig .header-navbar .navbar-nav > .nav-item > .nav-link:hover { background: var(--bb-fill-2); }
html.hig .header-navbar .notification.badge { background: var(--bb-red) !important; }

html.hig footer, html.hig .footer { background: transparent !important; color: var(--bb-label-3) !important; border: 0 !important; }
html.hig footer a { color: var(--bb-label-2) !important; }

/* ---------- Cards / grouped containers ---------------------------------- */
html.hig .card {
  background: var(--bb-surface) !important;
  border: 0 !important;
  border-radius: var(--bb-r-lg) !important;
  box-shadow: var(--bb-shadow-1) !important;
  margin-bottom: 20px;
}
html.hig .card .card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--bb-separator) !important;
  padding: 16px 20px 12px !important;
}
html.hig .card .card-header:first-child { border-radius: var(--bb-r-lg) var(--bb-r-lg) 0 0 !important; }
html.hig .card .card-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--bb-label) !important;
  margin-bottom: 0;
}
html.hig .card .card-body, html.hig .card .card-block { padding: 18px 20px !important; }
html.hig .card .card-footer { background: var(--bb-surface-2) !important; border-top: 1px solid var(--bb-separator) !important; }
html.hig .card[class*="bg-"]:not(.bg-white) { box-shadow: var(--bb-shadow-2) !important; }
html.hig .content-header {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--bb-label) !important;
  margin: 4px 0 2px;
}
html.hig .content-sub-header { color: var(--bb-label-3) !important; }
html.hig hr { border-top-color: var(--bb-separator) !important; }
html.hig .border, html.hig .border-bottom, html.hig .border-top { border-color: var(--bb-separator) !important; }
html.hig .shadow, html.hig .shadow-sm, html.hig .shadow-lg, html.hig .box-shadow-1, html.hig .box-shadow-2 { box-shadow: var(--bb-shadow-1) !important; }

/* ---------- Buttons ------------------------------------------------------ */
html.hig .btn {
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: var(--bb-r) !important;
  padding: 7px 16px !important;
  line-height: 20px !important;
  border-width: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: -0.005em;
  transition: background-color .15s var(--bb-ease), transform .08s var(--bb-ease), opacity .15s;
}
html.hig .btn:active { transform: scale(0.98); }
html.hig .btn:focus, html.hig .btn.focus { box-shadow: var(--bb-focus) !important; outline: 0; }
html.hig .btn-sm, html.hig .btn-group-sm > .btn { padding: 4px 11px !important; font-size: 13px !important; border-radius: var(--bb-r-sm) !important; }
html.hig .btn-lg, html.hig .btn-group-lg > .btn { padding: 11px 22px !important; font-size: 16px !important; border-radius: 12px !important; }
html.hig .btn.btn-raised, html.hig .btn-raised { box-shadow: none !important; }

html.hig .btn-primary, html.hig .btn-warning, html.hig .btn-raised.btn-primary {
  background: var(--bb-accent) !important;
  color: var(--bb-accent-ink) !important;
}
html.hig .btn-primary:hover, html.hig .btn-warning:hover { background: var(--bb-accent-hover) !important; color: var(--bb-accent-ink) !important; }
html.hig .btn-primary:active, html.hig .btn-warning:active { background: var(--bb-accent-press) !important; }
html.hig .btn-secondary, html.hig .btn-light, html.hig .btn-default, html.hig .btn-outline-secondary, html.hig .btn-outline-light {
  background: var(--bb-fill) !important;
  color: var(--bb-label) !important;
}
html.hig .btn-secondary:hover, html.hig .btn-light:hover, html.hig .btn-default:hover,
html.hig .btn-outline-secondary:hover, html.hig .btn-outline-light:hover { background: rgba(118, 118, 128, 0.2) !important; }
html.hig .btn-success { background: var(--bb-green) !important; color: #fff !important; }
html.hig .btn-success:hover { background: #2DB24F !important; }
html.hig .btn-danger { background: var(--bb-red) !important; color: #fff !important; }
html.hig .btn-danger:hover { background: #E6352B !important; }
html.hig .btn-info { background: var(--bb-blue) !important; color: #fff !important; }
html.hig .btn-info:hover { background: #006EE6 !important; }
html.hig .btn-dark { background: var(--bb-label) !important; color: #fff !important; }
html.hig .btn-outline-primary, html.hig .btn-outline-warning {
  background: var(--bb-accent-soft) !important; color: var(--bb-accent-text) !important;
}
html.hig .btn-outline-primary:hover, html.hig .btn-outline-warning:hover { background: var(--bb-accent-soft-2) !important; }
html.hig .btn-outline-success { background: rgba(52, 199, 89, 0.12) !important; color: var(--bb-green-text) !important; }
html.hig .btn-outline-danger { background: rgba(255, 59, 48, 0.10) !important; color: var(--bb-red-text) !important; }
html.hig .btn-outline-info { background: rgba(0, 122, 255, 0.10) !important; color: var(--bb-blue-text) !important; }
html.hig .btn-outline-success:hover { background: rgba(52, 199, 89, 0.2) !important; }
html.hig .btn-outline-danger:hover { background: rgba(255, 59, 48, 0.18) !important; }
html.hig .btn-outline-info:hover { background: rgba(0, 122, 255, 0.18) !important; }
html.hig .btn-link { background: transparent !important; color: var(--bb-accent-text) !important; }
html.hig .btn:disabled, html.hig .btn.disabled { opacity: 0.4 !important; }
html.hig .btn i { margin-inline-end: 2px; }
html.hig .btn-group > .btn { border-radius: 0 !important; }
html.hig .btn-group > .btn:first-child { border-start-start-radius: var(--bb-r) !important; border-end-start-radius: var(--bb-r) !important; }
html.hig .btn-group > .btn:last-child { border-start-end-radius: var(--bb-r) !important; border-end-end-radius: var(--bb-r) !important; }
html.hig .btn-group-toggle > .btn, html.hig .btn-group.segmented > .btn { background: var(--bb-fill) !important; color: var(--bb-label) !important; }
html.hig .btn-group-toggle > .btn.active { background: #fff !important; box-shadow: 0 1px 3px rgba(0,0,0,.12) !important; }

/* ---------- Forms -------------------------------------------------------- */
html.hig label, html.hig .form-group label, html.hig .control-label, html.hig .col-form-label {
  color: var(--bb-label-2) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  margin-bottom: 6px;
  text-transform: none !important;
}
html.hig .form-control,
html.hig input.form-control,
html.hig select.form-control,
html.hig textarea.form-control,
html.hig .custom-select,
html.hig .ng-select .ng-select-container {
  background-color: var(--bb-surface) !important;
  border: 1px solid var(--bb-separator-strong) !important;
  border-radius: var(--bb-r) !important;
  color: var(--bb-label) !important;
  font-size: 14.5px !important;
  min-height: 38px;
  padding: 8px 12px;
  box-shadow: none !important;
  transition: border-color .15s var(--bb-ease), box-shadow .15s var(--bb-ease);
}
html.hig textarea.form-control { min-height: 84px; line-height: 1.45; }
html.hig .form-control:hover, html.hig .custom-select:hover { border-color: rgba(60, 60, 67, 0.36) !important; }
html.hig .form-control:focus,
html.hig .custom-select:focus,
html.hig .ng-select.ng-select-focused .ng-select-container {
  border-color: var(--bb-accent) !important;
  box-shadow: var(--bb-focus) !important;
  outline: 0;
}
html.hig .form-control::placeholder { color: var(--bb-label-4) !important; }
html.hig .form-control:disabled, html.hig .form-control[readonly] { background-color: var(--bb-fill-2) !important; color: var(--bb-label-2) !important; }
html.hig .form-control.is-invalid, html.hig .form-control.ng-invalid.ng-touched:not(form) { border-color: var(--bb-red) !important; }
html.hig .invalid-feedback, html.hig .text-danger.small, html.hig .error-message { color: var(--bb-red-text) !important; font-size: 12.5px; }
html.hig .input-group-text {
  background: var(--bb-fill-2) !important;
  border: 1px solid var(--bb-separator-strong) !important;
  color: var(--bb-label-2) !important;
  border-radius: var(--bb-r) !important;
}
html.hig .input-group > .form-control:not(:last-child) { border-start-end-radius: 0 !important; border-end-end-radius: 0 !important; }
html.hig .input-group > .form-control:not(:first-child) { border-start-start-radius: 0 !important; border-end-start-radius: 0 !important; }
html.hig .input-group-append .input-group-text, html.hig .input-group-append .btn { border-start-start-radius: 0 !important; border-end-start-radius: 0 !important; }
html.hig .input-group-prepend .input-group-text, html.hig .input-group-prepend .btn { border-start-end-radius: 0 !important; border-end-end-radius: 0 !important; }
html.hig .form-group { margin-bottom: 16px; }

/* Native checkboxes and radios in the accent colour */
html.hig input[type="checkbox"], html.hig input[type="radio"] { accent-color: var(--bb-accent); }
html.hig .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--bb-accent) !important;
  border-color: var(--bb-accent) !important;
}
/* Bootstrap custom switches become iOS switches */
html.hig .custom-switch .custom-control-label::before {
  width: 42px !important; height: 26px !important; border-radius: 13px !important;
  background: rgba(120, 120, 128, 0.16) !important; border: 0 !important; top: -2px !important;
  left: -50px !important;
}
html.hig .custom-switch .custom-control-label::after {
  width: 22px !important; height: 22px !important; border-radius: 50% !important;
  background: #fff !important; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.04) !important;
  top: 0 !important; left: -48px !important;
}
html.hig .custom-switch .custom-control-input:checked ~ .custom-control-label::before { background: var(--bb-green) !important; }
html.hig .custom-switch .custom-control-input:checked ~ .custom-control-label::after { transform: translateX(16px) !important; }
html.hig .custom-switch { padding-left: 52px !important; }

/* Angular Material slide toggles / checkboxes */
html.hig .mat-slide-toggle-bar { width: 42px !important; height: 26px !important; border-radius: 13px !important; background-color: rgba(120,120,128,.16) !important; }
html.hig .mat-slide-toggle-thumb-container { top: 2px !important; left: 2px !important; width: 22px !important; height: 22px !important; }
html.hig .mat-slide-toggle-thumb { width: 22px !important; height: 22px !important; background: #fff !important; box-shadow: 0 2px 4px rgba(0,0,0,.2) !important; }
html.hig .mat-slide-toggle.mat-checked .mat-slide-toggle-bar { background-color: var(--bb-green) !important; }
html.hig .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container { transform: translate3d(16px, 0, 0) !important; }
html.hig .mat-checkbox-checked .mat-checkbox-background, html.hig .mat-checkbox-indeterminate .mat-checkbox-background { background-color: var(--bb-accent) !important; }
html.hig .mat-radio-button.mat-accent .mat-radio-inner-circle, html.hig .mat-radio-button .mat-radio-inner-circle { background-color: var(--bb-accent) !important; }
html.hig .mat-radio-button.mat-radio-checked .mat-radio-outer-circle { border-color: var(--bb-accent) !important; }
html.hig .mat-form-field-appearance-outline .mat-form-field-outline { color: var(--bb-separator-strong) !important; }
html.hig .mat-form-field.mat-focused .mat-form-field-ripple, html.hig .mat-form-field.mat-focused .mat-form-field-outline-thick { color: var(--bb-accent) !important; background-color: var(--bb-accent); }
html.hig .mat-form-field.mat-focused .mat-form-field-label { color: var(--bb-accent-text) !important; }
html.hig .mat-tab-group.mat-primary .mat-ink-bar, html.hig .mat-tab-nav-bar.mat-primary .mat-ink-bar { background-color: var(--bb-accent) !important; }
html.hig .mat-select-panel, html.hig .mat-menu-panel, html.hig .mat-autocomplete-panel { border-radius: var(--bb-r) !important; box-shadow: var(--bb-shadow-3) !important; }
html.hig .mat-option.mat-selected:not(.mat-option-disabled) { color: var(--bb-accent-text) !important; }

/* ng-select */
html.hig .ng-select .ng-select-container { min-height: 38px !important; }
html.hig .ng-dropdown-panel { border: 0 !important; border-radius: var(--bb-r) !important; box-shadow: var(--bb-shadow-3) !important; overflow: hidden; }
html.hig .ng-dropdown-panel .ng-option.ng-option-marked { background: var(--bb-fill-2) !important; }
html.hig .ng-dropdown-panel .ng-option.ng-option-selected { background: var(--bb-accent-soft) !important; }
html.hig .ng-select.ng-select-multiple .ng-value { background: var(--bb-accent-soft) !important; border: 0 !important; border-radius: 6px !important; color: var(--bb-label) !important; }

/* ---------- Tables ------------------------------------------------------- */
html.hig .table { color: var(--bb-label); background: transparent; margin-bottom: 0; }
html.hig .table thead th,
html.hig .table th {
  background: var(--bb-surface-2) !important;
  color: var(--bb-label-3) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-top: 0 !important;
  border-bottom: 1px solid var(--bb-separator) !important;
  padding: 10px 14px !important;
  white-space: nowrap;
  vertical-align: middle !important;
}
html.hig .table td {
  border-top: 1px solid var(--bb-separator) !important;
  padding: 11px 14px !important;
  vertical-align: middle !important;
}
html.hig .table tbody tr { transition: background-color .12s; }
html.hig .table-hover tbody tr:hover, html.hig .table tbody tr:hover { background: var(--bb-fill-3) !important; }
html.hig .table-striped tbody tr:nth-of-type(odd) { background: transparent !important; }
html.hig .table-bordered, html.hig .table-bordered td, html.hig .table-bordered th { border-left: 0 !important; border-right: 0 !important; }
html.hig .table-responsive { border-radius: var(--bb-r-lg); }
html.hig .card .table-responsive, html.hig .card > .table { border-radius: 0 0 var(--bb-r-lg) var(--bb-r-lg); }
html.hig .table thead.thead-dark th, html.hig .table .thead-dark th { background: var(--bb-surface-2) !important; color: var(--bb-label-3) !important; }

/* ngx-datatable */
html.hig .ngx-datatable.bootstrap, html.hig .ngx-datatable.material {
  background: var(--bb-surface) !important;
  border-radius: var(--bb-r-lg) !important;
  box-shadow: none !important;
  font-size: 14px !important;
}
html.hig .ngx-datatable .datatable-header {
  background: var(--bb-surface-2) !important;
  border-bottom: 1px solid var(--bb-separator) !important;
}
html.hig .ngx-datatable .datatable-header .datatable-header-cell {
  color: var(--bb-label-3) !important; font-weight: 600 !important; font-size: 12px !important;
  text-transform: uppercase; letter-spacing: .03em;
}
html.hig .ngx-datatable .datatable-body .datatable-body-row { border-top: 1px solid var(--bb-separator) !important; }
html.hig .ngx-datatable .datatable-body .datatable-body-row:hover,
html.hig .ngx-datatable.bootstrap .datatable-body .datatable-body-row.datatable-row-even { background: transparent !important; }
html.hig .ngx-datatable .datatable-body .datatable-body-row:hover { background: var(--bb-fill-3) !important; }
html.hig .ngx-datatable.bootstrap .datatable-body .datatable-body-row.active { background: var(--bb-accent-soft) !important; color: var(--bb-label) !important; }
html.hig .ngx-datatable .datatable-footer {
  background: var(--bb-surface-2) !important; color: var(--bb-label-2) !important;
  border-top: 1px solid var(--bb-separator) !important;
}
html.hig .ngx-datatable .datatable-footer .datatable-pager li.active a { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; border-radius: 7px; }

/* ng2-smart-table */
html.hig ng2-smart-table table { background: var(--bb-surface); border-radius: var(--bb-r-lg); overflow: hidden; }
html.hig ng2-smart-table thead tr th, html.hig ng2-smart-table thead tr td { background: var(--bb-surface-2) !important; border-color: var(--bb-separator) !important; }
html.hig ng2-smart-table tbody tr td { border-color: var(--bb-separator) !important; }
html.hig ng2-smart-table input.form-control { min-height: 32px; padding: 5px 10px; }

/* ---------- Pagination, badges, tabs ------------------------------------ */
html.hig .pagination .page-link {
  border: 0 !important; background: transparent !important; color: var(--bb-label-2) !important;
  border-radius: 8px !important; margin: 0 2px; min-width: 32px; text-align: center; font-weight: 500;
}
html.hig .pagination .page-link:hover { background: var(--bb-fill-2) !important; }
html.hig .pagination .page-item.active .page-link { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }
html.hig .pagination .page-item.disabled .page-link { opacity: .35; }
html.hig ngb-pagination .pagination, html.hig pagination-controls .ngx-pagination { margin: 14px 0 4px; }
html.hig .ngx-pagination .current { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; border-radius: 8px; }
html.hig .ngx-pagination a, html.hig .ngx-pagination button { border-radius: 8px !important; }

html.hig .badge {
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  padding: 3px 9px !important;
  letter-spacing: 0;
}
html.hig .badge-primary, html.hig .badge-warning { background: var(--bb-accent-soft-2) !important; color: #7A4700 !important; }
html.hig .badge-success { background: rgba(52, 199, 89, 0.16) !important; color: var(--bb-green-text) !important; }
html.hig .badge-danger { background: rgba(255, 59, 48, 0.14) !important; color: var(--bb-red-text) !important; }
html.hig .badge-info { background: rgba(0, 122, 255, 0.12) !important; color: var(--bb-blue-text) !important; }
html.hig .badge-secondary, html.hig .badge-light, html.hig .badge-dark { background: var(--bb-fill) !important; color: var(--bb-label-2) !important; }

/* Tabs become a segmented control when they are nav-pills, a quiet underline otherwise */
html.hig .nav-tabs { border-bottom: 1px solid var(--bb-separator) !important; gap: 4px; }
html.hig .nav-tabs .nav-link {
  border: 0 !important; color: var(--bb-label-2) !important; font-weight: 500;
  padding: 9px 12px !important; border-radius: 0 !important; background: transparent !important;
  border-bottom: 2px solid transparent !important; margin-bottom: -1px;
}
html.hig .nav-tabs .nav-link:hover { color: var(--bb-label) !important; }
html.hig .nav-tabs .nav-link.active, html.hig .nav-tabs .nav-item.show .nav-link {
  color: var(--bb-label) !important; font-weight: 600; border-bottom-color: var(--bb-accent) !important;
}
html.hig .nav-pills {
  background: var(--bb-fill); border-radius: 9px; padding: 2px; display: inline-flex; flex-wrap: wrap; gap: 0;
}
html.hig .nav-pills .nav-link {
  border-radius: 7px !important; color: var(--bb-label) !important; font-weight: 500; font-size: 13.5px;
  padding: 5px 14px !important; background: transparent !important;
}
html.hig .nav-pills .nav-link.active, html.hig .nav-pills .show > .nav-link {
  background: #fff !important; color: var(--bb-label) !important; font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04) !important;
}

/* ---------- Dropdowns, popovers, tooltips -------------------------------- */
html.hig .dropdown-menu {
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: var(--bb-shadow-3) !important;
  padding: 6px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
html.hig .dropdown-item { border-radius: 7px; padding: 7px 10px !important; color: var(--bb-label) !important; font-size: 14px; }
html.hig .dropdown-item:hover, html.hig .dropdown-item:focus { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }
html.hig .dropdown-item:hover i { color: var(--bb-accent-ink) !important; }
html.hig .dropdown-divider { border-top-color: var(--bb-separator) !important; margin: 4px 0; }
html.hig .tooltip-inner { background: rgba(28, 28, 30, 0.92) !important; border-radius: 7px !important; font-size: 12.5px; padding: 5px 9px; }
html.hig .popover { border: 0 !important; border-radius: 12px !important; box-shadow: var(--bb-shadow-3) !important; }

/* ---------- Modals become sheets ---------------------------------------- */
html.hig .modal-backdrop.show { opacity: 1 !important; background: rgba(0, 0, 0, 0.32) !important; }
html.hig .modal-backdrop { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
html.hig .modal-content {
  border: 0 !important;
  border-radius: var(--bb-r-xl) !important;
  box-shadow: var(--bb-shadow-3) !important;
  overflow: hidden;
  background: var(--bb-surface) !important;
}
html.hig .modal-header {
  border-bottom: 1px solid var(--bb-separator) !important;
  padding: 16px 20px !important;
  align-items: center;
  background: var(--bb-surface) !important;
}
html.hig .modal-header .modal-title, html.hig .modal-title { font-size: 17px !important; font-weight: 600 !important; color: var(--bb-label) !important; }
html.hig .modal-header .close {
  width: 30px; height: 30px; border-radius: 50%; padding: 0 !important; margin: 0 !important;
  background: var(--bb-fill) !important; opacity: 1 !important; color: var(--bb-label-2) !important;
  font-size: 20px; line-height: 30px; text-shadow: none;
}
html.hig .modal-body { padding: 18px 20px !important; }
html.hig .modal-footer {
  border-top: 1px solid var(--bb-separator) !important;
  padding: 12px 20px !important;
  background: var(--bb-surface-2) !important;
  gap: 8px;
}
html.hig .modal-footer > * { margin: 0 !important; }
html.hig .modal.fade .modal-dialog { transition: transform .28s var(--bb-ease), opacity .2s; transform: translateY(16px) scale(.98); }
html.hig .modal.show .modal-dialog { transform: none; }
html.hig .mat-dialog-container { border-radius: var(--bb-r-xl) !important; box-shadow: var(--bb-shadow-3) !important; padding: 20px !important; }

/* ---------- Alerts: toasts, SweetAlert2, bootstrap alerts ---------------- */
html.hig #toast-container > div,
html.hig .toast-container .ngx-toastr {
  border-radius: 14px !important;
  box-shadow: var(--bb-shadow-3) !important;
  background-image: none !important;
  padding: 14px 16px 14px 52px !important;
  opacity: 1 !important;
  font-size: 14px;
  width: 340px !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: var(--bb-label) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  position: relative;
}
html.hig .toast-container .ngx-toastr::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--bb-blue);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); mask: radial-gradient(circle, #000 60%, transparent 61%);
}
html.hig .toast-container .toast-success::before { background: var(--bb-green); }
html.hig .toast-container .toast-error::before { background: var(--bb-red); }
html.hig .toast-container .toast-warning::before { background: var(--bb-orange); }
html.hig .toast-container .toast-title { font-weight: 600; color: var(--bb-label) !important; }
html.hig .toast-container .toast-message { color: var(--bb-label-2) !important; }
html.hig .toast-container .toast-close-button { color: var(--bb-label-3) !important; text-shadow: none; }
html.hig .toast-container .toast-progress { background: var(--bb-label-4) !important; height: 2px; }

html.hig .swal2-container.swal2-backdrop-show, html.hig .swal2-container.swal2-shown { background: rgba(0, 0, 0, 0.32) !important; }
html.hig .swal2-popup {
  border-radius: var(--bb-r-xl) !important;
  padding: 22px 20px 18px !important;
  width: 340px !important;
  box-shadow: var(--bb-shadow-3) !important;
  background: rgba(255, 255, 255, 0.97) !important;
}
html.hig .swal2-popup .swal2-title { font-size: 17px !important; font-weight: 600 !important; color: var(--bb-label) !important; margin: 4px 0 6px !important; }
html.hig .swal2-popup .swal2-content, html.hig .swal2-popup .swal2-html-container { font-size: 14px !important; color: var(--bb-label-2) !important; }
html.hig .swal2-popup .swal2-icon { transform: scale(.72); margin: 0 auto -6px !important; }
html.hig .swal2-popup .swal2-actions { flex-direction: column-reverse; gap: 8px; width: 100%; margin-top: 18px !important; }
html.hig .swal2-popup .swal2-actions button {
  width: 100% !important; margin: 0 !important; border-radius: 12px !important;
  font-weight: 600 !important; font-size: 15px !important; padding: 10px !important; box-shadow: none !important;
}
html.hig .swal2-popup .swal2-confirm { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }
html.hig .swal2-popup .swal2-cancel { background: var(--bb-fill) !important; color: var(--bb-label) !important; }
html.hig .swal2-popup .swal2-deny { background: rgba(255, 59, 48, .12) !important; color: var(--bb-red-text) !important; }
html.hig .swal2-popup .swal2-input, html.hig .swal2-popup .swal2-textarea, html.hig .swal2-popup .swal2-select {
  border-radius: var(--bb-r) !important; border: 1px solid var(--bb-separator-strong) !important; box-shadow: none !important; font-size: 15px;
}
html.hig .swal2-popup.swal2-toast { width: auto !important; border-radius: 14px !important; padding: 10px 14px !important; }
html.hig .swal2-popup.swal2-toast .swal2-actions { flex-direction: row; }

html.hig .alert {
  border: 0 !important; border-radius: var(--bb-r-lg) !important; padding: 12px 16px !important; font-size: 14px;
}
html.hig .alert-success { background: rgba(52, 199, 89, 0.12) !important; color: #135F28 !important; }
html.hig .alert-danger { background: rgba(255, 59, 48, 0.10) !important; color: #9A0F0A !important; }
html.hig .alert-warning { background: var(--bb-accent-soft) !important; color: #6B3E00 !important; }
html.hig .alert-info, html.hig .alert-primary { background: rgba(0, 122, 255, 0.09) !important; color: #00449A !important; }

/* ---------- Misc widgets ------------------------------------------------- */
html.hig .progress { border-radius: 999px !important; background: var(--bb-fill) !important; height: 8px; }
html.hig .progress-bar { background: var(--bb-accent) !important; border-radius: 999px; }
html.hig .list-group-item { border-color: var(--bb-separator) !important; }
html.hig .list-group-item.active { background: var(--bb-accent-soft-2) !important; color: var(--bb-label) !important; border-color: var(--bb-separator) !important; }
html.hig .breadcrumb { background: transparent !important; padding: 0 !important; font-size: 13px; }
html.hig .breadcrumb-item a { color: var(--bb-label-3) !important; }
html.hig .img-thumbnail { border-radius: var(--bb-r) !important; border-color: var(--bb-separator) !important; }
html.hig .ngx-spinner-overlay, html.hig .overlay { background: rgba(242, 242, 247, 0.72) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.hig .ngx-spinner-overlay p { color: var(--bb-label-2) !important; font-weight: 500; }
html.hig .ngx-spinner-overlay .la-ball-pulse > div,
html.hig .ngx-spinner-overlay [class*="la-"] > div { background-color: var(--bb-accent) !important; color: var(--bb-accent) !important; }
html.hig .pace .pace-progress { background: var(--bb-accent) !important; height: 2px !important; }
html.hig .pace .pace-progress-inner { box-shadow: none !important; }
html.hig .ps__thumb-y { background-color: var(--bb-label-4) !important; width: 6px !important; }
html.hig ::-webkit-scrollbar { width: 10px; height: 10px; }
html.hig ::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, 0.22); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
html.hig ::-webkit-scrollbar-thumb:hover { background-color: rgba(60, 60, 67, 0.36); }
html.hig ::-webkit-scrollbar-track { background: transparent; }
html.hig :focus-visible { outline: 0; box-shadow: var(--bb-focus); border-radius: 6px; }
html.hig .bg-primary { background-color: var(--bb-accent) !important; color: var(--bb-accent-ink); }
html.hig .bg-dark { background-color: var(--bb-label) !important; }

/* Notification sidebar (Apex) */
html.hig .notification-sidebar, html.hig app-notification-sidebar .notification-sidebar {
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--bb-shadow-3) !important;
}
html.hig .notification-dropdown { width: 360px !important; }
html.hig .notification-dropdown .dropdown-item.noti-container:hover { background: var(--bb-fill-2) !important; color: var(--bb-label) !important; }
html.hig .notification-dropdown .dropdown-item.noti-container:hover * { color: inherit !important; }

/* ---------- Login screens ----------------------------------------------- */
html.hig .login-page, html.hig .full-page-wrapper, html.hig .auth-page,
html.hig app-login > section, html.hig app-login .bg-full-screen-image {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(245, 166, 35, 0.18), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(88, 86, 214, 0.10), transparent 60%),
              var(--bb-bg) !important;
}

/* ==========================================================================
   Bonbell Console: fixes found while rendering the live screens, and styles
   for the UX layer (console-ux.js).
   ========================================================================== */
/* Apex draws a hover sweep and a coloured edge on every sidebar link. */
html.hig .app-sidebar .navigation li > a { border: 0 !important; box-shadow: none !important; overflow: hidden; }
html.hig .app-sidebar .navigation li > a:before { display: none !important; }
html.hig .app-sidebar .navigation li { border: 0 !important; box-shadow: none !important; }
html.hig .app-sidebar .navigation li:before, html.hig .app-sidebar .navigation li:after { display: none !important; }
html.hig .app-sidebar .navigation .menu-title,
html.hig label, html.hig .custom-control-label, html.hig .card-title, html.hig .btn,
html.hig .nav-link, html.hig th, html.hig .modal-title { letter-spacing: normal !important; }
html.hig .app-sidebar .logo .logo-img img.bb-img-broken { visibility: hidden; }
html.hig .app-sidebar .logo .logo-img {
  min-width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  background: var(--bb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1C1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18M5 10v10h14V10M4 10l2-6h12l2 6'/%3E%3C/svg%3E") center/18px no-repeat;
}
html.hig .app-sidebar .logo .logo-img img { width: 34px !important; height: 34px !important; object-fit: cover; }

/* Cancel buttons in dialog footers are often btn-warning: show them as secondary. */
html.hig .modal-footer .btn-warning, html.hig .modal-footer .btn-secondary, html.hig .modal-footer .btn-light {
  background: var(--bb-fill) !important; color: var(--bb-label) !important;
}
html.hig .btn-warning { background: var(--bb-accent-soft-2) !important; color: #6B3E00 !important; }
html.hig .btn-warning:hover { background: rgba(245, 166, 35, 0.38) !important; color: #6B3E00 !important; }
html.hig .border-primary { border-color: var(--bb-separator-strong) !important; }

/* Large title, HIG style */
html.hig .bb-large-title {
  font-family: var(--bb-font-display) !important;
  font-size: 30px !important; font-weight: 700 !important; letter-spacing: -0.025em !important;
  color: var(--bb-label); margin: 2px 2px 18px; line-height: 1.15;
}
@media (max-width: 767.98px) { html.hig .bb-large-title { font-size: 26px !important; margin-bottom: 12px; } }

/* Broken images keep their box but drop the alt text */
html.hig img.bb-img-broken { color: transparent; font-size: 0; background: var(--bb-fill-2); }

/* Required fields */
html.hig label.bb-required::after { content: " *"; color: var(--bb-red-text); }

/* ---------- Dialog forms: 2-column grid ---------------------------------- */
@media (min-width: 768px) {
  html.hig .modal-dialog.modal-lg, html.hig .modal-dialog.modal-xl { max-width: 880px; }
  html.hig .bb-form-grid {
    display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 2px;
    margin-left: 0 !important; margin-right: 0 !important;
  }
  html.hig .bb-form-grid > * { max-width: none !important; width: auto !important; flex: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  html.hig .bb-form-grid > .bb-span-full { grid-column: 1 / -1; }
}
html.hig .bb-form-grid > .bb-media {
  display: grid; grid-template-columns: 120px 1fr; column-gap: 16px; align-items: center;
  padding: 12px !important; background: var(--bb-surface-2); border-radius: var(--bb-r-lg); margin-bottom: 14px;
}
html.hig .bb-form-grid > .bb-media > label { grid-column: 2; margin: 0 0 6px !important; text-align: start !important; width: auto !important; }
html.hig .bb-form-grid > .bb-media > .text-center { grid-column: 1; grid-row: 1 / span 3; width: 120px !important; }
html.hig .bb-form-grid > .bb-media > br { display: none; }
html.hig .bb-form-grid > .bb-media > fieldset { grid-column: 2; margin: 0 !important; }
html.hig .bb-form-grid > .bb-media img.inimage, html.hig .bb-form-grid > .bb-media .text-center img {
  width: 120px !important; height: 120px !important; object-fit: cover; border-radius: 12px;
  box-shadow: 0 0 0 0.5px var(--bb-separator-strong); background: #fff; max-width: none;
}
html.hig .modal-body .form-group { margin-bottom: 14px !important; }
html.hig .modal-body textarea.form-control { min-height: 92px; }
html.hig .bb-rtl-field { text-align: right; }

/* File pickers */
html.hig .custom-file-label {
  border: 1px solid var(--bb-separator-strong) !important; border-radius: var(--bb-r) !important; height: 38px;
  line-height: 24px; color: var(--bb-label-2) !important; background: #fff !important; box-shadow: none !important;
}
html.hig .custom-file-label::after {
  background: var(--bb-fill) !important; color: var(--bb-label) !important; border: 0 !important; height: 36px;
  line-height: 24px; border-radius: 0 9px 9px 0 !important; font-weight: 600;
}
html.hig [dir="rtl"] .custom-file-label::after { border-radius: 9px 0 0 9px !important; }

/* Scenario picker cards (Delivery / Dine-in / ...) become compact choice tiles */
html.hig .modal-body .card.cursor-pointer {
  min-height: 0 !important; padding: 12px 8px !important; border-radius: 12px !important;
  box-shadow: 0 0 0 1px var(--bb-separator-strong) !important; transition: box-shadow .15s, background-color .15s;
}
html.hig .modal-body .card.cursor-pointer img { width: 40px !important; height: 40px; object-fit: contain; }
html.hig .modal-body .card.cursor-pointer p { font-size: 13px; font-weight: 600; margin-top: 6px !important; }
html.hig .modal-body .card.cursor-pointer:hover { background: var(--bb-surface-2) !important; }

/* ---------- Quick jump palette ------------------------------------------ */
.bb-palette { position: fixed; inset: 0; z-index: 2147483000; display: none; }
.bb-palette.is-open { display: block; }
.bb-palette-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.bb-palette-panel {
  position: relative; margin: 12vh auto 0; width: min(560px, calc(100vw - 32px));
  background: rgba(250, 250, 252, .96); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-radius: 16px; box-shadow: var(--bb-shadow-3); overflow: hidden; font-family: var(--bb-font);
  animation: bbPop .18s var(--bb-ease);
}
@keyframes bbPop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.bb-palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--bb-separator); color: var(--bb-label-3); }
.bb-palette-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--bb-label); font-family: var(--bb-font); }
.bb-palette kbd, .bb-nav-search kbd {
  font-family: var(--bb-font); font-size: 11px; color: var(--bb-label-3); background: var(--bb-fill-2);
  border-radius: 5px; padding: 2px 6px; box-shadow: none; font-weight: 500;
}
.bb-palette-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.bb-palette-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--bb-label); font-size: 14.5px; }
.bb-palette-list li i { width: 20px; text-align: center; color: var(--bb-accent-text); font-size: 16px; }
.bb-palette-list li small { margin-inline-start: auto; color: var(--bb-label-3); font-size: 12px; }
.bb-palette-list li.is-selected { background: var(--bb-accent); color: var(--bb-accent-ink); }
.bb-palette-list li.is-selected i, .bb-palette-list li.is-selected small { color: var(--bb-accent-ink); }
.bb-palette-empty { color: var(--bb-label-3) !important; cursor: default !important; justify-content: center; }

html.hig .bb-nav-search .nav-link {
  display: flex !important; align-items: center; gap: 8px; height: 34px; margin-top: 2px;
  background: var(--bb-fill-2); border-radius: 9px !important; padding: 0 10px !important; min-width: 200px; color: var(--bb-label-3) !important;
}
html.hig .bb-nav-search .nav-link:hover { background: var(--bb-fill) !important; }
html.hig .bb-nav-search .bb-nav-search-label { font-size: 13.5px; color: var(--bb-label-3) !important; }
html.hig .bb-nav-search kbd { margin-inline-start: auto; }
@media (max-width: 991.98px) { html.hig .bb-nav-search .nav-link { min-width: 0; } html.hig .bb-nav-search kbd, html.hig .bb-nav-search-label { display: none; } }

/* ---------- Quick filter above long tables ------------------------------ */
html.hig .bb-quickfilter {
  display: flex; align-items: center; gap: 8px; max-width: 320px; margin: 0 0 12px; padding: 0 10px;
  background: var(--bb-fill-2); border-radius: 9px; height: 34px; color: var(--bb-label-3);
}
html.hig .bb-quickfilter input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--bb-label); min-width: 0; }
html.hig .bb-quickfilter-count { font-size: 12px; white-space: nowrap; }

/* ---------- Tables: thumbnails and compact rows -------------------------- */
html.hig .table td img:not(.icon):not([width="20"]) {
  width: 44px; height: 44px; object-fit: cover; border-radius: 10px; max-width: none;
  box-shadow: 0 0 0 0.5px var(--bb-separator-strong); background: var(--bb-fill-2);
}
html.hig .cdk-drag-preview { box-shadow: var(--bb-shadow-3); border-radius: 12px; background: #fff; }
html.hig .cdk-drag-placeholder { opacity: .35; }

/* ---------- Sign-in page ------------------------------------------------- */
html.hig app-login #login { background: transparent !important; }
html.hig app-login .card { max-width: 420px; width: 100%; border-radius: 22px !important; box-shadow: var(--bb-shadow-2) !important; }
html.hig app-login .card .card-body { padding: 0 !important; background: transparent !important; }
html.hig app-login .card .row { flex-direction: column; }
html.hig app-login .card .row > [class*="col-lg-6"] { flex: 0 0 100% !important; max-width: 100% !important; background: transparent !important; }
html.hig app-login .card .row > .d-lg-block { display: block !important; padding: 32px 32px 0 !important; }
html.hig app-login .card .row > .d-lg-block img { width: 160px !important; height: auto !important; margin: 0 auto !important; display: block; border-radius: 0 !important; }
html.hig app-login .card .row > .d-lg-block h4 { display: none; }
html.hig app-login form { padding: 8px 32px 28px !important; }
html.hig app-login .card-title { font-size: 24px !important; font-weight: 700 !important; text-transform: none !important; margin-top: 18px; }
html.hig app-login .card-text { color: var(--bb-label-3) !important; font-size: 14px; }
html.hig app-login .form-control, html.hig app-login .custom-select { height: 44px; font-size: 16px !important; }
html.hig app-login button[type="submit"] { width: 100%; height: 44px; font-size: 16px !important; margin-top: 4px; }
html.hig app-login button[type="submit"] a, html.hig app-login button[type="submit"] .text-white { color: var(--bb-accent-ink) !important; }
html.hig app-login hr { display: none; }
html.hig app-login .full-height-vh { min-height: 100vh; }
html.hig .page-loading .loading-icon { filter: invert(55%) sepia(80%) saturate(600%) hue-rotate(5deg); }

/* ---------- Smart table alignment (console-ux.js alignTables) ------------ */
html.hig .table th.bb-al-txt, html.hig .table td.bb-al-txt { text-align: start !important; }
html.hig .table th.bb-al-num, html.hig .table td.bb-al-num { text-align: end !important; font-variant-numeric: tabular-nums; }
html.hig .table th.bb-al-ctl, html.hig .table td.bb-al-ctl { text-align: center !important; }
html.hig .table td.bb-al-ctl > * { margin-left: auto; margin-right: auto; }

/* ---------- One header per page ----------------------------------------- */
/* With the large title shown, the page's own icon + subtitle line is redundant */
html.hig .bb-titled > * > h4.card-title:first-child { display: none !important; }
/* Page-level search boxes become search fields */
html.hig .main-content form[role="search"] { margin: 0 0 14px !important; }
html.hig .main-content form[role="search"] > .position-relative { max-width: 380px; flex: 0 0 auto; width: 100%; padding: 0; }
html.hig .main-content form[role="search"] .form-control {
  border-radius: 10px !important; background: var(--bb-fill-2) !important; border-color: transparent !important; height: 38px;
  padding-inline-start: 36px !important;
}
html.hig .main-content form[role="search"] .form-control:focus { background: #fff !important; border-color: var(--bb-accent) !important; }
html.hig .main-content form[role="search"] .form-control-position {
  right: auto !important; left: 0 !important; width: 36px; text-align: center; color: var(--bb-label-3);
}
html.hig [dir="rtl"] .main-content form[role="search"] .form-control-position { left: auto !important; right: 0 !important; }
html.hig .main-content .card-header .card-title { font-size: 17px !important; font-weight: 600 !important; }

/* ---------- Table actions: quiet icon buttons ---------------------------- */
html.hig .main-content .table td i.cursor-pointer[class*="ft-"],
html.hig .main-content .table td a > i[class*="ft-"]:only-child {
  display: inline-grid !important; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--bb-fill-2); color: var(--bb-label-2) !important; font-size: 15px !important;
  margin: 0 3px !important; transition: background-color .15s, color .15s; vertical-align: middle;
}
html.hig .main-content .table td i.cursor-pointer[class*="ft-"]:hover,
html.hig .main-content .table td a:hover > i[class*="ft-"]:only-child { background: var(--bb-accent-soft-2); color: var(--bb-label) !important; }
html.hig .main-content .table td i.ft-trash:hover, html.hig .main-content .table td a:hover > i.ft-trash,
html.hig .main-content .table td i.ft-trash-2:hover, html.hig .main-content .table td i.ft-x:hover { background: rgba(255,59,48,.12) !important; color: var(--bb-red-text) !important; }
html.hig .main-content .table td i.ft-eye.text-success, html.hig .main-content .table td i.ft-eye.success, html.hig .main-content .table td a > i.ft-eye:only-child { color: var(--bb-green-text) !important; background: rgba(52,199,89,.12); }

/* ---------- Status badges: soft tinted pills ----------------------------- */
html.hig .badge.text-white { color: inherit !important; }
html.hig .badge-success, html.hig .badge.bg-success { background: rgba(52, 199, 89, 0.16) !important; color: var(--bb-green-text) !important; }
html.hig .badge-amber, html.hig .badge-orange { background: var(--bb-accent-soft-2) !important; color: #7A4700 !important; }
html.hig .badge-blue { background: rgba(0, 122, 255, 0.12) !important; color: var(--bb-blue-text) !important; }
html.hig .badge-red { background: rgba(255, 59, 48, 0.12) !important; color: var(--bb-red-text) !important; }
html.hig .badge-grey, html.hig .badge-gray { background: var(--bb-fill) !important; color: var(--bb-label-2) !important; }
html.hig .badge.p-1 { padding: 3px 10px !important; }

/* Empty-state illustration must not get thumbnail styling */
html.hig .bb-empty img, html.hig .table td .bb-empty img, html.hig td img[src*="No_Data"] {
  box-shadow: none !important; background: transparent !important; border-radius: 0 !important; height: auto !important; object-fit: contain !important;
}
html.hig .table td.bb-al-ctl { white-space: nowrap; }
html.hig [dir="rtl"] .bb-large-title { text-align: right; }
html.hig td.bb-ltr { direction: ltr; unicode-bidi: isolate; }
html.hig [dir="rtl"] td.bb-ltr { text-align: right !important; }
/* A broken inline <img> loses its width/height in Chrome; keep the box */
html.hig img.bb-img-broken { display: inline-block; vertical-align: middle; }
