/*
 * XERACC compact theme – loaded on every page of the new app (AppPanelProvider render hook).
 * Filament sizes everything in rem, so the root font size is the main density control.
 */

html { font-size: 14px; }

/* ---------- page layout ---------- */
.fi-main { padding-inline: 1rem !important; }
.fi-page-header-main-ctn { padding-block: 0.75rem !important; row-gap: 0.75rem !important; }
.fi-header { gap: 0.25rem !important; }
.fi-header-heading { font-size: 1.35rem !important; line-height: 1.75rem !important; }
.fi-header-subheading { font-size: 0.85rem !important; margin-top: 0 !important; }
.fi-topbar { min-height: 3rem; }
.fi-topbar > nav, .fi-topbar nav { height: 3rem; }

/* ---------- sidebar ---------- */
.fi-sidebar-item-btn { padding-block: 0.3rem !important; }
.fi-sidebar-group-btn { padding-block: 0.35rem !important; }
.fi-sidebar-nav { row-gap: 0.75rem !important; padding-top: 0.75rem !important; }
.fi-sidebar-nav-groups { row-gap: 0.75rem !important; }
.fi-sidebar-group-items { row-gap: 0 !important; }

/* ---------- tables ---------- */
.fi-ta-header-toolbar { padding: 0.4rem 0.75rem !important; }
.fi-ta-header-cell { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; white-space: nowrap; }
.fi-ta-header-cell:first-of-type { padding-left: 0.75rem !important; }
.fi-ta-text { padding-top: 0.3rem !important; padding-bottom: 0.3rem !important; }
.fi-ta-cell { white-space: nowrap; }
.fi-ta-cell:first-of-type .fi-ta-text { padding-left: 0.75rem !important; }
.fi-ta-icon, .fi-ta-actions { padding-top: 0.2rem !important; padding-bottom: 0.2rem !important; }
.fi-ta-record-checkbox, .fi-ta-cell .fi-checkbox-input { margin-block: 0 !important; }
.fi-ta-table tbody tr:hover > td { background-color: rgb(214 234 239) !important; } /* row hover: brand teal-100, stands out from the stripes */
.dark .fi-ta-table tbody tr:hover > td { background-color: rgb(255 255 255 / 0.10) !important; }
.fi-pagination { padding: 0.4rem 0.75rem !important; }

/* numbers: equal-width digits so amounts line up */
.fi-ta-text-item, .fi-input, .fi-fo-text-input input { font-variant-numeric: tabular-nums; }

/* ---------- forms / sections ---------- */
.fi-section-header { padding: 0.6rem 1rem !important; }
.fi-section-content { padding: 0.75rem 1rem !important; }
.fi-sc { row-gap: 0.75rem !important; column-gap: 1rem !important; }
.fi-fo-field { row-gap: 0.25rem !important; }
.fi-fo-field-label-content, .fi-fo-field-label { font-size: 0.85rem !important; }
.fi-input-wrp { min-height: 2.1rem; }
.fi-input { padding-block: 0.3rem !important; }
.fi-tabs { padding: 0.25rem !important; }
.fi-tabs-item { padding: 0.35rem 0.75rem !important; }
.fi-sc-tabs .fi-sc-tabs-tab, .fi-sc-tabs-tab { padding: 0.75rem 1rem !important; }
.fi-ac { gap: 0.5rem !important; }
.fi-btn { padding-block: 0.35rem !important; }

/* modals & slide-overs */
.fi-modal-header { padding: 0.75rem 1rem !important; }
.fi-modal-content { padding: 0.75rem 1rem !important; row-gap: 0.75rem !important; }
.fi-modal-footer { padding: 0.75rem 1rem !important; }

/* row-action cell (⋯ menu) had its own large padding */
.fi-ta-table td:has(> .fi-ta-actions), .fi-ta-actions-cell { padding-top: 0 !important; padding-bottom: 0 !important; }
.fi-ta-table td, .fi-ta-table th { padding-top: 0; padding-bottom: 0; }
.fi-ta-selection-cell, .fi-ta-group-header-cell { padding-top: 0.2rem !important; padding-bottom: 0.2rem !important; }

/* ---------- hamburger sidebar: opens OVER the page instead of pushing it ---------- */
@media (min-width: 1024px) {
    .fi-sidebar.fi-sidebar-open {
        position: fixed !important;
        top: 3rem; left: 0; bottom: 0;
        z-index: 40;
        box-shadow: 0 10px 30px rgb(15 23 42 / 0.25);
        background: white;
    }
    .dark .fi-sidebar.fi-sidebar-open { background: rgb(17 24 39); }
    .fi-main-ctn { margin-inline-start: 0 !important; }
}

/* ---------- menu trees closed: folders show their sub-items only when opened ---------- */
.fi-sidebar li.xr-folder > .fi-sidebar-sub-group-items { display: none; }
.fi-sidebar li.xr-folder.xr-open > .fi-sidebar-sub-group-items { display: flex; }
.fi-sidebar li.xr-folder > a.fi-sidebar-item-btn { cursor: pointer; }
.fi-sidebar li.xr-folder > a.fi-sidebar-item-btn::after {
    content: '';
    margin-inline-start: auto;
    width: 0.4rem; height: 0.4rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.5;
    transition: transform 0.15s;
}
.fi-sidebar li.xr-folder.xr-open > a.fi-sidebar-item-btn::after { transform: rotate(45deg); }
/* the unnamed group (Dashboard) is never collapsed */
.fi-sidebar-group[data-group-label=""] > .fi-sidebar-group-items { display: flex !important; }

/* ---------- screen width follows the content, kept on the left ---------- */
/* pages with a set width (profile, settings) sit on the left instead of in the middle */
.fi-main { margin-inline-start: 0 !important; margin-inline-end: auto !important; }

/* Every screen uses the whole width of the browser window and adjusts to it (Mohsen 2026-10-16): no fixed page widths
   (lists, forms, settings, reports …). Pages that set a narrower width (Width::FourExtraLarge …) are widened here too. */
.fi-main { max-width: none !important; width: 100%; }
.fi-page.fi-resource-list-records-page .fi-ta-table { width: 100%; }

/* ---------- fields sized by content (widths from App\Filament\Support\FieldWidth) ---------- */
/* On wide screens a form grid that holds fields becomes a left-to-right flow: each field takes its own width. */
@media (min-width: 1024px) {
    .fi-sc.fi-grid:has(> .fi-grid-col > .fi-sc-component > :is(.fi-fo-field, .fi-in-entry)) {
        display: flex !important;
        flex-wrap: wrap;
        column-gap: 1rem;
        row-gap: 0.75rem;
        align-items: flex-start;
    }
    .fi-sc.fi-grid:has(> .fi-grid-col > .fi-sc-component > :is(.fi-fo-field, .fi-in-entry)) > .fi-grid-col {
        flex: 0 0 auto;
        max-width: 100%;
    }
    /* sections, groups, tabs and "whole row" fields (text areas, checkbox lists …) still take the whole row */
    .fi-sc.fi-grid:has(> .fi-grid-col > .fi-sc-component > :is(.fi-fo-field, .fi-in-entry)) > .fi-grid-col:not(:has(> .fi-sc-component > :is(.fi-fo-field, .fi-in-entry))),
    .fi-sc.fi-grid:has(> .fi-grid-col > .fi-sc-component > :is(.fi-fo-field, .fi-in-entry)) > .fi-grid-col[style*="1 / -1"],
    .fi-sc.fi-grid:has(> .fi-grid-col > .fi-sc-component > :is(.fi-fo-field, .fi-in-entry)) > .fi-grid-col:has(textarea, .fi-fo-checkbox-list, .fi-fo-repeater, .fi-fo-table-repeater, .fi-fo-file-upload, .fi-fo-rich-editor, .fi-fo-markdown-editor) {
        flex-basis: 100%;
    }
    .fi-fo-rich-editor, .fi-fo-markdown-editor { width: 100%; }
    .fi-fo-field[style*="--xr-w"] { width: var(--xr-w); }
    /* a width a form sets on purpose (--xr-wf) wins over the measured one (Mortgages & Loans, 2026-10-26) */
    .fi-fo-field[style*="--xr-wf"] { width: var(--xr-wf); }
    .fi-in-entry { min-width: 10rem; }
    /* table repeaters (journal lines …): the column decides the width */
    .fi-fo-table-repeater .fi-fo-field[style*="--xr-w"] { width: 100%; }
}
.fi-fo-table-repeater > table > tbody > tr > td { padding: .25rem .4rem; }
.fi-fo-table-repeater > table > thead > tr > th { padding: .4rem .5rem; font-size: .8rem; }

/* indexing screen: form on the left, the document on the right (sticky while scrolling the form) */
.fi-page.fi-resource-documents-indexes.fi-resource-create-record-page,
.fi-page.fi-resource-documents-indexes.fi-resource-edit-record-page { max-width: none; }
@media (min-width: 1280px) {
    .xr-doc-viewer { position: sticky; top: 3.75rem; align-self: flex-start; }
}

/* ---------- reports (Projects: labour hours, cost report; status history) ---------- */
.xr-report h3 { font-weight: 600; font-size: 1rem; margin-bottom: .15rem; }
.xr-report .xr-report-sub { color: rgb(107 114 128); font-size: .8rem; margin-bottom: .75rem; }
.xr-report table { border-collapse: collapse; font-size: .8rem; line-height: 1.15; min-width: 32rem; }
.xr-report th, .xr-report td { padding: .12rem .5rem; border-bottom: 1px solid rgb(229 231 235); text-align: left; white-space: nowrap; vertical-align: middle; }
.xr-report th { padding-top: .25rem; padding-bottom: .25rem; }
.xr-report th.num, .xr-report td.num { width: 8.5rem; min-width: 7rem; }
.xr-report tbody tr:hover > td { background: rgb(214 234 239); }
.dark .xr-report tbody tr:hover > td { background: rgb(255 255 255 / 0.06); }
/* small inline actions inside report rows (e.g. change map no.) must not make the row taller */
.xr-report td .fi-icon-btn, .xr-report td .fi-link { height: 1.1rem; width: 1.1rem; min-height: 0; padding: 0; vertical-align: middle; }
.xr-report td .fi-icon-btn svg, .xr-report td .fi-icon-btn .fi-icon { height: .85rem; width: .85rem; }
.dark .xr-report th, .dark .xr-report td { border-color: rgb(255 255 255 / 0.1); }
.xr-report th { font-weight: 600; background: rgb(249 250 251); }
.dark .xr-report th { background: rgb(255 255 255 / 0.05); }
.xr-report .num { text-align: right; font-variant-numeric: tabular-nums; }
.xr-report .xr-group td { font-weight: 600; padding-top: .45rem; }
.xr-report .xr-subtotal td { font-weight: 600; border-bottom-width: 2px; }
.xr-report .xr-total td { font-weight: 700; border-top: 2px solid currentColor; }
.xr-report .xr-warn { color: rgb(217 119 6); }
.xr-report.xr-loading { opacity: .5; }

