/* ==========================================================================
   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; }

/* ==========================================================================
   Restaurant console (vendor) specifics
   ========================================================================== */

/* Segmented controls: no Apex underline */
html.hig .nav-pills { border: 0 !important; box-shadow: none !important; }
html.hig .nav-pills.nav-justified { display: inline-flex !important; width: auto; max-width: 100%; }
html.hig .nav-pills.nav-justified .nav-item { flex: 0 0 auto; }
html.hig .nav-pills .nav-link b { font-weight: inherit; }

/* ---------- Menu: categories column -------------------------------------- */
html.hig .cats-container { padding: 6px; }
html.hig .cats-container .cat-card {
  border: 0 !important; border-radius: 12px !important; padding: 8px 10px !important; margin: 2px 0 !important;
  align-items: center; min-height: 52px; background: transparent; transition: background-color .15s var(--bb-ease);
}
html.hig .cats-container .cat-card:hover { background: var(--bb-fill-3); }
html.hig .cats-container .cat-card.selectedMenuCategory { background: var(--bb-accent-soft-2) !important; box-shadow: none !important; }
html.hig .cats-container .cat-card.selectedMenuCategory p { font-weight: 600; }
html.hig .cats-container .cat-card > .w-25 { width: auto !important; flex: 0 0 auto; }
html.hig .cats-container .cat-card > .w-75 { width: auto !important; flex: 1 1 auto; min-width: 0; padding-inline-start: 10px !important; }
html.hig .cats-container .cat-card img {
  width: 38px !important; height: 38px; border-radius: 10px !important; object-fit: cover;
  box-shadow: 0 0 0 0.5px var(--bb-separator-strong);
}
html.hig .cats-container .cat-card p { font-size: 14.5px; font-weight: 500; color: var(--bb-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.hig .cats-container .ft-menu, html.hig .table .ft-menu { color: var(--bb-label-4) !important; cursor: grab; font-size: 16px !important; }
html.hig .cats-container .cat-card a i, html.hig .cats-container .cat-card a { color: var(--bb-label-3) !important; }
html.hig .cats-container .cat-card a:hover i { color: var(--bb-red-text) !important; }
html.hig .cats-container + *, html.hig .border-right.border-bottom { border-color: var(--bb-separator) !important; }
html.hig app-branch-menus .border-right { border-inline-end: 1px solid var(--bb-separator) !important; }

/* ---------- Menu: items table ------------------------------------------- */
html.hig .table img.media-object { width: 48px !important; height: 48px !important; border-radius: 10px; object-fit: cover; }
html.hig .table tr.cursor-grab td:nth-child(3) { font-weight: 600; }
html.hig .table tr.cursor-grab td:nth-child(6) { color: var(--bb-label-2); font-size: 13.5px; max-width: 240px; }

/* ngx-ui-switch becomes an iOS switch */
html.hig .switch { background: rgba(120, 120, 128, 0.16) !important; border: 0 !important; box-shadow: none !important; }
html.hig .switch.checked { background: var(--bb-green) !important; }
html.hig .switch small { box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.04) !important; }

/* Order screen: big empty-state headline */
html.hig .main-content h1:not(.bb-large-title) { font-size: 24px; font-weight: 600; color: var(--bb-label-2); }
html.hig .cats-container .cat-card { height: auto !important; min-height: 52px !important; max-height: none !important; }

/* ==========================================================================
   Orders (/transaction): each order is a compact two-line card
   ========================================================================== */
/* Page header: search on the left, "Create order" on the right, one line */
html.hig app-transaction.bb-orders {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
}
html.hig app-transaction.bb-orders > * { grid-column: 1 / -1; min-width: 0; }
html.hig app-transaction.bb-orders > .row.justify-content-between { grid-column: 2; grid-row: 2; margin: 0 !important; }
html.hig app-transaction.bb-orders > .row.px-2 { grid-column: 1; grid-row: 2; margin: 0 !important; padding: 0 !important; }
html.hig app-transaction.bb-orders > .row.justify-content-between > .col-md-6 { display: none; }
html.hig app-transaction.bb-orders > .row.justify-content-between > [class*="col-md-2"] { max-width: none; flex: none; padding: 0; }
html.hig app-transaction.bb-orders a.btn:has(> img[src*="create-order"]) {
  flex-direction: row !important; gap: 6px; width: auto !important; max-width: none !important; flex: none !important;
  padding: 8px 16px !important; margin: 0 !important; white-space: nowrap;
}
html.hig app-transaction.bb-orders a.btn > img[src*="create-order"] { width: 18px !important; height: 18px; filter: brightness(0) saturate(100%); opacity: .85; }
html.hig app-transaction.bb-orders form[role="search"] { width: 100%; max-width: 380px; margin: 0; padding: 0; }
html.hig app-transaction.bb-orders 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;
}
html.hig app-transaction.bb-orders form[role="search"] .form-control:focus { background: #fff !important; border-color: var(--bb-accent) !important; }
html.hig app-transaction.bb-orders form[role="search"] .form-control-position { inset-inline-start: 0; inset-inline-end: auto; right: auto; left: 0; width: 36px; color: var(--bb-label-3); }
html.hig [dir="rtl"] app-transaction.bb-orders form[role="search"] .form-control-position { left: auto; right: 0; }
html.hig app-transaction.bb-orders > .row:last-child, html.hig app-transaction.bb-orders > .row:has(.card) { margin-top: 14px; }
html.hig app-transaction.bb-orders > .row:has(.card) > [class*="col"] { padding: 0 !important; }
html.hig app-transaction.bb-orders > .row:has(.card) > [class*="col"] > [class*="col"] { padding: 0 !important; }
html.hig app-transaction.bb-orders .card-body { padding: 14px 16px !important; }

/* The card behind the list becomes a plain surface: the orders are the cards */
html.hig .bb-orders .table-responsive { overflow: visible; }
html.hig .bb-orders-table, html.hig .bb-orders-table > tbody { display: block; width: 100%; background: transparent !important; }
html.hig .bb-orders-table > thead { display: none; }
html.hig .bb-orders-table > tbody > tr { background: transparent !important; }

html.hig .bb-orders-table > tbody > tr.bb-order {
  display: grid; position: relative;
  grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.1fr) auto;
  grid-template-areas:
    "exp type id   cust time"
    "exp pay  tot  rem  act";
  column-gap: 14px; row-gap: 8px; align-items: center;
  margin-top: 10px; padding: 12px 14px;
  background: var(--bb-surface) !important; border-radius: 14px;
  box-shadow: 0 0 0 1px var(--bb-separator), var(--bb-shadow-1);
  cursor: pointer; transition: box-shadow .15s var(--bb-ease);
}
html.hig .bb-orders-table > tbody > tr.bb-order:hover { box-shadow: 0 0 0 1px var(--bb-separator-strong), var(--bb-shadow-2); background: var(--bb-surface) !important; }
html.hig .bb-orders-table > tbody > tr.bb-order.bb-has-new { box-shadow: 0 0 0 1.5px var(--bb-accent), var(--bb-shadow-1); }
html.hig .bb-orders-table > tbody > tr.bb-order.bb-has-new::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--bb-accent);
}
html.hig .bb-orders-table > tbody > tr.bb-order > td {
  display: block; border: 0 !important; padding: 0 !important; min-width: 0; background: transparent !important;
  font-size: 14px; color: var(--bb-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.hig .bb-order > .bb-c0 { grid-area: exp; display: flex !important; flex-direction: column; align-items: center; gap: 6px; overflow: visible; }
html.hig .bb-order > .bb-c1 { grid-area: type; overflow: visible; }
html.hig .bb-order > .bb-c2 { grid-area: id; color: var(--bb-label-3) !important; font-variant-numeric: tabular-nums; }
html.hig .bb-order > .bb-c2::before { content: "#"; }
html.hig .bb-order > .bb-c3 { grid-area: cust; }
html.hig .bb-order > .bb-c4 { grid-area: tot; }
html.hig .bb-order > .bb-c5 { display: none !important; }
html.hig .bb-order > .bb-c6 { grid-area: rem; }
html.hig .bb-order > .bb-c7 { grid-area: time; text-align: end; display: flex !important; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 13px; color: var(--bb-label-2) !important; }
html.hig .bb-order > .bb-c8 { grid-area: pay; }
html.hig .bb-order > .bb-c9 { grid-area: act; justify-self: end; display: flex !important; gap: 8px !important; overflow: visible; }

/* Money with small labels taken from the hidden table header */
html.hig .bb-order > .bb-c4, html.hig .bb-order > .bb-c6 { display: flex !important; flex-direction: column; gap: 0; font-variant-numeric: tabular-nums; }
html.hig .bb-order > .bb-c4::before, html.hig .bb-order > .bb-c6::before {
  content: attr(data-label); font-size: 11px; font-weight: 500; color: var(--bb-label-3); text-transform: none; line-height: 1.3;
}
html.hig .bb-order > .bb-c4 span { font-weight: 700; font-size: 15px; }
html.hig .bb-order > .bb-c6 span { font-weight: 600; }
html.hig .bb-order > .bb-c6:not(.bb-zero) span { color: #B25E00; }
html.hig .bb-order > .bb-c6.bb-zero span { color: var(--bb-green-text); }
html.hig .bb-order > td p { margin: 0 !important; }

/* Expand control + new-items count */
html.hig .bb-order .expand-button i { font-size: 16px; color: var(--bb-label-3); transition: transform .2s var(--bb-ease); }
html.hig .bb-order:not(.collapsed) .expand-button i { transform: rotate(90deg); }
html.hig [dir="rtl"] .bb-order .expand-button i { transform: scaleX(-1); }
html.hig .bb-order .expand-button .badge { min-width: 22px; padding: 2px 6px !important; font-size: 11px !important; background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }
html.hig .bb-order .expand-button .badge.bb-zero { display: none; }

/* Order type chip (replaces the oversized rider/car pictures) */
html.hig .bb-order .bb-c1.bb-type-ready > .d-flex { display: none !important; }
html.hig .bb-order .bb-c1 { display: flex !important; align-items: center; }
html.hig .bb-type-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
html.hig .bb-type-chip svg {
  flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--bb-fill-2); color: var(--bb-label-2);
}
html.hig .bb-type-chip b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
html.hig .bb-type-chip em { font-style: normal; font-size: 12.5px; color: var(--bb-label-2); background: var(--bb-fill-2); border-radius: 6px; padding: 1px 7px; }
html.hig .bb-type-chip small { font-size: 12px; color: var(--bb-green-text); }
html.hig .bb-order[data-scenario="delivery"] .bb-type-chip svg { background: rgba(0, 122, 255, .10); color: var(--bb-blue-text); }
html.hig .bb-order[data-scenario="car"] .bb-type-chip svg { background: rgba(88, 86, 214, .10); color: var(--bb-indigo); }
html.hig .bb-order[data-scenario="takeaway"] .bb-type-chip svg { background: rgba(48, 176, 199, .12); color: #1E7F91; }
html.hig .bb-order[data-scenario="dinein"] .bb-type-chip svg { background: var(--bb-accent-soft); color: var(--bb-accent-text); }
/* the original row still holds the address pin and car details: keep them as small buttons */
html.hig .bb-order .bb-c1 .ft-map-pin { font-size: 15px !important; color: var(--bb-label-3) !important; }

/* Customer name */
html.hig .bb-order .bb-c3 > div { border: 0 !important; color: var(--bb-label) !important; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: block !important; }
html.hig .bb-order .bb-c3 > div:hover { color: var(--bb-accent-text) !important; text-decoration: underline; }

/* Time + how long ago */
html.hig .bb-elapsed { font-size: 12px; color: var(--bb-label-3); font-weight: 500; }
html.hig .bb-elapsed.is-late { color: var(--bb-red-text); }
/* pickup-time pill (car pickup / take away) */
html.hig .bb-order .bb-c7 [class*="border"], html.hig .bb-order .bb-c7 .badge {
  border: 0 !important; background: rgba(255, 149, 0, .14) !important; color: #A85A00 !important;
  border-radius: 7px !important; padding: 2px 9px !important; font-size: 13px !important; font-weight: 600; width: auto !important; min-width: 0 !important;
}

/* Payment method: small icon + text */
html.hig .bb-order .bb-c8 img { width: 16px !important; height: 16px; object-fit: contain; opacity: .75; }
html.hig .bb-order .bb-c8 > div { flex-direction: row !important; flex-wrap: wrap !important; gap: 6px !important; }
html.hig .bb-order .bb-c8 > div > div { background: var(--bb-fill-2); border-radius: 7px; padding: 2px 8px; }
html.hig .bb-order .bb-c8 p { font-size: 12.5px; color: var(--bb-label-2); margin: 0 0 0 4px !important; }
html.hig .bb-order .bb-c8:empty::before, html.hig .bb-order .bb-c8 > div:empty::before { content: "—"; color: var(--bb-label-4); }

/* Actions: one clear primary action + a quiet "more" button */
html.hig .bb-order .bb-c9 .btn { padding: 6px 14px !important; font-size: 13.5px !important; }
html.hig .bb-order .bb-c9 .more-btn { width: 34px; height: 34px; padding: 0 !important; border: 0 !important; background: var(--bb-fill-2) !important; border-radius: 9px !important; }

/* Expanded order: items list attached under its card */
html.hig .bb-orders-table > tbody > tr.bb-order-detail { display: block; margin: -6px 0 0; }
html.hig .bb-orders-table > tbody > tr.bb-order-detail > td {
  display: block; border: 0 !important; padding: 10px 14px 14px !important; background: var(--bb-surface-2) !important;
  border-radius: 0 0 14px 14px; box-shadow: 0 0 0 1px var(--bb-separator);
}
html.hig .bb-order-detail table.table { background: transparent; }
html.hig .bb-order-detail table.table tr { background: transparent !important; }
html.hig .bb-order-detail table.table th, html.hig .bb-order-detail table.table td {
  background: transparent !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important;
  color: var(--bb-label) !important; font-weight: 400 !important; padding: 8px 10px !important; white-space: normal;
  border-top: 1px solid var(--bb-separator) !important; border-bottom: 0 !important; vertical-align: middle !important;
}
html.hig .bb-order-detail .custom_font {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; border-radius: 6px; background: var(--bb-fill);
  font-weight: 700; font-size: 12.5px; margin-inline-end: 6px;
}
html.hig .bb-order-detail label { font-size: 14px !important; color: var(--bb-label) !important; font-weight: 500 !important; margin: 0 !important; }
html.hig .bb-order-detail .orange-color { background: rgba(255,149,0,.14); color: #A85A00 !important; border-radius: 7px; padding: 1px 8px; font-size: 12.5px; font-weight: 600; }
html.hig .bb-order-detail .ft-check, html.hig .bb-order-detail .ft-x {
  display: inline-grid !important; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px !important;
}
html.hig .bb-order-detail .ft-check { background: rgba(52,199,89,.14); color: var(--bb-green-text) !important; }
html.hig .bb-order-detail .ft-x { background: rgba(255,59,48,.10); color: var(--bb-red-text) !important; }
html.hig .bb-order-detail .divhidetxtdpatient .row { margin: 0; }
html.hig .bb-order-detail .divhidetxtdpatient .icon { padding: 0; display: flex; gap: 6px; }
html.hig .bb-order-detail .btn[style*="16B266"], html.hig .bb-order-detail button[style*="16B266"] { background: rgba(52,199,89,.14) !important; color: var(--bb-green-text) !important; }
html.hig .bb-order-detail .btn[style*="FF5050"], html.hig .bb-order-detail button[style*="FF5050"] { background: rgba(255,59,48,.10) !important; color: var(--bb-red-text) !important; }
html.hig .bb-order-detail .btn-primary[style*="16B266"] { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }

/* Narrow screens: stack into three lines */
@media (max-width: 991.98px) {
  html.hig .bb-orders-table > tbody > tr.bb-order {
    grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "exp type time" "exp cust id" "exp tot rem" "exp pay act";
  }
  html.hig .bb-order > .bb-c2 { text-align: end; }
  html.hig app-transaction.bb-orders { grid-template-columns: minmax(0, 1fr); }
  html.hig app-transaction.bb-orders > .row.justify-content-between { grid-column: 1; grid-row: auto; justify-self: end; }
  html.hig app-transaction.bb-orders > .row.px-2 { grid-row: auto; }
}

/* ==========================================================================
   Menu (/menus): compact list with small square thumbnails
   ========================================================================== */
html.hig .bb-menu .table td img, html.hig .bb-menu .table td img.media-object {
  width: 40px !important; height: 40px !important; border-radius: 9px !important; object-fit: cover;
}
html.hig .bb-menu .cats-container .cat-card img { width: 32px !important; height: 32px !important; border-radius: 8px !important; }
html.hig .bb-menu .ft-menu { font-size: 15px !important; }
html.hig .bb-menu i[class*="ft-"], html.hig .bb-menu i[class*="icon-"] { font-size: 16px !important; }
html.hig .bb-menu .btn i { font-size: 14px !important; }
html.hig .bb-menu .table td { padding: 8px 10px !important; font-size: 14px; }
html.hig .bb-menu .table th { padding: 9px 10px !important; }
html.hig .bb-menu .bb-has-details .bb-col-details { display: none !important; }
html.hig .bb-menu .bb-col-name { text-align: start !important; font-weight: 600; min-width: 180px; max-width: 320px; white-space: normal; }
html.hig .bb-menu .bb-col-name .bb-sub {
  display: block; font-weight: 400; font-size: 12.5px; color: var(--bb-label-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px;
}
html.hig .bb-menu .bb-num { text-align: end !important; font-variant-numeric: tabular-nums; }
html.hig .bb-menu .bb-col-img { width: 56px; }
html.hig .bb-menu .table td .btn, html.hig .bb-menu .table td a.btn { padding: 4px 10px !important; font-size: 13px !important; }
html.hig .bb-menu .table td a:not(.btn) i, html.hig .bb-menu .table td > i { color: var(--bb-label-3); }
html.hig .bb-menu .switch.switch-small { transform: scale(.9); }
/* The second-level menus bar and section headings */
html.hig .bb-menu h4, html.hig .bb-menu h5 { font-size: 15px !important; font-weight: 600 !important; }
html.hig .bb-menu .cats-container .cat-card { min-height: 46px !important; }

/* --- refinements after first render --- */
html.hig .bb-orders-table .bb-order td.bb-c8 img {
  width: 16px !important; height: 16px !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important;
}
html.hig .bb-orders-table .bb-order td.bb-c8 > div > div { display: inline-flex !important; align-items: center; height: 24px; }
html.hig .bb-type-chip em { margin-inline-start: 6px !important; }
html.hig .bb-order > td.bb-c4 span, html.hig .bb-order > td.bb-c6 span { margin: 0 !important; text-align: start; }
/* pickup time: inline style draws a thick red ring */
html.hig .bb-order > td.bb-c7 { color: var(--bb-label-2) !important; font-size: 13px !important; }
html.hig .bb-order > td.bb-c7 p[style*="border"] {
  border: 0 !important; width: auto !important; border-radius: 7px !important; padding: 3px 10px !important;
  background: rgba(255, 149, 0, .14); color: #A85A00; font-weight: 700; font-size: 13.5px; margin: 0 !important;
  font-variant-numeric: tabular-nums;
}
html.hig .bb-order > td.bb-c7 p[style*="border"]::before { content: "⏱ "; font-weight: 400; }

/* ==========================================================================
   Configuration (/config/*): Apple "Settings" layout
   ========================================================================== */
html.hig .card-title { text-transform: none !important; }

/* Settings navigation: grouped list with icon tiles, sticky */
html.hig .bb-config .custom-sidebar { list-style: none; margin: 0; padding: 0; }
html.hig .bb-config .card:has(> .card-content > .card-body > .custom-sidebar) { position: sticky; top: 76px; }
html.hig .bb-config .card-body:has(> .custom-sidebar) { padding: 8px !important; }
html.hig .bb-config .custom-sidebar li::before, html.hig .bb-config .custom-sidebar li::marker { content: none !important; display: none !important; }
html.hig .bb-config .custom-section { margin: 0 0 2px !important; padding: 0 !important; }
html.hig .bb-config .custom-section > a.section-btn {
  display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px !important; border-radius: 10px !important; min-height: 44px;
  background: transparent !important; color: var(--bb-label) !important; font-weight: 600 !important; font-size: 14.5px !important;
  box-shadow: none !important; cursor: pointer; transition: background-color .15s var(--bb-ease);
}
html.hig .bb-config .custom-section > a.section-btn:hover { background: var(--bb-fill-3) !important; }
html.hig .bb-config .custom-section > a.section-btn.active { background: var(--bb-accent-soft-2) !important; }
html.hig .bb-config .custom-section > a.section-btn > div > i {
  width: 28px; height: 28px; border-radius: 7px; display: inline-grid !important; place-items: center;
  font-size: 15px !important; color: #fff !important; background: var(--bb-accent) !important;
}
html.hig .bb-config .custom-section > a.section-btn > div > i.icon-cup { background: var(--bb-blue) !important; }
html.hig .bb-config .custom-section > a.section-btn > i { color: var(--bb-label-3) !important; font-size: 14px; }
html.hig .bb-config .sub-sections { list-style: none; margin: 2px 0 6px !important; padding: 0 !important; }
html.hig .bb-config .sub-sections > li { margin: 0 !important; padding: 0 !important; transform: none !important; }
html.hig .bb-config .sub-sections > li > a {
  display: block; padding: 8px 10px 8px 48px !important; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--bb-label-2) !important; background: transparent !important; box-shadow: none !important;
}
html.hig [dir="rtl"] .bb-config .sub-sections > li > a { padding: 8px 48px 8px 10px !important; }
html.hig .bb-config .sub-sections > li > a:hover { background: var(--bb-fill-3) !important; color: var(--bb-label) !important; }
html.hig .bb-config .sub-sections > li.active > a { background: var(--bb-accent-soft-2) !important; color: var(--bb-label) !important; font-weight: 600; }

/* Page header card: title + branch picker */
html.hig .bb-config .card .card-title.mb-0 { font-size: 20px !important; font-weight: 700 !important; letter-spacing: -0.015em !important; }
html.hig .bb-config .col-4:has(> ng-select) { flex: 0 0 auto; max-width: none; width: 300px; padding: 0; }
html.hig .bb-config .col-4:has(> ng-select) > .text-muted { font-size: 13px; }

/* Section headings inside forms: HIG grouped-table headers */
html.hig .bb-config form h3.card-title, html.hig .bb-config form h4.card-title,
html.hig .bb-config .card-body .col-md-6 > h4.card-title {
  font-size: 13px !important; font-weight: 600 !important; color: var(--bb-label-3) !important;
  text-transform: uppercase !important; letter-spacing: .04em !important; margin: 4px 0 10px !important;
}
html.hig .bb-config form .card-content.p-3 { padding: 22px 24px !important; }

/* Switch rows: label left, switch right, hairline between rows */
html.hig .bb-toggle-row {
  display: flex !important; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 !important; padding: 11px 0 !important; border-bottom: 1px solid var(--bb-separator);
}
html.hig .bb-toggle-row > span, html.hig .bb-toggle-row > label { font-size: 14.5px !important; color: var(--bb-label) !important; font-weight: 400 !important; }
html.hig .bb-toggle-row > ui-switch { position: static !important; top: auto !important; margin: 0 !important; }
html.hig .bb-config .border-top.form-group { border: 0 !important; margin: 4px 0 !important; }

/* Info icons next to labels */
html.hig .bb-config .icon-info { color: var(--bb-label-4); font-size: 13px; cursor: help; }

/* Save bar stays visible while scrolling long settings */
html.hig .bb-savebar {
  position: sticky !important; bottom: 0; z-index: 20;
  background: rgba(247, 247, 250, .86) !important; -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--bb-separator) !important; padding: 12px 20px !important; margin: 0 !important;
  border-radius: 0 0 var(--bb-r-lg) var(--bb-r-lg);
}
html.hig .bb-savebar .btn { min-width: 96px; }

/* Brand settings: logo and cover previews at a sensible size */
html.hig .bb-config img.inimage {
  width: 112px !important; height: 112px !important; object-fit: cover; border-radius: 22px !important;
  box-shadow: 0 0 0 .5px var(--bb-separator-strong); background: var(--bb-fill-2);
}
html.hig .bb-config .col-lg-6:nth-child(2) img.inimage { width: 200px !important; border-radius: 14px !important; }
html.hig .bb-config label[style*="margin: auto"] { font-size: 13px !important; color: var(--bb-label-3) !important; margin-bottom: 8px !important; }
html.hig .bb-config .form-body > .row > [class*="col-lg-6"] > br { display: none; }
html.hig .bb-config .form-body > .row > [class*="col-lg-6"] > fieldset { margin-top: 10px; }
html.hig .btn-amber { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }
html.hig .input-group-append .btn-amber { background: var(--bb-fill) !important; color: var(--bb-label) !important; }

/* Social links: equal 28px brand tiles, quiet visibility toggles */
html.hig .bb-config .custom-table td { vertical-align: middle !important; padding: 8px 6px !important; border: 0 !important; }
html.hig .bb-config .custom-table tr:not(.tr-head) { border-bottom: 1px solid var(--bb-separator); }
html.hig .bb-config .custom-table .fa.rounded, html.hig .bb-config .custom-table .fa-tiktok {
  width: 30px !important; height: 30px !important; padding: 0 !important; border-radius: 8px !important;
  display: inline-grid !important; place-items: center; font-size: 16px !important; margin-inline-end: 10px !important; overflow: hidden; flex: none;
}
html.hig .bb-config .custom-table .fa-tiktok img { width: 30px !important; height: 30px !important; object-fit: cover; }
html.hig .bb-config .custom-table h5 { font-size: 14.5px !important; font-weight: 500 !important; min-width: 5.5rem !important; }
html.hig .bb-config .custom-table td > a.rounded { width: 34px !important; height: 34px !important; border-radius: 9px !important; background: var(--bb-fill-2); }
html.hig .bb-config .custom-table .ft-eye-off, html.hig .bb-config .custom-table .ft-eye { color: var(--bb-label-3) !important; font-size: 16px !important; }
html.hig .bb-config .custom-table a:hover .ft-eye-off { color: var(--bb-red-text) !important; }
html.hig .bb-config .custom-table img:not(.fa-tiktok img) { max-height: 30px; width: auto; }

/* Delivery zones: buttons never squeeze into vertical letters */
html.hig .bb-config .btn { white-space: nowrap; min-width: max-content; }
html.hig .bb-config .border-left.border-gray { border-inline-start: 1px solid var(--bb-separator) !important; border-left-color: var(--bb-separator) !important; }
html.hig .bb-config .table .ft-trash { color: var(--bb-label-3) !important; font-size: 16px !important; }
html.hig .bb-config .table a:hover .ft-trash { color: var(--bb-red-text) !important; }
html.hig .bb-config agm-map, html.hig .bb-config .agm-map-container-inner { border-radius: var(--bb-r-lg); overflow: hidden; }

/* Ratings filters on one line, labels not wrapping */
html.hig .bb-config .card-body label { line-height: 1.25; }

/* Empty states: small illustration, calm text */
html.hig .bb-empty { padding: 28px 0 !important; text-align: center; }
html.hig .bb-empty img { width: 120px !important; height: auto !important; max-width: 120px !important; opacity: .9; }
html.hig .bb-empty p, html.hig .bb-empty h1, html.hig .bb-empty h2, html.hig .bb-empty h3, html.hig .bb-empty span {
  font-size: 16px !important; font-weight: 500 !important; color: var(--bb-label-3) !important; margin-top: 12px !important; line-height: 1.4;
}

/* ==========================================================================
   Branches list (/brands/brands-list)
   ========================================================================== */
html.hig .bb-branches > h4.card-title { display: none; }
html.hig .bb-branches .bb-brand-row {
  border-radius: 14px !important; box-shadow: 0 0 0 1px var(--bb-separator), var(--bb-shadow-1) !important; padding: 12px 6px !important; margin-top: 18px !important;
}
html.hig .bb-branches .bb-brand-row .icon-one { color: var(--bb-label-3); font-size: 16px; }
html.hig .bb-branches .brand-image {
  width: 44px !important; height: 44px !important; border-radius: 11px !important; object-fit: cover;
  box-shadow: 0 0 0 .5px var(--bb-separator-strong); background: var(--bb-fill-2);
}
html.hig .bb-branches .bb-brand-row .text-muted { font-size: 11.5px !important; }
html.hig .bb-branches .brand-title { font-size: 16px !important; font-weight: 700 !important; }
html.hig .bb-branches .bb-brand-row > [class*="col-10"] { gap: 14px !important; }
html.hig .bb-branches .bb-brand-row > [class*="col-10"] > .d-flex { gap: 28px !important; }
html.hig .bb-branches .bb-brand-row a i { color: var(--bb-label-2) !important; font-size: 16px !important; }
html.hig .bb-branches .bb-brand-row > [class*="col-2"] a { width: 34px; height: 34px; border-radius: 9px; background: var(--bb-fill-2); display: inline-grid !important; place-items: center; margin-inline-start: 6px; }
html.hig .bb-branches .bb-brand-row > [class*="col-2"] a i { margin: 0 !important; }

/* Branches under a brand: inset grouped rows */
html.hig .bb-branches .bb-branch-row {
  width: calc(100% - 28px) !important; margin: 0 !important; padding: 12px 14px !important; border-radius: 0 !important;
  box-shadow: none !important; border-bottom: 1px solid var(--bb-separator); background: var(--bb-surface) !important; align-items: center;
}
html.hig .bb-branches .bb-brand-row + .bb-branch-row { margin-top: 8px !important; border-radius: 12px 12px 0 0 !important; }
html.hig .bb-branches .bb-branch-row:last-child { border-radius: 0 0 12px 12px !important; border-bottom: 0; }
html.hig .bb-branches .bb-brand-row + .bb-branch-row:last-child { border-radius: 12px !important; }
html.hig .bb-branches .bb-branch-row > [class*="col-10"] { gap: 18px !important; flex-wrap: nowrap !important; min-width: 0; }
html.hig .bb-branches .bb-branch-row > [class*="col-10"] > div:first-child { min-width: 150px; }
html.hig .bb-branches .bb-branch-row .branch-title { font-size: 14px !important; font-weight: 400 !important; color: var(--bb-label-2); }
html.hig .bb-branches .bb-branch-row > [class*="col-10"] > div:first-child .branch-title { font-size: 12px !important; color: var(--bb-label-3); }
html.hig .bb-branches .bb-branch-row > [class*="col-10"] > div:first-child .branch-title::before { content: "#"; }
html.hig .bb-branches .bb-branch-name { font-size: 15px; font-weight: 600; color: var(--bb-label); line-height: 1.2; }
html.hig .bb-branches .bb-branch-row.bb-closed .bb-branch-name::after {
  content: " ●"; color: var(--bb-label-4); font-size: 11px; vertical-align: 2px;
}
html.hig .bb-branches .bb-branch-row .text-muted { font-size: 11.5px !important; }
/* Branch actions: shown as buttons instead of a hidden gear menu */
html.hig .bb-branches .bb-branch-row .dropbtn { display: none !important; }
html.hig .bb-branches .bb-branch-row .dropdown-content {
  display: flex !important; position: static !important; box-shadow: none !important; background: transparent !important;
  gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding: 0 !important; min-width: 0 !important; width: auto !important; z-index: auto;
}
html.hig .bb-branches .bb-branch-row .dropdown-content > a {
  display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 11px !important; border-radius: 9px;
  background: var(--bb-fill-2); color: var(--bb-label) !important; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
html.hig .bb-branches .bb-branch-row .dropdown-content > a:hover { background: var(--bb-fill); }
html.hig .bb-branches .bb-branch-row .dropdown-content > a i { margin: 0 !important; font-size: 14px !important; color: var(--bb-label-2) !important; }
html.hig .bb-branches .bb-branch-row > [class*="col-2"] { flex: 0 0 auto; max-width: none; width: auto; }
html.hig .bb-branches .bb-branch-row > [class*="col-10"] { flex: 1 1 auto; max-width: none; width: auto; }
@media (max-width: 767.98px) {
  html.hig .bb-branches .bb-branch-row { flex-wrap: wrap; }
  html.hig .bb-branches .bb-branch-row > [class*="col-2"] { width: 100%; padding-top: 8px; }
  html.hig .bb-branches .bb-branch-row .dropdown-content { justify-content: flex-start; }
}

/* --- refinements after first render --- */
html.hig .bb-config .sub-sections > li.active, html.hig .bb-config .sub-sections > li.active:hover {
  background: var(--bb-accent-soft-2) !important; border-radius: 9px; box-shadow: none !important;
}
html.hig .bb-config .sub-sections > li.active > a { background: transparent !important; color: var(--bb-label) !important; }
html.hig .bb-config .sub-sections > li::before, html.hig .bb-config .sub-sections > li::after,
html.hig .bb-config .sub-sections > li > a::before, html.hig .bb-config .sub-sections > li > a::after { display: none !important; content: none !important; }
/* service toggles laid out in a row become pills */
html.hig .bb-config .d-flex > .bb-toggle-row, html.hig .bb-config .row > .bb-toggle-row.col-md-4 {
  border-bottom: 0 !important; background: var(--bb-fill-2); border-radius: 10px; padding: 7px 12px !important; gap: 10px; margin: 4px !important;
}
html.hig .bb-config .d-flex:has(> .bb-toggle-row) { flex-wrap: wrap; }
/* branches list */
html.hig .bb-branches .bb-brand-row .text-muted { display: none !important; }
html.hig .bb-branch-status {
  display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: var(--bb-fill); color: var(--bb-label-2); vertical-align: 2px;
}
html.hig .bb-branches .bb-branch-row.bb-closed .bb-branch-name::after { content: none; }

/* ==========================================================================
   Vouchers, cashback, ads, marketing
   ========================================================================== */
/* Voucher codes read as codes */
html.hig app-vouchers .table td:nth-child(2) {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; font-weight: 600; letter-spacing: .02em;
}
html.hig app-vouchers .table td:nth-child(2)::before { content: none; }

/* Ads: banner thumbnails instead of 100px empty boxes */
html.hig app-ads .table td img {
  width: 72px !important; height: 44px !important; border-radius: 8px !important; object-fit: cover;
}
html.hig app-ads .table td { padding-top: 8px !important; padding-bottom: 8px !important; }

/* Cashback page: tabs + filter row */
html.hig app-cashback .nav-pills { margin-bottom: 6px; }

/* Marketing integrations: tiles with a light Connect button */
html.hig app-marketing-platform > div.border {
  border: 0 !important; border-radius: 14px !important; box-shadow: 0 0 0 1px var(--bb-separator) !important;
  padding: 16px !important; background: var(--bb-surface); transition: box-shadow .15s;
}
html.hig app-marketing-platform > div.border:hover { box-shadow: 0 0 0 1px var(--bb-separator-strong), var(--bb-shadow-2) !important; }
html.hig app-marketing-platform img { width: 36px !important; height: 36px !important; object-fit: contain; border-radius: 9px; background: #fff; box-shadow: 0 0 0 .5px var(--bb-separator); padding: 4px; }
html.hig app-marketing-platform h3.card-title { font-size: 16px !important; font-weight: 600 !important; }
html.hig app-marketing-platform .status { width: 8px !important; height: 8px !important; border-radius: 50%; }
html.hig app-marketing-platform .status.bg-red { background: var(--bb-label-4) !important; }
html.hig app-marketing-platform .status.bg-green, html.hig app-marketing-platform .status.bg-success { background: var(--bb-green) !important; }
html.hig app-marketing-platform .text-muted { font-size: 13px; }
html.hig app-marketing-platform .btn.w-100 {
  width: auto !important; min-width: 120px; padding: 6px 16px !important; margin-top: 14px !important;
  background: var(--bb-accent-soft-2) !important; color: #6B3E00 !important;
}
html.hig app-marketing-platform .btn.w-100:hover { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }

/* ==========================================================================
   Dashboard (/dashboard)
   ========================================================================== */
/* Formatted numbers: original text stays in the DOM for Angular, shown formatted */
html.hig .bb-fmt { font-size: 0 !important; }
html.hig .bb-fmt::after { content: attr(data-fmt); font-size: 14px; }

/* Toolbar: title row removed (large title above), controls right-aligned */
html.hig .bb-dash > #parentdiv > form > .col-md-6:first-child { display: none; }
html.hig .bb-dash > #parentdiv > form > #hide1 { flex: 1 1 100%; max-width: 100%; justify-content: flex-end !important; gap: 8px !important; }
html.hig .bb-dash > #parentdiv > form { margin-top: -62px; margin-bottom: 18px !important; }
html.hig .bb-dash #hide1 .form-control { width: auto !important; max-width: 220px !important; flex: 0 0 auto !important; height: 36px; min-height: 36px; padding: 4px 32px 4px 12px; background-color: var(--bb-surface) !important; }
html.hig .bb-dash #hide1 .btn { height: 36px; border: 0 !important; background: var(--bb-surface) !important; box-shadow: 0 0 0 1px var(--bb-separator-strong) !important; }
@media (max-width: 767.98px) {
  html.hig .bb-dash > #parentdiv > form { margin-top: 0; }
  html.hig .bb-dash #hide1 { flex-wrap: wrap; justify-content: flex-start !important; }
}

/* KPI tiles: icon + title, big total sales, then orders and average basket */
html.hig .bb-kpi .card-body {
  display: grid !important; grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "total total" "count avg";
  column-gap: 12px; row-gap: 4px; padding: 16px 18px !important;
}
html.hig .bb-kpi .card-body > .col-12.p-0 { grid-area: head; margin-bottom: 8px; }
html.hig .bb-kpi .bb-kpi-total { grid-area: total; }
html.hig .bb-kpi .bb-kpi-count { grid-area: count; }
html.hig .bb-kpi .bb-kpi-avg { grid-area: avg; }
html.hig .bb-kpi .card-body > .col-12.px-1 { padding: 0 !important; max-width: none; }
html.hig .bb-kpi .card-body > .col-12.px-1 > div {
  display: flex !important; flex-direction: column-reverse; align-items: flex-start !important; justify-content: flex-end !important;
  padding: 0 !important; border: 0 !important; gap: 0;
}
html.hig .bb-kpi .card-body > .col-12.px-1 p:not(.text-muted) { font-size: 12px; color: var(--bb-label-3); font-weight: 500; }
html.hig .bb-kpi .card-body > .col-12.px-1 p.text-muted { color: var(--bb-label) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
html.hig .bb-kpi .bb-kpi-total p.text-muted::after { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
html.hig .bb-kpi .bb-kpi-count p.text-muted::after, html.hig .bb-kpi .bb-kpi-avg p.text-muted::after { font-size: 16px; font-weight: 600; }
html.hig .bb-kpi .bb-kpi-count, html.hig .bb-kpi .bb-kpi-avg { padding-top: 10px !important; border-top: 1px solid var(--bb-separator); margin-top: 8px; }
html.hig .bb-kpi .card-title { font-size: 14.5px !important; font-weight: 600 !important; color: var(--bb-label-2) !important; margin: 0 !important; }
html.hig .bb-dash img[src*="assets/img/dashboard/"]:not([src*="1st"]):not([src*="2nd"]):not([src*="3rd"]):not([src*="4th"]):not([src*="5th"]) {
  width: 34px !important; height: 34px !important; padding: 6px; border-radius: 9px; background: var(--bb-accent-soft); object-fit: contain;
}
html.hig .bb-dash .row > [class*="col-lg-3"] > .card { height: 100%; }

/* Registered customers */
html.hig .bb-dash h4.badge {
  background: transparent !important; color: var(--bb-label) !important; padding: 0 !important;
}
html.hig .bb-dash h4.badge.bb-fmt::after { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

/* Payment mix bar replaces the tiny pie rings */
html.hig .bb-dash .bb-hidden-chart { display: none !important; }
html.hig .bb-paymix { margin-top: 16px; }
html.hig .bb-paymix-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bb-fill-2); }
html.hig .bb-paymix-bar span { display: block; height: 100%; transition: width .4s var(--bb-ease); }
html.hig .bb-paymix-bar .on, html.hig .bb-paymix-legend i.on { background: var(--bb-blue); }
html.hig .bb-paymix-bar .cash, html.hig .bb-paymix-legend i.cash { background: var(--bb-accent); }
html.hig .bb-paymix-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
html.hig .bb-paymix-legend > div { display: grid; grid-template-columns: 10px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
html.hig .bb-paymix-legend i { width: 10px; height: 10px; border-radius: 3px; grid-row: 1; }
html.hig .bb-paymix-legend span { font-size: 12.5px; color: var(--bb-label-3); }
html.hig .bb-paymix-legend em { font-style: normal; font-size: 12.5px; color: var(--bb-label-3); text-align: end; }
html.hig .bb-paymix-legend b { grid-column: 2 / span 2; grid-row: 2; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Charts: lighter grid, consistent colours (orders teal, sales amber) */
html.hig .bb-dash .ngx-charts .gridline-path { stroke: rgba(60, 60, 67, 0.08) !important; }
html.hig .bb-dash .ngx-charts text { fill: var(--bb-label-3) !important; font-size: 11px !important; font-family: var(--bb-font) !important; }
html.hig .bb-dash ngx-charts-line-chart .line-series path.line { stroke: var(--bb-teal) !important; stroke-width: 2.5px !important; }
html.hig .bb-dash ngx-charts-line-chart circle { fill: var(--bb-teal) !important; }
html.hig .bb-dash .ngx-charts path.bar { fill: var(--bb-accent) !important; }
html.hig .bb-dash app-combo-chart .line-series path.line, html.hig .bb-dash combo-chart-component .line-series path.line { stroke: var(--bb-teal) !important; stroke-width: 2.5px !important; }
html.hig .bb-dash .legend-label-color, html.hig .bb-dash .legend-label .legend-label-color { border-radius: 3px !important; }

/* Best sellers: ranked list instead of a carousel of big image boxes */
html.hig .bb-dash .btn-outline-grey { display: none !important; }
html.hig .bb-dash div:has(> .bb-rank-row) { display: block !important; overflow: visible !important; width: 100% !important; }
html.hig .bb-rank-row { width: 100% !important; max-width: none !important; padding: 0 !important; }
html.hig .bb-rank-row > div {
  display: grid !important; grid-template-columns: 28px 44px minmax(0, 1fr) repeat(3, minmax(72px, 110px));
  align-items: center; column-gap: 14px; border: 0 !important; border-bottom: 1px solid var(--bb-separator) !important;
  border-radius: 0 !important; padding: 10px 4px !important;
}
html.hig .bb-rank-row:last-child > div { border-bottom: 0 !important; }
html.hig .bb-rank-row > div::before {
  content: attr(data-rank); grid-column: 1; grid-row: 1; font-weight: 700; font-size: 14px; color: var(--bb-label-3); text-align: center;
}
html.hig .bb-rank-row > div { counter-increment: none; }
html.hig .bb-rank-row img.item-img {
  grid-column: 2; grid-row: 1; width: 44px !important; height: 44px !important; margin: 0 !important; border-radius: 10px;
  object-fit: cover; box-shadow: 0 0 0 .5px var(--bb-separator-strong); background: var(--bb-fill-2);
}
html.hig .bb-rank-row > div > .d-flex:not(.w-100:last-child) { grid-column: 3; grid-row: 1; justify-content: flex-start !important; margin: 0 !important; min-width: 0; }
html.hig .bb-rank-row .item-name { font-size: 14.5px !important; font-weight: 600 !important; margin: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.hig .bb-rank-row img[src*="1st"], html.hig .bb-rank-row img[src*="2nd"], html.hig .bb-rank-row img[src*="3rd"],
html.hig .bb-rank-row img[src*="dashboard/"]:not(.item-img) { width: 18px !important; height: 18px !important; }
html.hig .bb-rank-row > div > .d-flex.w-100:last-child { display: contents !important; }
html.hig .bb-rank-row > div > .d-flex.w-100:last-child > [class*="col-4"] { max-width: none; padding: 0 !important; }
html.hig .bb-rank-row > div > .d-flex.w-100:last-child > [class*="col-4"] > div {
  border: 0 !important; padding: 0 !important; align-items: flex-end !important; background: transparent;
}
html.hig .bb-rank-row .text-muted { font-size: 11.5px; }
html.hig .bb-rank-row span.bb-fmt::after { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  html.hig .bb-rank-row > div { grid-template-columns: 24px 40px minmax(0, 1fr) 80px; }
  html.hig .bb-rank-row > div > .d-flex.w-100:last-child > [class*="col-4"]:not(:first-child) { display: none; }
}
html.hig .bb-dash h4.badge.bb-fmt, html.hig .bb-dash span.bb-fmt, html.hig .bb-dash p.bb-fmt { font-size: 0 !important; }
html.hig .bb-dash .card-title + span.bb-fmt::after { font-size: 14px; color: var(--bb-label-3); font-weight: 400; }
html.hig .bb-dash .bb-rank-row img:not(.item-img) {
  width: 18px !important; height: 18px !important; padding: 0 !important; background: none !important; border-radius: 0 !important;
}

/* ==========================================================================
   Ratings (customer feedback, branch ratings) and CRM analytics
   ========================================================================== */
/* Score chips: small star + number, coloured by score */
html.hig td.bb-rate-cell { white-space: nowrap; text-align: start !important; }
html.hig td.bb-rate-cell ngb-rating { font-size: 12px !important; color: inherit !important; vertical-align: 0; }
html.hig td.bb-rate-cell .rate { font-weight: 700; font-size: 13.5px; }
html.hig td.bb-rate-cell > ngb-rating, html.hig td.bb-rate-cell > .rate {
  background: var(--bb-fill-2); padding: 3px 0; display: inline-block; line-height: 18px;
}
html.hig td.bb-rate-cell > ngb-rating { border-radius: 8px 0 0 8px; padding-left: 9px; }
html.hig td.bb-rate-cell > .rate { border-radius: 0 8px 8px 0; padding-right: 10px; }
html.hig [dir="rtl"] td.bb-rate-cell > ngb-rating { border-radius: 0 8px 8px 0; padding-left: 0; padding-right: 9px; }
html.hig [dir="rtl"] td.bb-rate-cell > .rate { border-radius: 8px 0 0 8px; padding-right: 0; padding-left: 10px; }
html.hig td.bb-score-high > ngb-rating, html.hig td.bb-score-high > .rate { background: rgba(52, 199, 89, .14); color: var(--bb-green-text); }
html.hig td.bb-score-mid > ngb-rating, html.hig td.bb-score-mid > .rate { background: rgba(255, 149, 0, .14); color: #A85A00; }
html.hig td.bb-score-low > ngb-rating, html.hig td.bb-score-low > .rate { background: rgba(255, 59, 48, .12); color: var(--bb-red-text); }

/* Average ratings summary: three equal tiles across the page */
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) {
  width: 100% !important; border-radius: var(--bb-r-lg) !important; box-shadow: var(--bb-shadow-1) !important;
  padding: 16px 18px !important; margin-bottom: 20px;
}
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) .card-title { font-size: 13px !important; font-weight: 600 !important; color: var(--bb-label-3) !important; text-transform: uppercase !important; letter-spacing: .04em !important; margin: 0 0 8px !important; }
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) .col-12.mb-2 { padding: 0 !important; margin: 0 !important; }
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) > .d-flex { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12px; }
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) > .d-flex > div {
  border: 0 !important; padding: 12px 14px !important; background: var(--bb-surface-2); border-radius: 12px;
  display: flex; flex-direction: column-reverse; gap: 4px;
}
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) h5 { font-size: 13px !important; color: var(--bb-label-2) !important; font-weight: 500 !important; margin: 0 !important; }
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) h3 { font-size: 28px !important; font-weight: 700 !important; margin: 0 6px 0 0 !important; letter-spacing: -0.02em; }
html.hig [dir="rtl"] .main-content .bg-white.rounded.shadow:has(ngb-rating) h3 { margin: 0 0 0 6px !important; }
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) ngb-rating { font-size: 20px !important; color: var(--bb-accent) !important; }
html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) .text-muted { font-size: 12.5px; margin-inline-start: 6px; }
@media (max-width: 767.98px) {
  html.hig .main-content .bg-white.rounded.shadow:has(ngb-rating) > .d-flex { grid-template-columns: 1fr; }
}

/* ---------- CRM analytics ------------------------------------------------ */
html.hig app-crm .icon-container {
  width: 34px !important; height: 34px !important; min-width: 34px; border-radius: 9px !important; display: grid !important; place-items: center;
  background: var(--bb-accent-soft) !important; color: var(--bb-accent-text) !important; padding: 0 !important;
}
html.hig app-crm .icon-container i { font-size: 15px !important; color: var(--bb-accent-text) !important; }
html.hig app-crm .card-body.p-2 { padding: 14px 16px !important; }
/* segment cards: name on top, big count with percentage underneath */
html.hig app-crm .card-body .border-bottom { border-color: var(--bb-separator) !important; align-items: flex-start !important; }
html.hig app-crm .card-body .d-flex.flex-grow-1.flex-row { flex-direction: column !important; gap: 4px; min-width: 0; }
html.hig app-crm .card-body h1, html.hig app-crm .card-body h1.font-medium-2, html.hig app-crm .card-body h1.mb-1 {
  font-size: 14px !important; font-weight: 600 !important; color: var(--bb-label-2) !important; margin: 0 !important; line-height: 1.3;
}
html.hig app-crm .card-body .d-flex.flex-column:has(> p.cursor-pointer) { flex-direction: row !important; align-items: baseline; gap: 6px; }
html.hig app-crm .card-body p.cursor-pointer { font-size: 24px !important; font-weight: 700; color: var(--bb-label); letter-spacing: -0.02em; margin: 0 !important; line-height: 1.2; }
html.hig app-crm .card-body p.cursor-pointer .text-muted, html.hig app-crm .card-body .font-small-3.text-muted { font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: 0; }
html.hig app-crm .card-body .text-container { min-width: 0; }
/* "Ordered [5] times last month" line */
html.hig app-crm .card-body .pt-1 { padding-top: 10px !important; font-size: 12.5px; }
html.hig app-crm .card-body .pt-1 p { font-size: 12.5px; }
html.hig app-crm .custom-form-control {
  width: 30px !important; height: 22px !important; border: 0 !important; border-radius: 6px; background: var(--bb-fill-2);
  font-weight: 700; margin: 0 4px; color: var(--bb-label);
}
html.hig app-crm .ft-edit, html.hig app-crm .icon-close { color: var(--bb-label-3) !important; font-size: 15px !important; }
html.hig app-crm .ft-edit:hover { color: var(--bb-label) !important; }
html.hig app-crm .icon-close:hover { color: var(--bb-red-text) !important; }
html.hig app-crm .row > [class*="col-md-3"] > .card { height: calc(100% - 20px); }
/* filters */
html.hig app-crm fieldset {
  border: 0 !important; padding: 0 !important; margin: 0 !important;
}
html.hig app-crm fieldset legend {
  font-size: 13px !important; font-weight: 600; color: var(--bb-label-3); text-transform: uppercase; letter-spacing: .04em;
  width: auto; margin-bottom: 8px; padding: 0 !important;
}
html.hig app-crm fieldset label { font-size: 12px !important; line-height: 1.25; }
html.hig app-crm .btn-success { background: var(--bb-fill) !important; color: var(--bb-label) !important; }
html.hig app-crm .btn-success:hover { background: rgba(118, 118, 128, 0.2) !important; }

/* ==========================================================================
   Contact Bonbell, Profile, Admins, QR generation
   ========================================================================== */
/* ---------- Contact Bonbell: a clean conversation list ------------------ */
html.hig app-contact-us ngb-tabset > ul.nav-pills:has(> li:only-child) { display: none !important; }
html.hig app-contact-us app-archieved h4.text-bold-500, html.hig app-contact-us app-active h4.text-bold-500 { display: none; }
html.hig app-contact-us app-archieved > div > br, html.hig app-contact-us app-active > div > br { display: none; }
html.hig app-contact-us .dragdrop-container .container-fluid { padding: 0 !important; height: auto !important; }
html.hig app-contact-us .chat { padding: 0 !important; }
html.hig app-contact-us .contacts_card { height: auto !important; min-height: 0 !important; margin: 0 !important; }
html.hig app-contact-us .contacts_body { padding: 6px 8px !important; height: auto !important; max-height: 70vh; overflow: auto; }
html.hig app-contact-us .card-footer-contact:empty { display: none; }
html.hig app-contact-us .contact_header { border-bottom: 1px solid var(--bb-separator) !important; padding: 12px 16px !important; }
html.hig app-contact-us .contact_header form { margin: 0 !important; }
html.hig app-contact-us ul.contacts { list-style: none; margin: 0; padding: 0; }
html.hig app-contact-us ul.contacts > li {
  padding: 10px 12px !important; border-radius: 12px; margin: 2px 0; cursor: pointer; transition: background-color .15s;
  background: transparent !important; border: 0 !important;
}
html.hig app-contact-us ul.contacts > li:hover { background: var(--bb-fill-3) !important; }
html.hig app-contact-us ul.contacts > li.active { background: var(--bb-accent-soft) !important; }
html.hig app-contact-us .img_cont { width: 36px !important; height: 36px !important; flex: none; margin-inline-end: 12px; }
html.hig app-contact-us .user_img { width: 36px !important; height: 36px !important; border: 0 !important; box-shadow: 0 0 0 .5px var(--bb-separator-strong); }
html.hig app-contact-us .user_info { padding: 0 !important; margin: 0 !important; min-width: 0; }
html.hig app-contact-us .head_massage {
  font-size: 14.5px !important; font-weight: 600 !important; color: var(--bb-label) !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
html.hig app-contact-us .date { font-size: 12px !important; color: var(--bb-label-3) !important; margin: 0 0 0 12px !important; white-space: nowrap; }
html.hig app-contact-us .last_massage { font-size: 13px !important; color: var(--bb-label-3) !important; margin: 2px 0 0 !important; }
html.hig app-contact-us .last_massage:empty, html.hig app-contact-us .last_massage:blank { display: none; }
/* chat bubbles (opened request) */
html.hig app-contact-us .msg_cotainer, html.hig app-contact-us .msg_cotainer_send {
  border-radius: 16px !important; padding: 8px 12px !important; font-size: 14px; box-shadow: none !important;
}
html.hig app-contact-us .msg_cotainer { background: var(--bb-fill) !important; color: var(--bb-label) !important; }
html.hig app-contact-us .msg_cotainer_send { background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important; }
html.hig app-contact-us .type_msg { border-radius: 18px !important; background: var(--bb-fill-2) !important; border: 0 !important; }

/* ---------- Profile: compact header card --------------------------------- */
html.hig app-profile .row.justify-content-center > .col-8 { flex: 0 0 100%; max-width: 760px; }
html.hig app-profile .profile-with-cover { overflow: hidden; }
html.hig app-profile .profile-with-cover .card-img-top.bg-cover {
  height: 120px !important; background: linear-gradient(135deg, #2C2C2E 0%, #1C1C1E 55%, #3A2A10 100%) !important;
}
html.hig app-profile .profil-cover-details { margin: -48px 0 0 !important; position: relative; z-index: 2; align-items: flex-end; padding: 0 20px 16px; }
html.hig app-profile .profil-cover-details > .col-5:first-child { order: 2; flex: 1 1 auto; max-width: none; padding: 0 !important; }
html.hig app-profile .profil-cover-details > .col-2 { order: 1; flex: 0 0 auto; max-width: none; width: auto; padding: 0 !important; }
html.hig app-profile .profil-cover-details > .col-5:last-child { display: none; }
html.hig app-profile .profil-cover-details .halfway-fab { position: static !important; padding: 0 !important; transform: none !important; }
html.hig app-profile .profile-image img {
  width: 92px !important; height: 92px !important; border: 4px solid #fff !important; object-fit: cover;
  background: var(--bb-accent-soft-2); box-shadow: var(--bb-shadow-2);
}
html.hig app-profile .profil-cover-details h3.card-title.white {
  color: var(--bb-label) !important; font-size: 22px !important; font-weight: 700 !important; margin: 0 0 6px 16px !important; text-align: start;
}
html.hig [dir="rtl"] app-profile .profil-cover-details h3.card-title.white { margin: 0 16px 6px 0 !important; }
html.hig app-profile .profile-cover-buttons { position: absolute; top: 132px; inset-inline-end: 20px; z-index: 3; }
html.hig app-profile .profile-cover-buttons .halfway-fab { position: static !important; }
html.hig app-profile .profile-cover-buttons .btn { margin: 0 !important; }
html.hig app-profile .profile-section:has(.profile-menu:empty) { display: none; }
/* personal information as a grouped list */
html.hig app-profile #about .card-header { border-bottom: 0 !important; padding: 16px 20px 4px !important; }
html.hig app-profile #about .card-header h5 {
  text-align: start !important; font-size: 13px !important; font-weight: 600; color: var(--bb-label-3); text-transform: uppercase; letter-spacing: .04em; margin: 0;
}
html.hig app-profile #about .card-body { padding: 4px 20px 12px !important; }
html.hig app-profile #about .card-body > .row > div { flex: 0 0 100%; max-width: 100%; padding: 0 !important; }
html.hig app-profile #about ul { margin: 0 !important; padding: 0 !important; }
html.hig app-profile #about li { margin: 0 !important; padding: 12px 0 !important; border-bottom: 1px solid var(--bb-separator); }
html.hig app-profile #about .card-body > .row > div:last-child li { border-bottom: 0; }
html.hig app-profile #about li > span.primary {
  display: flex; justify-content: space-between; gap: 16px; color: var(--bb-label) !important; font-weight: 500 !important; font-size: 14.5px;
}
html.hig app-profile #about li > span.primary > a {
  color: var(--bb-label-2) !important; font-weight: 400 !important; display: inline-flex; align-items: center; gap: 8px;
}
html.hig app-profile #about li > span.primary > a i { color: var(--bb-label-3); font-size: 15px !important; width: 18px; }

