/* Straus restaurant workspace. Presentation only; Bootstrap and AngularJS own behavior. */
/* Use the font format already copied by the existing Grunt build. */
@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Palette: same names and values as src/theme.ts in the mobile app (straus.provider.react). */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #121619;
  --gray-70: #4d5358;
  --gray-40: #a2a9b0;
  --gray-30: #c1c7cd;
  --gray-20: #dde1e6;
  --gray-10: #f2f4f8;
  --blue-70: #0043ce;
  --blue-60: #0f62fe;
  --green: #27aa0b;
  --red: #f32f00;
  --yellow: #ffc000;
  --pale-yellow: #ffc836;
  --light-yellow: #e0be65;
  --orange: #f7951d;

  /* Fixed tones used on solid action fills. */
  --green-hover: #1f8a08;
  --danger-hover: #c22400;

  --sidebar-width: 188px;
  --topbar-height: 80px;
}

/* Roles. Rules below use these, never the palette directly, so a theme only swaps this block.
   Light is the default; dark follows the OS unless the user picks one (html[data-theme]).
   Dark values are derived from gray-100 and the palette hues: the mobile app has no dark theme. */
:root {
  color-scheme: light;
  --canvas: var(--gray-10);
  --surface: var(--white);
  --surface-subtle: #f8f9fb;
  --surface-2: var(--gray-10);
  --line: var(--gray-20);
  --line-strong: var(--gray-30);
  --ink: var(--gray-100);
  --muted: var(--gray-70);
  --faint: var(--gray-40);
  --primary: var(--blue-60);
  --primary-hover: var(--blue-70);
  --primary-ink: var(--blue-60);
  --primary-soft: rgba(15, 98, 254, .08);
  --primary-border: rgba(15, 98, 254, .28);
  --success-ink: #1b7a06;
  --success-soft: rgba(39, 170, 11, .1);
  --success-border: rgba(39, 170, 11, .3);
  --danger: var(--red);
  --danger-ink: #c22400;
  --danger-soft: rgba(243, 47, 0, .08);
  --danger-border: rgba(243, 47, 0, .28);
  --warning-ink: #7a5800;
  --warning-soft: rgba(255, 200, 54, .22);
  --warning-border: rgba(224, 190, 101, .6);
  --sidebar: linear-gradient(170deg, var(--login-panel), var(--login-panel-end));
  --overlay: rgba(18, 22, 25, .5);
  --login-panel: var(--blue-60);
  --login-panel-end: var(--blue-70);
  --login-on-panel: var(--white);
  --login-ornament: rgba(255, 255, 255, .18);
  --login-shadow: rgba(0, 25, 90, .2);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: var(--gray-100);
  --surface: #1a1f23;
  --surface-subtle: #1f252a;
  --surface-2: #262d33;
  --line: #2d353c;
  --line-strong: #3f484f;
  --ink: var(--gray-10);
  --muted: var(--gray-40);
  --faint: #7b838b;
  --primary-ink: #78a9ff;
  --primary-soft: rgba(120, 169, 255, .14);
  --primary-border: rgba(120, 169, 255, .35);
  --success-ink: #5fd043;
  --success-soft: rgba(95, 208, 67, .14);
  --success-border: rgba(95, 208, 67, .35);
  --danger-ink: #ff7a59;
  --danger-soft: rgba(255, 122, 89, .14);
  --danger-border: rgba(255, 122, 89, .38);
  --warning-ink: var(--pale-yellow);
  --warning-soft: rgba(255, 200, 54, .14);
  --warning-border: rgba(224, 190, 101, .4);
  --overlay: rgba(0, 0, 0, .65);
}
[ng-cloak], .ng-cloak { display: none !important; }
.radio-btn:checked + label { background-color: var(--primary-soft); }
.radio-btn { position: absolute; opacity: 0; }
.radio-btn:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 3px; }
.test-show { display: block !important; }
.ui-select-bootstrap input.ui-select-search { width: 100% !important; }

