/* NovaERP design system — refinements layered over Tailwind utilities.
   Loaded after the Tailwind runtime so element-level rules can enhance the
   existing utility-class markup without rewriting every view. */

:root {
  --brand: #4f46e5;        /* indigo-600 */
  --brand-ring: rgba(79, 70, 229, .18);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";   /* Inter: open digits, a straight-legged 1 */
}
body { letter-spacing: -0.006em; }

/* ---- Form controls: one consistent, refined style everywhere ---- */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-ring);
}
input::placeholder, textarea::placeholder { color: #94a3b8; }

input:not([type="checkbox"]):not([type="radio"]):disabled,
select:disabled,
textarea:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--brand);
  transition: box-shadow .15s ease;
}
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
  outline: 2px solid var(--brand-ring); outline-offset: 1px;
}

/* ---- Buttons & links: subtle motion ---- */
button, [type="submit"], a { transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .06s ease; }
button:active, [type="submit"]:active { transform: translateY(1px); }

/* ---- Native <details> dropdowns: no default triangle ---- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* ---- Tables read a touch cleaner ---- */
table { border-collapse: separate; border-spacing: 0; }
tbody tr { transition: background-color .12s ease; }

/* ---- Refined scrollbars ---- */
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1; border-radius: 8px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }

/* ---- Cards: a softer, more modern elevation ---- */
.card, .rounded-xl.border {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
}

/* Gentle entrance so pages don't feel like they snap in */
main > div { animation: nova-fade .18s ease both; }
@keyframes nova-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   App shell (Odoo style: coloured app bar · control panel · content)
   ===================================================================== */
