/* ======================================================================================
   Tenantz shared look (2026-11-03) -- the same "ifx" design as Solitaires (solitaires/Solitaires.WebApp/wwwroot/css).
   Built from: Solitaires custom.css "Buttons: one look" block + Solitaires app-ui.css core (page shell, tables,
   tags, details, side menu, top bar, popups, pager, title bar, action colours, forms, cards), its comfort palette,
   solid status badges and shared empty states. Loaded LAST by the Tenantz layouts so it wins over the theme.
   Tenantz page-specific styles are appended at the end of this file -- never in a page <style> block.
   ====================================================================================== */

/* ===== Buttons: one look across the whole app =====
   Same corners, weight, borders, hover and focus ring on every page. Size comes only from the Bootstrap
   size class (btn-sm for toolbars, panel actions and form actions; btn-xs inside tables; default for
   modals). No page should give .btn its own radius / min-width / weight -- add it here instead. */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-xs, .btn-group-xs > .btn { border-radius: 5px; }
.btn-lg, .btn-group-lg > .btn { border-radius: 8px; }

.btn-primary { font-weight: 600; }

/* icon + text: same small gap everywhere (CSS can't see the text node, so icon-only buttons get it too -- harmless) */
.btn > .fa:first-child,
.btn > .fas:first-child,
.btn > .far:first-child { margin-inline-end: 4px; }

.btn-white, .btn-default {
    background: #fff;
    border-color: #dfe3e8;
    color: #2f3a45;
}

    .btn-white:hover, .btn-white:focus, .btn-default:hover, .btn-default:focus,
    .open > .dropdown-toggle.btn-white, .open > .dropdown-toggle.btn-default {
        background: #f7f8fa;
        border-color: #cfd5dc;
        color: #2f3a45;
    }

.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(77, 130, 191, .25);
}

/* style.css gives any div whose class starts with "btn" (btn-group, btn-toolbar) a drop shadow, so a
   dropdown group looked raised next to the flat buttons beside it. Groups are flat like single buttons. */
div[class^="btn"] { box-shadow: none; }

/* inside flex rows the gap does the spacing, not the old 3px side margins */
.ifx-actions > .btn-group,
.ifx-form-actions > .btn-group,
.item-toolbar > .btn-group { margin: 0; }

/* =====================================================================================================
   app-ui.css -- shared look for the list / details / form pages. Loaded by _Layout_Admin after the
   theme, so every page gets it automatically. Add new or updated page styles HERE, not in a view.
   Spacing 4/8/16/24, primary #4D82BF, colour only where it means something.
   Buttons (radius, weight, white/default, focus ring) live in custom.css.
   ===================================================================================================== */

