/* =====================================================================================
   Retail One - design system layer (2026-10-28)
   One calm, consistent look for the back office: tokens, type, surfaces, buttons, forms,
   tables, tabs, alerts, dashboard. Loaded last. Everything is scoped to body.ro-ui, which
   control/../assets/js/ro-shell.js sets once the signed-in shell (#app) is on screen, so the
   sign-in page, printouts and the till keep their own styling (till fixes are under body.ro-pos).
   ===================================================================================== */
:root {
  --ro-bg: #f7f5ef;
  --ro-surface: #ffffff;
  --ro-surface-2: #faf8f3;
  --ro-surface-3: #f2eee3;
  --ro-hover: rgba(13, 122, 95, .06);
  --ro-border: #ebe6d9;
  --ro-border-strong: #dcd5c3;
  --ro-text: #1a2e26;
  --ro-text-2: #4b5c55;
  --ro-text-3: #646f69;   /* 4.8:1 on the page background, 5.2:1 on white (was #7d8882, 3.4:1) */
  --ro-primary: #0d7a5f;
  --ro-primary-hover: #0a644e;
  --ro-primary-soft: #e6f4ee;
  --ro-brand: #c9a84c;
  --ro-success: #15803d;
  --ro-success-soft: #e8f6ec;
  --ro-warning: #b7791f;
  --ro-warning-soft: #fcf3dd;
  --ro-danger: #dc2626;
  --ro-danger-soft: #fdecec;
  --ro-info: #2563eb;
  --ro-info-soft: #eaf1fe;
  --ro-violet: #7c3aed;
  --ro-teal: #0f9488;
  --ro-radius: 12px;
  --ro-radius-sm: 8px;
  --ro-shadow: 0 1px 2px rgba(26, 46, 38, .04), 0 4px 14px rgba(26, 46, 38, .05);
  --ro-ring: 0 0 0 3px rgba(13, 122, 95, .18);
  --ro-font: InterVariable, Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------------------------------------------------------------- 1. Base ---------- */
body.ro-ui {
  font-family: var(--ro-font) !important;
  font-size: 13px;
  color: var(--ro-text);
  background: var(--ro-bg) !important;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
body.ro-ui .app-cover {
  background: var(--ro-bg) !important;
  filter: none !important;
}
body.ro-ui .app-cover::before, body.ro-ui .app-cover::after { display: none !important; }
body.ro-ui ::selection { background: rgba(13, 122, 95, .18); }
body.ro-ui *::-webkit-scrollbar { width: 10px; height: 10px; }
body.ro-ui *::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .22); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
body.ro-ui *::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, .38); }
body.ro-ui *::-webkit-scrollbar-track { background: transparent; }
body.ro-ui :focus-visible { outline: none; box-shadow: var(--ro-ring) !important; }
body.ro-ui .app-content table td, body.ro-ui .stats-number, body.ro-ui .ro-num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 1b. Light base --- */
/* The base theme ("transparent") paints white / translucent-white text for a dark photo backdrop. On the light
   surfaces that text becomes ink - except on coloured buttons, badges and coloured cards, which keep white text. */
body.ro-ui #app, body.ro-ui .app-content, body.ro-ui .modal, body.ro-ui .offcanvas, body.ro-ui .app-sidebar { color: var(--ro-text); }
body.ro-ui :is(.app-content, .modal, .offcanvas, .app-sidebar) :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6):not(:is(.btn, .badge, .widget, [class*="bg-primary"], [class*="bg-success"], [class*="bg-danger"], [class*="bg-info"], [class*="bg-warning"], [class*="bg-blue"], [class*="bg-green"], [class*="bg-red"], [class*="bg-teal"], [class*="bg-indigo"], [class*="bg-purple"], [class*="bg-orange"], [class*="bg-pink"], [class*="bg-cyan"], [class*="bg-lime"], [class*="bg-yellow"]) *) { color: var(--ro-text); }
body.ro-ui :is(.app-content, .modal, .offcanvas, #sidebar-right) :is(.text-white, .text-light, .text-body, .text-inverse, .text-dark, [class*="text-white-transparent"], [class*="text-gray-"]):not(.btn):not(.badge):not(:is(.btn, .badge, .label, .widget, .swal2-popup, [class*="bg-primary"], [class*="bg-success"], [class*="bg-danger"], [class*="bg-info"], [class*="bg-warning"], [class*="bg-blue"], [class*="bg-green"], [class*="bg-red"], [class*="bg-teal"], [class*="bg-indigo"], [class*="bg-purple"], [class*="bg-orange"], [class*="bg-pink"], [class*="bg-cyan"], [class*="bg-lime"], [class*="bg-yellow"]) *) { color: var(--ro-text) !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas, #sidebar-right) :is(.text-muted, .text-secondary, .text-white-50, [class*="text-opacity"]) { color: var(--ro-text-3) !important; }
/* dark utility backgrounds meant for the photo backdrop become light surfaces */
body.ro-ui :is(.app-content, .modal, .offcanvas, #sidebar-right) :is(.bg-gray-900, .bg-gray-800, .bg-gray-700, .bg-gray-600, .bg-black, .bg-dark, .bg-inverse, .bg-secondary, [class*="bg-black-transparent"], [class*="bg-white-transparent"], [class*="bg-gray-900-transparent"], [class*="bg-gray-800-transparent"]):not(.btn):not(.badge) {
  background-color: var(--ro-surface) !important; color: var(--ro-text) !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) hr { border-color: var(--ro-border) !important; opacity: 1; }
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.border, .border-top, .border-bottom, .border-start, .border-end, .border-left, .border-right, .border-light, .border-dark, .border-white, .border-secondary):not(.btn) { border-color: var(--ro-border) !important; }
body.ro-ui .app-content .table, body.ro-ui .app-content table { color: var(--ro-text); }
/* the base theme's component colours (list groups, dropdowns, tabs, pagination...) are white on glass; on the light
   surfaces they become ink on white. Plain selectors so browsers older than Chrome 88 get them too. */
body.ro-ui .app-content, body.ro-ui .modal, body.ro-ui .offcanvas, body.ro-ui #sidebar-right {
  --app-component-color: #1a2e26; --app-component-color-rgb: 26, 46, 38; --app-component-hover-color: #1a2e26;
  --app-component-bg: #fff; --app-component-bg-rgb: 255, 255, 255; --app-component-secondary-bg: #f2efe6;
  --app-component-border-color: #ebe6d9; --app-component-border-color-rgb: 26, 46, 38;
  --app-component-hover-bg: rgba(13, 122, 95, .06); --app-component-focus-border-color: #0d7a5f;
  --app-component-active-bg: #0d7a5f; --app-component-active-bg-rgb: 13, 122, 95;
  --app-component-disabled-bg: #f2efe6; --app-component-disabled-color: rgba(26, 46, 38, .45);
  --app-component-dropdown-bg: #fff; --app-component-dropdown-bg-rgb: 255, 255, 255;
  --app-component-dropdown-border-color: #ebe6d9; --app-component-dropdown-border-color-rgb: 26, 46, 38;
  --app-component-dropdown-hover-bg: rgba(13, 122, 95, .06); --app-component-dropdown-hover-bg-rgb: 13, 122, 95;
  --app-component-modal-bg: #fff; --app-component-modal-bg-rgb: 255, 255, 255;
  --app-component-table-border-color: #ebe6d9; --app-component-table-separator-color: #ebe6d9;
}
/* captions inside headings (base theme: translucent white) and the grey badge (base theme: translucent white fill) */
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) small { color: var(--ro-text-3); }
body.ro-ui :is(.app-content, .modal, .offcanvas) .badge.bg-secondary { background: #e9e5d8 !important; color: var(--ro-text-2) !important; }
body.ro-ui .btn-close { filter: none; }
html:has(> body.ro-ui), html:has(> body.ro-login) { background: var(--ro-bg) !important; }
/* wizards (SmartWizard): brand buttons and progress */
html:has(> body.ro-ui), html:has(> body.ro-login) { scrollbar-color: #d4cdb9 transparent; }
body.ro-ui .app-content :is(.sw-btn-next, .sw-btn-prev, .sw-btn-group .btn, .wizard-btn) {
  background: var(--ro-primary) !important; border: 1px solid var(--ro-primary) !important; color: #fff !important; border-radius: var(--ro-radius-sm) !important;
  padding: 8px 18px !important; font-weight: 600 !important;
}
body.ro-ui .app-content :is(.sw-btn-prev, .wizard-btn.prev) { background: #fff !important; color: var(--ro-text) !important; border-color: var(--ro-border-strong) !important; }
body.ro-ui .app-content :is(.sw-btn-next, .sw-btn-prev, .wizard-btn):is(:disabled, .disabled) { opacity: .45; }
body.ro-ui .app-content .sw .nav .nav-link.active::after, body.ro-ui .app-content .sw .nav .nav-link.done::after,
body.ro-ui .app-content .sw .nav .nav-link.active::before, body.ro-ui .app-content .sw .nav .nav-link.done::before { background: var(--ro-primary) !important; border-color: var(--ro-primary) !important; }
body.ro-ui .app-content .sw .nav .nav-link.active, body.ro-ui .app-content .sw .nav .nav-link.done { color: var(--ro-primary) !important; }
body.ro-ui .app-content table td a:not(.btn) { color: var(--ro-primary); }
/* Analytics Centre: its KPI and chart cards are borderless theme cards (dark); same white cards as the dashboard */
body.ro-ui .app-content:has(#analytics-branch) .card.border-0 {
  background: var(--ro-surface) !important; border: 1px solid var(--ro-border) !important; border-radius: var(--ro-radius) !important;
  box-shadow: var(--ro-shadow) !important; color: var(--ro-text) !important;
}
body.ro-ui .app-content:has(#analytics-branch) .card.border-0 .card-body { color: var(--ro-text) !important; }
body.ro-ui .app-content:has(#analytics-branch) .card.border-0 :is(.text-white, .text-muted, small, h6, .fs-12px) { color: var(--ro-text-2) !important; }
body.ro-ui #header.app-header, body.ro-ui #app .app-header { background: rgba(255, 255, 255, .96) !important; background-image: none !important; }
body.ro-ui .app-sidebar .menu-profile-info > div, body.ro-ui #user-name2 { color: var(--ro-text) !important; }
body:is(.ro-ui, .ro-login) .pace .pace-progress { background: var(--ro-primary) !important; }
/* language picker (GTranslate) as a quiet light control */
body.ro-ui .gt_switcher_wrapper .gt_switcher { font-family: var(--ro-font) !important; }
body.ro-ui .gt_switcher_wrapper .gt_switcher .gt_selected, body.ro-ui .gt_switcher_wrapper .gt_switcher .gt_selected a {
  background: #fff !important; color: var(--ro-text-2) !important; border-color: var(--ro-border-strong) !important; border-radius: 8px;
}
body.ro-ui .gt_switcher_wrapper .gt_switcher .gt_selected a:hover { background: var(--ro-surface-2) !important; }
body.ro-ui .gt_switcher_wrapper .gt_switcher .gt_option { background: #fff !important; border-color: var(--ro-border-strong) !important; }
body.ro-ui .gt_switcher_wrapper .gt_switcher .gt_option a { color: var(--ro-text) !important; }
body.ro-ui .gt_switcher_wrapper .gt_switcher .gt_option a:hover { background: var(--ro-primary-soft) !important; }
body.ro-ui .app-header .navbar-link, body.ro-ui .app-header .navbar-link i { color: var(--ro-text-2) !important; }

/* ---------------------------------------------------------------- 2. Header -------- */
body.ro-ui .app-header {
  background: rgba(255, 255, 255, .94) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ro-border) !important;
  box-shadow: none !important;
}
body.ro-ui .app-header .navbar-brand img { height: 34px !important; width: auto !important; }
body.ro-ui .app-header .navbar-link { color: var(--ro-text-2) !important; font-weight: 500; border-radius: var(--ro-radius-sm); transition: color .15s, background .15s; }
body.ro-ui .app-header .navbar-link:hover { color: var(--ro-text) !important; background: var(--ro-hover); }
body.ro-ui .app-header .select2-container .select2-selection,
body.ro-ui .app-header #branch {
  background: var(--ro-surface-2) !important; border: 1px solid var(--ro-border) !important;
  border-radius: 999px !important; color: var(--ro-text) !important; min-height: 34px;
}
body.ro-ui .app-header .select2-container .select2-selection__rendered { color: var(--ro-text) !important; font-weight: 600; line-height: 32px !important; padding-left: 14px !important; }
body.ro-ui .app-header .select2-container .select2-selection__arrow { height: 32px !important; right: 8px !important; }

/* assistant status: a quiet dot + word instead of the model / database debug string */
body.ro-ui #clippy-assistant-status {
  background: transparent !important; color: var(--ro-text-2) !important; font-size: 0 !important;
  padding: 4px 10px !important; border: 1px solid var(--ro-border); border-radius: 999px !important;
  pointer-events: auto !important; cursor: default; max-width: none !important;
}
body.ro-ui #clippy-assistant-status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ro-text-3); margin-right: 7px; vertical-align: 1px;
}
body.ro-ui #clippy-assistant-status[style*="11, 107, 45"]::before { background: var(--ro-success); box-shadow: 0 0 0 3px var(--ro-success-soft); }
body.ro-ui #clippy-assistant-status[style*="138, 90, 0"]::before { background: var(--ro-warning); }
body.ro-ui #clippy-assistant-status::after { content: "Assistant"; font-size: 12px; font-weight: 500; }

/* online / offline indicator moved into the header by ro-shell.js */
body.ro-ui .ro-online { display: flex; align-items: center; padding: 0 6px; }
body.ro-ui .ro-online a { display: flex; align-items: center; text-decoration: none; outline: 0 !important; }
body.ro-ui .ro-online .badge { box-shadow: none !important; animation: none !important; }
body.ro-ui .ro-online .badge {
  background: transparent !important; border: 1px solid var(--ro-border); color: var(--ro-text-2) !important;
  font-weight: 500; font-size: 12px; padding: 5px 10px 5px 9px; border-radius: 999px; text-transform: capitalize;
}
body.ro-ui .ro-online .badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--ro-danger); }
body.ro-ui .ro-online .badge.bg-success::before { background: var(--ro-success); box-shadow: 0 0 0 3px var(--ro-success-soft); }

