:root {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #202b29;
    background: #f5f7f5;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --ink: #202b29;
    --muted: #78827f;
    --line: #e7ebe8;
    --green: #1c7059;
    --green-dark: #174e42;
    --mint: #e7f2ed;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7f5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; --sidebar-expanded-width: 248px; --settings-menu-width: 200px; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; width: 72px; flex-direction: column;
    overflow-x: hidden; overflow-y: auto; border-right: 1px solid #e8ece9; background: #fff; padding: 28px 10px 18px;
    transition: width .2s ease, box-shadow .2s ease;
}
.sidebar.is-expanded { width: var(--sidebar-expanded-width); box-shadow: 12px 0 28px rgba(30, 50, 39, .08); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font: 800 20px ui-sans-serif, system-ui, sans-serif; letter-spacing: -.8px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--green); color: white; font: 800 18px ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }
.brand-sub { display: block; margin-top: 1px; color: #91a09a; font: 700 8px ui-sans-serif, system-ui, sans-serif; letter-spacing: 1.7px; }
.sidebar:not(.is-expanded) .brand { justify-content: center; }
.sidebar:not(.is-expanded) .brand > span:not(.brand-mark),
.sidebar:not(.is-expanded) .sidebar-foot,
.sidebar:not(.is-expanded) .nav-label { display: none; }
.sidebar-toggle { display: flex; min-height: 32px; align-items: center; justify-content: flex-end; margin-top: 12px; border: 0; border-radius: 7px; background: transparent; padding: 0 8px; color: #74817b; font-size: 22px; line-height: 1; }
.sidebar-toggle:hover { background: #f3f6f4; color: var(--green); }
.sidebar-toggle:focus-visible { outline: 2px solid #83b49b; outline-offset: 2px; }
.sidebar:not(.is-expanded) .sidebar-toggle { justify-content: center; }
.main-nav { display: grid; gap: 2px; }
.main-nav a, .main-nav .settings-nav-button { display: flex; align-items: center; gap: 12px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; padding: 0 12px; color: #6d7874; font-size: 13px; font-weight: 600; text-align: left; transition: .15s ease; }
.main-nav a:hover, .main-nav .settings-nav-button:hover { background: #f6f8f6; color: var(--ink); }
.main-nav a.active, .main-nav .settings-nav-button.active, .main-nav .settings-nav-button[aria-expanded="true"] { background: #eaf3ef; color: #216d57; }
.main-nav a:focus-visible, .main-nav .settings-nav-button:focus-visible { outline: 2px solid #83b49b; outline-offset: 2px; }
.nav-icon { display: inline-grid; width: 28px; flex: 0 0 28px; place-items: center; font-size: 18px; }
.sidebar.is-expanded .main-nav .nav-icon { display: none; }
.nav-icon-glyph { display: inline; }
.nav-icon svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-shortcut { display: none; font-size: 9px; font-weight: 800; letter-spacing: -.3px; }
.mobile-nav-shortcut { display: none; font-size: 9px; font-weight: 800; letter-spacing: -.3px; }
.sidebar:not(.is-expanded) .nav-icon-glyph:not(:only-child) { display: none; }
.sidebar:not(.is-expanded) .nav-shortcut { display: inline; }
.sidebar:not(.is-expanded) .main-nav a,
.sidebar:not(.is-expanded) .settings-nav-button { justify-content: center; gap: 0; padding: 0; }
.settings-side-menu { position: fixed; inset: 0 auto 0 72px; z-index: 2; display: flex; width: var(--settings-menu-width); flex-direction: column; gap: 4px; overflow-y: auto; border-right: 1px solid var(--line); background: #fff; padding: 32px 12px; }
.settings-side-menu[hidden] { display: none; }
.settings-side-menu h2 { margin: 0 10px 18px; color: #33403b; font-size: 16px; }
.settings-side-menu a { border-radius: 9px; padding: 11px 10px; color: #6d7874; font-size: 13px; font-weight: 600; }
.settings-side-menu a:hover { background: #f6f8f6; color: var(--ink); }
.settings-side-menu a.active { background: #eaf3ef; color: #216d57; }
.settings-side-menu a:focus-visible { outline: 2px solid #83b49b; outline-offset: 2px; }
.sidebar-foot { margin-top: auto; }
.company-chip { display: flex; align-items: center; gap: 10px; margin: 0 2px 14px; padding: 13px 10px; border: 1px solid var(--line); border-radius: 11px; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #e8efe7; color: #32644f; font-size: 13px; font-weight: 700; }
.company-name { overflow: hidden; color: #33403b; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.company-name small { display: block; margin-top: 3px; color: #929b97; font-size: 10px; font-weight: 400; }
.logout-button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: #77817d; font-size: 12px; white-space: nowrap; }
.logout-button:hover { color: #b24b44; }
.logout-button:focus-visible { outline: 2px solid #83b49b; outline-offset: 2px; }
.main-content { min-height: 100vh; margin-left: 72px; transition: margin-left .2s ease; }
.app-shell.sidebar-expanded .main-content { margin-left: var(--sidebar-expanded-width); }
.app-shell.settings-open .main-content { margin-left: calc(72px + var(--settings-menu-width)); }
.topbar { display: flex; height: 69px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8ece9; background: #fff; padding: 0 42px; }
.breadcrumb { min-width: 0; overflow: hidden; color: #87918d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb span { margin: 0 9px; color: #c3cbc6; }
.topbar-actions { display: flex; min-width: 0; align-items: center; gap: 12px; margin-left: 12px; }
.topbar-actions form { flex: 0 0 auto; }
.user-chip { display: flex; min-width: 0; align-items: center; gap: 8px; color: #65716c; font-size: 12px; font-weight: 600; }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dot { flex: 0 0 8px; }
.user-dot, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4aa77e; }
.mobile-brand { display: none; }
.page-content { max-width: 1440px; margin: 0 auto; padding: 38px 42px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.account-transfer-launcher { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.account-transfer-actions { display: flex; align-items: center; gap: 10px; }
.account-transfer-feedback { margin: 0; }
.section-spacer { height: 28px; }
.eyebrow { margin: 0 0 9px; color: #87938d; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: -.55px; }
.page-heading h1 { margin: 0 0 7px; color: #202b29; font: 700 clamp(24px, 2.5vw, 31px) ui-sans-serif, system-ui, sans-serif; }
.muted { margin: 0; color: #828d88; font-size: 13px; line-height: 1.65; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; padding: 0 15px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: .16s ease; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-primary:disabled { cursor: not-allowed; opacity: .5; }
.button-dark { background: #203d35; color: white; }
.button-dark:hover { background: #152e27; }
.button-secondary { border-color: #dce3df; background: white; color: #59645f; }
.button-secondary:hover { background: #f5f7f5; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { min-height: 147px; padding: 20px 21px 17px; border: 1px solid #e8ece9; border-radius: 12px; background: #fff; }
.stat-grid > .stat-card { display: flex; flex-direction: column; }
.stat-grid > .stat-card > .stat-link { margin-top: auto; }
.stat-top { display: flex; align-items: center; gap: 9px; }
.stat-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; font-size: 15px; }
.stat-icon.green { background: #e8f3ed; color: #28775e; }
.stat-icon.peach { background: #fbefe8; color: #c2774e; }
.stat-icon.blue { background: #edf1fa; color: #6179ad; }
.stat-label { color: #7d8883; font-size: 11px; font-weight: 600; }
.stat-value { margin: 14px 0 8px; color: #202b29; font: 700 30px ui-sans-serif, system-ui, sans-serif; line-height: 36px; letter-spacing: -1px; }
.stat-balance-value { font-size: clamp(15px, 1.25vw, 19px); letter-spacing: -.4px; white-space: nowrap; }
.stat-foot { display: flex; align-items: center; gap: 7px; color: #89938e; font-size: 10px; }
.stat-foot .status-dot { width: 6px; height: 6px; }
.project-summary-card { min-height: 165px; }
.project-summary-content { display: grid; flex: 1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 14px; }
.project-summary-content .stat-value { align-self: start; margin: 0; }
.project-status-summary { display: grid; align-content: space-between; align-self: stretch; gap: 4px; }
.project-status-summary-item { display: flex; align-items: center; gap: 7px; color: #89938e; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.project-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; }
.project-status-dot.project-status-dot-active { background: #4a9b70; }
.project-status-dot.project-status-dot-finished { background: #5385c7; }
.project-status-dot.project-status-dot-pending { background: #c49340; }
.project-status-dot.project-status-dot-cancelled { background: #c16b62; }
.project-dashboard-actions { display: flex; align-items: center; gap: 9px; }
.project-print-date { display: none; }
.project-print-button { width: 40px; padding: 0; }
.project-print-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.project-summary-link { align-self: end; margin-top: 3px; }
.stat-link { display: inline-flex; gap: 7px; color: var(--green); font-size: 11px; font-weight: 700; }
.stat-link span, .text-link:hover { transform: translateX(2px); }
.dashboard-accounts { margin: 0 0 20px; border: 1px solid #e8ece9; border-radius: 12px; background: #fff; padding: 21px; }
.dashboard-accounts-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dashboard-accounts-heading h2 { margin: 0; color: #24352f; font-size: 17px; }
.dashboard-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px; }
.dashboard-account { min-width: 0; border: 1px solid #edf0ed; border-radius: 9px; background: #fbfcfb; padding: 14px; }
.dashboard-account-name { overflow: hidden; margin: 0 0 5px; color: #3a4740; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-account-type { margin: 0 0 13px; color: #89938e; font-size: 10px; text-transform: capitalize; }
.dashboard-account-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #7d8883; font-size: 10px; }
.dashboard-account-balance strong { color: #202b29; font-size: 15px; white-space: nowrap; }
.dashboard-accounts-empty { margin: 0; color: #828d88; font-size: 12px; }
.dashboard-recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.dashboard-recent-panel { min-width: 0; border: 1px solid #e8ece9; border-radius: 12px; background: #fff; padding: 20px; }
.dashboard-recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dashboard-recent-heading h2 { margin: 0; color: #24352f; font-size: 16px; }
.dashboard-recent-list { display: grid; }
.dashboard-recent-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0ed; padding: 12px 0; }
.dashboard-recent-item:last-child { border-bottom: 0; }
.dashboard-recent-item-link:hover .dashboard-recent-description > strong { color: var(--green); }
.dashboard-recent-description, .dashboard-recent-amount { display: grid; min-width: 0; gap: 4px; }
.dashboard-recent-description > strong { overflow: hidden; color: #3a4740; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recent-description > span { overflow: hidden; color: #89938e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recent-amount { justify-items: end; flex: 0 0 auto; }
.dashboard-recent-amount > strong { color: #202b29; font-size: 11px; white-space: nowrap; }
.dashboard-record-status { color: #89938e; font-size: 9px; text-transform: capitalize; }
.welcome-panel { position: relative; display: flex; min-height: 257px; overflow: hidden; align-items: center; border: 1px solid #e5ebe6; border-radius: 13px; background: linear-gradient(110deg, #fff 0%, #fff 57%, #edf4ee 100%); padding: 33px 37px; }
.welcome-copy { position: relative; z-index: 1; width: 56%; }
.welcome-copy h2 { max-width: 430px; margin: 0 0 10px; color: #24352f; font-size: 24px; }
.welcome-copy .muted { max-width: 440px; font-size: 12px; }
.welcome-actions { display: flex; align-items: center; gap: 19px; margin-top: 23px; }
.text-link { border: 0; background: transparent; color: #28745b; font-size: 11px; font-weight: 700; transition: .15s ease; }
.welcome-art { position: absolute; top: 0; right: 3%; width: 38%; height: 100%; }
.art-ring { position: absolute; right: 23px; top: 26px; width: 216px; height: 216px; border: 1px solid rgba(69, 132, 103, .14); border-radius: 50%; }
.ring-two { top: 48px; right: 45px; width: 172px; height: 172px; }
.art-card { position: absolute; top: 68px; right: 96px; display: flex; width: 145px; height: 105px; flex-direction: column; gap: 10px; transform: rotate(-8deg); border: 1px solid #e3ebe5; border-radius: 11px; background: #fff; padding: 17px; box-shadow: 0 13px 35px rgba(49, 90, 68, .09); }
.art-card-line { width: 88px; height: 5px; border-radius: 6px; background: #e3ece5; }
.art-card-line.short { width: 58px; background: #edf0ed; }
.art-card-value { width: 52px; height: 22px; margin-top: 2px; border-radius: 5px; background: #e3f0e9; }
.art-orb { position: absolute; top: 138px; right: 49px; width: 43px; height: 43px; border: 7px solid #f8fcf8; border-radius: 50%; background: #8db89d; box-shadow: 0 3px 12px #aac7b3; }

.content-grid { display: grid; grid-template-columns: minmax(285px, .75fr) minmax(0, 1.65fr); align-items: start; gap: 17px; }
.project-modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow-y: auto; background: rgba(26, 39, 33, .48); padding: 18px; }
.project-modal { width: min(720px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; box-shadow: 0 24px 80px rgba(18, 35, 27, .24); }
.party-modal { width: min(760px, 100%); }
.expense-modal { width: min(980px, 100%); }
.payment-modal { width: min(620px, 100%); }
.settings-form-modal { width: min(600px, 100%); padding: 22px; }
.project-list-panel { width: 100%; }
.expense-grid { grid-template-columns: minmax(340px, .95fr) minmax(0, 1.65fr); }
.account-grid { grid-template-columns: minmax(340px, .9fr) minmax(0, 1.5fr); }
.account-select { border: 0; background: transparent; padding: 0; color: #33403b; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.account-select:hover { color: var(--green); }
.selected-account-row td { background: #f3f8f4; }
.account-transactions-panel { margin-top: 16px; }
.account-transactions-panel .panel-heading { padding: 0 22px; }
.account-transactions-panel .panel-heading .muted { margin-top: 6px; font-size: 11px; }
.account-transaction-actions { white-space: nowrap; }
.account-transaction-actions .party-action:disabled { opacity: .4; cursor: not-allowed; }
.account-transaction-modal { max-width: 680px; }
.account-transaction-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.account-transaction-details-grid > div { min-width: 0; border-bottom: 1px solid #edf0ed; padding: 0 0 8px; }
.account-transaction-details-grid span { display: block; margin-bottom: 4px; color: #89938e; font-size: 9px; font-weight: 600; }
.account-transaction-details-grid strong { display: block; color: #36443c; font-size: 11px; overflow-wrap: anywhere; }
.account-transfer-details { margin-top: 20px; }
.account-transfer-details h3 { margin: 0 0 10px; color: #53615a; font-size: 11px; }
.users-form-panel { margin-bottom: 16px; }
.users-row-actions { white-space: nowrap; }
.users-row-actions .party-action { width: 31px; min-height: 31px; margin-left: 5px; border-radius: 9px; background: #f3f5f4; }
.users-row-actions .party-action:first-child { margin-left: 0; }
.users-row-actions .party-action.danger-link { background: #fbefed; }
.user-edit-modal { width: min(620px, 100%); }
.removed-users-panel { margin-top: 16px; }
.user-role-pill { display: inline-flex; min-height: 27px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 0 11px; font-size: 9px; font-weight: 700; line-height: 1; text-transform: capitalize; }
.user-role-pill-admin { border-color: #d7eadf; background: #e9f4ed; color: #39805f; }
.user-role-pill-editor { border-color: #d8e5f4; background: #eaf1f9; color: #4c6f9c; }
.user-role-pill-viewer { border-color: #e5e9e7; background: #f1f3f2; color: #6f7a75; }
.user-account-status { display: inline-flex; border-radius: 999px; background: #fbf2e5; padding: 5px 9px; color: #a57c39; font-size: 9px; font-weight: 600; }
.user-account-status-removed { background: #f1f3f2; color: #6f7a75; }
.users-error { display: block; margin: 0 22px 14px; }
.account-selection-hint { margin: 14px 0 0; }
.panel { overflow: hidden; border: 1px solid #e7ebe8; border-radius: 12px; background: #fff; }
.panel.project-modal { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.form-panel { padding: 22px; }
.table-panel { min-width: 0; padding: 22px 0 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.panel-heading h2 { margin: 0; color: #2b3632; font-size: 16px; }
.panel-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
.panel-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #e8f3ed; color: var(--green); font-size: 17px; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: block; margin-bottom: 6px; color: #56625d; font-size: 11px; font-weight: 600; }
.stack-form input:not([type=checkbox]), .stack-form select { width: 100%; min-height: 39px; border: 1px solid #e0e6e2; border-radius: 7px; outline: none; background: #fff; padding: 0 10px; color: #34413b; font-size: 11px; transition: border-color .15s, box-shadow .15s; }
.stack-form input:focus, .stack-form select:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
[x-cloak] { display: none !important; }
.stack-form .searchable-select { position: relative; }
.stack-form .searchable-select-trigger { display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e0e6e2; border-radius: 7px; outline: none; background: #fff; padding: 0 10px; color: #34413b; font-size: 11px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stack-form .searchable-select-trigger:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
.stack-form .searchable-select-trigger.is-placeholder { color: #b0b9b4; }
.stack-form .searchable-select-trigger:disabled { background: #f7f8f7; cursor: not-allowed; }
.searchable-select-chevron { color: #77837d; font-size: 15px; line-height: 1; }
.searchable-select-menu { position: absolute; z-index: 35; top: calc(100% + 4px); left: 0; width: 100%; padding: 8px; border: 1px solid #e0e6e2; border-radius: 7px; background: #fff; box-shadow: 0 8px 20px rgba(30, 45, 37, .14); }
.stack-form .searchable-select-menu input { margin-bottom: 6px; }
.searchable-select-options { max-height: 180px; overflow-y: auto; }
.searchable-select-option { display: block; width: 100%; border: 0; border-radius: 5px; background: transparent; padding: 8px 9px; color: #34413b; font-size: 11px; text-align: left; cursor: pointer; }
.searchable-select-option:hover, .searchable-select-option:focus { outline: none; background: #eff4f7; }
.searchable-select-empty { margin: 0; padding: 8px 9px; color: #7d8983; font-size: 11px; }
.stack-form textarea { width: 100%; min-height: 60px; resize: vertical; border: 1px solid #e0e6e2; border-radius: 7px; outline: none; background: #fff; padding: 9px 10px; color: #34413b; font: inherit; font-size: 11px; }
.stack-form textarea:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
.stack-form input::placeholder { color: #b0b9b4; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.required { color: #c76b55; }
.field-suffix { color: #9aa39e; font-weight: 400; }
.field-error { display: block; margin-top: 5px; color: #b74e45; font-size: 10px; }
.remember-row { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; color: #78837e !important; font-size: 11px !important; font-weight: 400 !important; }
.remember-row input { accent-color: var(--green); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.list-heading { margin: 0; padding: 0 21px; }
.settings-heading-actions { display: flex; align-items: center; gap: 10px; }
.settings-row-actions { display: flex; align-items: center; gap: 10px; }
.danger-link { color: #b74e45; }
.danger-link:hover { color: #923d36; }
.count-pill { border-radius: 20px; background: #f2f5f2; padding: 6px 10px; color: #75817b; font-size: 10px; font-weight: 600; }
.search-wrap { display: flex; height: 37px; align-items: center; gap: 8px; margin: 0 21px 15px; border: 1px solid #e4e9e5; border-radius: 7px; padding: 0 10px; color: #94a09a; }
.expense-heading-actions, .expense-pagination-pages { display: flex; align-items: center; gap: 8px; }
.project-quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: -8px 0 18px; }
.project-quick-actions .button { background: #234f74; color: #fff; }
.quick-transaction-context { display: grid; gap: 3px; border: 1px solid var(--expense-border); border-radius: 8px; background: var(--expense-pale-blue); padding: 10px 12px; color: var(--expense-navy); font-size: 11px; }
.project-report-action { width: 38px; padding-left: 4px !important; padding-right: 8px !important; text-align: center; }
.expense-list-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) repeat(2, auto); align-items: end; gap: 12px; margin: 18px 21px 15px; }
.expense-list-toolbar .search-wrap { margin: 0; }
.pending-invoice-filter, .pending-job-filter { justify-self: start; }
.job-status-toggle { display: block; margin-top: 4px; border: 0; background: transparent; padding: 0; font: inherit; font-size: 9px; font-weight: 400; text-align: left; text-decoration: none; }
.job-status-toggle:hover { text-decoration: none; }
.job-status-toggle:disabled { cursor: default; }
.job-status-completed { color: #929c97; }
.job-status-pending { color: #b74e45; }
.status-toast { position: fixed; right: 24px; bottom: 24px; z-index: 1200; max-width: min(360px, calc(100vw - 48px)); border: 1px solid #173e60; border-radius: 8px; background: #234f74; box-shadow: 0 10px 28px rgba(23, 62, 96, .24); padding: 12px 16px; color: #fff; font-size: 12px; font-weight: 600; }
.expense-filter-control, .expense-custom-range label { display: grid; gap: 5px; color: #78837e; font-size: 10px; font-weight: 600; }
.expense-filter-control select, .expense-custom-range input { min-height: 37px; border: 1px solid #e0e6e2; border-radius: 7px; outline: none; background: #fff; padding: 0 10px; color: #34413b; font-size: 11px; }
.expense-filter-control select:focus, .expense-custom-range input:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
.expense-custom-range { display: flex; align-items: flex-end; gap: 10px; margin: 0 21px 15px; }
.expense-custom-range label { min-width: 165px; }
.expense-row-actions { white-space: nowrap; }
.expense-row-actions .text-link + .text-link { margin-left: 9px; }
.expand-cell { width: 42px; text-align: center; }
.payment-expander { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 1px solid #dce5df; border-radius: 50%; background: #f7faf8; color: #28745b; font-size: 15px; font-weight: 700; }
.payment-expander:hover { border-color: #9dc4ad; background: #edf6f0; }
.expense-payments-row > td { white-space: normal; background: #f8faf8; padding: 0 21px 16px; }
.expense-payments { border: 1px solid #e8eee9; border-radius: 9px; background: #fff; padding: 15px; }
.expense-payments-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.expense-payments-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.expense-payments-heading h3 { margin: 0; color: #53615a; font-size: 11px; }
.payment-register-table { min-width: 600px; }
.payment-register-total { display: flex; justify-content: flex-end; gap: 20px; border-top: 1px solid #edf0ed; padding: 11px 13px 0; color: #65726a; font-size: 10px; }
.payment-register-total strong { color: #32423a; }
.expense-paper .expense-parties { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 18px 0; }
.expense-paper .expense-parties .invoice-bill-to,
.expense-paper .expense-parties .invoice-reference,
.expense-paper .expense-parties .invoice-reference > div > * { min-width: 0; overflow-wrap: anywhere; }
.expense-lines-table, .expense-payment-table { width: 100%; table-layout: fixed; }
.expense-description-column { width: 52%; }
.expense-quantity-column { width: 10%; }
.expense-unit-cost-column, .expense-total-column { width: 19%; }
.expense-lines-table td:first-child { overflow-wrap: anywhere; white-space: normal; word-break: break-word; }
.expense-lines-table small, .expense-payment-table small { display: block; margin-top: 3px; color: #8a948f; font-size: 8px; }
.expense-payment-history { margin-top: 22px; }
.expense-payment-history .invoice-section-label { margin-bottom: 8px; }
.expense-attachment-list { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.expense-attachment-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.expense-no-payments { margin: 0; color: #758179; font-size: 10px; }
.expense-totals { margin-bottom: 18px; }
.expense-attachments { margin-top: 18px; }
.expense-attachments ul { margin: 0; padding-left: 18px; color: #526057; font-size: 9px; }
.expense-attachments a { color: #28745b; }
.expense-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #edf0ed; padding: 13px 21px; color: #7f8984; font-size: 10px; }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: #3a4641; font-size: 11px; }
.search-wrap input::placeholder { color: #a4ada8; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { border-top: 1px solid #edf0ed; border-bottom: 1px solid #edf0ed; background: #fafbfa; padding: 10px 13px; color: #8a948f; font-size: 9px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; white-space: nowrap; }
.money-column-heading small { display: block; margin-top: 3px; color: #aab3ae; font-size: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }
th:first-child, td:first-child { padding-left: 21px; }
th:last-child, td:last-child { padding-right: 21px; }
td { border-bottom: 1px solid #f0f2f0; padding: 12px 13px; color: #6e7974; font-size: 10px; white-space: nowrap; }
td strong { display: block; color: #39443f; font-size: 11px; font-weight: 700; }
td small { display: block; margin-top: 4px; color: #9aa39f; font-size: 9px; }
.project-financial-summary { display: grid; min-width: 420px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.project-financial-metric { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.project-financial-label { color: #78827f; font-size: 9px; font-weight: 600; }
.project-financial-metric strong { font-size: 10px; white-space: nowrap; }
.badge { display: inline-block; border-radius: 20px; padding: 5px 8px; background: #f1f3f2; color: #7d8782; font-size: 9px; font-weight: 600; text-transform: capitalize; }
.badge-active { background: #e9f4ed; color: #39805f; }
.badge-pending { background: #fbf2e5; color: #a57c39; }
.badge-finished { background: #e9f1fb; color: #5478a8; }
.badge-draft { background: #f0f1f8; color: #68739d; }
.badge-posted { background: #e9f4ed; color: #39805f; }
.badge-planning { background: #f0f1f8; color: #68739d; }
.badge-on_hold { background: #fbf2e5; color: #a57c39; }
.badge-completed { background: #e9f4ed; color: #39805f; }
.badge-cancelled { background: #f8ecea; color: #ae665d; }
.badge-muted { background: #f1f3f2; color: #89928e; }
.table-action { text-align: right; }
.table-action .text-link { padding: 5px; }
.party-row-actions { white-space: nowrap; }
.party-action { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; gap: 4px; margin-left: 6px; border: 0; background: transparent; padding: 4px; color: #28745b; font: inherit; font-size: 10px; font-weight: 700; vertical-align: middle; cursor: pointer; }
.party-action:first-child { margin-left: 0; }
.party-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.party-action:hover { color: #1d5e49; }
.party-action.danger-link { color: #b74e45; }
.party-action.danger-link:hover { color: #923d36; }
.party-action:focus-visible { outline: 2px solid #83b49b; outline-offset: 2px; }
.empty-state { padding: 39px 20px 45px; text-align: center; }
.empty-icon { display: grid; width: 41px; height: 41px; place-items: center; margin: 0 auto 12px; border-radius: 13px; background: #edf4ef; color: #52836a; font-size: 20px; }
.empty-state h3 { margin: 0 0 6px; color: #45524b; font-size: 14px; }
.empty-state p { margin: 0; color: #929c96; font-size: 11px; }
.notice-box { margin-bottom: 15px; border: 1px solid #efe4c8; border-radius: 8px; background: #fffbf0; padding: 11px; color: #8e7741; font-size: 10px; line-height: 1.6; }
.notice-box a { color: #477a60; font-weight: 700; }
.flash-success { margin-bottom: 18px; border: 1px solid #d5e9db; border-radius: 8px; background: #eff8f1; padding: 11px 14px; color: #397653; font-size: 12px; }
.flash-error { margin-bottom: 18px; border: 1px solid #f0d7d4; border-radius: 8px; background: #fff4f2; padding: 11px 14px; color: #a9463e; font-size: 12px; }
.project-summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -4px 0 17px; }
.project-summary-heading > div { min-width: 0; flex: 1; }
.project-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; gap: 9px 22px; margin: 11px 0 0; }
.project-detail { display: grid; min-width: 0; grid-template-columns: 126px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.project-detail dt { margin: 0; color: #87938d; font-size: 11px; font-weight: 600; }
.project-detail dd { min-width: 0; margin: 0; color: #394740; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.project-detail-name dd { color: #293731; font-size: 15px; }
.project-status-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.project-status-fieldset legend { margin-bottom: 6px; color: #89938e; font-size: 9px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.project-status-switch { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #e6ebe7; border-radius: 999px; background: #edf1ee; padding: 4px; box-shadow: inset 0 1px 2px rgba(34, 52, 42, .04); }
.project-status-option { position: relative; display: block; margin: 0; cursor: pointer; }
.project-status-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.project-status-choice { display: inline-flex; min-height: 31px; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 0 11px; color: #75817a; font-size: 10px; font-weight: 600; white-space: nowrap; transition: background .16s ease, box-shadow .16s ease, color .16s ease; }
.project-status-option input:checked + .project-status-choice { background: #fff; color: #314238; box-shadow: 0 1px 4px rgba(35, 54, 43, .14); }
.project-status-option input:focus-visible + .project-status-choice { outline: 2px solid #76a98e; outline-offset: 2px; }
.project-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #9aa49e; }
.project-status-option-active .project-status-dot { background: #4a9b70; }
.project-status-option-finished .project-status-dot { background: #5385c7; }
.project-status-option-pending .project-status-dot { background: #c49340; }
.project-status-option-cancelled .project-status-dot { background: #c16b62; }
.client-overview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -4px 0 17px; }
.client-overview-heading h2 { margin: 8px 0 3px; color: #293731; font-size: 19px; }
.client-overview-heading .muted { margin: 5px 0 0; }
.client-overview-heading .muted span { margin: 0 4px; color: #b4bdb8; }
.client-projects-panel, .client-transactions-panel { margin-top: 18px; }
.client-project-link { display: block; color: #28745b; font-size: 11px; font-weight: 700; }
.client-project-link:hover { color: #1d5e49; text-decoration: underline; }
.project-settings-modal { width: min(520px, 100%); }
.financial-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 11px; }
.financial-disclaimer { margin: 0 0 17px; color: #929b96; font-size: 9px; }
.financial-stat { min-height: 112px; border: 1px solid #e7ebe8; border-radius: 11px; background: #fff; padding: 16px 18px; }
.financial-label { display: block; margin-bottom: 9px; color: #7d8883; font-size: 10px; font-weight: 600; }
.financial-stat strong { display: block; color: #283630; font: 700 20px ui-sans-serif, system-ui, sans-serif; letter-spacing: -.5px; }
.financial-stat small { display: block; margin-top: 6px; color: #929c96; font-size: 9px; }
.financial-stat.negative strong { color: #b6544a; }
.project-expenses-panel { margin-top: 18px; }
.project-payments-panel { margin-top: 18px; }
.table-summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf0ed; background: #fafbfa; padding: 12px 21px; color: #64716a; font-size: 10px; font-weight: 700; }
.table-summary-total strong { color: #293731; font-size: 12px; }
.vendor-expense-group { border-top: 1px solid #edf0ed; }
.vendor-expense-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafbfa; padding: 11px 21px; }
.vendor-expense-heading h3 { margin: 0; color: #45524b; font-size: 12px; }
.vendor-expense-heading > strong { color: #39443f; font-size: 11px; }
.financial-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.35fr); align-items: start; gap: 15px; }
.budget-panel { padding: 22px; }
.budget-panel .panel-heading { margin-bottom: 17px; }
.button-small { min-height: 33px; padding: 0 10px; font-size: 10px; }
.history-block { margin-top: 23px; border-top: 1px solid #edf0ed; padding-top: 17px; }
.subsection-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.subsection-title h3 { margin: 0; color: #526059; font-size: 12px; }
.subsection-title span { color: #98a19c; font-size: 9px; }
.revision-row, .budget-line { display: flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f0f2f0; padding: 9px 0; }
.revision-row strong, .budget-line strong { display: block; color: #4a5750; font-size: 10px; }
.revision-row small, .budget-line small { display: block; margin-top: 4px; color: #949d98; font-size: 9px; }
.revision-action { display: flex; align-items: center; gap: 8px; }
.revision-action .text-link { white-space: nowrap; }
.inline-empty { margin: 12px 0 0; color: #939d97; font-size: 10px; }
.field-hint { display: block; margin-top: 5px; color: #919b95; font-size: 9px; line-height: 1.5; }
.category-setup { border: 1px solid #edf0ed; border-radius: 9px; background: #fafcfa; padding: 15px; }
.category-setup > div strong { color: #4b5851; font-size: 11px; }
.category-setup > div p { margin: 4px 0 13px; color: #909a94; font-size: 10px; }
.category-details { margin-bottom: 13px; border-bottom: 1px solid #edf0ed; padding-bottom: 13px; }
.category-details summary { width: fit-content; color: #477a60; cursor: pointer; font-size: 10px; font-weight: 700; }
.category-details .category-form { margin-top: 12px; }
.category-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 8px; }
.category-form input { width: 100%; min-width: 0; min-height: 34px; border: 1px solid #e0e6e2; border-radius: 7px; padding: 0 9px; outline: 0; font: inherit; font-size: 10px; }
.category-form input:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
.budget-entry-form { border: 1px solid #edf0ed; border-radius: 9px; background: #fafcfa; padding: 14px; }
.budget-entry-form .stack-form { gap: 10px; }
.budget-entry-form label { display: block; margin: 0 0 5px; color: #66716b; font-size: 9px; font-weight: 600; }
.budget-entry-form input, .budget-entry-form select { width: 100%; min-height: 34px; border: 1px solid #e0e6e2; border-radius: 6px; background: #fff; padding: 0 8px; outline: none; color: #45514b; font: inherit; font-size: 10px; }
.budget-entry-form input:focus, .budget-entry-form select:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
.budget-entry-form > .form-row { margin-bottom: 11px; }
.budget-entry-form > .button { min-height: 34px; }
.budget-line-total { margin-left: auto; text-align: right; white-space: nowrap; }
.icon-button { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #9aa39e; font-size: 18px; }
.icon-button:hover { background: #f9eeec; color: #b74e45; }
.budget-approval { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.budget-approval > span { color: #838d87; font-size: 10px; }
.budget-approval strong { display: block; margin-top: 4px; color: #36443c; font-size: 12px; }
.expense-preview { display: grid; gap: 8px; border: 1px solid #e8eee9; border-radius: 8px; background: #f7faf7; padding: 12px; }
.expense-preview > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7e8983; font-size: 10px; }
.expense-preview strong { color: #435149; font-size: 10px; }
.expense-preview .preview-total { border-top: 1px solid #e4ebe5; padding-top: 8px; color: #47574d; font-weight: 700; }
.expense-preview .preview-total strong { color: #216d57; font-size: 12px; }
.payment-entry { display: grid; gap: 12px; border-top: 1px solid #edf0ed; padding-top: 13px; }
.payment-details { margin-top: 3px; }
.selected-file { display: block; margin-top: 6px; color: #477a60; font-size: 10px; }
.stack-form input[type=file] { min-height: auto !important; border: 1px dashed #cbd8ce !important; background: #fafcfa !important; padding: 9px !important; }
.tax-code-form { grid-template-columns: 1fr 1fr; }
.tax-code-form .remember-row { grid-column: 1 / -1; }
.invoice-page-heading { margin-bottom: 21px; }
.invoice-register-panel { overflow: hidden; }
.invoice-register-panel .table-toolbar { padding: 0 21px 14px; }
.invoice-register-panel .table-toolbar input { width: 100%; min-height: 37px; border: 1px solid #e0e6e2; border-radius: 7px; outline: 0; background: #fff; padding: 0 11px; color: #3a4641; font-size: 11px; }
.invoice-register-panel .table-toolbar input:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
.invoice-register-panel th, .invoice-register-panel td { white-space: nowrap; }
.invoice-form-modal { width: min(920px, 100%); }
.invoice-line-editor { display: grid; gap: 8px; border: 1px solid #e6ebe7; border-radius: 9px; background: #fbfcfb; padding: 13px; }
.invoice-line-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invoice-line-editor-heading label { display: block; margin: 0 0 3px; color: #56625d; font-size: 11px; font-weight: 600; }
.invoice-line-editor-heading .field-hint { display: block; }
.invoice-line-add { justify-self: start; }
.invoice-line-editor-labels, .invoice-line-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) 82px 125px 112px 24px; align-items: center; gap: 8px; }
.invoice-line-editor-labels { color: #89938e; font-size: 9px; font-weight: 700; }
.invoice-line-editor-row input { width: 100%; min-width: 0; min-height: 36px; border: 1px solid #e0e6e2; border-radius: 7px; outline: none; background: #fff; padding: 0 8px; color: #34413b; font-size: 10px; }
.invoice-line-editor-row input:focus { border-color: #83b49b; box-shadow: 0 0 0 3px rgba(56, 128, 93, .1); }
.invoice-line-amount { color: #46534b; font-size: 10px; text-align: right; white-space: nowrap; }
.invoice-line-remove { min-height: 24px; margin: 0; padding: 2px; font-size: 17px; }
.invoice-discount-row { align-items: start; }

.invoice-preview-page { min-width: 320px; background: #edf0ed; color: #293731; }
.invoice-preview-toolbar { display: flex; width: min(210mm, calc(100% - 32px)); align-items: center; justify-content: space-between; gap: 12px; margin: 20px auto 0; }
.attachment-preview-content { width: min(1000px, calc(100% - 32px)); margin: 20px auto; text-align: center; }
.attachment-preview-content iframe { display: block; width: 100%; height: max(360px, calc(100dvh - 140px)); border: 0; background: #fff; }
.attachment-preview-content img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.invoice-preview-pages { display: grid; grid-template-columns: minmax(210mm, 1fr); justify-items: center; gap: 18px; overflow-x: auto; padding: 0 0 28px; }
.invoice-paper { position: relative; width: 210mm; min-height: 297mm; overflow: hidden; margin: 0; border: 1px solid #e6ebe7; background: #fff; padding: 17mm 16mm; box-shadow: 0 12px 35px rgba(32, 54, 42, .1); }
.invoice-preview-page .expense-paper { margin: 0 auto; }
.invoice-draft-watermark { position: absolute; top: 40%; left: 18%; transform: rotate(-32deg); color: rgba(165, 124, 57, .08); font-size: 100px; font-weight: 800; letter-spacing: 12px; pointer-events: none; }
.invoice-paper-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 2px solid #28745b; padding-bottom: 22px; }
.invoice-issuer { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.invoice-issuer-details { min-width: 0; overflow-wrap: anywhere; }
.invoice-company-logo { display: block; max-width: 180px; max-height: 140px; object-fit: contain; }
.invoice-company-address { white-space: pre-line; }
.invoice-issuer h2 { margin: 0 0 7px; color: #24352f; font-size: 19px; letter-spacing: -.3px; }
.invoice-issuer p { margin: 3px 0; color: #69756e; font-size: 10px; }
.company-logo-preview { margin-top: 12px; }
.company-logo-preview img { display: block; width: auto; max-width: 300px; height: auto; object-fit: contain; }
.invoice-paper-title { text-align: right; }
.invoice-paper-title h1 { margin: 8px 0 0; color: #1c7059; font-size: 22px; letter-spacing: .3px; }
.invoice-paper-status { display: inline-block; border-radius: 20px; background: #e9f4ed; padding: 5px 9px; color: #39805f; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.invoice-paper-status-draft { background: #fbf2e5; color: #a57c39; }
.invoice-parties { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(210px, .75fr); gap: 30px; padding: 24px 0; }
.invoice-section-label { margin: 0 0 10px; color: #87938d; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.invoice-bill-to h2 { margin: 0 0 7px; color: #2b3932; font-size: 14px; letter-spacing: 0; }
.sales-invoice-paper .invoice-bill-to h2 { font-size: 9px; font-weight: 700; }
.invoice-bill-to p:not(.invoice-section-label) { margin: 3px 0; color: #65716b; font-size: 10px; line-height: 1.5; }
.invoice-reference { display: grid; align-content: start; gap: 9px; }
.invoice-reference > div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf0ed; padding-bottom: 7px; }
.invoice-reference span { color: #89938e; font-size: 8px; font-weight: 700; letter-spacing: .45px; }
.invoice-reference strong { color: #36443c; font-size: 10px; text-align: right; }
.invoice-lines-table { margin: 5px 0 12px; }
.invoice-lines-table th.invoice-meta-cell { border: 0; background: #fff; padding: 0; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; }
.invoice-lines-table .invoice-paper-header { padding-bottom: 16px; }
.invoice-lines-table .invoice-parties { padding: 18px 0; }
.invoice-lines-table th { border-top: 1px solid #dfe7e1; border-bottom: 1px solid #dfe7e1; background: #f4f7f4; padding: 11px 10px; color: #526158; font-size: 8px; }
.invoice-lines-table td { border-bottom: 1px solid #e9eeea; padding: 6px 10px; color: #526057; font-size: 10px; white-space: normal; }
.invoice-lines-table th:first-child, .invoice-lines-table td:first-child { padding-left: 12px; }
.invoice-lines-table th.invoice-meta-cell:first-child { padding-left: 0; }
.invoice-number-cell { text-align: right; white-space: nowrap !important; }
.invoice-forward-row { background: #f8faf8; }
.invoice-forward-row td { color: #46534b; }
.invoice-continuation-header { border-top: 0 !important; color: #758179 !important; font-size: 8px !important; font-weight: 600; text-align: right; }
.invoice-continuation { margin: -4px 0 0; color: #758179; font-size: 8px; font-weight: 600; text-align: right; }
.invoice-final-section { break-inside: avoid; page-break-inside: avoid; }
.invoice-totals { display: grid; width: min(100%, 340px); gap: 9px; margin: 0 0 22px auto; }
.invoice-totals > div { display: flex; justify-content: space-between; gap: 20px; color: #707c75; font-size: 9px; }
.invoice-totals strong { color: #3a4740; font-size: 10px; }
.invoice-totals .invoice-grand-total { border-top: 1px solid #dfe7e1; border-bottom: 1px solid #dfe7e1; padding: 11px 0; color: #33463b; font-size: 11px; font-weight: 700; }
.invoice-totals .invoice-grand-total strong { color: #1c7059; font-size: 14px; }
.invoice-totals .invoice-balance-due { color: #293731; font-weight: 700; }
.invoice-totals .invoice-balance-due strong { color: #293731; font-size: 12px; }
.invoice-bank-details { border-top: 1px solid #e9eeea; padding-top: 16px; }
.invoice-bank-account-name { margin: 0 0 8px; color: #68746d; font-size: 9px; }
.invoice-bank-account { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.invoice-bank-account p { margin: 0; color: #68746d; font-size: 9px; line-height: 1.7; }
.invoice-bank-account strong { color: #46534b; }
.invoice-paper-footer { margin-top: 26px; border-top: 1px solid #e9eeea; padding-top: 12px; color: #758179; font-size: 9px; }
.receipt-paper .invoice-issuer h2, .receipt-paper .invoice-bill-to h2 { font-size: 9px; font-weight: 700; }
.receipt-totals { width: min(100%, 420px); }
.receipt-notes { margin-top: 24px; border-top: 1px solid #e9eeea; padding-top: 14px; }
.receipt-notes p:last-child { margin: 0; color: #526057; font-size: 10px; line-height: 1.6; white-space: pre-line; }

@page {
    size: A4;
    margin: 15mm 16mm 18mm;

    @bottom-right {
        content: "Page " counter(page) " of " counter(pages);
        color: #758179;
        font-family: ui-sans-serif, system-ui, sans-serif;
        font-size: 8pt;
    }
}
@page project-dashboard {
    size: A4 landscape;
    margin: 7mm 8mm 9mm;

    @bottom-right {
        content: "Page " counter(page) " of " counter(pages);
        color: #758179;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 7pt;
    }
}
@media print {
    .sidebar, .settings-side-menu, .topbar, button, .button, .project-modal-backdrop { display: none !important; }
    .app-shell .main-content, .app-shell.sidebar-expanded .main-content, .app-shell.settings-open .main-content { margin-left: 0; transition: none; }
    .page-content { max-width: none; padding: 0; }
    .invoice-preview-page { min-width: 0; background: #fff; }
    .invoice-preview-toolbar { display: none !important; }
    .invoice-preview-pages { display: block; justify-items: normal; overflow: visible; padding: 0; }
    .invoice-paper { width: auto; min-height: 264mm; overflow: visible; margin: 0; border: 0; padding: 0; box-shadow: none; break-after: page; page-break-after: always; }
    .invoice-paper-last { break-after: auto; page-break-after: auto; }
    .invoice-lines-table { min-width: 0; margin: 0 0 14px; }
    .invoice-lines-table thead { display: table-header-group; }
    .invoice-lines-table tbody { display: table-row-group; }
    .invoice-lines-table tr, .invoice-final-section, .invoice-totals, .invoice-bank-details { break-inside: avoid; page-break-inside: avoid; }
    .project-report-action { display: none; }
}

.login-page { display: grid; min-height: 100vh; place-items: center; background: radial-gradient(ellipse at 75% 15%, #e8f1e9 0, transparent 34%), #f5f7f5; padding: 24px; }
.login-card { width: min(100%, 420px); border: 1px solid #e6ebe7; border-radius: 15px; background: #fff; padding: 36px 39px 28px; box-shadow: 0 20px 55px rgba(32, 63, 47, .07); }
.login-brand { margin-bottom: 40px; }
.login-card h1 { margin: 0 0 8px; font-size: 23px; }
.login-card .muted { margin-bottom: 26px; font-size: 12px; }
.login-card .stack-form { gap: 11px; }
.login-card .stack-form label:not(.remember-row) { margin: 3px 0 -5px; }
.login-card .stack-form input:not([type=checkbox]) { min-height: 43px; }
.button-wide { width: 100%; min-height: 43px; margin-top: 5px; }
.login-foot { margin: 20px 0 0; border-top: 1px solid #edf0ed; padding-top: 17px; color: #929b96; font-size: 10px; line-height: 1.7; }
.login-foot code { color: #507660; font-size: 10px; }

@media screen and (max-width: 1250px) {
    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 1050px) {
    .app-shell { --sidebar-expanded-width: 215px; }
    .topbar { padding: 0 27px; }
    .page-content { padding: 30px 27px 48px; }
    .content-grid { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); }
    .expense-grid { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.35fr); }
    .account-grid { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.25fr); }
    .financial-grid { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
}
@media screen and (max-width: 760px) {
    .sidebar, .sidebar.is-expanded { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; overflow: visible; padding: 12px 17px; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
    .app-shell.sidebar-expanded .main-content, .app-shell.settings-open .main-content { margin-left: 0; }
    .sidebar .brand { font-size: 18px; }
    .sidebar .brand-mark { width: 32px; height: 32px; }
    .sidebar-toggle { display: none; }
    .sidebar:not(.is-expanded) .brand > span:not(.brand-mark) { display: block; }
    .sidebar .nav-label { display: none; }
    .sidebar-foot { display: none; }
    .main-nav { display: flex; flex: 1 1 100%; flex-wrap: wrap; min-width: 0; gap: 2px; }
    .sidebar:not(.is-expanded) .main-nav a,
    .sidebar:not(.is-expanded) .settings-nav-button,
    .sidebar.is-expanded .main-nav a,
    .sidebar.is-expanded .settings-nav-button { min-width: 42px; min-height: 40px; justify-content: center; gap: 0; padding: 0 6px; }
    .settings-side-menu { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 17px; }
    .settings-side-menu h2 { margin: 0 8px 0 0; font-size: 13px; }
    .settings-side-menu a { padding: 8px; font-size: 11px; }
    .sidebar .nav-icon, .sidebar.is-expanded .main-nav .nav-icon { display: inline-grid; width: auto; flex: 0 0 auto; }
    .sidebar .main-nav .mobile-hide-icon, .sidebar.is-expanded .main-nav .mobile-hide-icon { display: none; }
    .sidebar .nav-shortcut, .sidebar .mobile-nav-shortcut { display: inline; }
    .sidebar .nav-icon-glyph { display: none; }
    .main-content { margin-left: 0; }
    .topbar { height: 51px; padding: 0 18px; }
    .breadcrumb { font-size: 10px; }
    .user-chip { font-size: 10px; }
    .page-content { padding: 25px 17px 40px; }
    .page-heading { align-items: flex-start; margin-bottom: 19px; }
    .accounts-page-heading { flex-wrap: wrap; }
    .accounts-page-heading .account-transfer-launcher { align-items: flex-start; }
    .account-transfer-actions { flex-wrap: wrap; }
    .page-heading h1 { font-size: 24px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-card { min-height: 130px; padding: 15px; }
    .stat-card:first-child { grid-column: span 2; }
    .dashboard-accounts { padding: 16px; }
    .dashboard-recent-grid { grid-template-columns: 1fr; gap: 10px; }
    .dashboard-recent-panel { padding: 16px; }
    .welcome-panel { min-height: 245px; padding: 25px 22px; }
    .welcome-copy { width: 75%; }
    .welcome-copy h2 { font-size: 21px; }
    .welcome-art { right: -14%; width: 45%; opacity: .62; }
    .content-grid { grid-template-columns: 1fr; }
    .expense-list-toolbar { grid-template-columns: 1fr; }
    .expense-custom-range { flex-wrap: wrap; }
    .expense-custom-range label { flex: 1 1 140px; }
    .expense-pagination { align-items: flex-start; flex-direction: column; }
    .expense-payments-row > td { padding-right: 10px; padding-left: 10px; }
    .expense-payments { padding: 11px; }
    .expense-payments-heading { align-items: flex-start; flex-direction: column; }
    .expense-grid { grid-template-columns: 1fr; }
    .financial-grid { grid-template-columns: 1fr; }
    .financial-stat-grid { gap: 8px; }
    .financial-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .financial-stat { padding: 13px; }
    .financial-stat strong { font-size: 17px; }
    .project-summary-heading { align-items: flex-start; flex-direction: column; }
    .project-details-grid { grid-template-columns: 1fr; }
    .table-panel { grid-row: 1; }
    .form-panel { grid-row: 2; }
}
@media screen and (max-width: 480px) {
    .sidebar, .sidebar:hover, .sidebar:focus-within { align-items: flex-start; flex-direction: column; gap: 9px; }
    .main-nav { width: 100%; flex-basis: auto; justify-content: flex-start; }
    .main-nav a { flex: 0 0 auto; justify-content: center; }
    .topbar { padding: 0 14px; }
    .topbar-actions { gap: 4px; margin-left: 6px; }
    .user-chip { max-width: 120px; }
    .page-content { padding-right: 12px; padding-left: 12px; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .category-form { grid-template-columns: 1fr; }
    .budget-amount-row { grid-template-columns: 1fr 1fr; }
    .login-card { padding: 29px 23px 23px; }
    .welcome-copy { width: 90%; }
    .welcome-art { right: -31%; opacity: .25; }
    .project-status-switch { display: grid; width: min(100%, 350px); grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
    .project-status-option, .project-status-choice { width: 100%; }
    .invoice-line-editor { padding: 10px; }
    .invoice-line-editor-labels { display: none; }
    .invoice-line-editor-row { grid-template-columns: minmax(0, 1fr) 56px 86px 80px 20px; gap: 4px; }
    .invoice-line-editor-row input { padding: 0 5px; font-size: 9px; }
    .account-transaction-details-grid { grid-template-columns: 1fr; }
    .invoice-preview-toolbar { width: calc(100% - 20px); }
}
.project-report {
    --report-navy: #234f74;
    --report-blue: #4a7fa9;
    --report-pale-blue: #eaf1f7;
    --report-border: #dce5ed;
    color: #53677d;
    font-family: Arial, Helvetica, sans-serif;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}
.project-report .project-print-name { display: none; }
.project-company-contact { display: flex; flex-wrap: wrap; gap: 2px 16px; color: #65716b; font-size: 10px; overflow-wrap: anywhere; }
.project-company-contact p { min-width: 0; max-width: 100%; margin: 0; }
.project-report .page-heading h1,
.project-report .project-detail dd,
.project-report .panel-heading h2,
.project-report .financial-stat strong {
    font-family: Arial, Helvetica, sans-serif;
}
.project-report .page-heading h1,
.project-report .project-detail dd,
.project-report .panel-heading h2 {
    color: #304f6e;
}
.project-report .eyebrow,
.project-report .project-status-fieldset legend {
    color: var(--report-navy);
}
.project-report .project-detail dt {
    color: var(--report-blue);
}
.project-report .project-details-grid {
    border: 1px solid var(--report-border);
    border-left: 3px solid var(--report-blue);
    border-radius: 12px;
    background: #f0f4f8;
    padding: 11px 14px;
    box-shadow: 0 4px 12px rgba(35, 59, 80, .07);
}
.project-report .project-status-switch {
    border-color: var(--report-border);
    background: var(--report-pale-blue);
}
.project-report .project-status-option input:checked + .project-status-choice {
    background: var(--report-navy);
    color: #fff;
    box-shadow: 0 2px 6px rgba(35, 59, 80, .18);
}
.project-report .financial-stat,
.project-report .panel {
    border-color: var(--report-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(35, 59, 80, .09);
}
.project-report .financial-stat {
    border-top: 3px solid var(--report-blue);
}
.project-report .financial-label {
    color: #62758a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    letter-spacing: .45px;
    text-transform: uppercase;
}
.project-report .financial-stat strong {
    color: #304f6e;
}
.project-report .financial-stat.negative strong {
    color: #b6544a;
}
.project-report .panel-heading h2 {
    font-family: Arial, Helvetica, sans-serif;
}
.project-report .count-pill {
    background: var(--report-pale-blue);
    color: var(--report-navy);
}
.project-report .vendor-expense-heading {
    background: #f0f4f8;
}
.project-report .vendor-expense-group-cell { padding: 0; text-align: left; text-transform: none; letter-spacing: normal; }
.project-report .vendor-expense-heading h3,
.project-report .vendor-expense-heading > strong {
    color: #304f6e;
}
.project-report th {
    border-color: #d3e0eb;
    background: #e6eef6;
    color: var(--report-navy);
}
.project-report td {
    color: #526982;
}
.project-report tbody tr:nth-child(even) td {
    background: #f7f9fb;
}
.project-report tbody.vendor-expense-group tr:nth-child(even) td { background: transparent; }
.project-report tbody.vendor-expense-group tr:nth-child(odd) td { background: #f7f9fb; }
.project-report td.project-report-code-cell,
.project-report td strong.project-report-number {
    color: #405c78;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: -.15px;
}
.project-report .table-summary-total {
    border-top: 2px solid var(--report-blue);
    background: var(--report-pale-blue);
    color: #405873;
}
.project-report .table-summary-total strong {
    color: #304f6e;
}
@media print {
    .project-report { page: project-dashboard; }
    .project-report .project-screen-name { display: none; }
    .project-report .project-print-name { display: inline; }
    .financial-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .project-report > .page-heading { gap: 8px; margin-bottom: 6px; }
    .project-report .page-heading h1 { margin: 0; font-size: 16px; line-height: 1.15; }
    .project-dashboard-actions { justify-content: flex-end; gap: 5px; }
    .project-report .project-status-fieldset { display: block !important; }
    .project-report .project-status-fieldset legend { margin-bottom: 2px; font-size: 8px; }
    .project-report .project-status-switch {
        display: inline-flex;
        width: auto;
        border-radius: 999px;
        gap: 1px;
        padding: 2px;
    }
    .project-report .project-status-option,
    .project-report .project-status-choice {
        width: auto;
    }
    .project-report .project-status-choice { min-height: 20px; gap: 4px; padding: 0 7px; font-size: 8px; }
    .project-report .project-status-dot { width: 5px; height: 5px; flex-basis: 5px; }
    .project-report .project-summary-heading { gap: 6px; margin: 0 0 6px; }
    .project-report .project-summary-heading > div { width: 100%; flex: 1 1 100%; }
    .project-print-date {
        display: block;
        color: #a0a9b2;
        font-size: 8px;
        text-align: right;
        white-space: nowrap;
    }
    .project-report .project-details-grid {
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        gap: 8px 16px;
        min-height: 24mm;
        margin: 5px auto 0;
        border-radius: 5px;
        padding: 10px 14px;
        box-shadow: none;
    }
    .project-report .project-detail { grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); gap: 6px; }
    .project-report .project-detail dt { font-size: 11px; }
    .project-report .project-detail dd { font-size: 13px; line-height: 1.25; }
    .project-report .project-detail-name dd { font-size: 15px; }
    .project-report .financial-stat-grid { gap: 5px; margin-bottom: 6px; }
    .project-report .financial-stat {
        min-height: 0;
        border-top-width: 2px;
        border-radius: 5px;
        padding: 7px 9px;
        box-shadow: none;
    }
    .project-report .financial-label { margin-bottom: 3px; font-size: 8px; letter-spacing: .2px; }
    .project-report .financial-stat strong { font-size: 12px; }
    .project-report .financial-stat small { margin-top: 2px; font-size: 8px; }
    .project-report .panel {
        border-radius: 5px;
        box-shadow: none;
    }
    .project-report .project-expenses-panel,
    .project-report .project-payments-panel { margin-top: 6px; }
    .project-report .table-panel { padding-top: 7px; }
    .project-report .panel-heading { gap: 6px; margin-bottom: 4px; padding: 0 8px; }
    .project-report .panel-heading .eyebrow { margin-bottom: 2px; font-size: 7px; letter-spacing: .5px; }
    .project-report .panel-heading h2 { font-size: 11px; line-height: 1.2; }
    .project-report .count-pill { padding: 4px 7px; font-size: 8px; }
    .project-report .vendor-expense-heading { gap: 6px; padding: 4px 8px; }
    .project-report .vendor-expense-heading h3,
    .project-report .vendor-expense-heading > strong { font-size: 9px; }
    .project-report .table-scroll { overflow: visible; }
    .project-report table { width: 100%; table-layout: fixed; }
    .project-report th { padding: 3px 4px; font-size: 8px; letter-spacing: .1px; white-space: normal; overflow-wrap: anywhere; }
    .project-report td { padding: 3px 4px; font-size: 9px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
    .project-report th:first-child,
    .project-report td:first-child { padding-left: 6px; }
    .project-report th:last-child,
    .project-report td:last-child { padding-right: 6px; }
    .project-report th.vendor-expense-group-cell { padding: 0; }
    .project-expenses-panel thead th:nth-child(1) { width: 9%; }
    .project-expenses-panel thead th:nth-child(2) { width: 16%; }
    .project-expenses-panel thead th:nth-child(3) { width: 15%; }
    .project-expenses-panel thead th:nth-child(4) { width: 13%; }
    .project-expenses-panel thead th:nth-child(5) { width: 31%; }
    .project-expenses-panel thead th:nth-child(6) { width: 16%; }
    .project-report td.project-report-code-cell,
    .project-report td strong.project-report-number { font-size: 7.5px; }
    .project-report .table-summary-total { gap: 6px; padding: 5px 8px; font-size: 8px; }
    .project-report .table-summary-total strong { font-size: 9px; }
    .project-report .vendor-expense-heading,
    .project-report .table-summary-total,
    .project-report tr { break-inside: avoid; page-break-inside: avoid; }
}
.expenses-page,
.invoices-page,
.receipts-page {
    --expense-navy: #234f74;
    --expense-blue: #4a7fa9;
    --expense-pale-blue: #eaf1f7;
    --expense-border: #dce5ed;
    color: #53677d;
}
:is(.expenses-page, .invoices-page, .receipts-page) .page-heading h1,
.expenses-page .expense-list-panel .panel-heading h2,
:is(.invoices-page, .receipts-page) .invoice-register-panel .panel-heading h2 {
    color: #304f6e;
}
:is(.expenses-page, .invoices-page, .receipts-page) .eyebrow {
    color: var(--expense-navy);
}
:is(.expenses-page, .invoices-page, .receipts-page) .page-heading .muted {
    color: #78899b;
}
.expenses-page .expense-list-panel,
:is(.invoices-page, .receipts-page) .invoice-register-panel {
    border-color: var(--expense-border);
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(35, 59, 80, .09);
}
.expenses-page .expense-list-panel .count-pill,
:is(.invoices-page, .receipts-page) .invoice-register-panel .count-pill {
    background: var(--expense-pale-blue);
    color: var(--expense-navy);
}
:is(.expenses-page, .invoices-page, .receipts-page) .button-primary {
    background: var(--expense-navy);
}
:is(.expenses-page, .invoices-page, .receipts-page) .button-primary:hover {
    background: #193f60;
}
:is(.expenses-page, .invoices-page, .receipts-page) .button-secondary {
    border-color: var(--expense-border);
    color: #47627b;
}
:is(.expenses-page, .invoices-page, .receipts-page) .button-secondary:hover {
    background: var(--expense-pale-blue);
}
:is(.expenses-page, .receipts-page) .search-wrap,
:is(.expenses-page, .receipts-page) .expense-filter-control select,
:is(.expenses-page, .receipts-page) .expense-custom-range input,
.expenses-page .category-form input,
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form input:not([type=checkbox]),
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form select,
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form textarea {
    border-color: var(--expense-border);
}
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form .searchable-select-trigger,
:is(.expenses-page, .invoices-page, .receipts-page) .searchable-select-menu {
    border-color: var(--expense-border);
}
.expenses-page .search-wrap span,
.receipts-page .search-wrap span,
.expenses-page .field-hint a,
.expenses-page .category-details summary,
.expenses-page .selected-file,
.invoices-page .field-hint a,
.invoices-page .category-details summary,
.invoices-page .selected-file,
.receipts-page .field-hint a,
.receipts-page .category-details summary,
.receipts-page .selected-file {
    color: var(--expense-blue);
}
:is(.expenses-page, .receipts-page) .expense-filter-control,
:is(.expenses-page, .receipts-page) .expense-custom-range label {
    color: #62758a;
}
:is(.expenses-page, .receipts-page) .expense-filter-control select:focus,
:is(.expenses-page, .receipts-page) .expense-custom-range input:focus,
.expenses-page .category-form input:focus,
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form input:focus,
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form select:focus,
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form textarea:focus {
    border-color: var(--expense-blue);
    box-shadow: 0 0 0 3px rgba(74, 127, 169, .12);
}
:is(.expenses-page, .invoices-page, .receipts-page) .stack-form .searchable-select-trigger:focus {
    border-color: var(--expense-blue);
    box-shadow: 0 0 0 3px rgba(74, 127, 169, .12);
}
:is(.expenses-page, .invoices-page, .receipts-page) th {
    border-color: #d3e0eb;
    background: #e6eef6;
    color: var(--expense-navy);
}
:is(.expenses-page, .invoices-page, .receipts-page) td {
    border-bottom-color: #e7edf3;
    color: #526982;
}
:is(.expenses-page, .invoices-page, .receipts-page) tbody tr:nth-child(even) td {
    background: #f7f9fb;
}
:is(.expenses-page, .invoices-page, .receipts-page) tbody tr:not(.expense-payments-row):hover td {
    background: #eff4f9;
}
:is(.expenses-page, .invoices-page, .receipts-page) td strong {
    color: #304f6e;
}
:is(.expenses-page, .invoices-page, .receipts-page) td small,
:is(.expenses-page, .invoices-page, .receipts-page) .money-column-heading small {
    color: #8394a5;
}
.expenses-page td small.pending-invoice-number {
    color: #b74e45;
}
:is(.expenses-page, .invoices-page, .receipts-page) .payment-expander {
    border-color: #cbd9e6;
    background: #f0f5f9;
    color: var(--expense-navy);
}
:is(.expenses-page, .invoices-page, .receipts-page) .payment-expander:hover {
    border-color: var(--expense-blue);
    background: var(--expense-pale-blue);
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-payments-row > td {
    background: #f0f4f8;
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-payments {
    border-color: var(--expense-border);
    box-shadow: 0 3px 10px rgba(35, 59, 80, .06);
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-payments-heading h3,
:is(.expenses-page, .invoices-page, .receipts-page) .payment-register-total strong {
    color: #304f6e;
}
:is(.expenses-page, .invoices-page, .receipts-page) .payment-register-total {
    border-top-color: var(--expense-border);
    color: #62758a;
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-pagination {
    border-top-color: var(--expense-border);
    color: #78899b;
}
:is(.expenses-page, .invoices-page, .receipts-page) .party-action:not(.danger-link) {
    color: var(--expense-blue);
}
:is(.expenses-page, .invoices-page, .receipts-page) .party-action:not(.danger-link):hover {
    color: var(--expense-navy);
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-modal {
    border-color: var(--expense-border);
    box-shadow: 0 18px 48px rgba(35, 59, 80, .18);
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-preview {
    border-color: var(--expense-border);
    background: #f4f7fa;
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-preview .preview-total {
    border-top-color: var(--expense-border);
    color: #304f6e;
}
:is(.expenses-page, .invoices-page, .receipts-page) .expense-preview .preview-total strong {
    color: var(--expense-navy);
}
:is(.expenses-page, .invoices-page, .receipts-page) .remember-row input {
    accent-color: var(--expense-navy);
}
.invoices-page .invoice-register-panel .table-toolbar input {
    border-color: var(--expense-border);
}
.invoices-page .invoice-register-panel .table-toolbar input:focus {
    border-color: var(--expense-blue);
    box-shadow: 0 0 0 3px rgba(74, 127, 169, .12);
}
.invoices-page .badge-posted {
    background: var(--expense-pale-blue);
    color: var(--expense-navy);
}
.receipts-page .status-chip.status-posted {
    background: var(--expense-pale-blue);
    color: var(--expense-navy);
}