/* ---------- Admins: avatars --------------------------------------------- */
html.hig app-res-admins .table td img {
  width: 36px !important; height: 36px !important; border-radius: 50% !important; object-fit: cover; background: var(--bb-accent-soft-2);
}
html.hig app-res-admins .table td:nth-child(2) { font-weight: 600; }

/* ---------- QR generation: selected design ------------------------------ */
html.hig app-qr-generation img[class*="design"], html.hig app-qr-generation .qr-design img {
  border-radius: 10px; transition: box-shadow .15s, transform .15s;
}
html.hig app-qr-generation .selected img, html.hig app-qr-generation .active img, html.hig app-qr-generation img.selected {
  box-shadow: 0 0 0 3px var(--bb-accent) !important;
}
/* profile header: stronger selectors (Apex sizes these with !important) */
html.hig app-profile .profile-with-cover { overflow: visible !important; }
html.hig app-profile .profile-with-cover .card-img-top.bg-cover { border-radius: var(--bb-r-lg) var(--bb-r-lg) 0 0; }
html.hig app-profile .profil-cover-details .profile-image img.rounded-circle,
html.hig app-profile .profil-cover-details .profile-image img.width-100 {
  width: 92px !important; height: 92px !important; min-width: 92px; max-width: none !important;
}
html.hig app-profile .profil-cover-details .halfway-fab, html.hig app-profile .profil-cover-details .profile-image { width: auto !important; height: auto !important; display: block; }
html.hig app-profile .profile-with-cover .profile-cover-buttons { position: absolute !important; top: 76px !important; inset-inline-end: 20px !important; left: auto; right: 20px; width: auto !important; }
html.hig [dir="rtl"] app-profile .profile-with-cover .profile-cover-buttons { right: auto; left: 20px; }
html.hig app-profile .profile-cover-buttons .btn { background: rgba(255,255,255,.92) !important; color: var(--bb-label) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html.hig app-profile .profil-cover-details h3.card-title { margin-bottom: 10px !important; }

/* ==========================================================================
   Item options dialog (options.js)
   ========================================================================== */
/* Text replaced by clearer wording (original stays in the DOM for Angular) */
html.hig .bb-relabel { font-size: 0 !important; }
html.hig .bb-relabel::after { content: attr(data-fmt); font-size: 13px; }
html.hig .modal-title.bb-relabel::after { font-size: 17px; font-weight: 600; }
html.hig .bb-optdlg h5.bb-relabel::after { font-size: 15px; font-weight: 700; }

html.hig .bb-optdlg .modal-dialog { max-width: 720px !important; }
html.hig .bb-optdlg .modal-body { padding: 14px 20px 6px !important; }
html.hig .bb-qty-toggle {
  display: flex !important; align-items: center; gap: 8px; justify-content: flex-end; margin: 0 0 10px !important;
  font-size: 12.5px !important; color: var(--bb-label-3) !important; font-weight: 500 !important; cursor: pointer;
}
html.hig .bb-qty-toggle input { margin: 0; }

/* Each group is a card */
html.hig .bb-optgroup {
  background: var(--bb-surface-2); border-radius: 14px; padding: 14px 14px 10px; margin-bottom: 12px;
  box-shadow: 0 0 0 1px var(--bb-separator);
}
html.hig .bb-optgroup > div > .row:first-child { align-items: center; }
html.hig .bb-optgroup .head2 { margin: 0 !important; }
html.hig .bb-optgroup [style*="text-align: right"] { display: flex; justify-content: flex-end; align-items: center; }
html.hig [dir="rtl"] .bb-optgroup [style*="text-align: right"] { justify-content: flex-start; }
/* the app's own delete buttons always remove the LAST row: replaced by ours */
html.hig .bb-optdlg [style*="text-align: right"] > a:not(.bb-del) { display: none !important; }

/* Required / Optional as a segmented control */
html.hig .bb-optgroup .row.form-group.justify-content-center {
  display: inline-flex !important; gap: 0 !important; background: var(--bb-fill); border-radius: 9px; padding: 2px; margin: 0 0 12px !important;
  width: auto; justify-content: flex-start !important; flex-wrap: nowrap;
}
html.hig .bb-optgroup .row.form-group.justify-content-center > .d-flex {
  position: relative; align-items: center; padding: 5px 14px; border-radius: 7px; cursor: pointer;
}
html.hig .bb-optgroup .row.form-group.justify-content-center > .d-flex input[type="radio"] {
  position: absolute; inset: 0; opacity: 0; width: 100% !important; height: 100%; margin: 0; cursor: pointer; z-index: 1;
}
html.hig .bb-optgroup .row.form-group.justify-content-center > .d-flex p { margin: 0 !important; font-size: 13.5px; font-weight: 500; }
html.hig .bb-optgroup .row.form-group.justify-content-center > .d-flex:has(input:checked) {
  background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04);
}
html.hig .bb-optgroup .row.form-group.justify-content-center > .d-flex:has(input:checked) p { font-weight: 600; }