/* button that shows / hides the right-hand panel (server status + daily tasks) */
body.ro-ui .ro-end-toggle { display: flex; align-items: center; }
body.ro-ui .ro-end-toggle a { width: 34px; height: 34px; display: flex !important; align-items: center; justify-content: center; padding: 0 !important; }
body.ro-ui #app.app-sidebar-end-toggled .ro-end-toggle a { color: var(--ro-primary) !important; background: var(--ro-primary-soft); }

/* ---------------------------------------------------------------- 3. Navigation ---- */
/* The top menu repeated the sidebar item for item: the sidebar (a drawer on phones / tablets, with the
   bottom bar) is the one menu. Its links stay in the page, hidden, so nothing that clicks them breaks. */
body.ro-ui #app .app-top-menu { display: none !important; }
@media (min-width: 992px) {
  body.ro-ui #app.app-with-top-menu { padding-top: 50px !important; }
  body.ro-ui #app.app-with-top-menu .app-sidebar { padding-top: 50px !important; }
}
body.ro-ui .app-sidebar, body.ro-ui .app-sidebar-bg {
  background: #ffffff !important; border-right: 1px solid var(--ro-border) !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
body.ro-ui .app-sidebar.app-sidebar-end, body.ro-ui .app-sidebar-bg.app-sidebar-end { border-right: 0 !important; border-left: 1px solid var(--ro-border) !important; }
body.ro-ui .app-sidebar .menu { padding: 8px 10px 64px; }
body.ro-ui .app-sidebar .menu-header { color: var(--ro-text-3) !important; font-size: 11px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 14px 12px 6px !important; }
body.ro-ui .app-sidebar .menu > .menu-item > .menu-link {
  border-radius: var(--ro-radius-sm); padding: 8px 12px !important; margin: 1px 0;
  color: var(--ro-text-2) !important; font-weight: 500; transition: background .15s, color .15s;
}
body.ro-ui .app-sidebar .menu > .menu-item > .menu-link:hover { background: var(--ro-hover) !important; color: var(--ro-text) !important; }
body.ro-ui .app-sidebar .menu > .menu-item.active > .menu-link,
body.ro-ui .app-sidebar .menu > .menu-item.expand > .menu-link {
  background: var(--ro-primary-soft) !important; color: var(--ro-primary) !important; box-shadow: none !important; border: 0 !important;
}
body.ro-ui .app-sidebar .menu > .menu-item.active > .menu-link .menu-icon,
body.ro-ui .app-sidebar .menu > .menu-item.expand > .menu-link .menu-icon { color: var(--ro-primary) !important; }
body.ro-ui .app-sidebar .menu > .menu-item > .menu-link::before { display: none !important; }
body.ro-ui .app-sidebar .menu-icon { color: var(--ro-text-3) !important; }
body.ro-ui .app-sidebar .menu-submenu { padding: 2px 0 6px !important; }
body.ro-ui .app-sidebar .menu-submenu .menu-link {
  color: var(--ro-text-2) !important; padding: 6px 12px 6px 44px !important; border-radius: var(--ro-radius-sm); font-weight: 400;
}
body.ro-ui .app-sidebar .menu-submenu .menu-submenu .menu-link { padding-left: 56px !important; }
body.ro-ui .app-sidebar .menu-submenu .menu-link:hover { color: var(--ro-text) !important; background: var(--ro-hover) !important; }
body.ro-ui .app-sidebar .menu-submenu .menu-item.active > .menu-link { color: var(--ro-primary) !important; font-weight: 600; }
body.ro-ui .app-sidebar .menu-submenu .menu-item::before, body.ro-ui .app-sidebar .menu-submenu .menu-item::after,
body.ro-ui .app-sidebar .menu-submenu::before { display: none !important; }
body.ro-ui .app-sidebar .menu-badge, body.ro-ui .app-sidebar .menu-link .badge { font-weight: 600; border-radius: 999px; }
body.ro-ui .ro-hide { display: none !important; }
/* profile block */
body.ro-ui .app-sidebar .menu-profile { margin: 0 0 6px; }
body.ro-ui .app-sidebar .menu-profile .menu-profile-link { padding: 14px 12px !important; border-radius: var(--ro-radius); background: transparent !important; }
body.ro-ui .app-sidebar .menu-profile .menu-profile-cover { display: none !important; }
body.ro-ui .app-sidebar .menu-profile .menu-profile-image { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; overflow: hidden; background: var(--ro-surface-3); box-shadow: 0 0 0 2px var(--ro-border-strong); }
body.ro-ui .app-sidebar .menu-profile .menu-profile-info { color: var(--ro-text) !important; font-weight: 600; font-size: 14px; }
body.ro-ui .app-sidebar .menu-profile .menu-profile-info small { color: var(--ro-text-3) !important; font-weight: 400; font-size: 12px; }

/* language picker docked at the foot of the sidebar instead of floating over content */
body.ro-ui .gt_switcher_wrapper {
  left: 14px !important; right: auto !important; bottom: 12px !important; top: auto !important;
  z-index: 1030 !important; transform: scale(.9); transform-origin: left bottom; opacity: .9;
}
@media (min-width: 992px) {
  body.ro-ui .app-sidebar .app-sidebar-content { padding-bottom: 52px; }
  body.ro-ui #sidebar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 5; pointer-events: none;
    background: #ffffff; border-top: 1px solid var(--ro-border);
  }
}

/* assistant chat bubble */
body.ro-ui #clippy-chat-bubble {
  width: 48px !important; height: 48px !important; right: 20px !important; bottom: 20px !important;
  background: var(--ro-primary) !important; box-shadow: 0 8px 24px rgba(13, 122, 95, .30) !important; border: 0 !important;
}

/* ---------------------------------------------------------------- 4. Page frame ---- */
body.ro-ui .app-content .page-header {
  color: var(--ro-text) !important; font-size: 22px !important; font-weight: 700 !important;
  letter-spacing: -.01em; margin: 4px 0 18px !important; line-height: 1.25;
}
body.ro-ui .app-content .page-header small { color: var(--ro-text-3) !important; font-size: 13px !important; font-weight: 400 !important; margin-left: 6px; letter-spacing: 0; }