/* standard page margins for every printout (reports set the orientation in public/js/xeracc.js) */
@page { margin: 0.5in; }
@media print {
    .fi-sidebar, .fi-topbar, .fi-header-actions, .fi-header-actions-ctn, .xr-no-print, .fi-sidebar-close-overlay { display: none !important; }
    /* no screen spacing around the report: only the @page margins count, so every page has the same margins */
    html, body, .fi-layout, .fi-main-ctn, .fi-main, .fi-page, .fi-page-main, .fi-page-content, .fi-page-header-main-ctn,
    .fi-section, .fi-section-content-ctn, .fi-section-content, .fi-sc, .fi-sc-component, .xr-report {
        box-shadow: none !important; padding: 0 !important; margin: 0 !important; max-width: none !important;
        border: 0 !important; gap: 0 !important; row-gap: 0 !important; min-height: 0 !important;
    }
    .fi-page-header-main-ctn > *:not(.fi-page-main), .fi-page > .fi-header { display: none !important; }
    .xr-report table { font-size: 9pt; }
    .xr-report th, .xr-report td { padding: 1px 5px; }
    .xr-report tr { break-inside: avoid; }
    .xr-report thead { display: table-header-group; } /* column titles repeat on every page */
    .xr-report tfoot { display: table-row-group; }    /* totals only once, at the end (not on every page) */
    .xr-report.xr-has-print-head > h3, .xr-report.xr-has-print-head > .xr-report-sub { display: none; } /* shown in the repeated heading instead */
    .fi-header-heading, .fi-page-header-main-ctn > .fi-header { display: none !important; } /* page title duplicates the report heading */
    .xr-report tr.xr-print-head th { background: none !important; border: 0 !important; padding: 0 0 6px 0 !important; padding-left: 0 !important; text-align: left; font-weight: normal; }
    .xr-print-title { font-weight: 700; font-size: 11pt; }
    .xr-print-sub { font-size: 8.5pt; color: #555; }
}
/* used by public/js/xeracc.js to measure a report at its print font size */
.xr-print-measure .xr-report table { font-size: var(--xr-print-font, 9pt); }
.xr-print-measure .xr-report th, .xr-print-measure .xr-report td { padding: 1px 5px; }

/* ---------- Print setup dialog (public/js/xeracc.js) ---------- */
.xr-ps-overlay { position: fixed; inset: 0; z-index: 60; background: rgb(15 23 42 / .45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.xr-ps { background: #fff; color: rgb(17 24 39); border-radius: .75rem; box-shadow: 0 20px 40px rgb(0 0 0 / .25); width: min(60rem, 100%); max-height: 95vh; display: flex; flex-direction: column; font-size: .85rem; }
.dark .xr-ps { background: rgb(24 24 27); color: #fff; }
.xr-ps-head, .xr-ps-foot { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid rgb(229 231 235); }
.xr-ps-foot { border-bottom: 0; border-top: 1px solid rgb(229 231 235); }
.xr-ps-foot > span { flex: 1; }
.xr-ps-head strong { flex: 1; font-size: 1rem; }
.xr-ps-x { font-size: 1.4rem; line-height: 1; padding: 0 .3rem; }
.xr-ps-body { display: grid; grid-template-columns: 17rem 1fr; gap: 1rem; padding: 1rem; overflow: auto; }
@media (max-width: 700px) { .xr-ps-body { grid-template-columns: 1fr; } }
.xr-ps form { display: flex; flex-direction: column; gap: .55rem; }
.xr-ps label { display: flex; flex-direction: column; gap: .15rem; font-weight: 500; }
.xr-ps fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .6rem; border: 1px solid rgb(229 231 235); border-radius: .5rem; padding: .4rem .6rem .6rem; }
.xr-ps legend { font-weight: 600; padding: 0 .25rem; }
.xr-ps select, .xr-ps input[type=number] { border: 1px solid rgb(209 213 219); border-radius: .4rem; padding: .3rem .45rem; font-weight: 400; background: transparent; color: inherit; }
.xr-ps .xr-ps-check { flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; }
.xr-ps-hint { color: rgb(107 114 128); font-size: .75rem; line-height: 1.3; }
.xr-ps-preview { background: rgb(243 244 246); border-radius: .5rem; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: .5rem; min-height: 360px; }
.dark .xr-ps-preview { background: rgb(39 39 42); }
.xr-ps-page { position: relative; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3); overflow: hidden; }
.xr-ps-area { position: absolute; outline: 1px dashed rgb(29 108 127 / .7); overflow: hidden; }
.xr-ps-shot .xr-report { color: #000; }
.xr-ps-shot .xr-report table { min-width: 0; }
.xr-ps-info { font-size: .75rem; color: rgb(75 85 99); text-align: center; }
.xr-ps-info.xr-ps-bad { color: rgb(220 38 38); font-weight: 600; }
.xr-ps-foot button { border-radius: .45rem; padding: .4rem .9rem; border: 1px solid rgb(209 213 219); }
.xr-ps-foot .xr-ps-print { background: rgb(15 76 92); color: #fff; border-color: rgb(15 76 92); font-weight: 600; }

/* Back button on 2nd-level screens (App\Filament\Support\BackButton) */
/* Screen trail (App\Filament\Support\BackButton + xeracc.js, 2026-10-19 – replaces the Back button) */
.xr-trail { display: none; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; margin: .5rem 0 .1rem; font-size: .8rem; }
.xr-trail a { color: rgb(51 65 85); background: #fff; border: 1px solid rgb(203 213 225); padding: .12rem .55rem; border-radius: .45rem; font-weight: 500; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 1px rgb(0 0 0 / .04); }
.xr-trail a:hover { background: rgb(238 246 248); color: rgb(15 76 92); border-color: rgb(123 184 198); }
.xr-trail-sep { color: rgb(148 163 184); font-weight: 600; }
.xr-trail a.xr-trail-home, .xr-trail-home { display: inline-flex; align-items: center; padding: .15rem .4rem; }
.xr-trail-home svg { width: 1rem; height: 1rem; }
.xr-trail-home-here { color: rgb(15 76 92); }
.xr-trail-current { color: rgb(15 23 42); font-weight: 700; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dark .xr-trail a { color: rgb(226 232 240); background: rgb(24 24 27); border-color: rgb(63 63 70); }
.dark .xr-trail a:hover { background: rgb(39 39 42); color: rgb(123 184 198); }
.dark .xr-trail-current { color: rgb(244 244 245); }
@media print { .xr-trail { display: none !important; } }

/* Tabs (company profile and other tabbed forms): stronger contrast */
.fi-sc-tabs .fi-tabs, .fi-tabs { background: rgb(241 245 249); border-bottom: 1px solid rgb(203 213 225); padding: .35rem .5rem; gap: .25rem; }
.fi-tabs-item { color: rgb(51 65 85); font-weight: 500; border: 1px solid transparent; }
.fi-tabs-item .fi-icon { color: rgb(100 116 139); }
.fi-tabs-item:hover { background: rgb(226 232 240); color: rgb(15 23 42); }
.fi-tabs-item.fi-active { background: rgb(15 76 92); color: #fff; font-weight: 600; border-color: rgb(11 58 71); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.fi-tabs-item.fi-active .fi-icon, .fi-tabs-item.fi-active .fi-tabs-item-label { color: #fff; }
.fi-tabs-item.fi-active .fi-badge { background: #fff; color: rgb(11 58 71); }
.dark .fi-tabs { background: rgb(39 39 42); border-color: rgb(63 63 70); }
.dark .fi-tabs-item { color: rgb(212 212 216); }
.dark .fi-tabs-item:hover { background: rgb(63 63 70); color: #fff; }
.dark .fi-tabs-item.fi-active { background: rgb(15 76 92); color: #fff; border-color: rgb(29 108 127); }
.fi-tabs .fi-tabs-item:not(.fi-active) .fi-tabs-item-label { color: rgb(30 41 59); }
.fi-tabs .fi-tabs-item:not(.fi-active) .fi-icon { color: rgb(71 85 105); }
.dark .fi-tabs .fi-tabs-item:not(.fi-active) .fi-tabs-item-label { color: rgb(228 228 231); }
.dark .fi-tabs .fi-tabs-item:not(.fi-active) .fi-icon { color: rgb(161 161 170); }

/* company logo: a compact upload box with its preview, not a full-width strip */
@media (min-width: 1024px) { .xr-logo-upload { max-width: 22rem; } }

/* address cards (company profile → Addresses): coloured heading so each address stands out */
.xr-addresses .fi-fo-repeater-item { border-color: rgb(165 180 252); }
.xr-addresses .fi-fo-repeater-item-header { background: rgb(224 231 255); border-bottom: 1px solid rgb(165 180 252); border-radius: .75rem .75rem 0 0; }
.xr-addresses .fi-fo-repeater-item-header-label { color: rgb(55 48 163); font-weight: 700; }
.dark .xr-addresses .fi-fo-repeater-item { border-color: rgb(67 56 202); }
.dark .xr-addresses .fi-fo-repeater-item-header { background: rgb(49 46 129); border-color: rgb(67 56 202); }
.dark .xr-addresses .fi-fo-repeater-item-header-label { color: rgb(224 231 255); }

/* amount fields (data-xr-dec from App\Filament\Support\FieldWidth): numbers right aligned */
[data-xr-dec] input { text-align: right; font-variant-numeric: tabular-nums; }

/* bank statement lines marked "Possible duplicate" (BankStatementTransactionResource) */
.fi-ta-row.xr-dup-row { background: rgb(254 242 242); }
.dark .fi-ta-row.xr-dup-row { background: rgb(127 29 29 / .25); }
/* Document viewer column: the file uses the full width of its panel (2026-10-16: it was 300px wide) */
.xr-doc-viewer .fi-section-content > .fi-grid-col { width: 100%; flex: 1 1 100%; }
.xr-doc-viewer .fi-in-entry, .xr-doc-viewer .fi-in-entry-content-col { grid-template-columns: minmax(0, 1fr); width: 100%; }
.xr-doc-viewer .fi-in-entry-content-ctn > .fi-in-entry-content, .xr-doc-viewer .fi-in-text { flex: 1 1 auto; width: 100%; display: block; }
/* Unindexed documents: the file shown on the right (2026-10-16) */
.fi-ta-row.xr-row-selected { background: rgb(238 246 248); }
.dark .fi-ta-row.xr-row-selected { background: rgb(29 108 127 / .3); }

/* Bank statement transactions: compact filters, no "Filters" heading (Reset stays, top right) */
.fi-resource-banking-statement-transactions .fi-ta-filters-heading { display: none; }
.fi-resource-banking-statement-transactions .fi-ta-filters-header { position: absolute; right: 1rem; top: .35rem; }
.fi-resource-banking-statement-transactions .fi-ta-filters { position: relative; padding-top: .6rem; padding-bottom: .6rem; row-gap: .5rem; }
.fi-resource-banking-statement-transactions .fi-ta-filters .fi-fo-field-label-content { font-size: .8rem; }
.fi-resource-banking-statement-transactions .fi-ta-filters .fi-fo-checkbox, .fi-resource-banking-statement-transactions .fi-ta-filters label:has(input[type=checkbox]) { margin-top: 1.6rem; }

/* Reconciliations list: no "Filters" heading (Reset stays, top right) – 2026-10-14 */
.fi-resource-banking-reconciliations .fi-ta-filters-heading { display: none; }
.fi-resource-banking-reconciliations .fi-ta-filters-header { position: absolute; right: 1rem; top: .35rem; }
.fi-resource-banking-reconciliations .fi-ta-filters { position: relative; padding-top: .6rem; padding-bottom: .6rem; }
/* Reconciliations list: low rows (2026-10-14) */
.fi-resource-banking-reconciliations .fi-ta-text { padding-top: .12rem !important; padding-bottom: .12rem !important; }
.fi-resource-banking-reconciliations .fi-ta-icon { padding-top: .12rem !important; padding-bottom: .12rem !important; }
.fi-resource-banking-reconciliations .fi-ta-actions-cell, .fi-resource-banking-reconciliations .fi-ta-cell:has(.fi-ta-actions) { padding-top: 0 !important; padding-bottom: 0 !important; }
.fi-resource-banking-reconciliations .fi-ta-actions .fi-icon-btn { height: 1.5rem; width: 1.5rem; }
.fi-resource-banking-reconciliations .fi-ta-text-item-icon, .fi-resource-banking-reconciliations .fi-ta-icon-item { width: 1.1rem; height: 1.1rem; }

/* Resizable two-sided screens (document indexing, unindexed list – 2026-10-16): drag the gap between the sides.
   The width of the left side is a CSS variable on <html>, set by js/xeracc.js and remembered in the browser. */
@media (min-width: 1280px) {
    .xr-split[data-split] > .fi-grid { position: relative; }
    .xr-split[data-split="index"] > .fi-grid { grid-template-columns: var(--xr-split-index, 41.6667%) minmax(0, 1fr) !important; }
    .xr-split[data-split="unindexed"] > .fi-grid { grid-template-columns: var(--xr-split-unindexed, 58.3333%) minmax(0, 1fr) !important; }
    .xr-split[data-split="process"] > .fi-grid { grid-template-columns: var(--xr-split-process, 58.3333%) minmax(0, 1fr) !important; } /* Index processing */
    .xr-split[data-split="opening"] > .fi-grid { grid-template-columns: var(--xr-split-opening, 58.3333%) minmax(0, 1fr) !important; } /* Opening balances */
    .xr-split[data-split="journal"] > .fi-grid { grid-template-columns: var(--xr-split-journal, 58.3333%) minmax(0, 1fr) !important; } /* Journal entry with its document (PDF right) */
    .xr-split[data-split="loan"] > .fi-grid { grid-template-columns: var(--xr-split-loan, 58.3333%) minmax(0, 1fr) !important; } /* Mortgage / loan with its document (2026-10-27) */
    .xr-split[data-split] > .fi-grid > * { grid-column: auto !important; min-width: 0; }
    .xr-split[data-split] > .fi-grid > :last-child { position: relative; }
    .xr-split[data-split] > .fi-grid > :last-child::before {
        content: ''; position: absolute; left: -9px; top: 0; height: min(100%, 85vh); width: 4px; border-radius: 2px;
        background: rgb(203 213 225 / .7); transition: background .15s;
    }
    body.xr-split-hover .xr-split[data-split] > .fi-grid > :last-child::before, body.xr-split-drag .xr-split[data-split] > .fi-grid > :last-child::before { background: rgb(29 108 127); }
    body.xr-split-hover, body.xr-split-drag { cursor: col-resize !important; }
    body.xr-split-drag { user-select: none; }
    body.xr-split-drag iframe { pointer-events: none; } /* the mouse keeps moving over the file viewer */
}

/* Document indexing: compact page lines under "Files and pages" (one short row per file, 2026-10-16) */
.xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater td { padding-top: 1px !important; padding-bottom: 1px !important; }
.xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater th { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater .fi-input-wrp { min-height: 0; height: 1.75rem; align-items: center; }
.xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater .fi-input-wrp.fi-disabled .fi-select-input-value-remove-btn, .xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater .fi-input-wrp.fi-disabled .fi-select-input-btn svg { display: none; }
.xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater input.fi-input { padding-top: .2rem; padding-bottom: .2rem; font-size: .8125rem; }
.xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater .fi-select-input-btn, .xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater .fi-select-input { padding-top: .2rem; padding-bottom: .2rem; min-height: 0; font-size: .8125rem; }
/* the chosen value cut with "…" – not the whole field: the account list that opens under it was cut off too (Mohsen 2026-10-30) */
.xr-split:not([data-split="process"]):not([data-split="opening"]) .fi-fo-table-repeater .fi-input-wrp :is(.fi-select-input-btn, .fi-select-input-value-ctn, .fi-select-input-value-label, input) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Document indexing – Index section: lower fields, less space between rows (2026-10-16) */
.xr-index-fields .fi-grid { row-gap: .55rem; }
.xr-index-fields .fi-fo-field { row-gap: .2rem; }
.xr-index-fields .fi-fo-field-label-content { font-size: .8125rem; }
.xr-index-fields .fi-input-wrp { min-height: 0; }
/* 2026-10-23: no overflow: hidden on the field box – the searchable lists (Vendor, Job / project) and the date picker open
   inside it and were cut off (they did not show); the long value itself is shortened with an ellipsis instead */
.xr-index-fields .fi-input-wrp:not(:has(textarea)) { height: 2rem; align-items: center; overflow: visible; }
.xr-index-fields .fi-input-wrp:not(:has(textarea)) :is(.fi-select-input-btn, .fi-select-input-value-label) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-index-fields input.fi-input, .xr-index-fields .fi-select-input-btn, .xr-index-fields .fi-select-input { padding-top: .25rem; padding-bottom: .25rem; min-height: 0; font-size: .8125rem; }
.xr-index-fields textarea { padding-top: .3rem; padding-bottom: .3rem; font-size: .8125rem; }
/* the Index section keeps its 6-column grid (not the content-sized flow used by other forms) */
@media (min-width: 1024px) {
    .xr-index-fields .fi-sc.fi-grid:has(> .fi-grid-col > .fi-sc-component > :is(.fi-fo-field, .fi-in-entry)) { display: grid !important; column-gap: .75rem; row-gap: .55rem; }
    .xr-index-fields .fi-sc.fi-grid:has(> .fi-grid-col > .fi-sc-component > :is(.fi-fo-field, .fi-in-entry)) > .fi-grid-col { flex: none; min-width: 0; }
    .xr-index-fields .fi-fo-field[style*="--xr-w"] { width: 100%; }
}
/* file chooser in the Document heading (indexing screen) */
.xr-viewer-choose { width: 15rem; max-width: 100%; } /* same size as the fields on the left (2026-10-16) */
.xr-viewer-choose.xr-loan-index { width: 24rem; } /* the loan's document index (2026-10-27) */
.xr-viewer-choose .fi-input-wrp { min-height: 0; height: 2rem; align-items: center; overflow: hidden; }
.xr-viewer-choose .fi-input-wrp * { white-space: nowrap; text-overflow: ellipsis; }
.xr-viewer-choose .fi-select-input-btn, .xr-viewer-choose .fi-select-input { padding-top: .2rem; padding-bottom: .2rem; font-size: .8125rem; }

/* Upload documents: one slim line per file, in a scrolling box (hundreds of files at once – 2026-10-16) */
.xr-upload-list .filepond--root { max-height: 26rem; }
/* (2026-10-29) no overflow on .filepond--list-scroller: it is 0 px high and FilePond draws the files over it – forcing
   overflow-y clipped every file (files were added but not shown). FilePond scrolls by itself when the root reaches max-height. */
.xr-upload-list .filepond--item { margin: .15rem .25rem; }
.xr-upload-list .filepond--file { padding: .35rem .55rem; }
.xr-upload-list .filepond--file-info-main { font-size: .8125rem; }
.xr-upload-list .filepond--item-panel { border-radius: .4rem; }
.xr-upload-list [data-filepond-item-state="processing-complete"] .filepond--item-panel { background-color: rgb(22 163 74 / .85); }
/* Index section compact; Index / Note / Cancel right under it (2026-10-16) */
.xr-index-fields .fi-section-header { padding-top: .5rem; padding-bottom: .5rem; }
.xr-index-fields .fi-section-content { padding-top: .6rem; padding-bottom: .7rem; }
.xr-index-fields .fi-grid { row-gap: .45rem !important; }
.xr-index-fields .fi-fo-field-label { margin-bottom: 0; }
.xr-index-buttons { margin-top: -.25rem; }
/* Document heading as high as "Files and pages" on the left (the file chooser no longer makes it taller) */
.xr-doc-viewer .fi-section-header { padding-top: .2rem; padding-bottom: .2rem; min-height: 0; height: 38px; box-sizing: border-box; align-items: center; }
/* Document indexing viewer: as high as the window allows, so the whole page shows (2026-10-16) */
.xr-pdf-frame { height: calc(100vh - 12rem); min-height: 24rem; display: block; }
/* the document fills its panel edge to edge (no margin around the viewer) */
.xr-doc-viewer .fi-section-content { padding: 0 !important; }
.xr-doc-viewer .xr-pdf-frame { border-radius: 0 0 .75rem .75rem !important; height: calc(100vh - 10.5rem); }
/* Document indexing – options menu of a file in the list (plain HTML, 2026-10-16) */
.xr-pick-menu { position: relative; display: inline-block; }
.xr-pick-menu-btn { display: inline-flex; padding: .15rem; border-radius: .35rem; color: rgb(107 114 128); }
.xr-pick-menu-btn:hover { background: rgb(243 244 246); color: rgb(17 24 39); }
.xr-pick-menu-list { position: fixed; z-index: 40; width: 12rem; padding: .25rem; background: #fff; border: 1px solid rgb(229 231 235); border-radius: .5rem; box-shadow: 0 8px 24px rgb(0 0 0 / .12); text-align: left; }
.xr-pick-menu-list > * { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .35rem .5rem; border-radius: .35rem; font-size: .8125rem; color: rgb(55 65 81); white-space: nowrap; }
.xr-pick-menu-list > *:hover { background: rgb(243 244 246); }
.xr-pick-menu-list .xr-danger { color: rgb(220 38 38); }
.dark .xr-pick-menu-list { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.dark .xr-pick-menu-list > * { color: rgb(228 228 231); }
.dark .xr-pick-menu-list > *:hover { background: rgb(39 39 42); }
/* Fiscal periods control: lock per period (2026-10-16) */
.xr-lock { display: inline-flex; cursor: pointer; padding: .2rem; border-radius: .35rem; }
.xr-lock:hover { background: rgb(243 244 246); }
.xr-lock input { position: absolute; opacity: 0; width: 0; height: 0; }
.xr-lock .xr-lock-on { display: none; color: rgb(220 38 38); }
.xr-lock .xr-lock-off { color: rgb(156 163 175); }
.xr-lock input:checked ~ .xr-lock-on { display: inline-flex; }
.xr-lock input:checked ~ .xr-lock-off { display: none; }
.xr-lock input:disabled ~ span { opacity: .6; }
/* Users: the Active / Inactive status button sits beside the other fields, with a "Status" label (2026-10-16) */
@media (min-width: 1024px) {
    .fi-sc.fi-grid > .fi-grid-col:has(.xr-status-btn) { flex-basis: auto !important; }
}
.xr-status-btn::before { content: 'Status'; display: block; font-size: 11.9px; font-weight: 500; line-height: 17px; margin-bottom: -4px; color: rgb(17 24 39); } /* as the fields' labels: the button lines up with the inputs */
.dark .xr-status-btn::before { color: rgb(255 255 255); }
.xr-status-btn .fi-btn { min-height: 0; height: 32px; }
.xr-status-btn > * { margin-top: 0 !important; }

/* Firm clients: compact list (2026-10-16) */
.fi-resource-organizations-firm-clients .fi-ta-text { padding-top: .12rem !important; padding-bottom: .12rem !important; }
.fi-resource-organizations-firm-clients .fi-ta-actions-cell, .fi-resource-organizations-firm-clients .fi-ta-cell:has(.fi-ta-actions) { padding-top: 0 !important; padding-bottom: 0 !important; }
.fi-resource-organizations-firm-clients .fi-ta-actions { padding-top: 0 !important; padding-bottom: 0 !important; gap: .5rem !important; }
.fi-resource-organizations-firm-clients .fi-ta-actions .fi-icon-btn { height: 1.5rem; width: 1.5rem; }
.fi-resource-organizations-firm-clients .fi-ta-text-item { font-size: .8125rem; }

/* firm clients list on Profile / Edit User (2026-10-16) */
.xr-firm-client-list { columns: 3 16rem; column-gap: 2rem; font-size: .8125rem; line-height: 1.45; }
.xr-firm-client-list li { break-inside: avoid; }
.xr-firm-client-list li.xr-inactive { color: rgb(107 114 128); }

/* user menu: e-mail, role, company worked on, firm clients (2026-10-16) */
.fi-user-menu .fi-dropdown-panel { min-width: 18rem; }
.xr-user-info { padding: .45rem .75rem .55rem; border-bottom: 1px solid rgb(229 231 235); font-size: .78rem; line-height: 1.35; }
.dark .xr-user-info { border-color: rgb(255 255 255 / .1); }
.xr-ui-email { color: rgb(107 114 128); margin-bottom: .35rem; word-break: break-all; }
.xr-ui-row { display: flex; gap: .5rem; align-items: baseline; margin-top: .2rem; }
.xr-ui-label { flex: 0 0 4.6rem; color: rgb(107 114 128); }
.xr-ui-strong { font-weight: 600; }
.xr-ui-muted { color: rgb(156 163 175); }
.xr-ui-badge { display: inline-block; padding: 0 .4rem; margin: 0 .15rem .15rem 0; border-radius: .375rem; background: rgb(238 246 248); color: rgb(11 58 71); font-size: .72rem; }
.dark .xr-ui-badge { background: rgb(29 108 127 / .5); color: rgb(174 213 222); }

/* Firm user clients (2026-10-16): users | works on | add clients – three scrolling columns, for firms with many clients */
.xr-fuc { display: grid; grid-template-columns: minmax(15rem, 20rem) minmax(18rem, 1fr) minmax(18rem, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .xr-fuc { grid-template-columns: 1fr 1fr; } .xr-fuc > :first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .xr-fuc { grid-template-columns: 1fr; } }
.xr-fuc-card { background: #fff; border: 1px solid rgb(229 231 235); border-radius: .75rem; overflow: hidden; display: flex; flex-direction: column; }
.dark .xr-fuc-card { background: rgb(24 24 27); border-color: rgb(255 255 255 / .1); }
.xr-fuc-head { padding: .55rem .9rem; font-size: .875rem; font-weight: 600; border-bottom: 1px solid rgb(229 231 235); background: rgb(249 250 251); min-height: 2.6rem; display: flex; align-items: center; gap: .3rem; }
.dark .xr-fuc-head { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); }
.xr-fuc-head-row { justify-content: space-between; }
.xr-fuc-muted { color: rgb(107 114 128); font-weight: 400; }
.xr-fuc-search { padding: .5rem .9rem; border-bottom: 1px solid rgb(243 244 246); }
.xr-fuc-tools { display: flex; align-items: center; gap: 1rem; margin-top: .45rem; font-size: .8rem; }
.xr-fuc-scroll { max-height: calc(100vh - 17rem); min-height: 12rem; overflow-y: auto; }
.xr-fuc-user { display: grid; grid-template-columns: 1fr auto; width: 100%; text-align: left; padding: .4rem .9rem; border-bottom: 1px solid rgb(243 244 246); }
.xr-fuc-user:hover { background: rgb(238 246 248); }
.xr-fuc-user.is-on { background: rgb(214 234 239); box-shadow: inset 3px 0 0 rgb(15 76 92); }
.dark .xr-fuc-user:hover, .dark .xr-fuc-user.is-on { background: rgb(255 255 255 / .08); }
.xr-fuc-user-name { font-size: .85rem; font-weight: 600; }
.xr-fuc-user-mail { grid-column: 1; font-size: .75rem; color: rgb(107 114 128); }
.xr-fuc-count { grid-row: 1 / span 2; grid-column: 2; align-self: center; min-width: 1.8rem; text-align: center; padding: .05rem .45rem; border-radius: 9999px; background: rgb(238 246 248); color: rgb(11 58 71); font-size: .75rem; font-weight: 600; }
.xr-fuc-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .28rem .9rem; border-bottom: 1px solid rgb(243 244 246); font-size: .83rem; }
.xr-fuc-row:hover { background: rgb(249 250 251); }
.dark .xr-fuc-row, .dark .xr-fuc-user, .dark .xr-fuc-search { border-color: rgb(255 255 255 / .06); }
.dark .xr-fuc-row:hover { background: rgb(255 255 255 / .05); }
.xr-fuc-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; min-width: 0; }
.xr-fuc-tag { margin-left: .35rem; padding: 0 .35rem; border-radius: .25rem; background: rgb(243 244 246); color: rgb(107 114 128); font-size: .68rem; }
.xr-fuc-link { color: rgb(15 76 92); }
.xr-fuc-link:hover { text-decoration: underline; }
.xr-fuc-more { display: block; width: 100%; padding: .5rem; font-size: .8rem; color: rgb(15 76 92); }
.xr-fuc-more:hover { background: rgb(238 246 248); }
.xr-fuc-empty { padding: .9rem; font-size: .85rem; color: rgb(107 114 128); }
.xr-fuc-row .fi-btn { padding-block: .15rem; }

/* accounting firm history (Accountants → History, 2026-10-16) */
.xr-history { width: 100%; font-size: .8rem; border-collapse: collapse; }
.xr-history th { text-align: left; font-weight: 600; color: rgb(75 85 99); padding: .35rem .5rem; border-bottom: 1px solid rgb(229 231 235); white-space: nowrap; }
.xr-history td { padding: .35rem .5rem; border-bottom: 1px solid rgb(243 244 246); vertical-align: top; }
.xr-history-active { color: rgb(22 163 74); font-weight: 600; }
.xr-history-stars { color: rgb(217 119 6); white-space: nowrap; }

.xr-fuc-row-2 { align-items: flex-start; }
.xr-fuc-name { display: flex; flex-direction: column; min-width: 0; }
.xr-fuc-parts { font-size: .72rem; color: rgb(107 114 128); }
.xr-fuc-acts { display: flex; gap: .15rem; flex-shrink: 0; }
.xr-fuc-partsbox { padding: .5rem .9rem .7rem; background: rgb(238 246 248); border-bottom: 1px solid rgb(214 234 239); font-size: .8rem; }
.dark .xr-fuc-partsbox { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .08); }
.xr-fuc-partsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .25rem .75rem; margin: .45rem 0; }
.xr-fuc-partsbtns { display: flex; gap: .4rem; }

/* subscription notices at the top of every screen (2026-10-17) */
.xr-sub-notice { margin: .4rem 0 .2rem; padding: .45rem .8rem; border-radius: .5rem; font-size: .82rem; border: 1px solid; }
.xr-sub-info { background: rgb(238 246 248); border-color: rgb(174 213 222); color: rgb(11 58 71); }
.xr-sub-warning { background: rgb(255 251 235); border-color: rgb(253 230 138); color: rgb(146 64 14); }
.xr-sub-danger { background: rgb(254 242 242); border-color: rgb(254 202 202); color: rgb(153 27 27); }

/* Profile e-mail / mobile with their Change / Verify / Manually buttons (2026-10-17) */
.fi-fo-field.xr-w-wide { width: 26rem !important; max-width: 100%; }

/* report rows that open a drill-down (trial balance, 2026-10-18): highlight on hover, whole row clickable */
.xr-report tr.xr-row-link { cursor: pointer; }
.xr-report tr.xr-row-link:hover td { background: rgb(214 234 239); }
.dark .xr-report tr.xr-row-link:hover td { background: rgb(29 108 127 / .45); }
@media print { .xr-report tr.xr-row-link:hover td { background: none; } }

/* Entry screens with a lines table – journal entry, quick payable, customer invoice / payment, index processing,
   recurring / auto transactions, escrows, purchase orders, leases … (Mohsen 2026-10-18): every field lower, smaller
   labels, tighter rows and sections. Pages and modals that hold a lines table (.fi-fo-table-repeater),
   and entry screens marked with App\\Filament\\Support\\CompactEntry (.xr-entry). */
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp:not(:has(textarea)) { min-height: 0; height: 1.75rem; align-items: center; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp input.fi-input,
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp select,
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-select-input-btn { padding-top: .1rem !important; padding-bottom: .1rem !important; min-height: 0; font-size: .8125rem; line-height: 1.25rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-field-label { font-size: .75rem; line-height: 1rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-field { row-gap: .125rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-section-content { padding: .45rem .75rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-sc-has-gap { gap: .45rem .75rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-table-repeater td { padding: .1rem .2rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-table-repeater th { padding: .2rem .3rem; font-size: .75rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-field-wrp-helper-text, :is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-field-wrp-hint { font-size: .7rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-table-repeater .fi-btn, :is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-repeater-add-btn-ctn .fi-btn { padding-block: .2rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp:not(:has(textarea)) .fi-input-wrp-content-ctn,
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp .fi-select-input,
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp .fi-select-input > div,
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp .fi-select-input-ctn { height: 100%; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp .fi-select-input-btn { height: 100%; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp .fi-select-input-btn * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-field-label-content { font-size: .75rem; line-height: 1rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp:not(:has(textarea)) input.fi-input { height: 100%; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-page-content, :is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater)) .fi-page-main { row-gap: .6rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater)) .fi-header { padding-bottom: 0; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-section-header { padding: .4rem .75rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp .fi-select-input-btn { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.25rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) textarea { min-height: 0 !important; height: 3.4rem !important; overflow-y: auto; padding-top: .25rem; padding-bottom: .25rem; font-size: .8125rem; line-height: 1.05rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-repeater-add-btn-ctn .fi-btn, :is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-fo-table-repeater-add-btn-ctn .fi-btn { padding: .2rem .6rem; font-size: .8125rem; }
:is(.fi-page.xr-entry, .fi-page:has(.fi-fo-table-repeater), .fi-modal-window:has(.fi-fo-table-repeater)) .fi-input-wrp .fi-select-input-btn { min-height: 0 !important; height: calc(1.75rem - 2px) !important; }
/* choices of a dropdown inside a lines table: wide enough to read (account, project names), 2026-10-18 */
.fi-fo-table-repeater .fi-dropdown-panel { min-width: 22rem; max-width: 34rem; }
:is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel .fi-select-input-option { white-space: normal; word-break: normal; }
/* the value already chosen in an open dropdown (projects, accounts …): clearly highlighted, with a tick (2026-10-18) */
.fi-select-input-option[aria-selected="true"] { background: rgb(214 234 239) !important; color: rgb(11 58 71); font-weight: 600; }
.fi-select-input-option[aria-selected="true"]::before { content: "✓ "; }
.dark .fi-select-input-option[aria-selected="true"] { background: rgb(29 108 127 / .55) !important; color: rgb(174 213 222); }
/* lines tables: no "×" (clear) inside the account / project … dropdowns – pick another value instead (2026-10-18) */
.fi-fo-table-repeater .fi-select-input-value-remove-btn { display: none !important; }

/* Index processing: waiting indexes above the journal (process-index.blade.php, 2026-10-19) */
.xr-wait { background: #fff; border: 1px solid rgb(226 232 240); border-radius: .75rem; overflow: hidden; }
.xr-wait-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .75rem; border-bottom: 1px solid rgb(226 232 240); }
.xr-wait-title { font-weight: 600; font-size: .85rem; }
.xr-wait-count { display: inline-block; margin-left: .3rem; padding: 0 .45rem; border-radius: 9999px; background: rgb(241 245 249); color: rgb(71 85 105); font-size: .75rem; }
.xr-wait-tools { display: flex; align-items: center; gap: .25rem; }
.xr-wait-btn { font-size: .75rem; padding: .15rem .55rem; border: 1px solid rgb(203 213 225); border-radius: .4rem; background: #fff; color: rgb(51 65 85); }
.xr-wait-btn.is-on { background: rgb(15 76 92); border-color: rgb(15 76 92); color: #fff; }
.xr-wait-search { font-size: .8rem; padding: .2rem .5rem; border: 1px solid rgb(203 213 225); border-radius: .4rem; width: 12rem; margin-left: .35rem; }
.xr-wait-body { max-height: 13rem; overflow-y: auto; position: relative; }
.xr-wait-table { width: 100%; font-size: .78rem; border-collapse: collapse; }
.xr-wait-table th { position: sticky; top: 0; background: rgb(51 65 85); color: #fff; text-align: left; font-weight: 600; padding: .25rem .6rem; z-index: 1; }
.xr-wait-table td { padding: .2rem .6rem; border-bottom: 1px solid rgb(241 245 249); white-space: nowrap; }
.xr-wait-table tbody tr { cursor: pointer; }
.xr-wait-table tbody tr:hover { background: rgb(238 246 248); }
.xr-wait-table tbody tr.is-current { background: rgb(51 65 85); color: #fff; font-weight: 600; cursor: default; }
.xr-wait-table tbody tr.is-current a { color: #fff; }
.xr-wait-table a { color: rgb(15 76 92); }
.xr-wait-note { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; }
.xr-wait-empty { text-align: center; color: rgb(100 116 139); padding: .75rem; }
.dark .xr-wait { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.dark .xr-wait-head { border-color: rgb(63 63 70); }
.dark .xr-wait-btn, .dark .xr-wait-search { background: rgb(39 39 42); border-color: rgb(63 63 70); color: rgb(228 228 231); }
.dark .xr-wait-table td { border-color: rgb(39 39 42); }
.dark .xr-wait-table tbody tr:hover { background: rgb(39 39 42); }
.dark .xr-wait-count { background: rgb(39 39 42); color: rgb(212 212 216); }
@media print { .xr-wait { display: none; } }
/* Index processing: the right side is the PDF viewer only, as high as the window, staying in view (2026-10-19) */
.xr-pi-frame { display: block; width: 100%; height: calc(100vh - 9rem); border: 0; border-radius: .75rem; background: #f1f5f9; }
.xr-pi-nodoc { padding: 3rem 1rem; text-align: center; color: rgb(100 116 139); background: #fff; border: 1px dashed rgb(203 213 225); border-radius: .75rem; }
.dark .xr-pi-nodoc { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.xr-pi-viewer { gap: .35rem; }
/* Index processing fits the window (2026-10-19): the screen from the trail down is as high as the window (no page scroll);
   the left side scrolls inside itself, the PDF fills the right side. --xr-pi-h is set by js/xeracc.js. */
@media (min-width: 1280px) {
    .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid { height: var(--xr-pi-h, auto); align-items: stretch; }
    .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :first-child { height: 100%; overflow-y: auto; overflow-x: hidden; padding-right: .35rem; scrollbar-width: thin; }
    .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :last-child { height: 100%; position: relative; top: auto; align-self: stretch; } /* no overflow: hidden – it hid the divider */
    .xr-split:is([data-split="process"], [data-split="opening"]) .xr-pi-viewer { position: static; }
}
/* the list of indexes: its height is set by dragging its bottom edge (remembered in the browser) */
.xr-wait-body { resize: vertical; min-height: 5rem; height: var(--xr-pi-list, 13rem); max-height: none; }
/* Index processing (2026-10-19): the PDF takes the whole width of the right side – the app's "fields sized by their
   data" rule (.fi-sc.fi-grid:has(... .fi-in-entry)) made the viewer only as wide as an empty frame (300px) */
.xr-pi-viewer .fi-sc.fi-grid { display: block !important; }
.xr-pi-viewer .fi-grid-col { width: 100% !important; max-width: none !important; flex: none !important; }
.xr-pi-viewer .fi-sc-component, .xr-pi-viewer .fi-in-entry, .xr-pi-viewer .fi-in-entry-content-col, .xr-pi-viewer .fi-in-entry-content-ctn,
.xr-pi-viewer .fi-in-entry-content, .xr-pi-viewer .fi-in-text { display: block !important; width: 100% !important; max-width: none !important; }
.xr-pi-viewer .fi-grid-col + .fi-grid-col { margin-top: .35rem; }
.xr-wait-body { overflow-x: hidden; }
/* Indexes to process: compact columns (2026-10-19) – each column only as wide as its data, long reference / name cut
   with … (full text on hover), the note takes what is left */
.xr-wait-table { font-size: .75rem; }
.xr-wait-table th, .xr-wait-table td { padding: .12rem .45rem; width: 1%; line-height: 1.25rem; }
.xr-wait-table th:last-child, .xr-wait-table td:last-child { width: auto; }
.xr-wait-table .xr-wait-ref { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; }
.xr-wait-table .xr-wait-name { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.xr-wait-table .xr-wait-note { max-width: none; }

/* Index processing: the divider is plainly visible (2026-10-19) – a full-height bar with a grip in the middle */
@media (min-width: 1280px) {
    .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :last-child::before {
        left: -11px; top: 0; height: 100%; width: 6px; border-radius: 3px; background: rgb(148 163 184);
    }
    .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :last-child::after {
        content: ''; position: absolute; left: -13px; top: 50%; width: 10px; height: 2.75rem; margin-top: -1.375rem; border-radius: 5px;
        background: rgb(100 116 139) radial-gradient(circle, #fff 1.2px, transparent 1.6px) center / 10px 7px repeat-y;
        pointer-events: none; transition: background-color .15s;
    }
    body.xr-split-hover .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :last-child::after,
    body.xr-split-drag .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :last-child::after { background-color: rgb(15 76 92); }
    .dark .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :last-child::before { background: rgb(82 82 91); }
    .dark .xr-split:is([data-split="process"], [data-split="opening"]) > .fi-grid > :last-child::after { background-color: rgb(113 113 122); }
}
/* Indexes to process: the index being processed in light blue with a blue bar on the left – not the header's dark grey (2026-10-19) */
.xr-wait-table tbody tr.is-current, .xr-wait-table tbody tr.is-current:hover { background: rgb(214 234 239); color: rgb(8 44 54); font-weight: 700; }
.xr-wait-table tbody tr.is-current td:first-child { box-shadow: inset 4px 0 0 rgb(15 76 92); }
.xr-wait-table tbody tr.is-current a { color: rgb(11 58 71); }
.dark .xr-wait-table tbody tr.is-current, .dark .xr-wait-table tbody tr.is-current:hover { background: rgb(29 108 127 / .55); color: rgb(214 234 239); }
.dark .xr-wait-table tbody tr.is-current a { color: rgb(123 184 198); }
/* Lines tables (journal, index processing …) and Default accounts (.xr-compact-dd, 2026-10-20): compact account / project
   choices in the open dropdown (2026-10-19) –
   smaller text, low rows, so many more accounts show at once; the search box above them lower too */
:is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel .fi-select-input-option { padding: .14rem .55rem !important; font-size: .78rem; line-height: 1.05rem; min-height: 0; }
:is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel .fi-select-input-option + .fi-select-input-option { margin-top: 0; }
:is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel .fi-select-input-options-ctn, :is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel ul { padding-top: .15rem; padding-bottom: .15rem; gap: 0; }
:is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel .fi-select-input-search-ctn { padding: .25rem .4rem; }
:is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel .fi-select-input-search-ctn input, :is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel input[type="search"] { padding-top: .2rem; padding-bottom: .2rem; font-size: .8rem; }
:is(.fi-fo-table-repeater, .xr-compact-dd) .fi-dropdown-panel { max-height: min(26rem, 70vh) !important; }
/* Index processing: the chosen account shows its number only; the open list shows number and name (2026-10-19) */
.xr-acc-only .xr-acc-name { display: none; }
.fi-select-input-option .xr-acc-name { display: inline !important; }
.xr-acc-only .fi-select-input-btn, .xr-acc-only .fi-select-input-value-label { font-variant-numeric: tabular-nums; }
/* Lines tables: the Flag tick centred under its (centred) column title (2026-10-19) */
.fi-fo-table-repeater td:has(.xr-line-check) { text-align: center; }
.xr-line-check, .xr-line-check .fi-fo-field-content-col, .xr-line-check .fi-fo-field-content, .xr-line-check label { display: flex !important; justify-content: center; align-items: center; width: 100%; }
.xr-line-check .fi-checkbox-input { margin: 0 !important; }
/* Index processing: the account number is never cut (no "…" in the chosen value) */
.xr-acc-only .fi-select-input-btn, .xr-acc-only .fi-select-input-value-label, .xr-acc-only .fi-select-input-value-ctn { overflow: visible !important; text-overflow: clip !important; padding-left: .45rem !important; }
.xr-acc-only .fi-select-input-btn { padding-right: 1.6rem !important; }
/* Flag tick centred (2026-10-19, 2nd try: the field wrapper class is not on the table cell) */
.fi-fo-table-repeater td:has(.fi-checkbox-input) { text-align: center; }
.fi-fo-table-repeater td:has(.fi-checkbox-input) :is(div, label):has(.fi-checkbox-input) { display: flex !important; justify-content: center !important; align-items: center; width: 100%; }
.fi-fo-table-repeater td:has(.fi-checkbox-input) .fi-checkbox-input { margin: 0 auto !important; }
/* Index processing: the chosen project name in full (its column is as wide as the longest name) – 2026-10-19 */
.xr-split:is([data-split="process"], [data-split="opening"]) .fi-fo-table-repeater td:has(.fi-select-input) .fi-select-input-value-label { overflow: visible; text-overflow: clip; }
/* Index processing lines (2026-10-19): "+" adds a line below; note and delete in the line's ⋮ menu (js/xeracc.js opens it).
   The ⋮ is red when a flagged line needs a note, blue when the line has a note. */
.xr-line-menu .fi-fo-table-repeater-actions { position: relative; display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }
.xr-line-menu .fi-fo-table-repeater-actions > div:has(.xr-line-add) { order: 1; }
.xr-line-menu .fi-fo-table-repeater-actions::after {
    content: '⋮'; order: 2; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem;
    border-radius: .375rem; font-size: 1.15rem; font-weight: 700; line-height: 1; color: rgb(100 116 139); cursor: pointer;
}
.xr-line-menu .fi-fo-table-repeater-actions:hover::after, .xr-line-menu .fi-fo-table-repeater-actions.is-open::after { background: rgb(241 245 249); color: rgb(30 41 59); }
.xr-line-menu .fi-fo-table-repeater-actions:has(.xr-line-note.fi-color-primary)::after { color: rgb(15 76 92); }
.xr-line-menu .fi-fo-table-repeater-actions:has(.xr-line-note.fi-color-danger)::after { color: rgb(220 38 38); }
/* the menu: note and delete, hidden until ⋮ is clicked */
.xr-line-menu .fi-fo-table-repeater-actions > div:not(:has(.xr-line-add)) { display: none; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:not(:has(.xr-line-add)) {
    display: block; position: absolute; right: 0; z-index: 30; width: 9.5rem; background: #fff;
    border: 1px solid rgb(226 232 240); box-shadow: 0 6px 16px rgb(15 23 42 / .14);
}
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-note) { top: calc(100% + 2px); border-radius: .5rem .5rem 0 0; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:last-child:not(:has(.xr-line-note)):not(:has(.xr-line-add)) { top: calc(100% + 2px + 2rem); border-top: 0; border-radius: 0 0 .5rem .5rem; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:not(:has(.xr-line-add)) button { display: flex !important; width: 100%; height: 2rem; justify-content: flex-start; gap: .45rem; padding: 0 .6rem; border-radius: 0; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:not(:has(.xr-line-add)) button:hover { background: rgb(241 245 249); }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-note) button::after { content: 'Note'; font-size: .8rem; color: rgb(30 41 59); }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:last-child:not(:has(.xr-line-note)) button::after { content: 'Delete line'; font-size: .8rem; color: rgb(185 28 28); }
.dark .xr-line-menu .fi-fo-table-repeater-actions.is-open > div:not(:has(.xr-line-add)) { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.dark .xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-note) button::after { color: rgb(228 228 231); }
/* the Add line button under the table only when there is no line left */
.fi-fo-table-repeater.xr-line-menu:has(table) .fi-fo-table-repeater-add { display: none; }
/* the "+" that adds a line below: bold and dark (2026-10-19) */
.xr-line-menu .xr-line-add { color: rgb(15 23 42) !important; }
.xr-line-menu .xr-line-add svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; stroke-width: 1.6px; paint-order: stroke; }
.xr-line-menu .xr-line-add:hover { color: rgb(15 76 92) !important; }
.dark .xr-line-menu .xr-line-add { color: rgb(244 244 245) !important; }
/* the line menu as ONE panel (2026-10-19): Note and Delete line exactly stacked, same width, one frame and shadow */
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:not(:has(.xr-line-add)) {
    box-sizing: border-box; height: 2rem; width: 9.5rem; right: 0; left: auto; margin: 0; padding: 0; overflow: hidden;
    border: 1px solid rgb(203 213 225);
}
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-note) {
    top: calc(100% + 2px); border-bottom: 1px solid rgb(241 245 249); border-radius: .5rem .5rem 0 0; box-shadow: 0 -2px 6px rgb(15 23 42 / .06); z-index: 31;
}
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:last-child:not(:has(.xr-line-note)):not(:has(.xr-line-add)) {
    top: calc(100% + 2px + 2rem); border-top: 0; border-radius: 0 0 .5rem .5rem; box-shadow: 0 8px 14px rgb(15 23 42 / .14); z-index: 30;
}
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:not(:has(.xr-line-add)) > * { height: 100%; width: 100%; margin: 0 !important; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:not(:has(.xr-line-add)) button { height: 100% !important; width: 100% !important; margin: 0 !important; }
/* Index processing: totals under their columns (JournalForm::columnTotals, placed by js/xeracc.js) – 2026-10-19 */
.xr-line-totals { position: relative; height: 1.6rem; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; color: rgb(15 23 42); }
.xr-line-totals > span { position: absolute; top: .2rem; white-space: nowrap; text-align: right; padding-right: .6rem; box-sizing: border-box; }
.xr-line-totals > span.xr-tot-bal { text-align: left; padding: 0 0 0 .6rem; }
.xr-line-totals:not(.is-placed) > span { position: static; margin-right: 1.5rem; } /* before it is lined up: one row */
.xr-tot-ok { color: rgb(21 128 61); }
.xr-tot-bad { color: rgb(220 38 38); }
.dark .xr-line-totals { color: rgb(244 244 245); }
.fi-in-entry:has(.xr-line-totals), .fi-in-entry:has(.xr-line-totals) * { overflow: visible; }
.fi-sc-component:has(> * .xr-line-totals), .fi-grid-col:has(.xr-line-totals) { width: 100% !important; max-width: none !important; flex: 1 1 100% !important; }
/* Index processing: Post at the bottom right of the transaction lines (2026-10-19) */
.xr-pi-post { margin-top: .25rem; }
/* Post sits on the totals line (js/xeracc.js moves it up next to Out of Balance); it stays above the totals text */
.xr-pi-post { position: relative; z-index: 2; pointer-events: none; }
.xr-pi-post button, .xr-pi-post a { pointer-events: auto; }
/* Left menu (2026-10-20): every item shows in full – no "…"; a name longer than the menu wraps onto a second line */
.fi-sidebar .fi-sidebar-item-label, .fi-sidebar .fi-sidebar-group-label { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.2rem; }
.fi-sidebar .fi-sidebar-item-btn { align-items: flex-start; }
.fi-sidebar .fi-sidebar-item-btn > svg, .fi-sidebar .fi-sidebar-item-btn > .fi-icon { margin-top: .1rem; }

/* Index processing header, rearranged (2026-10-20): Vendor / customer, Journal, Description (+ Branch) on one row; each
   field fills its grid column (not the "width from data" sizes) */
.xr-pi-head .fi-fo-field { width: 100% !important; max-width: 100% !important; }
.xr-pi-head .fi-section-content { padding-top: .5rem; padding-bottom: .5rem; }

/* Indexes to process (2026-10-20): Doc 📎 (click = view the document) and Note + / − (hover = the note, click = change it) */
.xr-wait-table .xr-wait-mk { text-align: center; width: 1%; white-space: nowrap; }
.xr-wait-doc, .xr-wait-notemk { background: none; border: 0; padding: 0 .3rem; cursor: pointer; line-height: 1.1; font-size: .85rem; border-radius: .25rem; }
.xr-wait-doc:hover, .xr-wait-notemk:hover { background: rgb(214 234 239); }
.xr-wait-notemk { font-weight: 700; color: rgb(156 163 175); min-width: 1.3rem; }
.xr-wait-notemk.has-note { color: rgb(15 76 92); }
.dark .xr-wait-doc:hover, .dark .xr-wait-notemk:hover { background: rgb(29 108 127 / .55); }
.xr-wait-pop { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.xr-wait-pop-box { background: #fff; border-radius: .6rem; box-shadow: 0 10px 40px rgb(0 0 0 / .3); display: flex; flex-direction: column; max-width: 100%; }
.dark .xr-wait-pop-box { background: rgb(24 24 27); color: rgb(228 228 231); }
.xr-wait-pop-doc { width: min(60rem, 100%); height: min(92vh, 100%); }
.xr-wait-pop-note { width: min(30rem, 100%); padding-bottom: .6rem; }
.xr-wait-pop-head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .75rem; font-size: .85rem; font-weight: 600; border-bottom: 1px solid rgb(229 231 235); }
.dark .xr-wait-pop-head { border-color: rgb(255 255 255 / .1); }
.xr-wait-pop-head button { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.xr-wait-pop-frame { flex: 1; width: 100%; border: 0; border-radius: 0 0 .6rem .6rem; }
/* Bank deposits → Deposit history (2026-10-22) */
.xr-dep-hist { width: min(72rem, 100%); max-height: 90vh; }
.xr-dep-hist-body { padding: .75rem; overflow: auto; }
/* Bank deposit → Deposit amount of the ticked items (2026-10-22) */
.xr-dep-amount { display: flex; align-items: baseline; gap: .9rem; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: .75rem; background: rgb(238 246 248); border: 1px solid rgb(174 213 222); }
.dark .xr-dep-amount { background: rgb(29 108 127 / .25); border-color: rgb(29 108 127 / .35); }
.xr-dep-amount-label { font-size: .85rem; font-weight: 600; color: rgb(11 58 71); }
.dark .xr-dep-amount-label { color: rgb(123 184 198); }
.xr-dep-amount-value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.xr-dep-amount-count { font-size: .8rem; color: rgb(107 114 128); }
.xr-dep-amount-btns { margin-left: auto; display: flex; gap: .5rem; align-self: center; }
.xr-dep-amount-btns button:disabled { opacity: .45; cursor: default; }
/* clean-up screens: Delete… choices (2026-10-22) */
.xr-cl-del { position: absolute; right: 0; top: 1.6rem; z-index: 20; display: flex; flex-direction: column; gap: .3rem; min-width: 13rem; padding: .6rem .7rem; background: #fff; border: 1px solid rgb(229 231 235); border-radius: .5rem; box-shadow: 0 6px 20px rgb(0 0 0 / .15); white-space: nowrap; font-size: .8rem; }
.dark .xr-cl-del { background: rgb(39 39 42); border-color: rgb(63 63 70); }
.xr-cl-del label { display: flex; align-items: center; gap: .4rem; }
.xr-wait-pop-text { margin: .6rem .75rem; width: calc(100% - 1.5rem); font-size: .85rem; border: 1px solid rgb(209 213 219); border-radius: .4rem; padding: .4rem .5rem; background: transparent; color: inherit; }
.xr-wait-pop-btns { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; padding: 0 .75rem; }
.xr-wait-pop-hint { margin-right: auto; font-size: .75rem; color: rgb(107 114 128); }

/* Year end check (2026-10-20): closing retained earnings vs next year's opening, with Process per year */
.xr-ye-ok { font-size: .85rem; color: rgb(21 128 61); }
.xr-ye-note { font-size: .8rem; color: rgb(107 114 128); margin-bottom: .5rem; }
.xr-ye-table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.xr-ye-table th { text-align: left; font-weight: 600; padding: .3rem .5rem; border-bottom: 1px solid rgb(229 231 235); white-space: nowrap; }
.xr-ye-table td { padding: .3rem .5rem; border-bottom: 1px solid rgb(243 244 246); font-variant-numeric: tabular-nums; }
.xr-ye-table .r { text-align: right; }
.xr-ye-diff { color: rgb(185 28 28); font-weight: 600; }
.xr-ye-blocked { font-size: .75rem; color: rgb(180 83 9); }
.dark .xr-ye-table th { border-color: rgb(255 255 255 / .1); }
.dark .xr-ye-table td { border-color: rgb(255 255 255 / .06); }

/* Year end to-do list (2026-10-20): errors to fix before the year end */
.xr-todo { display: flex; flex-direction: column; gap: .5rem; }
.xr-todo-sum { font-size: .88rem; font-weight: 600; padding: .5rem .75rem; border-radius: .5rem; }
.xr-todo-sum.is-bad { background: rgb(254 242 242); color: rgb(153 27 27); }
.xr-todo-sum.is-ok { background: rgb(240 253 244); color: rgb(21 128 61); }
.xr-todo-sumw { font-weight: 500; color: rgb(180 83 9); margin-left: .4rem; }
.xr-todo-item { display: flex; gap: .6rem; padding: .55rem .7rem; border: 1px solid rgb(229 231 235); border-left-width: 4px; border-radius: .45rem; }
.xr-todo-item.is-ok { border-left-color: rgb(34 197 94); }
.xr-todo-item.is-bad { border-left-color: rgb(220 38 38); background: rgb(254 242 242 / .45); }
.xr-todo-item.is-warn { border-left-color: rgb(245 158 11); background: rgb(255 251 235 / .6); }
.xr-todo-mark { font-weight: 700; width: 1rem; text-align: center; }
.is-ok .xr-todo-mark { color: rgb(21 128 61); } .is-bad .xr-todo-mark { color: rgb(185 28 28); } .is-warn .xr-todo-mark { color: rgb(180 83 9); }
.xr-todo-body { flex: 1; min-width: 0; }
.xr-todo-label { font-size: .85rem; font-weight: 600; }
.xr-todo-detail { font-size: .78rem; color: rgb(75 85 99); }
.xr-todo-rows { margin: .3rem 0 0; padding-left: 1rem; list-style: disc; font-size: .76rem; }
.xr-todo-rows a { color: rgb(15 76 92); }
.xr-todo-btns { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.dark .xr-todo-item { border-color: rgb(255 255 255 / .1); }
.dark .xr-todo-item.is-bad, .dark .xr-todo-sum.is-bad { background: rgb(127 29 29 / .25); color: rgb(254 202 202); }
.dark .xr-todo-item.is-warn { background: rgb(120 53 15 / .25); }
.dark .xr-todo-sum.is-ok { background: rgb(20 83 45 / .3); color: rgb(187 247 208); }
.dark .xr-todo-detail { color: rgb(161 161 170); }

/* Reports: only the first lines are drawn when there are very many (2026-10-20 – the browser froze) */
.xr-report-cut { margin: .25rem 0 .6rem; padding: .45rem .75rem; border-radius: .45rem; background: rgb(255 251 235); border: 1px solid rgb(253 230 138); color: rgb(146 64 14); font-size: .82rem; }
.xr-report-cut-row { font-style: italic; color: rgb(146 64 14); font-size: .78rem; }
.dark .xr-report-cut { background: rgb(120 53 15 / .25); border-color: rgb(146 64 14 / .5); color: rgb(253 230 138); }

/* Opening balances (2026-10-20) */
.xr-ob-warn { color: rgb(180 83 9); }
.xr-ob-ok { color: rgb(21 128 61); }
.xr-ob-totals { display: flex; gap: 1.5rem; justify-content: flex-end; font-size: .85rem; padding: .25rem .5rem; }
.xr-ob-frame { width: 100%; height: calc(100vh - 9rem); border: 1px solid rgb(229 231 235); border-radius: .5rem; }
.xr-ob-nodoc { padding: 2rem 1rem; text-align: center; color: rgb(107 114 128); border: 1px dashed rgb(209 213 219); border-radius: .5rem; font-size: .85rem; }

/* Indexes to process: ⋮ menu per row – Edit index / Delete index (2026-10-20) */
.xr-wait-dots { background: none; border: 0; cursor: pointer; font-weight: 700; padding: 0 .35rem; border-radius: .25rem; line-height: 1.1; }
.xr-wait-dots:hover { background: rgb(214 234 239); }
.xr-wait-menu-bg { position: fixed; inset: 0; z-index: 59; }
.xr-wait-menu { position: fixed; z-index: 60; width: 14rem; background: #fff; border: 1px solid rgb(229 231 235); border-radius: .45rem; box-shadow: 0 6px 24px rgb(0 0 0 / .15); padding: .25rem; display: flex; flex-direction: column; }
.xr-wait-menu-item { text-align: left; font-size: .82rem; padding: .35rem .55rem; border-radius: .3rem; background: none; border: 0; cursor: pointer; color: inherit; }
.xr-wait-menu-item:hover { background: rgb(243 244 246); }
.xr-wait-menu-item.is-danger, .xr-wait-btn.is-danger { color: rgb(185 28 28); }
.xr-wait-btn.is-danger { border-color: rgb(252 165 165); }
.xr-wait-del { display: flex; flex-direction: column; gap: .5rem; padding: .7rem .8rem; font-size: .83rem; }
.xr-wait-del span { font-size: .75rem; color: rgb(107 114 128); }
.dark .xr-wait-menu { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.dark .xr-wait-menu-item:hover { background: rgb(39 39 42); }

/* Opening balances (2026-10-20): laid out as Index processing – divider, PDF fitted to the right side, window height */
.xr-split[data-split="opening"] .xr-ob-totals { position: sticky; bottom: 0; background: var(--xr-ob-bg, #fff); border-top: 1px solid rgb(229 231 235); }
.dark .xr-split[data-split="opening"] .xr-ob-totals { --xr-ob-bg: rgb(24 24 27); border-color: rgb(63 63 70); }
.xr-ye-why { font-size: .78rem; color: rgb(75 85 99); }
.dark .xr-ye-why { color: rgb(161 161 170); }
/* Index processing with no index chosen (2026-10-21) */
.xr-pi-choose { padding: 2rem 1rem; text-align: center; color: rgb(100 116 139); border: 1px dashed rgb(203 213 225); border-radius: .75rem; margin-top: .5rem; }
/* Indexes to process (2026-10-21): the ⋮ column (last) as narrow as its button; the Name column takes the spare width */
.xr-wait-table th.xr-wait-mk, .xr-wait-table td.xr-wait-mk, .xr-wait-table th:last-child.xr-wait-mk, .xr-wait-table td:last-child.xr-wait-mk { width: 1%; }
.xr-wait-table td.xr-wait-name { width: auto; max-width: none; }

/* My recent transactions (2026-10-21, as the old screen): a block per transaction */
.xr-rt-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: .75rem; }
.xr-rt-filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 500; }
.xr-rt-in { border: 1px solid rgb(209 213 219); border-radius: .45rem; padding: .35rem .55rem; font-size: .85rem; background: #fff; min-width: 10rem; }
.dark .xr-rt-in { background: rgb(39 39 42); border-color: rgb(63 63 70); color: inherit; }
.xr-rt-reset { font-size: .8rem; padding: .4rem .8rem; border-radius: .45rem; border: 1px solid rgb(209 213 219); background: #fff; cursor: pointer; }
.dark .xr-rt-reset { background: rgb(39 39 42); border-color: rgb(63 63 70); }
.xr-rt-hint { font-size: .75rem; color: rgb(107 114 128); padding-bottom: .45rem; }
.xr-rt-busy { font-size: .75rem; color: rgb(15 76 92); padding-bottom: .45rem; }
.xr-rt-table { width: 100%; border-collapse: collapse; font-size: .8rem; background: #fff; border-radius: .5rem; }
.dark .xr-rt-table { background: rgb(24 24 27); }
.xr-rt-table thead th { text-align: left; font-weight: 600; padding: .45rem .5rem; border-bottom: 1px solid rgb(209 213 219); position: sticky; top: 0; background: inherit; z-index: 1; }
.xr-rt-table td { padding: .2rem .5rem; vertical-align: top; }
.xr-rt-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xr-rt-idx { width: 4.5rem; }
.xr-rt-head td { padding-top: .9rem; border-bottom: 1px solid rgb(229 231 235); background: rgb(249 250 251); }
.dark .xr-rt-head td { background: rgb(39 39 42); border-color: rgb(63 63 70); }
.xr-rt-label { font-weight: 600; }
.xr-rt-no { color: rgb(15 76 92); font-weight: 600; margin: 0 .5rem 0 .25rem; font-family: ui-monospace, monospace; }
.xr-rt-edit { font-size: .72rem; padding: .05rem .5rem; border-radius: .35rem; background: rgb(15 76 92); color: #fff !important; margin-right: .5rem; }
.xr-rt-doc { background: rgb(22 163 74); color: #fff; border: 0; border-radius: .3rem; padding: 0 .35rem; cursor: pointer; font-size: .75rem; margin-right: .5rem; }
.xr-rt-status { font-size: .7rem; padding: .05rem .45rem; border-radius: 1rem; margin-right: .5rem; }
.xr-rt-posted { background: rgb(220 252 231); color: rgb(21 128 61); }
.xr-rt-saved { background: rgb(254 243 199); color: rgb(180 83 9); }
.xr-rt-system { background: rgb(224 231 255); color: rgb(55 48 163); margin-left: .25rem; }
.xr-rt-open { background: rgb(243 244 246); color: rgb(75 85 99); }
.xr-rt-entered { font-size: .72rem; color: rgb(107 114 128); }
.xr-rt-line:nth-child(even) td { background: rgb(249 250 251 / .6); }
.dark .xr-rt-line:nth-child(even) td { background: rgb(255 255 255 / .03); }
.xr-rt-accname { color: rgb(107 114 128); }
.xr-rt-flag { color: rgb(220 38 38); }
.xr-rt-total td { border-top: 2px solid rgb(17 24 39); font-weight: 700; padding-bottom: .5rem; }
.dark .xr-rt-total td { border-color: rgb(228 228 231); }
.xr-rt-empty { text-align: center; padding: 2rem !important; color: rgb(107 114 128); }
.xr-rt-more { text-align: center; margin-top: .75rem; }

/* Compact rows in every list (Mohsen 2026-10-21): less padding above / below each cell, smaller badges and row buttons */
.fi-ta-header-cell { padding-top: .3rem !important; padding-bottom: .3rem !important; }
.fi-ta-text, .fi-ta-icon, .fi-ta-color, .fi-ta-image { padding-top: .12rem !important; padding-bottom: .12rem !important; }
.fi-ta-text-item, .fi-ta-cell { line-height: 1.25; }
.fi-ta-text .fi-badge, .fi-ta-cell .fi-badge { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; font-size: .72rem; }
.fi-ta-actions .fi-btn, .fi-ta-actions .fi-link, .fi-ta-actions .fi-icon-btn { padding-top: .05rem !important; padding-bottom: .05rem !important; min-height: 0 !important; }
.fi-ta-actions .fi-icon-btn { height: 1.5rem !important; width: 1.5rem !important; }
.fi-ta-record-checkbox, .fi-ta-selection-cell .fi-checkbox-input { width: .9rem; height: .9rem; }
.fi-ta-group-header-cell, .fi-ta-selection-cell { padding-top: .1rem !important; padding-bottom: .1rem !important; }
.fi-ta-summary-row td, .fi-ta-summary-header-cell { padding-top: .15rem !important; padding-bottom: .15rem !important; }
/* own lists */
.xr-wait-table td, .xr-wait-table th { padding-top: .1rem !important; padding-bottom: .1rem !important; line-height: 1.25; }
.xr-rt-table td { padding-top: .08rem; padding-bottom: .08rem; line-height: 1.25; }
.xr-rt-head td { padding-top: .55rem; }

/* My recent transactions – print (2026-10-21): a heading (company, filters, printed) instead of the filters, repeated on every page */
.xr-rt-print-head { display: none; }
@media print {
    .xr-rt-print-head { display: table-row; }
    .xr-rt-print-head th { border: 0 !important; padding: 0 0 6pt 0 !important; text-align: left; font-weight: normal; position: static !important; }
    .xr-rt-ph-title { font-weight: 700; font-size: 11pt; }
    .xr-rt-ph-sub { font-size: 8.5pt; color: #555; }
    .xr-rt-table { font-size: 8.5pt; background: none !important; }
    .xr-rt-table thead { display: table-header-group; }
    .xr-rt-table thead th { position: static !important; padding: 2pt 4pt !important; border-bottom: 1px solid #000; }
    .xr-rt-table td { padding: 1pt 4pt !important; }
    .xr-rt-tx { break-inside: avoid; }
    .xr-rt-head td { background: none !important; padding-top: 6pt !important; border-bottom: 1px solid #999; }
    .xr-rt-line td { background: none !important; }
    .xr-rt-edit, .xr-rt-doc, .xr-rt-entered { display: none !important; }
    .xr-rt-no { color: #000; margin-left: 2pt; }
    .xr-rt-status { background: none !important; color: #000 !important; padding: 0 !important; font-size: 7.5pt; }
    .xr-rt-status::before { content: '· '; }
    .xr-rt-accname { color: #444; }
    .xr-rt-total td { border-top: 1.5px solid #000; }
}

/* Recurring setup – transaction history (2026-10-21) */
.xr-rh-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .5rem; }
.xr-rh-only { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 600; color: rgb(15 76 92); cursor: pointer; }
.xr-rh-link { display: inline-flex; gap: .25rem; align-items: center; font-size: .72rem; color: rgb(15 76 92); margin-right: .6rem; cursor: pointer; }
.xr-rh .xr-rt-hint { padding-bottom: 0; }

/* Recurring setup – schedule summary (2026-10-21) */
.xr-sched-sum { font-size: .82rem; padding: .45rem .65rem; border-radius: .45rem; background: rgb(238 246 248); color: rgb(8 44 54); }
.dark .xr-sched-sum { background: rgb(29 108 127 / .35); color: rgb(214 234 239); }

/* number boxes without the up / down arrows (Mohsen 2026-10-21) – everywhere in the app */
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* Flagged transactions (2026-10-21) */
.xr-fl-table tbody td { border-bottom: 1px solid rgb(241 245 249); }
.dark .xr-fl-table tbody td { border-color: rgb(255 255 255 / .06); }
.xr-fl-note { max-width: 24rem; white-space: normal; }
.xr-fl-missing { color: rgb(220 38 38); font-style: italic; }

/* completeness check (account maps, 2026-10-22) */
.xr-chk { font-size: .85rem; } .xr-chk h4 { font-weight: 700; margin: .9rem 0 .25rem; } .xr-chk p { margin: .2rem 0; }
.xr-chk-list { margin: .25rem 0 .5rem 1.2rem; list-style: disc; max-height: 14rem; overflow: auto; font-size: .8rem; }
.xr-chk-ok { color: rgb(21 128 61); font-weight: 600; } .xr-chk-bad { color: rgb(185 28 28); font-weight: 600; }

/* + (add a line below) before delete, Add line under the table only with no line (auto transactions – 2026-10-22) */
.xr-line-plus .fi-fo-table-repeater-actions { display: flex; align-items: center; gap: .1rem; }
.xr-line-plus .fi-fo-table-repeater-actions > div:has(.xr-line-add) { order: -1; }
.xr-line-plus .xr-line-add { color: rgb(15 23 42) !important; }
.xr-line-plus .xr-line-add svg { width: 1.2rem; height: 1.2rem; }
.fi-fo-table-repeater.xr-line-plus:has(table) .fi-fo-table-repeater-add { display: none; }
.xr-fl-clear { font-size: .72rem; padding: .1rem .5rem; white-space: nowrap; }

/* Financial statements – formal, modern layout (2026-10-23, reports/financial-statements): each part is a sheet of paper on
   screen, ink-black type with tabular figures, a fine rule under every heading, quiet section labels, single rules above
   subtotals and double rules under totals */
.xr-fs { --fs-ink: rgb(17 24 39); --fs-muted: rgb(100 116 139); --fs-rule: rgb(203 213 225); --fs-accent: rgb(30 41 59); }
.xr-fs-statement { box-sizing: border-box; width: 100%; max-width: 50rem; margin: 0 auto 2rem; background: #fff; color: var(--fs-ink); padding: 3rem 3.5rem 2.25rem;
    border: 1px solid rgb(226 232 240); border-radius: .5rem; box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px rgb(15 23 42 / .06); }
.xr-fs-head { text-align: center; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 2px solid var(--fs-accent); line-height: 1.4; }
.xr-fs-co { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.xr-fs-title { font-size: 1.25rem; font-weight: 600; margin-top: .35rem; letter-spacing: .01em; }
.xr-fs-date { font-size: .82rem; color: var(--fs-muted); margin-top: .15rem; }
.xr-report .xr-fs-table { width: 100%; min-width: 0; font-size: .86rem; line-height: 1.45; font-variant-numeric: tabular-nums; color: var(--fs-ink); }
.xr-report .xr-fs-table th, .xr-report .xr-fs-table td { border: 0; background: none; padding: .16rem .55rem; }
.xr-report .xr-fs-table thead th { font-weight: 600; font-size: .78rem; letter-spacing: .06em; color: var(--fs-muted); border-bottom: 1px solid var(--fs-rule); padding-bottom: .35rem; }
.xr-report .xr-fs-table tbody tr:hover > td { background: rgb(241 245 249); }
.xr-report .xr-fs-table td.num, .xr-report .xr-fs-table th.num { width: 9.5rem; text-align: right; }
.xr-report .xr-fs-table td.num { position: relative; }
.xr-fs-cur { position: absolute; left: .7rem; color: var(--fs-muted); }
/* 3 or 4 value columns – previous year, changes, % (2026-10-25): a wider sheet, narrower figure columns, a small % column */
.xr-fs-wide .xr-fs-statement { max-width: 66rem; padding-left: 2.5rem; padding-right: 2.5rem; }
.xr-report.xr-fs-wide .xr-fs-table td.num, .xr-report.xr-fs-wide .xr-fs-table th.num { width: 9rem; white-space: nowrap; }
.xr-report .xr-fs-table td.xr-fs-pct, .xr-report .xr-fs-table th.xr-fs-pct { width: 4.75rem; }
.xr-fs-wide .xr-fs-cur { left: .4rem; }
@media print { .xr-report.xr-fs-wide .xr-fs-table { font-size: .76rem; } .xr-report.xr-fs-wide .xr-fs-table td.num, .xr-report.xr-fs-wide .xr-fs-table th.num { width: 7.25rem; } }
.xr-fs-map, .xr-fs-note { width: 4rem; color: var(--fs-muted); font-size: .75rem; }
.xr-fs-section td { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fs-accent); padding-top: 1.25rem !important; padding-bottom: .3rem !important; border-bottom: 1px solid var(--fs-rule) !important; }
.xr-fs-group td { font-weight: 600; padding-top: .7rem !important; padding-left: 1rem !important; }
.xr-fs-l1 { padding-left: 1rem !important; }
.xr-fs-l2 { padding-left: 2rem !important; }
.xr-report .xr-fs-sub td.num { border-top: 1px solid var(--fs-ink); }
.xr-fs-sub td:not(.num) { padding-left: 2rem !important; }
.xr-fs-sub td { padding-bottom: .3rem !important; }
.xr-fs-strong td { font-weight: 700; }
.xr-fs-total td { font-weight: 700; padding-top: .45rem !important; }
.xr-report .xr-fs-total td.num { border-top: 1px solid var(--fs-ink); border-bottom: 3px double var(--fs-ink); }
.xr-fs-foot { margin-top: 2.25rem; padding-top: .6rem; border-top: 1px solid var(--fs-rule); text-align: center; font-size: .75rem; color: var(--fs-muted); letter-spacing: .04em; }
.xr-fs-approve { margin-top: 2.75rem; font-size: .82rem; }
.xr-fs-approve-lines { display: flex; gap: 3rem; margin-top: 2.25rem; }
.xr-fs-approve-lines span { flex: 1; border-top: 1px solid var(--fs-ink); padding-top: .3rem; color: var(--fs-muted); }
@media print {
    .xr-fs-statement { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; page-break-after: always; break-after: page; }
    .xr-fs-statement:last-of-type { page-break-after: auto; break-after: auto; }
    .xr-report .xr-fs-table tbody tr:hover > td { background: none; }
    .xr-fs-blocked > :not(.xr-fs-notes) { display: none !important; }
    .xr-fs-blocked::before { content: "This balance sheet is out of balance – it cannot be printed until it balances. Technical notes:"; display: block; font-weight: 700; margin-bottom: 1rem; }
}
/* technical notes page (2026-10-23) */
.xr-fs-notes { font-size: .85rem; }
.xr-fs-nh { font-weight: 700; margin: 1rem 0 .4rem; font-size: .95rem; }
.xr-fs-np { margin: .9rem 0 .35rem; }
.xr-report .xr-fs-ntable { margin-bottom: .5rem; }
.xr-report .xr-fs-ntable thead th { font-size: .78rem; }
.xr-report .xr-fs-ntable td { font-size: .8rem; white-space: normal; }
/* Journal entry → Technical notes (2026-10-23) */
.xr-tx-notes { font-size: .85rem; line-height: 1.5; }
.xr-tx-notes ul { list-style: disc; padding-left: 1.25rem; margin: .2rem 0 .7rem; }
.xr-tx-notes p { margin: .3rem 0 .1rem; }
.xr-tx-hint { color: rgb(107 114 128); }
.xr-fs-warnline td { color: rgb(217 119 6); font-style: italic; }
.xr-fs-interim { border: 1px solid rgb(217 119 6); color: rgb(146 64 14); background: rgb(255 251 235); padding: .5rem .75rem; margin: 0 0 1rem; font-weight: 600; }
/* financial statements: cover page, contents, Notice to Reader (2026-10-23) */
.xr-fs-cover { display: flex; flex-direction: column; justify-content: space-between; min-height: 44rem; text-align: center; padding: 4rem 3rem 3rem; border-top: 8px solid var(--fs-accent); }
.xr-fs-cover-co { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-top: 1.25rem; }
.xr-fs-cover-mid { border-top: 1px solid var(--fs-rule); border-bottom: 1px solid var(--fs-rule); padding: 2.25rem 0; margin: 2rem 2rem; }
.xr-fs-cover-title { font-size: 2.25rem; font-weight: 300; letter-spacing: .04em; color: var(--fs-accent); }
.xr-fs-cover-date { font-size: 1.05rem; margin-top: .5rem; }
.xr-fs-cover-status { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fs-muted); margin-top: .6rem; }
.xr-fs-cover-foot { font-size: .85rem; line-height: 1.5; }
.xr-fs-cover-by { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: rgb(107 114 128); margin-bottom: .4rem; }
.xr-fs-logo { max-height: 5rem; max-width: 14rem; margin: 0 auto; object-fit: contain; }
.xr-fs-logo-sm { max-height: 3rem; margin-bottom: .4rem; }
.xr-fs-firm { font-weight: 700; }
.xr-fs-toc-list { width: 100%; margin: 1rem 0 0; border-top: 1px solid var(--fs-rule); }
.xr-fs-toc-row { display: flex; align-items: center; gap: 1.25rem; padding: 1rem .25rem; border-bottom: 1px solid var(--fs-rule); color: inherit; text-decoration: none; }
.xr-fs-toc-row:hover { background: rgb(248 250 252); }
.xr-fs-toc-no { font-size: 1.6rem; font-weight: 300; color: var(--fs-muted); width: 3rem; font-variant-numeric: tabular-nums; }
.xr-fs-toc-text { display: flex; flex-direction: column; }
.xr-fs-toc-title { font-size: 1.02rem; font-weight: 600; }
.xr-fs-toc-note { font-size: .8rem; color: var(--fs-muted); margin-top: .1rem; }
.xr-fs-toc-leader { flex: 1; border-bottom: 1px dotted rgb(148 163 184); margin: 0 .5rem; align-self: center; }
.xr-fs-toc-sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fs-muted); white-space: nowrap; }
.xr-fs-ntr { font-size: .92rem; line-height: 1.6; }
.xr-fs-ntr-letterhead { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid currentColor; padding-bottom: .75rem; margin-bottom: 2rem; font-size: .82rem; line-height: 1.45; }
.xr-fs-ntr-letterhead .xr-fs-logo { margin: 0; max-height: 4rem; }
.xr-fs-ntr-letterhead .xr-fs-firm { font-size: 1rem; }
.xr-fs-ntr-title { text-align: center; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.5rem; }
.xr-fs-ntr p { margin-bottom: 1rem; text-align: justify; }
.xr-fs-ntr-sign { margin-top: 3rem; line-height: 1.5; }
@media print {
    .xr-fs-cover { border-top: 8px solid var(--fs-accent) !important; min-height: 9in; padding-top: 2rem !important; }
}
.xr-fs-designation { font-style: italic; }
.xr-fs-licence { font-size: .75rem; color: var(--fs-muted); }

/* Financial statements – "Modern" design (Design: Modern, 2026-10-23): deep teal accent, left-aligned headings with an accent
   bar, tinted section bands and total rows, a full-height colour panel on the cover. Colours print (print-color-adjust). */
.xr-fs-modern { --fs-accent: rgb(15 76 92); --fs-tint: rgb(236 246 248); --fs-tint-2: rgb(214 236 241); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.xr-fs-modern .xr-fs-statement { border-radius: .75rem; }
.xr-fs-modern .xr-fs-head { text-align: left; border-bottom: 0; padding: 0 0 0 1rem; border-left: 5px solid var(--fs-accent); margin-bottom: 2rem; }
.xr-fs-modern .xr-fs-co { font-size: .78rem; letter-spacing: .16em; color: var(--fs-accent); }
.xr-fs-modern .xr-fs-title { font-size: 1.65rem; font-weight: 700; margin-top: .15rem; }
.xr-fs-modern .xr-fs-date { font-size: .8rem; }
.xr-fs-modern.xr-report .xr-fs-table thead th { color: #fff; background: var(--fs-accent); border: 0; padding: .45rem .7rem; font-size: .74rem; }
.xr-fs-modern.xr-report .xr-fs-table thead th:first-child { border-top-left-radius: .35rem; border-bottom-left-radius: .35rem; }
.xr-fs-modern.xr-report .xr-fs-table thead th:last-child { border-top-right-radius: .35rem; border-bottom-right-radius: .35rem; }
.xr-fs-modern .xr-fs-section td { background: var(--fs-tint) !important; border-bottom: 0 !important; padding: .45rem .7rem !important; margin-top: .5rem; color: var(--fs-accent); }
.xr-fs-modern .xr-fs-group td { color: var(--fs-accent); }
.xr-fs-modern.xr-report .xr-fs-total td { background: var(--fs-tint-2); padding-top: .5rem !important; padding-bottom: .5rem !important; }
.xr-fs-modern.xr-report .xr-fs-total td.num { border-top: 0; border-bottom: 0; }
.xr-fs-modern .xr-fs-cur { color: var(--fs-accent); }
.xr-fs-modern .xr-fs-foot { text-align: left; color: var(--fs-accent); }
.xr-fs-modern .xr-fs-cover { display: grid; grid-template-columns: 38% 1fr; padding: 0; overflow: hidden; border-top: 0; text-align: left; }
.xr-fs-modern .xr-fs-cover-top { background: var(--fs-accent); color: #fff; padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: flex-end; grid-row: span 2; }
.xr-fs-modern .xr-fs-cover-top .xr-fs-logo { margin: 0 0 1.5rem; background: #fff; padding: .5rem; border-radius: .35rem; }
.xr-fs-modern .xr-fs-cover-co { font-size: 1.35rem; margin: 0; color: #fff; }
.xr-fs-modern .xr-fs-cover-mid { border: 0; margin: 0; padding: 5rem 2.5rem 2rem; }
.xr-fs-modern .xr-fs-cover-title { font-size: 2.6rem; font-weight: 700; line-height: 1.1; }
.xr-fs-modern .xr-fs-cover-date { font-size: 1.05rem; margin-top: 1rem; }
.xr-fs-modern .xr-fs-cover-foot { padding: 2rem 2.5rem 3rem; align-self: end; border-top: 1px solid var(--fs-rule); margin: 0 2.5rem; padding-left: 0; padding-right: 0; }
.xr-fs-modern .xr-fs-toc-no { color: var(--fs-accent); font-weight: 600; }
.xr-fs-modern .xr-fs-toc-row:hover { background: var(--fs-tint); }
.xr-fs-modern .xr-fs-ntr-letterhead { border-bottom-color: var(--fs-accent); }
.xr-fs-modern .xr-fs-ntr-title { text-align: left; color: var(--fs-accent); }
@media print {
    .xr-fs-modern .xr-fs-cover { min-height: 9.5in; border-top: 0 !important; padding-top: 0 !important; }
}

/* printing: never leave a lonely line on a page (2026-10-23) – keep headings with what follows, subtotals / totals with the
   lines above them, the signature block and footer with the end of the statement; xeracc.js fitPages() shrinks a part a
   little when its last page would be almost empty (.xr-fit) */
.xr-print-measure .xr-fs-statement { padding: 0 !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
@media print {
    .xr-fit { zoom: var(--xr-fit, 1); }
    .xr-report p { orphans: 3; widows: 3; }
    .xr-fs-head, .xr-fs-section, .xr-fs-group, .xr-report .xr-group { break-after: avoid; page-break-after: avoid; }
    .xr-fs-sub, .xr-fs-total, .xr-report .xr-subtotal, .xr-report .xr-total { break-before: avoid; page-break-before: avoid; }
    .xr-fs-approve, .xr-fs-foot, .xr-fs-ntr-sign { break-before: avoid; page-break-before: avoid; break-inside: avoid; page-break-inside: avoid; }
    .xr-fs-toc-list, .xr-fs-ntr-letterhead, .xr-fs-toc-row { break-inside: avoid; page-break-inside: avoid; }
}
.xr-so-hist { width: 100%; font-size: .82rem; border-collapse: collapse; } .xr-so-hist th, .xr-so-hist td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid rgb(229 231 235); vertical-align: top; } .xr-so-hist th { font-weight: 600; color: rgb(100 116 139); }
.xr-so-open { border: 1px solid rgb(217 119 6); background: rgb(255 251 235); color: rgb(120 53 15); border-radius: .5rem; padding: .75rem 1rem; line-height: 1.5; }
/* Fiscal years list: no "Filters" heading (Reset stays, top right) – 2026-10-23 */
.fi-resource-company-fiscal-periods .fi-ta-filters-heading { display: none; }
/* same on Rental units, Leases, Statement notes, Auto transactions – 2026-10-23 */
:is(.fi-resource-properties-rental-units, .fi-resource-properties-leases, .fi-resource-reports-statement-notes, .fi-resource-setup-auto-transactions) .fi-ta-filters-heading { display: none; }
.fi-resource-company-fiscal-periods .fi-ta-filters-header { position: absolute; right: 1rem; top: .35rem; }
.fi-resource-company-fiscal-periods .fi-ta-filters { position: relative; padding-top: .6rem; padding-bottom: .6rem; }

/* Brand teal (Mohsen 2026-10-23): the app's blue accents now use the J2 logo teal #0f4c5c (primary-600).
   Teal text is too dark on the dark theme, so links and accent text use teal-300 there. */
.dark :is(.xr-fuc-link, .xr-fuc-more, .xr-wait-table a, .xr-todo-rows a, .xr-rt-no, .xr-rt-busy, .xr-rh-only, .xr-rh-link,
    .xr-trail-home-here, .xr-wait-notemk.has-note) { color: rgb(123 184 198); }
.dark .xr-line-menu .xr-line-add:hover { color: rgb(123 184 198) !important; }
.dark .xr-line-menu .fi-fo-table-repeater-actions:has(.xr-line-note.fi-color-primary)::after { color: rgb(123 184 198); }
.dark .fi-tabs-item.fi-active { background: rgb(29 108 127); border-color: rgb(63 143 163); }

/* Auto transaction section (Document indexing / Index processing) – layout A as a real table (Mohsen 2026-10-24,
   resources/views/filament/forms/auto-transaction-table.blade.php): grey header bar, Description | Account | Debit | Credit
   with fixed amount columns (9rem, Credit on the far right), a rule between groups, totals under the columns */
.xr-atx { border: 1px solid rgb(229 231 235); border-radius: .4rem; overflow: hidden; }
.xr-atx table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .8125rem; }
.xr-atx .xr-atx-c-desc { width: 24%; }
.xr-atx .xr-atx-c-amt { width: 9rem; }
.xr-atx th { background: rgb(156 163 175); color: #fff; font-weight: 700; font-size: .85rem; text-align: left; padding: .4rem .5rem; }
.xr-atx td { padding: .3rem .5rem; border-bottom: 1px solid rgb(229 231 235); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-atx .num { text-align: right; }
.xr-atx tr.xr-atx-group td { border-top: 1px solid rgb(209 213 219); }
.xr-atx .xr-atx-desc { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; color: rgb(75 85 99); }
.xr-atx .xr-atx-in { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid rgb(209 213 219); border-radius: .4rem;
    padding: .2rem .45rem; font: inherit; background: #fff; color: inherit; }
.xr-atx .xr-atx-in:focus { outline: 2px solid #0f4c5c; outline-offset: -1px; border-color: #0f4c5c; }
.xr-atx .xr-atx-amt { text-align: right; }
.xr-atx .xr-atx-calc { display: block; padding: .2rem .45rem; color: rgb(55 65 81); }
.xr-atx tfoot td { border-top: 2px solid rgb(156 163 175); border-bottom: 0; font-weight: 600; }
.xr-atx .xr-at-st-wait { color: rgb(107 114 128); font-size: .78rem; font-weight: 400; }
.xr-atx .xr-at-st-ok { color: rgb(21 128 61); font-size: .78rem; }
.xr-atx .xr-at-st-bad { color: rgb(185 28 28); font-size: .78rem; }
.dark .xr-atx { border-color: rgb(255 255 255 / .1); }
.dark .xr-atx th { background: rgb(75 85 99); }
.dark .xr-atx td { border-color: rgb(255 255 255 / .1); }
.dark .xr-atx .xr-atx-desc { color: rgb(209 213 219); }
.dark .xr-atx .xr-atx-in { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .15); }
.dark .xr-atx .xr-atx-calc { color: rgb(229 231 235); }
/* low rows (Mohsen 2026-10-24): small cell padding, slim boxes */
.xr-atx td { padding-top: .1rem; padding-bottom: .1rem; line-height: 1.25; }
.xr-atx th { padding-top: .25rem; padding-bottom: .25rem; }
.xr-atx .xr-atx-in { padding-top: .05rem; padding-bottom: .05rem; line-height: 1.25; height: 1.5rem; }
.xr-atx .xr-atx-calc { padding-top: 0; padding-bottom: 0; }
.xr-atx tfoot td { padding-top: .25rem; padding-bottom: .25rem; }
/* small screens / narrow section (Mohsen 2026-10-24): narrower amount columns, tighter cells – the section's own width decides
   (container query), so it also works when the PDF viewer takes half the screen */
.xr-atx { container-type: inline-size; }
@container (max-width: 640px) {
    .xr-atx .xr-atx-c-amt { width: 6.25rem; }
    .xr-atx .xr-atx-c-desc { width: 22%; }
    .xr-atx th, .xr-atx td { padding-left: .3rem; padding-right: .3rem; }
    .xr-atx .xr-atx-in, .xr-atx .xr-atx-calc { padding-left: .3rem; padding-right: .3rem; }
}
@container (max-width: 460px) {
    .xr-atx .xr-atx-c-amt { width: 5.25rem; }
    .xr-atx .xr-atx-c-desc { width: 20%; }
    .xr-atx table { font-size: .75rem; }
    .xr-atx th { font-size: .75rem; }
    .xr-atx .xr-atx-desc { font-size: .68rem; letter-spacing: 0; white-space: normal; }
}

/* Date picker – design J (Mohsen 2026-10-23, canvas "XERACC date picker options"): small white popup, header
   « ‹ October 2026 › » (« » year, ‹ › month; Filament's month list and year box hidden), the chosen day filled teal,
   today outlined, Today / Clear at the bottom (title and buttons added by js/xeracc.js) */
.fi-fo-date-time-picker .fi-fo-date-time-picker-panel { padding: .5rem !important; border-radius: .5rem; min-width: 0; width: 13.75rem;
    box-shadow: 0 10px 24px -12px rgb(19 32 43 / .4), 0 0 0 1px rgb(19 32 43 / .08) !important; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-panel > * { margin-top: 0 !important; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-panel-header { display: flex; align-items: center; gap: .2rem; padding: 0 0 .35rem; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-month-select,
.fi-fo-date-time-picker .fi-fo-date-time-picker-year-input { display: none !important; }
.fi-fo-date-time-picker .xr-dp-title { flex: 1; text-align: center; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.fi-fo-date-time-picker .xr-dp-nav { flex: none; width: 1.5rem; height: 1.5rem; border: 0; border-radius: .25rem; background: #f2f5f7;
    color: #13202b; font-size: .85rem; line-height: 1; cursor: pointer; padding: 0; }
.fi-fo-date-time-picker .xr-dp-nav:hover { background: #e3eef1; color: #0f4c5c; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-calendar-header { padding: 0; gap: 1px; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-calendar-header-day { font-size: .68rem; font-weight: 600; color: #5e6e7a; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-calendar { padding: 0; gap: 1px; grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-calendar .fi-fo-date-time-picker-calendar-day { border-radius: .25rem; font-size: .72rem; line-height: 1.375rem; padding: 0; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-calendar .fi-fo-date-time-picker-calendar-day.fi-focused:not(.fi-selected):not(.fi-disabled) { background: #e3eef1; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-calendar .fi-fo-date-time-picker-calendar-day.fi-selected { background: #0f4c5c !important; color: #fff !important; font-weight: 700; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-calendar .fi-fo-date-time-picker-calendar-day.fi-fo-date-time-picker-calendar-day-today:not(.fi-selected) {
    box-shadow: inset 0 0 0 1.5px #0f4c5c; color: #0f4c5c !important; font-weight: 600; }
.fi-fo-date-time-picker .fi-fo-date-time-picker-time-inputs { padding: .35rem 0 0; }
.fi-fo-date-time-picker .xr-dp-foot { display: flex; justify-content: space-between; margin-top: .35rem; padding-top: .3rem; border-top: 1px solid #e5eaee; }
.fi-fo-date-time-picker .xr-dp-foot button { border: 0; background: none; font: inherit; font-size: .72rem; padding: .1rem .25rem; cursor: pointer; }
.fi-fo-date-time-picker .xr-dp-today { color: #0f4c5c; font-weight: 700; }
.fi-fo-date-time-picker .xr-dp-clear { color: #5e6e7a; }
.dark .fi-fo-date-time-picker .xr-dp-nav { background: rgb(255 255 255 / .08); color: #fff; }
.dark .fi-fo-date-time-picker .xr-dp-nav:hover { background: rgb(255 255 255 / .16); color: #fff; }
.dark .fi-fo-date-time-picker .fi-fo-date-time-picker-calendar-header-day { color: rgb(156 163 175); }
.dark .fi-fo-date-time-picker .fi-fo-date-time-picker-calendar .fi-fo-date-time-picker-calendar-day.fi-focused:not(.fi-selected):not(.fi-disabled) { background: rgb(255 255 255 / .1); }
.dark .fi-fo-date-time-picker .fi-fo-date-time-picker-calendar .fi-fo-date-time-picker-calendar-day.fi-fo-date-time-picker-calendar-day-today:not(.fi-selected) { color: #7bb8c6 !important; box-shadow: inset 0 0 0 1.5px #7bb8c6; }
.dark .fi-fo-date-time-picker .fi-fo-date-time-picker-calendar .fi-fo-date-time-picker-calendar-day.fi-selected { background: #1d6c7f !important; }
.dark .fi-fo-date-time-picker .xr-dp-foot { border-color: rgb(255 255 255 / .1); }
.dark .fi-fo-date-time-picker .xr-dp-today { color: #7bb8c6; }

/* Dashboard: Auto transaction requests (Mohsen 2026-10-24) – made to catch the eye */
.xr-atr { border: 2px solid rgb(217 119 6) !important; background: rgb(255 251 235); border-radius: .75rem; overflow: hidden; }
.xr-atr .fi-ta-header { background: rgb(254 243 199); }
.xr-atr-head { display: inline-flex; align-items: center; gap: .45rem; color: rgb(146 64 14); font-weight: 700; }
.xr-atr-count { background: rgb(220 38 38); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 9999px; padding: .1rem .55rem; }
.xr-atr tr.xr-atr-open > td { background: rgb(255 247 237); }
.xr-atr tr.xr-atr-open > td:first-child { box-shadow: inset 4px 0 0 rgb(217 119 6); }
.dark .xr-atr { background: rgb(120 53 15 / .25); border-color: rgb(245 158 11) !important; }
.dark .xr-atr .fi-ta-header { background: rgb(120 53 15 / .4); }
.dark .xr-atr-head { color: rgb(253 230 138); }
.dark .xr-atr tr.xr-atr-open > td { background: rgb(120 53 15 / .2); }

/* Company auto numbering: a coloured tab per ledger, sub tabs per document (2026-10-24) – AR blue, AP amber, General violet */
.xr-anum [data-xr-grp="ar"] { --g: 29 78 216; --gt: 239 246 255; }
.xr-anum [data-xr-grp="ap"] { --g: 180 83 9; --gt: 255 251 235; }
.xr-anum [data-xr-grp="gl"] { --g: 109 40 217; --gt: 245 243 255; }
.xr-anum .fi-tabs-item[data-xr-grp] { background: rgb(var(--gt)); border: 1px solid rgb(var(--g) / .35); border-top: 3px solid rgb(var(--g)); }
.xr-anum .fi-tabs .fi-tabs-item[data-xr-grp]:not(.fi-active) .fi-tabs-item-label { color: rgb(var(--g)); font-weight: 600; }
.xr-anum .fi-tabs-item[data-xr-grp]:hover { background: rgb(var(--g) / .12); }
.xr-anum .fi-tabs-item.fi-active[data-xr-grp] { background: rgb(var(--g)); border-color: rgb(var(--g)); color: #fff; box-shadow: 0 2px 6px -2px rgb(var(--g) / .6); }
.xr-anum .fi-tabs-item.fi-active[data-xr-grp] .fi-tabs-item-label { color: #fff; }
.xr-anum .fi-tabs .fi-tabs-item { padding: .5rem 1rem !important; font-size: .9rem; }
.xr-anum-docs .fi-tabs { flex-wrap: wrap; background: rgb(var(--gt)) !important; border: 1px solid rgb(var(--g) / .25); border-radius: .6rem; box-shadow: none; }
.xr-anum-docs .fi-tabs .fi-tabs-item[data-xr-grp] { border-top-width: 1px; font-size: .82rem; padding: .3rem .65rem !important; background: #fff; }
.xr-anum-docs .fi-tabs .fi-tabs-item.fi-active[data-xr-grp] { background: rgb(var(--g)); }
.dark .xr-anum .fi-tabs-item[data-xr-grp], .dark .xr-anum-docs .fi-tabs .fi-tabs-item[data-xr-grp] { background: rgb(var(--g) / .15); }
.dark .xr-anum .fi-tabs .fi-tabs-item[data-xr-grp]:not(.fi-active) .fi-tabs-item-label { color: rgb(226 232 240); }
.dark .xr-anum-docs .fi-tabs { background: rgb(var(--g) / .1) !important; }
.dark .xr-anum .fi-tabs-item.fi-active[data-xr-grp], .dark .xr-anum-docs .fi-tabs .fi-tabs-item.fi-active[data-xr-grp] { background: rgb(var(--g)); }

/* Documents → "Text in document": where the words were found (2026-10-24) */
.xr-found { font-size: .8rem; color: rgb(71 85 105); max-width: 28rem; }
.xr-found mark { background: rgb(253 230 138); color: rgb(17 24 39); padding: 0 .1rem; border-radius: 2px; }
.dark .xr-found { color: rgb(203 213 225); }
.dark .xr-found mark { background: rgb(180 83 9); color: #fff; }

/* Document indexing: fields read from the document (TODO 72, 2026-10-24) */
/* colour by how sure (2026-10-24): green = read for certain, blue = likely, amber = a guess */
.xr-suggested.xr-sg-high .fi-input-wrp, .xr-suggested.xr-sg-high .xr-atx-amt { background: rgb(220 252 231) !important; box-shadow: 0 0 0 1.5px rgb(74 222 128) !important; }
.xr-suggested.xr-sg-medium .fi-input-wrp, .xr-suggested.xr-sg-medium .xr-atx-amt { background: rgb(219 234 254) !important; box-shadow: 0 0 0 1.5px rgb(96 165 250) !important; }
.xr-suggested.xr-sg-low .fi-input-wrp, .xr-suggested.xr-sg-low .xr-atx-amt { background: rgb(254 243 199) !important; box-shadow: 0 0 0 1.5px rgb(251 191 36) !important; }
.dark .xr-suggested.xr-sg-high .fi-input-wrp, .dark .xr-suggested.xr-sg-high .xr-atx-amt { background: rgb(20 83 45 / .45) !important; }
.dark .xr-suggested.xr-sg-low .fi-input-wrp, .dark .xr-suggested.xr-sg-low .xr-atx-amt { background: rgb(120 53 15 / .45) !important; }
.dark .xr-suggested.xr-sg-medium .fi-input-wrp, .dark .xr-suggested.xr-sg-medium .xr-atx-amt { background: rgb(30 58 138 / .35) !important; }

/* Index processing: lines filled from the vendor's history and the document (TODO 72, 2026-10-25) */
.xr-ps-note { display: inline-block; font-size: .8rem; padding: .2rem .55rem; border-radius: .35rem; border-left: 3px solid rgb(217 119 6); background: rgb(254 243 199); color: rgb(120 53 15); }
.xr-ps-note.xr-ps-high { border-left-color: rgb(22 163 74); background: rgb(220 252 231); color: rgb(20 83 45); }
.dark .xr-ps-note { background: rgb(120 53 15 / .35); color: rgb(253 230 138); }
.dark .xr-ps-note.xr-ps-high { background: rgb(20 83 45 / .45); color: rgb(187 247 208); }
/* Index processing: the chosen account's name shows in the open list's chosen row too (2026-10-25) */
.xr-acc-only .fi-select-input-option[aria-selected="true"] .xr-acc-name { display: inline !important; font-weight: 600; }

/* confirm of a field read from the document (Mohsen 2026-10-25, option A): a click in the field confirms – the buttons are
   hidden, xeracc.js clicks them */
.xr-sg-ok, .xr-sg-ok-amt { display: none !important; }
/* the suffix box when the confirm is its only button (Vendor keeps its + ) */
.fi-input-wrp-suffix:has(.xr-sg-ok):not(:has(button:not(.xr-sg-ok))) { display: none !important; }

/* Index heading note while fields read from the document are not green (Mohsen 2026-10-25) */
.xr-green-note { display: inline-block; margin-top: .25rem; padding: .3rem .65rem; border-radius: .375rem; border: 1px solid #f59e0b;
    background: #fef3c7; color: #92400e; font-weight: 600; }
.dark .xr-green-note { background: rgba(245, 158, 11, .15); color: #fcd34d; border-color: rgba(245, 158, 11, .5); }

/* Budgets (2026-10-25): a box per month */
.xr-budget table { min-width: 0; }
.xr-budget td.num, .xr-budget th.num { width: 6.5rem; min-width: 5.5rem; padding: .15rem .25rem; }
.xr-budget-in { width: 100%; text-align: right; font-variant-numeric: tabular-nums; border: 1px solid rgb(226 232 240); border-radius: .3rem; padding: .15rem .35rem; background: transparent; font-size: .8rem; }
.xr-budget-in:focus { outline: none; border-color: rgb(14 116 144); box-shadow: 0 0 0 2px rgb(14 116 144 / .15); }
.xr-budget-year { font-weight: 600; }
.xr-budget-acc { white-space: nowrap; font-size: .8rem; }
.dark .xr-budget-in { border-color: rgb(255 255 255 / .15); color: inherit; }

/* Loan payment schedule (2026-10-26): a sheet like the financial statements – view options, loan terms, key figures,
   schedule with yearly totals and the end of the term marked */
.xr-ls-tools { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.xr-ls-seg { display: inline-flex; border: 1px solid rgb(203 213 225); border-radius: .5rem; overflow: hidden; background: #fff; }
.xr-ls-seg button { padding: .35rem .9rem; font-size: .82rem; color: rgb(51 65 85); }
.xr-ls-seg button + button { border-left: 1px solid rgb(203 213 225); }
.xr-ls-seg button.xr-ls-on { background: rgb(15 76 92); color: #fff; font-weight: 600; }
.dark .xr-ls-seg { background: transparent; border-color: rgb(255 255 255 / .15); }
.dark .xr-ls-seg button { color: rgb(226 232 240); }
.xr-ls .xr-fs-statement { max-width: 50rem; } /* like the statements: fits a portrait page */
.xr-ls-warn { margin: .25rem 0; color: rgb(180 83 9); font-size: .82rem; }
.xr-ls-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--fs-accent); border-bottom: 1px solid var(--fs-rule); padding-bottom: .3rem; margin: 1.4rem 0 .5rem; }
.xr-ls-h span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--fs-muted); font-size: .78rem; }
.xr-report table.xr-ls-terms { width: 100%; min-width: 0; font-size: .84rem; }
.xr-report .xr-ls-terms th, .xr-report .xr-ls-terms td { border: 0; background: none; padding: .14rem .5rem .14rem 0; white-space: normal; }
.xr-report .xr-ls-terms th { font-weight: 400; color: var(--fs-muted); width: 19%; white-space: nowrap; }
.xr-report .xr-ls-terms td { width: 31%; font-weight: 500; }
.xr-report .xr-ls-terms td.num { text-align: left; }
.xr-ls-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 1.1rem; }
.xr-ls-keys > div { border: 1px solid var(--fs-rule); border-radius: .4rem; padding: .55rem .7rem; display: flex; flex-direction: column; gap: .1rem; }
.xr-ls-keys span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fs-muted); }
.xr-ls-keys b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.xr-ls-keys small { font-size: .72rem; color: var(--fs-muted); }
.xr-report .xr-ls-table td.num, .xr-report .xr-ls-table th.num { width: 6.75rem; }
.xr-report .xr-ls-table .xr-ls-no { width: 3rem; text-align: right; color: var(--fs-muted); }
.xr-report .xr-ls-table .xr-ls-rate { width: 4.5rem; }
.xr-report .xr-ls-table tbody td { border-bottom: 1px solid rgb(241 245 249); padding-top: .1rem; padding-bottom: .1rem; }
.xr-ls-open td { color: var(--fs-muted); font-style: italic; }
.xr-report .xr-ls-year td { font-weight: 600; background: rgb(248 250 252); border-top: 1px solid var(--fs-rule); border-bottom: 1px solid var(--fs-rule) !important; }
.xr-report .xr-ls-term td { font-weight: 700; border-bottom: 2px solid var(--fs-ink) !important; }
.xr-ls-note td { font-size: .76rem; font-style: italic; color: var(--fs-muted); padding-bottom: .35rem !important; }
.xr-ls-small { margin-top: .6rem; font-size: .75rem; color: var(--fs-muted); }
@media (max-width: 700px) { .xr-ls-keys { grid-template-columns: repeat(2, 1fr); } }
@media print {
    .xr-ls-keys > div { border-color: #999; }
    .xr-report .xr-ls-year td { background: none !important; border-top: 1px solid #999; }
    .xr-report .xr-ls-table tbody td { border-bottom: 0; }
    .xr-ls-keys, .xr-ls-terms { break-inside: avoid; }
    .xr-ls-h { break-after: avoid; }
}
.xr-report table.xr-ls-table { width: 100%; min-width: 0; }
.xr-report .xr-ls-table th.num, .xr-report .xr-ls-table td.num { min-width: 0; }

/* Mortgage / loan form: 12 tabs (details + the loan's lists) fit one row beside the document (2026-10-27) */
.xr-loan-tabs .fi-tabs { gap: 0; flex-wrap: wrap; overflow-x: visible; }
.xr-loan-tabs .fi-tabs-item { padding: .3rem .42rem; }
.xr-loan-tabs .fi-tabs-item-label { font-size: .8rem; }

/* Mortgage & Loan report (2026-10-27): the loan on one sheet, same look as the Payment schedule */
.xr-lr-status { margin-top: .35rem; font-size: .75rem; color: var(--fs-muted); }
.xr-lr-status span { display: inline-block; padding: .05rem .5rem; border: 1px solid var(--fs-rule); border-radius: 999px; color: var(--fs-ink); font-weight: 600; margin-right: .25rem; }
.xr-lr-parties { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.xr-lr-parties > div { border-left: 3px solid var(--fs-accent); padding: .15rem 0 .15rem .7rem; display: flex; flex-direction: column; gap: .1rem; }
.xr-lr-parties span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fs-muted); }
.xr-lr-parties b { font-size: .95rem; }
.xr-lr-parties small { font-size: .78rem; color: var(--fs-muted); }
.xr-report table.xr-lr-list { width: 100%; min-width: 0; margin-top: .4rem; font-size: .8rem; }
.xr-report .xr-lr-list td.num, .xr-report .xr-lr-list th.num { width: 8rem; min-width: 0; }
.xr-report .xr-ls-terms td.xr-lr-wrap, .xr-lr-note { white-space: pre-line; }
.xr-lr-note { font-size: .84rem; }
@media print { .xr-lr-parties, .xr-lr-list { break-inside: avoid; } }

/* Vendor's transactions (2026-10-29): the "pay the balance" arrow – a clear round button between Balance and Pay */
.xr-pay-arrow { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px;
    background-color: var(--primary-600, #0f4c5c); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); cursor: pointer; }
.xr-pay-arrow:hover { background-color: var(--primary-500, #13627a); }
.xr-pay-arrow:disabled { opacity: .5; cursor: wait; }

/* Vendor's transactions (2026-10-29): payment rows and the "2×" / "3 inv." buttons that list payments / invoices */
.xr-vt-payment td { background: #f5f9ff; color: #1e3a8a; }
.xr-vt-count { display: inline-block; margin-right: .35rem; padding: 0 .4rem; border-radius: 9999px; font-size: .72rem; line-height: 1.15rem;
    background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; cursor: pointer; }
.xr-vt-count:hover { background: #bfdbfe; }
.xr-vt-doc { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: .4rem;
    color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; cursor: pointer; }
.xr-vt-doc:hover { background: #dbeafe; }
/* payment icon in green, the bill / invoice icon stays blue (Mohsen 2026-11-05) */
.xr-vt-doc.xr-vt-pay { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.xr-vt-doc.xr-vt-pay:hover { background: #d1fae5; }
.dark .xr-vt-doc { color: #93c5fd; background: rgb(30 58 138 / .35); border-color: rgb(59 130 246 / .5); }
.dark .xr-vt-doc.xr-vt-pay { color: #6ee7b7; background: rgb(6 78 59 / .4); border-color: rgb(16 185 129 / .5); }
.xr-vt-id { color: #6b7280; font-size: .75rem; }
/* Journal entries (2026-10-30): the note has its own column, so the ⋮ menu holds Split (saved lines) and Delete line */
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-split) { top: calc(100% + 2px); border-radius: .5rem .5rem 0 0; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-split) a { display: flex !important; width: 100%; height: 2rem; align-items: center; justify-content: flex-start; gap: .45rem; padding: 0 .6rem; border-radius: 0; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-split) a:hover { background: rgb(241 245 249); }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-split) :is(a, button)::after { content: 'Split into sub-accounts'; font-size: .8rem; color: rgb(30 41 59); }
.xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-split) { width: 12rem; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open:has(.xr-line-split) > div:last-child:not(:has(.xr-line-split)):not(:has(.xr-line-add)) { width: 12rem; }
.xr-line-menu .fi-fo-table-repeater-actions.is-open:not(:has(.xr-line-note)):not(:has(.xr-line-split)) > div:last-child:not(:has(.xr-line-add)) { top: calc(100% + 2px); border-top: 1px solid rgb(226 232 240); border-radius: .5rem; }
.dark .xr-line-menu .fi-fo-table-repeater-actions.is-open > div:has(.xr-line-split) :is(a, button)::after { color: rgb(228 228 231); }
/* the Note column: – / + centred, bold */
.xr-note-cell svg { width: 1.15rem; height: 1.15rem; }
.fi-fo-table-repeater td:has(.xr-note-cell) { text-align: center; }
/* Upload documents (2026-10-30, uploads of ~500 files): small drop box + progress line + compact list of the saved files;
   the upload's own list (one row per file) only when asked for */
.xr-upload-collapsed .xr-upload-list { max-height: 4.15rem; overflow: hidden; border-radius: .5rem; box-shadow: 0 0 0 1px rgb(226 232 240); background: #fff; }
.xr-upload-collapsed .xr-upload-list .filepond--list-scroller { opacity: 0; pointer-events: none; }
.dark .xr-upload-collapsed .xr-upload-list { box-shadow: 0 0 0 1px rgb(63 63 70); background: rgb(24 24 27); }
.xr-up-progress { display: flex; flex-direction: column; gap: .35rem; }
.xr-up-bar { height: .5rem; border-radius: 9999px; background: rgb(226 232 240); overflow: hidden; }
.xr-up-bar > span { display: block; height: 100%; background: rgb(22 163 74); transition: width .3s; }
.xr-up-line { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .875rem; color: rgb(51 65 85); }
.xr-up-toggle { margin-left: auto; font-size: .8125rem; color: rgb(15 76 92); text-decoration: underline; }
.xr-up-ok { color: rgb(21 128 61); font-weight: 600; }
.xr-up-failed { color: rgb(185 28 28); font-weight: 600; }
.xr-up-saved { border: 1px solid rgb(226 232 240); border-radius: .75rem; background: #fff; padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.xr-up-saved-head { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; font-size: .875rem; }
.xr-up-search { height: 2rem; border: 1px solid rgb(203 213 225); border-radius: .5rem; padding: 0 .6rem; font-size: .8125rem; min-width: 12rem; }
.xr-up-table { max-height: 22rem; overflow-y: auto; border-top: 1px solid rgb(241 245 249); }
.xr-up-table table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.xr-up-table th { position: sticky; top: 0; background: rgb(248 250 252); text-align: left; font-weight: 600; padding: .3rem .5rem; color: rgb(71 85 105); }
.xr-up-table td { padding: .2rem .5rem; border-bottom: 1px solid rgb(241 245 249); }
.xr-up-table .num { text-align: right; width: 4rem; color: rgb(100 116 139); }
.xr-up-name { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-up-id { color: rgb(148 163 184); font-size: .75rem; }
.xr-up-note { font-size: .75rem; color: rgb(100 116 139); }
.dark .xr-up-saved { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.dark .xr-up-table th { background: rgb(39 39 42); color: rgb(212 212 216); }
.dark .xr-up-line { color: rgb(212 212 216); }
.xr-up-table .xr-up-st { white-space: nowrap; width: 1%; }
/* actions kept for a click on the line / the Note cell, without their button on the right (2026-10-30) */
.xr-hidden-action { display: none !important; }
/* report drill-down (2026-10-31): an amount opens its transactions */
.xr-report a.xr-drill { color: inherit; text-decoration: none; border-bottom: 1px dotted rgb(148 163 184); }
.xr-report a.xr-drill:hover { color: var(--primary-600, #0f4c5c); border-bottom-color: currentColor; }
@media print { .xr-report a.xr-drill { border-bottom: 0; } }

/* document viewer over the page – documents open here, not in a new tab (Mohsen 2026-11-01, xeracc.js) */
.xr-pdf-overlay { position: fixed; inset: 0; z-index: 9999; background: rgb(0 0 0 / .55); display: none; align-items: center; justify-content: center; }
.xr-pdf-box { background: #fff; border-radius: .6rem; width: min(1100px, 94vw); height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgb(0 0 0 / .35); }
.xr-pdf-bar { display: flex; align-items: center; justify-content: space-between; padding: .45rem .9rem; background: #0f4c5c; color: #fff; font-size: .9rem; }
.xr-pdf-close { color: #fff; font-size: 1.4rem; line-height: 1; background: none; border: 0; cursor: pointer; }
.xr-pdf-box iframe { flex: 1; width: 100%; border: 0; }

/* "Back is turned off" note (xeracc.js, Mohsen 2026-11-01) */
.xr-noback-note { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 10000; background: #0f4c5c; color: #fff;
  padding: .5rem 1rem; border-radius: .5rem; font-size: .85rem; box-shadow: 0 6px 20px rgb(0 0 0 / .25); opacity: 0; transition: opacity .25s; pointer-events: none; }

/* a field filled or questioned by the AI (2026-11-11): a small "AI" badge at the top right of the field */
.xr-suggested.xr-sg-ai { position: relative; }
.xr-suggested.xr-sg-ai::after { content: 'AI'; position: absolute; top: -.55rem; right: .4rem; z-index: 5; font-size: .62rem; font-weight: 800;
    letter-spacing: .06em; line-height: 1; padding: .18rem .35rem; border-radius: .3rem; background: rgb(109 40 217); color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.25); pointer-events: none; }

/* read-only values shown in a greyed box (list price, charged – Company subscriptions 2026-11-12): dark, bold, readable */
.xr-ro-value::placeholder { color: #111827 !important; opacity: 1 !important; font-weight: 600; }
.dark .xr-ro-value::placeholder { color: #f3f4f6 !important; }