/* Group "at least / at most": only when the group allows several choices */
html.hig .bb-optgroup .row.mb-2:has(input[formcontrolname="minimum_number_of_choices"][readonly]) { display: none !important; }

/* Options: one compact line each */
html.hig .bb-optgroup [formarrayname="options"] { border-top: 0 !important; padding-top: 0 !important; margin: 0 !important; }
html.hig .bb-optgroup [formarrayname="options"]:has(> .bb-optrow-first) { border-top: 1px solid var(--bb-separator) !important; padding-top: 10px !important; margin-top: 4px !important; }
html.hig .bb-optrow {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 110px 34px; column-gap: 10px; align-items: end;
  margin: 0 0 8px !important; position: relative;
}
html.hig .bb-show-qty .bb-optrow { grid-template-columns: minmax(0, 1fr) 100px 80px 80px 34px; }
html.hig .bb-optrow > * { padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; flex: none !important; grid-column: auto !important; }
html.hig .bb-optrow > .form-group.mb-1:has(> h5), html.hig .bb-optrow > [style*="text-align: right"] { display: none !important; }
html.hig .bb-optrow > .form-group.mb-1:has(input[formcontrolname="minimum_number_of_choices"]),
html.hig .bb-optrow > .form-group.mb-1:has(input[formcontrolname="maximum_number_of_choices"]) { display: none !important; }
html.hig .bb-show-qty .bb-optrow > .form-group.mb-1:has(input[formcontrolname="minimum_number_of_choices"]),
html.hig .bb-show-qty .bb-optrow > .form-group.mb-1:has(input[formcontrolname="maximum_number_of_choices"]) { display: block !important; }
html.hig .bb-optrow .form-group { margin: 0 !important; }
html.hig .bb-optrow label { margin-bottom: 4px !important; }
html.hig .bb-optrow:not(.bb-optrow-first) label { display: none !important; }
html.hig .bb-optrow input[formcontrolname="price"] { text-align: end; font-variant-numeric: tabular-nums; }
html.hig .bb-optrow input[formcontrolname="price"]:disabled { background: transparent !important; border-color: transparent !important; color: var(--bb-label) !important; font-weight: 600; }
html.hig .bb-optrow > .bb-del-opt { grid-column: -2 / -1 !important; align-self: end; margin-bottom: 2px !important; }