/* section label ("Main Features") */
body.ro-ui .app-content .badge.bg-gray-800:has(> .fa-circle) {
  background: transparent !important; padding: 0 !important; color: var(--ro-text-3) !important;
  font-size: 11px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
body.ro-ui .app-content .badge.bg-gray-800 > .fa-circle { display: none; }

/* ---------------------------------------------------------------- 5. Panels / cards - */
body.ro-ui .app-content .panel, body.ro-ui .app-content .card:not(.border-0), body.ro-ui .app-content .panel.panel-inverse {
  background: var(--ro-surface) !important; border: 1px solid var(--ro-border) !important;
  border-radius: var(--ro-radius) !important; box-shadow: var(--ro-shadow) !important; overflow: hidden;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
body.ro-ui .app-content .panel > .panel-heading {
  background: transparent !important; border-bottom: 1px solid var(--ro-border) !important;
  padding: 14px 18px !important; min-height: 52px; align-items: center;
}
body.ro-ui .app-content .panel .panel-title { color: var(--ro-text) !important; font-size: 15px !important; font-weight: 600 !important; }
body.ro-ui .app-content .panel-body, body.ro-ui .app-content .panel-body.bg-gray-800, body.ro-ui .app-content .card-body {
  background: transparent !important; color: var(--ro-text);
}
body.ro-ui .app-content .panel-body { padding: 18px !important; }
body.ro-ui .app-content .hljs-wrapper { display: none; }
/* window controls: quiet monochrome icons instead of four coloured dots */
body.ro-ui .panel-heading-btn { display: flex; gap: 2px; }
body.ro-ui .panel-heading-btn .btn.btn-icon {
  background: transparent !important; border: 0 !important; color: var(--ro-text-3) !important;
  width: 28px !important; height: 28px !important; border-radius: 6px !important; font-size: 12px !important; box-shadow: none !important;
}
body.ro-ui .panel-heading-btn .btn.btn-icon:hover { background: var(--ro-hover) !important; color: var(--ro-text) !important; }
body.ro-ui .panel-heading-btn .btn.btn-icon[data-toggle="panel-remove"]:hover { color: var(--ro-danger) !important; }
body.ro-ui .panel-heading-btn [data-toggle="panel-remove"], body.ro-ui .panel-heading-btn [data-toggle="panel-collapse"] { display: none !important; }

/* ---------------------------------------------------------------- 6. Alerts -------- */
body.ro-ui .app-content .alert, body.ro-ui .modal .alert, body.ro-ui .offcanvas .alert {
  background: var(--ro-info-soft) !important; color: var(--ro-text) !important;
  border: 0 !important; border-left: 3px solid var(--ro-info) !important; border-radius: var(--ro-radius-sm) !important;
  font-size: 13px; padding: 11px 40px 11px 14px !important;
}
body.ro-ui .app-content .panel > .alert { border-radius: 0 !important; margin: 0 !important; border-left-width: 3px !important; }
body.ro-ui .app-content .alert-success, body.ro-ui .modal .alert-success { background: var(--ro-success-soft) !important; border-left-color: var(--ro-success) !important; }
body.ro-ui .app-content .alert-warning, body.ro-ui .modal .alert-warning,
body.ro-ui .app-content .alert-yellow { background: var(--ro-warning-soft) !important; border-left-color: var(--ro-warning) !important; }
body.ro-ui .app-content .alert-danger, body.ro-ui .modal .alert-danger { background: var(--ro-danger-soft) !important; border-left-color: var(--ro-danger) !important; }
body.ro-ui .app-content .alert .btn-close, body.ro-ui .modal .alert .btn-close { filter: grayscale(1); opacity: .45; top: 50%; transform: translateY(-50%); padding: 10px !important; position: absolute; right: 8px; }
body.ro-ui .app-content .alert b, body.ro-ui .app-content .alert strong { color: var(--ro-text); }

/* ---------------------------------------------------------------- 7. Buttons ------- */
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn:not(.btn-icon):not(.btn-close):not(.btn-link) {
  border-radius: var(--ro-radius-sm); font-weight: 600; font-size: 13px; letter-spacing: .005em;
  padding: 7px 14px; line-height: 1.35; box-shadow: none !important; transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-shadow: none !important; background-image: none !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn:not(.btn-icon):active { transform: translateY(1px); }
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-xs:not(.btn-icon), body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-sm:not(.btn-icon) { padding: 4px 10px; font-size: 12px; }
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-lg:not(.btn-icon) { padding: 10px 18px; font-size: 14px; }
/* primary */
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-primary, body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-blue {
  background: var(--ro-primary) !important; border: 1px solid var(--ro-primary) !important; color: #fff !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-primary:hover, body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-blue:hover { background: var(--ro-primary-hover) !important; border-color: var(--ro-primary-hover) !important; }
/* positive / destructive keep their meaning */
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-success, body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-green {
  background: var(--ro-success) !important; border: 1px solid var(--ro-success) !important; color: #fff !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-success:hover, body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-green:hover { background: #116b33 !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-danger, body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-red {
  background: #fff !important; border: 1px solid rgba(220, 38, 38, .35) !important; color: #c81e1e !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-danger:hover, body.ro-ui :is(.app-content, .modal, .offcanvas) .btn-red:hover { background: var(--ro-danger) !important; border-color: var(--ro-danger) !important; color: #fff !important; }
/* everything else (info, warning, yellow, orange, teal, purple, default, secondary, white...) is a quiet secondary button */
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.btn-info, .btn-warning, .btn-yellow, .btn-orange, .btn-teal, .btn-cyan, .btn-purple, .btn-indigo, .btn-pink, .btn-lime, .btn-default, .btn-secondary, .btn-white, .btn-gray, .btn-dark, .btn-light, .dt-button):not(.btn-icon):not(.btn-primary):not(.btn-success):not(.btn-danger) {
  background: #fff !important; border: 1px solid var(--ro-border-strong) !important; color: var(--ro-text) !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.btn-info, .btn-warning, .btn-yellow, .btn-orange, .btn-teal, .btn-cyan, .btn-purple, .btn-indigo, .btn-pink, .btn-lime, .btn-default, .btn-secondary, .btn-white, .btn-gray, .btn-dark, .btn-light, .dt-button):not(.btn-icon):not(.btn-primary):not(.btn-success):not(.btn-danger):hover {
  background: var(--ro-surface-2) !important; border-color: #c9c1ac !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) .btn:disabled, body.ro-ui :is(.app-content, .modal, .offcanvas) .btn.disabled { opacity: .45; }
/* small icon buttons inside tables (edit / delete / view) */
body.ro-ui .app-content table .btn.btn-icon, body.ro-ui .app-content table .btn-xs.btn-icon { border-radius: 6px !important; }

/* table toolbar (Copy / CSV / PDF / Print) - outline buttons with icons; Add New stays primary */
body.ro-ui .app-content .dt-buttons { display: inline-flex !important; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
body.ro-ui .app-content .dt-buttons .btn, body.ro-ui .app-content .dt-buttons .dt-button { margin: 0 !important; padding: 6px 12px !important; font-size: 12.5px !important; }
body.ro-ui .app-content .dt-buttons .btn:is(.buttons-copy, .buttons-csv, .buttons-excel, .buttons-pdf, .buttons-print) {
  background: #fff !important; border: 1px solid var(--ro-border-strong) !important; color: var(--ro-text) !important;
}
body.ro-ui .app-content .dt-buttons .btn:is(.buttons-copy, .buttons-csv, .buttons-excel, .buttons-pdf, .buttons-print):hover { background: var(--ro-surface-2) !important; }
body.ro-ui .app-content .dt-buttons :is(.buttons-copy, .buttons-csv, .buttons-excel, .buttons-pdf, .buttons-print)::before {
  font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 7px; color: var(--ro-text-3); font-size: 12px;
}
body.ro-ui .app-content .dt-buttons .buttons-copy::before { content: "\f0c5"; }
body.ro-ui .app-content .dt-buttons .buttons-csv::before, body.ro-ui .app-content .dt-buttons .buttons-excel::before { content: "\f6dd"; }
body.ro-ui .app-content .dt-buttons .buttons-pdf::before { content: "\f1c1"; }
body.ro-ui .app-content .dt-buttons .buttons-print::before { content: "\f02f"; }

/* "Main Features" button stacks -> calm navigation tiles with a coloured marker */
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn {
  display: flex !important; align-items: center; gap: 10px; text-align: left;
  background: var(--ro-surface) !important; border: 1px solid var(--ro-border) !important; color: var(--ro-text) !important;
  padding: 11px 14px !important; border-radius: 10px !important; font-weight: 600 !important;
}
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn::before {
  content: ""; width: 8px; height: 8px; border-radius: 3px; flex: 0 0 8px; background: var(--ro-text-3);
}
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn::after {
  content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; color: var(--ro-text-3); font-size: 12px;
}
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn:hover { background: var(--ro-surface-2) !important; border-color: var(--ro-border-strong) !important; }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn:is(.btn-info, .btn-cyan)::before { background: var(--ro-info); }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn:is(.btn-yellow, .btn-warning, .btn-orange)::before { background: var(--ro-warning); }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn:is(.btn-success, .btn-green, .btn-lime, .btn-teal)::before { background: var(--ro-success); }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn:is(.btn-danger, .btn-red, .btn-pink)::before { background: var(--ro-danger); }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn:is(.btn-purple, .btn-indigo)::before { background: var(--ro-violet); }
/* the first tile is the page's main action */
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex:first-child > .btn.btn-primary { background: var(--ro-primary) !important; border-color: var(--ro-primary) !important; color: #fff !important; }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex:first-child > .btn.btn-primary::before { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: auto; height: auto; background: none; color: #fff; font-size: 12px; }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex:first-child > .btn.btn-primary::after { color: rgba(255, 255, 255, .7); }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex:first-child > .btn.btn-primary:hover { background: var(--ro-primary-hover) !important; }
body.ro-ui .app-content .fw-bold.fs-13px > .d-flex { margin-bottom: 8px !important; }

/* ---------------------------------------------------------------- 8. Forms --------- */
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.form-control, .form-select, .dataTables_filter input, .dataTables_length select, input[type="text"]:not(.select2-search__field), input[type="number"], input[type="date"], input[type="email"], input[type="password"], textarea, select):not(.btn):not([type="checkbox"]):not([type="radio"]) {
  background-color: #fff !important; border: 1px solid var(--ro-border-strong) !important;
  color: var(--ro-text) !important; border-radius: var(--ro-radius-sm) !important; font-size: 13px;
  box-shadow: none !important; transition: border-color .15s, box-shadow .15s;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.form-control, .form-select, input, textarea, select):focus {
  border-color: var(--ro-primary) !important; box-shadow: var(--ro-ring) !important;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.form-control, input, textarea)::placeholder { color: var(--ro-text-3) !important; opacity: 1; }
body.ro-ui :is(.app-content, .modal, .offcanvas) .form-control:disabled, body.ro-ui :is(.app-content, .modal, .offcanvas) .form-control[readonly] { background-color: var(--ro-surface) !important; color: var(--ro-text-2) !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.form-label, label:not(.form-check-label):not(.btn)) { color: var(--ro-text-2); font-size: 12.5px; font-weight: 500; }
body.ro-ui :is(.app-content, .modal, .offcanvas) .form-check-input:checked { background-color: var(--ro-primary) !important; border-color: var(--ro-primary) !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas) .input-group-text { background: var(--ro-surface-3) !important; border-color: var(--ro-border-strong) !important; color: var(--ro-text-2) !important; }
body.ro-ui .select2-container--default .select2-selection--single, body.ro-ui .select2-container--default .select2-selection--multiple {
  background: #fff !important; border: 1px solid var(--ro-border-strong) !important; border-radius: var(--ro-radius-sm) !important; min-height: 36px;
}
body.ro-ui .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ro-text) !important; line-height: 34px !important; }
body.ro-ui .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px !important; }
body.ro-ui .select2-dropdown { background: #fff !important; border: 1px solid var(--ro-border-strong) !important; border-radius: var(--ro-radius-sm) !important; color: var(--ro-text) !important; box-shadow: var(--ro-shadow); overflow: hidden; }
body.ro-ui .select2-results__option { color: var(--ro-text) !important; padding: 7px 12px !important; }
body.ro-ui .select2-container--default .select2-results__option--highlighted[aria-selected], body.ro-ui .select2-container--default .select2-results__option--highlighted { background: var(--ro-primary) !important; color: #fff !important; }
body.ro-ui .select2-search--dropdown .select2-search__field { background: var(--ro-surface) !important; border: 1px solid var(--ro-border-strong) !important; color: var(--ro-text) !important; border-radius: 6px; }
/* multi-selects (Suppliers, currencies...): the theme drew chosen values as white chips with white text for its dark
   background - invisible on the light design. Chips are now tinted, readable, with a visible remove button. */
body.ro-ui .select2-container--default .select2-selection--multiple { padding: 3px 6px !important; min-height: 38px; }
body.ro-ui .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--ro-primary-soft) !important; border: 1px solid #bfe0d2 !important; color: var(--ro-text) !important;
  border-radius: 6px !important; padding: 2px 8px 2px 4px !important; margin: 3px 4px 3px 0 !important; font-size: 12.5px; font-weight: 500; line-height: 1.5;
}
body.ro-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__display { color: var(--ro-text) !important; }
body.ro-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--ro-primary) !important; background: transparent !important; border: 0 !important; font-weight: 700; margin-right: 4px; opacity: .8;
}
body.ro-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { color: var(--ro-danger) !important; opacity: 1; }
body.ro-ui .select2-container--default .select2-selection--multiple .select2-search__field { color: var(--ro-text) !important; min-width: 12em; margin-top: 4px !important; }
body.ro-ui .select2-container--default .select2-selection--multiple .select2-search__field::placeholder { color: var(--ro-text-3) !important; }
body.ro-ui .select2-container--default .select2-selection--multiple .select2-selection__clear { color: var(--ro-text-3) !important; }
/* a select2 inside an input group keeps its buttons on the same line */
body.ro-ui .input-group > .select2-container { flex: 1 1 auto; width: 1% !important; min-width: 0; }
body.ro-ui .input-group > .select2-container .select2-selection { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }

/* ---------------------------------------------------------------- 9. Tables -------- */
body.ro-ui .app-content .dataTables_wrapper, body.ro-ui .offcanvas .dataTables_wrapper { color: var(--ro-text-2); }
body.ro-ui :is(.app-content, .modal, .offcanvas) table.table {
  --bs-table-bg: transparent; --bs-table-striped-bg: #fcfbf8; --bs-table-hover-bg: rgba(13, 122, 95, .045);
  --bs-table-color: var(--ro-text); --bs-table-striped-color: var(--ro-text); --bs-table-border-color: var(--ro-border);
  border-collapse: separate !important; border-spacing: 0; color: var(--ro-text);
  border: 1px solid var(--ro-border) !important; border-radius: 10px; overflow: hidden;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) table.table > :not(caption) > * > * {
  border-left: 0 !important; border-right: 0 !important; border-top: 0 !important;
  border-bottom: 1px solid var(--ro-border) !important; padding: 10px 12px; box-shadow: none;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) table.table > tbody > tr:last-child > * { border-bottom: 0 !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas) table.table > thead > tr > th,
body.ro-ui :is(.app-content, .modal, .offcanvas) table.table > tfoot > tr > th {
  background: var(--ro-surface-2) !important; color: var(--ro-text-2) !important;
  font-size: 11.5px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) table.table > tbody > tr:hover > * { background: rgba(13, 122, 95, .045) !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas) table.table > tbody > tr.selected > * { background: var(--ro-primary-soft) !important; box-shadow: none !important; color: var(--ro-text) !important; }
body.ro-ui .app-content table.dataTable > thead .sorting::before, body.ro-ui .app-content table.dataTable > thead .sorting::after,
body.ro-ui .app-content table.dataTable > thead .sorting_asc::before, body.ro-ui .app-content table.dataTable > thead .sorting_asc::after,
body.ro-ui .app-content table.dataTable > thead .sorting_desc::before, body.ro-ui .app-content table.dataTable > thead .sorting_desc::after { opacity: .25; }
body.ro-ui .app-content table.dataTable > thead .sorting_asc::before, body.ro-ui .app-content table.dataTable > thead .sorting_desc::after { opacity: .9; color: var(--ro-primary); }
body.ro-ui table.ro-tfoot-dup > tfoot { display: none !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas) table.dataTable > thead > tr > th:is(.sorting, .sorting_asc, .sorting_desc) { padding-right: 26px !important; }
/* chart cards with nothing to draw yet */
body.ro-ui .app-content .chart-wrapper.ro-chart-empty canvas { visibility: hidden; }
body.ro-ui .app-content .chart-wrapper.ro-chart-empty::after {
  content: attr(data-ro-empty); position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: var(--ro-text-3); font-size: 13px; line-height: 1.7; text-align: center; padding: 0 30px; white-space: pre-line;
}
/* friendly empty / loading state */
body.ro-ui :is(.app-content, .offcanvas) td.dataTables_empty {
  padding: 36px 12px !important; color: var(--ro-text-3) !important; font-size: 13px; text-align: center; background: transparent !important;
}
body.ro-ui :is(.app-content, .offcanvas) td.dataTables_empty::before {
  content: "\f49e"; font-family: "Font Awesome 6 Free"; font-weight: 900; display: block; font-size: 24px; margin-bottom: 8px; opacity: .45;
}
body.ro-ui .app-content .dataTables_filter label, body.ro-ui .app-content .dataTables_length label { color: var(--ro-text-3); font-size: 12.5px; }
body.ro-ui .app-content .dataTables_filter input {
  min-width: 220px; padding: 7px 12px 7px 34px !important; margin-left: 8px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717c93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: 11px center !important; background-size: 15px !important;
}
body.ro-ui .app-content .dataTables_length select { padding: 5px 28px 5px 10px !important; margin: 0 6px; }
body.ro-ui .app-content .dataTables_info { color: var(--ro-text-3) !important; font-size: 12.5px; padding-top: 14px !important; }
body.ro-ui .app-content .dataTables_paginate { padding-top: 10px !important; }
body.ro-ui .app-content .pagination { gap: 4px; }
body.ro-ui .app-content .pagination .page-link {
  background: transparent !important; border: 1px solid var(--ro-border) !important; color: var(--ro-text-2) !important;
  border-radius: 8px !important; min-width: 34px; text-align: center; padding: 6px 11px; font-size: 12.5px; box-shadow: none !important;
}
body.ro-ui .app-content .pagination .page-link:hover { background: var(--ro-hover) !important; color: var(--ro-text) !important; }
body.ro-ui .app-content .pagination .active .page-link { background: var(--ro-primary) !important; border-color: var(--ro-primary) !important; color: #fff !important; }
body.ro-ui .app-content .pagination .disabled .page-link { opacity: .4; }

/* ---------------------------------------------------------------- 10. Tabs --------- */
body.ro-ui :is(.app-content, .modal, .offcanvas) .nav-tabs {
  border-bottom: 1px solid var(--ro-border) !important; background: transparent !important; gap: 4px; padding: 0 6px;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) .nav-tabs .nav-link {
  border: 0 !important; border-bottom: 2px solid transparent !important; background: transparent !important;
  color: var(--ro-text-2) !important; font-weight: 600; padding: 12px 12px 10px !important; border-radius: 0 !important; white-space: nowrap;
}
body.ro-ui :is(.app-content, .modal, .offcanvas) .nav-tabs .nav-link:hover { color: var(--ro-text) !important; }
body.ro-ui :is(.app-content, .modal, .offcanvas) .nav-tabs .nav-link.active, body.ro-ui :is(.app-content, .modal, .offcanvas) .nav-tabs .nav-item.active .nav-link {
  color: var(--ro-primary) !important; border-bottom-color: var(--ro-primary) !important;
}
body.ro-ui :is(.app-content, .modal) .nav-pills .nav-link { border-radius: 999px; color: var(--ro-text-2); font-weight: 600; }
body.ro-ui :is(.app-content, .modal) .nav-pills .nav-link.active { background: var(--ro-primary) !important; color: #fff !important; }

/* ---------------------------------------------------------------- 11. Overlays ----- */
body.ro-ui .modal-content {
  background: var(--ro-surface) !important; border: 1px solid var(--ro-border-strong) !important;
  border-radius: 14px !important; box-shadow: 0 24px 64px rgba(26, 46, 38, .18) !important; color: var(--ro-text);
}
body.ro-ui .modal-header { border-bottom: 1px solid var(--ro-border) !important; padding: 16px 20px !important; }
body.ro-ui .modal-header .modal-title { font-size: 16px; font-weight: 700; color: var(--ro-text); }
body.ro-ui .modal-footer { border-top: 1px solid var(--ro-border) !important; padding: 12px 20px !important; }
body.ro-ui .modal-body { padding: 18px 20px; }
body.ro-ui .modal-backdrop.show { opacity: .35; }
/* The theme gives .app-content z-index 1010, which traps a page's own modals below the header (1030) and
   the backdrop (1050): the dialog showed dimmed and its title sat under the header. Lift it while one is open. */
body.ro-ui.modal-open #app .app-content { z-index: auto !important; }
/* row action icons (colours come inline from the stored procedures) */
body.ro-ui .app-content table td a > i.fas[style*="color"], body.ro-ui .app-content table td a > i.fa[style*="color"] { color: var(--ro-text-2) !important; transition: color .15s; }
body.ro-ui .app-content table td a:hover > i:is(.fa-highlighter, .fa-pen, .fa-pen-to-square, .fa-edit) { color: var(--ro-primary) !important; }
body.ro-ui .app-content table td a > i:is(.fa-trash-can, .fa-trash, .fa-trash-alt) { color: rgba(236, 75, 75, .75) !important; }
body.ro-ui .app-content table td a:hover > i:is(.fa-trash-can, .fa-trash, .fa-trash-alt) { color: var(--ro-danger) !important; }
body.ro-ui .app-content .dataTables_length label { display: inline-flex !important; align-items: center; gap: 6px; white-space: nowrap; }
body.ro-ui .app-content .dataTables_length select { width: auto !important; display: inline-block !important; }
body.ro-ui .offcanvas { background: var(--ro-surface) !important; color: var(--ro-text) !important; border-left: 1px solid var(--ro-border-strong) !important; }
body.ro-ui .offcanvas-header { border-bottom: 1px solid var(--ro-border); }
body.ro-ui .offcanvas-title { font-weight: 700; font-size: 16px; }
body.ro-ui .dropdown-menu {
  background: #fff !important; border: 1px solid var(--ro-border) !important;
  border-radius: 10px !important; box-shadow: 0 12px 32px rgba(26, 46, 38, .12) !important; padding: 6px !important;
}
body.ro-ui .dropdown-menu .dropdown-item { color: var(--ro-text) !important; border-radius: 6px; padding: 7px 12px; font-size: 13px; }
body.ro-ui .dropdown-menu .dropdown-item:hover { background: var(--ro-hover) !important; }
body.ro-ui .dropdown-menu .dropdown-divider { border-color: var(--ro-border) !important; }
body.ro-ui .swal2-popup { background: var(--ro-surface) !important; border: 1px solid var(--ro-border-strong); border-radius: 14px !important; color: var(--ro-text) !important; }
body.ro-ui .swal2-popup .swal2-title { color: var(--ro-text) !important; font-family: var(--ro-font); }
body.ro-ui .swal2-popup .swal2-content, body.ro-ui .swal2-popup .swal2-html-container { color: var(--ro-text-2) !important; }
body.ro-ui .swal2-popup .swal2-styled { border-radius: 8px !important; font-weight: 600 !important; box-shadow: none !important; }
body.ro-ui .swal2-popup .swal2-styled.swal2-confirm { background: var(--ro-primary) !important; }
body.ro-ui .swal2-popup .swal2-styled.swal2-cancel { background: var(--ro-surface-3) !important; color: var(--ro-text) !important; }

/* ---------------------------------------------------------------- 12. Badges ------- */
body.ro-ui .app-content .badge { font-weight: 600; border-radius: 6px; letter-spacing: .01em; }
body.ro-ui .app-content .panel-title .badge.ro-version { display: none; }

/* ---------------------------------------------------------------- 13. Dashboard ---- */
body.ro-ui .ro-dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
body.ro-ui .ro-dash-head h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--ro-text); letter-spacing: -.01em; }
body.ro-ui .ro-dash-head p { margin: 4px 0 0; color: var(--ro-text-3); font-size: 13px; }
body.ro-ui .ro-dash-head .ro-dash-range { display: flex; align-items: center; gap: 8px; }
body.ro-ui .ro-dash-head .ro-dash-range label { margin: 0; color: var(--ro-text-3); font-size: 12.5px; }
body.ro-ui .ro-dash-head .ro-dash-range select { width: auto !important; min-width: 150px; padding: 7px 34px 7px 12px !important; }
body.ro-ui .app-content .widget.bg-gradient {
  background: var(--ro-surface) !important; border: 1px solid var(--ro-border) !important; border-radius: var(--ro-radius) !important;
  box-shadow: var(--ro-shadow) !important; padding: 16px !important; min-height: 104px; margin-bottom: 16px !important;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; color: var(--ro-text) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; position: relative; overflow: hidden;
}
body.ro-ui .app-content .widget.bg-gradient::before, body.ro-ui .app-content .widget.bg-gradient::after { display: none !important; }
body.ro-ui .app-content .widget .stats-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex !important; align-items: center; justify-content: center;
  font-size: 15px !important; margin: 0 !important; background: var(--ro-primary-soft); color: var(--ro-primary) !important; flex: 0 0 36px;
}
body.ro-ui .app-content .widget .stats-icon i { color: inherit !important; }
body.ro-ui .app-content .widget .stats-title { color: var(--ro-text-2) !important; font-size: 12.5px !important; font-weight: 500; opacity: 1 !important; }
body.ro-ui .app-content .widget .stats-number { color: var(--ro-text) !important; font-size: 22px !important; font-weight: 700 !important; letter-spacing: -.01em; margin-top: 2px; }
body.ro-ui .app-content .widget.costofsales .stats-icon { background: var(--ro-warning-soft); color: var(--ro-warning) !important; }
body.ro-ui .app-content .widget.sales .stats-icon { background: var(--ro-primary-soft); color: var(--ro-primary) !important; }
body.ro-ui .app-content .widget.grossprofit .stats-icon { background: var(--ro-success-soft); color: var(--ro-success) !important; }
body.ro-ui .app-content .widget.voids .stats-icon { background: var(--ro-danger-soft); color: var(--ro-danger) !important; }
body.ro-ui .app-content .widget.expenses .stats-icon { background: rgba(155, 124, 246, .15); color: var(--ro-violet) !important; }
body.ro-ui .app-content .widget.supplierpay .stats-icon { background: rgba(34, 195, 176, .14); color: var(--ro-teal) !important; }
body.ro-ui .app-content .ro-public-url { color: var(--ro-text-3); font-size: 12.5px; margin: -6px 0 14px; }
body.ro-ui .app-content .ro-public-url a { color: var(--ro-text-2); }
body.ro-ui .app-content #date-range-container { display: none !important; }
/* charts sit on cards (the card is drawn behind the column so grid gutters stay intact) */
body.ro-ui .app-content .chart-wrapper { position: relative; padding-top: 16px; padding-bottom: 16px; margin-bottom: 16px !important; }
body.ro-ui .app-content .chart-wrapper::before {
  content: ""; position: absolute; inset: 0 calc(var(--bs-gutter-x, 1.5rem) * .5); z-index: 0;
  background: var(--ro-surface); border: 1px solid var(--ro-border); border-radius: var(--ro-radius); box-shadow: var(--ro-shadow);
}
body.ro-ui .app-content .chart-wrapper > * { position: relative; z-index: 1; padding-left: 12px; padding-right: 12px; }
body.ro-ui .app-content .chart-wrapper canvas { padding: 0 12px; }
body.ro-ui .app-content .chart-wrapper .card-body { color: var(--ro-text); }
body.ro-ui .app-content .chart-wrapper .card-body > .mb-3 { font-family: var(--ro-font) !important; font-size: 14px !important; font-weight: 600 !important; text-align: left !important; }