@media screen {
  html, body { min-height: 100%; width: 100%; }
  body { margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; font-weight: 450; line-height: 1.6; }
  *, *::before, *::after { box-sizing: border-box; }
  a { color: var(--primary-ink); }
  a:hover, a:focus { color: var(--primary-ink); text-decoration: underline; }
  button, input, select, textarea { font: inherit; }
  a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
  /* Bootstrap draws a thick ring on any focused link, mouse clicks included; keep rings for the keyboard only */
  a:focus:not(:focus-visible) { outline: none; }
  h1, h2, h3, h4 { color: var(--ink); font-weight: 650; line-height: 1.25; }
  h1 { margin: 0 0 10px; font-size: 32px; letter-spacing: -1px; }
  h2 { font-size: 22px; letter-spacing: -.4px; }
  h3 { font-size: 19px; }
  label { font-weight: 550; }
  small { font-size: 13px; }
  hr { border-color: var(--line); }
  .text-muted, .help-block { color: var(--muted); }
  .text-primary { color: var(--primary-ink); }
  .text-success { color: var(--success-ink); }
  .text-danger, .accent { color: var(--danger-ink); }
  .text-warning { color: var(--warning-ink); }
  .text-info { color: var(--primary-ink); }
  .container-fluid-first { padding: 0; }
  .container-flex { min-width: 0; }
  .dashboard-layout { width: calc(100% - var(--sidebar-width)); min-height: 100vh; margin-left: var(--sidebar-width); padding: calc(var(--topbar-height) + 30px) 32px 32px; }
  .dashboard-layout .container, .wide-container { width: 100%; max-width: 1440px; padding: 0; }
  .dashboard-layout > .container > h1, .dashboard-layout > .container > [class*="col-"] > h1, .dashboard-layout .container > .row > h1 { margin-top: 0; margin-bottom: 28px; }
  .dashboard-layout > .container > [class*="col-"]:first-child { padding-left: 0; }
  .dashboard-layout .container .col-lg-8 { width: 100%; max-width: 960px; }
  .dashboard-layout .container > .row { margin-left: 0; margin-right: 0; }
  .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
  .page-heading h1 { margin-bottom: 6px; }
  .page-heading > .btn { flex-shrink: 0; }
  .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 0 10px; }
  .section-heading h2 { margin: 0; font-size: 17px; }
  .count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin-left: 7px; padding: 0 7px; background: var(--line); border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 650; vertical-align: middle; }

  /* Persistent navigation */
  .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: var(--sidebar-width); background: var(--sidebar); color: rgba(255, 255, 255, .85); }
  .sidebar-brand-row { height: 100px; padding: 28px 18px; }
  .brand { display: inline-flex; align-items: center; gap: 12px; border-radius: 12px; color: #fff; line-height: 1; text-decoration: none; }
  /* The sidebar is the primary blue, so the default blue ring would be invisible on it */
  .app-sidebar a:focus-visible, .app-sidebar button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .brand-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .brand-name strong { font-size: 24px; font-weight: 750; letter-spacing: -1px; }
  .brand-name span { color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
  .brand:hover, .brand:focus { color: #fff; text-decoration: none; }
  .brand-symbol { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 38px; border: 1px solid var(--login-ornament); border-radius: 11px; background: var(--login-ornament); color: #fff; font-size: 21px; }
  /* Bottom room keeps the last link clear of the Tawk.to chat bubble. */
  .sidebar-content { height: calc(100% - 100px); padding: 12px 12px 76px; overflow-y: auto; }
  .sidebar-links { margin-bottom: 26px; }
  .sidebar-links > li { margin: 5px 0; }
  .sidebar-links > li > a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 550; line-height: 1.5; transition: background-color .15s, color .15s; }
  .sidebar-links > li > a > .fa { flex: 0 0 19px; width: 19px; font-size: 18px; text-align: center; }
  .sidebar-links > li > a:hover, .sidebar-links > li > a:focus { background: rgba(255, 255, 255, .12); color: #fff; }
  .sidebar-links > li.active > a { color: #fff; background: rgba(255, 255, 255, .2); font-weight: 700; }
  .sidebar-links > li.nav-disabled > a { color: rgba(255, 255, 255, .5); text-decoration: line-through; }
  .sidebar-bottom { margin-top: auto; padding-top: 20px; }
  .sidebar-bottom .sidebar-links { margin-bottom: 20px; }
  .app-sidebar .navbar-toggle { display: none; color: #fff; }
  .app-topbar { position: fixed; inset: 0 0 auto var(--sidebar-width); z-index: 1030; display: flex; align-items: center; justify-content: space-between; height: var(--topbar-height); padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .branch-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .branch-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; color: var(--primary-ink); background: var(--surface-2); font-size: 18px; }
  .branch-identity strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
  .topbar-tools { flex-shrink: 0; margin-left: 16px; }
  .dropdown-menu { padding: 6px; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 30px rgba(18, 22, 25, 0.08); }
  .dropdown-menu .btn { border: 0; }
  .dropdown-menu > li.active .btn { color: var(--primary-ink); background: var(--primary-soft); }

  /* Shared language picker for the workspace and sign-in screen. */
  .language-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-transform: uppercase; transition: background-color .15s, border-color .15s; }
  .language-trigger > .fa-globe { color: var(--primary-ink); font-size: 18px; }
  .language-trigger .language-chevron { margin-left: 3px; color: var(--muted); font-size: 15px; transition: transform .15s; }
  .language-trigger:hover, .language-selector.open > .language-trigger { background: var(--primary-soft); border-color: var(--primary-border); }
  .language-selector.open .language-chevron { transform: rotate(180deg); }
  .language-trigger:focus:not(:focus-visible) { outline: none; }
  .language-trigger:focus-visible { outline: 3px solid var(--primary-border); outline-offset: 3px; }
  .language-selector > .language-menu { right: 0; left: auto; min-width: 224px; margin-top: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 36px rgba(18, 22, 25, 0.08), 0 2px 6px rgba(18, 22, 25, 0.02); }
  .language-menu-heading { display: flex; align-items: center; gap: 8px; margin: 0 6px 5px; padding: 8px 5px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
  .language-menu-heading .fa { font-size: 14px; }
  .language-menu > li > .language-option { display: flex; align-items: center; gap: 11px; min-height: 46px; margin: 2px 0; padding: 10px 11px; border-radius: 8px; color: var(--ink); font-size: 14px; line-height: 1.4; transition: background-color .15s; }
  .language-menu > li > .language-option:hover, .language-menu > li > .language-option:focus { color: var(--ink); background: var(--primary-soft); }
  .language-menu > li.active > .language-option, .language-menu > li.active > .language-option:hover, .language-menu > li.active > .language-option:focus { color: var(--primary-ink); background: var(--primary-soft); font-weight: 600; }
  .language-option:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
  .language-flag { display: block; flex: 0 0 28px; width: 28px; height: 20px; border: 1px solid rgba(18, 22, 25, 0.07); border-radius: 4px; object-fit: cover; }
  .language-name { flex: 1; }
  .language-code { color: var(--muted); font-size: 12px; font-weight: 550; letter-spacing: .5px; text-transform: uppercase; }
  .language-check { width: 12px; color: var(--primary-ink); font-size: 12px; }
  .language-menu > li:not(.active) .language-code { margin-right: 23px; }

  /* Shared controls and surfaces, including legacy secondary pages */
  .btn { padding: 10px 16px; border-radius: 7px; font-size: 14px; font-weight: 600; line-height: 1.45; white-space: normal; transition: background-color .15s, border-color .15s; box-shadow: none; }
  .btn .fa, .btn .glyphicon { margin-right: 5px; }
  .btn-default { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
  .btn-default:hover, .btn-default:focus, .btn-default.active { color: var(--primary-ink); background: var(--primary-soft); border-color: var(--primary-border); }
  .btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
  .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active { color: #fff; background: var(--primary-hover); border-color: var(--primary-hover); }
  .btn-success { color: #fff; background: var(--green); border-color: var(--green); }
  .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active { color: #fff; background: var(--green-hover); border-color: var(--green-hover); }
  .btn-info { color: var(--primary-ink); background: var(--primary-soft); border-color: var(--primary-border); }
  .btn-warning { color: var(--gray-100); background: var(--pale-yellow); border-color: var(--light-yellow); }
  .btn-warning:hover, .btn-warning:focus { color: var(--gray-100); background: var(--yellow); border-color: var(--light-yellow); }
  .btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
  .btn-danger:hover, .btn-danger:focus { color: #fff; background: var(--danger-hover); border-color: var(--danger-hover); }
  .btn-link { color: var(--primary-ink); }
  .btn-sm { padding: 7px 11px; font-size: 13px; }
  .btn-xs { padding: 4px 8px; font-size: 12px; }
  .btn.disabled, .btn[disabled] { cursor: not-allowed; opacity: .5; }
  .btn-primary.disabled, .btn-primary[disabled] { background: var(--primary); border-color: var(--primary); }
  .btn-group { max-width: 100%; }
  .btn-group .btn { padding-left: 12px; padding-right: 12px; }
  .form-control { height: 42px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: var(--surface); box-shadow: none; font-size: 14px; }
  .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
  .form-control::placeholder { color: var(--faint); }
  textarea.form-control { min-height: 88px; }
  .form-group { margin-bottom: 20px; }
  .form-control-static { min-height: 42px; }
  .input-group-addon { border-color: var(--line-strong); color: var(--muted); background: var(--surface-2); font-size: 13px; }
  .input-group-addon-fixed { min-width: 120px; }
  input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; vertical-align: middle; accent-color: var(--primary); }
  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 2px rgba(18, 22, 25, 0.01); margin-bottom: 20px; }
  .panel-default > .panel-heading, .panel-primary > .panel-heading { color: var(--ink); background: var(--surface); border-color: var(--line); }
  .panel-heading { padding: 17px 22px; border-radius: 10px 10px 0 0; font-size: 14px; font-weight: 600; }
  .panel-heading .fa { margin-right: 7px; color: var(--muted); }
  .panel-body { padding: 22px; }
  .panel-footer { padding: 15px 22px; border-color: var(--line); background: var(--surface-subtle); border-radius: 0 0 10px 10px; }
  .panel-body > :last-child { margin-bottom: 0; }
  .label { display: inline-block; padding: 5px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: normal; }
  .label-lg { font-size: 13px !important; }
  .label-primary { color: var(--primary-ink); background: var(--primary-soft); }
  .label-success { color: var(--success-ink); background: var(--success-soft); }
  .label-default { color: var(--muted); background: var(--line); }
  .label-info { color: var(--primary-ink); background: var(--primary-soft); }
  .label-warning { color: var(--warning-ink); background: var(--warning-soft); }
  .label-danger { color: var(--danger-ink); background: var(--danger-soft); }
  .alert { padding: 13px 16px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; line-height: 1.65; }
  .alert-info { color: var(--primary-ink); background: linear-gradient(var(--primary-soft), var(--primary-soft)) var(--surface); border-color: var(--primary-border); }
  .alert-warning { color: var(--warning-ink); background: linear-gradient(var(--warning-soft), var(--warning-soft)) var(--surface); border-color: var(--warning-border); }
  .alert-danger { color: var(--danger-ink); background: linear-gradient(var(--danger-soft), var(--danger-soft)) var(--surface); border-color: var(--danger-border); }
  .alert-success { color: var(--success-ink); background: linear-gradient(var(--success-soft), var(--success-soft)) var(--surface); border-color: var(--success-border); }
  .alert-thin { margin-bottom: 0; padding: 10px 15px; }
  .table { font-size: 14px; background: var(--surface); }
  .table > thead > tr > th, .table > thead > tr > td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-2); font-size: 12px; font-weight: 600; }
  .table > tbody > tr > td, .table > tbody > tr > th { padding: 13px 12px; border-color: var(--line); vertical-align: middle; overflow-wrap: anywhere; }
  .table-striped > tbody > tr:nth-of-type(odd) { background: var(--surface-subtle); }
  .table-hover > tbody > tr:hover { background: var(--primary-soft); }
  .table.borderless > tbody > tr > td, .table.borderless > thead > tr > td { border: 0; padding: 7px 0; background: transparent; }
  table .alert { margin-bottom: 5px; }
  .list-group-item { border-color: var(--line); }
  .list-group-item.thin-item { padding-top: 5px; padding-bottom: 5px; }
  .nav-tabs { border-bottom-color: var(--line); }
  .nav-tabs > li > a { color: var(--muted); border-radius: 7px 7px 0 0; }
  .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: var(--primary-ink); background: var(--surface); border-color: var(--line); border-bottom-color: var(--surface); }
  .nav-tabs .label { margin-left: 8px; }
  .modal-content, .ngdialog.ngdialog-theme-default .ngdialog-content { width: 750px; max-width: calc(100vw - 32px); padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-family: inherit; color: var(--ink); font-size: 15px; box-shadow: 0 20px 80px rgba(18, 22, 25, 0.15); }
  .modal-content { width: 100%; }
  .modal-header, .modal-body, .modal-footer { padding: 24px; }
  .ngdialog.ngdialog-theme-default { padding-top: 48px; padding-bottom: 48px; }
  .modal-header, .modal-footer { border-color: var(--line); }
  .modal-title { margin: 0; font-size: 21px; padding-right: 20px; }
  .ngdialog.ngdialog-theme-default .ngdialog-close { top: 12px; right: 12px; }
  .ngdialog.ngdialog-theme-default .ngdialog-close:before { color: var(--muted); font-family: inherit; }
  .ngdialog .form-horizontal .control-label { text-align: left; }
  .ngdialog .form-group { margin-left: 0; margin-right: 0; }
  .loading-spinner { display: block; padding: 35px 20px; color: var(--muted); }
  .loading-spinner i { font-size: 28px; }
  .growl-container { z-index: 1060; }
  .large-icons .glyphicon { font-size: 23px; }

  /* Theme + language controls, top right */
  .topbar-tools, .login-languages { display: flex; align-items: center; gap: 8px; }
  .theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1; transition: background-color .15s, border-color .15s; }
  .theme-toggle:hover { background: var(--primary-soft); border-color: var(--primary-border); }
  .theme-toggle svg { display: block; width: 20px; height: 20px; }
  .theme-toggle:focus:not(:focus-visible) { outline: none; }
  .theme-toggle:focus-visible { outline: 3px solid var(--primary-border); outline-offset: 3px; }

  /* Bootstrap, daterangepicker and friends ship light-only colors; follow the active theme. */
  .dropdown-menu { background-color: var(--surface); }
  .dropdown-menu > li > a { color: var(--ink); }
  .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: var(--ink); background-color: var(--surface-2); }
  .dropdown-menu .divider { background-color: var(--line); }
  .close { color: var(--ink); text-shadow: none; }
  .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { color: var(--muted); background-color: var(--surface-2); opacity: 1; }
  .nav-tabs > li > a:hover { background-color: var(--surface-2); border-color: var(--line); }
  .table-bordered, .table-bordered > thead > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > th, .table-bordered > tbody > tr > td { border-color: var(--line); }
  .list-group-item { color: var(--ink); background-color: var(--surface); }
  a.list-group-item:hover, a.list-group-item:focus { color: var(--ink); background-color: var(--surface-2); }
  .list-group-item-success { color: var(--success-ink); background-color: var(--success-soft); }
  .list-group-item-info { color: var(--primary-ink); background-color: var(--primary-soft); }
  .list-group-item-warning { color: var(--warning-ink); background-color: var(--warning-soft); }
  .list-group-item-danger { color: var(--danger-ink); background-color: var(--danger-soft); }
  .daterangepicker { color: var(--ink); background-color: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 36px rgba(18, 22, 25, .12); }
  .daterangepicker:before { border-bottom-color: var(--line); }
  .daterangepicker:after { border-bottom-color: var(--surface); }
  .daterangepicker.dropup:before { border-top-color: var(--line); }
  .daterangepicker.dropup:after { border-top-color: var(--surface); }
  .daterangepicker .calendar-table { background-color: var(--surface); border-color: var(--surface); }
  .daterangepicker td.available:hover, .daterangepicker th.available:hover { background-color: var(--surface-2); }
  .daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date { color: var(--faint); background-color: var(--surface); }
  .daterangepicker td.in-range { color: var(--ink); background-color: var(--primary-soft); }
  .daterangepicker td.active, .daterangepicker td.active:hover { color: #fff; background-color: var(--primary); }
  .daterangepicker td.disabled, .daterangepicker option.disabled { color: var(--faint); }
  .daterangepicker select.monthselect, .daterangepicker select.yearselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect { color: var(--ink); background-color: var(--surface); border-color: var(--line-strong); }
  .daterangepicker .ranges li { color: var(--primary-ink); background-color: var(--surface-2); border-color: var(--surface-2); border-radius: 6px; }
  .daterangepicker .ranges li:hover, .daterangepicker .ranges li.active { color: #fff; background-color: var(--primary); border-color: var(--primary); }
  .daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span { border-color: var(--ink); }

  /* Orders: a focused queue and independent detail pane */
  .orders-workspace { display: flex; flex-direction: column; height: calc(100dvh - var(--topbar-height) - 62px); min-height: 580px; }
  .orders-workspace .page-heading { justify-content: flex-start; gap: 16px; margin-bottom: 14px; }
  .orders-workspace .page-heading h1 { margin-bottom: 0; font-size: 26px; }
  .orders-workspace .page-heading > .btn { padding: 7px 14px; }
  .orders-overview { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 10px; }
  .order-metric { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 150px; padding: 9px 16px 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .metric-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; color: var(--primary-ink); background: var(--primary-soft); border-radius: 9px; font-size: 16px; }
  .metric-icon-soft { color: var(--warning-ink); background: var(--warning-soft); }
  .metric-label { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
  .order-metric strong { display: block; font-size: 21px; line-height: 1.2; font-weight: 650; }
  .service-notifications { display: flex; align-items: center; flex: 1; min-width: 0; }
  /* Drops onto its own row when the queue column is too narrow to share one with the metric cards */
  .orders-overview .service-notifications { flex: 1 1 200px; }
  .notifications { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; float: none !important; width: 100%; }
  .notifications .alert { display: inline-flex; align-items: center; margin: 0; padding: 7px 12px; font-size: 13px; line-height: 1.3; }
  .notifications delivery-time-info { display: flex; align-items: center; }
  .notifications delivery-time-info .alert { color: var(--muted); background: transparent; border-color: transparent; padding: 0 8px; font-size: 12px; }
  .info-row { margin-bottom: 16px; }
  .orders-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); --orders-gap: 26px; gap: var(--orders-gap); flex: 1; min-height: 0; }
  .orders-primary { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
  .order-queue { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
  .independent-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; overscroll-behavior-y: contain; }
  .left-scroll { flex: 1; padding: 0 5px 8px 0; }
  .order-detail-column { position: relative; min-height: 0; min-width: 0; }
  /* Divider centered in the gap between the queue and the details pane */
  .order-detail-column::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--orders-gap) / -2); border-left: 1px solid var(--line-strong); pointer-events: none; }
  .right-scroll { height: 100%; padding-right: 5px; }
  .orders-list { margin-bottom: 0; }
  .orders-list .order-card { position: relative; display: block; margin-bottom: 8px; padding: 9px 14px; border: 1px solid var(--line); line-height: 1.35; border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
  .orders-list .order-card:hover, .orders-list .order-card:focus { border-color: var(--primary-border); background: var(--surface-subtle); color: var(--ink); }
  .orders-list .order-card.active, .orders-list .order-card.active:hover, .orders-list .order-card.active:focus { border-color: var(--primary); background: linear-gradient(var(--primary-soft), var(--primary-soft)) var(--surface); box-shadow: inset 3px 0 0 var(--primary); color: var(--ink); }
  .orders-list .order-card.disabled { opacity: .7; }
  /* Status tint like the old design: blue / yellow / green cards */
  .orders-list .order-card.list-group-item-info { background: var(--primary-soft); border-color: var(--primary-border); }
  .orders-list .order-card.list-group-item-warning { background: var(--warning-soft); border-color: var(--warning-soft); }
  .orders-list .order-card.list-group-item-success { background: var(--success-soft); border-color: var(--success-soft); }
  .orders-list .order-card.list-group-item-info:hover, .orders-list .order-card.list-group-item-warning:hover, .orders-list .order-card.list-group-item-success:hover { filter: brightness(.97); }
  .orders-list .order-card.active.list-group-item-info, .orders-list .order-card.active.list-group-item-warning, .orders-list .order-card.active.list-group-item-success { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
  /* Order card: header (id, time, type) / address / amounts / status */
  .orders-list .order-card { padding: 9px 12px; }
  .order-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; }
  .order-number { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
  .order-time { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
  .order-card .order-time { margin-left: 0; }
  .order-time .fa { margin-right: 2px; }
  .order-card .order-flag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; }
  .order-type { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
  .order-address { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; }
  .order-address > .fa { flex: 0 0 16px; margin-top: 1px; color: var(--primary-ink); font-size: 18px; line-height: 1.2; text-align: center; }
  .order-address order-address { display: block; min-width: 0; overflow-wrap: anywhere; }
  .address-main { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }
  .address-rest { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; line-height: 1.3; }
  .order-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; margin-bottom: 7px; }
  .order-money-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px 4px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .order-money-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1; }
  .order-money-icon.is-sum { color: var(--primary-ink); background: var(--primary-soft); }
  .order-money-icon.is-courier { color: var(--warning-ink); background: var(--warning-soft); }
  .order-money-icon .large-icons .glyphicon { font-size: 13px; }
  .order-money-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .order-money-text small { color: var(--muted); font-size: 11px; }
  .order-money-text strong { font-size: 14px; font-weight: 650; }
  .order-money-text em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 500; }
  .order-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; }
  .order-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 650; }
  .list-group-item-info .order-status { color: var(--primary-ink); border-color: var(--primary-border); }
  .list-group-item-warning .order-status { color: var(--warning-ink); border-color: var(--warning-border); }
  .list-group-item-success .order-status { color: var(--success-ink); border-color: var(--success-border); }
  .order-foot-extra { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px 10px; margin-left: auto; font-size: 12px; }
  .order-prep { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 650; }
  .order-prep.is-wait { color: var(--danger-ink); background: linear-gradient(var(--danger-soft), var(--danger-soft)) var(--surface); border-color: var(--danger-border); }
  .order-prep.is-go { color: var(--success-ink); background: linear-gradient(var(--success-soft), var(--success-soft)) var(--surface); border-color: var(--success-border); }
  .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .order-card .order-branch { display: flex; align-items: center; gap: 6px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line-strong); color: var(--primary-ink); font-size: 12px; font-weight: 600; }
  .order-details .panel { margin-bottom: 8px; }
  .order-details .panel-body { padding: 10px 14px; }
  .order-details .panel-heading { padding: 9px 14px; font-size: 13px; }
  .selected-order-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .selected-order-heading h2 { margin: 0; font-size: 20px; }
  .order-details .table { font-size: 13px; margin-bottom: 6px; }
  /* Thin separators between rows, like before the redesign (alert rows stay unlined) */
  .order-details .table.borderless > tbody > tr > td { padding: 6px 0; border-top: 1px solid var(--line); }
  .order-details .table.borderless > tbody > tr:first-child > td, .order-details .table.borderless > tbody > tr > td[colspan] { border-top: 0; }
  .order-details .alert { margin-bottom: 6px; padding: 8px 12px; line-height: 1.5; }
  .order-details .table td:first-child { color: var(--muted); padding-right: 12px; }
  .order-details .table td[colspan] { color: inherit; padding-right: 0; }
  .order-details .table td:first-child > .fa { display: inline-block; width: 18px; margin-right: 8px; color: var(--primary-ink); text-align: center; }
  .order-details .list-group { margin-bottom: 6px; }
  .order-details .list-group-item { margin-bottom: 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 13px; }
  .order-details .list-group-item-success { margin-top: 6px; padding: 10px 12px; background: var(--success-soft); border: 0; border-radius: 6px; color: var(--ink); font-weight: 650; }
  /* Prices stay in tinted blocks so they are easy to spot; "-" placeholders use the neutral block */
  .order-details .list-group .label { min-width: 40px; color: var(--muted); background: var(--surface-2); text-align: center; }
  .order-details .list-group .label-primary { color: var(--primary-ink); background: var(--primary-soft); }
  .order-details .list-group .label-default { color: var(--muted); background: var(--line); }
  /* Name on the left, price block on the right; nested options go on their own line */
  .order-details .list-group li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; }
  .order-details .list-group li > ul { flex: 0 0 100%; margin: 2px 0 0; }
  .order-details .list-group li > .pull-right { float: none !important; margin-left: auto; }
  .order-details .list-group li li { padding: 2px 0; }
  .order-details .list-group li li .label { padding: 2px 8px; }
  .order-details .table.client-info-table > tbody > tr > td:first-child { width: 1%; padding-right: 16px; white-space: nowrap; }
  .order-details .row.col-xs-12 { width: 100%; float: none; margin: 0; padding: 0; }
  .order-details .btn-group { display: inline-flex; flex-wrap: wrap; gap: 5px; }
  .order-details .btn-group > .btn { border-radius: 6px !important; margin-left: 0 !important; }
  .order-details .btn-group > .btn.active { color: var(--primary-ink); border-color: var(--primary-border); background: var(--primary-soft); box-shadow: none; }
  .order-details .btn-warning { color: #fff; background: var(--primary); border-color: var(--primary); }
  .order-details .btn-warning:hover { background: var(--primary-hover); }
  /* Order actions: icon buttons, preset grid, green "send to Straus" */
  .order-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
  .order-details .order-actions .order-accept, .order-details .order-actions .order-ready, .order-details .order-actions .order-tools { margin-top: 8px; }
  .order-details .order-actions .order-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .order-details .order-actions .prep-section { margin-top: 12px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
  .order-details .order-actions .prep-section .order-facts { margin-bottom: 4px; background: transparent; }
  .order-actions .order-tools::before, .order-actions .order-tools::after { display: none; }
  .order-details .btn-group.prep-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 8px; }
  .prep-presets > .btn { width: 100%; padding-left: 6px; padding-right: 6px; }
  .prep-presets > .prep-custom, .prep-presets > .prep-input { grid-column: 1 / -1; }
  .prep-presets .prep-input, .prep-presets .prep-input .form-control { width: 100%; }
  .prep-presets .prep-input .form-control { height: 42px; }
  .prep-exact { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
  .prep-exact-label { color: var(--muted); }
  .prep-exact-total { margin-left: auto; font-size: 18px; }
  .order-details .prep-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
  .prep-submit .btn-success { flex: 1 1 200px; }
  .prep-submit .prep-mode { flex: 1 1 auto; }
  .empty-state { padding: 50px 24px; text-align: center; }
  .empty-state h2, .empty-state h3 { margin: 18px 0 10px; font-size: 20px; }
  .empty-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-ink); font-size: 24px; }
  .queue-empty-state { padding-top: 70px; }
  .detail-empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; min-height: 360px; border: 1px dashed var(--line-strong); border-radius: 11px; background: var(--surface-subtle); }
  .detail-empty-state h2 { margin-top: 30px; }
  .empty-order-illustration { position: relative; width: 90px; height: 104px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 7px 7px 0 var(--surface-2); transform: rotate(-7deg); }
  .empty-order-illustration > .fa { padding-top: 25px; color: var(--faint); font-size: 47px; }
  .empty-order-illustration > span { position: absolute; right: -15px; bottom: -5px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 4px solid var(--surface-subtle); border-radius: 50%; background: var(--primary); color: #fff; }

  /* Menu management */
  .discount-summary { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
  .discount-summary strong { font-size: 24px; line-height: 1.3; }
  .product-category { overflow: hidden; }
  .category-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; }
  .category-heading h2 { margin: 0; font-size: 18px; }
  .product-table-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .65fr) 170px; gap: 24px; padding: 11px 24px; background: var(--surface-subtle); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
  .product-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .65fr) 170px; align-items: center; gap: 18px 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
  .product-row:last-child { border-bottom: 0; }
  .product-row.has-success { background: var(--success-soft); box-shadow: inset 3px 0 0 var(--green); }
  .product-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
  .product-image-wrap { position: relative; flex-shrink: 0; }
  .product-image { display: block; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
  .product-placeholder { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--faint); font-size: 24px; }
  .product-file-input { display: none !important; }
  .product-image-change { position: absolute; bottom: -5px; right: -5px; width: 27px; height: 27px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 12px; }
  .product-image-change:hover { background: var(--primary-soft); }
  .product-name { min-width: 0; }
  .product-name label { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
  .product-links { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: fit-content; max-width: 100%; margin-top: 10px; }
  .product-action { padding: 6px 12px; font-size: 13px; text-align: left; }
  .product-action .fa { color: var(--primary-ink); }
  .product-options-body { max-height: 62vh; overflow-y: auto; }
  .option-group { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
  .option-group + .option-group { margin-top: 22px; }
  .option-group-title { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 15px; font-weight: 700; letter-spacing: .2px; }
  .option-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 20px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .option-row:last-child { border-bottom: 0; }
  .option-price-field { width: 124px; }
  .option-price-field .form-control { height: 36px; padding: 6px 8px; font-weight: 600; text-align: right; -moz-appearance: textfield; }
  .option-price-field .form-control::-webkit-inner-spin-button, .option-price-field .form-control::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
  .option-price-field .input-group-addon { padding: 6px 9px; font-size: 12px; }
  .option-row.has-success { background: var(--success-soft); box-shadow: inset 3px 0 0 var(--green); }
  .option-row.has-success .input-group-addon { color: var(--success-ink); background: var(--success-soft); border-color: var(--success-border); }  .option-label { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
  .option-row.is-off .option-label { color: var(--muted); }
  .option-row .product-unavailable { grid-column: 1 / -1; }
  @media (max-width: 575px) {
    .option-row { grid-template-columns: minmax(0, 1fr) auto; }
    .option-label { grid-column: 1 / -1; }
  }
  .product-availability { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
  .availability-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 450; cursor: pointer; }
  .availability-toggle input { position: absolute; left: 0; width: 31px; height: 18px; margin: 0; opacity: 0; }
  .toggle-track { display: inline-block; flex-shrink: 0; width: 31px; height: 18px; padding: 3px; border-radius: 12px; background: var(--line-strong); transition: background-color .15s; }
  .toggle-track::after { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(18, 22, 25, 0.13); transition: transform .15s; }
  .availability-toggle input:checked + .toggle-track { background: var(--green); }
  .availability-toggle input:checked + .toggle-track::after { transform: translateX(13px); }
  .availability-toggle input:focus-visible + .toggle-track { outline: 3px solid var(--primary-border); outline-offset: 3px; }
  .availability-toggle input:disabled ~ span { opacity: .5; cursor: not-allowed; }
  .product-price .form-control { height: 40px; font-weight: 600; }
  .product-price .input-group-addon { padding: 6px 10px; font-size: 12px; }
  .product-discount { margin-top: 7px; font-size: 12px; color: var(--success-ink); }
  .product-discount s { color: var(--muted); margin-right: 4px; }
  .product-discount .label { margin-left: 4px; padding: 2px 4px; }
  .product-unavailable { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 15px; border-radius: 6px; background: var(--warning-soft); color: var(--warning-ink); font-size: 13px; }
  .product-unavailable .btn + .btn { margin-left: 6px; }
  .product-save-bar { position: sticky; z-index: 20; bottom: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 24px; padding: 16px 22px; border: 1px solid var(--primary-border); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 30px rgba(18, 22, 25, 0.06); }
  .product-save-bar > div { display: flex; gap: 8px; flex-shrink: 0; }

  /* Courier request: route, details and summary cards (follows the mobile app's new-order screen) */
  .courier-page .page-heading { margin-bottom: 22px; }
  .courier-page .page-heading h1 { margin-bottom: 0; }
  .courier-page .service-notifications { justify-content: flex-end; }
  .courier-page .info-row, .courier-page .notifications { margin-bottom: 0; }
  .courier-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .courier-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .courier-aside { position: sticky; top: calc(var(--topbar-height) + 24px); min-width: 0; }
  .courier-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .courier-card-title { margin: 0 0 16px; font-size: 17px; letter-spacing: -.2px; }
  .form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .form-field { display: flex; flex-direction: column; min-width: 0; }
  .form-field.is-wide { grid-column: 1 / -1; }
  .form-field > label:not(.switch) { margin: 0 0 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
  .form-field .form-control { height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background-color: var(--surface-2); }
  .form-field .form-control:hover { border-color: var(--line-strong); }
  .form-field .form-control:focus { border-color: var(--primary); background-color: var(--surface); }
  /* Custom chevron: the native arrow ignores padding and hugs the edge */
  .form-field select.form-control { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%234d5358' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px; }
  :root[data-theme="dark"] .form-field select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23a2a9b0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
  .form-field input.ng-invalid.ng-touched, .form-field input.ng-invalid.ng-dirty { border-color: var(--danger); }
  .field-hint { margin-top: 6px; font-size: 12px; line-height: 1.4; }
  .field-hint.is-warning { color: var(--warning-ink); }
  .field-hint.is-danger { color: var(--danger-ink); }
  .unit-input { position: relative; }
  .unit-input .form-control { padding-right: 56px; }
  .unit-input > span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 600; pointer-events: none; }

  .route { margin: 0; padding: 0; list-style: none; }
  .route > li + li { margin-top: 10px; }
  .route-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
  .route-link:hover, .route-link:focus { border-color: var(--primary-border); background: var(--primary-soft); color: var(--ink); text-decoration: none; }
  .route-marker { flex: 0 0 auto; width: 14px; height: 14px; border: 4px solid var(--primary); border-radius: 50%; background: var(--surface); }
  .route-marker-end { border-color: var(--ink); border-radius: 4px; }
  .route-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
  .route-label { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
  .route-address { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
  .route-address.is-empty { color: var(--faint); font-weight: 450; }
  .route-edit { flex: 0 0 auto; color: var(--faint); font-size: 15px; }
  .route-link:hover .route-edit, .route-link:focus .route-edit { color: var(--primary-ink); }

  .switch { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-weight: 600; }
  .switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
  .switch-track { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 12px; background: var(--line-strong); transition: background-color .15s; }
  .switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
  .switch input:checked + .switch-track { background: var(--primary); }
  .switch input:checked + .switch-track::after { transform: translateX(18px); }
  .switch input:focus-visible + .switch-track { outline: 3px solid var(--primary); outline-offset: 3px; }
  .switch-label { font-size: 15px; }
  .courier-time { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .courier-subtitle { display: block; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { position: relative; margin: 0; cursor: pointer; }
  .chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
  .chip span { display: block; min-width: 76px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; transition: border-color .15s, background-color .15s, color .15s; }
  .chip:hover span { border-color: var(--line-strong); }
  .chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
  .chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
  .courier-time .uib-timepicker td { vertical-align: middle; }
  .courier-time .uib-timepicker .form-control { width: 64px; height: 46px; text-align: center; }
  .courier-time .uib-timepicker .btn-link { padding: 4px 8px; color: var(--muted); }

  .courier-summary { padding-bottom: 22px; }
  .summary-hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
  .summary-rows { margin: 0 0 18px; }
  .summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .summary-row dt { color: var(--muted); font-weight: 550; }
  .summary-row dd { margin: 0; font-weight: 650; white-space: nowrap; }
  .summary-total { border-bottom: 0; padding-top: 14px; font-size: 16px; }
  .summary-total dt { color: var(--ink); font-weight: 650; }
  .summary-total dd { color: var(--primary-ink); font-size: 19px; }
  .courier-submit, .address-save { min-height: 50px; border-radius: 10px; font-size: 15px; }
  .courier-submit { display: block; width: 100%; }
  .address-save { min-width: 140px; }
  .address-form .form-fields { margin: 0; }

  /* Settings: toggle rows, filled inputs and a full-height save button, same language as the courier cards */
  .settings-form { display: flex; flex-direction: column; gap: 10px; }
  .settings-row .switch { flex-direction: row-reverse; justify-content: space-between; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); transition: border-color .15s; }
  .settings-row .switch:hover { border-color: var(--line-strong); }
  .settings-fields { margin-top: 10px; }
  .settings-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
  .settings-save { min-width: 140px; min-height: 46px; border-radius: 10px; font-size: 14px; }
  .push-status { margin: 10px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .push-status.is-problem { color: var(--danger-ink); }
  .switch.is-disabled { cursor: not-allowed; }
  .switch.is-disabled .switch-track { opacity: .5; }
  .switch.is-disabled .switch-label { color: var(--muted); }

  /* Push notification prompt: floats under the top bar, away from the Tawk.to bubble at the bottom right */
  .push-prompt { position: fixed; top: calc(var(--topbar-height) + 16px); right: 24px; z-index: 1030; display: flex; gap: 14px; width: 380px; max-width: calc(100vw - 32px); padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 40px rgba(18, 22, 25, .18); }
  .push-prompt-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; color: var(--primary-ink); background: var(--primary-soft); font-size: 18px; }
  .push-prompt-body { min-width: 0; }
  .push-prompt-body strong { display: block; font-size: 15px; line-height: 1.35; }
  .push-prompt-body p { margin: 4px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .push-prompt-actions { display: flex; gap: 8px; }

  /* Shared card, used by Ratings and Statistics */
  .stats-card, .rating-card, .ratings-filters, .review-card, .history-filters, .history-results, .report-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 2px rgba(18, 22, 25, 0.01); }
  .stats-card { margin-bottom: 16px; padding: 22px; }
  .stats-card-title { margin: 0 0 16px; font-size: 17px; }
  .stats-card-note { color: var(--muted); font-weight: 500; }
  .stats-section-title { margin: 0 0 16px; font-size: 19px; }
  .stat-label, .rating-card-label, .filter-title, .review-label { display: block; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; }

  /* Star rating: the fill follows --rating (0-5), fractions included */
  .stars { --star-on: var(--orange); --star-off: var(--line-strong); display: inline-block; font-size: 17px; line-height: 1; white-space: nowrap; background: linear-gradient(90deg, var(--star-on) calc(var(--rating, 0) / 5 * 100%), var(--star-off) 0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
  .stars::before { content: "\2605\2605\2605\2605\2605"; letter-spacing: 1px; }

  /* Ratings */
  .ratings-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
  .rating-card { padding: 20px 22px; }
  .rating-card-title { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 16px; }
  .rating-card-title .fa { color: var(--muted); font-size: 15px; }
  .rating-card-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .rating-card-score { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
  .rating-card-score strong { font-size: 32px; font-weight: 650; letter-spacing: -1px; line-height: 1.1; }
  .ratings-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px 36px; margin-bottom: 20px; padding: 18px 22px; }
  .filter-group { display: flex; flex-direction: column; gap: 10px; }
  .ratings-filters .chip span { min-width: 0; padding: 8px 14px; }
  .ratings-filters .chip .fa-star { color: var(--orange); font-size: 13px; }
  .ratings-filters .switch { min-height: 38px; }
  .ratings-apply { margin-left: auto; }
  .review-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
  .review-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) 170px; gap: 18px; align-items: start; padding: 18px 22px; }
  .review-score { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; color: var(--muted); background: var(--surface-2); font-size: 20px; font-weight: 650; }
  .review-score.is-good { color: var(--success-ink); background: var(--success-soft); }
  .review-score.is-mid { color: var(--warning-ink); background: var(--warning-soft); }
  .review-score.is-bad { color: var(--danger-ink); background: var(--danger-soft); }
  .review-main { min-width: 0; }
  .review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 24px; }
  .review-meta { color: var(--muted); font-size: 14px; }
  .review-meta strong { color: var(--ink); font-weight: 650; }
  .review-branch { margin-top: 6px; color: var(--muted); font-size: 13px; }
  .review-branch .fa { margin-right: 5px; }
  .review-comment { margin-top: 12px; padding: 13px 16px; border-radius: 8px; background: var(--surface-2); }
  .review-comment p { margin: 5px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
  .review-reply { margin-top: 13px; padding-left: 14px; border-left: 3px solid var(--primary); }
  .review-reply .review-label { color: var(--primary-ink); }
  .review-order { align-self: stretch; padding-left: 18px; border-left: 1px solid var(--line); }
  .review-order-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
  .review-order-row strong { font-size: 15px; overflow-wrap: anywhere; }
  .review-order-btn { flex: 0 0 auto; padding: 6px 9px; line-height: 1; }
  .ratings-pagination { display: flex; justify-content: center; margin-top: 22px; }
  .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
  .pagination > li { display: block; }
  .pagination > li > a, .pagination > li > span, .pagination > li:first-child > a, .pagination > li:last-child > a, .pagination > li:first-child > span, .pagination > li:last-child > span { float: none; display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; margin: 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 14px; font-weight: 600; line-height: 1; }
  .pagination > li > a:hover, .pagination > li > a:focus { color: var(--primary-ink); background: var(--primary-soft); border-color: var(--primary-border); }
  .pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, .pagination > .active > span { color: #fff; background: var(--primary); border-color: var(--primary); }
  .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > span { color: var(--faint); background: var(--surface-2); border-color: var(--line); cursor: not-allowed; }

  /* Statistics */
  .stats-page report-scope-display .alert { margin-bottom: 18px; }
  .stats-tabs, .sales-reports .nav-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 22px; padding: 4px; list-style: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
  .stats-tabs { width: fit-content; max-width: 100%; }
  .stats-tabs > li > a { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
  .stats-tabs > li > a:hover { color: var(--ink); }
  .stats-tabs > li.active > a { color: var(--primary-ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(18, 22, 25, .08); }
  .stats-tabs .label { margin-left: 2px; padding: 3px 6px; font-size: 11px; }
  .stats-tabs > li > a:focus-visible, .sales-reports .nav-pills > li > a:focus-visible { outline: 3px solid var(--primary-border); outline-offset: 2px; }
  .sales-reports .nav-pills { width: fit-content; max-width: 100%; margin-bottom: 18px; }
  .sales-reports .nav-pills > li { float: none; margin: 0; }
  .sales-reports .nav-pills > li > a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; background: transparent; }
  .sales-reports .nav-pills > li > a:hover, .sales-reports .nav-pills > li > a:focus { color: var(--ink); background: transparent; }
  .sales-reports .nav-pills > li.active > a, .sales-reports .nav-pills > li.active > a:hover, .sales-reports .nav-pills > li.active > a:focus { color: var(--primary-ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(18, 22, 25, .08); }
  .sales-reports .tab-content { min-width: 0; }
  .table-scroll { margin: 0 -8px; padding: 0 8px; overflow-x: auto; }
  .report-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
  .report-table th, .report-table td { padding: 11px 14px; text-align: right; white-space: nowrap; }
  .report-table thead th { color: var(--muted); border-bottom: 1px solid var(--line-strong); font-size: 12px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; }
  .report-table tbody th { position: sticky; left: 0; z-index: 1; padding-right: 20px; background: var(--surface); text-align: left; font-weight: 650; }
  .report-table tbody tr:hover > * { background: var(--surface-2); }
  .report-group-start > * { border-top: 1px solid var(--line); }
  .report-group-start:first-child > * { border-top: 0; }
  .report-main td { font-weight: 650; }
  .report-sub th, .report-sub td { padding-top: 7px; padding-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
  .report-sub th { padding-left: 26px; }
  .growth { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; }
  .growth.is-up { color: var(--success-ink); background: var(--success-soft); }
  .growth.is-down { color: var(--danger-ink); background: var(--danger-soft); }
  .growth .fa { font-size: 10px; }
  report[type="products"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
  .product-ranking { margin: 0; padding: 0; overflow: hidden; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
  .product-ranking-head { padding: 13px 18px; background: var(--surface-2); font-weight: 650; text-transform: capitalize; }
  .product-ranking-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
  .product-rank { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); background: var(--surface-2); font-size: 12px; font-weight: 650; }
  .product-name { min-width: 0; overflow-wrap: anywhere; }
  .product-count { margin-left: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }
  .product-total { color: var(--success-ink); font-weight: 650; white-space: nowrap; }
  .delivery-summary { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
  .delivery-summary .stats-card { margin-bottom: 0; }
  .delivery-average { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
  .stat-value { color: var(--success-ink); font-size: 42px; font-weight: 650; letter-spacing: -1px; line-height: 1.1; }
  .chart-box { position: relative; min-width: 0; }
  .delivery-table th, .delivery-table td { text-align: center; }
  .delivery-table th, .delivery-table td { padding-left: 10px; padding-right: 10px; }
  .delivery-table thead th { min-width: 104px; vertical-align: bottom; line-height: 1.35; letter-spacing: 0; text-transform: none; font-size: 12.5px; white-space: normal; }
  .delivery-table thead th:first-child, .delivery-table tbody th { text-align: left; min-width: 0; white-space: nowrap; }
  .delivery-table .is-total { background: var(--success-soft); color: var(--success-ink); }
  .delivery-table tbody tr:hover > .is-total { background: var(--success-soft); }
  .dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 1px rgba(18, 22, 25, .12); vertical-align: baseline; }
  /* Same hues as the weekly bar chart series (DeliveryTimeStatsCtrl colorPallet) */
  .dot-prep { background: #8b6015; }
  .dot-trip { background: #00ffff; }
  .dot-wait { background: #ff471a; }
  .dot-client { background: #0066ff; }
  .dot-total { background: #009933; }
  .dot-late { background: #ff9900; }
  .stats-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 32px; margin-bottom: 0; }
  .stats-legend dt { margin-bottom: 4px; font-size: 14px; font-weight: 650; }
  .stats-legend dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

  /* Pages built from sections stay readable on very wide screens */
  .ratings-page, .stats-page, .history-page, .downloads-page { max-width: 1440px; }

  /* History + Downloads */
  .icon-input { position: relative; }
  .icon-input > .fa { position: absolute; top: 50%; left: 15px; z-index: 2; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
  .icon-input .form-control, .form-field .icon-input .form-control { height: 46px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: 10px; background-color: var(--surface-2); }
  .icon-input .form-control:hover { border-color: var(--line-strong); }
  .icon-input .form-control:focus { border-color: var(--primary); background-color: var(--surface); }
  .history-filters { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 16px; padding: 18px 22px; }
  .history-filters .form-field { flex: 1 1 260px; max-width: 380px; }
  order-history-counters { display: block; }
  .history-counters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
  .history-counter { display: flex; flex-direction: column; gap: 3px; min-width: 150px; padding: 13px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
  .history-counter-label { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; }
  .history-counter strong { font-size: 24px; font-weight: 650; letter-spacing: -.5px; line-height: 1.2; }
  .history-counter.is-total strong { color: var(--primary-ink); }
  .history-results { overflow: hidden; }
  .history-search { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .history-search .icon-input { max-width: 420px; }
  .history-results .table-scroll { margin: 0; padding: 0; }
  .history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .history-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-2); font-size: 12px; font-weight: 650; letter-spacing: .4px; text-align: left; text-transform: uppercase; white-space: nowrap; }
  .history-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
  .history-table tbody tr:first-child td { border-top: 0; }
  .history-table tbody tr:hover { background: var(--surface-2); }
  .history-table .is-numeric { text-align: right; white-space: nowrap; }
  .history-id { font-weight: 650; white-space: nowrap; }
  .history-created { white-space: nowrap; }
  .history-source { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 5px; color: var(--primary-ink); background: var(--primary-soft); font-size: 11px; font-weight: 650; vertical-align: 1px; }
  .history-address { min-width: 190px; overflow-wrap: anywhere; }
  .history-phone { display: block; color: var(--muted); font-size: 13px; }
  .history-total { font-weight: 650; }
  .history-payment { color: var(--muted); white-space: nowrap; }
  .history-payment .fa { margin-right: 6px; }
  .history-action { text-align: right; }
  .history-no-match { padding: 40px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
  .status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 12px; font-weight: 600; line-height: 1.3; }
  .history-table .status-pill { background: var(--line); }
  .status-pill.is-info, .history-table .status-pill.is-info { color: var(--primary-ink); background: var(--primary-soft); }
  .status-pill.is-warning, .history-table .status-pill.is-warning { color: var(--warning-ink); background: var(--warning-soft); }
  .status-pill.is-success, .history-table .status-pill.is-success { color: var(--success-ink); background: var(--success-soft); }
  .status-pill.is-danger, .history-table .status-pill.is-danger { color: var(--danger-ink); background: var(--danger-soft); }
  .report-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
  .report-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; }
  .report-item-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; color: var(--danger-ink); background: var(--danger-soft); font-size: 24px; }
  .report-item-title { margin: 0 0 6px; font-size: 17px; }
  .report-item-body p { max-width: 780px; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
  .report-item-file { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 7px; color: var(--muted); background: var(--surface-2); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
  .report-item-action { white-space: nowrap; }
  .modal-title .fa { margin-right: 8px; color: var(--muted); font-size: 18px; }
  .download-file { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .download-file > div, .download-status > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .download-file > div > span, .download-status > div > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
  .download-status { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 10px; background: var(--surface-2); }
  .download-status > .fa { flex: 0 0 auto; color: var(--primary-ink); font-size: 26px; }
  .download-status.is-error { background: var(--danger-soft); }
  .download-status.is-error > .fa, .download-status.is-error strong { color: var(--danger-ink); }
  .download-status.is-success { background: var(--success-soft); }
  .download-status.is-success > .fa, .download-status.is-success strong { color: var(--success-ink); }
  .table.borderless.detail-table > tbody > tr > td:first-child { width: 42%; padding-right: 16px; color: var(--muted); }
  .table.borderless.detail-table > tbody > tr > td[colspan] { width: auto; padding-right: 0; color: inherit; }
  .detail-uuid { overflow-wrap: anywhere; }
  .detail-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; }

  /* Mobile app download */
  .app-download { display: flex; flex-direction: column; gap: 22px; }
  .app-download-intro { display: flex; align-items: flex-start; gap: 14px; }
  .app-download-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; color: var(--primary-ink); background: var(--primary-soft); font-size: 28px; }
  .app-download-intro strong { display: block; font-size: 16px; line-height: 1.35; }
  .app-download-intro p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
  .store-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .store-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); text-align: center; }
  /* The QR stays on a white tile in dark mode too: scanners need dark modules on a light field */
  .store-qr { display: block; width: 156px; height: 156px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(18, 22, 25, .06), 0 10px 24px rgba(18, 22, 25, .08); }
  .store-scan { margin: -2px 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
  .store-platform { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; }
  .store-platform .fa { color: var(--muted); font-size: 18px; }
  .store-badge { display: inline-block; border-radius: 9px; transition: transform .15s ease, box-shadow .15s ease; }
  .store-badge img { display: block; width: auto; height: 44px; }
  .store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 22, 25, .16); }
  .store-badge:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

  /* Sign in */
  .login-page { display: grid; grid-template-columns: minmax(300px, 30%) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; background: var(--surface); }
  .login-story { position: relative; display: flex; flex-direction: column; min-height: 620px; padding: 40px; background: linear-gradient(150deg, var(--login-panel), var(--login-panel-end)); color: var(--login-on-panel); overflow: hidden; }
  .login-story::after { content: ''; position: absolute; width: 560px; height: 560px; right: -310px; bottom: -350px; border: 1px solid var(--login-ornament); border-radius: 50%; box-shadow: 0 0 0 80px var(--login-ornament); opacity: .35; pointer-events: none; }
  .login-story > .brand { position: relative; z-index: 1; align-self: flex-start; }
  .login-story .brand, .login-story .brand:hover, .login-story .brand:focus { color: var(--login-on-panel); }
  .login-story .brand-symbol { flex-shrink: 0; width: 44px; height: 46px; border-color: var(--login-ornament); background: var(--login-ornament); color: var(--login-on-panel); font-size: 24px; }
  .login-story .brand-name { flex-direction: column; align-items: flex-start; gap: 3px; }
  .login-story .brand-name strong { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.05; letter-spacing: -.8px; }
  .login-story .brand-name span { color: var(--login-on-panel); font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: .3px; }
  .login-story .brand:focus-visible { outline-color: var(--login-on-panel); }
  .login-story-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; flex: 1; padding-top: 48px; }
  .login-story-copy { position: relative; z-index: 1; max-width: 440px; margin: 0; }
  .login-story-eyebrow { margin: 0 0 18px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
  .login-story-copy h2 { margin: 0 0 20px; color: var(--login-on-panel); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -1.5px; }
  .login-story-description { max-width: 350px; margin: 0; font-size: 14px; line-height: 1.75; }
  /* The illustration keeps its white ceramic and paper colors in both themes. */
  .login-story-art {
    --surface: var(--white);
    --surface-subtle: #f8f9fb;
    --surface-2: var(--gray-10);
    --line: var(--gray-20);
    --line-strong: var(--gray-30);
    --primary-ink: var(--blue-60);
    --primary-soft: rgba(15, 98, 254, .08);
    --login-art-scale: .8;
    position: relative; width: 100%; max-width: 440px; height: 310px; flex-shrink: 0;
  }
  .service-illustration { position: absolute; left: 50%; margin-left: calc(-177px * var(--login-art-scale)); width: 390px; height: 390px; transform: scale(var(--login-art-scale)); transform-origin: top left; }
  .illustration-orbit { position: absolute; top: 35px; left: 17px; width: 320px; height: 320px; border: 1px solid var(--login-ornament); border-radius: 50%; }
  .illustration-orbit-outer { top: -20px; left: -38px; width: 430px; height: 430px; }
  .illustration-plate { position: absolute; top: 58px; left: 40px; display: flex; align-items: center; justify-content: center; width: 274px; height: 274px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 24px 64px var(--login-shadow), inset 0 -8px 0 var(--surface-2); }
  .plate-inner { display: flex; align-items: center; justify-content: center; width: 202px; height: 202px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-subtle); color: var(--primary-ink); font-size: 76px; box-shadow: inset 0 3px 14px var(--primary-soft); transform: rotate(-18deg); }
  .illustration-ticket { position: absolute; top: 206px; left: 238px; width: 131px; height: 162px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px var(--login-shadow); transform: rotate(12deg); }
  .ticket-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 15px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; }
  .ticket-line { display: block; width: 100%; height: 5px; margin: 8px 0; border-radius: 3px; background: var(--line); }
  .ticket-line.short { width: 63%; }
  .ticket-rule { display: block; margin: 11px 0; border-top: 1px dashed var(--line-strong); }
  .illustration-spark { position: absolute; top: 26px; right: 18px; color: var(--login-on-panel); font-size: 48px; font-weight: 400; }
  .illustration-dot { position: absolute; bottom: 46px; left: 12px; width: 12px; height: 12px; background: var(--login-on-panel); border-radius: 50%; opacity: .6; }
  .login-form-section { position: relative; display: flex; align-items: center; justify-content: center; padding: 110px 48px; }
  .login-languages { position: absolute; top: 40px; right: 40px; margin: 0; }
  .login-form-wrap { --login-control-height: 54px; width: 100%; max-width: 440px; }
  .login-logo { display: flex; justify-content: center; margin: 0 0 48px; }
  .login-logo img { display: block; width: 150px; height: auto; }
  :root[data-theme="dark"] .login-logo img { filter: invert(1); }
  .login-field { margin-bottom: 12px; }
  .login-field label { display: block; margin: 0 0 9px; color: var(--muted); font-size: 13px; }
  .login-input { position: relative; }
  .login-input .form-control { height: var(--login-control-height); padding: 0 68px 0 16px; border: 1px solid transparent; border-radius: 12px; background: var(--surface-2); box-shadow: none; color: var(--ink); font-size: 16px; transition: border-color .15s, background-color .15s; }
  .login-input .form-control::placeholder { color: var(--faint); opacity: 1; }
  .login-input .form-control:hover { border-color: var(--line-strong); }
  .login-input .form-control:focus { border-color: var(--primary); outline: none; }
  .login-input .form-control:autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 100px var(--surface-2); }
  .login-field.has-error .form-control, .login-field.has-error .form-control:hover, .login-field.has-error .form-control:focus { border-color: var(--danger); }
  .login-input-icons { position: absolute; top: 0; right: 6px; bottom: 0; display: flex; align-items: center; gap: 2px; }
  .login-error-icon { color: var(--danger); font-size: 16px; }
  .login-icon-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
  .login-icon-btn:hover { color: var(--primary-ink); }
  .login-clear { display: none; }
  .login-field.has-value:focus-within .login-clear, .login-field.has-error.has-value .login-clear { display: flex; }
  .login-error { margin: -6px 0 -2px; color: var(--danger-ink); font-size: 12px; line-height: 1.4; }
  .login-form-wrap .login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--login-control-height); margin-top: 16px; padding: 0 20px; border-radius: 12px; font-size: 16px; font-weight: 400; }
  .login-form-wrap .login-submit[disabled], .login-form-wrap .login-submit[disabled]:hover, .login-form-wrap .login-submit[disabled]:focus { opacity: 1; border-color: var(--line); background: var(--line); color: var(--faint); cursor: not-allowed; }
  .login-form-wrap .login-submit.is-loading[disabled], .login-form-wrap .login-submit.is-loading[disabled]:hover { border-color: var(--primary); background: var(--primary); color: #fff; cursor: wait; }
  .login-spinner { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: login-spin .7s linear infinite; }
  .login-help { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 8px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
  .login-help a { color: var(--ink); font-weight: 550; white-space: nowrap; text-underline-offset: 3px; }
  /* Light text on a dark ground reads thin and dim; keep it crisp and fully white. */
  :root[data-theme="dark"] .login-form-section { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
  :root[data-theme="dark"] .login-field label, :root[data-theme="dark"] .login-help { color: var(--ink); }
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}
@keyframes order-sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes order-sheet-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media screen and (min-width: 901px) {
  .app-sidebar .sidebar-content { display: flex !important; flex-direction: column; }
}
@media screen and (min-width: 1600px) {
  .orders-columns { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media screen and (max-width: 1200px) {
  :root { --sidebar-width: 172px; }
  .dashboard-layout { padding-left: 24px; padding-right: 24px; }
  .app-topbar { padding: 0 24px; }
  .sidebar-brand-row { padding-left: 22px; }
  .sidebar-content { padding-left: 12px; padding-right: 12px; }
  .sidebar-links > li > a { gap: 10px; font-size: 13px; }
  .orders-columns { --orders-gap: 18px; }
  .order-metric { flex: 1 1 140px; min-width: 140px; max-width: 230px; }
  .product-row, .product-table-heading { grid-template-columns: minmax(0, 1fr) 180px 125px; gap: 18px; padding-left: 20px; padding-right: 20px; }
  .product-image { width: 58px; height: 58px; }
  .product-identity { gap: 12px; }
}
@media screen and (max-width: 1100px) {
  .courier-form { grid-template-columns: minmax(0, 1fr); }
  .courier-aside { position: static; }
}
@media screen and (max-width: 900px) {
  :root { --sidebar-width: 0px; --topbar-height: 72px; }
  .app-sidebar { position: relative; width: 100%; }
  .sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 24px; }
  .brand-name strong { font-size: 21px; }
  .brand-symbol { width: 30px; height: 33px; font-size: 18px; }
  .app-sidebar .navbar-toggle { display: block; margin: 0; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .3); }
  .sidebar-content { height: auto; max-height: 65vh; padding: 0 20px; }
  .sidebar-content.in { padding-top: 12px; padding-bottom: 20px; }
  .sidebar-content .sidebar-links { margin-bottom: 15px; }
  .sidebar-bottom { padding-top: 0; }
  .app-topbar { position: relative; inset: auto; height: var(--topbar-height); }
  .dashboard-layout { width: 100%; min-height: calc(100vh - 140px); margin-left: 0; padding: 26px 24px; }
  .orders-workspace { height: calc(100dvh - 192px); min-height: 630px; }
  .login-story { padding: 28px; }
  .login-story-content { gap: 24px; padding-top: 36px; }
  .login-story-art { --login-art-scale: .6; height: 245px; }
  .login-form-section { padding-left: 32px; padding-right: 32px; }
  .delivery-summary { grid-template-columns: minmax(0, 1fr); }
  .review-card { grid-template-columns: 48px minmax(0, 1fr); }
  .review-order { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .review-order-row { margin-top: 0; }
}
@media screen and (max-width: 640px) {
  h1 { font-size: 27px; }
  .dashboard-layout { padding: 24px 16px; }
  .app-topbar { padding: 0 16px; }
  .sidebar-brand-row { padding: 0 18px; }
  .page-heading { gap: 12px; align-items: flex-start; margin-bottom: 22px; }
  .page-heading > .btn { padding: 8px 10px; font-size: 12px; }
  .orders-workspace { height: auto; min-height: 0; }
  .courier-card { padding: 18px 16px; }
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .courier-page .service-notifications { flex-basis: 100%; justify-content: flex-start; }
  .chip span { min-width: 68px; padding: 10px 12px; }
  .orders-overview { flex-wrap: wrap; margin-bottom: 14px; }
  .order-metric { flex: 1; min-width: 0; }
  .order-metric strong { font-size: 19px; }
  .metric-label { font-size: 12px; }
  .orders-overview .service-notifications { flex-basis: 100%; }
  .notifications .alert { display: block; }
  .notifications delivery-time-info .alert { padding-left: 0; }
  .orders-columns { --orders-gap: 22px; display: flex; flex-direction: column; }
  .order-detail-column::before { top: calc(var(--orders-gap) / -2); right: 0; bottom: auto; left: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  /* The details no longer stack under the list: they open in a bottom sheet, so the list takes the page height */
  .left-scroll { overflow: visible; padding-right: 0; }
  .orders-list .order-card .order-details-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 14px; font-size: 14px; font-weight: 650; }
  body.order-sheet-open { overflow: hidden; }
  .order-sheet { position: fixed; inset: 0; z-index: 1045; display: flex; align-items: flex-end; }
  .order-sheet-backdrop { position: absolute; inset: 0; background: rgba(18, 22, 25, .55); animation: order-sheet-fade .2s ease-out; }
  .order-sheet-panel { position: relative; display: flex; flex-direction: column; width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 16px 16px 0 0; background: var(--canvas); box-shadow: 0 -12px 40px rgba(18, 22, 25, .28); animation: order-sheet-up .25s ease-out; }
  .order-sheet-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; background: var(--surface); font-size: 15px; }
  .order-sheet-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; }
  .order-sheet-close:hover, .order-sheet-close:focus { background: var(--surface-2); color: var(--ink); }
  .order-sheet-body { flex: 1 1 auto; min-height: 0; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .order-details .btn { font-size: 13px; }
  /* Order details on a phone: label left / value right rows, full-width touch-sized actions */
  .order-details .order-facts, .order-details .order-facts > tbody { display: block; }
  .order-details .order-facts > tbody > tr { display: flex; align-items: baseline; justify-content: space-between; }
  .order-details .table.borderless.order-facts > tbody > tr > td { float: none; width: auto; }
  .order-details .order-facts > tbody > tr > td:first-child { flex: 1 1 0; min-width: 0; }
  .order-details .order-facts > tbody > tr > td:last-child:not(:first-child) { flex: 0 1 auto; max-width: 65%; text-align: right; }
  .order-details .order-facts > tbody > tr > td[colspan] { flex: 1 1 100%; max-width: none; text-align: left; }
  .order-details .order-actions .btn { min-height: 46px; font-size: 15px; }
  .order-details .order-accept .btn-group, .order-details .order-tools .btn-group { display: flex; width: 100%; }
  .order-details .order-accept .btn-group > .btn, .order-details .order-tools .btn-group > .btn:first-child { flex: 1; }
  .order-details .order-tools > div { flex: 1 1 100%; }
  .order-details .order-ready .btn, .order-details .prep-submit .btn { width: 100%; flex: 1 1 100%; }
  .prep-exact-total { margin-left: 0; }
  .products-page .page-heading { flex-direction: column; }
  .discount-summary { width: 100%; padding: 12px 15px; }
  .discount-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 1; }
  .product-table-heading { display: none; }
  .category-heading { padding: 16px; }
  .product-row { grid-template-columns: minmax(0, 1fr) 110px; gap: 20px 12px; padding: 20px 16px; }
  .product-identity { grid-column: 1 / -1; }
  .product-image { width: 60px; height: 60px; }
  .product-price { align-self: start; }
  .product-save-bar { bottom: 8px; flex-direction: column; gap: 12px; padding: 14px; }
  .product-save-bar > div { width: 100%; }
  .product-save-bar .btn { flex: 1; font-size: 13px; }
  .product-unavailable { align-items: flex-start; flex-direction: column; }
  .product-unavailable .btn { font-size: 12px; }
  .panel-body, .panel-heading, .panel-footer { padding: 16px; }
  .dashboard-layout .container > [class*="col-"], .dashboard-layout .container > .row > [class*="col-"] { float: none; width: 100%; margin-left: 0; padding-left: 0; padding-right: 0; }
  .dashboard-layout .container .table { display: block; overflow-x: auto; }
  .dashboard-layout .container .table td { min-width: 100px; }
  .nav-tabs > li > a { padding: 10px; font-size: 13px; }
  .ratings-summary { grid-template-columns: minmax(0, 1fr); }
  .rating-card, .stats-card, .ratings-filters { padding-left: 16px; padding-right: 16px; }
  .rating-card-score strong { font-size: 28px; }
  .ratings-filters { gap: 18px; }
  .ratings-apply { width: 100%; margin-left: 0; }
  .review-card { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .review-score { width: 42px; height: 42px; font-size: 18px; }
  .stats-tabs, .sales-reports .nav-pills { display: flex; width: 100%; }
  .stats-tabs > li, .sales-reports .nav-pills > li { flex: 1 1 auto; }
  .stats-tabs > li > a, .sales-reports .nav-pills > li > a { justify-content: center; padding: 9px 10px; font-size: 13px; }
  .stat-value { font-size: 34px; }
  .history-filters { padding-left: 16px; padding-right: 16px; }
  .history-filters .form-field { flex-basis: 100%; max-width: none; }
  .history-counter { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 12px 14px; }
  .history-search { padding: 14px 16px; }
  .history-search .icon-input { max-width: none; }
  .history-table thead { display: none; }
  .history-table, .history-table tbody { display: block; }
  .history-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .history-table tbody tr:first-child { border-top: 0; }
  .history-table td, .history-table tbody tr:first-child td { min-width: 0; padding: 0; border: 0; }
  .history-table .history-id { grid-column: 1; grid-row: 1; }
  .history-table .history-status { grid-column: 2; grid-row: 1; text-align: right; }
  .history-table .history-created { grid-column: 1; grid-row: 2; color: var(--muted); }
  .history-table .history-address { grid-column: 1 / -1; grid-row: 3; min-width: 0; }
  .history-table .history-total { grid-column: 1; grid-row: 4; text-align: left; }
  .history-table .history-payment { grid-column: 2; grid-row: 4; }
  .history-table .history-action { grid-column: 1 / -1; grid-row: 5; margin-top: 4px; text-align: left; }
  .history-action .btn { width: 100%; }
  .report-item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .report-item-icon { width: 44px; height: 44px; font-size: 20px; }
  .report-item-action { grid-column: 1 / -1; width: 100%; }
  .table.borderless.detail-table > tbody > tr > td:first-child { width: 46%; }
  .detail-note { flex-direction: column; align-items: flex-start; }
  .stats-legend { grid-template-columns: minmax(0, 1fr); }
  report[type="products"] { grid-template-columns: minmax(0, 1fr); }
  .modal-header, .modal-body, .modal-footer { padding: 20px 16px; }
  .ngdialog.ngdialog-theme-default { padding-top: 30px; padding-bottom: 30px; }
  .ngdialog.ngdialog-theme-default .ngdialog-content { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px); }
  .login-page { display: flex; flex-direction: column; }
  .login-story { display: none; }
  .login-form-section { position: static; flex: 1; padding: 64px 20px 40px; }
  .login-languages { top: 16px; right: 16px; gap: 6px; }
  .login-languages .language-trigger { gap: 6px; padding: 8px; }
  .login-languages .language-trigger > .fa-globe { display: none; }
  .login-form-wrap { --login-control-height: 50px; }
  .login-logo { margin-bottom: 32px; }
  .login-logo img { width: 120px; }
  /* On a phone the QR is pointless: show compact rows with the store buttons instead */
  .store-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .store-card { flex-direction: row; justify-content: space-between; gap: 12px; padding: 12px 14px; text-align: left; }
  .store-qr, .store-scan { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* ngDialog needs animationend to remove closed dialogs. Keep the event. */
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  :root[data-theme="dark"], :root:not([data-theme="light"]) {
    color-scheme: light;
    --canvas: var(--gray-10);
    --surface: var(--white);
    --surface-subtle: #f8f9fb;
    --surface-2: var(--gray-10);
    --line: var(--gray-20);
    --line-strong: var(--gray-30);
    --ink: var(--gray-100);
    --muted: var(--gray-70);
    --faint: var(--gray-40);
    --primary-ink: var(--blue-60);
    --primary-soft: rgba(15, 98, 254, .08);
    --primary-border: rgba(15, 98, 254, .28);
    --success-ink: #1b7a06;
    --success-soft: rgba(39, 170, 11, .1);
    --success-border: rgba(39, 170, 11, .3);
    --danger-ink: #c22400;
    --danger-soft: rgba(243, 47, 0, .08);
    --danger-border: rgba(243, 47, 0, .28);
    --warning-ink: #7a5800;
    --warning-soft: rgba(255, 200, 54, .22);
    --warning-border: rgba(224, 190, 101, .6);
    --sidebar: var(--gray-100);
  }
  .app-nav { display: none !important; }
  .dashboard-layout { width: 100%; margin: 0; padding: 0; }
}