/* delete buttons */
html.hig .bb-del {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  height: 34px; min-width: 34px; padding: 0 8px; border-radius: 9px; background: var(--bb-fill-2); color: var(--bb-label-3);
  font-size: 12.5px; font-weight: 600; font-family: var(--bb-font);
}
html.hig .bb-del:hover { background: rgba(255, 59, 48, .12); color: var(--bb-red-text); }
html.hig .bb-del-group { height: 28px; }

/* add buttons */
html.hig .bb-optdlg .btn-plus { color: var(--bb-accent-text) !important; font-weight: 600 !important; background: transparent !important; }
html.hig .bb-optdlg .btn-plus:hover { background: var(--bb-accent-soft) !important; }
html.hig .bb-optdlg .btn-plus[style*="dashed"] {
  border: 1.5px dashed var(--bb-separator-strong) !important; border-radius: 12px !important; margin: 4px 0 10px !important;
  padding: 10px !important; width: 100% !important;
}
html.hig .bb-optdlg .w-100.text-center:has(> .btn-plus) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
html.hig .bb-opt-hint { font-size: 12.5px; color: var(--bb-label-3); }
html.hig .bb-opt-hint a { color: var(--bb-accent-text) !important; font-weight: 600; }

/* prices inside the option picker */
html.hig .ng-dropdown-panel .ng-option { display: flex !important; justify-content: space-between; gap: 12px; }
html.hig .bb-opt-price { color: var(--bb-label-3); font-variant-numeric: tabular-nums; font-size: 13px; }