/* right-hand panel (server status / daily tasks) */
body.ro-ui #sidebar-right .p-20px { padding: 18px 16px !important; }
body.ro-ui #sidebar-right .text-body, body.ro-ui #sidebar-right { color: var(--ro-text) !important; }

/* ================================================================ 14. Phones ======== */
.ro-bottom-nav, .ro-drawer-close { display: none; }
@media (max-width: 991.98px) {   /* phones and tablets: the app's own responsive layout (drawer menu) runs up to 991px */
  body.ro-ui { font-size: 14px; }
  body.ro-ui #app .app-content:not(.p-0) { padding: 14px 14px calc(84px + env(safe-area-inset-bottom)) !important; }
  body.ro-ui .app-header { height: 56px !important; }
  body.ro-ui .app-header .navbar-header { display: flex; align-items: center; gap: 4px; }
  body.ro-ui .app-header .navbar-brand { padding: 0 6px 0 12px !important; width: auto !important; }
  body.ro-ui .app-header .navbar-brand img { height: 30px !important; }
  body.ro-ui .app-header .navbar-mobile-toggler {
    border: 0 !important; background: transparent !important; border-radius: 10px !important;
    width: 44px; height: 44px; padding: 12px 11px !important; margin: 0 !important;
  }
  body.ro-ui .app-header .navbar-mobile-toggler .icon-bar { background: var(--ro-text) !important; height: 2px; border-radius: 2px; width: 20px !important; }
  /* the menu button leads the header (then the logo, then the company picker), as on every phone platform */
  body.ro-ui .app-header .navbar-mobile-toggler { order: -1; margin-left: 4px !important; }
  body.ro-ui .app-header .navbar-brand { padding-left: 2px !important; }
  body.ro-ui .app-header .select2-container { max-width: 52vw; }
  body.ro-ui .app-content .page-header { font-size: 20px !important; }
  body.ro-ui .app-content .page-header small { display: block; margin: 2px 0 0; }
  body.ro-ui .ro-dash-head { margin-bottom: 14px; }
  body.ro-ui .ro-dash-head h1 { font-size: 20px; }
  body.ro-ui .ro-dash-head .ro-dash-range { width: 100%; }
  body.ro-ui .ro-dash-head .ro-dash-range select { flex: 1; }
  body.ro-ui .app-content .row > [class*="col-"]:has(> .widget.bg-gradient) { flex: 0 0 50%; max-width: 50%; padding-left: 6px; padding-right: 6px; }
  body.ro-ui .app-content .row:has(> [class*="col-"] > .widget.bg-gradient) { margin-left: -6px; margin-right: -6px; }
  body.ro-ui .app-content .widget.bg-gradient { min-height: 96px; padding: 12px !important; margin-bottom: 12px !important; gap: 10px; flex-direction: column !important; align-items: flex-start !important; text-align: left; }
  body.ro-ui .app-content .widget .stats-content { text-align: left !important; }
  body.ro-ui .app-header .navbar-nav { border: 0 !important; background: transparent !important; }
  body.ro-ui .app-header .select2-container, body.ro-ui .app-header .select2-container .selection { background: transparent !important; }
  body.ro-ui .app-content .widget .stats-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px !important; border-radius: 8px; }
  body.ro-ui .app-content .widget .stats-title { font-size: 12px !important; }
  body.ro-ui .app-content .widget .stats-number { font-size: 18px !important; }
  body.ro-ui .app-content .panel .panel-title { font-size: 15px !important; }
  body.ro-ui .app-content .panel > .panel-heading { padding: 12px 14px !important; min-height: 48px; }
  body.ro-ui .app-content .panel-body { padding: 14px !important; }
  body.ro-ui .panel-heading-btn [data-toggle="panel-expand"] { display: none !important; }
  /* features: a 2-column grid of tiles; the main action spans both */
  body.ro-ui .app-content .fw-bold.fs-13px:has(> .d-flex > .btn) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  body.ro-ui .app-content .fw-bold.fs-13px:has(> .d-flex > .btn) > .d-flex { margin: 0 !important; }
  body.ro-ui .app-content .fw-bold.fs-13px:has(> .d-flex > .btn) > .d-flex:first-child { grid-column: 1 / -1; }
  /* first tile spans the row, so the last one spans only when it would sit alone */
  body.ro-ui .app-content .fw-bold.fs-13px:has(> .d-flex > .btn) > .d-flex:last-child:nth-child(odd):not(:first-child) { grid-column: auto; }
  body.ro-ui .app-content .fw-bold.fs-13px:has(> .d-flex > .btn) > .d-flex:last-child:nth-child(even) { grid-column: 1 / -1; }
  body.ro-ui .app-content .fw-bold.fs-13px > .d-flex > .btn { min-height: 48px; padding: 12px !important; font-size: 13.5px !important; }
  body.ro-ui .app-content .fw-bold.fs-13px > .d-flex:not(:first-child) > .btn::after { display: none; }
  /* table toolbar: export buttons as compact icon chips, search full width */
  body.ro-ui .app-content .dt-buttons { display: flex !important; gap: 6px; }
  body.ro-ui .app-content .dt-buttons .btn, body.ro-ui .app-content .dt-buttons .dt-button { min-height: 40px; padding: 8px 12px !important; border-radius: 10px !important; }
  body.ro-ui .app-content .dataTables_filter input { min-width: 0; width: 100% !important; margin: 6px 0 0 !important; min-height: 44px; font-size: 16px !important; }
  body.ro-ui .app-content .dataTables_length { margin-bottom: 8px; }
  body.ro-ui .app-content .pagination .page-link { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
  body.ro-ui :is(.app-content, .modal, .offcanvas) :is(.form-control, .form-select, input[type="text"], input[type="number"], select, textarea):not(.btn) { min-height: 44px; font-size: 16px !important; }
  body.ro-ui .app-content .alert { font-size: 13px; }
  /* buttons keep their label on one line; the heading beside them wraps instead */
  body.ro-ui .app-content .btn:not(.btn-block):not(.w-100) { white-space: nowrap; }
  /* bottom navigation */
  body.ro-ui .ro-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);   /* one row, however many tabs (5.7.0 added Live) */
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -4px 16px rgba(26, 46, 38, .05);
    border-top: 1px solid var(--ro-border);
  }
  body.ro-ui .ro-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 52px; border-radius: 12px; color: var(--ro-text-3) !important; text-decoration: none;
    font-size: 11px; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent;
    min-width: 0; white-space: nowrap; overflow: hidden;
  }
  body.ro-ui .ro-bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 380px) { body.ro-ui .ro-bottom-nav a { font-size: 10px; letter-spacing: 0; } }
  body.ro-ui .ro-bottom-nav a i { font-size: 18px; line-height: 1; }
  body.ro-ui .ro-bottom-nav a.active { color: var(--ro-primary) !important; }
  body.ro-ui .ro-bottom-nav a.active i { color: var(--ro-primary); }
  body.ro-ui .ro-bottom-nav a:active { background: var(--ro-hover); }
  body.ro-ui #app.app-sidebar-mobile-toggled ~ .ro-bottom-nav, body.ro-ui.modal-open .ro-bottom-nav, body.ro-ui.ro-offcanvas-open .ro-bottom-nav { display: none; }
  body.ro-ui #clippy-chat-bubble { bottom: calc(80px + env(safe-area-inset-bottom)) !important; right: 14px !important; width: 46px !important; height: 46px !important; }
  /* language picker lives inside the open menu drawer only */
  body.ro-ui .gt_switcher_wrapper { display: none !important; }
  body.ro-ui.ro-drawer-open .gt_switcher_wrapper { display: block !important; bottom: 14px !important; left: 14px !important; z-index: 1100 !important; }
  body.ro-ui.ro-drawer-open #sidebar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52px; z-index: 5; pointer-events: none;
    background: #ffffff; border-top: 1px solid var(--ro-border);
  }
  /* closing the drawer: mobile-responsive.css dims the page with #app::before at z-index 1039, above the theme's
     tap-to-close layer (1020), so taps outside the drawer did nothing. The dim stays, taps go through to the close layer. */
  body.ro-ui #app.app-sidebar-mobile-toggled::before, body.ro-ui #app.app-sidebar-toggled::before { pointer-events: none; }
  body.ro-ui #app.app-sidebar-mobile-toggled .app-sidebar-mobile-backdrop:not(.app-sidebar-end) { display: block !important; z-index: 1039 !important; background: transparent !important; }
  body.ro-ui .ro-drawer-close {
    position: fixed; top: 10px; left: 230px; z-index: 1045; width: 40px; height: 40px;   /* top-right corner of the 280px drawer */
    display: none; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%;
    background: var(--ro-surface-3); color: var(--ro-text); font-size: 18px; cursor: pointer;
  }
  body.ro-ui .ro-drawer-close:hover, body.ro-ui .ro-drawer-close:focus-visible { background: #e8e2d2; outline: none; }
  body.ro-ui.ro-drawer-open .ro-drawer-close { display: flex; }
  body.ro-ui .app-sidebar .menu-profile-link { padding-right: 56px !important; }
  /* the drawer keeps the theme's width (it is hidden by exactly that much); no separate background panel */
  body.ro-ui .app-sidebar-bg { display: none !important; }
  body.ro-ui .app-sidebar .menu > .menu-item > .menu-link { min-height: 44px; }
  body.ro-ui .app-sidebar .menu-submenu .menu-link { min-height: 40px; display: flex; align-items: center; }
  body.ro-ui .app-sidebar .menu { padding-bottom: 72px; }
  body.ro-ui .modal-dialog { margin: 10px; }
  body.ro-ui .modal-content { border-radius: 16px !important; }
}