body { background: #f4f6fa; }

/* The control panel sits directly under the 3rem app bar and stays put while
   the list below it scrolls, so the breadcrumb and the actions are always in
   reach. Anchors must clear both bars. */
:root { --nova-appbar: 3rem; }
.nova-main { min-height: calc(100vh - var(--nova-appbar)); }
[id] { scroll-margin-top: 7.5rem; }

/* Menu dropdowns: opening one closes the others (handled in JS), and the panel
   must be allowed to spill out of the bar. */
.nova-appbar { overflow: visible; }
.nova-menu > summary { list-style: none; }
.nova-menu > summary::-webkit-details-marker { display: none; }
.nova-menu > summary::marker { content: ''; }
.nova-appbar .nova-menu[open] > summary { background: #f1f5f9; color: #0f172a; }

/* A long menu (accounting reporting) scrolls rather than running off screen. */
.nova-menu > div { max-height: calc(100vh - 5rem); overflow-y: auto; }

/* Page headings and cards */
main h1 { letter-spacing: -0.02em; }
main .rounded-xl.border { border-color: #e6e8ef; }

/* Tables: quieter headers, tabular figures */
main thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
main td.text-right, main th.text-right, .tabular-nums { font-variant-numeric: tabular-nums; }
main tbody tr:hover { background-color: #f8fafc; }

/* Toasts */
.nova-toast { animation: nova-toast-in .22s cubic-bezier(.2,.9,.3,1.2) both; }
.nova-toast-out { animation: nova-toast-out .22s ease both; }
@keyframes nova-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nova-toast-out { to { opacity: 0; transform: translateX(12px); } }

/* Button spinner while a form is submitting */
.nova-spin {
  display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px;
  animation: nova-rot .6s linear infinite;
}
@keyframes nova-rot { to { transform: rotate(360deg); } }

/* Dropdown panels fade in */
details[open] > summary + div { animation: nova-fade .12s ease both; }

/* Print: just the document */
@media print {
  .nova-appbar, #appmenu, #toasts, #palette, .print\:hidden, form[method="GET"], form[method="get"] { display: none !important; }
  .nova-controlpanel { position: static !important; border: 0 !important; padding: 0 !important; }
  .nova-controlpanel nav, .nova-controlpanel .shrink-0 { display: none !important; }
  body, main { background: #fff !important; }
  main > div { max-width: none !important; padding: 0 !important; animation: none !important; }
  .rounded-xl.border { box-shadow: none !important; }
}

/* =====================================================================
   Data entry, Odoo style: compact and calm.
   One 32px control height, 13px type, small labels, tight cards and gaps —
   applied to every form in the app without touching each screen.
   ===================================================================== */
.nova-main { --nova-ctl: 2rem; }
.nova-main form { font-size: 13px; }
.nova-main form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select, textarea) {
  font-size: 13px; line-height: 1.25rem; padding: .3125rem .5rem; border-radius: .3125rem; border-color: #d4d8e1;
  background-color: #fff;
}
.nova-main form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), select) { min-height: var(--nova-ctl); }
.nova-main form :is(input, select, textarea):hover:not(:focus):not(:disabled) { border-color: #a9b1c1; }
.nova-main form :is(input, textarea)[readonly] { background-color: #f8fafc; }
/* Big headline inputs (amount to pay, totals) keep their weight, just not their bulk. */
.nova-main form input.text-lg { font-size: 15px; }

/* Labels: small, quiet, close to their field. */
.nova-main form label.block, .nova-main form .block.text-sm.font-medium, .nova-main form .block.text-xs {
  font-size: 12px; font-weight: 500; color: #4b5563; margin-bottom: .1875rem; line-height: 1.1rem;
}
.nova-main form label.block .text-red-500 { color: #dc2626; }
/* Help text under a field. */
.nova-main form p.text-xs, .nova-main form .text-xs.mt-1 { font-size: 11.5px; margin-top: .1875rem; line-height: 1.35; }

/* Cards (form sections): less padding, tighter radius. */
.nova-main form .rounded-xl.border, .nova-main form.rounded-xl.border { border-radius: .5rem; }
.nova-main form :is(.p-6, .p-5) { padding: 1rem 1.125rem; }
.nova-main form .p-4 { padding: .75rem .875rem; }
@media (min-width: 640px) { .nova-main form :is(.sm\:p-6, .sm\:p-8) { padding: 1rem 1.125rem; } }
.nova-main form > .rounded-xl.border > h2, .nova-main form .rounded-xl.border > h2:first-child, .nova-main form h2.font-semibold {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #334155; margin-bottom: .625rem;
}

/* Space between sections and between fields. */
.nova-main form.space-y-6 > :not([hidden]) ~ :not([hidden]),
.nova-main form.space-y-5 > :not([hidden]) ~ :not([hidden]),
.nova-main form .space-y-6 > :not([hidden]) ~ :not([hidden]),
.nova-main form .space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.nova-main form .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: .625rem; }
.nova-main form :is(.gap-6, .gap-5) { gap: .875rem; }
.nova-main form .gap-4 { gap: .75rem; }
.nova-main form .mt-6 { margin-top: .875rem; }
.nova-main form .mt-4 { margin-top: .625rem; }
.nova-main form .mb-4 { margin-bottom: .625rem; }

/* Line tables: rows as tight as a spreadsheet. */
.nova-main form table td { padding-top: .1875rem !important; padding-bottom: .1875rem !important; }
.nova-main form table th { padding-top: .375rem !important; padding-bottom: .375rem !important; }
.nova-main form thead th { font-size: 11px; color: #64748b; }
.nova-main form table tfoot td, .nova-main form .text-base { font-size: 13.5px; }

/* Buttons: one modest size. */
.nova-main form :is(button, a)[class*="px-5"], .nova-main form :is(button, a)[class*="px-4"][class*="py-2"] {
  padding: .375rem .875rem; font-size: 13px; border-radius: .3125rem;
}
.nova-main form :is(button, a)[class*="px-3"][class*="py-1.5"] { padding: .25rem .625rem; font-size: 12.5px; border-radius: .3125rem; }

/* Searchable dropdowns (Select2) match the 32px controls. */
.nova-main form .nova-s2 .select2-selection--single { min-height: var(--nova-ctl); padding: .25rem 2rem .25rem .5rem; border-radius: .3125rem; border-color: #d4d8e1; font-size: 13px; }
.nova-main form .nova-s2 .select2-selection--multiple { min-height: var(--nova-ctl); border-radius: .3125rem; border-color: #d4d8e1; font-size: 13px; }
.nova-main form .nova-s2.select2-container { font-size: 13px; }

/* The form as a sheet: centred and readable on a wide screen rather than
   stretched edge to edge. Forms that set their own width keep it. */
@media (min-width: 1280px) {
  .nova-main > div > form[method="post" i]:not([class*="max-w"]) { max-width: 1320px; margin-left: auto; margin-right: auto; }
}
.nova-main > div > form[method="post" i][class*="max-w"] { margin-left: auto; margin-right: auto; }

/* =====================================================================
   Reports: filter bar · results card · sticky header · pager
   ===================================================================== */
.nova-rbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .625rem 1rem;
  background: #fff; border: 1px solid #e6e8ef; border-radius: .5rem; padding: .625rem .75rem; margin-bottom: .875rem;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.nova-rbar-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .625rem; margin: 0; flex: 1 1 auto; }
.nova-rfield { display: flex; flex-direction: column; min-width: 0; }
.nova-rfield > label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .1875rem; }
.nova-rfield :is(input:not([type=checkbox]):not([type=radio]), select) { min-height: 2rem; font-size: 13px; padding: .25rem .5rem; border: 1px solid #d4d8e1; border-radius: .3125rem; background: #fff; min-width: 9rem; }
.nova-rfield-date input { min-width: 8.5rem; }
.nova-rfield-wide :is(input, select) { min-width: 14rem; }
.nova-rfield .nova-s2.select2-container { min-width: 10rem; font-size: 13px; }
.nova-rfield .nova-s2 .select2-selection--single { min-height: 2rem; padding: .2rem 2rem .2rem .5rem; border-radius: .3125rem; border-color: #d4d8e1; font-size: 13px; }
.nova-rfield label.nova-rcheck { display: inline-flex; align-items: center; gap: .375rem; min-height: 2rem; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: #334155; margin: 0; }
.nova-rfield-run { flex-direction: row; align-items: center; gap: .5rem; }
.nova-rbtn-run { min-height: 2rem; padding: .25rem .875rem; font-size: 13px; font-weight: 600; color: #fff; background: #1e293b; border-radius: .3125rem; }
.nova-rbtn-run:hover { background: #0f172a; }
.nova-rbtn-reset { font-size: 12.5px; color: #64748b; }
.nova-rbtn-reset:hover { color: #0f172a; text-decoration: underline; }
.nova-rbar-actions { display: flex; align-items: center; gap: .375rem; margin-left: auto; }
.nova-rbtn { display: inline-flex; align-items: center; gap: .3125rem; min-height: 2rem; padding: .25rem .625rem; font-size: 12.5px; font-weight: 500;
  color: #334155; background: #fff; border: 1px solid #d4d8e1; border-radius: .3125rem; }
.nova-rbtn:hover { background: #f8fafc; border-color: #a9b1c1; }
.nova-rbtn svg { width: 15px; height: 15px; }

/* clip, not hidden: hidden would make the card a scroll box and stop the header sticking to the page. */
.nova-rcard { background: #fff; border: 1px solid #e6e8ef; border-radius: .625rem; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.03); overflow: clip; }
.nova-rcard + .nova-rcard { margin-top: .875rem; }
.nova-rcard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  padding: .625rem 1rem; border-bottom: 1px solid #eef0f4; font-size: 12.5px; color: #64748b; background: linear-gradient(#fff, #fbfcfd); }
.nova-rcard-summary { color: #334155; font-weight: 500; }
.nova-rcard-count { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: #475569;
  background: #f1f5f9; border-radius: 999px; padding: .125rem .5rem; }
/* One scroll only — the page's. The header sticks under the top bar (--nova-stick, set by the layout)
   and the totals to the bottom of the window. Text wraps so the table fits the width; a table that
   still cannot fit gets .is-wide (set by the layout) and scrolls sideways on its own. */
.nova-rscroll, .nova-rscroll-x { overflow: visible; }
.nova-rscroll.is-wide, .nova-rscroll-x.is-wide { overflow-x: auto; }
.nova-rt { width: 100%; font-size: 13px; border-collapse: separate; border-spacing: 0; }
.nova-rt thead th { position: sticky; top: var(--nova-stick, 0px); z-index: 2; background: #f6f7f9; color: #5b6475; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; text-align: left; vertical-align: bottom;
  padding: .5625rem .75rem !important; border-bottom: 1px solid #e3e6ec; box-shadow: 0 1px 0 #e3e6ec; }
.nova-rt thead th:first-child, .nova-rt tbody td:first-child, .nova-rt tfoot td:first-child { padding-left: 1rem !important; }
.nova-rt thead th:last-child, .nova-rt tbody td:last-child, .nova-rt tfoot td:last-child { padding-right: 1rem !important; }
.nova-rt tbody td { padding: .5rem .75rem !important; border-bottom: 1px solid #f0f2f5; vertical-align: middle; color: #1f2937; }
.nova-rt tbody tr:nth-child(even) td { background: #fcfcfd; }
.nova-rt tbody tr:last-child td { border-bottom: 0; }
.nova-rt tbody tr:hover td { background: #f5f8ff; }
/* A row that opens something: a blue edge on hover. */
.nova-rt tbody tr.cursor-pointer:hover td:first-child { box-shadow: inset 3px 0 0 #6366f1; }
.nova-rt .is-wrap { white-space: normal; }
.nova-rt .sub { display: block; font-size: 11.5px; color: #8a93a3; margin-top: .0625rem; line-height: 1.3; }
.nova-rt .num, .nova-rt th.text-right, .nova-rt td.text-right { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nova-rt .muted { color: #8a93a3; }
.nova-rt a:not(.nova-rbtn) { color: #1d4ed8; }
.nova-rt a:not(.nova-rbtn):hover { text-decoration: underline; }
.nova-rt tr.is-group td { background: #f1f3f7 !important; font-weight: 700; color: #1e293b; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.nova-rt tr.is-sub td { font-weight: 600; background: #fafbfc; border-top: 1px solid #e3e6ec; }
.nova-rt tfoot td { position: sticky; bottom: 0; z-index: 1; padding: .625rem .75rem !important; font-weight: 700; background: #f6f7f9; border-top: 2px solid #cfd5df; color: #0f172a;
  box-shadow: 0 -6px 10px -8px rgba(15,23,42,.18); }
.nova-rt td.is-neg, .nova-rt .is-neg { color: #b91c1c; }
.nova-rt td.empty { padding: 2.5rem 1rem !important; text-align: center; color: #94a3b8; }

.nova-rpager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .5rem .875rem; border-top: 1px solid #eef0f4; font-size: 12.5px; color: #64748b; background: #fff; }
.nova-rpager strong { color: #1e293b; font-weight: 600; font-variant-numeric: tabular-nums; }
.nova-rpager-nav { display: flex; align-items: center; gap: .25rem; }
.nova-rpager-nav label { display: inline-flex; align-items: center; gap: .375rem; margin-right: .5rem; }
.nova-rpager-nav select { min-height: 1.75rem; padding: 0 .375rem; font-size: 12.5px; border: 1px solid #d4d8e1; border-radius: .3125rem; }
.nova-rpager-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; height: 1.75rem; border: 1px solid #d4d8e1; border-radius: .3125rem; color: #334155; }
.nova-rpager-nav a:hover { background: #f1f5f9; }
.nova-rpager-nav a.is-off { opacity: .4; pointer-events: none; }
.nova-rpager-nav span { padding: 0 .5rem; }
.nova-rnote { font-size: 11.5px; color: #8a93a3; margin-top: .5rem; }

/* Inside a report row: a share of the whole as a bar, a quiet "open" link, the book a line posted in. */
.nova-share { display: flex; align-items: center; gap: .5rem; }
.nova-share > span { flex: 1; height: .4375rem; border-radius: 999px; background: #eef1f5; overflow: hidden; min-width: 3rem; }
.nova-share > span > i { display: block; height: 100%; border-radius: 999px; }
.nova-share > b { width: 3.25rem; text-align: right; font-size: 11.5px; font-weight: 600; color: #475569; font-variant-numeric: tabular-nums; }
.nova-rt a.nova-go { font-size: 11.5px; font-weight: 500; color: #64748b; white-space: nowrap; }
.nova-rt tr:hover a.nova-go { color: #4f46e5; }
.nova-jtype { display: inline-block; font-size: 10.5px; font-weight: 600; text-transform: capitalize; padding: .0625rem .5rem; border-radius: 999px;
  background: #f1f5f9; color: #475569; white-space: nowrap; }
.nova-jtype.is-sales { background: #ecfdf5; color: #047857; }
.nova-jtype.is-purchase { background: #fff7ed; color: #c2410c; }
.nova-jtype.is-inventory { background: #eef2ff; color: #4338ca; }
.nova-jtype.is-cash { background: #f0fdfa; color: #0f766e; }
.nova-jtype.is-bank { background: #f0f9ff; color: #0369a1; }
.nova-jtype.is-opening, .nova-jtype.is-closing { background: #faf5ff; color: #7e22ce; }
.nova-rt tr.is-opening td { background: #f8fafc; color: #475569; }
/* A branch as a card on a report: a click narrows the report to it. */
.nova-bcard { display: block; background: #fff; border: 1px solid #e6e8ef; border-radius: .75rem; padding: .875rem 1rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: border-color .15s, box-shadow .15s; }
.nova-bcard:hover { border-color: #a5b4fc; box-shadow: 0 2px 8px rgba(79,70,229,.08); }
.nova-bcard.is-on { border-color: #6366f1; box-shadow: 0 0 0 2px #c7d2fe; }

/* Account mappings, guided: plain questions, a state mark, a list of accounts that fit, "Create it for me". */
.nova-guide-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  background: #fff; border: 1px solid #e6e8ef; border-radius: .75rem; padding: .875rem 1.125rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.nova-guide-pill { display: inline-flex; align-items: center; gap: .25rem; font-size: 12px; font-weight: 600; padding: .1875rem .625rem; border-radius: 999px; }
.nova-guide-pill.is-ok { background: #ecfdf5; color: #047857; }
.nova-guide-pill.is-wrong { background: #fef2f2; color: #b91c1c; }
.nova-guide-pill.is-unset { background: #fffbeb; color: #b45309; }
.nova-guide-card { background: #fff; border: 1px solid #e6e8ef; border-radius: .75rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); overflow: clip; }
.nova-guide-card > summary { display: flex; align-items: center; gap: .5rem; padding: .875rem 1.125rem; cursor: pointer; list-style: none; background: linear-gradient(#fff, #fafbfc); }
.nova-guide-card > summary::-webkit-details-marker { display: none; }
.nova-guide-card > summary::before { content: '▸'; color: #94a3b8; font-size: 12px; transition: transform .15s; }
.nova-guide-card[open] > summary::before { transform: rotate(90deg); }
.nova-guide-card[open] > summary { border-bottom: 1px solid #eef0f4; }
.nova-guide-row { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) minmax(16rem, 24rem); gap: .75rem; align-items: start; padding: .75rem 1.125rem; }
.nova-guide-row.is-wrong { background: #fffafa; }
.nova-guide-row.is-optional { opacity: .75; }
.nova-guide-mark { width: 1.5rem; height: 1.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: .0625rem; }
.is-ok > .nova-guide-mark { background: #ecfdf5; color: #047857; }
.is-wrong > .nova-guide-mark { background: #fee2e2; color: #b91c1c; }
.is-unset > .nova-guide-mark { background: #f1f5f9; color: #94a3b8; }
.nova-guide-select { width: 100%; font-size: 13px; padding: .375rem .5rem; border: 1px solid #d4d8e1; border-radius: .375rem; background: #fff; }
.nova-guide-fix { width: 100%; text-align: left; font-size: 12.5px; font-weight: 600; color: #4338ca; background: #eef2ff; border: 1px dashed #a5b4fc; border-radius: .375rem; padding: .375rem .625rem; }
.nova-guide-fix:hover { background: #e0e7ff; }
@media (max-width: 760px) {
  .nova-guide-row { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .nova-guide-pick { grid-column: 2; }
}
.nova-margin { display: inline-block; min-width: 3.5rem; text-align: right; font-size: 11.5px; font-weight: 600; padding: .0625rem .5rem; border-radius: 999px; background: #ecfdf5; color: #047857; }
.nova-margin.is-thin { background: #fffbeb; color: #b45309; }
.nova-margin.is-loss { background: #fef2f2; color: #b91c1c; }

/* An account's page: the account in one strip, the view switch, the cost-of-sales mix bar. */
.nova-acct { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid #e6e8ef; border-radius: .75rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.nova-acct-cell { padding: .75rem 1.125rem; min-width: 11rem; border-right: 1px solid #eef0f4; }
.nova-acct-cell:last-child { border-right: 0; }
.nova-acct-grow { flex: 1 1 16rem; }
.nova-acct-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #8a93a3; margin-bottom: .25rem; }
.nova-acct-balance { background: linear-gradient(135deg, #f8fafc, #eef2ff); border-radius: .75rem 0 0 .75rem; }
.nova-acct-big { font-size: 1.625rem; line-height: 1.15; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nova-acct-big.is-neg { color: #b91c1c; }
@media (max-width: 640px) {
  .nova-acct-cell { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid #eef0f4; }
  .nova-acct-cell:last-child { border-bottom: 0; }
  .nova-acct-balance { border-radius: .75rem .75rem 0 0; }
}
.nova-seg { display: inline-flex; gap: .125rem; padding: .1875rem; background: #eef1f5; border-radius: .5rem; }
.nova-seg > a { padding: .3125rem .875rem; font-size: 13px; font-weight: 500; color: #64748b; border-radius: .375rem; }
.nova-seg > a:hover { color: #0f172a; }
.nova-seg > a.is-on { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 1px rgba(16,24,40,.04); }
.nova-mix { background: #fff; border: 1px solid #e6e8ef; border-radius: .625rem; padding: .875rem 1rem .75rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.nova-mix-bar { display: flex; height: .75rem; border-radius: 999px; overflow: hidden; background: #eef1f5; gap: 2px; }
.nova-mix-bar > a { display: block; min-width: 3px; transition: opacity .15s, filter .15s; }
.nova-mix-bar > a:hover { filter: brightness(1.1); }
.nova-mix-bar > a.is-dim { opacity: .25; }
.nova-mix-legend { display: flex; flex-wrap: wrap; gap: .25rem .375rem; margin-top: .625rem; }
.nova-mix-legend > a { display: inline-flex; align-items: center; gap: .375rem; font-size: 12px; color: #475569; padding: .1875rem .5rem; border-radius: 999px; }
.nova-mix-legend > a:hover { background: #f1f5f9; color: #0f172a; }
.nova-mix-legend > a.is-on { background: #eef2ff; color: #312e81; box-shadow: inset 0 0 0 1px #c7d2fe; }
.nova-mix-legend i { width: .625rem; height: .625rem; border-radius: 999px; display: inline-block; }
.nova-mix-legend b { font-weight: 600; color: #0f172a; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .nova-rbar-actions { margin-left: 0; width: 100%; }
  .nova-rfield :is(input, select) { min-width: 0; width: 100%; }
  .nova-rbar-form > .nova-rfield { flex: 1 1 8.5rem; }
  /* A phone: the table slides sideways inside its card; the header no longer sticks. */
  .nova-rscroll, .nova-rscroll-x { overflow-x: auto; }
  .nova-rt thead th { position: static; }
}
@media print {
  .nova-rscroll, .nova-rscroll-x { max-height: none !important; overflow: visible !important; }
  .nova-rt thead th, .nova-rt tfoot td { position: static; }
  .nova-rcard { border: 0; box-shadow: none; }
}

/* Older filter markup inside a report filter bar (date-range partial, plain
   labelled divs) takes the same compact look. */
.nova-rbar-form > div:not(.nova-rfield) { display: flex; flex-direction: column; }
.nova-rbar-form > div:not(.nova-rfield) > label.block { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .1875rem; }
.nova-rbar-form > div:not(.nova-rfield) :is(input:not([type=checkbox]):not([type=radio]), select) { min-height: 2rem; font-size: 13px; padding: .25rem .5rem; border-radius: .3125rem; border-color: #d4d8e1; }
.nova-rbar-form > label { align-self: flex-end; min-height: 2rem; display: inline-flex; align-items: center; gap: .375rem; padding-bottom: 0 !important; font-size: 13px; }

/* Statement section rows: a light band rather than a heavy dark bar. */
tr.nova-rgroup { background: #eef2f8; color: #13294b; }
tr.nova-rgroup:hover { background: #e6ecf5 !important; }
/* The statement's top band: ASSETS, LIABILITIES AND EQUITY … (navy, like the column heading). */
tr.nova-rband { background: #13294b; color: #fff; }
tr.nova-rband:hover { background: #13294b !important; }
@media print { tr.nova-rband { background: #13294b !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
[data-report] table td { padding-top: .4375rem; padding-bottom: .4375rem; }

/* Data entry (public/vendor/forms.js): Ctrl+S on a form with several ways to
   save points at them; a dropdown with a problem is outlined like a box. */
@keyframes nova-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); } 50% { box-shadow: 0 0 0 4px rgba(14, 165, 233, .45); } }
.nova-pulse { animation: nova-pulse .8s ease-in-out 2; }
.select2-container .select2-selection.nova-invalid { border-color: #f87171 !important; box-shadow: 0 0 0 1px #fca5a5; }

/* Phones: nothing pushes the page sideways.
   - A box that scrolls sideways keeps its hidden screen-reader labels inside it
     (an absolutely placed .sr-only otherwise escapes and widens the page).
   - A grid column may shrink below its content's width; its tables and long
     words then scroll or wrap inside it instead. */
.nova-main .overflow-x-auto { position: relative; }
.nova-main .grid > * { min-width: 0; }

/* =====================================================================
   Clean & light theme (owner, 2026-11-26: "make it modern — don't touch the core").
   Styles only: a white app bar with the app's colour on a small chip, soft
   cards, quieter tables, calmer form fields. Every screen gets it from here.
   ===================================================================== */
:root {
  --nova-line: #e6e9f0;          /* card and table borders */
  --nova-line-soft: #eef0f5;     /* row separators */
  --nova-field: #d6dbe4;         /* input borders */
  --nova-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px -2px rgba(16, 24, 40, .06);
  --nova-shadow-hover: 0 2px 4px rgba(16, 24, 40, .05), 0 10px 24px -8px rgba(16, 24, 40, .14);
}

/* App chip: the app's icon on its own colour, the one coloured thing in the bar. */
.nova-appchip {
  display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
  border-radius: .5rem; color: #fff; font-size: 15px; line-height: 1; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 2px rgba(16,24,40,.12);
}
.nova-appbar { box-shadow: 0 1px 0 rgba(16, 24, 40, .02); }
.nova-appbar .nova-menu > div { border-radius: .875rem; box-shadow: 0 12px 32px -8px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .06); }

/* Cards and tiles: white, a hairline border, a soft shadow, rounder corners. */
.nova-main .bg-white.rounded-xl, .nova-main section.bg-white.rounded-xl, .nova-main .nova-guide-card, .nova-main .nova-rcard {
  border-radius: .875rem; border-color: var(--nova-line); box-shadow: var(--nova-shadow);
}
.nova-main a.bg-white.rounded-xl:hover { box-shadow: var(--nova-shadow-hover); }
.nova-main section.bg-white.rounded-xl > header { border-bottom-color: var(--nova-line-soft); }
.nova-main section.bg-white.rounded-xl > header h2 { font-size: 15px; letter-spacing: -.01em; }

/* Tables: a light header band, hairline rows, room to breathe. */
.nova-main table thead { background: #f8fafc; }
.nova-main table thead th { color: #64748b; font-size: 11px; font-weight: 600; letter-spacing: .05em; border-bottom: 1px solid var(--nova-line); }
.nova-main table tbody tr + tr td, .nova-main .divide-y > * + * { border-color: var(--nova-line-soft) !important; }
.nova-main table tbody tr:hover { background-color: #f8fafc; }
.nova-main table tfoot { background: #f8fafc; }
.nova-main table tfoot td { border-top: 1px solid var(--nova-line); }

/* Form fields: calm borders, rounder corners, a clear focus ring. */
.nova-main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.nova-main select, .nova-main textarea { border-color: var(--nova-field); }
.nova-main input.rounded-md:not([type="checkbox"]):not([type="radio"]), .nova-main select.rounded-md, .nova-main textarea.rounded-md { border-radius: .5rem; }
.nova-main label.text-sm.font-medium, .nova-main label.block.text-sm { color: #334155; }

/* Buttons: pill-soft corners; the primary one lifts a little on hover. */
.nova-main a.rounded-lg.shadow-sm:hover, .nova-main button.rounded-lg.shadow-sm:hover,
.nova-controlpanel a.rounded-lg.shadow-sm:hover, .nova-controlpanel button.rounded-lg.shadow-sm:hover { box-shadow: 0 4px 12px -4px rgba(16, 24, 40, .25); }
.nova-controlpanel a.rounded-lg, .nova-controlpanel button.rounded-lg { border-radius: .625rem; }

/* Status pills and badges read a touch lighter. */
.nova-main .rounded-full.text-xs.font-medium { letter-spacing: .01em; }

/* Headings inside pages. */
.nova-main h2 { letter-spacing: -.01em; }