/* "Options" label on the menu table icon */
html.hig .bb-opt-action {
  display: inline-flex !important; align-items: center; gap: 4px; padding: 0 10px 0 4px !important; height: 32px; border-radius: 9px;
  background: var(--bb-accent-soft); color: #6B3E00 !important; font-weight: 600; font-size: 12.5px; vertical-align: middle; margin: 0 3px;
}
html.hig .bb-opt-action::after { content: attr(data-label); }
html.hig .bb-opt-action i { background: transparent !important; width: 24px !important; color: #6B3E00 !important; margin: 0 !important; }
html.hig .bb-opt-action:hover { background: var(--bb-accent-soft-2); }

/* stronger than the generic label/title sizes */
html.hig .bb-optdlg .bb-relabel.bb-relabel, html.hig .bb-optdlg .modal-header .modal-title.bb-relabel,
html.hig .bb-optdlg label.bb-relabel, html.hig .bb-optdlg .ng-value-label.bb-relabel, html.hig .ng-dropdown-panel .bb-relabel { font-size: 0 !important; letter-spacing: 0 !important; }
html.hig .bb-optdlg label.bb-relabel::after { font-size: 13px; font-weight: 500; color: var(--bb-label-2); }
html.hig .bb-optdlg .ng-value-label.bb-relabel::after, html.hig .ng-dropdown-panel .bb-relabel::after { font-size: 14.5px; }
html.hig .bb-optgroup .row.form-group.justify-content-center { display: flex !important; width: max-content; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }

/* Menu items table: keep the actions visible */
html.hig .bb-menu :has(> table.bb-menu-table) { overflow-x: auto; }
html.hig .bb-menu table.bb-menu-table td:last-child, html.hig .bb-menu table.bb-menu-table th:last-child {
  position: sticky; right: 0; z-index: 1; background: var(--bb-surface) !important; white-space: nowrap;
  box-shadow: -8px 0 8px -8px rgba(0,0,0,.12);
}
html.hig [dir="rtl"] .bb-menu table.bb-menu-table td:last-child, html.hig [dir="rtl"] .bb-menu table.bb-menu-table th:last-child { right: auto; left: 0; box-shadow: 8px 0 8px -8px rgba(0,0,0,.12); }
html.hig .bb-menu table.bb-menu-table th:last-child { background: var(--bb-surface-2) !important; }
html.hig .bb-menu table.bb-menu-table td:last-child i[class*="ft-"] { margin: 0 2px !important; }

/* ==========================================================================
   New-order alert (alert.js): compact notification card
   ========================================================================== */
html.hig .bb-alert .modal-dialog { max-width: 360px !important; margin-top: 12vh; }
html.hig .bb-alert .modal-content { border-radius: 24px !important; overflow: hidden; }
html.hig .bb-alert .modal-header { display: none !important; }
html.hig .bb-alert h5.customH5, html.hig .bb-alert img[src*="alarm.gif"], html.hig .bb-alert .w-100:has(> img[src*="alarm.gif"]) { display: none !important; }
html.hig .bb-alert .modal-body { padding: 0 !important; }
html.hig .bb-alert-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px 18px; }
html.hig .bb-alert-bell {
  position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bb-accent); color: var(--bb-accent-ink); margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(245, 166, 35, .45);
}
html.hig .bb-alert-bell svg { width: 36px; height: 36px; transform-origin: 50% 8%; animation: bbBellRing 1.6s ease-in-out infinite; }
html.hig .bb-alert-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--bb-accent);
  animation: bbBellPulse 1.6s ease-out infinite;
}
@keyframes bbBellRing {
  0%, 50%, 100% { transform: rotate(0); }
  5% { transform: rotate(16deg); } 10% { transform: rotate(-14deg); } 15% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); } 25% { transform: rotate(6deg); } 30% { transform: rotate(-4deg); }
}
@keyframes bbBellPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html.hig .bb-alert-bell svg, html.hig .bb-alert-ring { animation: none; } }
html.hig .bb-alert-count { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--bb-label); }
html.hig .bb-alert-sub { font-size: 15px; color: var(--bb-label-3); margin-top: 4px; }
html.hig .bb-alert .modal-footer { border: 0 !important; background: transparent !important; padding: 6px 20px 22px !important; }
html.hig .bb-alert .modal-footer .btn {
  width: 100%; height: 48px; margin: 0 !important; border-radius: 14px !important; font-size: 0 !important;
  background: var(--bb-accent) !important; color: var(--bb-accent-ink) !important;
}
html.hig .bb-alert .modal-footer .btn i { display: none; }
html.hig .bb-alert .modal-footer .btn.bb-alert-btn::after { content: attr(data-fmt); font-size: 16px; font-weight: 600; }
html.hig .bb-alert .modal-footer .btn:hover { background: var(--bb-accent-hover) !important; }