/* ================================================================ 15. Sign-in ======== */
.login.login-v1 { background: transparent !important; font-family: var(--ro-font); }
/* sign-in page: calm light backdrop instead of the darkened shop photo (body.ro-login is set by ro-shell.js) */
body.ro-login { background: var(--ro-bg) !important; color: var(--ro-text); }
body.ro-login .app-cover {
  background: radial-gradient(900px 520px at 50% -12%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
              radial-gradient(700px 420px at 100% 110%, rgba(13, 122, 95, .07), transparent 65%), var(--ro-bg) !important;
  filter: none !important;
}
body.ro-login .app-cover::before, body.ro-login .app-cover::after { display: none !important; }
.login.login-v1 :is(h1, h2, h3, h4, .login-header, .login-header .brand, .login-header .brand small, .text-white, .text-body) { color: var(--ro-text) !important; }
.login.login-v1 :is(.text-muted, .text-white-50, small) { color: var(--ro-text-3) !important; }
.login.login-v1 .login-container {
  width: 100%; max-width: 420px !important; margin: 0 auto; padding: 28px 28px 22px !important;
  background: #ffffff !important; border: 1px solid var(--ro-border); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(26, 46, 38, .04), 0 24px 60px rgba(26, 46, 38, .10);
}
.login.login-v1 .login-header { padding: 0 0 6px !important; background: transparent !important; }
.login.login-v1 .login-header .brand img { width: 84px !important; height: 84px !important; }
.login.login-v1 .login-body, .login.login-v1 .tab-content { background: transparent !important; padding-left: 0 !important; padding-right: 0 !important; }
.login.login-v1 .nav-pills {
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 6px 0 4px !important;
  background: var(--ro-surface-3); border: 0; border-radius: 12px;
}
.login.login-v1 .nav-pills .nav-item { width: 100%; }
.login.login-v1 .nav-pills .nav-link {
  width: 100%; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px !important;
  color: var(--ro-text-3) !important; background: transparent !important; padding: 8px !important;
}
.login.login-v1 .nav-pills .nav-link i { font-size: 18px !important; }
.login.login-v1 .nav-pills .nav-link.active { background: #fff !important; color: var(--ro-primary) !important; box-shadow: 0 1px 3px rgba(26, 46, 38, .12); }
.login.login-v1 .login-content .form-control, .login.login-v1 .login-content select {
  background: #fff !important; border: 1px solid var(--ro-border-strong) !important; color: var(--ro-text) !important;
  border-radius: 10px !important; min-height: 48px; font-size: 14px !important; text-align: left; box-shadow: none !important;
}
.login.login-v1 .login-content .input-group > .form-control { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.login.login-v1 .login-content .form-control:focus { border-color: var(--ro-primary) !important; box-shadow: var(--ro-ring) !important; }
.login.login-v1 .login-content select.branch1 { font-weight: 600; padding: 0 40px 0 14px !important; }
.login.login-v1 .select2-container { width: 100% !important; }
.login.login-v1 .select2-container .select2-selection--single {
  background: #fff !important; border: 1px solid var(--ro-border-strong) !important; border-radius: 10px !important;
  height: 48px !important; display: flex; align-items: center;
}
.login.login-v1 .select2-container .select2-selection__rendered { color: var(--ro-text) !important; font-weight: 600; padding-left: 14px !important; line-height: 46px !important; }
.login.login-v1 .select2-container .select2-selection__arrow { height: 46px !important; right: 10px !important; }
.login.login-v1 .login-content .input-group-text {
  background: #fff !important; border: 1px solid var(--ro-border-strong) !important; border-left: 0 !important;
  border-radius: 0 10px 10px 0 !important; min-width: 48px; justify-content: center;
}
.login.login-v1 .login-content .input-group-text a { color: var(--ro-text-2) !important; }
.login.login-v1 .form-floating > label { color: var(--ro-text-3) !important; font-size: 13px; z-index: 6; opacity: 1 !important; }   /* a focused input (z-index 5 in input groups) hid its label */
.login.login-v1 .form-floating > .form-control:focus ~ label, .login.login-v1 .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--ro-primary) !important; }
.login.login-v1 .mb-20px { margin-bottom: 14px !important; }
.login.login-v1 #forgot-password { color: var(--ro-text-2) !important; text-decoration: none; font-size: 13px; }
.login.login-v1 #forgot-password:hover { color: var(--ro-primary) !important; text-decoration: underline; }
.login.login-v1 #btnLogin {
  background: var(--ro-primary) !important; border: 0 !important; color: #fff !important; font-weight: 600; font-size: 15px !important;
  min-height: 48px; border-radius: 10px !important; box-shadow: 0 8px 20px rgba(13, 122, 95, .22);
}
.login.login-v1 #btnLogin:hover { background: var(--ro-primary-hover) !important; }
.login.login-v1 .login-buttons br { display: none; }
.login.login-v1 .login-msg { margin: 10px 0 4px; font-size: 13px; color: var(--ro-danger); min-height: 1em; }
.login.login-v1 #login-form > a, .login.login-v1 #login-form { color: var(--ro-text-3); font-size: 12px; }
.login.login-v1 #login-form > a { color: var(--ro-text-2) !important; text-decoration: none; }
.login.login-v1 #login-form { text-align: center; }
.login.login-v1 #login-form .input-group, .login.login-v1 #login-form .form-floating { text-align: left; }
.login.login-v1 .btn-outline-primary:not(#btnLogin) { border-color: var(--ro-border-strong) !important; color: var(--ro-text) !important; border-radius: 12px !important; }
@media (max-width: 767.98px) {
  .login.login-v1 { padding: 16px !important; }
  .login.login-v1 .login-container { padding: 22px 18px 18px !important; border-radius: 18px; }
  .login.login-v1 .login-content .form-control, .login.login-v1 .login-content select { font-size: 16px !important; }
}

/* ================================================================ 16. Till (POS) ===== */
/* placeholder tiles the till pads each category with ("This is a dummy") are not shown */
body .pos .product-container:has(> .product.not-available) { display: none !important; }
/* keyboard shortcut hints as key caps */
.pos .ro-kbd {
  display: inline-block; font: 600 10px/1 var(--ro-font); padding: 3px 5px; margin-left: 6px; border-radius: 4px;
  background: rgba(0, 0, 0, .07); border: 1px solid rgba(0, 0, 0, .12); border-bottom-width: 2px; vertical-align: 1px; letter-spacing: 0;
}
.pos #save .ro-kbd { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); color: #fff; }
/* price list picker on the till header */
.pos #ro-price-level { flex: 0 0 auto; margin: 0 4px !important; }
.pos #ro-price-level select {
  height: 32px; border-radius: 8px !important; font-weight: 600 !important; font-size: 12px !important;
  padding: 4px 28px 4px 10px !important; min-width: 0 !important; border: 1px solid rgba(0, 0, 0, .15);
}
.pos #ro-price-level select.bg-warning { background-color: #fde68a !important; border-color: #f2a516 !important; }
/* PICK UP / EXIT sit in a fixed 120px, right-aligned box that pushed PICK UP off the left edge */
.pos .pos-stock-header .header-left > .nav { width: auto !important; flex: 0 0 auto !important; justify-content: flex-start !important; }
/* the scan box never shrinks below a usable width; on narrower tills the button groups scroll sideways instead */
@media (min-width: 992px) {
  .pos .pos-stock-header .header-left, .pos .pos-stock-header .header-right {
    flex-wrap: nowrap; flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    justify-content: flex-start !important;
  }
  .pos .pos-stock-header .header-right .nav, .pos .pos-stock-header .header-right .nav-item { justify-content: flex-start !important; flex-shrink: 0; }
  .pos .pos-stock-header .header-left::-webkit-scrollbar, .pos .pos-stock-header .header-right::-webkit-scrollbar { display: none; }
  .pos .pos-stock-header .header-left > *, .pos .pos-stock-header .header-right > *, .pos .pos-stock-header .header-right .nav-item > * { flex-shrink: 0; }
  .pos .pos-stock-header .header-center { flex: 1 1 0; min-width: 300px; }
  .pos .pos-stock-header .header-center .input-group { width: 100% !important; }
}
/* small tills (992-1279px): key caps hidden and tighter buttons so both groups fit beside the scan box */
@media (min-width: 992px) and (max-width: 1279.98px) {
  .pos .pos-stock-header .ro-kbd { display: none; }
  .pos .pos-stock-header .nav .nav-item a.btn, .pos #btn-pickup-top, .pos #btn-exit-top { padding-left: 9px !important; padding-right: 9px !important; }
}
/* Tablets (768-991px) use the till's phone layout (the till view's own breakpoint is 991.98px since
   2026-10-28). mobile-polish.css only loads below 768px, so its till stacking rules are repeated here. */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root { --pos-header-h: 112px !important; }
  .pos-stock-header {
    height: auto !important; min-height: var(--pos-header-h); flex-wrap: wrap !important;
    padding: 6px 10px !important; gap: 6px !important; align-content: flex-start;
  }
  .pos-stock-header .header-left { flex: 0 1 auto !important; overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  .pos-stock-header .header-right { flex: 1 1 auto !important; overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  .pos-stock-header .header-left::-webkit-scrollbar, .pos-stock-header .header-right::-webkit-scrollbar { display: none; }
  .pos-stock-header .header-center { order: 3; flex: 1 1 100% !important; height: auto !important; max-width: 100%; }
  .pos-stock-header .header-left > *, .pos-stock-header .header-right > *, .pos-stock-header .header-right .nav-item > * { flex-shrink: 0; }
  .pos-stock-header .header-center .input-group { width: 100% !important; flex-wrap: nowrap !important; height: 44px; max-width: none !important; }
  .pos-stock-header #barcode1 { min-width: 0 !important; width: 100% !important; height: 42px !important; }
  .pos-menu, .pos-menu .nav-container { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .pos.pos-stock {
    height: 100vh !important; height: 100dvh !important; padding-top: 0 !important;
    display: flex !important; flex-direction: column !important; overflow: hidden !important;
  }
  .pos.pos-stock > .pos-stock-header { position: relative !important; top: auto !important; flex: 0 0 auto; z-index: 30; }
  .pos.pos-stock > .pos-stock-body { flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; display: flex !important; flex-direction: column !important; }
  .pos-stock-body > .pos.pos-customer { flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; display: flex !important; flex-direction: column !important; }
  .pos.pos-customer > .pos-menu { position: relative !important; top: auto !important; flex: 0 0 auto !important; z-index: 20; }
  .pos.pos-customer > .pos-content { flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; margin-top: 0 !important; padding-top: 0 !important; }
  .pos-content > .pos-content-container-wrapper { height: 100% !important; }
  .pos-menu .logo { display: none !important; }
  #projects > .product-container { width: auto !important; max-width: none !important; flex: none !important; }
  /* the cart slides in as a panel from the right on tablets */
  .pos-sidebar { width: min(440px, 100%) !important; left: auto !important; right: 0 !important; box-shadow: -12px 0 40px rgba(0, 0, 0, .25); }
}
@media (max-width: 991.98px) {
  .pos .ro-kbd { display: none; }
  .pos #ro-price-level select { height: 38px; }
  /* button rows start at the left (the right-aligned row hid SUSPEND off-screen) and centre their text */
  .pos .pos-stock-header .header-right, .pos .pos-stock-header .header-right .nav, .pos .pos-stock-header .header-right .nav-item { justify-content: flex-start !important; }
  .pos .pos-stock-header .header-right .nav { flex: 0 0 auto !important; width: auto !important; }
  .pos .pos-stock-header .nav .nav-item a.btn, .pos #btn-pickup-top, .pos #btn-exit-top {
    display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; height: 40px !important; white-space: nowrap;
  }
  .pos .pos-stock-header .header-left .nav, .pos .pos-stock-header .header-right .nav, .pos .pos-stock-header .nav-item { align-items: center; height: auto !important; }
  /* categories: a swipeable row of chips instead of one full-width pill at a time */
  .pos .pos-menu .categories-wrapper { overflow-x: auto !important; scrollbar-width: none; padding: 8px 10px !important; }
  .pos .pos-menu .categories-wrapper::-webkit-scrollbar { display: none; }
  .pos .pos-menu #categories { flex-wrap: nowrap !important; gap: 8px; border: 0 !important; width: max-content; }
  .pos .pos-menu #categories > .nav-item { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; margin: 0 !important; }
  .pos .pos-menu #categories > .nav-item > .nav-link {
    flex-direction: row !important; align-items: center; gap: 7px; width: auto !important; height: 40px !important; min-height: 0 !important;
    padding: 0 16px !important; border-radius: 999px !important; white-space: nowrap; font-size: 13.5px !important;
  }
  .pos .pos-menu #categories > .nav-item > .nav-link i { font-size: 14px !important; margin: 0 !important; }
  .pos .pos-menu #categories > .nav-item > .nav-link:not(.active) { background: #fff !important; border: 1px solid rgba(0, 0, 0, .1) !important; }
  .pos .pos-menu .cat-nav { display: none !important; }
  .pos .pos-menu .categories-container, .pos .pos-menu .categories-wrapper { height: auto !important; }
  /* touch screens scroll the product list directly; the arrows only covered product cards */
  .pos .prod-nav { display: none !important; }
  /* the till page sets the product list to height:auto here, so it grew past its clipped window and could not scroll */
  body .pos .pos-content-container-wrapper > .pos-content-container {
    height: 100% !important; max-height: 100% !important; overflow-y: auto !important; overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  }
}
/* empty cart: say what to do instead of showing a blank panel */
.pos #newOrderTab:not(:has(#allocations-table tbody td:not(.dataTables_empty))) { position: relative; min-height: 180px; }
.pos #newOrderTab:not(:has(#allocations-table tbody td:not(.dataTables_empty)))::before {
  content: "\f07a"; font: 900 30px/1 "Font Awesome 6 Free"; position: absolute; left: 0; right: 0; top: 44px; text-align: center;
  color: var(--pos-text-muted, #8a8f98); opacity: .45;
}
.pos #newOrderTab:not(:has(#allocations-table tbody td:not(.dataTables_empty)))::after {
  content: "No items yet\A Scan a barcode or tap a product to start the sale"; white-space: pre-line;
  position: absolute; left: 24px; right: 24px; top: 90px; text-align: center;
  font: 500 13px/1.6 var(--ro-font); color: var(--pos-text-muted, #8a8f98);
}