/* ---------- page shell: wrap the page in .ifx-page ---------- */
.ifx-page .ifx-card { background: #fff; border-radius: 4px; }
/* 2026-11-12: Tenantz headers look like the Solitaires invoice list -- title (and count) on the first line, the buttons
   on the line under it starting from the same side (right in Arabic), «create» first (see the order:-1 rule below). */
.ifx-page .ifx-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid #eef0f2; }
.ifx-page .ifx-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ifx-page .ifx-title h5 { margin: 0; font-size: 14px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-count { font-size: 12px; color: #6b7680; white-space: nowrap; }
.ifx-page .ifx-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- search row ---------- */
.ifx-page .ifx-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; }
.ifx-page .ifx-search-box { position: relative; flex: 1 1 220px; max-width: 420px; }
.ifx-page .ifx-search-box .fa { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #a0a9b4; pointer-events: none; }
.ifx-page .ifx-search-box .form-control { height: 30px; padding-right: 32px; font-size: 13px; }
.ifx-page .ifx-search select.form-control { height: 30px; width: auto; min-width: 160px; font-size: 13px; padding: 4px 8px; }

/* ---------- tables ---------- */
.ifx-page .ifx-table { margin: 0; }
.ifx-page .ifx-table > thead > tr > th { background: #f8f9fb; color: #6b7680; font-size: 12px; font-weight: 600; border-bottom: 1px solid #e7eaec; border-top: 0; padding: 8px 16px; white-space: nowrap; }
.ifx-page .ifx-table > tbody > tr > td { padding: 8px 16px; border-top: 1px solid #f0f2f4; vertical-align: middle; }
.ifx-page .ifx-table .ifx-col-code { width: 96px; }
.ifx-page .ifx-table .ifx-col-num { text-align: left; direction: ltr; font-variant-numeric: tabular-nums; }
.ifx-page .ifx-name { color: #2f3a45; }
.ifx-page .ifx-muted { color: #6b7680; font-size: 12px; }
.ifx-page .ifx-zero { color: #c5cbd1; }
.ifx-page .ifx-neg,
.ifx-page .ifx-field dd.ifx-neg { color: #d9534f; }
.ifx-page .ifx-table > tbody > tr.ifx-selected > td { background: #eef4fb !important; }
.ifx-page .ifx-table > tbody > tr.ifx-selected > td:first-child { box-shadow: inset -3px 0 0 #4D82BF; }

/* totals rows under a table: light, label at the start, the grand total set apart by weight and a top line */
.ifx-page .ifx-table > tfoot > tr.ifx-sum-row > th { background: #f8f9fb; color: #2f3a45; font-size: 13px; font-weight: 600; border-top: 1px solid #e7eaec; padding: 8px 16px; }
.ifx-page .ifx-table > tfoot > tr.ifx-sum-row > th:first-child,
.ifx-page .ifx-table > tfoot > tr.ifx-sum-row > th.ifx-sum-label { color: #6b7680; font-weight: 600; }
.ifx-page .ifx-table > tfoot > tr.ifx-sum-sel > th { background: #f3f7fc; }
.ifx-page .ifx-table > tfoot > tr.ifx-sum-final > th { background: #fff; border-top: 2px solid #2f3a45; font-size: 14px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-num { direction: ltr; font-variant-numeric: tabular-nums; }
.ifx-page .ifx-strong-num { font-weight: 700; }
body.dark-mode .ifx-page .ifx-table > tfoot > tr.ifx-sum-row > th { background: rgba(255, 255, 255, .04); color: #e2e8f0; border-color: #334155; }
body.dark-mode .ifx-page .ifx-table > tfoot > tr.ifx-sum-final > th { background: transparent; border-top-color: #cbd5e1; }

/* ---------- chips and tags ---------- */
.ifx-page .ifx-code { display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 4px; background: #f1f3f5; color: #4a5562; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; direction: ltr; }
/* small status tag: neutral by default, blue only for "on" */
.ifx-page .ifx-tag { display: inline-block; padding: 0 8px; border-radius: 10px; background: #f1f3f5; color: #6b7680; font-size: 12px; line-height: 20px; white-space: nowrap; }
.ifx-page .ifx-tag-on { background: #eaf1fa; color: #2f6aa8; }

/* metal / status tags: neutral tag + small coloured dot; colour fills only for exceptions */
.it-tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 10px; background: #f1f3f5; color: #4a5562; font-size: 11px; line-height: 18px; white-space: nowrap; }
.it-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.it-dot-gold { background: #d4a017; }
.it-dot-silver { background: #a0a9b4; }
.it-dot-other { background: #4D82BF; }
.it-tag-warn { background: #fff4e0; color: #9a5b00; }
.it-tag-stop { background: #fdecea; color: #b42318; }
.it-tag-draft { background: #eaf1fa; color: #2f6aa8; }
.it-tag-ok { background: #e7f6ee; color: #1e7a4c; }
.it-tag-purple { background: #f1ecfa; color: #6a44b0; }

/* the figures worth colour */
.it-chip { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 20px; direction: ltr; }
.it-chip-gold { background: #fdf5e1; color: #8a6100; }
.it-price-sale { color: #1e8e5a; font-weight: 700; }
.it-price-cost { color: #2f3a45; font-weight: 600; }

/* editable grid (bulk entry tables): inputs fill the cells, the "add" row is lightly tinted */
.ifx-page .ifx-grid > tbody > tr > td { padding: 4px 8px; }
.ifx-page .ifx-grid .form-control { height: 30px; font-size: 13px; }
.ifx-page .ifx-grid tr.ifx-new-row > td { background: #f5f9fe; }
.ifx-page .ifx-grid .fa-times-circle { color: #c0392b; }
.ifx-page .ifx-grid .fa-plus-circle { color: #4D82BF; }
.ifx-page .ifx-grid .fa-plus-circle.disabled { color: #c5cbd1; }
body.dark-mode .ifx-page .ifx-grid tr.ifx-new-row > td { background: rgba(77, 130, 191, .12); }

/* count badge on a button or menu item (red only because it means "needs attention") */
.ifx-badge { display: inline-block; min-width: 18px; margin-inline-start: 4px; padding: 0 6px; border-radius: 10px; background: #d9534f; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; vertical-align: 1px; }
.btn-group > .ifx-badge-dot { position: absolute; top: -6px; left: -6px; z-index: 2; margin: 0; }
/* tiny "needs role X" note inside a menu item */
.ifx-role-tag { float: left; margin-top: 2px; padding: 0 6px; border-radius: 8px; background: #f1f3f5; color: #6b7680; font-size: 9px; line-height: 16px; }
/* dropdown search results under a search box */
.ifx-pop { position: absolute; z-index: 50; width: 100%; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid #e5e6e7; border-radius: 4px; box-shadow: 0 4px 12px rgba(16, 24, 40, .12); }
.ifx-pop.ifx-pop-pad { padding: 8px 0; }
.ifx-page .ifx-search-wide { position: relative; padding: 16px 16px 0; }
.ifx-page .ifx-search-wide + .ifx-search { padding-top: 8px; }
.ifx-page .ifx-alert { margin: 0 16px 8px; }
body.dark-mode .ifx-role-tag { background: rgba(255, 255, 255, .08); color: #cbd5e1; }
body.dark-mode .ifx-pop { background: #1e293b; border-color: #334155; }

/* ---------- empty state and pager ---------- */
.ifx-page .ifx-empty { padding: 48px 16px; text-align: center; color: #6b7680; }
.ifx-page .ifx-empty > .fa { font-size: 32px; color: #c5cbd1; }
.ifx-page .ifx-empty p { margin: 8px 0 16px; font-size: 14px; }
.ifx-page .ifx-pager { display: flex; justify-content: flex-end; padding: 8px 16px; }
.ifx-page .ifx-pager:empty { display: none; }
/* flex keeps the pager in reading order (first page at the start) */
.ifx-page .ifx-pager .pagination { display: flex; margin: 0; float: none !important; }
.ifx-page .ifx-pager .pagination > li > a { float: none; }

/* ---------- details: label / value rows ---------- */
.ifx-page .ifx-fields { margin: 0; padding: 8px 16px 16px; }
.ifx-page .ifx-field { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.ifx-page .ifx-field:last-child { border-bottom: 0; }
.ifx-page .ifx-field dt { font-size: 12px; font-weight: 400; color: #6b7680; }
.ifx-page .ifx-field dd { margin: 0; color: #2f3a45; overflow-wrap: anywhere; }
.ifx-page .ifx-strong { font-size: 16px; font-weight: 600; }
.ifx-page .ifx-section { margin: 0; padding: 16px 16px 4px; font-size: 12px; font-weight: 700; color: #2f3a45; border-top: 1px solid #eef0f2; }
.ifx-page .ifx-btn-danger { color: #c0392b; }
.ifx-page .ifx-btn-danger:hover { background: #fdf0ee; border-color: #f0c4bd; color: #a5281b; }

/* ===== Side menu (Features/Shared/Views/_Navigation.cshtml, inspinia #side-menu) -- new theme =====
   Dark slate panel, rounded items, soft hover, the open section tinted, the current page a blue pill.
   #side-menu (id) outranks inspinia's ".nav > li..." and RTL "body.rtls ..." rules without !important. */
.navbar-default.navbar-static-side { background: #1e293b; }
/* inspinia fills the sidebar's full height with the body colour -- keep it the same slate (light pages sit on #page-wrapper) */
body:not(.dark-mode) { background-color: #1e293b; }
#side-menu { padding-bottom: 24px; }
#side-menu > li.nav-header { padding: 22px 16px 18px; background: #172033; background-image: none; border-bottom: 1px solid rgba(255, 255, 255, .06); }
#side-menu > li.nav-header .profile-element a,
#side-menu > li.nav-header .profile-element strong { color: #e2e8f0; }
#side-menu > li.nav-header .text-muted { color: #94a3b8; }
#side-menu > li { margin: 0; border: 0; }
#side-menu > li > a { margin: 2px 8px; padding: 10px 12px; border-radius: 8px; color: #cbd5e1; font-weight: 500; transition: background .15s ease, color .15s ease; }
#side-menu > li > a > .fa:first-child { width: 20px; text-align: center; color: #94a3b8; }
#side-menu > li > a:hover,
#side-menu > li > a:focus { background: rgba(255, 255, 255, .06); color: #fff; }
#side-menu > li > a:hover > .fa:first-child { color: #fff; }
#side-menu > li.active { border: 0; background: transparent; }
#side-menu > li.active > a { background: rgba(77, 130, 191, .2); color: #fff; }
#side-menu > li.active > a > .fa:first-child { color: #8fb8e8; }
#side-menu .nav-second-level,
#side-menu .nav-third-level { padding: 2px 0 6px; background: transparent; }
#side-menu .nav-second-level li a,
#side-menu .nav-third-level li a { margin: 1px 8px; padding: 7px 12px; padding-inline-start: 40px; border-radius: 6px; color: #94a3b8; font-size: 13px; font-weight: 400; }
#side-menu .nav-third-level li a { padding-inline-start: 52px; }
#side-menu .nav-second-level li a:hover,
#side-menu .nav-third-level li a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
#side-menu .nav-second-level li.active > a,
#side-menu .nav-third-level li.active > a { background: #4D82BF; color: #fff; font-weight: 600; }
#side-menu .nav-second-level li a .fa { width: 16px; color: inherit; opacity: .8; }
/* Tenantz runs metisMenu 3 (Solitaires has 2): a section opens with .mm-show, the open <li> gets .mm-active, and
   metisMenu.css (show / hide + slide) was never loaded -- its rules here. The arrow turns by rotation: the theme
   draws "down" for a server-selected .active section and "start" otherwise, whatever its open state. */
#side-menu .mm-collapse:not(.mm-show) { display: none; }
body.mini-navbar #side-menu > li:hover > .mm-collapse { display: block; } /* icons-only menu: the section still flies out on hover */
#side-menu .mm-collapsing { position: relative; height: 0; overflow: hidden; transition: height .35s ease, visibility .35s ease; }
#side-menu > li > a > .fa.arrow { transition: transform .2s ease; }
#side-menu > li.mm-active:not(.active) > a > .fa.arrow { transform: rotate(-90deg); }
#side-menu > li.active:not(.mm-active) > a > .fa.arrow { transform: rotate(90deg); }
#side-menu .label,
#side-menu .badge { border-radius: 999px; }
/* collapsed (icons only) menu: centred icons, the fly-out section in the same slate */
body.mini-navbar #side-menu > li > a { margin: 2px 6px; padding: 12px 0; text-align: center; }
body.mini-navbar #side-menu .nav-second-level { border-radius: 0 8px 8px 0; background: #1e293b; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
body.mini-navbar #side-menu .nav-second-level li a { padding-inline-start: 14px; }

/* ===== Top bar (Features/Shared/_TopNavbar.cshtml) -- new theme: white bar, soft round icon buttons ===== */
.ifx-topbar .navbar-static-top { min-height: 56px; margin: 0; border-bottom: 1px solid #e7eaec; background: #fff; }
.ifx-topbar .ifx-topbar-toggle { display: inline-flex; float: right; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 9px 16px 9px 8px; padding: 0; border: 0; border-radius: 8px; background: #eaf2fb; color: #4D82BF; font-size: 16px; }
.ifx-topbar .ifx-topbar-toggle:hover { background: #4D82BF; color: #fff; }
.ifx-topbar .ifx-topbar-hello { padding-top: 4px; }
.ifx-topbar .ifx-topbar-hello h3.navbar-text { margin-top: 14px; margin-bottom: 0; font-size: 14px; font-weight: 500; }
.ifx-topbar .ifx-topbar-muted { color: #6b7680; }
.ifx-topbar .ifx-topbar-user { font-weight: 700; color: #2f6aa8; }
.ifx-topbar .ifx-topbar-est { font-weight: 600; color: #2f3a45; }
.ifx-topbar .ifx-topbar-badge { margin-inline-start: 6px; padding: 2px 10px; border-radius: 999px; background: #fdecef; color: #c0392b; font-size: 12px; font-weight: 700; }
.ifx-topbar .ifx-topbar-badge:empty { display: none; }
.ifx-topbar .navbar-top-links > li > a { color: #4a5560; }
/* the right-sidebar toggle that used to sit last is gone (2026-11-03): inspinia's 40px/20px end margin on the
   last item was for it -- keep one even 12px gap from the edge instead */
body .ifx-topbar .navbar-top-links li:last-child,
body.rtls .ifx-topbar .navbar-top-links li:last-child { margin-left: 12px; margin-right: 0; }
html[dir="ltr"] body .ifx-topbar .navbar-top-links li:last-child { margin-left: 0; margin-right: 12px; }
/* dark-mode switch and settings: same round icon button as the bell */
.ifx-topbar .navbar-top-links > li > a.ifx-topbar-icon,
.ifx-topbar .navbar-top-links > li > a.count-info,
.ifx-topbar .navbar-top-links > li > a.dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; margin: 9px 3px; padding: 0 10px; border-radius: 50%; background: #f4f5f7; color: #4a5560; }
.ifx-topbar .navbar-top-links > li > a.ifx-topbar-icon:hover,
.ifx-topbar .navbar-top-links > li > a.count-info:hover,
.ifx-topbar .navbar-top-links > li > a.dropdown-toggle:hover { background: #eaf2fb; color: #2f6aa8; }
.ifx-topbar .navbar-top-links > li > a.count-info .label { top: 2px; right: 2px; padding: 2px 5px; border-radius: 999px; font-size: 10px; }
.ifx-topbar .navbar-top-links .dropdown-menu { border: 1px solid #e7eaec; border-radius: 10px; box-shadow: 0 10px 30px rgba(16, 24, 40, .15); }
.ifx-topbar .navbar-top-links .welcome-message { color: #6b7680; }
body.dark-mode .ifx-topbar .navbar-static-top { background: #1e293b; border-color: #334155; }
body.dark-mode .ifx-topbar .ifx-topbar-est { color: #e2e8f0; }
body.dark-mode .ifx-topbar .navbar-top-links > li > a.ifx-topbar-icon,
body.dark-mode .ifx-topbar .navbar-top-links > li > a.count-info,
body.dark-mode .ifx-topbar .navbar-top-links > li > a.dropdown-toggle { background: rgba(255, 255, 255, .06); color: #cbd5e1; }
body.dark-mode .navbar-default.navbar-static-side { background: #0f172a; }
body.dark-mode #side-menu > li.nav-header { background: #0b1222; }

/* ===== Popups (all inspinia ".modal.inmodal" popups + the delete confirmation ".modal.ifx-confirm") =====
   One look app-wide: rounded white card, the icon in a soft circle (red for delete / trash, blue otherwise),
   bold title, muted text, light body, actions in a row. Replaces the old big grey icon + bounce. */
.modal.inmodal .modal-content,
.modal.ifx-confirm .modal-content { border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px rgba(15, 23, 42, .2); }
.modal.inmodal .modal-header { padding: 24px 24px 16px; border-bottom: 1px solid #eef0f2; background: #fff; text-align: center; }
.modal.inmodal .modal-header .modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: #eaf2fb; color: #4D82BF; font-size: 28px; text-shadow: none; }
.modal.inmodal .modal-header .modal-icon.fa-trash,
.modal.inmodal .modal-header .modal-icon.fa-trash-o { background: #fdecef; color: #c0392b; }
.modal.inmodal .modal-header .modal-title { margin: 0; font-size: 18px; font-weight: 700; color: #2f3a45; }
.modal.inmodal .modal-header small,
.modal.inmodal .modal-header .font-bold { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: #6b7680; }
.modal.inmodal .modal-body { padding: 16px 24px; background: #fafbfc; color: #4a5560; font-size: 13px; line-height: 1.8; }
.modal.inmodal .modal-footer,
.modal.ifx-confirm .modal-footer { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 8px; padding: 12px 24px; border-top: 1px solid #eef0f2; background: #fff; }
.modal.inmodal .modal-footer .btn + .btn,
.modal.ifx-confirm .modal-footer .btn + .btn { margin: 0; }
.modal.ifx-confirm .modal-body { padding: 28px 24px 20px; background: #fff; text-align: center; }
.modal.ifx-confirm .ifx-confirm-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: #fdecef; color: #c0392b; font-size: 26px; }
.modal.ifx-confirm h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #2f3a45; }
.modal.ifx-confirm p { margin: 0; font-size: 13px; color: #6b7680; }
body.dark-mode .modal.inmodal .modal-header,
body.dark-mode .modal.inmodal .modal-footer,
body.dark-mode .modal.ifx-confirm .modal-body,
body.dark-mode .modal.ifx-confirm .modal-footer { background: #1e293b; border-color: #334155; }
body.dark-mode .modal.inmodal .modal-body { background: #0f172a; color: #cbd5e1; }
body.dark-mode .modal.inmodal .modal-header .modal-title,
body.dark-mode .modal.ifx-confirm h4 { color: #e2e8f0; }

/* ===== Pager (shared "pagger-template"): pill buttons, current page solid blue, disabled faded ===== */
.pagination.ifx-pagination { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; float: none !important; }
.pagination.ifx-pagination > li > a { float: none; min-width: 32px; margin: 0; padding: 4px 10px; border: 1px solid #dfe3e8 !important; border-radius: 6px !important; background: #fff; color: #4a5560; font-size: 12px; text-align: center; cursor: pointer; }
.pagination.ifx-pagination > li > a:hover { background: #eaf2fb; border-color: #c6dbf1 !important; color: #2f6aa8; }
.pagination.ifx-pagination > li.active > a,
.pagination.ifx-pagination > li.active > a:hover { background: #4D82BF; border-color: #4D82BF !important; color: #fff; font-weight: 600; }
.pagination.ifx-pagination > li.disabled > a,
.pagination.ifx-pagination > li.disabled > a:hover { background: #fff; color: #c5cbd1; cursor: default; }
body.dark-mode .pagination.ifx-pagination > li > a { background: transparent; border-color: #334155 !important; color: #cbd5e1; }

/* ===== Page title + breadcrumb (shared _Breadcrumb) ===== */
/* title on top, the trail right under it on the same edge. The separator is a plain "‹" character -- an icon-font
   code showed as an empty box (this app loads Font Awesome 5, whose font name differs). */
.ifx-crumbs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 -15px; padding: 14px 24px; border-bottom: 1px solid #e7eaec; background: #fff; }
.ifx-crumbs h2 { margin: 0; font-size: 20px; font-weight: 700; color: #2f3a45; }
.ifx-crumbs .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; background: none; font-size: 12px; }
.ifx-crumbs .breadcrumb > li { display: inline-flex; align-items: center; color: #6b7680; }
/* separator drawn with borders (a small chevron pointing along the trail) -- no character / icon font involved:
   the app font (Almarai) shows both "‹" and the old icon code as an empty box */
.ifx-crumbs .breadcrumb > li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px; padding: 0; border-bottom: 1.5px solid #a0a9b4; border-left: 1.5px solid #a0a9b4; transform: rotate(-135deg); }
html[dir="ltr"] .ifx-crumbs .breadcrumb > li + li::before { transform: rotate(45deg); }
.ifx-crumbs .breadcrumb > li > a { color: #2f6aa8; }
.ifx-crumbs .breadcrumb > li > a .fa { margin-inline-end: 4px; }
.ifx-crumbs .breadcrumb > li.active { padding: 2px 10px; border-radius: 999px; background: #eaf2fb; color: #2f6aa8; font-weight: 600; }
body.dark-mode .ifx-crumbs { background: #1e293b; border-color: #334155; }
body.dark-mode .ifx-crumbs h2 { color: #e2e8f0; }

/* ===== Attachments component (.ifx-att): file cards with a thumbnail, remove / delete badge, "attach" hover ===== */
.ifx-page .ifx-att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 16px; }
.ifx-page .ifx-att-grid-attached { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ifx-page .ifx-att-card { position: relative; display: flex; flex-direction: column; width: auto !important; margin: 0; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; }
.ifx-page .ifx-att-card:hover { border-color: #c9d6e6; box-shadow: 0 4px 10px rgba(16, 24, 40, .08); }
.ifx-page .ifx-att-thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 120px; background: #f6f7f9; color: #c5cbd1; font-size: 44px; }
.ifx-page .ifx-att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ifx-page .ifx-att-pick { cursor: pointer; }
.ifx-page .ifx-att-add { position: absolute; inset: auto 0 0 0; padding: 4px; background: rgba(77, 130, 191, .9); color: #fff; font-size: 12px; text-align: center; opacity: 0; transition: opacity .15s ease; }
.ifx-page .ifx-att-pick:hover .ifx-att-add { opacity: 1; }
.ifx-page .ifx-att-meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.ifx-page .ifx-att-name { overflow: hidden; font-size: 12px; font-weight: 600; color: #2f6aa8; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.ifx-page .ifx-att-meta small { font-size: 11px; }
.ifx-page .ifx-att-remove { position: absolute; top: 6px; left: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid #dfe3e8; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #6b7680; font-size: 12px; }
.ifx-page .ifx-att-remove:hover { border-color: #c0392b; background: #c0392b; color: #fff; }
.ifx-page .ifx-att-remove-danger { color: #c0392b; }
.ifx-page .ifx-att-filters { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #eef0f2; }
.ifx-page .ifx-att-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ifx-page .ifx-att-filter-row .ifx-label { margin: 0; min-width: 70px; }
.ifx-page .ifx-att-filter-row .it-tag { cursor: pointer; text-decoration: none; }
.ifx-page .ifx-att-drop { min-height: 160px; }
.ifx-page .ifx-att-drop.drag-over { outline: 2px dashed #4D82BF; outline-offset: -6px; background: #f3f7fc; }
body.dark-mode .ifx-page .ifx-att-card { background: transparent; border-color: #334155; }
body.dark-mode .ifx-page .ifx-att-thumb { background: #0f172a; }

/* ===== Change history component (.ifx-clog): a timeline of entries, each a collapsible card ===== */
.ifx-page .ifx-clog-list { position: relative; padding: 16px 16px 8px; }
/* the list keeps id="vertical-timeline" (its script uses it) -- undo inspinia's id rules: zero padding / margins and an
   extra grey line drawn on the left (#vertical-timeline::before); our own line runs between the dots */
.ifx-page #vertical-timeline.ifx-clog-list { margin: 0; padding: 16px 20px 8px; }
.ifx-page #vertical-timeline.ifx-clog-list::before,
.ifx-page #vertical-timeline.ifx-clog-list::after { display: none; }
.ifx-page .ifx-clog-entry .ibox.ifx-clog-card { min-width: 0; }
.ifx-page .ifx-clog-entry { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.ifx-page .ifx-clog-entry::before { content: ""; position: absolute; top: 34px; bottom: 0; right: 15px; width: 2px; background: #e7eaec; }
.ifx-page .ifx-clog-entry:last-child::before { display: none; }
.ifx-page .ifx-clog-dot { z-index: 1; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #4D82BF; color: #fff; font-size: 13px; box-shadow: 0 0 0 4px #eaf2fb; }
.ifx-page .ifx-clog-card { flex: 1; margin: 0; border: 1px solid #e7eaec; border-radius: 8px; box-shadow: none; overflow: hidden; }
.ifx-page .ifx-clog-card > .ibox-title.ifx-clog-head { display: flex; align-items: center; justify-content: space-between; min-height: 0; padding: 10px 14px; border: 0; background: #fff; }
.ifx-page .ifx-clog-head h5 { display: flex; flex-wrap: wrap; gap: 12px; float: none; margin: 0; font-size: 13px; font-weight: 400; }
.ifx-page .ifx-clog-actor { font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-clog-head .ibox-tools { position: static; float: none; }
.ifx-page .ifx-clog-head .collapse-link { color: #a0a9b4; }
.ifx-page .ifx-clog-body { padding: 0 0 8px; border-top: 1px solid #eef0f2; }
.ifx-page .ifx-clog-instance { margin: 0; padding: 10px 14px 4px; font-size: 12px; font-weight: 700; color: #2f6aa8; }
.ifx-page .ifx-clog-old { color: #a0a9b4; text-decoration: line-through; }
.ifx-page .ifx-clog-new { font-weight: 600; color: #1e8e5a; }
body.dark-mode .ifx-page .ifx-clog-card,
body.dark-mode .ifx-page .ifx-clog-card > .ibox-title.ifx-clog-head { background: transparent; border-color: #334155; }

/* ===== Document entries view (.ifx-entries): one titled table per entry kind, debit / credit coloured, totals ===== */
.ifx-page .ifx-entries .ifx-entries-kind { border-top: 0; padding-top: 16px; }
.ifx-page .ifx-entries .ifx-entries-amount { width: 120px; }
.ifx-page .ifx-entries .ifx-entries-debit { color: #1e7a4c; }
.ifx-page .ifx-entries .ifx-entries-credit { color: #a5281b; }
.ifx-page .ifx-entries .ifx-entries-total > td { border-top: 2px solid #dfe3e8; background: #f8fafc; font-weight: 700; color: #2f3a45; }
body.dark-mode .ifx-page .ifx-entries .ifx-entries-total > td { background: transparent; color: #e2e8f0; }

/* ===== Advanced filter windows -- invoices (#invAdvFilter .af-*, InvoiceFeature/_AdvancedFilter) and accounts / items
   (.eaf .eaf-*, wwwroot/js/entityAdvancedFilter.js, which injects its own base <style>): one shared look.
   "body" prefixes keep these above the injected base rules. ===== */
body #invAdvFilter,
body .eaf { background: rgba(15, 23, 42, .5); }
body #invAdvFilter .af-box,
body .eaf .eaf-box { top: 3%; bottom: 3%; left: 3%; right: 3%; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); font-size: 13px; }
body #invAdvFilter .af-head,
body .eaf .eaf-head { padding: 14px 24px; border-bottom: 1px solid #eef0f2; background: #fff; }
body #invAdvFilter .af-head h3,
body .eaf .eaf-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; color: #2f3a45; }
body #invAdvFilter .af-head h3 .fa,
body .eaf .eaf-head h3 .fa { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf2fb; color: #4D82BF; font-size: 15px; }
body #invAdvFilter .af-close,
body .eaf .eaf-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #6b7680; font-size: 22px; }
body #invAdvFilter .af-close:hover,
body .eaf .eaf-close:hover { background: #fdecef; color: #c0392b; }
body #invAdvFilter .af-conditions,
body .eaf .eaf-conditions { padding: 16px 24px; border-bottom: 1px solid #eef0f2; background: #f8fafc; }
body #invAdvFilter .af-row,
body .eaf .eaf-row { gap: 8px; margin-bottom: 8px; padding: 8px 10px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; }
body #invAdvFilter .af-row select, body #invAdvFilter .af-row input,
body .eaf .eaf-row select, body .eaf .eaf-row input { height: 34px; padding: 4px 10px; border: 1px solid #dfe3e8; border-radius: 6px; font-size: 13px; }
body #invAdvFilter .af-row select:focus, body #invAdvFilter .af-row input:focus,
body .eaf .eaf-row select:focus, body .eaf .eaf-row input:focus { border-color: #4D82BF; outline: 0; box-shadow: 0 0 0 3px rgba(77, 130, 191, .15); }
body #invAdvFilter .af-and,
body .eaf .eaf-and { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 999px; background: #eaf2fb; color: #2f6aa8; font-size: 11px; font-weight: 700; }
body #invAdvFilter .af-remove,
body .eaf .eaf-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: auto; border-radius: 50%; background: #fdecef; color: #c0392b; font-size: 13px; }
body #invAdvFilter .af-remove:hover,
body .eaf .eaf-remove:hover { background: #c0392b; color: #fff; }
body #invAdvFilter .af-tools,
body .eaf .eaf-tools { gap: 10px 14px; margin-top: 10px; color: #4a5560; }
body #invAdvFilter .af-summary,
body .eaf .eaf-summary { gap: 8px; padding: 10px 24px; border-bottom: 1px solid #eef0f2; background: #fff; }
body #invAdvFilter .af-summary .af-count,
body .eaf .eaf-summary .eaf-count { padding: 2px 12px; border-radius: 999px; background: #eaf2fb; color: #2f6aa8; font-size: 13px; font-weight: 700; }
body #invAdvFilter .af-summary .af-count:empty,
body .eaf .eaf-summary .eaf-count:empty { display: none; }
body #invAdvFilter .af-results,
body .eaf .eaf-results { padding: 0 24px; background: #fff; }
body #invAdvFilter table,
body .eaf .eaf-results table { font-size: 13px; }
body #invAdvFilter th,
body .eaf .eaf-results th { padding: 10px 8px; border-bottom: 1px solid #e7eaec; background: #f8fafc; color: #6b7680; font-size: 12px; font-weight: 600; }
body #invAdvFilter td,
body .eaf .eaf-results td { padding: 9px 8px; border-bottom: 1px solid #f1f3f5; color: #2f3a45; }
body #invAdvFilter tr:hover td,
body .eaf .eaf-results tr:hover td { background: #f6f9fd; }
body #invAdvFilter .af-num,
body .eaf .eaf-num { font-variant-numeric: tabular-nums; }
body #invAdvFilter .af-empty,
body .eaf .eaf-empty { padding: 48px 16px; color: #6b7680; }
body #invAdvFilter .af-hint,
body .eaf .eaf-hint { color: #6b7680; }
body #invAdvFilter .af-foot,
body .eaf .eaf-foot { padding: 10px 24px; border-top: 1px solid #eef0f2; background: #fff; }
body.dark-mode #invAdvFilter .af-box, body.dark-mode .eaf .eaf-box,
body.dark-mode #invAdvFilter .af-head, body.dark-mode .eaf .eaf-head,
body.dark-mode #invAdvFilter .af-summary, body.dark-mode .eaf .eaf-summary,
body.dark-mode #invAdvFilter .af-results, body.dark-mode .eaf .eaf-results,
body.dark-mode #invAdvFilter .af-foot, body.dark-mode .eaf .eaf-foot { background: #1e293b; border-color: #334155; }
body.dark-mode #invAdvFilter .af-conditions, body.dark-mode .eaf .eaf-conditions { background: #0f172a; border-color: #334155; }
body.dark-mode #invAdvFilter .af-row, body.dark-mode .eaf .eaf-row,
body.dark-mode #invAdvFilter th, body.dark-mode .eaf .eaf-results th { background: transparent; border-color: #334155; }
body.dark-mode #invAdvFilter td, body.dark-mode .eaf .eaf-results td,
body.dark-mode #invAdvFilter .af-head h3, body.dark-mode .eaf .eaf-head h3 { color: #e2e8f0; }

/* Action colours (user request 2026-11-02): toolbar buttons are not all the same -- each action keeps its own soft
   tint so it can be found at a glance; delete is solid red (strongest), cancel is red. Use on .btn (any page). */
.btn.ifx-btn-delete,
.btn.ifx-btn-delete:focus { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn.ifx-btn-delete:hover,
.btn.ifx-btn-delete:active { background: #a5281b; border-color: #a5281b; color: #fff; }
.btn.ifx-btn-cancel,
.btn.ifx-btn-cancel:focus { background: #fff; border-color: #e3a29a; color: #c0392b; }
.btn.ifx-btn-cancel:hover,
.btn.ifx-btn-cancel:active { background: #c0392b; border-color: #c0392b; color: #fff; }
/* the big Cancel under "save" on the invoice editor: solid red, as it always was */
.btn.ifx-btn-cancel-solid,
.btn.ifx-btn-cancel-solid:focus { background: #d9534f; border-color: #d9534f; color: #fff; }
.btn.ifx-btn-cancel-solid:hover,
.btn.ifx-btn-cancel-solid:active { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn.ifx-btn-blue { background: #eaf2fb; border-color: #c6dbf1; color: #2f6aa8; }
.btn.ifx-btn-blue:hover { background: #d7e7f8; border-color: #a9c8ea; color: #234f7d; }
.btn.ifx-btn-green { background: #e9f7ef; border-color: #bfe6cf; color: #1e7a4c; }
.btn.ifx-btn-green:hover { background: #d4f0df; border-color: #9dd8b6; color: #16603b; }
.btn.ifx-btn-purple { background: #f2edfa; border-color: #d9cdef; color: #6a43b0; }
.btn.ifx-btn-purple:hover { background: #e7def6; border-color: #c4b1e6; color: #55348f; }
.btn.ifx-btn-teal { background: #e6f6f6; border-color: #bde3e3; color: #157a7a; }
.btn.ifx-btn-teal:hover { background: #d0eeee; border-color: #97d2d2; color: #0f6060; }
.btn.ifx-btn-amber { background: #fff6e5; border-color: #f3d9a6; color: #9a5b00; }
.btn.ifx-btn-amber:hover { background: #ffecc7; border-color: #ecc77d; color: #7a4800; }
.btn.ifx-btn-indigo { background: #eef0fb; border-color: #cdd2f0; color: #3f4aa8; }
.btn.ifx-btn-indigo:hover { background: #e0e4f8; border-color: #b3bbea; color: #313a8a; }
.btn.ifx-btn-rose { background: #fcedf3; border-color: #f0c9d9; color: #a3345f; }
.btn.ifx-btn-rose:hover { background: #f8dce8; border-color: #e6aec5; color: #842849; }
.btn.ifx-btn-grey { background: #f4f5f7; border-color: #dfe3e8; color: #4a5560; }
.btn.ifx-btn-grey:hover { background: #e9ecf0; border-color: #cfd5dc; color: #2f3a45; }
body.dark-mode .btn.ifx-btn-blue,
body.dark-mode .btn.ifx-btn-green,
body.dark-mode .btn.ifx-btn-purple,
body.dark-mode .btn.ifx-btn-teal,
body.dark-mode .btn.ifx-btn-amber,
body.dark-mode .btn.ifx-btn-indigo,
body.dark-mode .btn.ifx-btn-rose,
body.dark-mode .btn.ifx-btn-grey,
body.dark-mode .btn.ifx-btn-cancel { background: transparent; }

/* report pages: a filter row of labelled fields (dates, selects) with the apply button at the end */
.ifx-page .ifx-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding: 16px; margin: 0; border-bottom: 1px solid #eef0f2; }
.ifx-page .ifx-filter .ifx-filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.ifx-page .ifx-filter .ifx-filter-field > label { margin: 0; font-size: 12px; font-weight: 600; color: #6b7680; }
.ifx-page .ifx-filter .form-control { height: 32px; font-size: 13px; }
.ifx-page .ifx-filter .ifx-filter-end { margin-right: auto; display: flex; gap: 8px; }
/* sortable column headers in server-rendered reports */
.ifx-page .ifx-table > thead > tr > th > a { color: inherit; text-decoration: none; }
.ifx-page .ifx-table > thead > tr > th > a:hover { color: #2f6aa8; }
.ifx-page .ifx-table > thead > tr > th .ifx-sort { color: #4D82BF; font-size: 10px; }
/* nested (tree) rows in a table */
.ifx-page .ifx-tree-toggle { display: inline-block; width: 16px; text-align: center; color: #6b7680; font-weight: 700; text-decoration: none; }
.ifx-page .ifx-tree-toggle:hover { color: #2f6aa8; text-decoration: none; }
.ifx-page .ifx-tree-spacer { display: inline-block; width: 16px; }
.ifx-page .ifx-tree-cell .fa { color: #a0a9b4; margin-inline-end: 4px; }
body.dark-mode .ifx-page .ifx-filter { border-color: #334155; }

/* small clickable count tiles by status (e.g. cheques in a book): number big, label small, colour = meaning */
.ifx-page .ifx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; padding: 0 16px 16px; }
.ifx-page .ifx-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid #e7eaec; border-top: 3px solid var(--ifx-stat, #a0a9b4); border-radius: 6px; background: #fff; color: #6b7680; font-size: 12px; text-decoration: none; }
.ifx-page .ifx-stat b { font-size: 18px; line-height: 1.2; color: #2f3a45; font-variant-numeric: tabular-nums; }
.ifx-page .ifx-stat:hover { background: #f8f9fb; text-decoration: none; color: #2f3a45; }
.ifx-page .ifx-stat.ifx-stat-zero b { color: #c5cbd1; }
.ifx-stat-blue { --ifx-stat: #4D82BF; }
.ifx-stat-purple { --ifx-stat: #7e57c2; }
.ifx-stat-green { --ifx-stat: #1e8e5a; }
.ifx-stat-red { --ifx-stat: #d9534f; }
.ifx-stat-grey { --ifx-stat: #a0a9b4; }
.ifx-page .ifx-block-link { display: block; margin: 0 16px 16px; text-align: center; }
body.dark-mode .ifx-page .ifx-stat { background: transparent; border-color: #334155; border-top-color: var(--ifx-stat, #a0a9b4); }
body.dark-mode .ifx-page .ifx-stat b { color: #e2e8f0; }

/* thin progress meter with a caption (e.g. how much of an asset is depreciated) */
.ifx-page .ifx-meter { padding: 0 16px 16px; }
.ifx-page .ifx-meter-track { height: 8px; border-radius: 4px; background: #eef0f2; overflow: hidden; }
.ifx-page .ifx-meter-fill { height: 100%; border-radius: 4px; background: #4D82BF; transition: width .3s ease; }
.ifx-page .ifx-meter-caption { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: #6b7680; }
.ifx-page .ifx-meter-caption b { color: #2f3a45; }
body.dark-mode .ifx-page .ifx-meter-track { background: #334155; }
.ifx-page .ifx-link { color: #2f6aa8; }
.ifx-page .ifx-link:hover { text-decoration: underline; }

/* hand-made popups (.modal-backdrop-custom: Amanah, Installment, Warehouse transfer, Payroll...): one look everywhere.
   Pages keep only style="display:none" -- their scripts toggle it. */
.modal-backdrop-custom { position: fixed; inset: 0; z-index: 1050; overflow-y: auto; background: rgba(15, 23, 42, .5); }
.modal-backdrop-custom > div { max-width: 440px; margin: 12vh auto; padding: 20px 24px; border-radius: 8px; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
.modal-backdrop-custom > div.ifx-modal-wide { max-width: 720px; }
.modal-backdrop-custom h4 { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: #2f3a45; }
.modal-backdrop-custom label { font-size: 12px; font-weight: 600; color: #6b7680; }
.modal-backdrop-custom .ifx-modal-note { margin: -8px 0 16px; font-size: 13px; color: #6b7680; }
.modal-backdrop-custom .ifx-modal-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eef0f2; }
/* grouped fields inside a popup (warehouse transfer: source / destination voucher) */
.modal-backdrop-custom .ifx-fieldset { margin: 0 0 16px; padding: 12px 16px 4px; border: 1px solid #e7eaec; border-radius: 8px; }
.modal-backdrop-custom .ifx-fieldset > legend { width: auto; margin: 0; padding: 0 8px; border: 0; font-size: 13px; font-weight: 700; color: #2f6aa8; }
.modal-backdrop-custom .form-group { margin-bottom: 12px; }
body.dark-mode .modal-backdrop-custom > div { background: #1e293b; }
body.dark-mode .modal-backdrop-custom .ifx-fieldset { border-color: #334155; }
body.dark-mode .modal-backdrop-custom h4 { color: #e2e8f0; }

/* a boxed group of optional fields inside a form (e.g. the new-account details in Supplier) */
.ifx-page .ifx-subbox { margin-top: 8px; padding: 12px; border: 1px solid #e7eaec; border-radius: 6px; background: #fafbfc; }
.ifx-page .ifx-subbox .ifx-form-group { max-width: none; margin-bottom: 12px; }
.ifx-page .ifx-radios { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ifx-page .ifx-radios .ifx-check { margin: 0; }
.ifx-page .ifx-edit-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #fff4e0; color: #9a5b00; font-size: 12px; }
.ifx-page .ifx-edit-banner a { margin-right: auto; }
body.dark-mode .ifx-page .ifx-subbox { background: transparent; border-color: #334155; }

/* select2 "x" on a chosen value sits on the wrong side in RTL (was copied into several pages' <style>);
   template textareas with @-mentions (.multiple: voucher QR / WhatsApp, subscription message) get a usable height */
.select2-search-choice-close { right: inherit; }
textarea.multiple { width: 100%; height: 120px !important; }
/* small "x" inside a tag chip (remove a schedule time), summary strip placed under form fields */
.ifx-page .it-tag .ifx-chip-x { margin-inline-start: 4px; color: inherit; opacity: .6; }
.ifx-page .it-tag .ifx-chip-x:hover { opacity: 1; text-decoration: none; }
.ifx-page .ifx-intro-top { margin: 12px 0 0; }
/* a stored message / template shown read-only (subscription message) */
.ifx-page .ifx-message-box { margin: 0 16px 16px; padding: 12px 16px; border: 1px solid #e7eaec; border-radius: 6px; background: #fafbfc; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
body.dark-mode .ifx-page .ifx-message-box { background: transparent; border-color: #334155; }

/* release notes (Change history): a dated timeline -- dot + date chip per entry, its points listed under it */
.ifx-page .ifx-timeline { margin: 0; padding: 16px 16px 8px; list-style: none; max-height: 70vh; overflow-y: auto; }
.ifx-page .ifx-timeline > li { position: relative; padding: 0 20px 16px 0; border-right: 2px solid #e7eaec; }
.ifx-page .ifx-timeline > li:last-child { border-right-color: transparent; }
.ifx-page .ifx-timeline > li::before { content: ""; position: absolute; top: 4px; right: -6px; width: 10px; height: 10px; border-radius: 50%; background: #4D82BF; box-shadow: 0 0 0 3px #eaf2fb; }
.ifx-page .ifx-timeline > li > strong { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; background: #eaf2fb; color: #2f6aa8; font-size: 12px; font-variant-numeric: tabular-nums; }
.ifx-page .ifx-timeline > li > ul { margin: 0; padding-right: 16px; color: #4a5560; font-size: 13px; line-height: 1.7; }
body.dark-mode .ifx-page .ifx-timeline > li { border-right-color: #334155; }
body.dark-mode .ifx-page .ifx-timeline > li > ul { color: #cbd5e1; }

/* Voucher config (.ifx-vc): its long details / edit views are built from inspinia ibox sections, list-group rows,
   bootstrap tabs and panels. Rather than rewrite ~2,300 lines, these rules give those blocks the shared look:
   section = soft card with a blue title, row = label left / value right, check = green, cross = grey. */
.ifx-page .ifx-vc .panel-body { padding: 16px; }
.ifx-page .ifx-vc .ibox { margin-bottom: 12px; border: 1px solid #e7eaec; border-radius: 8px; box-shadow: none; overflow: hidden; }
.ifx-page .ifx-vc .ibox > .ibox-title { display: flex; align-items: center; justify-content: space-between; min-height: 0; padding: 10px 16px; border: 0; border-bottom: 1px solid #eef0f2; background: #f8fafc; }
.ifx-page .ifx-vc .ibox > .ibox-title h2 { float: none !important; margin: 0; font-size: 14px; font-weight: 700; color: #2f6aa8; }
.ifx-page .ifx-vc .ibox > .ibox-title .ibox-tools { float: none !important; }
.ifx-page .ifx-vc .ibox > .ibox-title .ibox-tools .fa { color: #4D82BF; }
.ifx-page .ifx-vc .ibox > .ibox-content { padding: 0; border: 0; }
.ifx-page .ifx-vc .list-group { margin: 0; }
.ifx-page .ifx-vc .list-group-item { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border: 0; border-bottom: 1px solid #f1f3f5; border-radius: 0; font-size: 13px; color: #6b7680; }
.ifx-page .ifx-vc .list-group-item:last-child { border-bottom: 0; }
.ifx-page .ifx-vc .list-group-item > .pull-right { float: none !important; font-weight: 600; color: #2f3a45; text-align: left; }
.ifx-page .ifx-vc .list-group-item .fa-check { color: #1e8e5a; }
.ifx-page .ifx-vc .list-group-item .fa-times { color: #c5cbd1; }
.ifx-page .ifx-vc .nav-tabs { padding: 0 16px; border-bottom: 1px solid #e7eaec; }
.ifx-page .ifx-vc .nav-tabs > li > a { padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #6b7680; font-weight: 600; }
.ifx-page .ifx-vc .nav-tabs > li.active > a,
.ifx-page .ifx-vc .nav-tabs > li.active > a:hover,
.ifx-page .ifx-vc .nav-tabs > li.active > a:focus { border: 0; border-bottom: 2px solid #4D82BF; background: transparent; color: #2f6aa8; }
.ifx-page .ifx-vc .panel.blank-panel > .panel-heading { padding: 0; }
.ifx-page .ifx-vc .panel-body .panel > .panel-heading { padding: 8px 16px 1px; border-radius: 8px 8px 0 0; background: #f8fafc; color: #2f6aa8; font-weight: 700; }
.ifx-page .ifx-vc .form-group > label { font-size: 12px; font-weight: 600; color: #6b7680; }
.ifx-page .ifx-vc .table > thead > tr > th,
.ifx-page .ifx-vc .table > thead > tr > td { font-size: 12px; font-weight: 600; color: #6b7680; background: #f8fafc; border-bottom: 1px solid #e7eaec; }
body.dark-mode .ifx-page .ifx-vc .ibox { border-color: #334155; }
body.dark-mode .ifx-page .ifx-vc .ibox > .ibox-title,
body.dark-mode .ifx-page .ifx-vc .panel-body .panel > .panel-heading,
body.dark-mode .ifx-page .ifx-vc .table > thead > tr > th { background: transparent; }
body.dark-mode .ifx-page .ifx-vc .list-group-item { border-color: #334155; }
body.dark-mode .ifx-page .ifx-vc .list-group-item > .pull-right { color: #e2e8f0; }

/* ZATCA monitoring: live-connection dot, segmented on/off buttons, sortable headers, row states, divider button */
@keyframes ifx-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 142, 90, .6); }
    70% { box-shadow: 0 0 0 8px rgba(30, 142, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 142, 90, 0); }
}
.ifx-page .ifx-live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #1e8e5a; animation: ifx-live-pulse 2s infinite; }
.ifx-page .ifx-live-dot.ifx-live-dot-partial { background: #e6a23c; }
.ifx-page .ifx-live-dot.ifx-live-dot-off { background: #c0392b; animation: none; }
.ifx-page .ifx-segment { display: inline-flex; gap: 0; }
.ifx-page .ifx-segment > .btn { border-radius: 0; margin: 0; }
.ifx-page .ifx-segment > .btn + .btn { margin-right: -1px; }
.ifx-page .ifx-segment > .btn:first-child { border-radius: 0 6px 6px 0; }
.ifx-page .ifx-segment > .btn:last-child { border-radius: 6px 0 0 6px; }
.ifx-page .ifx-segment > .btn.ifx-segment-on { position: relative; z-index: 1; background: #eaf2fb; border-color: #4D82BF; color: #2f6aa8; font-weight: 600; }
.ifx-page .ifx-table > thead > tr > th.ifx-sort-th { cursor: pointer; white-space: nowrap; user-select: none; }
.ifx-page .ifx-table > thead > tr > th.ifx-sort-th > .fa { margin-inline-start: 4px; color: #c5cbd1; }
.ifx-page .ifx-table > thead > tr > th.ifx-sort-on,
.ifx-page .ifx-table > thead > tr > th.ifx-sort-on > .fa { color: #2f6aa8; }
.ifx-page .ifx-table .ifx-col-check { width: 32px; }
.ifx-page .ifx-table > tbody > tr.ifx-row-done > td { opacity: .6; }
.ifx-page .ifx-table > tbody > tr.ifx-row-expired > td { background: #fafafa; }
.ifx-page .ifx-time-left { min-width: 120px; }
.ifx-page .ifx-time-left .ifx-meter-track { height: 6px; margin-bottom: 4px; }
.ifx-page .ifx-meter-fill.ifx-meter-warn { background: #e6a23c; }
.ifx-page .ifx-meter-fill.ifx-meter-bad { background: #c0392b; }
.ifx-page .ifx-ok-icon { color: #1e8e5a; font-size: 16px; }
.ifx-page .ifx-divider-btn { display: flex; justify-content: center; margin: 16px; padding-bottom: 12px; border-bottom: 1px dashed #e7eaec; }
.ifx-page .ifx-modal-scroll { max-height: 55vh; overflow-y: auto; background: #fafbfc; }
.ifx-page .ifx-modal-footer { display: flex; align-items: center; justify-content: space-between; }
body.dark-mode .ifx-page .ifx-segment > .btn.ifx-segment-on { background: rgba(77, 130, 191, .2); color: #cfe0f3; }
body.dark-mode .ifx-page .ifx-table > tbody > tr.ifx-row-expired > td,
body.dark-mode .ifx-page .ifx-modal-scroll { background: transparent; }

/* raw text / XML shown read-only (ZATCA response and invoice XML), section title with a button at its end, smaller chart */
.ifx-page .ifx-code-block { max-height: 260px; margin: 0 16px 16px; padding: 12px; overflow: auto; border: 1px solid #e7eaec; border-radius: 6px; background: #f8f9fb; font-family: Consolas, monospace; font-size: 12px; white-space: pre-wrap; direction: ltr; text-align: left; }
.ifx-page .ifx-code-block.ifx-code-dark { background: #282c34; border-color: #282c34; color: #abb2bf; }
.ifx-page .ifx-section.ifx-section-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.ifx-page .ifx-chart-body.ifx-chart-body-sm { height: 200px; margin: 16px; }
body.dark-mode .ifx-page .ifx-code-block:not(.ifx-code-dark) { background: transparent; border-color: #334155; }

/* soft alert boxes (database maintenance and others): .ifx-alert + one of -info / -ok / -danger.
   Directly on the page they sit flush; inside a card they keep the card's 16px inset (base .ifx-alert rule). */
.ifx-page .ifx-alert-info,
.ifx-page .ifx-alert-ok,
.ifx-page .ifx-alert-danger { padding: 12px 16px; border: 1px solid; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.ifx-page .ifx-alert-info { background: #eef4fb; border-color: #cfe0f2; color: #2f4f73; }
.ifx-page .ifx-alert-ok { background: #e9f7ef; border-color: #c6ebd5; color: #1e6b45; }
.ifx-page .ifx-alert-danger { background: #fdecef; border-color: #f5c6cf; color: #9b2335; }
.ifx-page > .ifx-alert,
.ifx-page .ifx-form .ifx-alert { margin: 0 0 16px; }
.ifx-page .ifx-alert-in { margin: 0 16px 16px; }
.ifx-page .ifx-ltr-code { direction: ltr; text-align: left; font-family: Consolas, monospace; font-size: 12px; opacity: .85; word-break: break-all; }
/* the "page unlocked -- lock now" bar, a one-line form (input + button), a list of script / file names */
.ifx-page .ifx-lock-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.ifx-page .ifx-inline-form { display: flex; gap: 8px; max-width: 480px; }
.ifx-page .ifx-inline-form .form-control { flex: 1 1 auto; }
.ifx-page .ifx-script-list { margin: 8px 0 0; padding-right: 20px; font-family: Consolas, monospace; font-size: 12px; direction: ltr; text-align: left; }
.ifx-page .ifx-script-list-pad { margin: 0 16px 16px; }
.ifx-page .ifx-section.ifx-section-danger { color: #c0392b; }
/* Reports page: parameters bar, action bar, report frame (#reportf -- its old <style> sat in a partial's @section
   and never rendered), the field boxes on the edit form (flex grid: boxes differ in height, floats left gaps) */
.ifx-page .ifx-report-params { align-items: flex-start; }
.ifx-page .ifx-report-params .ifx-report-param { flex: 1 1 220px; margin: 0; }
.ifx-page .ifx-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #eef0f2; }
.ifx-page .ifx-report-actions-end { display: flex; gap: 8px; margin-right: auto; }
.ifx-page .btn.ifx-btn-excel { color: #1e7a4c; }
.ifx-page .btn.ifx-btn-excel:hover { border-color: #1e7a4c; background: #e9f7ef; }
.ifx-page .ifx-report-frame { padding: 16px; }
#reportf { display: block; width: 100%; height: 500px; border: 1px solid #e7eaec; border-radius: 6px; background: #fff; }
#reportf:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; background: #fff; }
.ifx-page .ifx-report-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.ifx-page .ifx-report-fields > div { display: flex; flex-direction: column; }
.ifx-page .report-field-box { flex: 1; padding: 10px 12px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; cursor: move; }
.ifx-page .report-field-box:hover { border-color: #c9d6e6; }
.ifx-page .report-field-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ifx-page .report-field-moves { display: flex; gap: 4px; margin-right: auto; white-space: nowrap; }
.ifx-page .report-field-box > .form-control { margin-bottom: 8px; }
body.dark-mode .ifx-page .report-field-box { background: transparent; border-color: #334155; }

/* Reports hub (مركز التقارير, Report/Hub; script wwwroot/js/reportHub.js) -- was the page's own <style>.
   Its colour variables now map to the shared palette. */
.rh { direction: rtl; --primary: #4D82BF; --primary-soft: #eef4fb; --line: #e7eaec; --text: #4a5560; --head: #2f3a45; --muted: #6b7680; --star: #e6a23c; }
.rh-sub { margin-inline-start: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.rh-search { padding: 16px 16px 0; }
.rh-search .input-group-addon { background: #fff; color: var(--muted); }
.rh-search .form-control { height: 40px; font-size: 14px; }
.rh-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding: 16px; }
.rh-quick h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rh-quick h4 .fa-star { color: var(--star); }
.rh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-chips .btn { display: inline-flex; align-items: center; gap: 6px; }
.rh-chips .btn small { color: var(--muted); }
.rh-hint { font-size: 12px; color: var(--muted); }
.rh-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rh-tabs .btn small { margin-inline-start: 3px; opacity: .75; }
/* section panels (start view) */
.rh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 16px; align-items: start; }
.rh-cat.ibox { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rh-cat .ibox-title { display: flex; align-items: center; gap: 10px; min-height: 0; height: auto; padding: 12px 16px; border: 0; border-bottom: 1px solid #eef0f2; cursor: pointer; }
.rh-cat .ibox-title h5 { float: none; flex: 1; min-width: 0; margin: 0; font-weight: 700; line-height: 1.4; }
.rh-cat .ibox-title h5 .fa { margin-inline-end: 6px; color: var(--primary); }
.rh-cat .ibox-title .ibox-tools { position: static; float: none; top: auto; margin: 0; }
.rh-cat .ibox-title:hover h5 { color: var(--primary); }
.rh-cat .ibox-content { padding: 6px 16px 10px; border: 0; }
.rh-cat-hint { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.rh-cat-links { margin: 0; }
.rh-cat-links li { padding: 0; }
.rh-cat-links button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 2px; border: 0; background: none; text-align: right; color: var(--text); }
.rh-cat-links button:hover { color: var(--primary); }
.rh-cat-links button::after { content: "\f104"; margin-inline-start: auto; font-family: FontAwesome, "Font Awesome 5 Free"; font-weight: 900; color: #c2c7cc; }
.rh-cat-fav { color: var(--star); }
.rh-cat-all { display: inline-block; margin-top: 6px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--primary); }
/* report rows */
.rh-section.ibox { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rh-section .ibox-content { padding: 0; border: 0; }
.rh-item + .rh-item { border-top: 1px solid var(--line); }
.rh-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 12px 16px; cursor: pointer; }
.rh-row:hover { background: #fafbfc; }
.rh-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 15px; }
.rh-text { min-width: 0; }
.rh-text b { display: block; font-size: 13.5px; color: var(--head); }
.rh-text p { margin: 1px 0 4px; font-size: 12px; color: var(--muted); }
.rh-tags .it-tag { margin-inline-end: 3px; }
.rh-when { font-size: 11px; line-height: 1.5; text-align: left; white-space: nowrap; color: var(--muted); }
.rh-side { display: flex; align-items: center; gap: 6px; }
.rh-star { padding: 2px 6px; border: 0; background: none; font-size: 16px; line-height: 1; color: #c9ced3; }
.rh-star:hover,
.rh-star.on { color: var(--star); }
.rh-item.open > .rh-row { background: var(--primary-soft); }
/* the report's own fields, in place */
.rh-form { display: none; padding: 16px; padding-inline-start: 66px; border-top: 1px dashed var(--line); background: #f9fafb; }
.rh-item.open .rh-form { display: block; }
.rh-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.rh-field { min-width: 0; margin: 0; }
.rh-field.wide { grid-column: 1 / -1; }
.rh-field > label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rh-field > label .req { color: #c0392b; }
.rh-field.has-error .form-control,
.rh-field.has-error .rh-ms-btn { border-color: #c0392b; }
.rh-field.has-error .rh-marker,
.rh-ms-pop .form-control { border-color: #e5e6e7; box-shadow: none; }
.rh-err { display: block; margin-top: 2px; font-size: 11.5px; color: #c0392b; }
.rh-field .input-group.date { max-width: 360px; }
/* multi-select with search */
.rh-ms { position: relative; }
.rh-ms-btn { display: flex; align-items: center; gap: 6px; width: 100%; background: #fff; text-align: right; }
.rh-ms-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-ms-pop { display: none; position: absolute; z-index: 30; top: calc(100% + 2px); left: 0; right: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.rh-ms.open .rh-ms-pop { display: block; }
.rh-ms-bulk { display: flex; gap: 12px; margin: 6px 0 4px; font-size: 12px; }
.rh-ms-bulk button { padding: 0; border: 0; background: none; font-weight: 600; color: var(--primary); }
.rh-ms-list { max-height: 210px; overflow-y: auto; }
.rh-ms-list label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px; font-weight: 400; cursor: pointer; }
.rh-ms-list label:hover { background: #f5f6f7; }
.rh-ms-list input { margin: 0; }
.rh-marker { margin-bottom: 6px; }
.rh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rh-actions .fa-file-excel-o,
.rh-excel-ico { color: #1e7a4c; }
.rh-preset-note { font-size: 11.5px; color: var(--muted); }
/* saved setups */
.rh-setups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.rh-setup { display: inline-flex; }
.rh-setup .btn + .btn { border-inline-start: 0; color: #c0392b; }
.rh-save-setup { display: inline-flex; align-items: center; gap: 6px; }
.rh-setup-name { align-items: center; gap: 6px; }
.rh-setup-name input { width: 240px; }
/* the result under the report (two side by side when comparing periods) */
.rh-result { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.rh-result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.rh-result-bar b { margin-inline-end: auto; color: var(--head); }
.rh-result-body { display: grid; grid-template-columns: 1fr; }
.rh-result-body.split { grid-template-columns: 1fr 1fr; }
.rh-result-body.split .rh-result-pane + .rh-result-pane { border-inline-start: 1px solid var(--line); }
.rh-result-label { padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); }
.rh-result iframe { display: block; width: 100%; height: 520px; border: 0; background: #fff; }
/* admin: arranging sections */
.rh-manage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.rh-manage-actions { display: inline-flex; gap: 6px; }
.rh-manage-row { grid-template-columns: 36px minmax(0, 1fr) 200px; cursor: default; }
.rh-cat-rename { display: inline-block; max-width: 260px; font-weight: 700; }
.rh-empty { padding: 32px 10px; text-align: center; color: var(--muted); }
.rh mark { padding: 0 1px; background: #fcf0d4; color: inherit; }
/* report viewer (full-screen popup) */
.rh-viewer { display: none; position: fixed; inset: 0; z-index: 2050; padding: 16px; background: rgba(15, 23, 42, .5); }
.rh-viewer.open { display: flex; }
.rh-viewer .ibox { direction: rtl; display: flex; flex: 1; flex-direction: column; margin: 0; border-radius: 8px; overflow: hidden; background: #fff; }
.rh-viewer .ibox-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 0; padding: 10px 16px; }
.rh-viewer .ibox-title h5 { float: none; margin: 0 0 0 auto; font-weight: 700; }
.rh-viewer iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.rh-loading { padding: 10px 16px; color: var(--muted); }
@media (max-width: 767px) {
    .rh-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .rh-when { display: none; }
    .rh-form { padding-inline-start: 16px; }
    .rh-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .rh-viewer { padding: 0; }
    .rh-result-body.split { grid-template-columns: 1fr; }
    .rh-result-body.split .rh-result-pane + .rh-result-pane { border-inline-start: 0; border-top: 1px solid var(--line); }
    .rh-manage-row { grid-template-columns: 32px minmax(0, 1fr); }
    .rh-manage-row .rh-move { grid-column: 1 / -1; }
    .rh-setup-name input { width: 160px; }
}
body.dark-mode .rh { --line: #334155; --primary-soft: rgba(77, 130, 191, .15); --head: #e2e8f0; --text: #cbd5e1; }
body.dark-mode .rh-form,
body.dark-mode .rh-row:hover,
body.dark-mode .rh-result,
body.dark-mode .rh-result-bar,
body.dark-mode .rh-ms-pop,
body.dark-mode .rh-ms-btn,
body.dark-mode .rh-search .input-group-addon { background: transparent; }

/* Report template content editor (full-screen panel moved to <body> by appendToBody; it carries .ifx-page itself).
   Layout must stay in this class, not inline: KO's "visible" toggles the inline display between none and "" --
   an inline display:flex would win and show the panel at once. The outer fixed panel must NOT scroll (it would
   clip TinyMCE's floating menus); the inner .rce-body scrolls. TinyMCE dialogs are appended to <body> with their
   own z-index (1100), so every tox floating layer is lifted above this panel. */
#reportContentEditorPanel { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: visible; background: #f3f3f4; }
.tox-dialog-wrap,
.tox-tinymce-aux,
.tox-silver-sink { z-index: 1000000 !important; }
#reportContentEditorPanel .rce-head { flex: none; margin: 0 16px; }
#reportContentEditorPanel .rce-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; }
#reportContentEditorPanel .rce-file { padding: 6px 10px; cursor: pointer; }
#reportContentEditorPanel .rce-modes { margin-bottom: 8px; }
#reportContentEditorPanel .rce-preview { width: 100%; height: 480px; border: 1px solid #e7eaec; border-radius: 6px; background: #fff; }
#reportContentEditorPanel .rce-tokens { max-height: 520px; overflow-y: auto; }
#reportContentEditorPanel .rce-token-group { margin-bottom: 10px; }
#reportContentEditorPanel .rce-token-group .btn { margin: 2px; }

/* Ask the system (was the page's own <style>): question box, chips (examples / favourites / recent), answer cards,
   in-place loading bar + skeleton, print rules */
.ask-form { margin-bottom: 16px; }
.ask-form .input-group .form-control { height: 46px; font-size: 16px; }
.ask-form .input-group .btn { height: 46px; padding: 0 20px; font-size: 15px; }
.ask-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ask-chips a { cursor: pointer; text-decoration: none; }
.ask-chips a:hover { filter: brightness(.96); }
.ask-chips-title { margin-inline-end: 4px; font-size: 12px; color: #6b7680; }
.ask-chips .ask-chip-remove { margin-inline-start: 4px; opacity: .6; }
.ifx-page .ask-message { align-items: flex-start; }
.ifx-page .ifx-edit-banner .ask-chips a { margin-right: 0; } /* the banner pushes its own link to the end; not these chips */
.ask-engine { margin-inline-start: 8px; font-size: 11px; }
.ask-options { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid #eef0f2; }
.ask-cards { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; }
.ask-card { flex: 1 1 160px; padding: 12px 16px; border: 1px solid #e7eaec; border-top: 3px solid #4D82BF; border-radius: 8px; background: #fff; }
.ask-card-label { font-size: 12px; color: #6b7680; }
.ask-card-value { direction: ltr; text-align: right; font-size: 22px; font-weight: 700; color: #2f3a45; font-variant-numeric: tabular-nums; }
.ask-card-success { border-top-color: #1e8e5a; }
.ask-card-success .ask-card-value { color: #1e8e5a; }
.ask-card-danger { border-top-color: #c0392b; }
.ask-card-danger .ask-card-value { color: #c0392b; }
.ask-link-row { cursor: pointer; }
.ifx-page .ifx-table > tfoot > tr.ask-totals > td { font-weight: 700; border-top: 2px solid #c5cbd1; background: #f8fafc; }
.ask-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 16px; }
.ask-group b { display: block; margin-bottom: 4px; color: #2f3a45; }
.ask-group ul { margin: 0; padding: 0; list-style: none; }
.ask-group li { padding: 3px 0; font-size: 13px; }
.ask-answer-box { position: relative; min-height: 4px; }
.ask-progress { position: absolute; top: -8px; left: 0; right: 0; height: 3px; overflow: hidden; visibility: hidden; border-radius: 2px; }
.ask-progress div { width: 30%; height: 100%; background: #4D82BF; animation: askBar 1s ease-in-out infinite; }
.ask-busy .ask-progress { visibility: visible; }
.ask-busy #askAnswer { opacity: .45; pointer-events: none; transition: opacity .15s; }
.ask-answer { animation: askIn .25s ease-out; }
.ask-skeleton { padding: 16px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; }
.ask-skeleton div { height: 14px; margin: 10px 0; border-radius: 3px; background: linear-gradient(90deg, #f0f2f4 25%, #e4e7ea 50%, #f0f2f4 75%); background-size: 200% 100%; animation: askShimmer 1.2s infinite; }
.ask-skeleton .ask-sk-40 { width: 40%; }
.ask-skeleton .ask-sk-85 { width: 85%; }
.ask-skeleton .ask-sk-70 { width: 70%; }
.ask-elapsed { margin-inline-start: 6px; color: #a0a9b4; }
@keyframes askBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(380%); } }
@keyframes askIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes askShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
/* printing an answer: only on the Ask page (body:has) -- the app menus / footer are hidden there, nowhere else */
@media print {
    .ask-page .no-print, .ask-page .ifx-page-head p, .ask-progress,
    body:has(.ask-page) .navbar-static-side, body:has(.ask-page) .navbar, body:has(.ask-page) .footer { display: none !important; }
    body:has(.ask-page) #page-wrapper { margin: 0 !important; }
    .ask-link-row a { color: inherit; text-decoration: none; }
}
body.dark-mode .ask-card,
body.dark-mode .ask-skeleton { background: transparent; border-color: #334155; }
body.dark-mode .ask-card-value,
body.dark-mode .ask-group b { color: #e2e8f0; }

/* plain page heading (no card): title + one muted line (My day, Ask) */
.ifx-page .ifx-page-head { margin-bottom: 16px; }
.ifx-page .ifx-page-head h2 { margin: 0 0 2px; font-size: 20px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-page-head p { margin: 0; font-size: 13px; }
body.dark-mode .ifx-page .ifx-page-head h2 { color: #e2e8f0; }
/* My day: "live" badge next to the title (grey = not connected, green = live, pulse on each refresh) */
.myday-live { margin-inline-start: 10px; font-size: 11px; font-weight: 400; color: #a0a9b4; }
.myday-live.on { color: #1e8e5a; }
.myday-live.flash i { animation: myday-pulse .8s ease-out; }
@keyframes myday-pulse { from { transform: scale(1.8); } to { transform: scale(1); } }

/* my attendance: small centred card, check-in / check-out times side by side, two full-width buttons */
.ifx-page .ifx-att-card { max-width: 440px; margin: 32px auto; padding: 32px 24px; text-align: center; }
.ifx-page .ifx-att-card .ifx-att-avatar { font-size: 48px; color: #c5cbd1; }
.ifx-page .ifx-att-card h4 { margin: 8px 0 2px; font-size: 18px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-att-card > p { margin: 0 0 16px; }
.ifx-page .ifx-att-card .ifx-alert { margin: 0 0 16px; }
.ifx-page .ifx-att-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ifx-page .ifx-att-times > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid #e7eaec; border-radius: 8px; font-size: 12px; color: #6b7680; }
.ifx-page .ifx-att-times b { font-size: 22px; color: #2f3a45; }
.ifx-page .ifx-att-card > .btn { display: block; width: 100%; height: 44px; margin-top: 8px; font-size: 15px; }
body.dark-mode .ifx-page .ifx-att-times > div { border-color: #334155; }
body.dark-mode .ifx-page .ifx-att-card h4,
body.dark-mode .ifx-page .ifx-att-times b { color: #e2e8f0; }

/* small centred "locked" card with a password box (database maintenance unlock) */
.ifx-page .ifx-lock-card { max-width: 400px; margin: 48px auto; padding: 32px 24px; text-align: center; }
.ifx-page .ifx-lock-card .ifx-lock-icon { font-size: 40px; color: #c0392b; }
.ifx-page .ifx-lock-card h4 { margin: 12px 0 4px; font-size: 18px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-lock-card p { margin: 0 0 16px; font-size: 13px; }
.ifx-page .ifx-lock-card form { display: flex; flex-direction: column; gap: 8px; }
.ifx-page .ifx-lock-card .form-control { height: 40px; text-align: center; }
.ifx-page .ifx-lock-card .btn { height: 40px; }
.ifx-page .ifx-lock-card .ifx-alert { margin: 0 0 12px; text-align: right; }
body.dark-mode .ifx-page .ifx-alert-info,
body.dark-mode .ifx-page .ifx-alert-ok,
body.dark-mode .ifx-page .ifx-alert-danger { background: transparent; }

/* quick access: row of small "add" chips, banners inside a card, the pinned list (drag handle, colour dot, actions) */
.ifx-page .ifx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ifx-page .ifx-banner-pad { margin: 12px 16px 0; }
.ifx-page .ifx-intro .btn { margin-right: auto; }
.ifx-page .ifx-pins { margin: 0; padding: 8px 16px 16px; list-style: none; }
.ifx-page .ifx-pins > li { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; border: 1px solid #e7eaec; border-radius: 6px; background: #fff; }
.ifx-page .ifx-pins > li:hover { border-color: #c9d6e6; }
.ifx-page .ifx-pin-handle { color: #a0a9b4; cursor: move; }
.ifx-page .ifx-pin-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.ifx-page .ifx-pin-text { font-weight: 600; color: #2f3a45; }
.ifx-page .ifx-pin-actions { display: flex; gap: 4px; margin-right: auto; }
body.dark-mode .ifx-page .ifx-pins > li { background: transparent; border-color: #334155; }
body.dark-mode .ifx-page .ifx-pin-text { color: #e2e8f0; }

/* dashboards: headline numbers (coloured top edge via .ifx-stat-*), chart cards, inline label + small input */
.ifx-page .ifx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 16px; }
.ifx-page .ifx-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #e7eaec; border-top: 3px solid var(--ifx-stat, #a0a9b4); border-radius: 8px; background: #fff; color: #6b7680; font-size: 13px; }
.ifx-page .ifx-kpi b { font-size: 30px; font-weight: 700; line-height: 1.1; color: #2f3a45; font-variant-numeric: tabular-nums; }
.ifx-page .ifx-kpi.ifx-stat-red b { color: #c0392b; }
.ifx-page .ifx-kpi.ifx-kpi-zero b { color: #c5cbd1; }
.ifx-page .ifx-chart { margin-bottom: 16px; padding: 16px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ifx-page .ifx-chart > h5 { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-chart-body { position: relative; height: 280px; }
.ifx-page .ifx-filter .ifx-filter-wide { min-width: 280px; }
.ifx-page .ifx-actions .ifx-inline-label { margin: 0; align-self: center; }
.ifx-page .ifx-actions .ifx-inline-input { width: 80px; height: 30px; font-size: 13px; }
body.dark-mode .ifx-page .ifx-kpi,
body.dark-mode .ifx-page .ifx-chart { background: transparent; border-color: #334155; }
body.dark-mode .ifx-page .ifx-kpi { border-top-color: var(--ifx-stat, #a0a9b4); }
body.dark-mode .ifx-page .ifx-kpi b,
body.dark-mode .ifx-page .ifx-chart > h5 { color: #e2e8f0; }

/* image gallery (Gallery page): toolbar, card grid with drag handle, upload progress overlay */
.ifx-page .ifx-gallery-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #eef0f2; }
.ifx-page .ifx-gallery-tip { margin-right: auto; font-size: 12px; }
.ifx-page .ifx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: 560px; overflow-y: auto; padding: 16px; }
.ifx-page .ifx-gallery-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.ifx-page .ifx-gallery-card:hover { border-color: #c9d6e6; box-shadow: 0 4px 10px rgba(16, 24, 40, .08); }
.ifx-page .ifx-gallery-card.drag-over { border: 2px dashed #4D82BF; }
.ifx-page .ifx-gallery-img { aspect-ratio: 1 / 1; border-radius: 6px; background: #f6f7f9; overflow: hidden; }
.ifx-page .ifx-gallery-img img { width: 100%; height: 100%; object-fit: contain; }
.ifx-page .ifx-gallery-handle { position: absolute; top: 12px; right: 12px; z-index: 2; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 6px; background: rgba(255, 255, 255, .92); border: 1px solid #dfe3e8; color: #6b7680; cursor: move; }
.ifx-page .ifx-gallery-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ifx-page .ifx-gallery-meta .form-control { height: 28px; padding: 2px 6px; font-size: 12px; }
.ifx-page .ifx-gallery-actions { display: flex; gap: 4px; }
.ifx-page .ifx-gallery-actions .btn:first-child { flex: 1 1 auto; }
.ifx-upload-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .75); }
.ifx-upload-card { width: 90%; max-width: 420px; padding: 32px; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.ifx-upload-card h4 { margin: 16px 0 4px; font-size: 18px; font-weight: 700; color: #2f3a45; }
.ifx-upload-card p { margin: 0 0 24px; font-size: 13px; color: #6b7680; }
.ifx-upload-card .ifx-meter-caption { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: #6b7680; }
.ifx-upload-card .ifx-meter-track { height: 10px; border-radius: 5px; background: #eef0f2; overflow: hidden; }
.ifx-upload-card .ifx-meter-fill { height: 100%; border-radius: 5px; background: #4D82BF; transition: width .3s ease; }
.ifx-upload-card .ifx-upload-eta { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 6px; background: #f6f7f9; color: #6b7680; font-size: 12px; }
body.dark-mode .ifx-page .ifx-gallery-bar { border-color: #334155; }
body.dark-mode .ifx-page .ifx-gallery-card { background: transparent; border-color: #334155; }
body.dark-mode .ifx-page .ifx-gallery-img { background: #0f172a; }
body.dark-mode .ifx-upload-card { background: #1e293b; }
body.dark-mode .ifx-upload-card h4 { color: #e2e8f0; }

/* one card per plan in a list (installment plans): title + status, actions, a progress bar, expandable details */
.ifx-page .ifx-plan { margin: 0 16px 12px; padding: 12px 16px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; }
.ifx-page .ifx-plan:first-child { margin-top: 16px; }
.ifx-page .ifx-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ifx-page .ifx-plan-title { font-size: 13px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-plan-actions { display: flex; gap: 6px; }
.ifx-page .ifx-plan-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #6b7680; }
.ifx-page .ifx-plan-progress .ifx-meter-track { flex: 1 1 auto; }
.ifx-page .ifx-meter-fill.ifx-meter-done { background: #1e8e5a; }
.ifx-page .ifx-plan .payments-wrap { margin-top: 12px; }
.ifx-page .ifx-plan .payments-wrap .ifx-table > thead > tr > th,
.ifx-page .ifx-plan .payments-wrap .ifx-table > tbody > tr > td { padding: 6px 8px; }
body.dark-mode .ifx-page .ifx-plan { background: transparent; border-color: #334155; }
body.dark-mode .ifx-page .ifx-plan-title { color: #e2e8f0; }

/* rating stars (gold = the score, pale = the rest) */
.ifx-stars { color: #d4a017; letter-spacing: 1px; white-space: nowrap; }
.ifx-stars .ifx-stars-off { color: #dfe3e8; }

/* form card title with a "?" help button that replays the page tour (QuickExpense, Supplier, Installment, Warehouse transfer).
   Was copied into each page's own <style>. */
.qe-form-title { display: flex; align-items: center; gap: 8px; }
.qe-help-btn { width: 24px; height: 24px; padding: 0; border: 1px solid #e7eaec; border-radius: 50%; background: #fff; color: #676a6c; font-size: 13px; line-height: 22px; text-align: center; cursor: pointer; }
.qe-help-btn:hover { background: #f8f9fb; color: #333; }
@keyframes pulse-attention-animation {
    0% { box-shadow: 0 0 0 0 rgba(77, 130, 191, .55); }
    70% { box-shadow: 0 0 0 8px rgba(77, 130, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 130, 191, 0); }
}
.pulse-attention { animation: pulse-attention-animation 1.6s ease-out 3; border-radius: 50%; }

/* Quick expense capture (was the page's own <style>): type picker, channels, amount box, extra lines, file box */
.qe-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.qe-badge-end { margin-inline-start: auto; }
.qe-badge-expense { background: #fdecef; color: #c0392b; }
.qe-badge-receipt { background: #eaf2fb; color: #2f6aa8; }
.qe-badge-mixed { background: #fff4e0; color: #9a5b00; }
#typeSearchInput { margin-bottom: 8px; }
.qe-selected-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #b9cfe8; border-radius: 8px; background: #f4f8fc; font-size: 14px; }
.qe-selected-summary span { font-weight: 600; color: #2f6aa8; }
.qe-selected-summary a { font-size: 12px; color: #6b7680; text-decoration: underline; }
.qe-selected-summary a:hover { color: #2f3a45; }
.qe-search-results { max-height: 280px; overflow-y: auto; margin-bottom: 16px; border: 1px solid #e7eaec; border-radius: 8px; background: #fff; }
.qe-result-item { border-bottom: 1px solid #f1f3f5; }
.qe-result-item:last-child { border-bottom: 0; }
.qe-result-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: 14px; cursor: pointer; }
.qe-result-row:hover { background: #f8f9fb; }
.qe-result-row.expanded { background: #f4f6fa; font-weight: 600; border-right: 3px solid #4D82BF; }
.qe-result-empty { padding: 24px; text-align: center; color: #6b7680; font-size: 13px; }
.qe-channel-list { padding: 4px 16px 12px 24px; border-top: 1px dashed #eef0f2; background: #fbfcfc; }
.qe-channel-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 8px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.qe-channel-row:hover,
.qe-channel-row.selected { background: #eaf2fb; }
.qe-channel-row.selected { font-weight: 600; }
.qe-radio { display: inline-block; width: 16px; min-width: 16px; height: 16px; border: 2px solid #cfd5dc; border-radius: 50%; }
.qe-channel-row.selected .qe-radio { border-color: #4D82BF; background: #4D82BF; box-shadow: inset 0 0 0 3px #fff; }
.qe-amount-box { margin-bottom: 24px; padding: 16px; border: 1px solid #e7eaec; border-radius: 8px; background: #fafbfc; }
.qe-amount-box > label { font-size: 12px; font-weight: 600; color: #6b7680; }
#amountInput { height: 52px; border-radius: 6px; font-size: 24px; font-weight: 700; text-align: center; color: #2f6aa8; font-variant-numeric: tabular-nums; }
.qe-tax-split { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font-size: 13px; color: #6b7680; }
.qe-tax-split strong { color: #2f3a45; font-variant-numeric: tabular-nums; }
.qe-amount-box .qe-currency { margin: 12px 0 0; }
.qe-extra-lines-wrap { margin-top: 16px; }
.qe-extra-line-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; padding: 8px 12px; border: 1px solid #eef0f2; border-radius: 6px; background: #fff; font-size: 13px; }
.qe-line-details { display: flex; flex-grow: 1; justify-content: space-between; margin-inline-end: 16px; }
.qe-line-name { color: #6b7680; }
.qe-line-val { font-weight: 600; color: #2f3a45; font-variant-numeric: tabular-nums; }
.qe-remove-line { padding: 2px 8px; border-radius: 6px; background: #fdecef; color: #c0392b; font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; }
.qe-remove-line:hover { background: #c0392b; color: #fff; text-decoration: none; }
.qe-lines-total { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 16px; border: 1px solid #cfe0f2; border-radius: 6px; background: #eaf2fb; color: #2f6aa8; font-size: 14px; }
.qe-lines-total strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.qe-add-line-trigger { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: #2f6aa8; cursor: pointer; }
.qe-add-line-trigger:hover { color: #234f7d; text-decoration: underline; }
.qe-add-line-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border: 1px dashed #cfd5dc; border-radius: 6px; background: #fff; }
.qe-add-line-form select { flex: 1 1 140px; height: 32px; font-size: 13px; }
.qe-add-line-form input { width: 120px; height: 32px; font-size: 13px; font-weight: 600; text-align: center; }
.qe-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 768px) { .qe-details-grid { grid-template-columns: 1fr; } }
.qe-details-grid .ifx-form-group,
.ifx-page .qe-wide { max-width: none; }
.qe-file-input-wrap { position: relative; }
.qe-file-input-wrap input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.qe-file-input-display { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px dashed #cfd5dc; border-radius: 6px; background: #fafbfc; font-size: 13px; color: #6b7680; }
.qe-file-choose-btn { padding: 4px 10px; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; font-size: 12px; white-space: nowrap; }
.qe-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qe-submit { width: 100%; height: 44px; font-size: 15px; }
.ifx-page .ifx-table > tbody > tr.qe-row-new > td { background: #fff4d6; transition: background-color 1s ease; }
body.dark-mode .qe-selected-summary,
body.dark-mode .qe-amount-box,
body.dark-mode .qe-search-results,
body.dark-mode .qe-extra-line-row,
body.dark-mode .qe-add-line-form,
body.dark-mode .qe-file-input-display { background: transparent; border-color: #334155; }
body.dark-mode .qe-channel-list { background: transparent; border-color: #334155; }

/* info strip at the top of a page (what this screen does) */
.ifx-page .ifx-intro { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; padding: 12px 16px; border-radius: 6px; background: #eef4fb; color: #2f4f73; font-size: 13px; line-height: 1.6; }
.ifx-page .ifx-intro > .fa { margin-top: 3px; color: #4D82BF; }
body.dark-mode .ifx-page .ifx-intro { background: rgba(77, 130, 191, .15); color: #cfe0f3; }

/* simple row list inside a details card (e.g. accounts linked to a marker) */
.ifx-page .ifx-rows { list-style: none; margin: 0; padding: 0 16px 8px; max-height: 300px; overflow-y: auto; }
.ifx-page .ifx-rows > li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f2f4; font-size: 13px; color: #2f3a45; }
.ifx-page .ifx-rows > li:last-child { border-bottom: 0; }
.ifx-page .ifx-rows .ifx-row-end { margin-right: auto; }
.ifx-page .ifx-rows .ifx-row-remove { color: #a0a9b4; }
.ifx-page .ifx-rows .ifx-row-remove:hover { color: #c0392b; }
.ifx-page .ifx-note { margin: 0; padding: 0 16px 8px; font-size: 12px; color: #6b7680; }
.ifx-page .ifx-note-warn { color: #9a5b00; }
.ifx-page .ifx-add-box { padding: 8px 16px 16px; }
body.dark-mode .ifx-page .ifx-rows > li { border-color: #334155; color: #e2e8f0; }

/* ---------- forms ---------- */
.ifx-page .ifx-form { padding: 16px; }
.ifx-page .ifx-form-group { max-width: 420px; margin-bottom: 16px; }
.ifx-page .ifx-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #6b7680; }
.ifx-page .ifx-check { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 400; color: #2f3a45; cursor: pointer; }
.ifx-page .ifx-check input { margin: 0; }
.ifx-page .ifx-hint { margin: -8px 0 0; font-size: 12px; color: #6b7680; }
.ifx-page .ifx-hint-pad { margin: 4px 16px 0; }
.ifx-page .ifx-hint-in { margin: 4px 0 0; }
.ifx-page .ifx-note-flush { padding: 0; }
.ifx-page .ifx-form-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.ifx-page .ifx-form-row .ifx-form-group { flex: 1 1 160px; }
/* a checkbox sitting in a form row: lined up with the inputs next to it */
.ifx-page .ifx-form-row .ifx-form-group-check { display: flex; align-items: flex-end; padding-bottom: 6px; }
/* section title inside a form (the form already has its own padding) */
.ifx-page .ifx-form .ifx-section { margin: 0 0 12px; padding: 12px 0 0; }
/* actions bar at the end of a form that is itself the .ifx-form (no outer card footer) */
.ifx-page .ifx-form-actions.ifx-form-actions-flush { margin: 16px -16px -16px; }
.ifx-page .ifx-inline-input { display: inline-block; width: 100px; height: 24px; padding: 2px 6px; font-size: 12px; vertical-align: middle; }
/* a closing figure (e.g. reconciliation difference): green when settled, amber when not */
.ifx-page .ifx-diff { display: flex; justify-content: space-between; align-items: center; margin: 12px 16px 16px; padding: 12px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.ifx-page .ifx-diff b { font-size: 18px; }
.ifx-page .ifx-diff-ok { background: #e7f6ee; color: #1e7a4c; }
.ifx-page .ifx-diff-warn { background: #fff4e0; color: #9a5b00; }
.ifx-page .ifx-input-short { max-width: 160px; }
.ifx-page .ifx-form-group-wide { max-width: none; }
.ifx-page .ifx-nowrap { white-space: nowrap; }
.ifx-page .ifx-table .ifx-col-status { width: 96px; }
.ifx-page .ifx-form-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #eef0f2; background: #fafbfc; border-radius: 0 0 4px 4px; }

/* ---------- section cards with an icon heading (collapsible panels) ---------- */
.ifx-page .ifx-sec { border: 1px solid #e7eaec; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; margin-bottom: 12px; background: #fff; }
.ifx-page .ifx-sec-head,
.item-detail .panel-heading.collapsible-heading { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #f0f2f4; font-size: 13px; font-weight: 700; color: #2f3a45; }
.it-sec-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.it-sec-blue { background: #eaf1fa; color: #2f6aa8; }
.it-sec-purple { background: #f1ecfa; color: #6a44b0; }
.it-sec-green { background: #e7f6ee; color: #1e7a4c; }
.it-sec-amber { background: #fdf5e1; color: #8a6100; }

/* ---------- tree order (nestable) in details / form cards -- item tree config, account tree config ---------- */
.ifx-page .ifx-tree { padding: 8px 16px 16px; }
.ifx-page .ifx-tree-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 0; border-top: 1px solid #eef0f2; }
.ifx-page .ifx-tree-head h6 { margin: 0; font-size: 12px; font-weight: 700; color: #2f3a45; }
.ifx-page .ifx-tree .dd { max-width: none; }
.ifx-page .ifx-tree .dd-handle { height: auto; min-height: 32px; padding: 6px 12px; border: 1px solid #e7eaec; border-radius: 4px; background: #fff; color: #2f3a45; font-weight: 600; }
.ifx-page .ifx-tree .dd-list .dd-list .dd-handle { background: #fafbfc; font-weight: 400; color: #4a5562; }
.ifx-page .ifx-diag .panel { border-color: #e7eaec; box-shadow: none; }
.ifx-page .ifx-diag .panel-heading { background: #f8f9fb; font-size: 13px; font-weight: 600; color: #2f3a45; }

/* ---------- long-running job overlay (e.g. generating the account tree) ---------- */
.ifx-progress-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, .85); backdrop-filter: blur(4px); }
.ifx-progress-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 450px; padding: 32px; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.ifx-progress-card .spinner-layer { position: relative; background: transparent; height: 60px; margin-bottom: 16px; }
.ifx-progress-card .spinner-element { margin: 0 auto; }
.ifx-progress-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #1e293b; }
.ifx-progress-card p { margin: 0 0 24px; font-size: 14px; color: #64748b; }
.ifx-progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #334155; }
.ifx-progress-meta .ifx-progress-count { color: #4D82BF; }
.ifx-progress-card .progress { height: 12px; margin-bottom: 16px; border-radius: 10px; background: #f1f5f9; box-shadow: none; overflow: hidden; }
.ifx-progress-card .progress-bar { background: #4D82BF; box-shadow: none; transition: width .4s ease; }
.ifx-progress-stat { display: inline-block; min-width: 48%; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; font-size: 13px; color: #475569; }
.ifx-progress-stat .fa { color: #4D82BF; }
.ifx-progress-stat b { display: block; font-size: 16px; color: #4D82BF; direction: ltr; }

/* ---------- Items page: search + filters, list ---------- */
.ifx-page .item-search-box .input-group-addon { background: #fff; color: #a0a9b4; border-left: 0; }
.ifx-page .item-search-box .form-control { border-right: 0; box-shadow: none; }
.ifx-page .item-search-box .input-group:focus-within .input-group-addon,
.ifx-page .item-search-box .input-group:focus-within .form-control { border-color: #4D82BF; }
.ifx-page .item-filter-bar .form-control { height: 32px; font-size: 13px; }
.ifx-page .item-filter-show-discontinued { color: #6b7680; font-size: 13px; height: 32px; }
.item-list-table .ifx-zero { color: #c5cbd1; }
/* six columns next to the tree: tighter than the shared 16px */
.ifx-page .item-list-table.ifx-table > thead > tr > th,
.ifx-page .item-list-table.ifx-table > tbody > tr > td,
.ifx-page .item-list-table.ifx-table > tfoot > tr > td { padding-left: 8px; padding-right: 8px; }
.item-list-table > tfoot > tr > td { padding: 8px 16px; }

/* ---------- Items page: details panel ---------- */
.item-detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; }
.item-detail-tags .it-tag { font-size: 12px; line-height: 20px; }
.item-detail { background: #f5f6f8 !important; padding: 16px !important; }
.item-detail .dashboard-profile-info h2 { font-size: 18px; }
.item-detail .stat-card-label { font-size: 12px; text-transform: none; color: #6b7680; }
/* header card: thin top line in the metal's colour */
.item-detail .dashboard-profile-box { border-radius: 8px; padding: 16px; gap: 16px; border-top: 3px solid #4D82BF; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.item-detail .dashboard-profile-box.it-metal-gold { border-top-color: #d4a017; }
.item-detail .dashboard-profile-box.it-metal-silver { border-top-color: #a0a9b4; }
/* photo: rounded square, loaded at 320px so it stays sharp */
.item-detail .dashboard-profile-avatar { width: 88px; height: 88px; margin: 0; border-radius: 10px; background: #f1f3f5; border: 1px solid #e7eaec; }
.item-detail .dashboard-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
/* base card look (was only in the Items / Accounts page styles) so any page can use the figure cards */
.item-detail .stat-card-box { background: #fff; border: 1px solid #e7eaec; }
.item-detail .stat-card-label { display: flex; font-size: 12px; color: #6b7680; margin-bottom: 4px; }
.item-detail .stat-card-value { font-weight: 700; line-height: 1.2; direction: ltr; overflow-wrap: anywhere; }
.ifx-page .ifx-card-figures { padding: 12px 16px 0 !important; background: transparent !important; }
body.dark-mode .item-detail .stat-card-box { background: transparent; border-color: #334155; }
/* balance cards: icon + top accent per figure */
.item-detail .stat-card-box { border-radius: 8px; border-top: 3px solid var(--it-accent, #e7eaec); text-align: start; padding: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.item-detail .stat-card-label { display: flex; align-items: center; gap: 6px; }
.item-detail .stat-card-label .fa { color: var(--it-accent); font-size: 13px; }
.item-detail .stat-card-value { color: #2f3a45; font-size: 20px; text-align: start; font-variant-numeric: tabular-nums; }
.item-detail .stat-card-value.it-zero { color: #c5cbd1; }
.it-acc-weight { --it-accent: #d4a017; }
.it-acc-count { --it-accent: #4D82BF; }
.it-acc-zircon { --it-accent: #7e57c2; }
.it-acc-green { --it-accent: #1e8e5a; }
.it-acc-silver { --it-accent: #a0a9b4; }
.it-acc-red { --it-accent: #d9534f; }
/* balance cards in one grid row: every card the same height, label on top, figure at the bottom */
.item-detail .it-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.item-detail .it-stat-grid .stat-card-box { height: 100%; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.item-detail .it-stat-grid .stat-card-label { align-items: flex-start; line-height: 1.4; }
.item-detail .it-stat-grid .stat-card-label .fa { margin-top: 2px; }

/* ledger links + debt aging (account details) */
.item-detail .it-link-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 12px; }
.item-detail .it-aging-table { width: 100%; margin: 0; font-size: 12px; border-collapse: separate; border-spacing: 0; border: 1px solid #e7eaec; border-radius: 6px; overflow: hidden; }
.item-detail .it-aging-table th { background: #f8f9fb; color: #6b7680; font-weight: 600; padding: 8px; border-bottom: 1px solid #e7eaec; text-align: center; white-space: nowrap; }
.item-detail .it-aging-table td { padding: 8px; border-top: 1px solid #f0f2f4; text-align: center; color: #2f3a45; direction: ltr; font-variant-numeric: tabular-nums; }
.item-detail .it-aging-table td.it-aging-label { direction: rtl; text-align: start; color: #2f3a45; font-weight: 600; }
.item-detail .it-aging-table td.it-aging-open { font-weight: 700; }
.item-detail .it-aging-table td .it-tag { margin-inline-start: 4px; direction: rtl; }
.item-detail .it-aging-table .it-aging-zero { color: #c5cbd1; }
.item-detail .it-aging-table .it-aging-late { color: #b42318; font-weight: 700; }
.item-detail .it-aging-asof { margin: 8px 0 0; font-size: 12px; color: #6b7680; }
.item-detail .it-aging-asof .fa { margin-inline-end: 4px; }
body.dark-mode .item-detail .it-aging-table { border-color: #334155; }
body.dark-mode .item-detail .it-aging-table th { background: rgba(255, 255, 255, .04); border-color: #334155; }
body.dark-mode .item-detail .it-aging-table td { border-color: #334155; color: #e2e8f0; }

/* section cards (bootstrap panels) */
.item-detail .panel { border: 1px solid #e7eaec; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; margin-bottom: 12px; }
.item-detail .panel-heading.collapsed { border-bottom-color: transparent; }
.item-detail .collapsible-chevron { margin-right: auto; color: #a0a9b4; font-size: 11px; }
.item-detail .panel-body { padding: 4px 16px 8px; }
.item-detail .panel-body .table > tbody > tr > td { border-top: 1px solid #f3f4f6; padding: 8px 4px; vertical-align: middle; font-size: 13px; color: #2f3a45; }
.item-detail .panel-body .table > tbody > tr:first-child > td { border-top: 0; }
.item-detail .panel-body .table > tbody > tr > td.text-muted { color: #6b7680 !important; font-size: 12px; }
.item-detail .panel-body .table-hover > tbody > tr:hover > td { background: #fafbfc; }
.item-detail a.it-link { color: #2f6aa8; font-weight: 600; }


/* ======================================================================================
   Comfort palette (user 2026-11-02: "too white -- make it nicer for long hours at the screen").
   Light mode only (dark mode keeps its own colours). Kept LAST so it wins over the white values above:
   page = cool grey, bars = soft off-white, cards = very light off-white with a gentle border, body text a touch
   softer. Inputs stay white so fields still stand out.
   ====================================================================================== */
body:not(.dark-mode) #page-wrapper.gray-bg,
body:not(.dark-mode) .gray-bg { background-color: #e7ebf0; }
body:not(.dark-mode) { color: #4a5560; }
/* bars at the top of every page */
body:not(.dark-mode) .ifx-topbar .navbar-static-top { background: #f4f6f9; border-bottom-color: #dde3ea; }
body:not(.dark-mode) .favorites-bar { background: #f4f6f9; }
body:not(.dark-mode) .ifx-crumbs { background: #f4f6f9; border-bottom-color: #dde3ea; }
/* cards and their parts */
body:not(.dark-mode) .ifx-page .ifx-card,
body:not(.dark-mode) .ifx-page .ibox-content,
body:not(.dark-mode) .ifx-page .ibox-title,
body:not(.dark-mode) .ifx-page .ibox-footer,
body:not(.dark-mode) .ifx-page .ifx-form-actions { background-color: #fbfcfd; }
body:not(.dark-mode) .ifx-page .ifx-card { border: 1px solid #e1e6ec; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
body:not(.dark-mode) .ifx-page .ifx-table > thead > tr > th { background-color: #f1f4f8; }
body:not(.dark-mode) .ifx-page .ifx-table > tbody > tr:hover > td { background-color: #eef3f9; }
/* inner panels that were pure white on the white card */
body:not(.dark-mode) .ifx-page .ifx-plan,
body:not(.dark-mode) .ifx-page .ifx-kpi,
body:not(.dark-mode) .ifx-page .ifx-chart,
body:not(.dark-mode) .ifx-page .ifx-sec,
body:not(.dark-mode) .ifx-page .ifx-att-card,
body:not(.dark-mode) .ifx-page .ifx-clog-card > .ibox-title.ifx-clog-head,
body:not(.dark-mode) .ifx-page .report-field-box,
body:not(.dark-mode) .ifx-page .ifx-gallery-card,
body:not(.dark-mode) .ifx-page .ifx-pins > li { background-color: #fdfdfe; }
/* popups and the advanced-filter windows: same soft white */
body:not(.dark-mode) .modal.inmodal .modal-header,
body:not(.dark-mode) .modal.inmodal .modal-footer,
body:not(.dark-mode) .modal.ifx-confirm .modal-body,
body:not(.dark-mode) .modal.ifx-confirm .modal-footer,
body:not(.dark-mode) #invAdvFilter .af-head, body:not(.dark-mode) .eaf .eaf-head,
body:not(.dark-mode) #invAdvFilter .af-summary, body:not(.dark-mode) .eaf .eaf-summary,
body:not(.dark-mode) #invAdvFilter .af-results, body:not(.dark-mode) .eaf .eaf-results,
body:not(.dark-mode) #invAdvFilter .af-foot, body:not(.dark-mode) .eaf .eaf-foot { background-color: #fbfcfd; }
/* inputs stay white so the fields still read as fields */
body:not(.dark-mode) .ifx-page .form-control:not([disabled]):not([readonly]) { background-color: #fff; }

/* ======================================================================================
   User 2026-11-02 follow-ups.
   1) Document status badges (invoices, journal entries, inventory, ZATCA) are SOLID again like the old
      badges -- the soft tags were too pale to recognise. Views add .ifx-status next to .it-tag.
   2) The create button ("إنشاء ...", fa-plus) is always the FIRST button in a card's header toolbar.
   3) Dark mode: titles that kept their light-mode dark colour, and the breadcrumb's current-page pill,
      are now light so they read on the dark background.
   ====================================================================================== */
.it-tag.ifx-status { padding: 1px 10px; border-radius: 4px; font-weight: 700; color: #fff; background: #8a96a3; }
.it-tag.ifx-status.it-tag-ok { background: #1ab394; color: #fff; }
.it-tag.ifx-status.it-tag-draft { background: #1c84c6; color: #fff; }
.it-tag.ifx-status.it-tag-stop { background: #ed5565; color: #fff; }
.it-tag.ifx-status.it-tag-purple { background: #7e57c2; color: #fff; }
.it-tag.ifx-status.it-tag-warn { background: #f8ac59; color: #fff; }

.ifx-page .ifx-actions > .btn:has(> .fa-plus),
.ifx-page .ifx-actions > .btn-group:has(> .btn > .fa-plus) { order: -1; }

body.dark-mode .ifx-crumbs .breadcrumb > li.active { background: rgba(77, 130, 191, .25); color: #cfe0f3; }
body.dark-mode .ifx-crumbs .breadcrumb > li > a { color: #8fb8e3; }
body.dark-mode .ifx-page h1, body.dark-mode .ifx-page h2, body.dark-mode .ifx-page h3,
body.dark-mode .ifx-page h4, body.dark-mode .ifx-page h5, body.dark-mode .ifx-page h6,
body.dark-mode .ifx-page legend,
body.dark-mode .ifx-page .ifx-diag .panel-heading,
body.dark-mode .ifx-page .ifx-invt-lane-head > b,
body.dark-mode .ifx-page .zatca-issue-title,
body.dark-mode .item-detail .it-aging-table td.it-aging-label,
body.dark-mode .ifx-progress-card h3,
body.dark-mode .modal-backdrop-custom h4 { color: #e2e8f0; }
/* blue section titles: lighter blue on the dark background */
body.dark-mode .ifx-page .ifx-vc .ibox > .ibox-title h2,
body.dark-mode .ifx-page .ifx-vc .panel-body .panel > .panel-heading,
body.dark-mode .modal-backdrop-custom .ifx-fieldset > legend,
body.dark-mode .ifx-page .ifx-fieldset > legend { color: #8fb8e3; }

/* ===== Shared components (fork A, 2026-11-02): account T-account view, empty states, hidden-page banner,
   pinned world price badge, progress spinner, print confirm icon ===== */

/* document entries loaded by the previewer: the wrapper only exists to give the card an .ifx-page parent */
.ifx-page.ifx-entries-wrap { padding: 0; }

/* account journal, "T-account" view (was a page <style> in AccountFeature/_JournalEntry) */
.ifx-taccount { display: flex; flex-direction: column; height: 650px; margin: 16px; overflow: hidden; border: 1px solid #e1e6ec; border-radius: 8px; background: #fbfcfd; direction: rtl; }
.ifx-taccount-head { display: flex; flex-shrink: 0; background: #f1f4f8; border-bottom: 1px solid #e1e6ec; }
.ifx-taccount-head > div { width: 50%; padding: 8px; text-align: center; font-size: 12px; font-weight: 700; color: #6b7680; }
.ifx-taccount-body { display: flex; flex: 1; min-height: 0; }
.ifx-taccount-side { width: 50%; height: 100%; overflow-y: auto; font-size: 12px; }
.ifx-taccount-side + .ifx-taccount-side { border-right: 1px solid #dfe3e8; }
.ifx-taccount-side::-webkit-scrollbar { width: 6px; }
.ifx-taccount-side::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, .2); border-radius: 3px; }
.ifx-taccount-kind { position: sticky; top: 0; z-index: 1; padding: 6px 12px; background: #eaf1fa; color: #2f6aa8; font-size: 12px; font-weight: 700; text-align: center; }
.ifx-taccount-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px dashed #e7eaec; }
.ifx-taccount-row:hover { background: #eef3f9; }
.ifx-taccount-info { flex: 1; min-width: 0; }
.ifx-taccount-desc { color: #4a5560; word-break: break-word; }
.ifx-taccount-amount { font-weight: 700; direction: ltr; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ifx-taccount .ifx-entries-debit { color: #1e7a4c; }
.ifx-taccount .ifx-entries-credit { color: #a5281b; }
body.dark-mode .ifx-taccount { background: transparent; border-color: #334155; }
body.dark-mode .ifx-taccount-head { background: rgba(255, 255, 255, .04); border-color: #334155; }
body.dark-mode .ifx-taccount-head > div { color: #cbd5e1; }
body.dark-mode .ifx-taccount-side + .ifx-taccount-side { border-color: #334155; }
body.dark-mode .ifx-taccount-kind { background: #1e3a52; color: #cfe0f3; }
body.dark-mode .ifx-taccount-row { border-color: #334155; }
body.dark-mode .ifx-taccount-row:hover { background: rgba(77, 130, 191, .12); }
body.dark-mode .ifx-taccount-desc { color: #e2e8f0; }
body.dark-mode .ifx-taccount .ifx-entries-debit { color: #6fd3a0; }
body.dark-mode .ifx-taccount .ifx-entries-credit { color: #f4a3ab; }

/* empty states (_NoResult card, _NoItems line) -- no .ifx-page parent needed */
.ibox.ifx-noresult { border: 1px solid #e1e6ec; border-radius: 8px; background: #fbfcfd; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ifx-noresult-body { padding: 48px 16px; text-align: center; }
.ifx-noresult-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: #eaf2fb; color: #4D82BF; font-size: 26px; }
.ifx-noresult-body h4 { margin: 0; font-size: 16px; font-weight: 700; color: #6b7680; }
.ifx-noitems { padding: 32px 16px; text-align: center; color: #6b7680; }
.ifx-noitems > .fa { font-size: 32px; color: #c5cbd1; }
.ifx-noitems > p { margin: 8px 0 0; font-size: 14px; }
.ifx-empty > .ifx-noitems { padding: 0; }
body.dark-mode .ibox.ifx-noresult { background: transparent; border-color: #334155; }
body.dark-mode .ifx-noresult-icon { background: rgba(77, 130, 191, .2); color: #8fb8e3; }
body.dark-mode .ifx-noresult-body h4,
body.dark-mode .ifx-noitems { color: #cbd5e1; }
body.dark-mode .ifx-noitems > .fa { color: #64748b; }

/* "this page is not open to everyone" banner for super admins (_PageHiddenBanner) */
.ifx-hidden-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 16px 0; padding: 8px 16px; border: 1px solid; border-radius: 8px; font-size: 13px; }
.ifx-hidden-banner-text { flex: 1; min-width: 200px; }
.ifx-hidden-banner-danger { background: #fdecea; border-color: #f6d3cf; color: #a5281b; }
.ifx-hidden-banner-warn { background: #fdf6ec; border-color: #f5e6cc; color: #8a5a0b; }
body.dark-mode .ifx-hidden-banner-danger { background: rgba(237, 85, 101, .15); border-color: rgba(237, 85, 101, .35); color: #f4a3ab; }
body.dark-mode .ifx-hidden-banner-warn { background: rgba(248, 172, 89, .15); border-color: rgba(248, 172, 89, .35); color: #f8c98a; }

/* pinned world gold price badge in the breadcrumb bar (was a <style> in _PinnedWorldPrice) */
.world-price-breadcrumb-badge { position: absolute; top: 12px; left: 16px; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid #f1dca0; border-radius: 999px; background: #fff8e6; color: #7a5a00; font-size: 12px; font-weight: 700; direction: ltr; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); transition: box-shadow .2s ease; }
.world-price-breadcrumb-badge i { color: #d4a017; }
.world-price-breadcrumb-badge:hover { box-shadow: 0 4px 6px rgba(16, 24, 40, .1); }
.world-price-breadcrumb-badge.is-refreshing { box-shadow: 0 0 0 3px rgba(212, 160, 23, .25); }
body.dark-mode .world-price-breadcrumb-badge { background: rgba(212, 160, 23, .15); border-color: rgba(212, 160, 23, .35); color: #f3d27a; }

/* progress spinner with percentage (_SpinningProgress, tree config pages) */
.ifx-spin-progress { margin: 0 auto; }
.ifx-spin-progress-text { text-align: center; }
.ifx-spin-progress-text .percentage { margin: 8px 0 4px; font-size: 24px; font-weight: 700; color: #2f6aa8; font-variant-numeric: tabular-nums; }
.ifx-spin-progress-text .progress-message { margin: 0; font-size: 13px; color: #6b7680; }
body.dark-mode .ifx-spin-progress-text .percentage { color: #8fb8e3; }
body.dark-mode .ifx-spin-progress-text .progress-message { color: #cbd5e1; }

/* print confirmation popup icon (was an inline teal colour) */
.modal.inmodal .modal-header .modal-icon.ifx-modal-icon-print { background: #eaf2fb; color: #2f6aa8; }
body.dark-mode .modal.inmodal .modal-header .modal-icon { background: rgba(77, 130, 191, .2); color: #8fb8e3; }




/* ======================================================================================
   Tenantz shell + shared views (fork TZ-A, 2026-11-03): top bar pills, side-menu profile, footer, validation
   summary, plain-layout pages (error, redirect, dev pages), redirect-with-message page, wide document card
   (terms / privacy / contact) inside the sign-in frame, dashboard welcome. Comfort palette: cards #fbfcfd.
   ====================================================================================== */

/* --- top bar: buttons that carry text (languages, log out) are pills, not circles --- */
.ifx-topbar .navbar-top-links > li > a.tz-topbar-pill { gap: 6px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.ifx-topbar .navbar-top-links > li > a.tz-topbar-pill > .fa { margin: 0; }
.ifx-topbar .navbar-top-links > li > a.tz-topbar-logout:hover { background: #fdecef; color: #c0392b; }
.ifx-topbar #logoutForm { margin: 0; }
.ifx-topbar .navbar-top-links .dropdown-languages > li > a { padding: 8px 16px; border-radius: 6px; }

/* --- language menu (SharedFeature/_SelectLanguagePartial, same as Solitaires) + theme switch (2026-11-05) --- */
.ifx-topbar .navbar-top-links > li > a.ifx-lang-pill { gap: 6px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.ifx-topbar .navbar-top-links > li > a.ifx-lang-pill > .fa { margin: 0; }
.ifx-topbar .dropdown-languages { width: auto; min-width: 180px; padding: 6px; }
.ifx-topbar .dropdown-languages form { margin: 0; }
.ifx-lang-item { display: block; width: 100%; padding: 9px 16px; border: 0; border-radius: 6px; background: transparent; color: #2f3a45; font-size: 13px; line-height: 1.5; text-align: start; white-space: nowrap; }
.ifx-lang-item:hover { background: #f4f6f9; }
.ifx-lang-item.active { background: #eaf2fb; color: #2f6aa8; font-weight: 600; }
/* sign-in pages footer: language buttons + theme button in one small row */
.tz-auth-prefs { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.ifx-lang-inline { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: #6b7680; }
.ifx-lang-inline .ifx-lang-item,
.tz-auth-prefs .tz-auth-theme { display: inline-block; width: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.tz-auth-prefs .tz-auth-theme { color: #6b7680; }
body.dark-mode .ifx-lang-item { color: #e2e8f0; }
body.dark-mode .ifx-lang-item:hover { background: rgba(255, 255, 255, .06); }
body.dark-mode .ifx-lang-item.active { background: rgba(77, 130, 191, .25); color: #cfe0f3; }
body.dark-mode .ifx-lang-inline,
body.dark-mode .tz-auth-prefs .tz-auth-theme { color: #94a3b8; }

/* --- side menu: the profile block (was a link wrapped around a link) --- */
#side-menu > li.nav-header .tz-nav-profile { display: block; margin-top: 8px; }
#side-menu > li.nav-header .tz-nav-profile a { color: #e2e8f0; }
#side-menu > li.nav-header .tz-nav-profile a:hover { color: #fff; }

/* --- page footer (same as Solitaires .ifx-footer) --- */
.footer.ifx-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 24px; border-top: 1px solid #dde3ea; background: #f4f6f9; color: #6b7680; font-size: 12px; }
.ifx-footer .ifx-footer-start,
.ifx-footer .ifx-footer-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ifx-footer .ifx-footer-item .fa { color: #a0a9b4; margin-inline-end: 4px; }
.ifx-footer strong { color: #2f3a45; font-weight: 600; }
.ifx-footer .ifx-footer-version { padding: 0 8px; border-radius: 4px; background: #e7ebf0; color: #4a5562; font-size: 11px; font-weight: 600; line-height: 20px; direction: ltr; }

/* --- validation summary (shared _ValidationSummary; was style="color: red") --- */
.tz-valsum.validation-summary-errors { margin: 0 0 16px; padding: 8px 12px; border: 1px solid #f5c6cf; border-radius: 6px; background: #fdecef; color: #9b2335; font-size: 13px; }
.tz-valsum.validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }
.tz-valsum.validation-summary-valid { display: none; }

/* --- pages on the plain _Layout (no side menu): light page instead of the slate body colour --- */
body.tz-plain-body { margin-bottom: 0; background-color: #e7ebf0; color: #4a5560; font-family: almarai, sans-serif; }
body.tz-plain-body .body-container { padding-top: 32px; padding-bottom: 32px; }

/* --- error page (SharedFeature/Error) --- */
.tz-error { display: flex; justify-content: center; }
.tz-error .tz-error-card { width: 100%; max-width: 520px; padding: 32px; border: 1px solid #e1e6ec; border-radius: 8px; background: #fbfcfd; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06); text-align: center; }
.tz-error .tz-error-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: #fdecef; color: #c0392b; font-size: 24px; }
.tz-error h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #2f3a45; }
.tz-error .tz-error-sub { margin: 0 0 24px; font-size: 13px; line-height: 1.7; color: #6b7680; }
.tz-error .tz-error-details { margin: 0 0 24px; padding: 12px 16px; border: 1px solid #eef0f2; border-radius: 6px; background: #fdfdfe; text-align: start; }
.tz-error .tz-error-details dt { font-size: 12px; font-weight: 600; color: #6b7680; }
.tz-error .tz-error-details dd { margin: 0 0 8px; font-size: 13px; color: #2f3a45; word-break: break-word; }
.tz-error .tz-error-details dd:last-child { margin-bottom: 0; }
.tz-error .tz-error-ltr { direction: ltr; text-align: start; font-family: Consolas, monospace; font-size: 12px; }

/* --- "taking you to your site" (SharedFeature/Redirect; was a page <style>) --- */
body.tz-plain-body:has(.tz-redirect) { height: 100vh; overflow: hidden; background-color: #1e293b; }
.tz-redirect-bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); }
.tz-redirect { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 48px; }
.tz-redirect .tz-redirect-card { max-width: 520px; padding: 24px 32px; border-radius: 10px; background: rgba(15, 23, 42, .6); color: #fff; text-align: center; box-shadow: 0 20px 40px rgba(15, 23, 42, .3); }
.tz-redirect .tz-redirect-spin { display: block; margin-bottom: 12px; font-size: 24px; color: #8fb8e3; }
.tz-redirect h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; line-height: 1.4; }
.tz-redirect p { margin: 0; font-size: 15px; color: #cbd5e1; }

/* --- message before entering the site (SharedFeature/RedirectWithModal; was a page <style>). The establishment's
       colours arrive as --tz-rm-* variables on .tz-rm --- */
body.tz-rm-body { margin: 0; min-height: 100vh; background: #222 url('/img/redirect-background.png') center / cover no-repeat; font-family: almarai, 'Segoe UI', Tahoma, sans-serif; }
.tz-rm { position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .65); }
.tz-rm .tz-rm-card { width: 90%; max-width: 600px; padding: 48px 40px; border: 1px solid rgba(255, 255, 255, .2); border-top-color: rgba(255, 255, 255, .4); border-left-color: rgba(255, 255, 255, .4); border-radius: 20px; background: linear-gradient(135deg, var(--tz-rm-bg1, rgba(30, 41, 59, .8)) 0%, var(--tz-rm-bg2, rgba(30, 41, 59, .2)) 100%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 32px rgba(0, 0, 0, .5); text-align: center; animation: tz-rm-in .5s ease-out both; }
.tz-rm .tz-rm-bigger { margin: 0 0 16px; font-size: 2.8rem; font-weight: 700; line-height: 1.3; color: var(--tz-rm-c1, #fff); }
.tz-rm .tz-rm-big { margin: 0 0 16px; font-size: 1.8rem; font-weight: 600; line-height: 1.4; color: var(--tz-rm-c2, #e2e8f0); }
.tz-rm .tz-rm-small { margin: 0; font-size: 1.1rem; line-height: 1.7; color: var(--tz-rm-c3, #cbd5e1); opacity: .9; }
.tz-rm .tz-rm-continue { margin-top: 32px; padding: 12px 48px; border: 0; border-radius: 999px; background: #4D82BF; color: #fff; font-family: inherit; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.tz-rm .tz-rm-continue:hover { background: #3f6fa6; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(77, 130, 191, .4); }
.tz-rm .tz-rm-continue:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
@keyframes tz-rm-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .tz-rm .tz-rm-card { animation: none; } }

/* --- terms / privacy / contact: one wide card inside the sign-in frame (.tz-auth from the auth pages) --- */
.tz-auth .tz-auth-card.tz-doc { max-width: 880px; padding: 32px 40px; }
.tz-auth .tz-auth-card.tz-doc + .tz-auth-foot { max-width: 880px; }
.tz-doc .tz-doc-title { margin: 0 0 24px; font-size: 22px; font-weight: 700; color: #2f3a45; text-align: center; }
.tz-doc .tz-doc-body { font-size: 14px; line-height: 1.75; color: #4a5560; }
.tz-doc .tz-doc-body h3,
.tz-doc .tz-doc-body h4 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; color: #2f3a45; }
.tz-doc .tz-doc-body p { margin: 0 0 12px; }
.tz-doc .tz-doc-body ul,
.tz-doc .tz-doc-body ol { margin: 0 0 12px; padding-inline-start: 24px; }
.tz-doc .tz-doc-body a { color: #2f6aa8; }
.tz-doc .tz-contact { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px; align-items: start; }
.tz-doc .tz-contact-info { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 16px; border: 1px solid #eef0f2; border-radius: 8px; background: #fdfdfe; font-style: normal; font-size: 14px; color: #2f3a45; }
.tz-doc .tz-contact-label { font-size: 12px; font-weight: 600; color: #6b7680; }
.tz-doc .tz-contact-label .fa { margin-inline-end: 4px; color: #4D82BF; }
.tz-doc .tz-contact-map { overflow: hidden; border: 1px solid #e1e6ec; border-radius: 8px; }
.tz-doc .tz-contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 767px) { .tz-doc .tz-contact { grid-template-columns: 1fr; } .tz-auth .tz-auth-card.tz-doc { padding: 24px 16px; } }

/* --- development pages (Home/Index, Diagnostics) --- */
.ifx-page.tz-dev .ifx-card { margin-bottom: 16px; }
.ifx-page.tz-dev .ifx-title .fa { margin-inline-end: 4px; color: #4D82BF; }
.ifx-page.tz-dev .tz-dev-heading { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #2f3a45; }
.ifx-page.tz-dev .tz-dev-body { padding: 16px; }
.ifx-page.tz-dev .tz-dev-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ifx-page.tz-dev .tz-dev-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; color: #2f6aa8; font-size: 13px; }
.ifx-page.tz-dev .tz-dev-links a:hover { background: #eaf2fb; text-decoration: none; }
.ifx-page.tz-dev .tz-dev-wrap { word-break: break-all; }
.ifx-page.tz-dev .tz-dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.ifx-page.tz-dev .tz-dev-dl { margin: 0; padding: 16px; }
.ifx-page.tz-dev .tz-dev-dl dt { font-size: 12px; font-weight: 600; color: #6b7680; }
.ifx-page.tz-dev .tz-dev-dl dd { margin: 0 0 12px; font-size: 13px; color: #2f3a45; word-break: break-all; }

/* --- consent scope row: the "important" mark and the "required" tag --- */
.tz-scope-emph { margin-inline-start: 4px; color: #c0392b; }

/* --- home (NewDashboard, shown when the user has no website to go to) --- */
.ifx-page.tz-dash .tz-dash-hello { display: flex; align-items: center; gap: 16px; padding: 24px; }
.ifx-page.tz-dash .tz-dash-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #eaf2fb; color: #4D82BF; font-size: 22px; }
.ifx-page.tz-dash .tz-dash-hello h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #2f3a45; }
.ifx-page.tz-dash .tz-dash-hello p { margin: 0; font-size: 13px; color: #6b7680; }
.ifx-page.tz-dash .tz-dash-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.ifx-page.tz-dash .tz-dash-link { display: flex; align-items: center; gap: 12px; padding: 16px; color: #2f3a45; font-size: 14px; font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.ifx-page.tz-dash .tz-dash-link .fa { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: #eaf2fb; color: #4D82BF; font-size: 16px; }
.ifx-page.tz-dash .tz-dash-link:hover { border-color: #c6dbf1; box-shadow: 0 4px 10px rgba(16, 24, 40, .08); text-decoration: none; }



/* ======================================================================================
   Tenantz sign-in pages (fork TZ-B, 2026-11-03): one centred card for every page under _Layout_Auth --
   Login, Signup, forgot / reset password, confirmations, two-factor, recovery code, logout, access denied,
   consent, device code, grants. Markup: .tz-auth > .tz-auth-card (+ .tz-auth-wide for consent / grants)
   > .tz-auth-brand, .tz-auth-title, .tz-auth-sub, form, .tz-auth-links; .tz-auth-foot under the card.
   ====================================================================================== */
body.tz-auth-body { min-height: 100vh; background-color: #e7ebf0; color: #4a5560; font-family: almarai, sans-serif; }
.tz-auth { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 16px; }

/* the card */
.tz-auth .tz-auth-card { width: 100%; max-width: 400px; padding: 32px 32px 24px; background: #fbfcfd; border: 1px solid #e1e6ec; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06); text-align: right; }
.tz-auth .tz-auth-card.tz-auth-wide { max-width: 640px; }
html[dir="ltr"] .tz-auth .tz-auth-card { text-align: left; }

/* brand: logo + system name, then the title and one muted line */
.tz-auth .tz-auth-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.tz-auth .tz-auth-brand a { display: inline-block; }
.tz-auth .tz-auth-logo { display: block; max-width: 160px; max-height: 64px; width: auto; height: auto; }
.tz-auth .tz-auth-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #2f3a45; text-align: center; }
.tz-auth .tz-auth-sub { margin: 0 0 24px; font-size: 13px; line-height: 1.7; color: #6b7680; text-align: center; }
.tz-auth .tz-auth-sub strong { color: #2f3a45; }

/* status icon on the confirmation / message pages (colour = meaning) */
.tz-auth .tz-auth-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; font-size: 20px; background: #eef4fb; color: #4d82bf; }
.tz-auth .tz-auth-icon-ok { background: #e9f7ef; color: #1e7a4c; }
.tz-auth .tz-auth-icon-warn { background: #fdf3e3; color: #a86a12; }
.tz-auth .tz-auth-icon-danger { background: #fdecef; color: #c0392b; }

/* fields: small muted label above a 40px white input */
.tz-auth .form-group { margin-bottom: 16px; }
.tz-auth .tz-auth-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #6b7680; }
.tz-auth .form-control { height: 40px; padding: 8px 12px; border: 1px solid #d5dbe2; border-radius: 6px; background-color: #fff; box-shadow: none; font-size: 14px; color: #2f3a45; }
.tz-auth .form-control:focus { border-color: #4d82bf; box-shadow: 0 0 0 3px rgba(77, 130, 191, .18); outline: 0; }
.tz-auth .tz-auth-code { font-size: 18px; letter-spacing: 4px; text-align: center; direction: ltr; }
.tz-auth .field-validation-error,
.tz-auth .text-danger.field-validation-valid { display: block; margin-top: 4px; font-size: 12px; }

/* error summary at the top of a form */
.tz-auth .validation-summary-errors { margin: 0 0 16px; padding: 8px 12px; border: 1px solid #f5c6cf; border-radius: 6px; background: #fdecef; color: #9b2335; font-size: 13px; }
.tz-auth .validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }
.tz-auth .validation-summary-valid { display: none; }

/* "remember me" row: checkbox + label on one line */
.tz-auth .tz-auth-check { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; color: #4a5560; }
.tz-auth .tz-auth-check label { margin: 0; font-weight: 500; cursor: pointer; }

/* actions: the main button full width; secondary ones white under it */
.tz-auth .tz-auth-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tz-auth .tz-auth-actions .btn { width: 100%; height: 40px; margin: 0; }
.tz-auth .tz-auth-actions-row { flex-direction: row; }
.tz-auth .tz-auth-actions-row .btn { flex: 1 1 0; width: auto; }

/* secondary links under the form (muted) */
.tz-auth .tz-auth-links { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eef0f2; font-size: 13px; color: #6b7680; text-align: center; }
.tz-auth .tz-auth-links a { color: #2f6aa8; font-weight: 600; }
.tz-auth .tz-auth-links a + a { margin-inline-start: 16px; }

/* footer under the card: copyright + terms / privacy / contact */
.tz-auth .tz-auth-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; width: 100%; max-width: 400px; margin-top: 16px; font-size: 12px; color: #8a96a3; }
.tz-auth .tz-auth-card.tz-auth-wide + .tz-auth-foot { max-width: 640px; }
.tz-auth .tz-auth-foot nav { display: flex; gap: 12px; }
.tz-auth .tz-auth-foot a { color: #6b7680; }
.tz-auth .tz-auth-foot a:hover { color: #2f6aa8; }

/* consent / device / grants: sections of permission rows (rows come from SharedFeature/_ScopeListItem) */
.tz-auth .tz-auth-client { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.tz-auth .tz-auth-client img { max-width: 48px; max-height: 48px; border-radius: 8px; }
.tz-auth .tz-auth-sec { margin-bottom: 16px; border: 1px solid #e1e6ec; border-radius: 8px; background: #fdfdfe; overflow: hidden; }
.tz-auth .tz-auth-sec-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #eef0f2; background: #f4f6f9; font-size: 12px; font-weight: 700; color: #4a5560; }
.tz-auth .tz-auth-sec-head .fa { color: #4d82bf; }
.tz-auth .tz-auth-sec-body { padding: 12px 16px; }
.tz-auth .tz-auth-sec .list-group { margin: 0; }
.tz-auth .tz-auth-sec .list-group-item { padding: 8px 16px; border: 0; border-bottom: 1px solid #eef0f2; border-radius: 0; background: transparent; font-size: 13px; }
.tz-auth .tz-auth-sec .list-group-item:last-child { border-bottom: 0; }
.tz-auth .tz-auth-sec .list-group-item label { margin: 0; font-weight: 500; color: #2f3a45; }
.tz-auth .tz-auth-sec .list-group-item input[type="checkbox"] { margin: 0 0 0 8px; vertical-align: middle; }
.tz-auth .tz-auth-sec .consent-description { padding-inline-start: 24px; }
.tz-auth .tz-auth-sec .consent-description label { font-size: 12px; font-weight: 400; color: #6b7680; }
.tz-auth .tz-auth-sec ul.tz-auth-names { margin: 4px 0 0; padding-inline-start: 18px; color: #4a5560; }

/* grants: one section per application, revoke at the end of its header */
.tz-auth .tz-auth-sec-head .tz-auth-sec-end { margin-inline-start: auto; }
.tz-auth .tz-auth-sec-head img { max-width: 24px; max-height: 24px; border-radius: 4px; }
.tz-auth .tz-auth-meta { display: flex; gap: 8px; padding: 4px 0; font-size: 13px; }
.tz-auth .tz-auth-meta > span:first-child { min-width: 96px; font-size: 12px; font-weight: 600; color: #6b7680; }
.tz-auth .tz-auth-empty { padding: 16px; border: 1px dashed #d5dbe2; border-radius: 8px; font-size: 13px; color: #6b7680; text-align: center; }

/* long text pages on the same layout (Home: Terms, Privacy policy, Contact) keep their bootstrap .container --
   give it the card surface so they sit on the grey page like the sign-in card */
.tz-auth > .container { max-width: 100%; margin: 0; padding: 32px; background: #fbfcfd; border: 1px solid #e1e6ec; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.tz-auth > .container + .tz-auth-foot { max-width: 960px; }

/* the sign-out iframe is only there to call the client apps */
.tz-auth iframe.signout { display: none; }

@media (max-width: 480px) {
    .tz-auth { justify-content: flex-start; padding: 16px 8px; }
    .tz-auth .tz-auth-card { padding: 24px 16px 16px; }
    .tz-auth .tz-auth-actions-row { flex-direction: column; }
}



/* ======================================================================================
   Manage my account (Features/ManageFeature: profile, email, password, 2FA, external logins, personal data).
   One card: a vertical menu on the start side, the chosen page on the other. Fork TZ-C, 2026-11-03.
   ====================================================================================== */
.ifx-page .tz-manage-card { border: 1px solid #e1e6ec; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ifx-page .tz-manage-card .ifx-title h5 .fa { margin-inline-end: 6px; color: #2f6aa8; }
.ifx-page .tz-manage-body { display: flex; align-items: stretch; min-height: 360px; }

/* --- menu --- */
.ifx-page .tz-manage-nav { flex: 0 0 230px; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-inline-end: 1px solid #eef0f2; background: #f7f9fb; border-radius: 0 0 0 4px; }
.ifx-page .tz-manage-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; color: #4a5560; font-size: 13px; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.ifx-page .tz-manage-link .fa { width: 16px; text-align: center; color: #8a96a3; }
.ifx-page .tz-manage-link:hover,
.ifx-page .tz-manage-link:focus { background: #eef2f6; color: #2f3a45; text-decoration: none; }
.ifx-page .tz-manage-link.active { background: #eaf2fb; color: #2f6aa8; font-weight: 700; }
.ifx-page .tz-manage-link.active .fa { color: #2f6aa8; }

/* --- the chosen page --- */
.ifx-page .tz-manage-content { flex: 1 1 auto; min-width: 0; padding: 24px; }
.ifx-page .tz-manage-pane { max-width: 560px; }
.ifx-page .tz-manage-pane-head { margin-bottom: 16px; }
.ifx-page .tz-manage-pane-head h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #2f3a45; }
.ifx-page .tz-manage-pane-head p { margin: 0; font-size: 13px; color: #6b7680; line-height: 1.7; }
.ifx-page .tz-manage-sub { margin: 24px 0 8px; font-size: 13px; font-weight: 700; color: #2f3a45; }
.ifx-page .tz-manage-pane .ifx-form-group { max-width: none; }
.ifx-page .tz-manage-pane .ifx-alert { margin: 0 0 16px; }
.ifx-page .tz-manage-pane .ifx-alert p { margin: 0 0 4px; }
.ifx-page .tz-manage-pane .ifx-alert p:last-child { margin-bottom: 0; }
.ifx-page .tz-manage-pane .ifx-alert .fa { margin-inline-end: 6px; }
.ifx-page .tz-manage-alert-warn { padding: 12px 16px; border: 1px solid #f3dcae; border-radius: 8px; background: #fff7e8; color: #8a5300; font-size: 13px; line-height: 1.7; }
.ifx-page .tz-manage-status { display: flex; align-items: flex-start; gap: 8px; }
.ifx-page .tz-manage-status .close { order: 2; margin-inline-start: auto; float: none; font-size: 18px; line-height: 1; }

/* validation summary: hidden while empty, a soft red box once it has errors */
.ifx-page .tz-manage-pane .validation-summary-valid { display: none; }
.ifx-page .tz-manage-pane .validation-summary-errors { margin: 0 0 16px; padding: 10px 16px; border: 1px solid #f5c6cf; border-radius: 8px; background: #fdecef; color: #9b2335; font-size: 13px; }
.ifx-page .tz-manage-pane .validation-summary-errors ul { margin: 0; padding-inline-start: 18px; }
.ifx-page .tz-manage-pane .field-validation-error { display: block; margin-top: 4px; font-size: 12px; }

/* actions under a form / a notice */
.ifx-page .tz-manage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid #eef0f2; }
.ifx-page .tz-manage-actions form { margin: 0; }
.ifx-page .tz-manage-actions-plain { border-top: 0; padding-top: 0; }

/* confirmed email: green tick in the addon */
.ifx-page .tz-manage-ok { background: #e9f7ef; border-color: #c6ebd5; color: #1e7a4c; }
.ifx-page .tz-manage-link-btn { padding: 4px 0 0; font-size: 12px; }

/* authenticator setup: numbered steps, key, QR */
.ifx-page .tz-manage-steps { margin: 0; padding: 0; list-style: none; counter-reset: tzstep; }
.ifx-page .tz-manage-steps > li { position: relative; margin: 0 0 16px; padding-inline-start: 40px; counter-increment: tzstep; font-size: 13px; line-height: 1.7; color: #2f3a45; }
.ifx-page .tz-manage-steps > li::before { content: counter(tzstep); position: absolute; top: 0; inset-inline-start: 0; width: 26px; height: 26px; border-radius: 50%; background: #eaf2fb; color: #2f6aa8; font-weight: 700; font-size: 12px; line-height: 26px; text-align: center; }
.ifx-page .tz-manage-steps > li p { margin: 0 0 8px; }
.ifx-page .tz-manage-steps a { margin-inline-start: 4px; }
.ifx-page .tz-manage-key { display: inline-block; padding: 2px 10px; border-radius: 6px; background: #f1f3f5; color: #2f3a45; font-family: Consolas, monospace; font-size: 13px; letter-spacing: .5px; direction: ltr; box-shadow: none; }
.ifx-page .tz-manage-qr { display: inline-block; margin-top: 4px; padding: 8px; border: 1px solid #e1e6ec; border-radius: 8px; background: #fff; }
.ifx-page .tz-manage-qr img,
.ifx-page .tz-manage-qr canvas { display: block; }
.ifx-page .tz-manage-code-input { max-width: 200px; direction: ltr; letter-spacing: 2px; }

/* recovery codes: a grid of code chips */
.ifx-page .tz-manage-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 8px; }
.ifx-page .tz-manage-codes code { display: block; padding: 6px 12px; border: 1px solid #e1e6ec; border-radius: 6px; background: #fdfdfe; color: #2f3a45; font-size: 13px; text-align: center; direction: ltr; }

/* external logins list */
.ifx-page .tz-manage-logins { margin: 0 0 16px; }
.ifx-page .tz-manage-logins td { vertical-align: middle !important; }
.ifx-page .tz-manage-logins td:last-child { width: 1%; white-space: nowrap; }
.ifx-page .tz-manage-logins form { margin: 0; }

@media (max-width: 767px) {
    .ifx-page .tz-manage-body { flex-direction: column; }
    .ifx-page .tz-manage-nav { flex: none; flex-direction: row; flex-wrap: wrap; border-inline-end: 0; border-bottom: 1px solid #eef0f2; border-radius: 0; }
    .ifx-page .tz-manage-content { padding: 16px; }
}



/* ======================================================================================
   Tenantz -- Branches (BranchFeature) and Roles + permission bundles (RoleFeature; was the Index page's <style>)
   ====================================================================================== */

/* ---- branches: English name under the Arabic one, the two print logos as small previews ---- */
.ifx-page .tz-branch-sub { display: block; margin-top: 2px; font-size: 12px; direction: ltr; text-align: start; }
.ifx-page .tz-branch-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; }
.ifx-page .tz-branch-logos-edit { padding: 8px 0 0; }
.ifx-page .tz-branch-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 12px; border: 1px dashed #d5dbe2; border-radius: 8px; background: #fdfdfe; color: #6b7680; font-size: 12px; font-weight: 400; text-align: center; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ifx-page .tz-branch-logo:hover, .ifx-page .tz-branch-logo:focus-within { border-color: #4d82bf; background: #f5f8fc; color: #2f6aa8; text-decoration: none; }
.ifx-page .tz-branch-logo img { width: 96px; height: 96px; object-fit: contain; border-radius: 6px; background: #fff; }
/* the real file input stays reachable for the keyboard but out of sight; the picture is the button */
.ifx-page .tz-branch-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---- roles / bundles switch above the two sections ---- */
.ifx-page .tz-role-toggle { display: inline-flex; margin: 0 0 16px; }
.ifx-page .tz-role-toggle .btn.active { background: #4d82bf; border-color: #4d82bf; color: #fff; box-shadow: none; }

/* ---- lists ---- */
.ifx-page .tz-role-icon-col { width: 40px; text-align: center; }
.ifx-page .tz-role-ico-bundle { color: #4d82bf; }
.ifx-page .tz-role-ico-key { color: #a0a9b4; }
.ifx-page .tz-role-path { text-align: start; max-width: 100%; overflow-wrap: anywhere; }

/* ---- details: permission chips, read-only note ---- */
.ifx-page .tz-role-perms { padding: 0 16px 16px; }
.ifx-page .tz-role-perms > .ifx-label { display: block; margin-bottom: 8px; }
.ifx-page .tz-role-chips { display: flex; flex-wrap: wrap; gap: 4px; max-height: 320px; overflow-y: auto; }
.ifx-page .tz-role-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 4px; background: #eaf1fa; color: #2f6aa8; font-size: 11px; line-height: 20px; }
.ifx-page .tz-role-note { margin: 0 16px 16px; padding: 8px 12px; border-radius: 6px; background: #f4f6f9; color: #6b7680; font-size: 12px; }
.ifx-page .tz-role-hint { display: block; margin-top: 4px; color: #8a96a3; font-size: 12px; }

/* ---- bundle form: permission tree (bootstrap-treeview; also used by the users page's #permissionTree) ---- */
.ifx-page .tz-role-tree-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ifx-page .tz-role-tree-head .ifx-label { margin: 0; }
.ifx-page .tz-role-tree-search { margin-bottom: 8px; }
.permission-tree-box { position: relative; height: 450px; overflow-y: auto; border: 1px solid #e1e6ec; border-radius: 8px; background: #fff; }
.permission-tree-box .treeview .list-group-item { display: flex; align-items: center; margin: 0; padding: 8px 16px !important; border: 0; border-bottom: 1px solid #f0f2f4; direction: rtl; text-align: right; cursor: pointer; user-select: none; transition: background-color .15s ease; }
.permission-tree-box .treeview .list-group-item:not(.node-disabled):hover { background: #f7f8fa; }
.permission-tree-box .treeview span.icon { display: inline-block; width: 22px; font-size: 16px; line-height: 1; text-align: center; }
.permission-tree-box .treeview .check-icon { margin: 0 0 0 8px; cursor: pointer; }
.permission-tree-box .treeview .far.fa-square { margin-left: 8px; color: #c4cbd3; font-size: 18px; }
.permission-tree-box .treeview .list-group-item:hover .far.fa-square { color: #8a96a3; }
.permission-tree-box .treeview .fas.fa-check-square { margin-left: 8px; color: #4d82bf; font-size: 18px; }
.permission-tree-box .treeview .fa-folder { color: #f8ac59; }
.permission-tree-box .treeview .fa-user-shield, .permission-tree-box .treeview .fa-shield-alt { color: #1c84c6; }
.permission-tree-box .treeview .click-collapse, .permission-tree-box .treeview .click-expand { margin: 0 auto 0 4px; color: #a0a9b4; font-size: 12px; }
.permission-tree-box .node-selected { background: #eaf1fa !important; color: #2f6aa8 !important; font-weight: 700; border-right: 4px solid #4d82bf !important; }
.permission-tree-box .highlighted-node { border: 2px solid #4d82bf; border-radius: 4px; background: #eaf1fa !important; }
/* found from the search box: a short yellow fade (bundleVM.js adds the class) */
.permission-tree-box .tz-role-flash { animation: tz-role-flash 1.5s ease-out; }
@keyframes tz-role-flash { from { background-color: #fff6cc; } to { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .permission-tree-box .tz-role-flash { animation: none; background-color: #fff6cc; } }



/* ======================================================================================
   Users page (UserFeature/Views: Index, _List, _Detail, _CreateEdit, _CreateDefaultData; script js/Features/userVM.js).
   Page wrapper is .ifx-page.tz-user. The permission tree rules were the page's own <style> block (moved here, duplicates merged).
   ====================================================================================== */

/* ---- list: photo column, avatar, "today only" dot ---- */
.tz-user .ifx-table .tz-user-col-photo { width: 56px; padding-left: 0; padding-right: 16px; }
.tz-user .tz-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #eef1f4; border: 1px solid #e1e6ec; }
.tz-user .tz-user-avatar-lg { width: 56px; height: 56px; }
.tz-user .tz-user-avatar-xl { width: 96px; height: 96px; }
.tz-user .tz-user-today-dot { display: inline-block; width: 8px; height: 8px; margin-inline-start: 4px; border-radius: 50%; background: #a62f3b; vertical-align: middle; }

/* ---- details: who card (photo, name, user name, status) ---- */
.tz-user .tz-user-hero { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid #eef0f2; }
.tz-user .tz-user-hero-text { flex: 1 1 auto; min-width: 0; }
.tz-user .tz-user-hero-text .ifx-muted { margin-top: 2px; text-align: right; }
.tz-user .tz-user-ltr { text-align: right; unicode-bidi: plaintext; }
.tz-user .tz-user-roles { padding: 0 16px 16px; }

/* ---- tabs (details + create / edit): underline tabs on the card's edge ---- */
.tz-user .tz-user-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid #e7eaec; }
.tz-user .tz-user-tabs > li { float: none; margin-bottom: -1px; }
.tz-user .tz-user-tabs > li > a { margin: 0; padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #6b7680; font-weight: 600; }
.tz-user .tz-user-tabs > li > a:hover { background: transparent; color: #2f3a45; }
.tz-user .tz-user-tabs > li.active > a,
.tz-user .tz-user-tabs > li.active > a:hover,
.tz-user .tz-user-tabs > li.active > a:focus { border: 0; border-bottom: 2px solid #4D82BF; background: transparent; color: #2f6aa8; }

/* ---- details: effective permissions list ---- */
.tz-user .tz-user-effective { max-height: 620px; overflow-y: auto; padding: 8px 16px 16px; }
.tz-user .tz-user-perm-list { margin: 0; padding: 0; list-style: none; }
.tz-user .tz-user-perm-list > li { padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.tz-user .tz-user-perm-list > li:last-child { border-bottom: 0; }
.tz-user .tz-user-perm-list .fa-key { color: #4D82BF; }
.tz-user .tz-user-perm-path { margin: 2px 0 4px; text-align: right; }

/* ---- create / edit: permissions tab ---- */
.tz-user .tz-user-perm-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tz-user .tz-user-perm-bar .ifx-label { margin: 0; }
.tz-user .tz-user-perm-tools { display: flex; align-items: center; gap: 8px; }
.tz-user .tz-user-perm-tools > .btn-group { margin: 0; }
.tz-user .tz-user-badge { background: #6a43b0; }
.tz-user .tz-user-bundles { margin: 0 0 8px; }
.tz-user .tz-user-bundles .ifx-check:last-child { margin-bottom: 0; }
.tz-user .tz-user-bundles .fa-cubes { color: #7e57c2; }
.tz-user .tz-user-perm-search { margin-bottom: 8px; }

/* JSON drop zone (userVM.js adds .tz-user-drop-over while a file is dragged over it) */
.tz-user .tz-user-drop { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; padding: 12px 16px; border: 2px dashed #cfd5dc; border-radius: 6px; background: #f8f9fb; color: #6b7680; font-size: 12px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.tz-user .tz-user-drop .fa { font-size: 20px; color: #a0a9b4; }
.tz-user .tz-user-drop.tz-user-drop-over { border-color: #1ab394; background: #e9f7f2; color: #1e7a4c; }

/* permission tree (bootstrap-treeview, built by userVM.js InitPermissionTree) */
.tz-user .permission-tree-box { position: relative; height: 450px; overflow-y: auto; border: 1px solid #e1e6ec; border-radius: 6px; background: #fdfdfe; }
.tz-user .treeview .list-group-item { display: flex; align-items: center; margin-bottom: 0; padding: 8px 16px !important; border: 0; border-bottom: 1px solid #f0f2f4; border-radius: 0; background: transparent; direction: rtl; text-align: right; cursor: pointer; user-select: none; transition: background-color .2s ease; }
.tz-user .treeview .list-group-item:not(.node-disabled):hover { background-color: #f3f6fa; }
.tz-user .treeview .node-selected { background-color: #eef4fb !important; color: #2f6aa8 !important; font-weight: 700; box-shadow: inset -3px 0 0 #4D82BF; }
.tz-user .treeview span.icon { display: inline-block; width: 22px; font-size: 14px; line-height: 1; text-align: center; }
.tz-user .treeview .check-icon { margin-left: 8px; margin-right: 0; cursor: pointer; }
.tz-user .treeview .far.fa-square { margin-left: 8px; color: #c5cbd1; font-size: 16px; }
.tz-user .treeview .list-group-item:hover .far.fa-square { color: #8a96a3; }
.tz-user .treeview .fas.fa-check-square { margin-left: 8px; color: #4D82BF; font-size: 16px; }
.tz-user .treeview .fa-folder { color: #f8ac59; }
.tz-user .treeview .fa-user-shield,
.tz-user .treeview .fa-shield { color: #1c84c6; }
.tz-user .treeview .fa-key { color: #2563eb; }
.tz-user .treeview .click-collapse,
.tz-user .treeview .click-expand { margin-right: auto; margin-left: 4px; color: #a0a9b4; font-size: 12px; }
.tz-user .permission-tree-box .highlighted-node { border-radius: 4px; background-color: #eef4fb !important; box-shadow: inset 0 0 0 2px #4D82BF; }
/* the row the permission search points to: a short yellow flash (userVM.js adds / removes the class) */
.tz-user .treeview .list-group-item.tz-user-node-flash { background-color: #fff7cc !important; }

/* ---- create / edit: photo + signature pickers ---- */
.tz-user .tz-user-images { display: flex; flex-wrap: wrap; gap: 24px; }
.tz-user .tz-user-image { display: flex; flex-direction: column; align-items: flex-start; }
.tz-user .tz-user-signature { width: 160px; height: 96px; object-fit: contain; border: 1px solid #e1e6ec; border-radius: 6px; background: #fff; }
.tz-user .tz-user-pick { cursor: pointer; transition: box-shadow .15s ease; }
.tz-user .tz-user-pick:hover { box-shadow: 0 0 0 3px rgba(77, 130, 191, .25); }



/* ======================================================================================
   Tenantz: establishment settings / edit (EstablishmentFeature) and ZATCA onboarding + integrations
   (ZatcaFeature, ZatcaIntegrationFeature) -- fork F, 2026-11-03. Were page <style> blocks and inline styles.
   ====================================================================================== */

/* ---- establishment: section cards side by side (settings + the edit form's general tab) ---- */
.ifx-page.tz-est .tz-est-head { margin-bottom: 16px; }
.ifx-page.tz-est .tz-est-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.ifx-page.tz-est .tz-est-grid > .ifx-sec { margin-bottom: 0; }
.ifx-page.tz-est .tz-est-narrow { max-width: 880px; }
.ifx-page.tz-est .ifx-sec .ifx-form-group { max-width: none; }
.ifx-page.tz-est .ifx-sec-head small.tz-est-sub { margin-inline-start: 8px; font-size: 12px; font-weight: 400; color: #6b7680; }
.ifx-page.tz-est .ifx-field { grid-template-columns: 150px minmax(0, 1fr); }
.ifx-page.tz-est .tz-est-ico { width: 16px; margin-inline-end: 4px; color: #8a96a3; text-align: center; }

/* edit form: tabs on the card's top edge, errors above them */
.ifx-page.tz-est .tz-est-errors:empty,
.ifx-page.tz-est .tz-est-errors.validation-summary-valid { display: none; }
.ifx-page.tz-est .tz-est-errors { margin: 16px 16px 0; }
.ifx-page.tz-est .tz-est-errors ul { margin: 0; padding-inline-start: 18px; }
.ifx-page.tz-est .tz-est-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 12px 16px 0; border-bottom: 1px solid #e1e6ec; }
.ifx-page.tz-est .tz-est-tabs > li { float: none; margin-bottom: -1px; }
.ifx-page.tz-est .tz-est-tabs > li > a { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border: 1px solid transparent; border-radius: 6px 6px 0 0; font-size: 13px; font-weight: 600; color: #6b7680; }
.ifx-page.tz-est .tz-est-tabs > li > a:hover { background: #f1f4f7; border-color: transparent; color: #2f3a45; }
.ifx-page.tz-est .tz-est-tabs > li.active > a,
.ifx-page.tz-est .tz-est-tabs > li.active > a:hover,
.ifx-page.tz-est .tz-est-tabs > li.active > a:focus { background: #fbfcfd; border-color: #e1e6ec #e1e6ec transparent; color: #2f6aa8; }

/* logos: one block per logo -- label, download button, file picker, chosen file name */
.ifx-page.tz-est .tz-est-logos { display: flex; flex-direction: column; gap: 16px; }
.ifx-page.tz-est .tz-est-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #f0f2f4; }
.ifx-page.tz-est .tz-est-logo .ifx-label { flex: 1 0 100%; margin: 0; }
.ifx-page.tz-est .tz-est-file { flex: 1 1 220px; max-width: 100%; font-size: 13px; }
.ifx-page.tz-est .tz-est-file-name:empty { display: none; }

/* redirect screen: a text box with its colour picker beside it */
.ifx-page.tz-est .tz-est-color-row { display: flex; align-items: flex-end; gap: 8px; }
.ifx-page.tz-est .tz-est-color-row .ifx-form-group { flex: 1 1 auto; }
.ifx-page.tz-est .tz-est-color-row .tz-est-color { margin-bottom: 16px; }
.ifx-page.tz-est .tz-est-color { width: 56px; height: 34px; padding: 2px; cursor: pointer; }

/* redirect screen preview (settings): the texts on a dark strip, the way the screen shows them */
.ifx-page.tz-est .tz-est-preview { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #1f2933; }
.ifx-page.tz-est .tz-est-preview-lg { font-size: 16px; font-weight: 700; }
.ifx-page.tz-est .tz-est-preview-md { font-size: 14px; }
.ifx-page.tz-est .tz-est-swatch { display: inline-block; width: 40px; height: 28px; border: 1px solid #cfd5dc; border-radius: 6px; vertical-align: middle; }

/* ---- ZATCA onboarding: one centred form card ---- */
.ifx-page.tz-zatca .tz-zatca-card { max-width: 560px; margin: 0 auto; }
.ifx-page.tz-zatca .tz-zatca-ico { margin-inline-end: 6px; color: #2f6aa8; }
.ifx-page.tz-zatca .tz-zatca-env { display: flex; gap: 0; }
.ifx-page.tz-zatca .tz-zatca-env > .btn { flex: 1 1 0; border-radius: 0; margin: 0; }
.ifx-page.tz-zatca .tz-zatca-env > .btn + .btn { margin-inline-start: -1px; }
.ifx-page.tz-zatca .tz-zatca-env > .btn:first-child { border-start-start-radius: 6px; border-end-start-radius: 6px; }
.ifx-page.tz-zatca .tz-zatca-env > .btn:last-child { border-start-end-radius: 6px; border-end-end-radius: 6px; }
.ifx-page.tz-zatca .tz-zatca-env > .btn.active { position: relative; z-index: 1; background: #1c84c6; border-color: #1c84c6; color: #fff; box-shadow: none; }
.ifx-page.tz-zatca .tz-zatca-env > .btn.tz-zatca-env-core.active { background: #ed5565; border-color: #ed5565; }
.ifx-page.tz-zatca .tz-zatca-prod-note { margin-top: 8px; padding: 8px 12px; font-size: 12px; }
.ifx-page.tz-zatca .tz-zatca-otp { max-width: 200px; font-size: 20px; letter-spacing: 6px; text-align: center; direction: ltr; }
.ifx-page.tz-zatca .tz-zatca-msg { margin-bottom: 16px; }

/* ---- ZATCA integrations: details ---- */
.ifx-page.tz-zatca .tz-zatca-ltr { direction: ltr; text-align: left; }
.ifx-page.tz-zatca .tz-zatca-url { direction: ltr; text-align: left; font-size: 12px; color: #4a5562; word-break: break-all; }
.ifx-page.tz-zatca .ifx-card .ifx-field { grid-template-columns: 140px minmax(0, 1fr); }
.ifx-page.tz-zatca .tz-zatca-keys { padding: 4px 16px 16px; }
.ifx-page.tz-zatca .tz-zatca-key { border: 1px solid #e7eaec; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.ifx-page.tz-zatca .tz-zatca-key-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; background: #fafbfc; font-size: 13px; font-weight: 600; color: #2f3a45; text-align: start; cursor: pointer; }
.ifx-page.tz-zatca .tz-zatca-key-head:hover { background: #f1f4f7; }
.ifx-page.tz-zatca .tz-zatca-key-head:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px rgba(77, 130, 191, .35); }
.ifx-page.tz-zatca .tz-zatca-secret-tag { font-size: 11px; }
/* chevron drawn with borders (no icon-font code in CSS): points down when closed, up when open */
.ifx-page.tz-zatca .tz-zatca-chevron { width: 7px; height: 7px; margin-inline-start: auto; border-right: 1.5px solid #8a96a3; border-bottom: 1.5px solid #8a96a3; transform: rotate(-135deg); transition: transform .15s ease; }
.ifx-page.tz-zatca .tz-zatca-key-head.collapsed .tz-zatca-chevron { transform: rotate(45deg); }
.ifx-page.tz-zatca .tz-zatca-code { margin: 0; padding: 8px 12px; border: 0; border-top: 1px solid #eef0f2; border-radius: 0; background: #fdfdfe; direction: ltr; text-align: left; font-family: Consolas, Menlo, monospace; font-size: 11px; line-height: 1.5; color: #2f3a45; white-space: pre-wrap; word-break: break-all; max-height: 220px; overflow: auto; }
.ifx-page.tz-zatca .tz-zatca-code:empty::before { content: "-"; color: #8a96a3; }

/* ---- ZATCA integrations: form ---- */
.ifx-page.tz-zatca .tz-zatca-code-input { direction: ltr; text-align: left; font-family: Consolas, Menlo, monospace; font-size: 11px; resize: vertical; }



/* ======================================================================================
   Tenantz: blacklist (BlacklistFeature/Index, Log) + user-session history / weekly archive
   (UserSessionFeature/History, Archive) -- were page <style> blocks and inline style="" (fork TZ-G, 2026-11-03).
   ====================================================================================== */

/* ---- blacklist: cards stack with the usual gap ---- */
.tz-bl-page .ifx-card { margin-bottom: 16px; }
.tz-bl-page .ifx-card:last-child { margin-bottom: 0; }
.tz-bl-hidden { display: none; }

/* upload: numbered steps (choose file, then map the columns) */
.tz-bl-page .tz-bl-body { padding: 16px; }
.tz-bl-page .tz-bl-step { display: flex; align-items: flex-start; gap: 16px; padding: 16px; margin-bottom: 12px; border: 1px dashed #cfd6de; border-radius: 8px; background: #fdfdfe; }
.tz-bl-page .tz-bl-step-no { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #eaf1fa; color: #2f6aa8; font-size: 13px; font-weight: 700; line-height: 28px; text-align: center; }
.tz-bl-page .tz-bl-step-main { flex: 1 1 auto; min-width: 0; }
.tz-bl-page .tz-bl-step-main > p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; }
.tz-bl-page .tz-bl-step-main > p.ifx-muted { font-size: 13px; }
.tz-bl-page .tz-bl-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tz-bl-page .tz-bl-file-row .form-control { width: auto; max-width: 360px; height: 32px; padding: 4px 8px; font-size: 13px; }
.tz-bl-page .tz-bl-step-actions { margin-top: 12px; }
.tz-bl-page .tz-bl-map-table { border: 1px solid #e7eaec; border-radius: 6px; }
.tz-bl-page .tz-bl-map-table select.form-control { min-width: 240px; height: 30px; font-size: 13px; }
.tz-bl-page .tz-bl-result { margin: 0; font-size: 14px; }
.tz-bl-page .tz-bl-result b { font-size: 16px; }

/* search row: the "show deleted" tick sits after the search button */
.tz-bl-page .tz-bl-search-box { max-width: 520px; }
.tz-bl-page .tz-bl-check { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px; font-size: 13px; font-weight: 500; color: #4a5562; cursor: pointer; }

/* results: rows can hold several nicknames / extra lines, so the cells align to the top */
.tz-bl-page .tz-bl-table > tbody > tr > td { vertical-align: top; font-size: 13px; }
.tz-bl-page .tz-bl-table > tbody > tr.tz-bl-deleted > td { color: #a0a9b4; text-decoration: line-through; }
.tz-bl-page .tz-bl-table > tbody > tr.tz-bl-deleted > td .it-tag { text-decoration: none; }
.tz-bl-page .tz-bl-nick,
.tz-bl-page .tz-bl-sample { display: inline-block; margin: 2px; padding: 0 8px; border-radius: 10px; background: #f1f3f5; color: #4a5562; font-size: 12px; line-height: 20px; }
.tz-bl-page .tz-bl-sample { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.tz-bl-page .tz-bl-extra { font-size: 12px; line-height: 1.7; color: #4a5562; }
.tz-bl-page .tz-bl-extra b { color: #2f3a45; font-weight: 600; }
.tz-bl-page td.ifx-empty { padding: 32px 16px; font-size: 13px; }

/* previous / next pager under the result tables */
.tz-bl-page .tz-bl-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px; border-top: 1px solid #eef0f2; }

/* ---- user sessions: history + weekly archive ---- */
.tz-sess-page .tz-sess-intro { margin: 0; padding: 12px 16px; border-bottom: 1px solid #eef0f2; color: #6b7680; font-size: 13px; line-height: 1.7; }
.tz-sess-page .ifx-table > tbody > tr > td { font-size: 13px; }
.tz-sess-page .tz-sess-reason { max-width: 280px; white-space: normal; }
.tz-sess-page .tz-sess-alerts { display: flex; flex-wrap: wrap; gap: 4px; }
.tz-sess-page .tz-sess-details > summary { cursor: pointer; color: #2f6aa8; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tz-sess-page .tz-sess-details > summary:hover { text-decoration: underline; }
.tz-sess-page .tz-sess-details[open] > summary { margin-bottom: 8px; }
.tz-sess-page .tz-sess-details-table { margin: 0; border: 1px solid #e7eaec; border-radius: 6px; background: #fdfdfe; font-size: 12px; }
.tz-sess-page .tz-sess-details-table > thead > tr > th { padding: 6px 8px; background: #f8f9fb; color: #6b7680; font-size: 11px; font-weight: 600; border-bottom: 1px solid #e7eaec; white-space: nowrap; }
.tz-sess-page .tz-sess-details-table > tbody > tr > td { padding: 6px 8px; border-top: 1px solid #f0f2f4; }



/* ======================================================================================
   Live user sessions (UserSessionFeature/Views/Index.cshtml, page wrapper .ifx-page.tz-us) -- was the page's
   own <style> block + inline style="" (stat tiles, chart / map cards, filter bar, session cards).
   Built from the shared .ifx-card / .ifx-kpi / .ifx-chart / .ifx-filter / .ifx-sec / .ifx-table / .it-tag.
   ====================================================================================== */
.ifx-page.tz-us .tz-us-block { margin-bottom: 16px; }
.ifx-page.tz-us .tz-us-msg { margin-bottom: 16px; }
.ifx-page.tz-us .tz-us-msg > .fa { margin-inline-end: 4px; }

/* headline numbers: small label with its icon on top, the figure under it; six in a row on wide screens */
.ifx-page.tz-us .tz-us-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ifx-page.tz-us .tz-us-kpi-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7680; }
.ifx-page.tz-us .tz-us-kpi-label > .fa { color: var(--ifx-stat, #a0a9b4); }
.ifx-page.tz-us .tz-us-stat-amber { --ifx-stat: #e6a23c; }

/* charts (2 x 3 grid) next to the map; one column under 992px */
.ifx-page.tz-us .tz-us-dash { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.ifx-page.tz-us .tz-us-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ifx-page.tz-us .tz-us-charts > .ifx-chart { display: flex; flex-direction: column; margin: 0; }
.ifx-page.tz-us .tz-us-chart-wide { grid-column: 1 / -1; }
.ifx-page.tz-us .ifx-chart > h5 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.ifx-page.tz-us .ifx-chart > h5 > .fa { color: #a0a9b4; }
.ifx-page.tz-us .tz-us-chart-body { position: relative; flex: 1; min-height: 160px; }
.ifx-page.tz-us .tz-us-map-card { display: flex; flex-direction: column; margin: 0; }
.ifx-page.tz-us #sessionsMap { flex: 1; min-height: 400px; border-radius: 6px; z-index: 0; }
@media (max-width: 992px) {
    .ifx-page.tz-us .tz-us-dash { grid-template-columns: 1fr; }
}

/* filters: the "alerts only" checkbox sits on the fields' baseline */
.ifx-page.tz-us .tz-us-check { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0; font-size: 13px; font-weight: 400; color: #2f3a45; }
.ifx-page.tz-us .tz-us-check > input { margin: 0; }

/* one section per user: name + tags on one side, "end all" on the other */
.ifx-page.tz-us .tz-us-groups { padding: 16px; }
.ifx-page.tz-us .tz-us-group:last-of-type { margin-bottom: 0; }
.ifx-page.tz-us .tz-us-group-head { justify-content: space-between; flex-wrap: wrap; background: #f8f9fb; }
.ifx-page.tz-us .tz-us-who { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ifx-page.tz-us .tz-us-user { font-size: 14px; font-weight: 700; color: #2f3a45; }
.ifx-page.tz-us .tz-us-who .ifx-muted { font-weight: 400; }
.ifx-page.tz-us .tz-us-form { display: inline-block; margin: 0; }

/* session rows: one line per cell, compact padding (13 columns) */
.ifx-page.tz-us .tz-us-table { font-size: 12px; white-space: nowrap; }
.ifx-page.tz-us .tz-us-table > thead > tr > th,
.ifx-page.tz-us .tz-us-table > tbody > tr > td { padding: 8px 12px; }
.ifx-page.tz-us .tz-us-alerts .it-tag + .it-tag { margin-inline-start: 4px; }
.ifx-page.tz-us .tz-us-actions { min-width: 96px; text-align: center; }
/* the admin's own session: soft blue start edge, like a selected row */
.ifx-page.tz-us .tz-us-table > tbody > tr.tz-us-current > td { background: #f3f7fc; }
.ifx-page.tz-us .tz-us-table > tbody > tr.tz-us-current > td:first-child { box-shadow: inset -3px 0 0 #4D82BF; }
html[dir="ltr"] .ifx-page.tz-us .tz-us-table > tbody > tr.tz-us-current > td:first-child { box-shadow: inset 3px 0 0 #4D82BF; }

/* comfort palette: soft white for the section heads */
body:not(.dark-mode) .ifx-page.tz-us .tz-us-group-head { background-color: #f6f8fa; }


/* ======================================================================================
   Tenantz shell in English (left-to-right), fork TZ-EN1 2026-11-05. The layouts set html[dir] from the language
   the user picked and load the RTL stylesheets only for Arabic; these rules mirror the few shell rules that were
   written for right-to-left only.
   ====================================================================================== */

/* top bar: the menu button sits at the reading start (was float: right with the wide gap on the right) */
html[dir="ltr"] .ifx-topbar .ifx-topbar-toggle { float: left; margin: 9px 8px 9px 16px; }

/* side menu: a selected section that was folded shows its arrow pointing along the reading direction (right),
   not left (the 90deg turn in the side-menu block is right for Arabic only) */
html[dir="ltr"] #side-menu > li.active:not(.mm-active) > a > .fa.arrow { transform: rotate(-90deg); }

/* side menu folded to icons: the fly-out section opens to the right, so the round corners are on that side */
html[dir="ltr"] body.mini-navbar #side-menu .nav-second-level { border-radius: 0 8px 8px 0; }
html[dir="rtl"] body.mini-navbar #side-menu .nav-second-level { border-radius: 8px 0 0 8px; }


/* ======================================================================================
   Tenantz sign-in pages in English (fork TZ-EN2, 2026-11-05): left-to-right fixes for the .tz-auth card.
   ====================================================================================== */
/* consent / device scope rows: the checkbox's gap sat on its left (right-to-left reading); in English the label
   follows the box, so the gap goes on its right */
html[dir="ltr"] .tz-auth .tz-auth-sec .list-group-item input[type="checkbox"] { margin: 0 8px 0 0; }


/* ======================================================================================
   Tenantz English (left-to-right) fixes for the roles / permission bundles screen (fork TZ-EN4, 2026-11-05).
   The permission tree (.permission-tree-box, also on the users page) was written for Arabic only: forced
   direction:rtl, right-aligned text, checkbox gap on the left, selected-row bar on the right. Mirror them when
   the page runs left-to-right; the Arabic look is unchanged.
   ====================================================================================== */
html[dir="ltr"] .permission-tree-box .treeview .list-group-item { direction: ltr; text-align: left; }
html[dir="ltr"] .permission-tree-box .treeview .check-icon { margin: 0 8px 0 0; }
html[dir="ltr"] .permission-tree-box .treeview .far.fa-square,
html[dir="ltr"] .permission-tree-box .treeview .fas.fa-check-square { margin-left: 0; margin-right: 8px; }
html[dir="ltr"] .permission-tree-box .treeview .click-collapse,
html[dir="ltr"] .permission-tree-box .treeview .click-expand { margin: 0 4px 0 auto; }
html[dir="ltr"] .permission-tree-box .node-selected { border-right: 0 !important; border-left: 4px solid #4d82bf !important; }


/* ---- Users page (UserFeature) in English, left-to-right (fork TZ-EN5, 2026-11-05) ----
   The .tz-user rules above were written for the Arabic page (physical right / left, direction: rtl on the
   permission tree). These mirror them only when the page runs left-to-right. */
html[dir="ltr"] .tz-user .ifx-table .tz-user-col-photo { padding-left: 16px; padding-right: 0; }
html[dir="ltr"] .tz-user .tz-user-hero-text .ifx-muted,
html[dir="ltr"] .tz-user .tz-user-ltr,
html[dir="ltr"] .tz-user .tz-user-perm-path { text-align: left; }
/* permission tree: reads left-to-right, check box before the name, expand arrow at the far end */
html[dir="ltr"] .tz-user .treeview .list-group-item { direction: ltr; text-align: left; }
html[dir="ltr"] .tz-user .treeview .check-icon,
html[dir="ltr"] .tz-user .treeview .far.fa-square,
html[dir="ltr"] .tz-user .treeview .fas.fa-check-square { margin-left: 0; margin-right: 8px; }
html[dir="ltr"] .tz-user .treeview .click-expand { margin-left: auto; margin-right: 4px; }


/* ---- English (left-to-right) for the blacklist and session pages (fork TZ-EN7, 2026-11-05) ----
   The "back" arrow (fa-arrow-right) and the pager chevrons are drawn for Arabic, where "back" points right and
   "previous" points right. Left-to-right they must point the other way: mirror the icon, keep the markup. */
html[dir="ltr"] .tz-bl-page .ifx-actions .fa-arrow-right,
html[dir="ltr"] .tz-sess-page .ifx-actions .fa-arrow-right,
html[dir="ltr"] .tz-bl-page .tz-bl-pager .fa-chevron-right,
html[dir="ltr"] .tz-bl-page .tz-bl-pager .fa-chevron-left { transform: scaleX(-1); }


/* ======================================================================================
   Tenantz dark mode (fork TZ-DARK, 2026-11-05). body.dark-mode is set by wwwroot/js/theme-sync.js (cookie shared with Mansah).
   Part 1: Solitaires' theme-wide dark rules (solitaires style.css dark section) -- page, ibox, tables, forms, select2,
   modals, dropdowns, tabs, panels, alerts, labels, pagination, toastr. Part 2: Solitaires app-ui.css core dark rules
   (side menu, top bar, popups, pager, title bar, cards, tables, tags, forms, titles, solid status badges, empty states).
   Part 3: Tenantz page blocks (tz-*).
   ====================================================================================== */



/* ---------- part 1: theme-wide (from Solitaires style.css) ---------- */

body.dark-mode .text-navy {
    color: #6aa3e4 !important;
}

body.dark-mode .text-primary {
    color: #e2e8f0 !important;
}

body.dark-mode .text-success {
    color: #1ab394 !important;
}

body.dark-mode .text-info {
    color: #23c6c8 !important;
}

body.dark-mode .text-warning {
    color: #a78bfa !important;
}

body.dark-mode .text-danger {
    color: #ff6b6b !important;
}

body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .text-white {
    color: #ffffff !important;
}

body.dark-mode,
body.dark-mode #wrapper,
body.dark-mode #page-wrapper,
body.dark-mode .gray-bg,
body.dark-mode .wrapper.wrapper-content {
    background-color: #0f172a !important; 
    color: #cbd5e1 !important; 
}

body.dark-mode .white-bg,
    body.dark-mode #dashboard_main_div {
        background-color: #1e293b !important; 
    }

body.dark-mode a {
        color: #6aa3e4;
    }

body.dark-mode a:hover {
            color: #9cc2f0;
        }

body.dark-mode .text-muted {
        color: #94a3b8 !important;
    }

body.dark-mode label {
        color: #94a3b8 !important;
    }

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
    body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
        color: #f8fafc !important;
    }

body.dark-mode .page-heading {
        background-color: #1e293b !important;
        border-bottom: 1px solid #334155 !important;
        color: #f8fafc !important;
    }

body.dark-mode .breadcrumb {
        background-color: transparent !important;
    }

body.dark-mode .breadcrumb > li > a {
            color: #94a3b8 !important;
        }

body.dark-mode .breadcrumb > li > a:hover {
                color: #4D82BF !important;
            }

body.dark-mode .breadcrumb > .active, body.dark-mode .breadcrumb > .active strong {
            color: #f8fafc !important;
        }

body.dark-mode .breadcrumb > li + li:before {
            color: #475569 !important;
        }

body.dark-mode #topnavbar .navbar,
    body.dark-mode .navbar-fixed-top,
    body.dark-mode .navbar-static-top,
    body.dark-mode .navbar-default.navbar-scroll {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        border-bottom: 1px solid #334155 !important;
    }

body.dark-mode .navbar-top-links li a {
        color: #94a3b8 !important;
    }

body.dark-mode .navbar-top-links li a:hover {
            color: #6aa3e4 !important;
            background-color: #334155 !important;
        }

body.dark-mode .dropdown-menu {
        background-color: #1e293b !important;
        border: 1px solid #334155 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    }

body.dark-mode .dropdown-menu > li > a {
            color: #f8fafc !important;
        }

body.dark-mode .dropdown-menu > li > a:hover {
                background-color: #334155 !important;
                color: #6aa3e4 !important;
            }

body.dark-mode .dropdown-menu .divider {
            background-color: #334155 !important;
        }

body.dark-mode div.ibox-title,
    body.dark-mode div.ibox-content,
    body.dark-mode .ibox .ibox-content,
    body.dark-mode div.ibox-footer,
    body.dark-mode .panel-body,
    body.dark-mode .panel-heading,
    body.dark-mode .clients-list {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .ibox-title {
        border-bottom: 1px solid #334155 !important;
    }

body.dark-mode .clients-list .nav-tabs {
        border-bottom: 1px solid #334155 !important;
    }

body.dark-mode .widget.style1 {
        color: #ffffff !important;
    }

body.dark-mode .widget.style1 span, body.dark-mode .widget.style1 h2, body.dark-mode .widget.style1 i {
            color: #ffffff !important;
        }

body.dark-mode input.form-control:not([style*="background-color"]):not([style*="background:"]),
    body.dark-mode select.form-control:not([style*="background-color"]),
    body.dark-mode textarea.form-control:not([style*="background-color"]),
    body.dark-mode span.form-control:not([style*="background-color"]),
    body.dark-mode .single-line:not([style*="background-color"]) {
        background-color: #0f172a !important; 
        border-color: #334155 !important;
        color: #f8fafc !important;
    }

body.dark-mode .form-control:focus,
    body.dark-mode .single-line:focus {
        border-color: #6aa3e4 !important;
        box-shadow: 0 0 0 2px rgba(106, 163, 228, 0.2) !important;
    }

body.dark-mode input[style*="background: transparent"],
    body.dark-mode input[style*="background:transparent"] {
        color: #ffffff !important;
    }

body.dark-mode .btn-default:not(.btn-whatsapp):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info),
    body.dark-mode .btn-white:not(.btn-whatsapp):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info),
    body.dark-mode .btn-secondary:not(.btn-whatsapp):not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info) {
        background-color: #1e293b !important;
        border-color: #475569 !important;
        color: #e2e8f0 !important;
    }

body.dark-mode .btn-default:hover,
    body.dark-mode .btn-white:hover,
    body.dark-mode .btn-secondary:hover {
        background-color: #334155 !important;
        color: #ffffff !important;
        border-color: #64748b !important;
    }

body.dark-mode .btn-whatsapp {
        background-color: #128C7E !important;
        border-color: #075E54 !important;
        color: #ffffff !important;
    }

body.dark-mode .btn-whatsapp:hover {
            background-color: #075E54 !important;
        }

body.dark-mode .btn-primary {
        background-color: #4D82BF !important;
        border-color: #4D82BF !important;
        color: #ffffff !important;
    }

body.dark-mode .btn-danger {
        background-color: #A62F3B !important;
        border-color: #A62F3B !important;
        color: #ffffff !important;
    }

body.dark-mode .btn-success {
        background-color: #00695C !important;
        border-color: #00695C !important;
        color: #ffffff !important;
    }

body.dark-mode .btn-warning {
        background-color: #f8ac59 !important;
        border-color: #f8ac59 !important;
        color: #ffffff !important;
    }

body.dark-mode .btn-info {
        background-color: #23c6c8 !important;
        border-color: #23c6c8 !important;
        color: #ffffff !important;
    }

body.dark-mode .label-primary {
        background-color: #4D82BF !important;
        color: #fff !important;
        border: none !important;
    }

body.dark-mode .label-danger {
        background-color: #A62F3B !important;
        color: #fff !important;
        border: none !important;
    }

body.dark-mode .label-success {
        background-color: #1ab394 !important;
        color: #fff !important;
        border: none !important;
    }

body.dark-mode .label-warning {
        background-color: #f8ac59 !important;
        color: #fff !important;
        border: none !important;
    }

body.dark-mode .label-default {
        background-color: #334155 !important;
        color: #94a3b8 !important;
        border: none !important;
    }

body.dark-mode .list-group-item {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .list-group-item-danger {
        background-color: rgba(166, 47, 59, 0.2) !important;
        border-color: #A62F3B !important;
    }

body.dark-mode .list-group-item-success {
        background-color: rgba(0, 105, 92, 0.2) !important;
        border-color: #00695C !important;
    }

body.dark-mode .list-group-item-info {
        background-color: rgba(77, 130, 191, 0.2) !important;
        border-color: #4D82BF !important;
    }

body.dark-mode table.table > thead > tr > th,
    body.dark-mode table.table > tfoot > tr > th,
    body.dark-mode table.table > tfoot > tr > td {
        color: #6aa3e4 !important;
        border-color: #334155 !important;
        background-color: #0f172a !important;
    }

body.dark-mode table.table > tbody > tr > td {
        color: #cbd5e1 !important;
        border-top: 1px solid #334155 !important;
    }

body.dark-mode .table-striped tbody tr:nth-of-type(odd) td {
        background-color: rgba(255, 255, 255, 0.02) !important;
    }

body.dark-mode table.table .clickable-row td {
        background-color: transparent !important;
        border-bottom: 1px solid #334155 !important;
        color: #e2e8f0 !important;
    }

body.dark-mode table.table .clickable-row:hover td {
        background-color: #334155 !important;
    }

body.dark-mode tr.selected-row td, body.dark-mode tr.active-row td {
        background-color: rgba(77, 130, 191, 0.25) !important;
    }

body.dark-mode .id-wrapper {
        background-color: #1e293b !important;
        border-color: #334155 !important;
    }

body.dark-mode .id-wrapper.header-style {
            background-color: transparent !important;
            border-color: transparent !important;
        }

body.dark-mode .id-text {
        color: #cbd5e1 !important;
    }

body.dark-mode .acc-num-badge {
        background-color: #334155 !important;
        color: #94a3b8 !important;
        border-color: #475569 !important;
    }

body.dark-mode .acc-name-text {
        color: #6aa3e4 !important;
    }

body.dark-mode .glass-dock {
        background: rgba(30, 41, 59, 0.8) !important;
        background-image: none !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    }

body.dark-mode .count-bubble {
        background: #4D82BF !important;
        color: #ffffff !important;
    }

body.dark-mode .info-label {
        color: #94a3b8 !important;
    }

body.dark-mode .dock-btn {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #cbd5e1 !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

body.dark-mode .dock-btn:hover {
            background: rgba(255, 255, 255, 0.15) !important;
        }

body.dark-mode .glass-checkbox .checkmark {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

body.dark-mode .favorites-bar {
        background: rgba(30, 41, 59, 0.85) !important;
        background-image: none !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    }

body.dark-mode .fav-search-wrapper {
        background: rgba(255, 255, 255, 0.05) !important;
    }

body.dark-mode .fav-search-wrapper.search-active {
            background: #1e293b !important;
            border-color: #334155 !important;
        }

body.dark-mode .fav-search-input {
        color: #f8fafc !important;
    }

body.dark-mode .fav-search-input::placeholder {
            color: #64748b !important;
        }

body.dark-mode .fav-search-wrapper i {
        color: #94a3b8 !important;
    }

body.dark-mode .fav-item-icon, body.dark-mode .fav-action-btn {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #94a3b8 !important;
    }

body.dark-mode .fav-item-text {
        background: rgba(30, 41, 59, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .fav-item-icon:hover, body.dark-mode .fav-action-btn:hover, body.dark-mode .fav-item-text:hover {
            background: #334155 !important;
            color: #1ab394 !important;
            border-color: #1ab394 !important;
        }

body.dark-mode .dock-separator {
        background: #334155 !important;
    }

body.dark-mode .smart-badge {
        border-color: #1e293b !important;
    }

body.dark-mode .modal-content {
        background-color: #1e293b !important;
        border-color: #334155 !important;
    }

body.dark-mode .inmodal .modal-body {
        background-color: #0f172a !important;
    }

body.dark-mode .modal-header {
        border-bottom-color: #334155 !important;
        background-color: #1e293b !important;
    }

body.dark-mode .modal-footer {
        border-top-color: #334155 !important;
        background-color: #1e293b !important;
    }

body.dark-mode .item-picker-container, body.dark-mode .acc-picker-container {
        background-color: #0f172a !important;
    }

body.dark-mode .item-tree-pane, body.dark-mode .acc-tree-pane,
    body.dark-mode .item-details-pane, body.dark-mode .acc-details-pane {
        background-color: #1e293b !important;
        border-color: #334155 !important;
    }

body.dark-mode .item-search-box, body.dark-mode .acc-search-box {
        background-color: #1e293b !important;
        border-color: #334155 !important;
    }

body.dark-mode .item-row:hover, body.dark-mode .acc-item:hover {
        background-color: #334155 !important;
    }

body.dark-mode .item-row.active, body.dark-mode .acc-item.active {
        background-color: rgba(77, 130, 191, 0.2) !important;
    }

body.dark-mode .system-drawer {
        background: #1e293b;
        border-left: 1px solid #334155;
    }

body.dark-mode .system-drawer-body {
        background: #0f172a;
    }

body.dark-mode .sys-timeline {
        border-right-color: #334155;
    }

body.dark-mode .sys-timeline-content {
        background: #1e293b;
        border-color: #475569;
    }

body.dark-mode .sys-title {
        color: #f8fafc;
    }

body.dark-mode .sys-message {
        color: #94a3b8;
    }

body.dark-mode .sys-item-read {
        background-color: #162032;
        opacity: 0.5;
    }

body.dark-mode .zatca-toggle-container {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

body.dark-mode .zatca-toggle-container strong {
            color: #cbd5e1 !important;
        }

body.dark-mode .zatca-card-hover:hover {
        background-color: #334155 !important;
    }

body.dark-mode .zatca-slider {
        background-color: #475569;
    }

body.dark-mode .custom-context-menu {
        background-color: #1e293b;
        border-color: #334155;
    }

body.dark-mode .context-item {
        color: #cbd5e1;
    }

body.dark-mode .context-item:hover {
            background-color: #334155;
        }

body.dark-mode .context-divider {
        border-color: #334155;
    }

body.dark-mode .icon-picker-box {
        background: #1e293b;
        border: 1px solid #334155;
    }

body.dark-mode .picker-item {
        border-color: #475569;
        color: #94a3b8;
    }

body.dark-mode .picker-item:hover {
            background-color: #1ab394;
            color: #fff;
        }

body.dark-mode div[style*="background-color: lightblue"],
    body.dark-mode div[style*="background-color:lightblue"],
    body.dark-mode #invoiceWrapper[style],
    body.dark-mode .wrapper-content[style] {
        background-color: #0f172a !important;
    }

body.dark-mode input[style*="background-color: #d4b304"],
    body.dark-mode input[style*="background-color:#d4b304"] {
        background-color: #a88e03 !important;
        border-color: #a88e03 !important;
        color: #ffffff !important;
    }

body.dark-mode input[style*="background-color: #ea940b"],
    body.dark-mode input[style*="background-color:#ea940b"] {
        background-color: #b87408 !important;
        border-color: #b87408 !important;
        color: #ffffff !important;
    }

body.dark-mode input[style*="background-color: #0f7d11"],
    body.dark-mode input[style*="background-color:#0f7d11"] {
        background-color: #0b590c !important;
        border-color: #0b590c !important;
        color: #ffffff !important;
    }

body.dark-mode input[style*="background-color: #FFD3D3"] {
        background-color: #5a2a2a !important;
        border-color: #ed5565 !important;
        color: #fff !important;
    }

body.dark-mode input[style*="background-color: #D3E4FF"] {
        background-color: #1e3a5f !important;
        border-color: #4D82BF !important;
        color: #fff !important;
    }

body.dark-mode input[style*="background-color: #E0D1BD"] {
        background-color: #5c4b33 !important;
        border-color: #f8ac59 !important;
        color: #fff !important;
    }

body.dark-mode input[style*="background-color: #cef3f5"] {
        background-color: #1b4f52 !important;
        border-color: #23c6c8 !important;
        color: #fff !important;
    }

body.dark-mode input[style*="background-color: #BEE3C5"] {
        background-color: #2a5a32 !important;
        border-color: #1ab394 !important;
        color: #fff !important;
    }

body.dark-mode tr[style*="background-color:antiquewhite"],
    body.dark-mode tr[style*="background-color: antiquewhite"] {
        background-color: #1e293b !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .fileinput .form-control {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #f8fafc !important;
    }

body.dark-mode .fileinput .input-group-addon,
    body.dark-mode .fileinput .btn-file {
        background-color: #334155 !important;
        border-color: #475569 !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .fileinput .input-group-addon:hover,
        body.dark-mode .fileinput .btn-file:hover {
            background-color: #4D82BF !important;
            border-color: #4D82BF !important;
            color: #ffffff !important;
        }

body.dark-mode .fileinput-filename {
        color: #6aa3e4 !important;
    }

body.dark-mode .input-group-addon {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #94a3b8 !important;
    }

body.dark-mode .daterangepicker {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #cbd5e1 !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
    }

body.dark-mode .daterangepicker:before {
            border-bottom-color: #334155 !important;
        }

body.dark-mode .daterangepicker:after {
            border-bottom-color: #1e293b !important;
        }

body.dark-mode .daterangepicker .ranges li {
            background-color: #1e293b !important;
            color: #94a3b8 !important;
            border-color: transparent !important;
        }

body.dark-mode .daterangepicker .ranges li:hover {
                background-color: #334155 !important;
                color: #f8fafc !important;
            }

body.dark-mode .daterangepicker .ranges li.active {
                background-color: #4D82BF !important;
                color: #ffffff !important;
            }

body.dark-mode .daterangepicker .calendar-table {
            background-color: #1e293b !important;
            border-color: #1e293b !important;
        }

body.dark-mode .daterangepicker .calendar-table select.monthselect,
            body.dark-mode .daterangepicker .calendar-table select.yearselect {
                background-color: #0f172a !important;
                border-color: #334155 !important;
                color: #f8fafc !important;
                border-radius: 4px;
                padding: 2px;
            }

body.dark-mode .daterangepicker .calendar-table th,
            body.dark-mode .daterangepicker .calendar-table td.week {
                color: #94a3b8 !important;
                background-color: #1e293b !important;
            }

body.dark-mode .daterangepicker .calendar-table td.available {
                background-color: #1e293b !important;
                color: #cbd5e1 !important;
            }

body.dark-mode .daterangepicker .calendar-table td.available:hover,
                body.dark-mode .daterangepicker th.available:hover {
                    background-color: #334155 !important;
                    color: #f8fafc !important;
                }

body.dark-mode .daterangepicker td.in-range {
            background-color: rgba(77, 130, 191, 0.3) !important;
            color: #f8fafc !important;
        }

body.dark-mode .daterangepicker td.active,
        body.dark-mode .daterangepicker td.active:hover,
        body.dark-mode .daterangepicker td.active.start-date,
        body.dark-mode .daterangepicker td.active.end-date {
            background-color: #4D82BF !important;
            color: #ffffff !important;
        }

body.dark-mode .daterangepicker td.off,
        body.dark-mode .daterangepicker td.off.in-range,
        body.dark-mode .daterangepicker td.off.start-date,
        body.dark-mode .daterangepicker td.off.end-date {
            background-color: #0f172a !important;
            border-color: #0f172a !important;
            color: #475569 !important;
        }

body.dark-mode .daterangepicker .drp-buttons {
            border-top: 1px solid #334155 !important;
            background-color: #1e293b !important;
        }

body.dark-mode .ibox-content table tbody tr td,
    body.dark-mode .ibox-content table thead tr th {
        background-color: transparent !important;
        color: #cbd5e1 !important;
        border-color: #334155 !important;
    }

body.dark-mode table.table-striped > tbody > tr:nth-of-type(odd) > td {
        background-color: rgba(255, 255, 255, 0.02) !important;
    }

body.dark-mode table.table-hover > tbody > tr:hover > td {
        background-color: #334155 !important;
    }

body.dark-mode .table-bordered {
        border: 1px solid #334155 !important;
    }

body.dark-mode .table-bordered > thead > tr > th,
        body.dark-mode .table-bordered > tbody > tr > th,
        body.dark-mode .table-bordered > tfoot > tr > th,
        body.dark-mode .table-bordered > thead > tr > td,
        body.dark-mode .table-bordered > tbody > tr > td,
        body.dark-mode .table-bordered > tfoot > tr > td {
            border: 1px solid #334155 !important;
        }

body.dark-mode .pagination > li > a, body.dark-mode .pagination > li > span {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        color: #94a3b8 !important;
    }

body.dark-mode .pagination > li > a:hover, body.dark-mode .pagination > li > span:hover,
        body.dark-mode .pagination > li > a:focus, body.dark-mode .pagination > li > span:focus {
            background-color: #334155 !important;
            border-color: #4D82BF !important;
            color: #f8fafc !important;
        }

body.dark-mode .pagination > .active > a, body.dark-mode .pagination > .active > span,
    body.dark-mode .pagination > .active > a:hover, body.dark-mode .pagination > .active > span:hover,
    body.dark-mode .pagination > .active > a:focus, body.dark-mode .pagination > .active > span:focus {
        background-color: #4D82BF !important;
        border-color: #4D82BF !important;
        color: #ffffff !important;
    }

body.dark-mode .pagination > .disabled > a, body.dark-mode .pagination > .disabled > span,
    body.dark-mode .pagination > .disabled > a:hover, body.dark-mode .pagination > .disabled > span:hover,
    body.dark-mode .pagination > .disabled > a:focus, body.dark-mode .pagination > .disabled > span:focus {
        background-color: #0f172a !important;
        border-color: #334155 !important;
        color: #475569 !important;
        cursor: not-allowed !important;
    }

body.dark-mode .select2-container--default .select2-selection--single,
    body.dark-mode .select2-container--default .select2-selection--multiple {
        background-color: #0f172a !important;
        border-color: #334155 !important;
    }

body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
        body.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
            color: #cbd5e1 !important;
        }

body.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
            background-color: #334155 !important;
            border-color: #475569 !important;
        }

body.dark-mode .select2-dropdown {
        background-color: #1e293b !important;
        border-color: #334155 !important;
    }

body.dark-mode .select2-search input {
        background-color: #0f172a !important;
        border-color: #334155 !important;
        color: #f8fafc !important;
    }

body.dark-mode .select2-results__option {
        color: #cbd5e1 !important;
        background-color: transparent !important;
    }

body.dark-mode .select2-results__option[aria-selected="true"] {
            background-color: #334155 !important;
        }

body.dark-mode .select2-results__option--highlighted[aria-selected] {
        background-color: #4D82BF !important;
        color: #ffffff !important;
    }

body.dark-mode .ui-autocomplete {
        background-color: #1e293b !important;
        border: 1px solid #334155 !important;
        color: #cbd5e1 !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
    }

body.dark-mode .ui-menu-item-wrapper {
        color: #cbd5e1 !important;
        border: none !important;
    }

body.dark-mode .ui-menu-item-wrapper.ui-state-active, body.dark-mode .ui-menu-item-wrapper:hover {
            background-color: rgba(77, 130, 191, 0.6) !important;
            color: #ffffff !important;
        }

body.dark-mode .ui-menu-item-wrapper .red-text {
            color: #ef4444 !important;
        }

body.dark-mode .ui-menu-item-wrapper .green-text {
            color: #10b981 !important;
        }

body.dark-mode thead th {
        background-color: #1e293b !important;
        color: #6aa3e4 !important;
        border-bottom: 1px solid #334155 !important;
    }

body.dark-mode th, body.dark-mode td {
        border-right-color: #334155 !important;
        border-left-color: #334155 !important;
    }

body.dark-mode tbody tr {
        border-bottom-color: #334155 !important;
    }

body.dark-mode .clickable-link {
        color: #6aa3e4 !important;
    }

body.dark-mode .clickable-link:hover {
            color: #9cc2f0 !important;
        }

body.dark-mode thead th a {
        color: #94a3b8 !important;
    }

body.dark-mode thead th a:hover {
            color: #f8fafc !important;
        }

body.dark-mode .dd-list {
        background: transparent !important;
    }

body.dark-mode .dd-item {
        background: transparent !important;
        margin-bottom: 5px !important;
    }

body.dark-mode .dd-handle {
        background-color: #1e293b !important;
        border: 1px solid #334155 !important;
        color: #cbd5e1 !important;
        border-radius: 4px !important;
        padding: 8px 15px !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }

body.dark-mode .dd-handle:hover {
            background-color: #334155 !important;
            border-color: #4D82BF !important;
            color: #f8fafc !important;
        }

body.dark-mode .dd-item > div {
        background-color: transparent !important;
    }

body.dark-mode .dd-item > #checkbox, body.dark-mode .dd-item > div#checkbox {
            background: transparent !important;
            border: none !important;
        }

body.dark-mode .dd-item > button {
        color: #94a3b8 !important;
    }

body.dark-mode .dd-placeholder {
        background-color: rgba(255, 255, 255, 0.05) !important;
        border-color: #475569 !important;
    }

body.dark-mode .ko-treeview-container, body.dark-mode .nodes-list, body.dark-mode .ko-treeview-list, body.dark-mode .ko-treeview-listitem, body.dark-mode .ko-treeview-listitem > div {
        background-color: transparent !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .item-container {
        background-color: transparent !important;
        border-radius: 4px;
        transition: background-color 0.2s ease, border-color 0.2s ease;
        padding: 6px 10px;
        margin-bottom: 2px;
        display: flex;
        align-items: center;
    }

body.dark-mode .item-container:hover {
            background-color: #1e293b !important;
        }

body.dark-mode .item-container.selected-row {
            background-color: rgba(77, 130, 191, 0.25) !important;
            border-right: 3px solid #4D82BF !important;
        }

body.dark-mode .ko-treeview-label {
        color: #94a3b8 !important;
        cursor: pointer;
        margin: 0;
        padding-right: 8px;
        font-weight: 500;
    }

body.dark-mode .item-container:hover .ko-treeview-label {
        color: #f8fafc !important;
    }

body.dark-mode .item-container.selected-row .ko-treeview-label {
        color: #f8fafc !important;
        font-weight: 700 !important;
    }

body.dark-mode .item-container .fa-folder, body.dark-mode .item-container .fa-folder-open {
        color: #f8ac59 !important;
        margin-left: 5px;
        font-size: 14px;
    }

body.dark-mode .dashboard-profile-box, body.dark-mode .stat-card, body.dark-mode .stat-card-box, body.dark-mode .dashboard-header-section {
        background-color: #1e293b !important;
        border-color: #334155 !important;
        box-shadow: none !important;
    }

body.dark-mode .dashboard-profile-avatar {
        background-color: #0f172a !important;
        color: #94a3b8 !important;
        border-color: #334155 !important;
    }

body.dark-mode .profile-img-lg {
        border-color: #1e293b !important;
    }

body.dark-mode .stat-card-label, body.dark-mode .detail-label {
        color: #94a3b8 !important;
    }

body.dark-mode .stat-card-value, body.dark-mode .stat-value, body.dark-mode .detail-value, body.dark-mode .hierarchy-node-title, body.dark-mode h1.text-navy, body.dark-mode h2.text-navy, body.dark-mode h5.text-navy {
        color: #f8fafc !important;
    }

body.dark-mode .text-navy {
        color: #6aa3e4 !important;
    }

body.dark-mode .text-gold {
        color: #f8ac59 !important;
    }

body.dark-mode .text-silver {
        color: #cbd5e1 !important;
    }

body.dark-mode .marker-badge, body.dark-mode .account-tag {
        background-color: #334155 !important;
        border-color: #475569 !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .account-tag:hover {
            background-color: #1ab394 !important;
            border-color: #1ab394 !important;
            color: #ffffff !important;
        }

body.dark-mode div[style*="background-color: #f3f3f4"], body.dark-mode div[style*="background-color:#f3f3f4"], body.dark-mode div[style*="background-color: #fbfbfb"], body.dark-mode div[style*="background-color:#fbfbfb"] {
        background-color: #0f172a !important;
    }

body.dark-mode .panel-body .table-hover tbody tr td {
        border-top: 1px solid #334155 !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .t-account-box {
        background-color: #1e293b !important;
        border: 1px solid #334155 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    }

body.dark-mode .t-header {
        background-color: #0f172a !important;
        border-bottom: 2px solid #334155 !important;
        color: #6aa3e4 !important;
        font-weight: 700;
    }

body.dark-mode .t-divider {
        background-color: #334155 !important;
    }

body.dark-mode .t-kind-header {
        background-color: #162032 !important;
        color: #f8fafc !important;
        border-bottom: 1px dashed #334155 !important;
    }

body.dark-mode .t-row {
        border-bottom: 1px solid #334155 !important;
        color: #cbd5e1 !important;
        transition: background-color 0.2s ease;
    }

body.dark-mode .t-row:hover {
            background-color: rgba(255, 255, 255, 0.05) !important;
        }

body.dark-mode .t-desc {
        color: #cbd5e1 !important;
    }

body.dark-mode .t-row small {
        color: #94a3b8 !important;
    }

body.dark-mode .t-amount.text-navy {
        color: #6aa3e4 !important;
    }

body.dark-mode .t-amount.text-danger {
        color: #ef4444 !important;
    }

body.dark-mode #accountFeature .clients-list {
        background-color: #1e293b !important;
        border: none !important;
    }

body.dark-mode #accountFeature .clients-list ul, body.dark-mode #accountFeature .clients-list ol, body.dark-mode #accountFeature .clients-list li {
            background-color: transparent !important;
            border-color: #334155 !important;
            color: #cbd5e1 !important;
        }

body.dark-mode #accountFeature .clients-list div[style*="background"], body.dark-mode #accountFeature .clients-list li[style*="background"] {
                background-color: transparent !important;
            }

body.dark-mode #accountFeature .clients-list li:hover, body.dark-mode #accountFeature .clients-list div.tree-row:hover {
                background-color: #334155 !important;
            }

body.dark-mode #accountFeature .clients-list a, body.dark-mode #accountFeature .clients-list span, body.dark-mode #accountFeature .clients-list label {
            color: #cbd5e1 !important;
            text-decoration: none !important;
        }

body.dark-mode #accountFeature .clients-list a:hover {
                color: #f8fafc !important;
            }

body.dark-mode #accountFeature .clients-list i.fa {
            color: #94a3b8 !important;
        }

body.dark-mode #accountFeature .clients-list * {
            border-color: #334155 !important;
        }

body.dark-mode .tree, body.dark-mode .tree ul {
        list-style: none !important;
        padding-right: 20px !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }

body.dark-mode .tree li {
            margin: 0 !important;
            padding: 10px 20px 0 0 !important;
            position: relative !important;
            list-style-type: none !important;
        }

body.dark-mode .tree li::marker {
                content: none !important;
            }

body.dark-mode .tree li::before, body.dark-mode .tree li::after {
                content: '' !important;
                position: absolute !important;
                right: 0 !important;
                left: auto !important;
                border-color: #475569 !important;
                border-style: solid !important;
            }

body.dark-mode .tree li::before {
                border-width: 0 1px 0 0 !important;
                top: 0 !important;
                bottom: 0 !important;
                height: 100% !important;
            }

body.dark-mode .tree li::after {
                border-width: 0 0 1px 0 !important;
                top: 26px !important;
                width: 15px !important;
            }

body.dark-mode .tree li:last-child::before {
                height: 27px !important;
            }

body.dark-mode .tree li a {
                display: inline-block !important;
                padding: 6px 15px !important;
                background-color: #1e293b !important;
                color: #cbd5e1 !important;
                border: 1px solid #334155 !important;
                border-radius: 6px !important;
                font-size: 13px !important;
                font-weight: 600 !important;
                text-decoration: none !important;
                transition: all 0.2s ease !important;
                position: relative !important;
                z-index: 1 !important;
                box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
                cursor: default !important;
            }

body.dark-mode .tree li a:hover, body.dark-mode .tree li a:focus {
                    background-color: #4D82BF !important;
                    border-color: #4D82BF !important;
                    color: #ffffff !important;
                    box-shadow: 0 4px 10px rgba(77, 130, 191, 0.4) !important;
                    transform: translateY(-1px) !important;
                }

body.dark-mode .tree li a:hover + ul li::before, body.dark-mode .tree li a:hover + ul li::after, body.dark-mode .tree li a:focus + ul li::before, body.dark-mode .tree li a:focus + ul li::after, body.dark-mode .tree li a:hover + ul::before, body.dark-mode .tree li a:focus + ul::before, body.dark-mode .tree li a:hover + ul ul::before, body.dark-mode .tree li a:focus + ul ul::before {
                        border-color: #4D82BF !important;
                    }

body.dark-mode .footer {
        background: #1e293b !important;
        border-top: 1px solid #334155 !important;
        color: #94a3b8 !important;
    }

body.dark-mode .footer strong, body.dark-mode .footer b {
            color: #f8fafc !important;
        }

body.dark-mode .footer code {
            background-color: #0f172a !important;
            color: #ef4444 !important;
            border: 1px solid #334155 !important;
        }

body.dark-mode table tbody tr,
    body.dark-mode .table tbody tr,
    body.dark-mode .ui-jqgrid-btable tbody tr {
        background-color: transparent !important;
    }

body.dark-mode table tbody tr td,
        body.dark-mode .table tbody tr td {
            background-color: #1e293b !important; 
            color: #cbd5e1 !important;
            border-color: #334155 !important;
        }

body.dark-mode div[style*="background-color: white"],
    body.dark-mode div[style*="background-color:white"],
    body.dark-mode div[style*="background-color: #ffffff"],
    body.dark-mode div[style*="background-color:#ffffff"],
    body.dark-mode div[style*="background: white"],
    body.dark-mode div[style*="background:white"],
    body.dark-mode div[style*="background: #ffffff"],
    body.dark-mode div[style*="background:#ffffff"],
    body.dark-mode tr[style*="background-color: white"],
    body.dark-mode tr[style*="background-color:white"],
    body.dark-mode tr[style*="background-color: #ffffff"],
    body.dark-mode tr[style*="background-color:#ffffff"] {
        background-color: #1e293b !important; 
        color: #cbd5e1 !important;
        border-color: #334155 !important;
    }

body.dark-mode .bg-white,
    body.dark-mode .white-bg {
        background-color: #1e293b !important;
        color: #cbd5e1 !important;
    }

body.dark-mode .badge-cash {
        background-color: #00695C !important;
    }

body.dark-mode .badge-info {
        background-color: #004269 !important;
    }

body.dark-mode .badge-gold18 {
        background-color: #de7729 !important;
    }

body.dark-mode .badge-gold21 {
        background-color: #de9629 !important;
    }

body.dark-mode .badge-gold24 {
        background-color: #deba29 !important;
    }

body.dark-mode .badge-silver925 {
        background-color: #888888 !important;
        color: #ffffff !important;
    }

body.dark-mode .badge-silver999 {
        background-color: #a0a0a0 !important;
        color: #000000 !important;
    }

body.dark-mode tfoot tr.bg-muted {
        background-color: #334155 !important;
        color: #cbd5e1 !important;
    }

body.dark-mode tfoot tr.bg-info {
        background-color: #003366 !important;
        color: #ffffff !important;
    }

body.dark-mode tfoot tr.bg-primary {
        background-color: #00695C !important;
        color: #ffffff !important;
    }

body.dark-mode .table-hover > tbody > tr > td {
        color: #e2e8f0 !important;
    }

body.dark-mode table.table > thead > tr > th {
        background-color: #2a2a2a !important;
        border-bottom: 2px solid #444444 !important;
        color: #e0e0e0 !important;
    }

body.dark-mode .clients-list table.table > tbody > tr > td {
        border-top: 1px solid #333333 !important;
        color: #e0e0e0 !important;
    }

body.dark-mode tfoot tr {
        background-color: #242424 !important;
        border-top: 2px solid #444444 !important;
    }

body.dark-mode .table-hover > tbody > tr.selected-row:hover > td,
    body.dark-mode .table-hover > tbody > tr.selected-row > td {
        background-color: rgba(77, 130, 191, 0.3) !important;
    }

body.dark-mode .clients-list table.table thead tr th {
        
        background-color: #2a2a2a !important;
        color: #ffffff !important;
        border-bottom: 2px solid #444444 !important;
    }

body.dark-mode .badge-cash {
        background-color: #004d40 !important;
        color: #fff !important;
    }

body.dark-mode .badge-info {
        background-color: #003366 !important;
        color: #fff !important;
    }

body.dark-mode .badge-gold18 {
        background-color: #a05d00 !important;
        color: #fff !important;
    }

body.dark-mode .badge-gold21 {
        background-color: #b87333 !important;
        color: #fff !important;
    }

body.dark-mode .badge-gold24 {
        background-color: #d4a017 !important;
        color: #fff !important;
    }

body.dark-mode .badge-silver925 {
        background-color: #555555 !important;
        color: #fff !important;
    }

body.dark-mode .badge-silver999 {
        background-color: #777777 !important;
        color: #fff !important;
    }

body.dark-mode .dd-list,
    body.dark-mode .dd-item,
    body.dark-mode .dd-handle {
        background-color: #1e1e1e !important;
        border-color: #333333 !important;
        color: #e0e0e0 !important;
    }

body.dark-mode .dd-handle:hover {
            background-color: #333333 !important;
            color: #ffffff !important;
        }

body.dark-mode table.table-striped > tbody > tr > td {
        color: #cccccc !important;
    }



/* ---------- part 2: ifx core (from Solitaires app-ui.css) ---------- */

body.dark-mode .ifx-page .ifx-table > tfoot > tr.ifx-sum-row > th { background: rgba(255, 255, 255, .04); color: #e2e8f0; border-color: #334155; }

body.dark-mode .ifx-page .ifx-table > tfoot > tr.ifx-sum-final > th { background: transparent; border-top-color: #cbd5e1; }

body.dark-mode .ifx-page .ifx-grid tr.ifx-new-row > td { background: rgba(77, 130, 191, .12); }

body.dark-mode .ifx-role-tag { background: rgba(255, 255, 255, .08); color: #cbd5e1; }

body.dark-mode .ifx-pop { background: #1e293b; border-color: #334155; }

body.dark-mode .ifx-topbar .dropdown-languages .ifx-lang-item { color: #e2e8f0; }

body.dark-mode .ifx-topbar .dropdown-languages .ifx-lang-item:hover { background: rgba(255, 255, 255, .06); }

body.dark-mode .ifx-topbar .dropdown-languages .ifx-lang-item.active { background: rgba(77, 130, 191, .25); color: #cfe0f3; }

body.dark-mode .ifx-topbar .navbar-static-top { background: #1e293b; border-color: #334155; }

body.dark-mode .ifx-topbar .ifx-topbar-est { color: #e2e8f0; }

body.dark-mode .ifx-topbar .navbar-top-links > li > a.ifx-topbar-icon,
body.dark-mode .ifx-topbar .navbar-top-links > li > a.count-info,
body.dark-mode .ifx-topbar .navbar-top-links > li > a.dropdown-toggle { background: rgba(255, 255, 255, .06); color: #cbd5e1; }

body.dark-mode .navbar-default.navbar-static-side { background: #0f172a; }

body.dark-mode #side-menu > li.nav-header { background: #0b1222; }

body.dark-mode .modal.inmodal .modal-header,
body.dark-mode .modal.inmodal .modal-footer,
body.dark-mode .modal.ifx-confirm .modal-body,
body.dark-mode .modal.ifx-confirm .modal-footer { background: #1e293b; border-color: #334155; }

body.dark-mode .modal.inmodal .modal-body { background: #0f172a; color: #cbd5e1; }

body.dark-mode .modal.inmodal .modal-header .modal-title,
body.dark-mode .modal.ifx-confirm h4 { color: #e2e8f0; }

body.dark-mode .pagination.ifx-pagination > li > a { background: transparent; border-color: #334155 !important; color: #cbd5e1; }

body.dark-mode .ifx-crumbs { background: #1e293b; border-color: #334155; }

body.dark-mode .ifx-crumbs h2 { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-att-card { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-att-thumb { background: #0f172a; }

body.dark-mode .ifx-page .ifx-clog-card,
body.dark-mode .ifx-page .ifx-clog-card > .ibox-title.ifx-clog-head { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-entries .ifx-entries-total > td { background: transparent; color: #e2e8f0; }

body.dark-mode #invAdvFilter .af-box, body.dark-mode .eaf .eaf-box,
body.dark-mode #invAdvFilter .af-head, body.dark-mode .eaf .eaf-head,
body.dark-mode #invAdvFilter .af-summary, body.dark-mode .eaf .eaf-summary,
body.dark-mode #invAdvFilter .af-results, body.dark-mode .eaf .eaf-results,
body.dark-mode #invAdvFilter .af-foot, body.dark-mode .eaf .eaf-foot { background: #1e293b; border-color: #334155; }

body.dark-mode #invAdvFilter .af-conditions, body.dark-mode .eaf .eaf-conditions { background: #0f172a; border-color: #334155; }

body.dark-mode #invAdvFilter .af-row, body.dark-mode .eaf .eaf-row,
body.dark-mode #invAdvFilter th, body.dark-mode .eaf .eaf-results th { background: transparent; border-color: #334155; }

body.dark-mode #invAdvFilter td, body.dark-mode .eaf .eaf-results td,
body.dark-mode #invAdvFilter .af-head h3, body.dark-mode .eaf .eaf-head h3 { color: #e2e8f0; }

body.dark-mode .btn.ifx-btn-blue,
body.dark-mode .btn.ifx-btn-green,
body.dark-mode .btn.ifx-btn-purple,
body.dark-mode .btn.ifx-btn-teal,
body.dark-mode .btn.ifx-btn-amber,
body.dark-mode .btn.ifx-btn-indigo,
body.dark-mode .btn.ifx-btn-rose,
body.dark-mode .btn.ifx-btn-grey,
body.dark-mode .btn.ifx-btn-cancel { background: transparent; }

body.dark-mode .ifx-page .ifx-filter { border-color: #334155; }

body.dark-mode .ifx-page .ifx-stat { background: transparent; border-color: #334155; border-top-color: var(--ifx-stat, #a0a9b4); }

body.dark-mode .ifx-page .ifx-stat b { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-meter-track { background: #334155; }

body.dark-mode .modal-backdrop-custom > div { background: #1e293b; }

body.dark-mode .modal-backdrop-custom .ifx-fieldset { border-color: #334155; }

body.dark-mode .modal-backdrop-custom h4 { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-subbox { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-message-box { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-timeline > li { border-right-color: #334155; }

body.dark-mode .ifx-page .ifx-timeline > li > ul { color: #cbd5e1; }

body.dark-mode .ifx-page .ifx-vc .ibox { border-color: #334155; }

body.dark-mode .ifx-page .ifx-vc .ibox > .ibox-title,
body.dark-mode .ifx-page .ifx-vc .panel-body .panel > .panel-heading,
body.dark-mode .ifx-page .ifx-vc .table > thead > tr > th { background: transparent; }

body.dark-mode .ifx-page .ifx-vc .list-group-item { border-color: #334155; }

body.dark-mode .ifx-page .ifx-vc .list-group-item > .pull-right { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-segment > .btn.ifx-segment-on { background: rgba(77, 130, 191, .2); color: #cfe0f3; }

body.dark-mode .ifx-page .ifx-table > tbody > tr.ifx-row-expired > td,
body.dark-mode .ifx-page .ifx-modal-scroll { background: transparent; }

body.dark-mode .ifx-page .ifx-code-block:not(.ifx-code-dark) { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .report-field-box { background: transparent; border-color: #334155; }

body.dark-mode .rh { --line: #334155; --primary-soft: rgba(77, 130, 191, .15); --head: #e2e8f0; --text: #cbd5e1; }

body.dark-mode .rh-form,
body.dark-mode .rh-row:hover,
body.dark-mode .rh-result,
body.dark-mode .rh-result-bar,
body.dark-mode .rh-ms-pop,
body.dark-mode .rh-ms-btn,
body.dark-mode .rh-search .input-group-addon { background: transparent; }

body.dark-mode .ask-card,
body.dark-mode .ask-skeleton { background: transparent; border-color: #334155; }

body.dark-mode .ask-card-value,
body.dark-mode .ask-group b { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-page-head h2 { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-att-times > div { border-color: #334155; }

body.dark-mode .ifx-page .ifx-att-card h4,
body.dark-mode .ifx-page .ifx-att-times b { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-alert-info,
body.dark-mode .ifx-page .ifx-alert-ok,
body.dark-mode .ifx-page .ifx-alert-danger { background: transparent; }

body.dark-mode .ifx-page .ifx-pins > li { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-pin-text { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-kpi,
body.dark-mode .ifx-page .ifx-chart { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-kpi { border-top-color: var(--ifx-stat, #a0a9b4); }

body.dark-mode .ifx-page .ifx-kpi b,
body.dark-mode .ifx-page .ifx-chart > h5 { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-gallery-bar { border-color: #334155; }

body.dark-mode .ifx-page .ifx-gallery-card { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-gallery-img { background: #0f172a; }

body.dark-mode .ifx-upload-card { background: #1e293b; }

body.dark-mode .ifx-upload-card h4 { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-plan { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-plan-title { color: #e2e8f0; }

body.dark-mode .qe-selected-summary,
body.dark-mode .qe-amount-box,
body.dark-mode .qe-search-results,
body.dark-mode .qe-extra-line-row,
body.dark-mode .qe-add-line-form,
body.dark-mode .qe-file-input-display { background: transparent; border-color: #334155; }

body.dark-mode .qe-channel-list { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page .ifx-intro { background: rgba(77, 130, 191, .15); color: #cfe0f3; }

body.dark-mode .ifx-page .ifx-rows > li { border-color: #334155; color: #e2e8f0; }

body.dark-mode .item-detail .stat-card-box { background: transparent; border-color: #334155; }

body.dark-mode .item-detail .it-aging-table { border-color: #334155; }

body.dark-mode .item-detail .it-aging-table th { background: rgba(255, 255, 255, .04); border-color: #334155; }

body.dark-mode .item-detail .it-aging-table td { border-color: #334155; color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-card,
body.dark-mode .ifx-page .ifx-sec { background: transparent; }

body.dark-mode .ifx-page .ifx-head,
body.dark-mode .ifx-page .ifx-form-actions,
body.dark-mode .ifx-page .ifx-field,
body.dark-mode .ifx-page .ifx-section,
body.dark-mode .ifx-page .ifx-sec,
body.dark-mode .ifx-page .ifx-sec-head,
body.dark-mode .ifx-page .ifx-tree-head,
body.dark-mode .ifx-page .ifx-table > tbody > tr > td { border-color: #334155; }

body.dark-mode .ifx-page .ifx-table > thead > tr > th,
body.dark-mode .ifx-page .ifx-form-actions { background: rgba(255, 255, 255, .04); }

body.dark-mode .ifx-page .ifx-title h5,
body.dark-mode .ifx-page .ifx-name,
body.dark-mode .ifx-page .ifx-section,
body.dark-mode .ifx-page .ifx-check,
body.dark-mode .ifx-page .ifx-sec-head,
body.dark-mode .ifx-page .ifx-tree-head h6,
body.dark-mode .ifx-page .ifx-field dd { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-code,
body.dark-mode .ifx-page .ifx-tag,
body.dark-mode .it-tag { background: rgba(255, 255, 255, .08); color: #cbd5e1; }

body.dark-mode .ifx-page .ifx-tag-on,
body.dark-mode .it-tag-draft { background: rgba(77, 130, 191, .25); color: #cfe0f3; }

body.dark-mode .it-tag-warn { background: rgba(248, 172, 89, .2); color: #f8c98a; }

body.dark-mode .it-tag-stop { background: rgba(237, 85, 101, .2); color: #f4a3ab; }

body.dark-mode .it-tag-ok { background: rgba(30, 142, 90, .2); color: #8ee0b5; }

body.dark-mode .ifx-page .ifx-table > tbody > tr.ifx-selected > td { background: rgba(77, 130, 191, .18) !important; }

body.dark-mode .ifx-page .ifx-tree .dd-handle { background: transparent; border-color: #334155; color: #e2e8f0; }

body.dark-mode .ifx-page .item-search-box .input-group-addon { background: transparent; }

body.dark-mode .item-detail { background: transparent !important; }

body.dark-mode .item-detail .panel,
body.dark-mode .item-detail .panel-heading.collapsible-heading { background: transparent; border-color: #334155; color: #e2e8f0; }

body.dark-mode .item-detail .panel-body .table > tbody > tr > td { border-color: #334155; color: #e2e8f0; }

body.dark-mode .item-detail .stat-card-value { color: #e2e8f0; }

body.dark-mode .it-sec-blue { background: rgba(77, 130, 191, .25); color: #cfe0f3; }

body.dark-mode .it-sec-purple { background: rgba(126, 87, 194, .25); color: #ddd0f5; }

body.dark-mode .it-sec-green { background: rgba(30, 142, 90, .2); color: #8ee0b5; }

body.dark-mode .it-sec-amber { background: rgba(212, 160, 23, .2); color: #f3d27a; }

body.dark-mode .it-chip-gold { background: rgba(212, 160, 23, .2); color: #f3d27a; }

body.dark-mode .it-price-sale { color: #6fd3a0; }

body.dark-mode .ifx-page.ifx-dr .ifx-dr-toolbar,
body.dark-mode .ifx-page.ifx-dr .ifx-dr-params,
body.dark-mode .ifx-page.ifx-dr .ifx-dr-tabs { border-color: #334155; }

body.dark-mode .ifx-page.ifx-dr .ifx-dr-params,
body.dark-mode .ifx-page.ifx-dr .ifx-dr-drop,
body.dark-mode .ifx-page.ifx-dr .ifx-dr-picker-bar,
body.dark-mode .ifx-page.ifx-dr .db-accordion details,
body.dark-mode .ifx-page.ifx-dr .db-accordion summary,
body.dark-mode .ifx-page.ifx-dr .db-accordion .accordion-body.ifx-dr-tint,
body.dark-mode .ifx-page.ifx-dr .join-row,
body.dark-mode .ifx-page.ifx-dr #columnList,
body.dark-mode .ifx-page.ifx-dr .ifx-dr-summary-box { background: transparent; border-color: #334155; }

body.dark-mode .ifx-page.ifx-dr .db-accordion .step-title,
body.dark-mode .ifx-page.ifx-dr .col-row label { color: #e2e8f0; }

body.dark-mode .ifx-page.ifx-dr .col-row { border-color: #334155; }

body.dark-mode .sql-autocomplete-menu { background: #1e293b; border-color: #334155; }

body.dark-mode .sql-autocomplete-menu .ac-main { color: #e2e8f0; }

body.dark-mode .ifx-crumbs .breadcrumb > li.active { background: rgba(77, 130, 191, .25); color: #cfe0f3; }

body.dark-mode .ifx-crumbs .breadcrumb > li > a { color: #8fb8e3; }

body.dark-mode .ifx-page h1, body.dark-mode .ifx-page h2, body.dark-mode .ifx-page h3,
body.dark-mode .ifx-page h4, body.dark-mode .ifx-page h5, body.dark-mode .ifx-page h6,
body.dark-mode .ifx-page legend,
body.dark-mode .ifx-page .ifx-diag .panel-heading,
body.dark-mode .ifx-page .ifx-invt-lane-head > b,
body.dark-mode .ifx-page .zatca-issue-title,
body.dark-mode .item-detail .it-aging-table td.it-aging-label,
body.dark-mode .ifx-progress-card h3,
body.dark-mode .modal-backdrop-custom h4 { color: #e2e8f0; }

body.dark-mode .ifx-page .ifx-vc .ibox > .ibox-title h2,
body.dark-mode .ifx-page .ifx-vc .panel-body .panel > .panel-heading,
body.dark-mode .modal-backdrop-custom .ifx-fieldset > legend,
body.dark-mode .ifx-page .ifx-fieldset > legend { color: #8fb8e3; }

body.dark-mode .ifx-taccount { background: transparent; border-color: #334155; }

body.dark-mode .ifx-taccount-head { background: rgba(255, 255, 255, .04); border-color: #334155; }

body.dark-mode .ifx-taccount-head > div { color: #cbd5e1; }

body.dark-mode .ifx-taccount-side + .ifx-taccount-side { border-color: #334155; }

body.dark-mode .ifx-taccount-kind { background: #1e3a52; color: #cfe0f3; }

body.dark-mode .ifx-taccount-row { border-color: #334155; }

body.dark-mode .ifx-taccount-row:hover { background: rgba(77, 130, 191, .12); }

body.dark-mode .ifx-taccount-desc { color: #e2e8f0; }

body.dark-mode .ifx-taccount .ifx-entries-debit { color: #6fd3a0; }

body.dark-mode .ifx-taccount .ifx-entries-credit { color: #f4a3ab; }

body.dark-mode .ibox.ifx-noresult { background: transparent; border-color: #334155; }

body.dark-mode .ifx-noresult-icon { background: rgba(77, 130, 191, .2); color: #8fb8e3; }

body.dark-mode .ifx-noresult-body h4,
body.dark-mode .ifx-noitems { color: #cbd5e1; }

body.dark-mode .ifx-noitems > .fa { color: #64748b; }

body.dark-mode .ifx-hidden-banner-danger { background: rgba(237, 85, 101, .15); border-color: rgba(237, 85, 101, .35); color: #f4a3ab; }

body.dark-mode .ifx-hidden-banner-warn { background: rgba(248, 172, 89, .15); border-color: rgba(248, 172, 89, .35); color: #f8c98a; }

/* ---------- part 3: Tenantz page blocks (tz-*) ---------- */
/* palette: page #0f172a, card #1e293b, inner panel #172033, border #334155, text #e2e8f0, muted #94a3b8,
   links / blue titles #8fb8e3, soft tints = the light colour at low alpha */

/* --- shared core bits Solitaires never gave a dark rule (muted greys read too dark on the slate cards) --- */
body.dark-mode .ifx-page .ifx-count,
body.dark-mode .ifx-page .ifx-muted,
body.dark-mode .ifx-page .ifx-empty,
body.dark-mode .ifx-page .ifx-label,
body.dark-mode .ifx-page .ifx-hint,
body.dark-mode .ifx-page .ifx-filter .ifx-filter-field > label { color: #94a3b8; }
body.dark-mode .ifx-page .ifx-zero,
body.dark-mode .ifx-page .ifx-empty > .fa,
body.dark-mode .ifx-page .ifx-search-box .fa,
body.dark-mode .ifx-page .ifx-stat.ifx-stat-zero b,
body.dark-mode .ifx-page .ifx-kpi.ifx-kpi-zero b { color: #64748b; }
body.dark-mode .ifx-page .ifx-kpi.ifx-stat-red b { color: #f87171; }
body.dark-mode .it-tag-purple { background: rgba(126, 87, 194, .22); color: #c4b5fd; }
body.dark-mode .it-tag.ifx-status.it-tag-purple { background: #7e57c2; color: #fff; }
body.dark-mode .modal.ifx-confirm .ifx-confirm-icon { background: rgba(237, 85, 101, .15); color: #fca5a5; }
body.dark-mode .ifx-topbar .ifx-topbar-toggle { background: rgba(77, 130, 191, .2); color: #8fb8e3; }
body.dark-mode .ifx-topbar .ifx-topbar-toggle:hover { background: #4d82bf; color: #fff; }
body.dark-mode .ifx-topbar .ifx-topbar-muted { color: #94a3b8; }
body.dark-mode .ifx-topbar .ifx-topbar-user { color: #8fb8e3; }

/* --- shell: top bar pills, side-menu profile, footer, validation summary --- */
body.dark-mode .ifx-topbar .navbar-top-links > li > a.tz-topbar-pill,
body.dark-mode .ifx-topbar .navbar-top-links > li > a.ifx-lang-pill { background: rgba(255, 255, 255, .06); color: #cbd5e1; }
body.dark-mode .ifx-topbar .navbar-top-links > li > a.tz-topbar-pill:hover,
body.dark-mode .ifx-topbar .navbar-top-links > li > a.ifx-lang-pill:hover { background: rgba(77, 130, 191, .25); color: #e2e8f0; }
body.dark-mode .ifx-topbar .navbar-top-links > li > a.tz-topbar-logout:hover { background: rgba(237, 85, 101, .18); color: #fca5a5; }
body.dark-mode .ifx-topbar .dropdown-languages { background: #1e293b; border-color: #334155; }
body.dark-mode #side-menu > li.nav-header .tz-nav-profile a { color: #e2e8f0; }
body.dark-mode .footer.ifx-footer { border-top-color: #334155; background: #111827; color: #94a3b8; }
body.dark-mode .ifx-footer .ifx-footer-item .fa { color: #64748b; }
body.dark-mode .ifx-footer strong { color: #e2e8f0; }
body.dark-mode .ifx-footer .ifx-footer-version { background: #1e293b; color: #cbd5e1; }
body.dark-mode .tz-valsum.validation-summary-errors { border-color: rgba(237, 85, 101, .35); background: rgba(237, 85, 101, .12); color: #fca5a5; }

/* --- plain layout pages + error page --- */
body.dark-mode.tz-plain-body { background-color: #0f172a; color: #cbd5e1; }
body.dark-mode .tz-error .tz-error-card { border-color: #334155; background: #1e293b; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
body.dark-mode .tz-error .tz-error-icon { background: rgba(237, 85, 101, .15); color: #fca5a5; }
body.dark-mode .tz-error h2 { color: #e2e8f0; }
body.dark-mode .tz-error .tz-error-sub,
body.dark-mode .tz-error .tz-error-details dt { color: #94a3b8; }
body.dark-mode .tz-error .tz-error-details { border-color: #334155; background: #172033; }
body.dark-mode .tz-error .tz-error-details dd { color: #e2e8f0; }

/* --- terms / privacy / contact, dev pages, consent mark, home dashboard --- */
body.dark-mode .tz-doc .tz-doc-title,
body.dark-mode .tz-doc .tz-doc-body h3,
body.dark-mode .tz-doc .tz-doc-body h4 { color: #e2e8f0; }
body.dark-mode .tz-doc .tz-doc-body { color: #cbd5e1; }
body.dark-mode .tz-doc .tz-doc-body a { color: #8fb8e3; }
body.dark-mode .tz-doc .tz-contact-info { border-color: #334155; background: #172033; color: #e2e8f0; }
body.dark-mode .tz-doc .tz-contact-label { color: #94a3b8; }
body.dark-mode .tz-doc .tz-contact-label .fa { color: #8fb8e3; }
body.dark-mode .tz-doc .tz-contact-map { border-color: #334155; }
body.dark-mode .ifx-page.tz-dev .ifx-title .fa { color: #8fb8e3; }
body.dark-mode .ifx-page.tz-dev .tz-dev-heading,
body.dark-mode .ifx-page.tz-dev .tz-dev-dl dd { color: #e2e8f0; }
body.dark-mode .ifx-page.tz-dev .tz-dev-dl dt { color: #94a3b8; }
body.dark-mode .ifx-page.tz-dev .tz-dev-links a { border-color: #334155; background: #172033; color: #8fb8e3; }
body.dark-mode .ifx-page.tz-dev .tz-dev-links a:hover { background: rgba(77, 130, 191, .2); }
body.dark-mode .tz-scope-emph { color: #fca5a5; }
body.dark-mode .ifx-page.tz-dash .tz-dash-avatar,
body.dark-mode .ifx-page.tz-dash .tz-dash-link .fa { background: rgba(77, 130, 191, .2); color: #8fb8e3; }
body.dark-mode .ifx-page.tz-dash .tz-dash-hello h2,
body.dark-mode .ifx-page.tz-dash .tz-dash-link { color: #e2e8f0; }
body.dark-mode .ifx-page.tz-dash .tz-dash-hello p { color: #94a3b8; }
body.dark-mode .ifx-page.tz-dash .tz-dash-link:hover { border-color: #4d82bf; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }

/* --- sign-in pages --- */
body.dark-mode.tz-auth-body { background-color: #0f172a; color: #cbd5e1; }
body.dark-mode .tz-auth .tz-auth-card,
body.dark-mode .tz-auth > .container { border-color: #334155; background: #1e293b; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
body.dark-mode .tz-auth .tz-auth-title,
body.dark-mode .tz-auth .tz-auth-sub strong { color: #e2e8f0; }
body.dark-mode .tz-auth .tz-auth-sub,
body.dark-mode .tz-auth .tz-auth-label { color: #94a3b8; }
body.dark-mode .tz-auth .tz-auth-icon { background: rgba(77, 130, 191, .2); color: #8fb8e3; }
body.dark-mode .tz-auth .tz-auth-icon-ok { background: rgba(26, 179, 148, .15); color: #6ee7b7; }
body.dark-mode .tz-auth .tz-auth-icon-warn { background: rgba(248, 172, 89, .15); color: #fcd34d; }
body.dark-mode .tz-auth .tz-auth-icon-danger { background: rgba(237, 85, 101, .15); color: #fca5a5; }
body.dark-mode .tz-auth .form-control { border-color: #475569; background-color: #0f172a; color: #e2e8f0; }
body.dark-mode .tz-auth .form-control::placeholder { color: #64748b; }
body.dark-mode .tz-auth .validation-summary-errors { border-color: rgba(237, 85, 101, .35); background: rgba(237, 85, 101, .12); color: #fca5a5; }
body.dark-mode .tz-auth .tz-auth-check { color: #cbd5e1; }
body.dark-mode .tz-auth .tz-auth-links { border-top-color: #334155; color: #94a3b8; }
body.dark-mode .tz-auth .tz-auth-links a { color: #8fb8e3; }
body.dark-mode .tz-auth .tz-auth-foot { color: #64748b; }
body.dark-mode .tz-auth .tz-auth-foot a { color: #94a3b8; }
body.dark-mode .tz-auth .tz-auth-foot a:hover { color: #8fb8e3; }
body.dark-mode .tz-auth .tz-auth-sec { border-color: #334155; background: #172033; }
body.dark-mode .tz-auth .tz-auth-sec-head { border-bottom-color: #334155; background: #111827; color: #cbd5e1; }
body.dark-mode .tz-auth .tz-auth-sec-head .fa { color: #8fb8e3; }
body.dark-mode .tz-auth .tz-auth-sec .list-group-item { border-bottom-color: #334155; color: #cbd5e1; }
body.dark-mode .tz-auth .tz-auth-sec .list-group-item label { color: #e2e8f0; }
body.dark-mode .tz-auth .tz-auth-sec .consent-description label,
body.dark-mode .tz-auth .tz-auth-meta > span:first-child { color: #94a3b8; }
body.dark-mode .tz-auth .tz-auth-sec ul.tz-auth-names { color: #cbd5e1; }
body.dark-mode .tz-auth .tz-auth-empty { border-color: #475569; color: #94a3b8; }

/* --- manage my account --- */
body.dark-mode .ifx-page .tz-manage-card { border-color: #334155; }
body.dark-mode .ifx-page .tz-manage-card .ifx-title h5 .fa { color: #8fb8e3; }
body.dark-mode .ifx-page .tz-manage-nav { border-color: #334155; background: #172033; }
body.dark-mode .ifx-page .tz-manage-link { color: #cbd5e1; }
body.dark-mode .ifx-page .tz-manage-link .fa { color: #64748b; }
body.dark-mode .ifx-page .tz-manage-link:hover,
body.dark-mode .ifx-page .tz-manage-link:focus { background: rgba(255, 255, 255, .05); color: #fff; }
body.dark-mode .ifx-page .tz-manage-link.active { background: rgba(77, 130, 191, .22); color: #cfe0f3; }
body.dark-mode .ifx-page .tz-manage-link.active .fa { color: #cfe0f3; }
body.dark-mode .ifx-page .tz-manage-pane-head h4,
body.dark-mode .ifx-page .tz-manage-sub,
body.dark-mode .ifx-page .tz-manage-steps > li { color: #e2e8f0; }
body.dark-mode .ifx-page .tz-manage-pane-head p { color: #94a3b8; }
body.dark-mode .ifx-page .tz-manage-alert-warn { border-color: rgba(248, 172, 89, .35); background: rgba(248, 172, 89, .12); color: #fcd34d; }
body.dark-mode .ifx-page .tz-manage-pane .validation-summary-errors { border-color: rgba(237, 85, 101, .35); background: rgba(237, 85, 101, .12); color: #fca5a5; }
body.dark-mode .ifx-page .tz-manage-actions { border-top-color: #334155; }
body.dark-mode .ifx-page .tz-manage-ok { border-color: rgba(26, 179, 148, .35); background: rgba(26, 179, 148, .15); color: #6ee7b7; }
body.dark-mode .ifx-page .tz-manage-steps > li::before { background: rgba(77, 130, 191, .25); color: #cfe0f3; }
body.dark-mode .ifx-page .tz-manage-key { background: #0f172a; color: #e2e8f0; }
/* the QR code keeps its white frame so phones can still scan it */
body.dark-mode .ifx-page .tz-manage-qr { border-color: #334155; background: #fff; }
body.dark-mode .ifx-page .tz-manage-codes code { border-color: #334155; background: #0f172a; color: #e2e8f0; }
@media (max-width: 767px) { body.dark-mode .ifx-page .tz-manage-nav { border-bottom-color: #334155; } }

/* --- branches, roles, bundles, permission tree (also the users page tree) --- */
body.dark-mode .ifx-page .tz-branch-logo { border-color: #475569; background: #172033; color: #94a3b8; }
body.dark-mode .ifx-page .tz-branch-logo:hover,
body.dark-mode .ifx-page .tz-branch-logo:focus-within { border-color: #4d82bf; background: rgba(77, 130, 191, .12); color: #8fb8e3; }
/* logos keep a light backing: most are dark artwork made for white paper */
body.dark-mode .ifx-page .tz-branch-logo img { background: #f1f5f9; }
body.dark-mode .ifx-page .tz-role-ico-bundle { color: #8fb8e3; }
body.dark-mode .ifx-page .tz-role-ico-key,
body.dark-mode .ifx-page .tz-role-hint { color: #64748b; }
body.dark-mode .ifx-page .tz-role-chip { background: rgba(77, 130, 191, .2); color: #cfe0f3; }
body.dark-mode .ifx-page .tz-role-note { background: #172033; color: #94a3b8; }
body.dark-mode .permission-tree-box,
body.dark-mode .tz-user .permission-tree-box { border-color: #334155; background: #0f172a; }
body.dark-mode .permission-tree-box .treeview .list-group-item,
body.dark-mode .tz-user .treeview .list-group-item { border-bottom-color: #1e293b; background: transparent; color: #cbd5e1; }
body.dark-mode .permission-tree-box .treeview .list-group-item:not(.node-disabled):hover,
body.dark-mode .tz-user .treeview .list-group-item:not(.node-disabled):hover { background: rgba(255, 255, 255, .04); }
body.dark-mode .permission-tree-box .treeview .far.fa-square,
body.dark-mode .tz-user .treeview .far.fa-square { color: #475569; }
body.dark-mode .permission-tree-box .treeview .fas.fa-check-square,
body.dark-mode .tz-user .treeview .fas.fa-check-square { color: #6aa3e4; }
body.dark-mode .permission-tree-box .node-selected,
body.dark-mode .tz-user .treeview .node-selected { background: rgba(77, 130, 191, .22) !important; color: #cfe0f3 !important; }
body.dark-mode .permission-tree-box .highlighted-node,
body.dark-mode .tz-user .permission-tree-box .highlighted-node { background: rgba(77, 130, 191, .22) !important; }
body.dark-mode .tz-user .treeview .list-group-item.tz-user-node-flash { background-color: rgba(248, 172, 89, .25) !important; }
/* search hit flash: amber at low alpha instead of the light yellow (keyframes are global; the name is dark-only) */
@keyframes tz-role-flash-dark { from { background-color: rgba(248, 172, 89, .3); } to { background-color: transparent; } }
body.dark-mode .permission-tree-box .tz-role-flash { animation-name: tz-role-flash-dark; }
@media (prefers-reduced-motion: reduce) { body.dark-mode .permission-tree-box .tz-role-flash { background-color: rgba(248, 172, 89, .3); } }

/* --- users --- */
body.dark-mode .tz-user .tz-user-avatar { border-color: #334155; background: #172033; }
body.dark-mode .tz-user .tz-user-today-dot { background: #f87171; }
body.dark-mode .tz-user .tz-user-hero { border-bottom-color: #334155; }
body.dark-mode .tz-user .tz-user-tabs { border-bottom-color: #334155; }
body.dark-mode .tz-user .tz-user-tabs > li > a { color: #94a3b8; }
body.dark-mode .tz-user .tz-user-tabs > li > a:hover { color: #e2e8f0; }
body.dark-mode .tz-user .tz-user-tabs > li.active > a,
body.dark-mode .tz-user .tz-user-tabs > li.active > a:hover,
body.dark-mode .tz-user .tz-user-tabs > li.active > a:focus { background: transparent; color: #8fb8e3; }
body.dark-mode .tz-user .tz-user-perm-list > li { border-bottom-color: #334155; }
body.dark-mode .tz-user .tz-user-perm-list .fa-key { color: #8fb8e3; }
body.dark-mode .tz-user .tz-user-drop { border-color: #475569; background: #172033; color: #94a3b8; }
body.dark-mode .tz-user .tz-user-drop .fa { color: #64748b; }
body.dark-mode .tz-user .tz-user-drop.tz-user-drop-over { border-color: #1ab394; background: rgba(26, 179, 148, .12); color: #6ee7b7; }
/* the signature keeps a light backing: dark ink on white */
body.dark-mode .tz-user .tz-user-signature { border-color: #334155; background: #f1f5f9; }

/* --- establishment + ZATCA --- */
body.dark-mode .ifx-page.tz-est .ifx-sec-head small.tz-est-sub { color: #94a3b8; }
body.dark-mode .ifx-page.tz-est .tz-est-ico { color: #64748b; }
body.dark-mode .ifx-page.tz-est .tz-est-tabs { border-bottom-color: #334155; }
body.dark-mode .ifx-page.tz-est .tz-est-tabs > li > a { color: #94a3b8; }
body.dark-mode .ifx-page.tz-est .tz-est-tabs > li > a:hover { background: rgba(255, 255, 255, .05); color: #e2e8f0; }
body.dark-mode .ifx-page.tz-est .tz-est-tabs > li.active > a,
body.dark-mode .ifx-page.tz-est .tz-est-tabs > li.active > a:hover,
body.dark-mode .ifx-page.tz-est .tz-est-tabs > li.active > a:focus { background: #1e293b; border-color: #334155 #334155 transparent; color: #8fb8e3; }
body.dark-mode .ifx-page.tz-est .tz-est-logo { border-bottom-color: #334155; }
body.dark-mode .ifx-page.tz-est .tz-est-preview { background: #020617; box-shadow: inset 0 0 0 1px #334155; }
body.dark-mode .ifx-page.tz-est .tz-est-swatch { border-color: #475569; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-ico { color: #8fb8e3; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-url { color: #94a3b8; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-key { border-color: #334155; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-key-head { background: #172033; color: #e2e8f0; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-key-head:hover { background: #1f2a3d; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-chevron { border-color: #94a3b8; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-code { border-top-color: #334155; background: #0f172a; color: #cbd5e1; }
body.dark-mode .ifx-page.tz-zatca .tz-zatca-code:empty::before { color: #64748b; }

/* --- blacklist + session history / archive --- */
body.dark-mode .tz-bl-page .tz-bl-step { border-color: #475569; background: #172033; }
body.dark-mode .tz-bl-page .tz-bl-step-no { background: rgba(77, 130, 191, .25); color: #cfe0f3; }
body.dark-mode .tz-bl-page .tz-bl-map-table { border-color: #334155; }
body.dark-mode .tz-bl-page .tz-bl-check { color: #cbd5e1; }
body.dark-mode .tz-bl-page .tz-bl-table > tbody > tr.tz-bl-deleted > td { color: #64748b; }
body.dark-mode .tz-bl-page .tz-bl-nick,
body.dark-mode .tz-bl-page .tz-bl-sample { background: #0f172a; color: #cbd5e1; }
body.dark-mode .tz-bl-page .tz-bl-extra { color: #cbd5e1; }
body.dark-mode .tz-bl-page .tz-bl-extra b { color: #e2e8f0; }
body.dark-mode .tz-bl-page .tz-bl-pager { border-top-color: #334155; }
body.dark-mode .tz-sess-page .tz-sess-intro { border-bottom-color: #334155; color: #94a3b8; }
body.dark-mode .tz-sess-page .tz-sess-details > summary { color: #8fb8e3; }
body.dark-mode .tz-sess-page .tz-sess-details-table { border-color: #334155; background: #0f172a; color: #cbd5e1; }
body.dark-mode .tz-sess-page .tz-sess-details-table > thead > tr > th { border-bottom-color: #334155; background: #111827; color: #94a3b8; }
body.dark-mode .tz-sess-page .tz-sess-details-table > tbody > tr > td { border-top-color: #1e293b; }

/* --- live sessions --- */
body.dark-mode .ifx-page.tz-us .tz-us-kpi-label { color: #94a3b8; }
body.dark-mode .ifx-page.tz-us .ifx-chart > h5 > .fa { color: #64748b; }
body.dark-mode .ifx-page.tz-us .tz-us-check { color: #e2e8f0; }
body.dark-mode .ifx-page.tz-us .tz-us-group-head { background: #172033; }
body.dark-mode .ifx-page.tz-us .tz-us-user { color: #e2e8f0; }
body.dark-mode .ifx-page.tz-us .tz-us-table > tbody > tr.tz-us-current > td { background: rgba(77, 130, 191, .14); }
/* map: darker tiles and popups that match the cards */
body.dark-mode .ifx-page.tz-us #sessionsMap .leaflet-tile-pane { filter: brightness(.75) contrast(1.1) saturate(.8); }
body.dark-mode .ifx-page.tz-us #sessionsMap .leaflet-popup-content-wrapper,
body.dark-mode .ifx-page.tz-us #sessionsMap .leaflet-popup-tip { background: #1e293b; color: #e2e8f0; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
body.dark-mode .ifx-page.tz-us #sessionsMap .leaflet-control-attribution { background: rgba(15, 23, 42, .8); color: #94a3b8; }
body.dark-mode .ifx-page.tz-us #sessionsMap .leaflet-control-attribution a { color: #8fb8e3; }
body.dark-mode .ifx-page.tz-us #sessionsMap .leaflet-bar a { border-bottom-color: #334155; background: #1e293b; color: #e2e8f0; }


/* ======================================================================================
   iCheck boxes (sign-in "remember me", knockout iCheckBox binding: skin square-yellow), 2026-11-11.
   Same as Solitaires: drawn with CSS in the theme colours instead of the yellow picture sprite --
   rounded box, blue when ticked.
   ====================================================================================== */
.icheckbox_square-yellow, .icheckbox_square-blue, .icheckbox_square-green,
.iradio_square-yellow, .iradio_square-blue, .iradio_square-green {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1.5px solid #c3ccd6;
    border-radius: 6px;
    background: #fff !important;
    background-image: none !important;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.iradio_square-yellow, .iradio_square-blue, .iradio_square-green { border-radius: 50%; }
.icheckbox_square-yellow.hover, .icheckbox_square-blue.hover, .icheckbox_square-green.hover,
.iradio_square-yellow.hover, .iradio_square-blue.hover, .iradio_square-green.hover { border-color: #4D82BF; }
.icheckbox_square-yellow.focus, .icheckbox_square-blue.focus, .icheckbox_square-green.focus,
.iradio_square-yellow.focus, .iradio_square-blue.focus, .iradio_square-green.focus { box-shadow: 0 0 0 3px rgba(77, 130, 191, .2); }
.icheckbox_square-yellow.checked, .icheckbox_square-blue.checked, .icheckbox_square-green.checked {
    border-color: #4D82BF;
    background: #4879B2 !important;
}
/* the tick */
.icheckbox_square-yellow.checked::after, .icheckbox_square-blue.checked::after, .icheckbox_square-green.checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5.5px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* a radio: blue ring */
.iradio_square-yellow.checked, .iradio_square-blue.checked, .iradio_square-green.checked { border: 6px solid #4D82BF; }
.icheckbox_square-yellow.disabled, .icheckbox_square-blue.disabled, .icheckbox_square-green.disabled,
.iradio_square-yellow.disabled, .iradio_square-blue.disabled, .iradio_square-green.disabled { opacity: .5; cursor: default; }
body.dark-mode .icheckbox_square-yellow, body.dark-mode .icheckbox_square-blue, body.dark-mode .icheckbox_square-green,
body.dark-mode .iradio_square-yellow, body.dark-mode .iradio_square-blue, body.dark-mode .iradio_square-green { border-color: #475569; background: #0f172a !important; }
body.dark-mode .icheckbox_square-yellow.checked, body.dark-mode .icheckbox_square-blue.checked, body.dark-mode .icheckbox_square-green.checked { border-color: #4879B2; background: #4879B2 !important; }
body.dark-mode .iradio_square-yellow.checked, body.dark-mode .iradio_square-blue.checked, body.dark-mode .iradio_square-green.checked { border-color: #4D82BF; }

/* Terms / Privacy (HomeFeature/Views/_LegalFacts.cshtml), 2026-11-11: who runs the service, in a light box at the top */
.tz-doc .tz-doc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px; padding: 16px; border: 1px solid #eef0f2; border-radius: 8px; background: #fdfdfe; font-size: 13px; }
.tz-doc .tz-doc-facts dt { color: #6b7680; font-weight: 600; }
.tz-doc .tz-doc-facts dd { margin: 0; color: #2f3a45; }
.tz-doc .tz-doc-body li { margin-bottom: 4px; }
body.dark-mode .tz-doc .tz-doc-facts { border-color: #334155; background: #0f172a; }
body.dark-mode .tz-doc .tz-doc-facts dt { color: #94a3b8; }
body.dark-mode .tz-doc .tz-doc-facts dd { color: #e2e8f0; }
/* sign-up consent row (Signup.cshtml): the box stays at the top of a label that may wrap; its links in the theme blue */
.tz-auth .tz-auth-consent { align-items: flex-start; margin-bottom: 4px; }
.tz-auth .tz-auth-consent .icheckbox_square-yellow { flex-shrink: 0; }
.tz-auth .tz-auth-consent label { line-height: 1.6; }
.tz-auth .tz-auth-consent label a { color: #2f6aa8; font-weight: 600; }

/* ======================================================================================
   Side menu header (SharedFeature/Views/_Layout_Admin_Navigation.cshtml), 2026-11-11 -- same as Solitaires: the
   Mansah logo A (wwwroot/img/brand/mansah-a.svg) centred above the greeting, no tile, soft blue glow.
   Collapsed menu: the same logo, small (inspinia hides .profile-element then and shows .logo-element).
   ====================================================================================== */
#side-menu > li.nav-header { padding: 22px 16px 16px; text-align: center; }
#side-menu > li.nav-header .ifx-nav-brand { display: flex; justify-content: center; margin-bottom: 14px; }
#side-menu > li.nav-header .ifx-nav-brand > img,
#side-menu > li.nav-header .ifx-nav-mark > img { display: block; height: auto; filter: drop-shadow(0 0 12px rgba(127, 176, 227, .35)); }
#side-menu > li.nav-header .ifx-nav-brand > img { width: 118px; }
#side-menu > li.nav-header .tz-nav-profile { margin-top: 0; }
#side-menu > li.nav-header .profile-element .block { font-size: 14px; }
#side-menu > li.nav-header .profile-element .text-xs { margin-top: 2px; font-size: 12px; }
#side-menu > li.nav-header .ifx-nav-mark { display: none; justify-content: center; padding: 16px 0; }
#side-menu > li.nav-header .ifx-nav-mark > img { width: 46px; filter: drop-shadow(0 0 6px rgba(127, 176, 227, .35)); }
body.mini-navbar #side-menu > li.nav-header .ifx-nav-mark { display: flex; }
body.mini-navbar #side-menu > li.nav-header { padding: 0; }

/* Users page: super admin "change user password" window (Features/UserFeature/Views/_Detail.cshtml #tz-set-password), 2026-11-11 */
.tz-pw .tz-pw-user { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 12px; padding: 8px 12px; border-radius: 8px; background: #f2f5f8; }
.tz-pw .tz-pw-note { margin-bottom: 12px; color: #6b7680; font-size: 12px; line-height: 1.7; }
.tz-pw .tz-pw-mode { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.tz-pw .tz-pw-mode label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; cursor: pointer; }
.tz-pw .tz-pw-error { margin: 0; font-weight: 600; }
.tz-pw .tz-pw-done { margin-bottom: 12px; }
.tz-pw .tz-pw-result { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed #b7c4d4; border-radius: 8px; background: #fbfcfd; }
.tz-pw .tz-pw-result code { flex: 1; padding: 0; background: transparent; color: #1f2a37; font-size: 20px; font-weight: 700; letter-spacing: 1px; user-select: all; }

/* Sessions pages: "all establishments" switch (maintenance password box) -- Views/_AllSessionsSwitch.cshtml */
.tz-us-unlock { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.tz-us-unlock .form-control.input-sm { width: 180px; height: 30px; }

/* ======================================================================================
   Feature map (/FeatureMap, super admin, no menu entry) -- Features/FeatureMapFeature/Views/Index.cshtml, 2026-11-12.
   Every page with its old + new features, «new» group first, filters, tested marks, tour window.
   ====================================================================================== */
.tz-fm { --fm-new: #a15c00; --fm-new-soft: #fff1d6; --fm-ok: #2e7d4f; --fm-ok-soft: #f3faf6; --fm-bad: #b3261e; --fm-bad-soft: #fdf5f4; --fm-line: #e1e6ec; --fm-muted: #6b7680; }
.tz-fm [hidden] { display: none !important; }
.tz-fm .tz-fm-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; margin-bottom: 16px; background: #fff; border: 1px solid var(--fm-line); border-radius: 4px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.tz-fm .tz-fm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tz-fm .tz-fm-title { margin: 0; font-size: 17px; font-weight: 700; color: #1f2a37; }
.tz-fm .tz-fm-built { font-size: 12px; color: var(--fm-muted); }
.tz-fm .tz-fm-grow { flex: 1; }
.tz-fm .tz-fm-search { flex: 1; min-width: 220px; }
.tz-fm .tz-fm-filters .btn .tz-fm-n { margin-inline-start: 4px; font-size: 11px; opacity: .75; }
.tz-fm .tz-fm-app { width: 230px; height: 30px; direction: ltr; }
.tz-fm .tz-fm-progress { gap: 18px; font-size: 12.5px; color: var(--fm-muted); }
.tz-fm .tz-fm-meter { display: inline-flex; width: 150px; height: 7px; margin-inline-start: 6px; overflow: hidden; vertical-align: middle; border-radius: 99px; background: var(--fm-line); }
.tz-fm .tz-fm-meter i { display: block; height: 100%; }
.tz-fm .tz-fm-meter .ok { background: var(--fm-ok); }
.tz-fm .tz-fm-meter .bad { background: var(--fm-bad); }
.tz-fm .tz-fm-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.tz-fm .tz-fm-nav { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; padding: 10px 8px; font-size: 13px; background: #fff; border: 1px solid var(--fm-line); border-radius: 4px; }
.tz-fm .tz-fm-nav .g { margin: 10px 6px 4px; font-size: 12px; font-weight: 700; color: var(--fm-muted); }
.tz-fm .tz-fm-nav a { display: flex; justify-content: space-between; gap: 6px; padding: 3px 8px; border-radius: 6px; color: #2f3a45; }
.tz-fm .tz-fm-nav a:hover { background: #eaf1f9; text-decoration: none; }
.tz-fm .tz-fm-nav .cnt { font-size: 11.5px; color: var(--fm-muted); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.tz-fm .tz-fm-nav .nw { font-weight: 700; color: var(--fm-new); }
.tz-fm .tz-fm-nav a.new-link { margin-bottom: 4px; font-weight: 700; color: var(--fm-new); background: var(--fm-new-soft); }
.tz-fm .tz-fm-sec { margin-bottom: 18px; }
.tz-fm .tz-fm-sec > h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--fm-muted); }
.tz-fm details.tz-fm-page, .tz-fm details.tz-fm-newgrp { margin-bottom: 10px; background: #fff; border: 1px solid var(--fm-line); border-radius: 4px; }
.tz-fm details.tz-fm-newgrp { border-color: #f0d49c; }
.tz-fm details.tz-fm-newgrp > summary { background: var(--fm-new-soft); }
.tz-fm details > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 16px; list-style: none; cursor: pointer; }
.tz-fm details > summary::-webkit-details-marker { display: none; }
.tz-fm details > summary::before { content: "\25C2"; font-size: 12px; color: var(--fm-muted); transition: transform .15s; }
html[dir="ltr"] .tz-fm details > summary::before { content: "\25B8"; }
.tz-fm details[open] > summary::before { transform: rotate(-90deg); }
html[dir="ltr"] .tz-fm details[open] > summary::before { transform: rotate(90deg); }
.tz-fm .tz-fm-ptitle { font-size: 15px; font-weight: 700; color: #1f2a37; }
.tz-fm .tz-fm-pcounts { font-size: 12px; color: var(--fm-muted); }
.tz-fm .tz-fm-pcounts .nw { font-weight: 700; color: var(--fm-new); }
.tz-fm .tz-fm-pwhat { margin: 0; padding: 0 16px 8px; font-size: 13px; color: var(--fm-muted); }
.tz-fm .tz-fm-open { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tz-fm .tz-fm-subpage { padding: 10px 16px 2px; border-top: 1px solid var(--fm-line); font-size: 13px; font-weight: 700; color: #4879B2; cursor: pointer; }
.tz-fm .tz-fm-feat { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 9px 16px; border-top: 1px solid #eef1f5; }
.tz-fm .tz-fm-feat.s-ok { background: var(--fm-ok-soft); }
.tz-fm .tz-fm-feat.s-bad { background: var(--fm-bad-soft); }
.tz-fm .tz-fm-marks { display: flex; gap: 4px; padding-top: 2px; }
.tz-fm .tz-fm-marks .btn { min-width: 28px; }
.tz-fm .tz-fm-marks .btn.ok.active { background: var(--fm-ok); border-color: var(--fm-ok); color: #fff; }
.tz-fm .tz-fm-marks .btn.bad.active { background: var(--fm-bad); border-color: var(--fm-bad); color: #fff; }
.tz-fm .tz-fm-fname { font-weight: 600; color: #1f2a37; }
.tz-fm .tz-fm-badge { margin-inline-start: 6px; padding: 0 7px; border-radius: 5px; font-size: 11px; vertical-align: 1px; }
.tz-fm .tz-fm-badge.new { font-weight: 700; color: var(--fm-new); background: var(--fm-new-soft); }
.tz-fm .tz-fm-badge.dev { color: var(--fm-muted); background: #eceff3; }
.tz-fm .tz-fm-date { margin-inline-start: 6px; font-size: 11.5px; color: var(--fm-muted); }
.tz-fm .tz-fm-desc { font-size: 13.5px; color: #3a4552; }
.tz-fm .tz-fm-tourbtn { margin-inline-start: 8px; }
.tz-fm .tz-fm-more { grid-column: 2; font-size: 13px; }
.tz-fm .tz-fm-more > summary { display: inline-flex; padding: 2px 0; font-size: 12.5px; font-weight: 600; color: #4879B2; }
.tz-fm .tz-fm-more > summary::before { display: none; }
.tz-fm .tz-fm-more ol, .tz-fm .tz-fm-more ul { margin: 4px 0; padding-inline-start: 20px; }
.tz-fm .tz-fm-lbl { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--fm-muted); }
.tz-fm .tz-fm-need { display: flex; gap: 8px; margin: 3px 0; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; color: #7a5200; background: #fff4dc; }
.tz-fm .tz-fm-need b { flex: none; }
.tz-fm .tz-fm-mono { font-family: Consolas, monospace; font-size: 12px; }
.tz-fm .tz-fm-devbox { margin-top: 6px; padding-inline-start: 10px; border-inline-start: 3px solid var(--fm-line); }
.tz-fm .tz-fm-note { grid-column: 2; width: 100%; min-height: 34px; padding: 5px 8px; font-size: 13px; border: 1px solid #efc9c4; border-radius: 6px; resize: vertical; }
.tz-fm .tz-fm-empty { padding: 40px; text-align: center; color: var(--fm-muted); background: #fff; border-radius: 4px; }
.tz-fm mark { padding: 0; color: inherit; background: #fff0a8; border-radius: 2px; }
.tz-fm .tz-fm-saving { font-size: 12px; color: var(--fm-muted); }
.tz-fm .tz-fm-saving.err { font-weight: 700; color: var(--fm-bad); }
/* 2026-11-15 map source + «رفع حزمة خريطة الميزات» panel */
.tz-fm .tz-fm-pkg { margin-top: 8px; font-size: 12px; color: var(--fm-muted); }
.tz-fm .tz-fm-pkg > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.tz-fm .tz-fm-pkg > summary::-webkit-details-marker { display: none; }
.tz-fm .tz-fm-pkg-link { margin-inline-start: 6px; color: #2f6aa8; text-decoration: underline; }
.tz-fm .tz-fm-pkg-body { margin-top: 8px; padding: 10px 12px; border: 1px solid #e1e6ec; border-radius: 8px; background: #fbfcfd; color: #2f3a45; }
.tz-fm .tz-fm-pkg-body code { font-size: 11px; }
.tz-fm .tz-fm-pkg-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tz-fm .tz-fm-pkg-status { font-size: 12px; color: var(--fm-muted); }
.tz-fm .tz-fm-pkg-status.err { font-weight: 700; color: var(--fm-bad); }
/* tour window: one screenshot per step with its caption */
.tz-fm-tour { width: min(1280px, 96vw); max-height: 96vh; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 20px 60px rgba(16, 24, 40, .35); }
.tz-fm-tour::backdrop { background: rgba(16, 24, 40, .55); }
.tz-fm-tour .tz-fm-tour-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eef0f2; }
.tz-fm-tour .tz-fm-tour-head h4 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; }
.tz-fm-tour .tz-fm-tour-img { display: flex; justify-content: center; max-height: 74vh; overflow: auto; background: #f2f5f8; }
.tz-fm-tour .tz-fm-tour-img img { display: block; max-width: 100%; height: auto; cursor: zoom-in; }
.tz-fm-tour .tz-fm-tour-text { padding: 12px 16px; font-size: 14px; line-height: 1.7; }
.tz-fm-tour .tz-fm-tour-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #eef0f2; }
.tz-fm-tour .tz-fm-tour-foot .tz-fm-step { flex: 1; font-size: 12.5px; color: #6b7680; }
@media (max-width: 900px) { .tz-fm .tz-fm-layout { grid-template-columns: 1fr; } .tz-fm .tz-fm-nav { display: none; } }

/* ======================================================================================
   Top bar actions, copied from Solitaires (wwwroot/css/app-ui.css "top bar actions") so both apps' bars match:
   every button is the same 38px round icon with a tooltip, a thin divider, and logout last with its word.
   ====================================================================================== */
.ifx-topbar .ifx-topbar-actions { display: flex; align-items: center; min-height: 56px; }
/* bootstrap's navbar-right pulls the group 15px past the bar's edge: keep logout 16px clear of it instead */
.ifx-topbar .navbar-top-links.ifx-topbar-actions { margin-left: 0; margin-right: 0; padding-inline-end: 16px; }
.ifx-topbar .navbar-top-links.ifx-topbar-actions > li:last-child { margin-left: 0; margin-right: 0; }
.ifx-topbar .ifx-topbar-toggle > .fa { margin: 0; }
.ifx-topbar .ifx-topbar-actions > li { display: flex; align-items: center; }
.ifx-topbar .ifx-topbar-actions > li > a.ifx-topbar-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; min-width: 38px; height: 38px; min-height: 0; margin: 0 3px; padding: 0; border: 1px solid #dde3ea; border-radius: 50%; background: #fff; color: #4a5560; font-size: 15px; }
.ifx-topbar .ifx-topbar-actions > li > a.ifx-topbar-icon:hover,
.ifx-topbar .ifx-topbar-actions > li.open > a.ifx-topbar-icon { border-color: #b9cfe8; background: #eaf2fb; color: #2f6aa8; }
body.dark-mode .ifx-topbar .ifx-topbar-actions > li > a.ifx-topbar-icon { border-color: #334155; background: transparent; color: #cbd5e1; }
body.dark-mode .ifx-topbar .ifx-topbar-actions > li > a.ifx-topbar-icon:hover,
body.dark-mode .ifx-topbar .ifx-topbar-actions > li.open > a.ifx-topbar-icon { border-color: #4D82BF; background: rgba(77, 130, 191, .2); color: #cfe0f3; }
.ifx-topbar .ifx-topbar-actions > li > a.ifx-topbar-icon > .fa { margin: 0; font-size: 15px; }
.ifx-topbar .ifx-topbar-sep { width: 1px; height: 24px; margin: 0 8px; background: #d5dce4; }
/* logout: last, with its word; turns red only on hover */
.ifx-topbar .ifx-topbar-logout-form { display: flex; margin: 0; }
.ifx-topbar .navbar-top-links a.ifx-topbar-logout { display: inline-flex; align-items: center; gap: 6px; height: 38px; min-height: 0; margin: 0 3px; padding: 0 14px; border: 1px solid #dde3ea; border-radius: 999px; background: transparent; color: #4a5560; font-size: 13px; font-weight: 600; }
.ifx-topbar .navbar-top-links a.ifx-topbar-logout:hover,
.ifx-topbar .navbar-top-links a.ifx-topbar-logout:focus { border-color: #f5c2c0; background: #fdecea; color: #b42318; }
@media (max-width: 767px) {
    .ifx-topbar .navbar-top-links a.ifx-topbar-logout { width: 38px; padding: 0; justify-content: center; }
    .ifx-topbar .navbar-top-links a.ifx-topbar-logout > span { display: none; }
    .ifx-topbar .ifx-topbar-sep { margin: 0 4px; }
}
body.dark-mode .ifx-topbar .ifx-topbar-sep { background: #334155; }
body.dark-mode .ifx-topbar .navbar-top-links a.ifx-topbar-logout { border-color: #334155; color: #cbd5e1; }
body.dark-mode .ifx-topbar .navbar-top-links a.ifx-topbar-logout:hover,
body.dark-mode .ifx-topbar .navbar-top-links a.ifx-topbar-logout:focus { border-color: rgba(237, 85, 101, .45); background: rgba(237, 85, 101, .2); color: #f4a3ab; }