/* ================================================================ 17. Speed on old computers ===== */
/* Blur (backdrop-filter) is expensive for basic graphics chips and invisible on these near-solid surfaces: off everywhere. */
body.ro-ui .app-header, body.ro-ui .ro-bottom-nav, .login.login-v1 .login-container { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.ro-ui .app-header { background: #ffffff !important; }
body.ro-ui .ro-bottom-nav { background: #ffffff !important; }
/* Fast mode (body.ro-lite): set by ro-shell.js on dual-core / 4 GB computers, or from the profile menu */
body.ro-lite *, body.ro-lite *::before, body.ro-lite *::after {
  transition: none !important; animation: none !important; scroll-behavior: auto !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
body.ro-lite .app-content .panel, body.ro-lite .app-content .card, body.ro-lite .app-content .widget, body.ro-lite .app-content .chart-wrapper::before,
body.ro-lite .modal-content, body.ro-lite .dropdown-menu, body.ro-lite .btn, body.ro-lite .app-header, body.ro-lite .pos .product, body.ro-lite .pos .product-container,
body.ro-lite .login.login-v1 .login-container, body.ro-lite .pos-sidebar { box-shadow: none !important; text-shadow: none !important; }
body.ro-lite .app-cover canvas, body.ro-lite #app-cover canvas { display: none !important; }
/* SweetAlert2 only removes a popup when its hide animation ends; with no animation "Optimizing Database..." and every
   confirm box stayed on screen for good (4 GB phones turn Fast mode on by themselves). Keep its two short animations. */
body.ro-lite .swal2-popup.swal2-show:not(.swal2-noanimation) { animation: swal2-show .3s !important; }
body.ro-lite .swal2-popup.swal2-hide:not(.swal2-noanimation) { animation: swal2-hide .15s forwards !important; }
body.ro-lite .pace { display: none !important; }/* The "online" badge pulsed forever (modern-uplift.css: #online .badge, an ID selector that beat the class override): a box-shadow
   animation re-styles and repaints the page 60 times a second all day. Only an OFFLINE badge pulses, and never in Fast mode. */
body #online .badge, body .ro-online .badge { animation: none !important; box-shadow: none !important; }
body:not(.ro-lite) #online .badge.bg-danger, body:not(.ro-lite) .ro-online .badge.bg-danger { animation: ro-badge-pulse 2.2s ease infinite !important; }/* breadcrumbs ("Dashboard > Stock Types") were drawn in the dark theme's white */
body.ro-ui .app-content .breadcrumb { background: transparent !important; font-size: 12.5px; }
body.ro-ui .app-content .breadcrumb .breadcrumb-item, body.ro-ui .app-content .breadcrumb .breadcrumb-item a { color: var(--ro-text-2) !important; text-decoration: none; }
body.ro-ui .app-content .breadcrumb .breadcrumb-item a:hover { color: var(--ro-primary) !important; }
body.ro-ui .app-content .breadcrumb .breadcrumb-item.active { color: var(--ro-text-3) !important; }
body.ro-ui .app-content .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--ro-text-3) !important; }

/* ================================================================ 18. On-screen keyboard ===== */
/* Slides up from the bottom when a field is tapped on a touch screen with no keyboard (ro-shell.js). Every page, the till and sign-in included. */
.ro-osk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; box-sizing: border-box;
  padding: 8px max(8px, calc((100vw - 1040px) / 2)) 10px; background: #e9e4d6; border-top: 1px solid #d6cfbb;
  box-shadow: 0 -6px 24px rgba(26, 46, 38, .14); font-family: var(--ro-font); user-select: none; -webkit-user-select: none;
  touch-action: manipulation; transform: translateY(105%); transition: transform .16s ease-out; visibility: hidden;
}
.ro-osk.open { transform: none; visibility: visible; }
.ro-osk-row { display: flex; gap: 6px; margin-bottom: 6px; }
.ro-osk-row:last-child { margin-bottom: 0; }
.ro-osk-key {
  flex: 1 1 0; min-width: 0; height: clamp(44px, 7.2vh, 60px); border: 1px solid #d6cfbb; border-bottom-width: 2px; border-radius: 9px;
  background: #ffffff; color: #1a2e26; font: 600 clamp(16px, 2.3vh, 21px)/1 var(--ro-font); padding: 0; cursor: pointer; touch-action: manipulation;
}
.ro-osk-key.down, .ro-osk-key:active { background: #0d7a5f; border-color: #0a644e; color: #ffffff; }
.ro-osk-shift, .ro-osk-back, .ro-osk-sym, .ro-osk-abc { flex-grow: 1.5; background: #f2eee3; font-size: clamp(14px, 2vh, 18px); }
.ro-osk-shift.on { background: #e6f4ee; border-color: #0d7a5f; color: #0d7a5f; }
.ro-osk-space { flex-grow: 5; font-size: 14px; color: #646f69; }
.ro-osk-enter { flex-grow: 2; background: #0d7a5f; border-color: #0a644e; color: #ffffff; font-size: clamp(14px, 2vh, 18px); }
.ro-osk-hide { flex-grow: 1.6; background: #f2eee3; color: #4b5c55; font-size: 14px; }
/* number pad: phone numbers, amounts, quantities */
.ro-osk.ro-osk-num { padding-left: max(8px, calc((100vw - 420px) / 2)); padding-right: max(8px, calc((100vw - 420px) / 2)); }
.ro-osk.ro-osk-num .ro-osk-key { height: clamp(48px, 8vh, 64px); font-size: clamp(18px, 2.8vh, 24px); }
.ro-osk.ro-osk-num .ro-osk-enter, .ro-osk.ro-osk-num .ro-osk-hide { font-size: 15px; }
/* the page can scroll its lower fields up above the keyboard */
body.ro-osk-open.ro-ui .app-content { padding-bottom: 46vh !important; }
body.ro-lite .ro-osk { transition: none !important; }

/* ---------------------------------------------------------------- 19. Restaurant floor plan */
/* pages-allocations3_tables has its own light styles, but the base theme's dark header (more specific) won, which
   left the clock as ink on near-black; the order chip was translucent black. It is a full-screen page, so the
   back-office phone bar stays hidden. */
body .pos.pos-counter .pos-counter-header { background: var(--pos-surface, #fff) !important; color: var(--pos-text, #1a2e26); }
body .pos.pos-counter .pos-counter-sidebar .pos-sidebar-header .order {
  background: var(--pos-surface-2, #f3ecd6) !important; color: var(--pos-text, #1a2e26) !important; border-radius: 6px; padding: 3px 8px;
}
body.ro-ui #app.app-without-sidebar ~ .ro-bottom-nav { display: none; }
.ro-osk-next { flex-grow: 1.8; background: #e6f4ee; border-color: #b9dccd; color: #0d7a5f; font-size: clamp(13px, 1.9vh, 16px); }

/* ---------------------------------------------------------------- 20. Till quantity sheet */
/* Tap a product with quick-add off (or a weighed item): one big quantity, -/+ steppers, quick amounts, a large keypad
   and a full-width "Add 2 · $17.00" button in thumb reach. A bottom sheet on phones and tablets, a card on desktop. */
.swal2-popup.ro-qty-sheet { width: 420px !important; max-width: 100vw !important; padding: 18px 18px 16px !important; border-radius: 20px !important; }
.ro-qty-sheet .swal2-title {
  font-size: 19px !important; font-weight: 700 !important; line-height: 1.25 !important; text-align: center; margin: 2px 46px 6px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #1a2e26 !important;
}
.ro-qty-sheet .swal2-close {
  width: 44px !important; height: 44px !important; top: 10px !important; right: 10px !important; border-radius: 12px; font-size: 30px !important;
  line-height: 44px !important; color: #646f69 !important; background: #f3efe4 !important;
}
.ro-qty-sheet .swal2-content { text-align: left; padding: 0 !important; }
.ro-qty-sheet button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; font-family: inherit; cursor: pointer; }
.ro-qk-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: #4b5c55; margin-bottom: 12px; }
.ro-qk-stock { background: #e6f4ee; color: #0d7a5f; border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.ro-qk-stock.low { background: #fdf0e1; color: #8a4b00; }
.ro-qk-mode { display: grid; grid-template-columns: 1fr 1fr; background: #f3efe4; border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.ro-qk-mode button { border: 0; background: transparent; height: 38px; border-radius: 9px; font-weight: 600; color: #4b5c55; font-size: 14px; }
.ro-qk-mode .ro-qk-sell.on { background: #fff; color: #0d7a5f; box-shadow: 0 1px 3px rgba(26, 46, 38, .14); }
.ro-qk-mode .ro-qk-return.on { background: #b42318; color: #fff; }
.ro-qk-row { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; margin-bottom: 10px; }
.ro-qk-step { height: 64px; border-radius: 16px; border: 1px solid #e3dccb; background: #fff; font-size: 32px; line-height: 1; color: #1a2e26; }
.ro-qty-sheet .ro-qk-val {
  height: 64px; width: 100%; min-width: 0; text-align: center; font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums;
  border: 2px solid #0d7a5f !important; border-radius: 16px; color: #1a2e26; background: #fff !important; padding: 0 6px; caret-color: #0d7a5f; outline: none; box-shadow: none;
}
.ro-qty-sheet .ro-qk-val::selection { background: #cfe9dd; color: #1a2e26; }
.ro-qk-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.ro-qk-chip { height: 42px; border-radius: 999px; border: 1px solid #e3dccb; background: #faf8f3; font-weight: 600; color: #1a2e26; font-size: 15px; }
.ro-qk-chip.on { background: #e6f4ee; border-color: #0d7a5f; color: #0d7a5f; }
.ro-qk-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ro-qk-key { height: 56px; border-radius: 14px; border: 1px solid #ebe6d9; background: #fff; font-size: 24px; font-weight: 600; color: #1a2e26; }
.ro-qk-key[data-k="del"] { background: #f3efe4; font-size: 20px; color: #4b5c55; }
.ro-qk-key:active, .ro-qk-step:active, .ro-qk-chip:active { background: #e6f4ee; transform: scale(.97); }
.ro-qk-price { margin-top: 10px; }
.ro-qk-price:empty { display: none; }
.ro-qty-sheet .swal2-validationerror { margin: 10px 0 0 !important; border-radius: 10px; font-size: 14px; }
.ro-qty-sheet .swal2-actions { margin: 14px 0 0 !important; width: 100%; }
.ro-qty-sheet .swal2-actions .swal2-confirm {
  width: 100% !important; margin: 0 !important; height: 56px !important; min-height: 56px !important; padding: 0 16px !important;
  font-size: 17px !important; font-weight: 700 !important; border-radius: 14px !important; background: #0d7a5f !important; color: #fff !important; box-shadow: none !important;
}
.ro-qty-sheet .swal2-actions .swal2-confirm.ro-qk-return-btn { background: #b42318 !important; }
.ro-qty-sheet .swal2-actions .swal2-confirm:disabled { opacity: .45; }
@keyframes ro-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ro-sheet-down { to { transform: translateY(100%); } }
@media (max-width: 991.98px) {
  .swal2-popup.ro-qty-sheet {
    position: fixed !important; left: 0; right: 0; bottom: 0; width: 100% !important; max-width: 560px !important; margin: 0 auto !important;  /* beats mobile-responsive.css max-width: 420px !important */
    border-radius: 22px 22px 0 0 !important; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)) !important; max-height: 96vh; overflow-y: auto;
  }
  .swal2-popup.ro-qty-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #d9d2c0; margin: 0 auto 10px; }
  .ro-qty-sheet .swal2-close { top: 18px !important; }
  .swal2-popup.ro-qty-sheet.swal2-show { animation: ro-sheet-up .22s ease-out; }
  .swal2-popup.ro-qty-sheet.swal2-hide { animation: ro-sheet-down .15s ease-in forwards; }
}
@media (max-width: 991.98px) and (max-height: 700px) {
  .ro-qk-step, .ro-qty-sheet .ro-qk-val { height: 54px; }
  .ro-qk-key { height: 46px; }
  .ro-qk-chip { height: 36px; }
  .ro-qk-mode button { height: 34px; }
}

/* ---------------------------------------------------------------- 21. Right panel (server status, daily tasks) */
/* The panel is marked data-bs-theme="dark", so Bootstrap's body colour inside it is translucent white: "Server Status",
   "CPU Usage" and the percentage were invisible and the task list was a dark glass box. Light tokens, white cards. */
body.ro-ui #sidebar-right {
  --bs-body-color: #1a2e26; --bs-body-color-rgb: 26, 46, 38; --bs-body-bg: #fff; --bs-body-bg-rgb: 255, 255, 255;
  --bs-emphasis-color: #1a2e26; --bs-emphasis-color-rgb: 26, 46, 38; --bs-heading-color: #1a2e26;
  --bs-secondary-color: #4b5c55; --bs-tertiary-color: #646f69; --bs-border-color: #ebe6d9;
  color: #1a2e26; background: #fff;
}
body.ro-ui #sidebar-right .text-body { color: #1a2e26 !important; }
body.ro-ui #sidebar-right hr { border: 0 !important; height: 1px; background: #ebe6d9 !important; color: #ebe6d9 !important; opacity: 1 !important; }
body.ro-ui #sidebar-right .p-20px > p.fw-bold { font-size: 11.5px; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .06em; color: #4b5c55 !important; margin-bottom: 10px !important; }
body.ro-ui #sidebar-right .small, body.ro-ui #sidebar-right .GetMemoryUsageL { color: #1a2e26 !important; font-size: 13px; }
body.ro-ui #sidebar-right .GetMemoryUsageL { font-variant-numeric: tabular-nums; font-weight: 700; }
body.ro-ui #sidebar-right .position-relative.w-35px { display: none !important; }   /* the dial repeats the bar, drawn in dark ink */
body.ro-ui #sidebar-right .flex-grow-1.ps-3 { padding-left: 0 !important; }
body.ro-ui #sidebar-right .progress { background: #ece7da !important; height: 6px !important; }
body.ro-ui #sidebar-right .progress-bar { background: #0d7a5f !important; }
body.ro-ui #sidebar-right #task-add-new { background: #0d7a5f !important; border-color: #0d7a5f !important; color: #fff !important; font-weight: 600; padding: 7px 16px !important; }
body.ro-ui #sidebar-right #task-add-new i { color: #fff !important; }
body.ro-ui #sidebar-right .panel {
  width: 100%; background: #fff !important; border: 1px solid #ebe6d9 !important; border-radius: 12px !important; box-shadow: none !important; color: #1a2e26 !important; margin: 0;
}
body.ro-ui #sidebar-right .panel-heading { background: #faf8f3 !important; border-bottom: 1px solid #ebe6d9 !important; border-radius: 12px 12px 0 0 !important; padding: 10px 12px !important; }
body.ro-ui #sidebar-right .panel-title { color: #1a2e26 !important; font-size: 13px !important; font-weight: 700 !important; }
body.ro-ui #sidebar-right .panel-heading-btn { display: none !important; }   /* "remove" made the task list vanish until the next sign-in */
body.ro-ui #sidebar-right .panel-body { background: #fff !important; padding: 10px !important; }
body.ro-ui #sidebar-right #task-home { height: auto !important; max-height: 340px; min-height: 90px; overflow-y: auto; }
body.ro-ui #sidebar-right #task-home:not(:has(.alert))::before {
  content: "No tasks yet. Use Add Task to plan your day."; display: block; padding: 22px 8px; text-align: center; color: #646f69; font-size: 13px;
}
body.ro-ui #sidebar-right #task-home .alert {
  width: 100%; background: #fff !important; color: #1a2e26 !important; border: 1px solid #ebe6d9 !important; border-left: 3px solid #b45309 !important;
  border-radius: 10px !important; padding: 9px 34px 9px 11px !important; font-size: 13px; line-height: 1.45; box-shadow: none !important;
}
body.ro-ui #sidebar-right #task-home .alert.alert-info { border-left-color: #1d4ed8 !important; }
body.ro-ui #sidebar-right #task-home .alert.alert-lime { border-left-color: #0d7a5f !important; }
body.ro-ui #sidebar-right #task-home .alert-link { color: #0d7a5f !important; font-weight: 700; text-decoration: none; }
body.ro-ui #sidebar-right #task-home .badge { font-weight: 600; font-size: 11px; border-radius: 999px; padding: 3px 8px; }
body.ro-ui #sidebar-right #task-home .badge.bg-pink { background: #fdf0e1 !important; color: #8a4b00 !important; }
body.ro-ui #sidebar-right #task-home .badge.bg-blue { background: #e8efff !important; color: #1d4ed8 !important; }
body.ro-ui #sidebar-right #task-home .badge.bg-success { background: #e6f4ee !important; color: #0d7a5f !important; }
body.ro-ui #sidebar-right #task-home .btn-close { top: 50%; transform: translateY(-50%); padding: 10px; opacity: .55; }
body.ro-ui #sidebar-right #d-task-list .panel-body { background: transparent !important; padding: 0 !important; }
body.ro-ui #sidebar-right #d-task-list .toast { width: 100%; background: #fff !important; border: 1px solid #f3d9a8 !important; border-radius: 12px; box-shadow: none !important; color: #1a2e26 !important; }
body.ro-ui #sidebar-right #d-task-list .toast-header { background: #fdf6e8 !important; color: #8a4b00 !important; border-bottom: 1px solid #f3d9a8 !important; border-radius: 12px 12px 0 0; }
body.ro-ui #sidebar-right #d-task-list .toast-header .bg-blue { background: #b45309 !important; }
body.ro-ui #sidebar-right #d-task-list .toast-body { font-size: 13px; color: #1a2e26 !important; }
body.ro-ui #sidebar-right #d-task-list .btn-outline-warning { color: #8a4b00 !important; border-color: #d9a441 !important; background: #fff !important; font-weight: 600; }

/* ---------------------------------------------------------------- 22. Stock status (Stock Maintenance list) */
/* pages-stocks.js marks rows instead of painting cells solid blue / green: soft tints, ink text, the figure that is
   wrong in bold colour (Qty = 6th column, Price = 7th), a coloured edge on the first cell and a legend. */
body.ro-ui .app-content table.table > tbody > tr.ro-stock-neg > * { background: #fdecea !important; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-out > * { background: #f3f1eb !important; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-noprice > *,
body.ro-ui .app-content table.table > tbody > tr.ro-stock-belowcost > * { background: #fdf3e1 !important; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-neg.ro-stock-noprice > *,
body.ro-ui .app-content table.table > tbody > tr.ro-stock-neg.ro-stock-belowcost > * { background: #fdecea !important; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-neg > td:first-child { box-shadow: inset 3px 0 0 #b42318 !important; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-out > td:first-child { box-shadow: inset 3px 0 0 #8c968f !important; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-noprice:not(.ro-stock-neg):not(.ro-stock-out) > td:first-child,
body.ro-ui .app-content table.table > tbody > tr.ro-stock-belowcost:not(.ro-stock-neg):not(.ro-stock-out) > td:first-child { box-shadow: inset 3px 0 0 #c27a12 !important; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-neg > td:nth-child(6) { color: #b42318 !important; font-weight: 700; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-out > td:nth-child(6) { color: #4b5c55 !important; font-weight: 700; }
body.ro-ui .app-content table.table > tbody > tr.ro-stock-noprice > td:nth-child(7),
body.ro-ui .app-content table.table > tbody > tr.ro-stock-belowcost > td:nth-child(7) { color: #8a4b00 !important; font-weight: 700; }
body.ro-ui .app-content table.table > tbody > tr[class*="ro-stock-"]:hover > * { filter: brightness(.98); }
.ro-stock-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 10px; font-size: 12.5px; color: #4b5c55; }
.ro-stock-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ro-stock-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border-left: 3px solid; }
.ro-stock-legend .neg::before { background: #fdecea; border-color: #b42318; }
.ro-stock-legend .out::before { background: #f3f1eb; border-color: #8c968f; }
.ro-stock-legend .warn::before { background: #fdf3e1; border-color: #c27a12; }

/* ================================================================ 23. Till product tiles (2026-11-02b) ===== */
/* One flat white card per product (was a card inside a card, a big no-camera placeholder, an orange focus box,
   brown typewriter "Check Cost" and coloured underline bars). Markup: _roTileHtml() in pages-allocations3_new.js.
   No photo = coloured initials badge (colour follows the category); stock pill only when out / below zero. */
body .pos #projects {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
  gap: 10px !important; padding: 4px 2px 14px !important; align-content: start; align-items: stretch;
}
body .pos #projects > :not(.product-container) { grid-column: 1 / -1; }
/* desktop: a gutter for the up/down scroll arrows so they never cover a tile's status pill */
@media (min-width: 992px) { body .pos #projects { padding-right: 54px !important; } }
body .pos #projects > .product-container.ro-tile {
  width: auto !important; max-width: none !important; min-width: 0; min-height: 0 !important; margin: 0 !important; flex: none !important;
  display: flex !important; flex-direction: column; position: relative; overflow: hidden; cursor: pointer;
  background: #fff !important; color: var(--ro-text, #1a2e26);
  border: 1px solid var(--ro-border, #ebe6d9) !important; border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(26, 46, 38, .05) !important; outline: none !important; transform: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease !important;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
/* the category chips hide tiles with Bootstrap's .d-none - it must beat the display:flex above */
body .pos #projects > .product-container.ro-tile.d-none { display: none !important; }
/* a category with no products: say so instead of a blank area (browsers without :has() just show the blank) */
body .pos #projects:has(> .ro-tile):not(:has(> .ro-tile:not(.d-none)))::before {
  content: "No products in this category yet"; grid-column: 1 / -1; padding: 48px 16px; text-align: center;
  font: 500 14px/1.4 var(--ro-font, inherit); color: var(--ro-text-3, #646f69);
}
@media (any-hover: hover) {
  body .pos #projects > .product-container.ro-tile:hover {
    transform: none; border-color: rgba(13, 122, 95, .45) !important; box-shadow: 0 6px 16px rgba(13, 122, 95, .12) !important;
  }
}
body .pos #projects > .product-container.ro-tile:active { transform: scale(.97) !important; box-shadow: 0 1px 2px rgba(26, 46, 38, .05) !important; }
body .pos #projects > .product-container.ro-tile:focus { box-shadow: 0 1px 2px rgba(26, 46, 38, .05) !important; }
body .pos #projects > .product-container.ro-tile:focus-visible {
  border-color: var(--ro-primary, #0d7a5f) !important; box-shadow: 0 0 0 3px rgba(13, 122, 95, .28) !important;
}
body .pos #projects > .ro-tile > .product {
  display: flex !important; flex-direction: column; flex: 1 1 auto; height: auto !important; width: 100%;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  transform: none !important; color: inherit !important; text-decoration: none !important;
}
/* photo (only when the product has a real one) */
body .pos #projects > .ro-tile .img { display: none !important; }
body .pos #projects > .ro-tile.ro-has-img .img {
  display: flex !important; align-items: center; justify-content: center; height: auto !important; aspect-ratio: 16 / 10;
  background: #faf8f3 !important; border-bottom: 1px solid var(--ro-border, #ebe6d9) !important; overflow: hidden;
}
body .pos #projects > .ro-tile.ro-has-img .img img {
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  object-fit: contain; padding: 10px; display: block;
}
body .pos #projects > .ro-tile .text {
  display: flex !important; flex-direction: column !important; flex: 1 1 auto; gap: 0 !important;
  padding: 12px 12px 11px !important; background: transparent !important; position: static !important;
}
body .pos #projects > .ro-tile .ro-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
body .pos #projects > .ro-tile.ro-has-img .ro-tile-mono { display: none; }
body .pos #projects > .ro-tile.ro-has-img .ro-tile-top { position: absolute; top: 8px; right: 8px; margin: 0; }
body .pos #projects > .ro-tile .ro-tile-mono {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 12px; font: 700 15px/1 var(--ro-font, inherit); letter-spacing: .02em;
  background: hsl(var(--ro-h, 160), 52%, 92%); color: hsl(var(--ro-h, 160), 48%, 26%);
}
body .pos #projects > .ro-tile .ro-tile-stock {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 700 12px/1 var(--ro-font, inherit); font-variant-numeric: tabular-nums; white-space: nowrap;
  background: #f0ede4; color: #4b5c55;
}
body .pos #projects > .ro-tile.ro-neg .ro-tile-stock { background: #fdecea; color: #b42318; }
body .pos #projects > .ro-tile .text .title {
  display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; overflow: hidden !important;
  font: 600 15px/1.3 var(--ro-font, inherit) !important; color: var(--ro-text, #1a2e26) !important;
  min-height: 2.6em; margin: 0 !important; letter-spacing: -.005em; word-break: break-word;
}
body .pos #projects > .ro-tile .text .desc {
  display: block !important; -webkit-line-clamp: unset !important; overflow: hidden !important; white-space: nowrap; text-overflow: ellipsis;
  font: 500 12px/1.3 var(--ro-font, inherit) !important; color: var(--ro-text-3, #646f69) !important; margin: 3px 0 0 !important;
}
body .pos #projects > .ro-tile .text .price {
  display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 6px;
  margin: auto 0 0 !important; padding-top: 10px; font: 800 18px/1.15 var(--ro-font, inherit) !important;
  font-variant-numeric: tabular-nums; color: var(--ro-text, #1a2e26) !important; letter-spacing: -.01em;
}
body .pos #projects > .ro-tile .ro-tile-flag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  font: 700 11px/1 var(--ro-font, inherit); letter-spacing: 0; background: #fdf3e1; color: #8a4b00; white-space: nowrap;
}
body .pos #projects > .ro-tile.ro-out { background: #faf9f5 !important; }
body .pos #projects > .ro-tile.ro-out .text .title, body .pos #projects > .ro-tile.ro-out .text .price { color: #4b5c55 !important; }
body .pos #projects > .ro-tile.ro-out .ro-tile-mono { filter: grayscale(1); opacity: .7; }
/* phones and tablets: compact tiles, photos as a shorter strip */
@media (max-width: 991.98px) {
  body .pos #projects { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 8px !important; padding: 8px !important; }
  body .pos #projects > .ro-tile .text { padding: 10px 10px 10px !important; }
  body .pos #projects > .ro-tile .ro-tile-top { margin-bottom: 8px; }
  body .pos #projects > .ro-tile .ro-tile-mono { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
  body .pos #projects > .ro-tile .text .title { font-size: 14px !important; }
  body .pos #projects > .ro-tile .text .price { font-size: 16px !important; padding-top: 8px; }
  body .pos #projects > .ro-tile.ro-has-img .img { aspect-ratio: 16 / 9; }
}
@media (max-width: 420px) {
  body .pos #projects { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* 24. Change due (2026-11-02c) ---------------------------------------------------------------------------------
   After a cash sale with change the big amount becomes a flashing red "give change" button: tap it or press Enter.
   The till page forces #base-price green with !important and Fast mode stops every animation, which together hid it.
   This flash is a hard 2-step colour swap (no transitions, ~2 repaints a second), so it stays on in Fast mode too;
   at under 1 flash a second it is well below the 3-per-second photosensitivity limit. */
@keyframes ro-change-flash { 0%, 100% { background-color: #d92d20; color: #ffffff; } 50% { background-color: #fee4e2; color: #b42318; } }
body #base-price.ro-change-due {
  color: #ffffff !important; background: #d92d20; border-radius: 12px; padding: 4px 14px !important; margin-top: 2px;
  text-shadow: none !important; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(180, 35, 24, .6);
  animation: ro-change-flash 1.1s steps(1, end) infinite !important;
}
body #base-price.ro-change-due:hover { box-shadow: 0 10px 24px -8px rgba(180, 35, 24, .75); }
body #base-price.ro-change-due:active { transform: scale(.98); }
body #base-price.ro-change-due:focus-visible { outline: 3px solid #fda29b !important; outline-offset: 2px; }
body .ro-change-row { flex-wrap: wrap; row-gap: 4px; }
body .ro-change-row > span:first-child { color: #b42318 !important; font-weight: 700 !important; letter-spacing: .04em !important; }
body .ro-change-row > span:first-child, body div:has(> #base-price.ro-change-given) > span:first-child { white-space: nowrap; }
/* the change amounts per currency sit on the dark green change card: white, bold; dimmed once handed over */
body #currency-table input[id^="change_"] { color: #ffffff !important; font-weight: 700; font-size: 16px; }
body #currency-table input[id^="change_"]:disabled { color: rgba(255, 255, 255, .7) !important; font-weight: 500; }
/* phones / tablets: the cart button flashes while change is waiting */
body.ro-change-pending .pos-mobile-sidebar-toggler { animation: ro-change-flash 1.1s steps(1, end) infinite !important; }body .ro-change-row:has(#base-price.ro-change-given) > span:first-child { color: var(--ro-primary, #0d7a5f) !important; font-weight: 700 !important; }
body #base-price.ro-change-given { opacity: .55; }
/* 25. Profile (user account) menu (2026-11-02c) -----------------------------------------------------------------------
   Its items sit one level below the sidebar's ".menu > .menu-item" rules, so they kept the dark theme's white captions on
   the white sidebar: icons with no visible text, and the two switches looked dead. Now a small card: ink captions,
   tinted icon tiles, Preferences as real On/Off switches, Exit set apart in red. */
body.ro-ui #appSidebarProfileMenu {
  margin: 0 0 10px; padding: 4px; background: #ffffff; border: 1px solid var(--ro-border); border-radius: 14px;
  box-shadow: 0 12px 28px -18px rgba(16, 40, 30, .35);
}
body.ro-ui #appSidebarProfileMenu .menu-item { padding: 0 !important; margin: 0; }
body.ro-ui #appSidebarProfileMenu .menu-divider { display: none !important; }
body.ro-ui #appSidebarProfileMenu .menu-link {
  display: flex !important; align-items: center; gap: 8px; min-height: 42px; padding: 7px 8px !important; margin: 1px 0;
  border-radius: 10px; color: var(--ro-text) !important; background: transparent !important; text-decoration: none;
}
body.ro-ui #appSidebarProfileMenu .menu-link:hover { background: var(--ro-hover) !important; }
body.ro-ui #appSidebarProfileMenu .menu-link:focus-visible { outline: 2px solid var(--ro-primary) !important; outline-offset: 1px; }
body.ro-ui #appSidebarProfileMenu .menu-link .menu-text {
  color: var(--ro-text) !important; font-size: 13.5px; font-weight: 500; line-height: 1.25; flex: 1 1 auto; min-width: 0;
  white-space: normal; opacity: 1 !important;
}
body.ro-ui #appSidebarProfileMenu .menu-link .menu-icon {
  width: 28px; height: 28px; min-width: 28px; margin: 0 !important; border-radius: 8px; font-size: 13px;
  display: flex; align-items: center; justify-content: center; background: var(--ro-surface-3); color: var(--ro-text-2) !important;
}
body.ro-ui #appSidebarProfileMenu .menu-link:hover .menu-icon { background: var(--ro-primary-soft); color: var(--ro-primary) !important; }
body.ro-ui #appSidebarProfileMenu .ro-pm-head {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ro-text-3); padding: 6px 10px 2px;
}
body.ro-ui #appSidebarProfileMenu .ro-pm-divider { height: 1px; background: var(--ro-border); margin: 6px 6px; }
body.ro-ui #appSidebarProfileMenu .ro-pm-title { display: block; font-weight: 600; }
body.ro-ui #appSidebarProfileMenu .ro-pm-hint { display: block; font-size: 11.5px; font-weight: 400; color: var(--ro-text-3); margin-top: 1px; }
body.ro-ui #appSidebarProfileMenu .ro-pm-pill {
  position: relative; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 999px; background: #cfd8d4; transition: background-color .15s;
}
body.ro-ui #appSidebarProfileMenu .ro-pm-pill::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s;
}
body.ro-ui #appSidebarProfileMenu .is-on .ro-pm-pill { background: var(--ro-primary); }
body.ro-ui #appSidebarProfileMenu .is-on .ro-pm-pill::after { transform: translateX(14px); }
body.ro-ui #appSidebarProfileMenu .is-on .menu-icon { background: var(--ro-primary-soft); color: var(--ro-primary) !important; }
body.ro-ui #appSidebarProfileMenu .ro-pm-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.ro-ui #appSidebarProfileMenu .menu-item:has(> #exit-btn) { border-top: 1px solid var(--ro-border); margin-top: 6px; padding-top: 6px !important; }
body.ro-ui #appSidebarProfileMenu #exit-btn .menu-text { color: #b42318 !important; font-weight: 600; }
body.ro-ui #appSidebarProfileMenu #exit-btn .menu-icon { background: #fee4e2; color: #b42318 !important; }
body.ro-ui #appSidebarProfileMenu #exit-btn:hover { background: #fef3f2 !important; }
/* 5.7.0: Bootstrap's light-blue outline button (View on Production / Transfers lists) was 1.9:1 on cream - readable teal */
body.ro-ui .btn-outline-info:not(:hover):not(:active):not(.active) { color: #0b6178 !important; border-color: #0b6178 !important; }
body.ro-ui .btn-outline-info:hover, body.ro-ui .btn-outline-info:active, body.ro-ui .btn-outline-info.active { color: #fff !important; background-color: #0b6178 !important; border-color: #0b6178 !important; }
