/* Geometry, typography and navigation of the original CRM on the browser engine. */
:root{--text:#202e39;--muted:#68798a;--border:#e2e8ef}
.layout{grid-template-columns:256px minmax(0,1fr)}
.sidebar{padding:28px 11px 24px;background:radial-gradient(ellipse at 0% 0%,#147bac26,transparent 55%),linear-gradient(165deg,#182a3b,#122131 52%,#101d2b);border-right:1px solid #263d50}
.brand{padding:22px 13px 25px;margin:0 0 12px;font-size:24px;font-weight:800;letter-spacing:-1px;line-height:1;color:#e2edf5}
.brand small{margin:12px 0 0;font-size:9px;font-weight:800;letter-spacing:1.35px;color:#96afc3;line-height:1.4}
.navlabel{margin:0 12px 10px;font-size:9px;font-weight:800;letter-spacing:1.5px;color:#9bafc1}.navgroup{margin-top:24px}
.navlink{position:relative;min-height:42px;margin:4px 0;padding:9px 10px 9px 42px;border:1px solid transparent;border-radius:10px;font-size:13px;font-weight:700;line-height:1.4;color:#c6d4e0;gap:0}
.navicon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:#96afc3;display:flex}.navicon svg{width:19px;height:19px;display:block}
.navlink:hover{background:#ffffff08}.navlink.active{background:linear-gradient(105deg,#1c5179,#1b3851);box-shadow:inset 3px 0 #46c5f3,inset 0 0 0 1px #85cbef24;border-color:transparent;color:#f5fbff;font-weight:800}.navlink.active .navicon{color:#78d8ff}
.account{margin-top:20px;padding:16px 6px;color:#9bafc1;border-color:#ffffff14;font-size:11px}.account button{width:100%;min-height:42px;font-weight:700;margin-top:16px}
.main{padding:36px 25px 40px}.top h1{font-size:28px;letter-spacing:-1px;line-height:1.2}.top{margin-bottom:20px}.panel{border-radius:15px}.top h2{font-size:22px;font-weight:800;letter-spacing:-.025em}
.page-subtitle{margin:9px 0 0;color:#68798a;font-size:13px;line-height:1.6}
.finance-tabs{display:flex;gap:22px;border-bottom:1px solid #e2e8ef;margin:18px 0 22px;overflow-x:auto;white-space:nowrap;max-width:100%}.finance-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0;background:transparent;color:#68798a;font-size:13px;flex-shrink:0}.finance-tabs button.selected{border-color:#0868cf;color:#0868cf;background:transparent}
.finance-metrics .metric{border:1px solid #dde6ef;border-left:4px solid #3985bd;padding:18px;border-radius:15px;min-height:98px;box-shadow:0 3px 16px #20344703}.finance-metrics .metric small{font-size:11px;font-weight:800;color:#70839a}.finance-metrics .metric strong{font-size:24px;letter-spacing:-.6px;line-height:1.5;color:#1c304b}
.finance-layout h2{font-size:22px;font-weight:800;letter-spacing:-.025em}.finance-layout h3{font-size:19px;font-weight:800}.finance-layout>.panel{margin:16px 0;padding:16px}
.finance-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.finance-actions button{min-height:38px}.finance-actions input{min-width:200px;flex:1;max-width:360px}.finance-history{margin:18px 0}.finance-history summary{cursor:pointer;font-weight:700;padding:12px;border:1px solid var(--border);border-radius:10px}.finance-history .rates-table{width:100%}.finance-history .employee-scroll{margin-top:12px}
@media(max-width:1100px) and (min-width:761px){.main{padding:28px 18px}.finance-metrics .metric strong{font-size:20px}}
@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{position:relative;height:auto;max-height:none;padding:12px}.brand{padding:8px 12px;margin:0}.brand small{margin-bottom:12px}.sidebar nav{display:flex;gap:6px;overflow:auto;max-width:100%;padding:4px}.navlabel,.navgroup{display:none}.navlink{flex:0 0 auto;white-space:nowrap;margin:0}.account{margin-top:8px;display:flex;gap:12px;align-items:center;padding:8px}.account button{width:auto;margin:0;min-height:32px;margin-left:auto}.main{padding:20px 12px}.top h1{font-size:24px}.finance-metrics .metric{padding:12px;min-height:80px}.finance-metrics .metric strong{font-size:18px}.finance-tabs{gap:18px}}

    .balance-hero{position:relative;overflow:hidden;padding:25px 28px;margin:0 0 18px;border-radius:22px;background:linear-gradient(125deg,#122744,#1e4f84 68%,#3184d7);color:#fff;box-shadow:0 18px 44px rgba(19,52,92,.2)}
    .balance-hero:after{content:"";position:absolute;width:260px;height:260px;right:-70px;top:-150px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.2),transparent 68%)}
    .balance-hero small{font-size:11px;font-weight:800;letter-spacing:.13em;color:#a9d0f8}.balance-hero h1{margin:5px 0 5px;color:white;font-size:31px}.balance-hero p{margin:0;color:#c5daef;max-width:780px}
    .balance-note{padding:13px 16px;border-radius:13px;background:#edf5ff;border-left:4px solid #3b82f6;color:#4d6280;margin:8px 0 16px}
    .debt-section-head{padding:18px 20px;border-radius:17px;background:linear-gradient(135deg,#f7fbff,#edf5ff);border:1px solid #d9e8f8;box-shadow:0 10px 28px rgba(27,67,110,.08);margin-bottom:12px}
    .debt-section-head small{font-size:11px;font-weight:800;letter-spacing:.09em;color:#6582a2;text-transform:uppercase}.debt-section-head strong{display:block;font-size:23px;color:#10243e;margin:4px 0}.debt-section-head span{color:#63758b}
    .debt-table-wrap{overflow-x:auto;border:1px solid #dbe7f3;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(29,64,104,.09);margin:8px 0 26px}
    .debt-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;color:#334155}
    .debt-table th{padding:11px 15px;text-align:left;background:#eaf3fc;color:#55708f;font-size:11px;font-weight:800;letter-spacing:.03em;border-bottom:1px solid #d5e3f1;white-space:nowrap}
    .debt-table td{padding:10px 15px;border-bottom:1px solid #e8eef5;vertical-align:middle;font-size:13px}
    .debt-table tbody tr:last-child td{border-bottom:0}.debt-table tbody tr:nth-child(even){background:#fbfdff}.debt-table tbody tr:hover{background:#f1f7fe}
    .debt-name{font-weight:750;color:#18324f;min-width:240px}.debt-amount{font-weight:800;color:#10243e;white-space:nowrap;text-align:right!important}
    .debt-category{display:inline-block;padding:3px 8px;border-radius:7px;background:#f0f5fa;color:#536b85;font-size:11px;white-space:nowrap}
    .debt-status{display:inline-block;padding:5px 10px;border-radius:999px;background:#e7f7ef;color:#15835c;font-size:12px;font-weight:750}
    .registry-table{min-width:1180px}.registry-table .direction{display:inline-block;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
    .registry-table .direction.payable{background:#fff0e8;color:#b45624}.registry-table .direction.receivable{background:#e9f3ff;color:#276cac}
    .registry-table .status{display:inline-block;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
    .registry-table .status.active{background:#e7f7ef;color:#15835c}.registry-table .status.closed{background:#eef2f6;color:#738195}.registry-table .status.paused{background:#fff4d6;color:#956100}
    .leasing-table tbody tr:first-child{background:#f2f7ff}.leasing-table tbody tr:first-child td:first-child{border-left:3px solid #3182db}
    .lease-kind{display:inline-block;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
    .lease-kind.accrual{background:#fff0e8;color:#b45624}.lease-kind.payment{background:#e7f7ef;color:#15835c}.lease-value{font-weight:800;white-space:nowrap}.lease-value.plus{color:#b45624}.lease-value.minus{color:#15835c}
    .lease-breakdown{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 16px;padding:12px 15px;border:1px solid #dbe7f3;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#eef6ff);color:#4b617b;font-size:12px;box-shadow:0 8px 22px rgba(29,64,104,.07)}
    .lease-breakdown span{font-weight:850;color:#1c3d62;text-transform:uppercase;font-size:10px;letter-spacing:.06em}.lease-breakdown b{color:#173653}
    .leasing-table tfoot td{padding:13px 15px;border-top:2px solid #c9dced;border-bottom:0;background:#edf5fd;font-weight:850;color:#173653}
    .leasing-table tfoot .lease-total-label{font-size:12px;letter-spacing:.02em}.leasing-table tfoot .lease-total-change{font-size:12px;color:#55708f;white-space:nowrap}
    .st-key-debt_summary_overview{margin-top:18px}
    .st-key-debt_summary_overview div[data-testid="stExpander"]{margin:0 0 10px;border:1px solid #d7e5f3;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(29,64,104,.07);overflow:hidden}
    .st-key-debt_summary_overview div[data-testid="stExpander"] details summary{min-height:68px;padding:10px 18px;color:#173653;font-weight:850}
    .st-key-debt_summary_overview div[data-testid="stExpander"] details summary p{font-size:18px!important;font-weight:850!important;letter-spacing:.01em!important}
    .st-key-debt_summary_overview div[data-testid="stExpander"] details>div{padding-top:0}
    .st-key-debt_summary_overview .debt-table-wrap{margin:5px 0 10px;box-shadow:none;border-radius:13px}
    .st-key-debt_summary_overview .debt-table td{padding-top:8px;padding-bottom:8px}
    .st-key-payable_overview div[data-testid="stExpander"]{border-left:5px solid #ef6a56!important;box-shadow:0 10px 28px rgba(192,75,55,.10)!important}
    .st-key-payable_overview div[data-testid="stExpander"] details summary{background:linear-gradient(135deg,#fff5f1,#ffebe5)!important;color:#873c30!important}
    .st-key-payable_overview div[data-testid="stExpander"] details summary:hover{background:linear-gradient(135deg,#ffefe9,#ffe4dc)!important}
    .st-key-receivable_overview div[data-testid="stExpander"]{border-left:5px solid #3182d9!important;box-shadow:0 10px 28px rgba(39,108,172,.10)!important}
    .st-key-receivable_overview div[data-testid="stExpander"] details summary{background:linear-gradient(135deg,#f1f7ff,#e5f2ff)!important;color:#205f99!important}
    .st-key-receivable_overview div[data-testid="stExpander"] details summary:hover{background:linear-gradient(135deg,#eaf4ff,#daecff)!important}
    .st-key-accounts_overview{margin-bottom:-28px}
    .st-key-accounts_overview .debt-section-head{height:148px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;margin-bottom:0}
    .account-total-card{height:148px;box-sizing:border-box;padding:20px 22px;border:1px solid #d9e8f8;border-radius:17px;background:linear-gradient(145deg,#fff,#f5f9ff);box-shadow:0 10px 28px rgba(27,67,110,.08);display:flex;flex-direction:column;justify-content:center}
    .account-total-card small{font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#6a829d}.account-total-card strong{display:block;margin:5px 0 7px;font-size:28px;line-height:1;color:#10243e}.account-total-card span{font-size:12px;color:#718197}
    .account-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 18px}
    .account-summary{padding:16px 18px;border:1px solid #d9e7f5;border-radius:16px;background:#fff;box-shadow:0 9px 24px rgba(29,64,104,.07)}
    .account-summary.primary{border-left:4px solid #3182d9}.account-summary.other{border-left:4px solid #8a63d2}.account-summary.cash{border-left:4px solid #e3a327;background:linear-gradient(145deg,#fff,#fff9ec)}.account-summary.total{border-left:4px solid #18a06d;background:linear-gradient(145deg,#fff,#f1fbf7)}
    .cash-ledger-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 16px;padding:20px 23px;border-radius:18px;background:linear-gradient(125deg,#173653,#225f91 68%,#3292c8);color:#fff;box-shadow:0 14px 34px rgba(25,76,119,.18)}
    .cash-ledger-hero:after{content:"";position:absolute;width:210px;height:210px;right:-50px;top:-125px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.2),transparent 68%)}
    .cash-ledger-hero small{display:block;color:#a9d7f4;font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.cash-ledger-hero strong{display:block;margin:5px 0 3px;font-size:27px;line-height:1.1}.cash-ledger-hero span{color:#d2e7f5;font-size:12px}.cash-ledger-hero .cash-hero-balance{position:relative;z-index:1;min-width:210px;text-align:right}.cash-ledger-hero .cash-hero-balance b{display:block;font-size:29px}.cash-ledger-hero .cash-hero-balance em{color:#cce5f6;font-size:11px;font-style:normal}
    .st-key-cash_add_operation_card div[data-testid="stForm"]{padding:18px 20px 16px!important;border:1px solid #d8e7f3!important;border-radius:16px!important;background:linear-gradient(145deg,#fff,#f6fbff)!important;box-shadow:0 9px 24px rgba(31,74,112,.07)!important}
    .st-key-cash_add_operation_card div[data-testid="stForm"] div[data-testid="stVerticalBlockBorderWrapper"],.st-key-cash_add_operation_card div[data-testid="stForm"] [data-testid="stColumn"]{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
    .st-key-cash_add_operation_card div[data-testid="stForm"] div[data-testid="stVerticalBlock"]{gap:.65rem!important}
    .st-key-cash_add_operation_card h4{margin:0 0 3px!important}
    .st-key-cash_add_operation_card div[data-testid="stFormSubmitButton"]{display:flex;justify-content:flex-end}
    .st-key-cash_add_operation_card div[data-testid="stFormSubmitButton"] button{min-height:38px!important;border:1px solid #b9d5ef!important;border-radius:10px!important;background:linear-gradient(135deg,#edf6ff,#dfeeff)!important;color:#205f98!important;font-weight:820!important;box-shadow:0 5px 13px rgba(38,102,163,.10)!important}
    .st-key-cash_add_operation_card div[data-testid="stFormSubmitButton"] button:hover{border-color:#7fb2df!important;background:linear-gradient(135deg,#e4f1ff,#d4e9ff)!important;color:#174f80!important}
    .cash-current-date{display:flex;min-height:70px;box-sizing:border-box;flex-direction:column;align-items:flex-end;justify-content:center;padding:12px 15px;border:1px solid #dbe7f3;border-radius:14px;background:linear-gradient(145deg,#fff,#f5f9fd);box-shadow:0 7px 18px rgba(31,74,112,.055);text-align:right}
    .cash-current-date small{color:#7a8ca1;font-size:9px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.cash-current-date strong{display:block;margin-top:4px;color:#245985;font-size:16px;font-weight:850;white-space:nowrap}
    .account-summary small{display:block;color:#71849a;font-size:11px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.account-summary strong{display:block;margin-top:5px;color:#10243e;font-size:23px}.account-summary span{display:block;margin-top:4px;color:#718197;font-size:12px}
    .account-group-title{display:flex;align-items:center;justify-content:space-between;margin:14px 2px 7px;color:#18324f}.account-group-title strong{font-size:17px}.account-group-title span{font-size:14px;font-weight:850;color:#315f91}
    .account-ledger{margin:8px 0 16px;overflow:hidden;border:1px solid #dbe7f3;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(29,64,104,.065)}
    .account-ledger-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;background:linear-gradient(135deg,#f7faff,#edf5fd);border-bottom:1px solid #dfe9f3}
    .account-ledger-head div{min-width:0}.account-ledger-head strong{display:block;color:#183653;font-size:16px;line-height:1.2}.account-ledger-head small{display:block;margin-top:3px;color:#7a8ca1;font-size:10px;font-weight:650}.account-ledger-head>span{color:#1e588e;font-size:14px;font-weight:850;white-space:nowrap}
    .account-ledger-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .account-ledger-table{width:100%;min-width:700px;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#2d4057;font-size:12px}
    .account-ledger-table th{padding:7px 11px;text-align:left;background:#fbfcfe;color:#77889d;font-size:9px;font-weight:850;letter-spacing:.065em;text-transform:uppercase;border-bottom:1px solid #e5edf5;white-space:nowrap}
    .account-ledger-table td{padding:8px 11px;vertical-align:middle;border-bottom:1px solid #edf2f7;line-height:1.2;overflow-wrap:anywhere}
    .account-ledger-table tbody tr:last-child td{border-bottom:0}.account-ledger-table tbody tr:nth-child(even) td{background:#fbfdff}.account-ledger-table tbody tr:hover td{background:#f3f8fe}
    .account-ledger-table .account-name{color:#1b3551;font-size:12px;font-weight:800}.account-ledger-table .account-name strong,.account-ledger-table .account-name small{display:block}.account-ledger-table .account-name small{margin-top:3px;color:#7a8ca1;font-size:10px;font-weight:600;line-height:1.25}.account-ledger-table .account-bank{color:#3f546d;font-weight:720}.account-ledger-table .account-entity{color:#546980}.account-ledger-table .account-date{color:#65798f;font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}.account-ledger-table .account-muted{color:#a0adbc}.account-ledger-table .account-money{text-align:right;color:#123f70;font-size:12px;font-weight:880;white-space:nowrap;font-variant-numeric:tabular-nums}.account-ledger-table .account-money.zero{color:#93a1b1}
    .account-ledger-table .account-auto-row td{background:linear-gradient(90deg,#fffaf0,#fffdf8)!important;border-top:1px solid #f1dfb7}.account-ledger-table .account-auto-row td:first-child{box-shadow:inset 3px 0 0 #e5a832}.account-auto-badge{display:inline-flex!important;margin:0 0 0 8px!important;padding:3px 7px;border-radius:999px;background:#fff0cc;color:#946000!important;font-size:8px!important;font-weight:850!important;letter-spacing:.045em;text-transform:uppercase;vertical-align:1px}
    .account-ledger-empty{padding:17px;text-align:center;color:#8191a4;font-size:12px;background:#fbfdff}
    .st-key-account_primary_actions{margin:4px 0 14px}
    .st-key-account_primary_actions div[data-testid="stHorizontalBlock"]{gap:10px}
    .st-key-account_primary_actions div[data-testid="stButton"] button,.st-key-account_primary_actions div[data-testid="stPopover"] button{height:44px!important;min-height:44px!important;padding:0 16px!important;border-radius:10px!important;font-size:13px!important;font-weight:820!important;white-space:nowrap!important;box-shadow:0 7px 17px rgba(28,73,116,.10)!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important}
    .st-key-account_primary_actions div[data-testid="stButton"] button:hover,.st-key-account_primary_actions div[data-testid="stPopover"] button:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(28,73,116,.15)!important}
    .st-key-account_primary_actions div[data-testid="stColumn"]:nth-child(1) button{border-color:#1f70b7!important;background:#1f70b7!important;color:#fff!important}
    .st-key-account_primary_actions div[data-testid="stColumn"]:nth-child(1) button:hover{border-color:#185f9d!important;background:#185f9d!important}
    .st-key-account_primary_actions div[data-testid="stColumn"]:nth-child(2) button{border-color:rgba(76,139,151,.38)!important;background:linear-gradient(135deg,rgba(250,253,254,.94),rgba(224,241,243,.78))!important;color:#286b73!important;box-shadow:0 7px 18px rgba(43,103,119,.10)!important;backdrop-filter:blur(8px)}
    .st-key-account_primary_actions div[data-testid="stColumn"]:nth-child(2) button:hover{border-color:rgba(63,127,141,.58)!important;background:linear-gradient(135deg,rgba(244,251,252,.98),rgba(213,236,239,.90))!important;color:#205c64!important;box-shadow:0 10px 22px rgba(43,103,119,.15)!important}
    .cash-history-ledger{margin:8px 0 18px;overflow:hidden;border:1px solid #d7e5f3;border-radius:16px;background:#fff;box-shadow:0 10px 27px rgba(29,64,104,.075)}
    .cash-history-scroll{max-height:620px;overflow:auto;-webkit-overflow-scrolling:touch}
    .cash-history-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#30445c;font-size:12px}
    .cash-history-table th{position:sticky;z-index:2;top:0;padding:10px 11px;text-align:left;background:linear-gradient(180deg,#edf5fd,#e6f0fa);color:#607a97;font-size:9px;font-weight:880;letter-spacing:.055em;text-transform:uppercase;border-bottom:1px solid #d6e3f0;white-space:normal;line-height:1.2}
    .cash-history-table td{padding:10px 11px;border-bottom:1px solid #e8eff6;vertical-align:middle;line-height:1.25;overflow-wrap:anywhere}.cash-history-table tbody tr:last-child td{border-bottom:0}.cash-history-table tbody tr:nth-child(even) td{background:#fbfdff}.cash-history-table tbody tr:hover td{background:#f2f7fd}
    .cash-history-date{color:#345b82;font-weight:820;white-space:nowrap;font-variant-numeric:tabular-nums}.cash-history-money{text-align:right;color:#344b65;font-weight:760;white-space:nowrap;font-variant-numeric:tabular-nums}.cash-history-money.income:not(.zero){color:#16805b}.cash-history-money.expense:not(.zero){color:#b64d43}.cash-history-money.closing{color:#153f6d;font-weight:880}.cash-history-money.zero{color:#9aa8b7}.cash-history-comment{color:#3d536c;font-weight:650}.cash-edited-row td{background:#fffdf7!important}.cash-edited-badge{display:inline-flex;margin-left:7px;padding:2px 6px;border-radius:999px;background:#fff0c7;color:#8f6507;font-size:8px;font-weight:850;letter-spacing:.035em;text-transform:uppercase;vertical-align:1px}
    .st-key-account_editor_expander div[data-testid="stExpander"]{margin-top:9px;border:1px solid #d9e5f2!important;border-radius:15px!important;background:#fff!important;box-shadow:0 7px 20px rgba(29,64,104,.055)!important;overflow:hidden}
    .st-key-account_editor_expander div[data-testid="stExpander"] details summary{min-height:48px;padding:8px 14px;font-weight:800;color:#315573;background:#f8fbfe}
    .st-key-account_editor_expander div[data-testid="stDataEditor"]{margin:2px 0 10px}
    .fixed-balance{padding:16px 18px;border:1px solid #d8e3ef;border-radius:16px;background:linear-gradient(145deg,#f8fafc,#eef3f8);box-shadow:0 9px 24px rgba(29,64,104,.06);margin:8px 0 16px}
    .fixed-balance small{font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#718197}.fixed-balance strong{display:block;margin:5px 0;color:#173653;font-size:24px}.fixed-balance span{color:#687b91;font-size:12px}
    .st-key-delete_account_snapshot button{width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:1px solid #efc9c5!important;border-radius:10px!important;background:#fff7f6!important;color:#b7463d!important;box-shadow:0 6px 15px rgba(135,53,45,.08)!important}
    .st-key-delete_account_snapshot button:hover{border-color:#df8f87!important;background:#fff0ee!important;color:#96352d!important;transform:translateY(-1px)}
    .st-key-delete_account_snapshot button p{font-size:0!important}
    @media(max-width:1100px){.account-ledger-table{min-width:650px}.account-ledger-table th,.account-ledger-table td{padding-left:8px;padding-right:8px}.cash-history-table th,.cash-history-table td{padding-left:7px;padding-right:7px;font-size:10px}.cash-history-table th{font-size:8px}}
    @media(max-width:1200px){.account-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:900px){.account-summary-grid{grid-template-columns:1fr}.cash-ledger-hero{align-items:flex-start;flex-direction:column}.cash-ledger-hero .cash-hero-balance{text-align:left}.cash-current-date{align-items:flex-start;text-align:left}.cash-history-table colgroup,.cash-history-table thead{display:none}.cash-history-table,.cash-history-table tbody{display:block;width:100%}.cash-history-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px;border-bottom:1px solid #dfe9f3}.cash-history-table tbody tr:last-child{border-bottom:0}.cash-history-table td{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:6px 7px!important;border:0!important;background:transparent!important;text-align:right!important}.cash-history-table td:before{content:attr(data-label);color:#7a8da2;font-size:8px;font-weight:850;letter-spacing:.055em;text-transform:uppercase;text-align:left}.cash-history-table .cash-history-comment{grid-column:1/-1;align-items:flex-start;text-align:left!important;flex-direction:column;gap:3px}.cash-history-table .cash-history-comment:before{display:block}.cash-history-scroll{max-height:none}}
    .st-key-accounts_overview div[data-testid="stVerticalBlockBorderWrapper"]{border-color:#dbe7f3!important;border-radius:16px!important;box-shadow:0 9px 25px rgba(29,64,104,.06)}
    .st-key-obligation_editor_card div[data-testid="stVerticalBlockBorderWrapper"]{padding:0!important;overflow:hidden;border:1px solid #d9e5f1!important;border-radius:20px!important;background:#fff!important;box-shadow:0 16px 38px rgba(29,64,104,.09)}
    .st-key-obligation_editor_card [data-testid="stForm"] div[data-testid="stVerticalBlockBorderWrapper"],.st-key-obligation_editor_card [data-testid="stColumn"] div[data-testid="stVerticalBlockBorderWrapper"]{padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
    .st-key-obligation_editor_card div[data-testid="stVerticalBlock"]{gap:.62rem!important}
    .st-key-obligation_editor_card div[data-testid="stForm"]{margin:0!important;padding:4px 22px 20px!important;border:0!important;border-radius:0!important;background:#fff!important}
    .st-key-obligation_editor_card div[data-testid="stForm"] div[data-testid="stVerticalBlock"]{gap:.48rem!important}
    .st-key-obligation_editor_card div[data-testid="stForm"] [data-testid="stColumn"]{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
    .st-key-obligation_editor_card div[data-testid="stForm"] [data-testid="stHorizontalBlock"]{gap:14px!important}
    .st-key-obligation_editor_card label p{font-size:11px!important;font-weight:760!important;color:#536a82!important}
    .st-key-obligation_editor_card input,.st-key-obligation_editor_card textarea,.st-key-obligation_editor_card div[data-baseweb="select"]>div{font-size:13px!important;background:#fbfdff!important;border-color:#dbe5ef!important;border-radius:10px!important}
    .st-key-obligation_editor_card textarea{min-height:64px!important;height:64px!important}
    .st-key-obligation_editor_card div[data-testid="stCheckbox"]{margin-top:2px!important;padding:9px 11px!important;border:1px solid #dce7f1;border-radius:11px;background:#f8fbfe}
    .st-key-obligation_editor_card div[data-testid="stCheckbox"] label p{font-size:11px!important;line-height:1.3!important;color:#3e5872!important}
    .st-key-obligation_editor_card div[data-testid="stFormSubmitButton"]{display:flex;align-items:flex-end;height:100%}
    .st-key-obligation_editor_card div[data-testid="stFormSubmitButton"] button{min-height:42px!important;border:0!important;border-radius:11px!important;background:linear-gradient(135deg,#2477d9,#3e91e8)!important;color:#fff!important;font-weight:820!important;box-shadow:0 8px 18px rgba(36,119,217,.22)!important}
    .st-key-obligation_editor_card div[data-testid="stFormSubmitButton"] button:hover{background:linear-gradient(135deg,#1f68c3,#3382d4)!important;box-shadow:0 10px 22px rgba(36,119,217,.28)!important}
    .obligation-card-head{display:flex;align-items:stretch;justify-content:space-between;gap:18px;margin:0!important;padding:20px 22px 18px;background:linear-gradient(135deg,#f7fbff 0%,#edf6ff 72%,#e7f3ff 100%);border-bottom:1px solid #dce8f3}
    .obligation-card-title{min-width:0;display:flex;flex-direction:column;justify-content:center}.obligation-card-title>small{display:block;margin-bottom:4px;color:#6883a0;font-size:9px;font-weight:880;letter-spacing:.105em;text-transform:uppercase}
    .obligation-card-title>strong{display:block;color:#142a44;font-size:21px;line-height:1.2;overflow-wrap:anywhere}
    .obligation-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:9px}.obligation-card-meta span{display:inline-flex;align-items:center;margin:0!important;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:820;line-height:1.2}
    .obligation-direction.payable{background:#fff0e8;color:#a95024}.obligation-direction.receivable{background:#e8f3ff;color:#2468a7}.obligation-category-chip{background:#fff;color:#536b84;border:1px solid #d9e5f0}.obligation-status-chip.active{background:#e6f7ef;color:#147d58}.obligation-status-chip.paused{background:#fff3d4;color:#916100}.obligation-status-chip.closed{background:#edf1f5;color:#6c7b8e}
    .obligation-card-balance{flex:0 0 225px;display:flex;flex-direction:column;justify-content:center;padding:13px 16px;border:1px solid rgba(75,136,197,.2);border-radius:15px;background:rgba(255,255,255,.76);box-shadow:0 7px 18px rgba(31,83,132,.07);text-align:right}.obligation-card-balance small{color:#71879e;font-size:9px;font-weight:840;letter-spacing:.065em;text-transform:uppercase}.obligation-card-balance b{display:block;margin:3px 0;color:#153d68;font-size:22px;line-height:1.15}.obligation-card-balance em{color:#6f8297;font-size:10px;font-style:normal}
    .obligation-form-section{display:flex;align-items:center;gap:10px;margin:11px 0 2px;color:#1c3e62}.obligation-form-section:after{content:"";height:1px;flex:1;background:#e4ebf3}.obligation-form-section span{font-size:11px;font-weight:860;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}.obligation-form-section small{color:#8494a6;font-size:10px;white-space:nowrap}
    .obligation-remove-note{margin:2px 0 0;padding:8px 10px;border-radius:10px;background:#fff9eb;border:1px solid #f1e2bb;color:#7c641f;font-size:10px;line-height:1.35}
    .obligation-sync-badge{display:inline-flex!important;align-items:center;gap:5px!important;margin:0!important;padding:4px 8px!important;border-radius:999px;background:#eaf8f2!important;color:#167653!important;font-size:9px!important;font-weight:820!important;border:1px solid #cfeedd;white-space:nowrap}
    .obligation-sync-badge:before{content:"✓";display:grid;place-items:center;width:13px;height:13px;border-radius:50%;background:#20a36d;color:#fff;font-size:8px}
    .st-key-obligation_editor_card div[data-testid="stExpander"]{margin:1px 22px 18px;border:1px solid #eadfe0!important;border-radius:12px!important;background:#fffafa!important;box-shadow:none!important}.st-key-obligation_editor_card div[data-testid="stExpander"] summary{min-height:42px!important;color:#8c4f54!important;font-size:11px!important;font-weight:760!important}
    @media(max-width:1050px){.obligation-card-head{flex-direction:column}.obligation-card-balance{flex-basis:auto;text-align:left}.obligation-form-section small{display:none}.st-key-obligation_editor_card div[data-testid="stForm"] [data-testid="stHorizontalBlock"]{flex-wrap:wrap!important}.st-key-obligation_editor_card div[data-testid="stForm"] [data-testid="stColumn"]{flex:1 1 260px!important;min-width:0!important}}
    @media(max-width:700px){.st-key-obligation_editor_card div[data-testid="stForm"]{padding:3px 15px 16px!important}.obligation-card-head{padding:17px 15px 15px}.obligation-card-title>strong{font-size:18px}.obligation-card-balance b{font-size:19px}.st-key-obligation_editor_card div[data-testid="stExpander"]{margin-left:15px;margin-right:15px}}

.accounts-overview-head{display:grid;grid-template-columns:3fr 1fr;gap:18px;align-items:center;margin:22px 0 14px}.account-total-card{min-width:0}.text-link{padding:0;border:0;background:none;text-align:left;font-weight:800;color:#265985}.treasury-table .numeric{text-align:right;white-space:nowrap}.finance-history .rates-table th{text-align:left}.finance-history .employee-scroll{max-height:480px}.debt-payable summary{color:#a95024;background:#fff8f2}.debt-receivable summary{color:#2468a7;background:#f2f8ff}
@media(max-width:760px){.accounts-overview-head{grid-template-columns:1fr}.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.legacy-cash-add{padding:18px 20px;margin:18px 0}.legacy-cash-add h3{margin:0 0 16px}.legacy-cash-add fieldset{border:0;padding:0;margin:0 0 14px;min-width:0}.cash-add-fields{display:grid;grid-template-columns:1.1fr 1.2fr 1.3fr;gap:18px;margin-bottom:16px}.cash-period-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:14px 0}.legacy-cash-add label,.cash-period-fields label{display:grid;gap:8px}.legacy-cash-add input,.legacy-cash-add select,.cash-period-fields select{width:100%;min-width:0}.cash-current-date{display:grid;text-align:right}.cash-current-date strong{font-size:18px}.cash-current-date small{font-size:10px;color:#70839a}@media(max-width:760px){.cash-add-fields{grid-template-columns:1fr}.legacy-cash-add{padding:14px}.cash-period-fields{gap:12px}}

/* Final legacy theme overrides, applied after the original financial styles. */
#view .balance-hero, #view .payroll-hero, #view .integration-head {
    padding:0 !important; margin:0 0 24px !important; min-height:0 !important;
    background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; overflow:visible !important;
}
#view .balance-hero:after, #view .payroll-hero:after, #view .integration-head-icon { display:none !important; }
#view .balance-hero h1, #view .payroll-hero h1, #view .integration-head h1 { margin:0 !important; padding:0 !important; color:#202e39 !important; letter-spacing:-1px; }
#view .balance-hero small, #view .payroll-hero .eyebrow { display:block; margin:0 0 10px; color:#0868cf !important; opacity:1 !important; font-size:10px !important; font-weight:800; letter-spacing:1.4px !important; text-transform:uppercase; }
#view .balance-hero p, #view .payroll-hero p, #view .integration-head p { margin:9px 0 0 !important; color:#68798a !important; font-size:13px !important; line-height:1.6; }
#view .debt-table-wrap, #view .account-total-card, #view .account-summary, #view .debt-section-head,
#view .cash-history-wrap, #view .account-ledger-wrap, #view .cash-current-date, #view .lease-breakdown {
    border-color:#e2e8ef !important; border-radius:15px !important; background:#fff !important; box-shadow:0 3px 16px #20344705 !important;
}
#view .debt-table th, #view .account-ledger-table th, #view .cash-history-table th { background:#f7f9fc !important; color:#75869a !important; font-size:11px !important; font-weight:700 !important; letter-spacing:0 !important; line-height:1.5; }
#view .debt-table td, #view .account-ledger-table td, #view .cash-history-table td { font-size:12px !important; line-height:1.5 !important; }
#view .debt-table td strong, #view .account-ledger-table .account-name, #view .account-ledger-table .account-money { font-weight:700 !important; }
#view .account-ledger-table .account-date, #view .account-ledger-table .account-name small, #view .cash-history-table td:before { font-size:11px !important; }
#view .account-summary small, #view .account-total-card small, #view .debt-section-head small { font-size:11px !important; font-weight:700 !important; letter-spacing:0 !important; color:#75869a; }
#view .account-summary strong, #view .account-total-card strong { font-size:24px !important; font-weight:800 !important; color:#1c304b; }
#view .debt-section-head strong { font-size:18px !important; font-weight:700 !important; }
#view .cash-ledger-hero { border:1px solid #e2e8ef; border-radius:15px; background:#fff !important; color:#202e39; box-shadow:none !important; }
#view .cash-ledger-hero:after { display:none; }
#view .cash-ledger-hero strong { font-size:18px !important; }
#view .cash-ledger-hero small, #view .cash-ledger-hero span, #view .cash-ledger-hero em { color:#68798a !important; }
#view .cash-ledger-hero .cash-hero-balance b { color:#1c304b; font-size:24px; }
.navlink{font-weight:600}.navlink.active{font-weight:700}#view .balance-hero h1{font-size:28px;line-height:1.2}#view .cash-history-table th:nth-child(2),#view .cash-history-table th:nth-child(3),#view .cash-history-table th:nth-child(4),#view .cash-history-table th:nth-child(6){text-align:right}
#view{font-size:13px;line-height:1.55}#view p{font-size:13px;line-height:1.6}#view label{font-size:12px;font-weight:600;color:#68798a}#view button{font-weight:600}#view .finance-tabs button[aria-selected=true]{font-weight:700}#view h2{font-size:22px;line-height:1.35;font-weight:700}#view h3{font-size:18px;line-height:1.4;font-weight:700}#view h4{font-size:15px;line-height:1.45;font-weight:700}
@media(max-width:760px){.sidebar{flex-direction:column;align-items:stretch}.sidebar .navlink{display:flex}.sidebar .brand{font-size:24px}.sidebar .account div{display:block}.sidebar nav{width:100%}}

        .dividend-focus{background:linear-gradient(125deg,#102a50 0%,#174b86 58%,#3182db 100%);border-radius:22px;padding:26px 28px;color:#fff;box-shadow:0 18px 42px rgba(24,70,125,.20);margin:14px 0 22px}
        .dividend-focus__eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#b9d8ff;margin-bottom:8px}
        .dividend-focus__title{font-size:25px;font-weight:800;margin-bottom:20px}
        .dividend-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
        .dividend-flow__item{position:relative;overflow:hidden;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.20);border-radius:16px;padding:16px 17px 15px;min-height:92px;box-shadow:0 10px 24px rgba(4,25,53,.16);transition:transform .18s ease,box-shadow .18s ease}
        .dividend-flow__item:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(4,25,53,.23)}
        .dividend-flow__label{font-size:12px;color:#cfe3fb;margin-bottom:7px}
        .dividend-flow__value{font-size:21px;font-weight:850;letter-spacing:-.02em;white-space:nowrap;text-shadow:0 1px 8px rgba(0,0,0,.12)}
        .dividend-table tbody tr:first-child{background:#f2f7ff}.dividend-table tbody tr:first-child td:first-child{border-left:3px solid #3182db}
        .dividend-table .money{font-weight:750;color:#18324f;white-space:nowrap}
        .dividend-table .money-detail{display:block;margin-top:4px;font-size:10px;font-weight:700;color:#3976b9;white-space:normal}
        .dividend-result{display:inline-block;padding:5px 9px;border-radius:12px;font-size:11px;font-weight:800;white-space:normal;line-height:1.35}
        .dividend-result.pending{background:#fff4d6;color:#956100}.dividend-result.over{background:#e8f1ff;color:#2368b5}.dividend-result.done{background:#e6f7ee;color:#16805a}
        @media(max-width:900px){.dividend-flow{grid-template-columns:1fr 1fr}}

.dividend-averages{grid-template-columns:repeat(2,minmax(0,1fr))}.dividend-table .text-link{font:inherit;font-weight:700;padding:0}.dividend-table th:nth-child(n+2):nth-child(-n+6),.dividend-table td.money{text-align:right}#dividend-chart{padding:20px;overflow:auto}#dividend-body>.top{gap:16px;align-items:center;flex-wrap:wrap}

/* Business overview: compact summaries, full-height table and CSP-safe SVG charts. */
.overview-heading{flex-wrap:wrap;gap:16px;margin-bottom:18px}
.overview-heading>button{display:none}
.overview-period{margin-left:auto;max-width:100%}
.overview-period label{display:grid;gap:6px}
.overview-period select{width:100%;padding:9px 12px;border:1px solid #dce5ef;border-radius:10px;background:#fff}
:is(#overview-body,#profit-files-body) .overview-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 20px}
:is(#overview-body,#profit-files-body) .overview-metrics .metric{min-height:104px;padding:12px 16px;border-radius:13px;display:flex;flex-direction:column;justify-content:center;gap:5px}
:is(#overview-body,#profit-files-body) .overview-metrics .metric small{font-size:11px;line-height:1.35;margin:0;min-height:0;font-weight:600}
:is(#overview-body,#profit-files-body) .overview-metrics .metric strong{font-size:clamp(20px,11.5cqw,34px)!important;line-height:1.3;margin:0;letter-spacing:-.7px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
:is(#overview-body,#profit-files-body) .overview-metrics .metric small:last-child{font-size:10px;font-weight:400}
.overview-metrics .metric:nth-child(2){border-top-color:#8c71c5}
.overview-metrics .metric:nth-child(3){border-top-color:#399bbd}
#overview-body>.overview-project-panel{padding:0;border:1px solid #dfe7ef;background:#fff;border-radius:14px;overflow:hidden;margin:0 0 16px}
.overview-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 16px}
#view .overview-section-heading h2{font-size:18px;margin:0}
.overview-section-heading span{font-size:11px;color:#7b8b9d}
.overview-table-wrap{width:100%;overflow-x:auto;max-height:none}
#overview-body .overview-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
#overview-body .overview-table th{font-size:11px;line-height:1.4;padding:10px 14px;white-space:normal;position:static;background:#f6f8fb;color:#738599}
#overview-body .overview-table td{font-size:12px;line-height:1.4;padding:9px 14px;white-space:nowrap;font-variant-numeric:tabular-nums}
#overview-body .overview-table th:first-child,#overview-body .overview-table td:first-child{width:19%;text-align:left;white-space:normal}
#overview-body .overview-table th:not(:first-child),#overview-body .overview-table td:not(:first-child){text-align:right}
#overview-body .overview-table .cal-record{font:inherit;font-weight:700;text-align:left;padding:0;line-height:1.4}
#overview-body .overview-table .overview-total td{background:#e9f1fa;font-weight:800;border-top:2px solid #d2dfed}
.overview-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 20px}
.overview-chart-panel{min-width:0;padding:16px;border:1px solid #dfe7ef;border-radius:14px;background:#fff}
.overview-chart-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
#view .overview-chart-panel h3{margin:0 0 4px;font-size:16px;font-weight:750;letter-spacing:-.3px}
#view .overview-chart-panel header p{margin:0;font-size:11px;color:#8795a6;line-height:1.45}
.overview-chart-wide{grid-column:1/-1}
.overview-ranking{display:grid;gap:12px}
.overview-rank-caption{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;line-height:1.4}
.overview-rank-caption span{font-weight:600;color:#425c75}
.overview-rank-caption strong{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.overview-rank-track{display:flex;align-items:center;gap:12px;margin-top:4px}
.overview-rank-track svg{width:100%;height:8px;display:block;min-width:0;flex:1}
.overview-rank-track small{min-width:46px;text-align:right;font-size:11px;color:#7b8b9d;font-variant-numeric:tabular-nums}
.overview-chart-bar.profit{fill:#39a587}.overview-chart-bar.expense{fill:#638aca}.overview-chart-bar.loss{fill:#d56360}
.overview-rank-caption .loss{color:#bd4d4b}
.overview-rank:focus-visible,.overview-month-svg g:focus-visible{outline:2px solid #86afd5;outline-offset:3px}
.overview-month-scroll{overflow-x:auto}
.overview-month-svg{display:block;width:100%;height:240px;min-width:600px;font:600 11px Manrope,sans-serif}
.overview-svg-amount{fill:#34546a;font-weight:750;font-size:11px}.overview-svg-amount.loss{fill:#bd4d4b}
.overview-svg-label{fill:#526a81;font-size:11px}.overview-month-svg .overview-chart-detail{fill:#8091a5;font-size:10px}
.overview-chart-empty{min-height:160px;display:grid;place-items:center;color:#8795a6}
.overview-year-stats{display:flex;flex-shrink:0;gap:24px}
.overview-year-stats>div{text-align:right}
.overview-year-stats span{display:block;color:#8392a3;font-size:10px}
.overview-year-stats strong{display:block;margin-top:2px;color:#34546a;font-size:17px;font-weight:750;white-space:nowrap}
.overview-mean-legend strong:before{content:"";display:inline-block;width:20px;margin-right:7px;vertical-align:middle;border-top:2px dashed #6c8ab0}
@media(max-width:1200px){:is(#overview-body,#profit-files-body) .overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}#overview-body .overview-table td{font-size:11px;padding:9px 8px}#overview-body .overview-table th{padding:9px 8px}.overview-chart-wide header{flex-wrap:wrap}}
@media(max-width:900px){.overview-charts{grid-template-columns:1fr}.overview-chart-wide{grid-column:auto}.overview-section-heading{align-items:flex-start;flex-direction:column;gap:4px}#overview-body .overview-table{min-width:690px}}
@media(max-width:760px){:is(#overview-body,#profit-files-body) .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}:is(#overview-body,#profit-files-body) .overview-metrics .metric{min-height:100px;padding:12px}:is(#overview-body,#profit-files-body) .overview-metrics .metric strong{font-size:clamp(17px,11.5cqw,28px)!important}:is(#overview-body,#profit-files-body) .overview-metrics .metric:last-child{grid-column:1/-1}.overview-period{margin-left:0}.overview-year-stats{width:100%;justify-content:space-between}.overview-year-stats>div{text-align:left}.overview-month-svg{height:220px}.overview-chart-panel{padding:14px}}

#notification-center{position:fixed;top:22px;right:24px;width:44px;z-index:40}#notification-bell{position:relative;width:44px;height:44px;padding:10px;border:1px solid #eadfdc;border-radius:13px;color:#cf554c;background:#fff4f1;box-shadow:0 5px 18px #263b5010}#notification-bell svg{width:24px;height:24px}#notification-bell span{position:absolute;right:-6px;top:-6px;min-width:18px;height:18px;padding:0 3px;border:2px solid #fff;border-radius:20px;background:#dc584f;color:white;font:800 10px/14px Manrope,sans-serif}#notification-panel{position:absolute;top:57px;right:0;width:390px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 108px);overflow:auto;border:1px solid #e2e8ef;border-radius:16px;background:white;box-shadow:0 12px 40px #25384e18}#notification-panel header{padding:17px 18px 15px;border-bottom:1px solid #edf0f3;display:flex;justify-content:space-between;align-items:center}#notification-panel header strong{font-size:15px;color:#25384f}#notification-panel header small{display:block;margin-top:3px;color:#8a98aa;font-size:11px}#notification-close{border:0;padding:0;width:28px;height:28px;background:transparent;font-size:22px;color:#8392a3}.notification-item{padding:13px 17px 9px;border-bottom:1px solid #edf0f3}.notification-item strong{font-size:12px;color:#34495f}.notification-item p{font-size:11px;color:#8a98aa;line-height:1.5;margin:4px 0}.notification-empty{padding:26px 20px}.notification-empty strong,.notification-empty span{display:block}.notification-empty span{font-size:12px;color:#8a98aa;margin-top:5px}.main>#tabs:empty+#view>.top,.overview-heading,.balance-hero{padding-right:60px!important}@media(max-width:560px){#notification-center{top:14px;right:16px}#notification-panel{top:53px;max-height:calc(100dvh - 90px)}}
/* Measured against the original screen at a 1440 px viewport. */
@media(min-width:761px){.sidebar{padding-left:17px;padding-right:17px}.navlink{padding-left:49px}.main{padding:46px 22.4px 40px}}
.finance-metrics .metric{min-height:126px}.finance-tabs{min-height:47px;margin-top:20px;margin-bottom:46px}.accounts-overview-head .debt-section-head{height:148px;display:flex;flex-direction:column;justify-content:center;margin-bottom:0}.finance-actions:has(#treasury-fix){gap:10px;margin:4px 0 24px}.finance-actions:has(#treasury-fix) button{height:44px;min-height:44px;padding:0 16px;border-radius:10px;box-shadow:0 7px 17px #1c49741a;white-space:nowrap}.finance-actions:has(#treasury-fix) button:first-child{width:213px;background:#1f70b7;border-color:#1f70b7;color:white}.finance-actions #treasury-fix{width:212px;border-color:#4c8b9761;background:linear-gradient(135deg,#fafdfeef,#e0f1f3c7);color:#286b73}.finance-actions #treasury-add{width:178px}.legacy-cash-add [type=submit]{display:block;margin-left:auto;min-height:38px;border:1px solid #b9d5ef;background:linear-gradient(135deg,#edf6ff,#dfeeff);color:#205f98;box-shadow:0 5px 13px #2666a31a}.finance-history{border:1px solid #d9e5f2;border-radius:15px;padding-top:0;overflow:hidden;background:white}.finance-history summary{min-height:48px;background:#f8fbfe;border:0;border-radius:0}.finance-history>div{padding:8px 14px}.finance-history.debt-payable summary{background:#fdf4f1}.finance-history.debt-receivable summary{background:#f3f8fc}@media(max-width:760px){.finance-metrics .metric{min-height:90px}.finance-tabs{margin-bottom:22px}.accounts-overview-head .debt-section-head{height:auto;min-height:110px}.finance-actions:has(#treasury-fix) button{max-width:100%}}
/* The same monthly register and report tab order as the legacy CRM. */
.bi-selection-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #dce7f0;border-radius:12px;background:#f6fafc;margin:0 0 16px}.bi-selection-label{color:#7d91a4;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.bi-selection-value{font-size:16px;color:#496783;font-weight:850}.period-chip{background:#edf4fb;color:#496783;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:700}.counterparty-search,.legacy-history-year,.history-name{display:block;margin:16px 0}.counterparty-search input,.legacy-history-year select,.history-name input{display:block;width:100%;margin-top:7px}.counterparties-grid{max-height:560px;border:1px solid #d9e4ef;border-radius:12px}.counterparties-grid table{min-width:900px}.counterparties-grid th,.counterparties-grid td{white-space:nowrap}.counterparties-grid th{position:sticky;top:0;background:#f1f6fb;z-index:1}.counterparties-grid tfoot td{position:sticky;bottom:0;background:#dcecff;font-weight:800;border-top:2px solid #3478bf}.counterparties-grid td:not(:first-child){text-align:right}.counterparties-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.counterparty-pages{display:flex;align-items:center;justify-content:space-between;margin-top:8px}#counterparty-analysis{margin-top:28px}.legacy-report-tabs{display:flex;gap:24px;overflow:auto;border-bottom:1px solid #dce7f0;margin:16px 0 22px}.legacy-report-tabs button{border:0;border-radius:0;background:none;white-space:nowrap;padding:12px 4px;color:#60758b;font-weight:600;box-shadow:none}.legacy-report-tabs button.selected{color:#1268b3;border-bottom:2px solid #1677d2}.cp-notice{padding:16px;border-radius:8px;line-height:1.6}.cp-notice.danger{background:#fce8e8;color:#9c3038}.cp-notice.success{background:#edf9f1;color:#267448}.cp-notice.warning{background:#fff8e5;color:#8e6812}.cp-notice.info{background:#eaf3fc;color:#315e8c}.history-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.history-metrics .metric strong{font-size:22px}.segmented-control{display:flex;gap:6px;margin:8px 0 16px}.segmented-control button{background:#edf2f7;color:#62758b;border:0}.segmented-control button.selected{background:#263e55;color:white}.analytics-horizon{margin-bottom:18px}@media(max-width:760px){.history-metrics,.counterparties-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-report-tabs{gap:14px}}
#account-register-fields{padding:4px 0 16px}#account-register-form fieldset{margin:0;padding:0;border:0;min-width:0}.account-edit-table{border-collapse:collapse;min-width:1100px;width:100%;font-size:12px}.account-edit-table th{font-size:11px;color:#6d8093;background:#f6f8fb;text-align:left;padding:8px;border:1px solid #e4e9ef}.account-edit-table td{height:38px;padding:0 4px;border:1px solid #e4e9ef;white-space:nowrap;background:white}.account-edit-table td:first-child{min-width:180px}.account-edit-table input:not([type=checkbox]),.account-edit-table select{border:0;border-radius:0;background:transparent;box-shadow:none;min-height:34px;height:34px;padding:4px;width:100%;min-width:100px;font-size:12px}.account-edit-table [data-account-field=balance]{text-align:right;max-width:150px}.account-edit-table td:nth-child(5){color:#8b9bae;padding:0 10px}.account-edit-table td:nth-child(6){min-width:240px}.account-delete-confirm{display:flex;align-items:center;gap:7px;margin:14px 0}.account-delete-confirm input{min-height:0}#account-register-save,#account-register-discard{margin:2px 10px 0 0}

.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.executive-kpi {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    padding: 19px 19px 17px;
    border: 1px solid #e2eaf3;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(35, 61, 89, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.executive-kpi:hover {
    transform: translateY(-3px);
    border-color: #c9dbef;
    box-shadow: 0 18px 38px rgba(35, 61, 89, .12);
}

.executive-kpi::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--kpi-color, #3478bf);
}

.executive-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.executive-kpi-label {
    color: #6b7f94;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.executive-kpi-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--kpi-color, #3478bf) 12%, white);
    color: var(--kpi-color, #3478bf);
    font-size: 13px;
    font-weight: 900;
}

.executive-kpi-value {
    margin-top: 16px;
    color: #102a43;
    font-size: clamp(1.3rem, 2vw, 1.82rem);
    line-height: 1;
    font-weight: 860;
    letter-spacing: -.045em;
    white-space: nowrap;
}

.executive-kpi-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    color: #7b8da1;
    font-size: 12px;
    line-height: 1.4;
}


.decision-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 12px 0 22px;
}

.decision-card {
    min-height: 112px;
    padding: 17px 18px;
    border: 1px solid #dfe8f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(35,61,89,.06);
}

.decision-card-label {
    color: #64788d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.decision-card-value {
    margin-top: 9px;
    color: #15395f;
    font-size: 19px;
    font-weight: 850;
}

.decision-card-note {
    margin-top: 5px;
    color: #718096;
    font-size: 13px;
    line-height: 1.4;
}


.executive-kpi-grid { gap:14px !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
.executive-kpi { min-height:150px !important; padding:19px 18px !important; border:1px solid #dde6ef !important; border-radius:16px !important; background:#fff !important; box-shadow:0 3px 16px #20344703 !important; transform:none !important; }
.executive-kpi-label { font-size:11px !important; letter-spacing:0 !important; line-height:1.5 !important; font-weight:700 !important; min-height:33px; }
.executive-kpi-value { margin-top:12px !important; color:#1c304b !important; font-size:24px !important; font-weight:800 !important; line-height:1.2 !important; letter-spacing:-.65px !important; }
.executive-kpi-meta { margin-top:10px !important; font-size:11px !important; line-height:1.5 !important; display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:3px !important; color:#8392a4 !important; }
    .executive-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
    .executive-kpi { padding:15px 12px !important; min-height:130px !important; }
    .executive-kpi-value { font-size:19px !important; }
    .executive-kpi-value { font-size:20px !important; }
.executive-kpi-grid { gap:12px !important; }
.executive-kpi { min-height:120px !important; padding:16px !important; border-radius:14px !important; }
.executive-kpi-label { font-size:10px !important; font-weight:700 !important; min-height:24px !important; }
.executive-kpi-value { margin-top:9px !important; font-size:22px !important; letter-spacing:-.5px !important; }
.executive-kpi-meta { margin-top:8px !important; font-size:10px !important; line-height:1.5 !important; }
    .executive-kpi { min-height:108px !important; padding:13px 12px !important; }
    .executive-kpi-value { font-size:19px !important; }
.executive-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.profit-files-grid{max-height:560px;border:1px solid #d9e4ef;border-radius:12px}.profit-files-grid table{min-width:2600px}.profit-files-grid th{position:sticky;top:0;background:#f1f6fb;white-space:nowrap}.profit-files-grid th:first-child,.profit-files-grid td:first-child{position:sticky;left:0;background:#f6f9fc;min-width:190px}.profit-files-grid td{white-space:nowrap;text-align:right}.profit-files-grid td:first-child{text-align:left}.profit-files-grid .profit-risk{background:#fff0f1;color:#bd3742;font-weight:700}.profit-files-grid .profit-watch{background:#fff6d8;color:#916000;font-weight:700}.profit-files-grid .profit-ok{background:#eaf8f1;color:#08764a;font-weight:700}.profit-attention{max-height:330px}.profit-attention td,.profit-attention th{white-space:nowrap}@media(max-width:1150px){.executive-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.executive-kpi-grid,.decision-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-kpi-grid .executive-kpi:last-child{grid-column:1/-1}}
#sales-metrics{margin:0 0 14px}#sales-metrics .metric{min-height:58px;padding:7px 12px;border-left:3px solid #3985bd;border-top:1px solid #dde6ef;border-radius:10px}#sales-metrics .metric strong{font-size:20px;line-height:1.2;margin-top:4px}#sales-metrics .metric small{font-size:11px}.sales-toolbar{margin-bottom:14px}.sales-toolbar h1{font-size:25px}.sales-filters-legacy{background:white;border:1px solid #b8d0e7;border-top:3px solid #287fc4;border-radius:12px;padding:12px;box-shadow:0 3px 12px #183f6710}.sales-register{background:transparent;border:0;overflow:visible}.sales-filters-top,.sales-filters-bottom{display:flex;align-items:end;gap:10px}.sales-filters-bottom{margin-top:10px}.sales-filters-top label,.sales-filters-bottom label{flex:1;min-width:0;font-weight:700;font-size:12px;color:#294964}.sales-filters-top label:first-child,.sales-filters-bottom label:first-child{flex:1.8}.sales-filters-bottom label:nth-child(2),.sales-filters-bottom label:nth-child(3){flex:.8}.sales-filters-legacy input,.sales-filters-legacy select{display:block;width:100%;margin-top:6px;height:38px;min-height:38px;font-weight:400}.sales-register .table-scroll{border:1px solid #d9e4ef;border-radius:12px}.sales-table th:first-child,.sales-table td:first-child{position:sticky;left:0;z-index:1;background:#f7faff}.sales-table td:first-child{font-weight:700;color:#23618d}.sales-table td{height:40px;padding:7px 12px;font-size:13px}@media(max-width:1100px){.sales-filters-top,.sales-filters-bottom{flex-wrap:wrap}.sales-filters-top label,.sales-filters-bottom label{min-width:150px}#sales-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:500px){#sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.payroll-hero .eyebrow{margin-bottom:10px}.payroll-period{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.payroll-period select{display:block;width:100%;margin-top:7px}.payroll-period #payroll-resume{grid-column:1/-1;justify-self:start}

/* Original two-direction debt register, with row navigation and compact expansion. */
.debt-register-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0 8px}.debt-register-heading h4{margin:0;font-size:16px}.debt-register-heading strong{font-weight:800;color:#18324f}.debt-register-group+.debt-register-group{border-top:1px solid #e4ebf3;margin-top:24px;padding-top:8px}
.registry-table{min-width:1000px}.registry-table tr[data-obligation]{cursor:pointer}.registry-table tr[data-obligation]:focus-visible{outline:2px solid #3182d9;outline-offset:-2px}.registry-table .debt-name{min-width:220px;font-weight:750;color:#18324f}.registry-table .debt-amount{text-align:right!important;font-weight:800;white-space:nowrap}.debt-category{display:inline-block;padding:3px 8px;border-radius:7px;background:#f0f5fa;color:#536b85;font-size:11px;white-space:nowrap}.registry-table .status{display:inline-block;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.registry-table .status.active{background:#e7f7ef;color:#15835c}.registry-table .status.closed{background:#eef2f6;color:#738195}.registry-table .status.paused{background:#fff4d6;color:#956100}.table-more-button{display:flex;width:100%;min-height:44px;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:#37658f;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.table-more-button:hover{background:#edf6ff}.registry-table tfoot td{padding:0!important;background:#f8fbfe}

.sales-table th:first-child,.sales-table td:first-child{width:58px;min-width:58px;max-width:70px;position:sticky;left:0;text-align:center;background:#fff;z-index:2}.sales-table th:nth-child(2),.sales-table td:nth-child(2){position:sticky;left:58px;min-width:220px;max-width:300px;background:#fff;z-index:2}.sales-table td:nth-child(2){color:#1765a5;font-weight:600;cursor:pointer}.sales-table th:first-child,.sales-table th:nth-child(2){background:#f7f9fc;z-index:3}.sales-table td{height:40px!important;padding:8px 12px!important;font-size:13px!important}.sales-table td[data-stage]{font-weight:600}.sales-table td[data-stage="КП"]{background:#f0eaff;color:#6645a3}.sales-table td[data-stage="Проверка"]{background:#fff3d9;color:#89620d}.sales-table td[data-stage="Договор"]{background:#e5f4f0;color:#257967}.sales-table td[data-stage="Заявки"],.sales-table td[data-stage="В работе"]{background:#e7f5ec;color:#287a4a}.sales-table td[data-stage="Отказ"]{background:#fdecef;color:#a64053}.sales-table-caption{margin:10px 0 0;font-size:12px}

/* Sales editor: same sections and inline task/event editors as the legacy workspace. */
.legacy-sales-editor{max-width:1080px;background:#fff;border:1px solid #dce5ef;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:14px}.legacy-sales-editor h1,.legacy-sales-editor h3,.legacy-sales-editor p{margin:0}.sales-main-form{display:flex;flex-direction:column;gap:16px}.sales-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sales-section{padding:9px 12px;margin:6px 0 0;border-radius:8px;background:#f0f5fa}.sales-section h4{margin:0;font-size:13px;line-height:1.5;color:#29455f}.legacy-sales-editor label{font-size:12px;color:#40566d;display:flex;flex-direction:column;gap:5px}.legacy-sales-editor input,.legacy-sales-editor select,.legacy-sales-editor textarea{background:#fbfcfe;border:1px solid #cbd8e6;border-radius:9px;color:#263e54}.legacy-sales-editor textarea{min-height:80px;padding:11px 12px;resize:vertical}.legacy-sales-editor [data-sale-field=comment]{min-height:240px}.legacy-sales-editor .sales-work-comment{min-height:360px}.legacy-sales-editor .sales-convert{flex-direction:row;align-items:center;gap:8px}.sales-convert input[type=checkbox]{width:18px;min-height:18px;height:18px}.legacy-sales-editor button{align-self:flex-start;min-height:36px}.legacy-sales-editor details{border:1px solid #dce5ef;border-radius:6px;padding:12px;margin:0}.legacy-sales-editor details[open]>summary{margin-bottom:14px}.legacy-sales-editor form{display:flex;flex-direction:column;gap:16px}.legacy-sales-editor .sale-event{border:0;border-top:1px solid #e3ebf3;border-radius:0;padding:12px 0;background:transparent}.legacy-sales-editor .sale-event textarea{min-height:240px}.legacy-sales-editor .sale-event p{margin:6px 0 14px}.legacy-sales-editor #sale-tasks{display:flex;flex-direction:column;gap:14px}.legacy-sales-editor .crew-scroll{margin:12px 0}.legacy-sales-editor .crew input{min-width:110px}.legacy-sales-editor .crew th,.legacy-sales-editor .crew td{padding:6px 8px}.legacy-sales-editor .crew{min-width:720px}.legacy-sales-editor #sale-save{margin-bottom:4px}@media(max-width:640px){.sales-field-pair{grid-template-columns:1fr}.sales-field-pair>div:empty{display:none}.legacy-sales-editor{padding:14px}}

.directory-heading{margin-bottom:20px}.directory-heading h1{margin:7px 0 3px}.directory-filters-legacy{display:grid;grid-template-columns:1fr 2fr 1fr;gap:16px;align-items:end}.directory-filters-legacy>button{justify-self:start}.directory-filters-legacy label{font-size:12px;color:#40566d}.directory-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.directory-meta .pages{flex:0 0 160px}.directory-clients td:first-child{color:#1467b4;font-weight:600;text-decoration:underline;cursor:pointer}.directory-legacy{border:1px solid #dce6ef;border-radius:10px;background:#fff}.directory-legacy td{height:42px!important;padding:8px 12px!important;font-size:12px!important}.directory-legacy th{height:38px!important;padding:8px 12px!important}.party-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.party-form-row.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.party-form-row.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.client-legacy-section{display:flex;flex-direction:column;gap:16px}.client-legacy-section>h2{margin:0}.client-debt-totals{grid-template-columns:1fr 1fr}.party-card:has(.client-legacy-section){padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:18px;display:flex;flex-direction:column}.party-card:has(.client-legacy-section)>.party-section{background:#fff;border:1px solid #dce5ef;border-radius:12px;padding:18px;margin:0}.client-legacy-section textarea{min-height:80px}.client-legacy-section .party-field:has([type=checkbox]){display:flex;flex-direction:row;align-items:center}.client-legacy-section input[type=checkbox]{width:18px;height:18px;min-height:18px}.party-card .client-debt-totals .metric{min-height:90px}.party-card .crew th,.party-card .crew td{padding:6px 8px}@media(max-width:760px){.directory-filters-legacy{grid-template-columns:1fr}.directory-meta{flex-wrap:wrap}.party-form-row.columns-3,.party-form-row.columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.party-form-row,.party-form-row.columns-3,.party-form-row.columns-4,.client-debt-totals{grid-template-columns:1fr}}

/* Salary keeps the familiar editable register on the page. */
.payroll-inline-form{margin:18px 0}.payroll-inline-form fieldset{border:0;padding:0;margin:0;min-width:0}.payroll-inline-table{border-collapse:collapse;min-width:1030px;width:100%;background:#fff}.payroll-inline-table th{background:#f1f5f9;padding:10px 12px;font-size:12px;text-align:left;border:1px solid #e1e7ef;color:#4c637b}.payroll-inline-table td{border:1px solid #e1e7ef;height:38px;padding:3px 6px;font-size:12px}.payroll-inline-table td:first-child{width:38px;text-align:center;color:#718096}.payroll-inline-table td:nth-child(2){min-width:220px}.payroll-inline-table td input,.payroll-inline-table td select{border:0;border-radius:0;background:transparent;min-height:30px;padding:5px;width:100%;font-size:12px}.payroll-inline-table td input[type=number]{min-width:90px;text-align:right}.payroll-inline-table td input[type=checkbox]{width:16px;min-height:16px;height:16px}.payroll-inline-table td button{min-height:24px;padding:2px 7px}.payroll-table-totals{grid-template-columns:1fr 1fr!important;margin:16px 0}.payroll-inline-actions{margin:14px 0}.payroll-accrual-selector{display:flex;align-items:center;gap:18px;margin:20px 0;flex-wrap:wrap;font-size:13px}.payroll-accrual-selector label{display:flex;align-items:center;gap:7px}.payroll-accrual-selector input{width:16px;height:16px;min-height:16px}.payroll-delete{padding:12px;border:1px solid #dce5ef;border-radius:8px;margin:15px 0}.payroll-delete summary{cursor:pointer}.payroll-delete p{font-size:13px}.payroll-inline-form .employee-scroll{border:1px solid #dce5ef;border-radius:5px;max-width:100%}

.worker-directory-heading h2{font-size:24px;margin:0}.worker-directory-filters{display:grid;grid-template-columns:3fr 1.3fr 1fr;gap:16px;margin:18px 0}.worker-directory-filters label{display:flex;align-items:center;gap:8px;font-size:12px}.worker-directory-filters input[type=checkbox]{width:16px;height:16px;min-height:16px}.register-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;font-weight:700;margin:14px 0}.register-badge{border-radius:999px;padding:6px 10px;background:#edf1f6;color:#62768b}.register-badge b{background:#fff;padding:2px 5px;border-radius:8px;margin-left:3px}@media(max-width:650px){.worker-directory-filters{grid-template-columns:1fr}}

.expense-calculation-settings{margin:12px 0 18px;padding:12px;border:1px solid #dce5ef;border-radius:8px}.expense-calculation-settings[open] summary{margin-bottom:14px}.expense-pareto-columns{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}.expense-pareto>svg{width:100%;height:auto;min-height:340px;max-height:420px;font:11px Manrope,sans-serif;fill:#334155}.expense-pareto .pareto-title{font-size:16px;font-weight:600;fill:#102a43}.expense-pareto-columns .employee-scroll{max-height:445px}.management-conclusion{padding:13px 16px;background:#fff;border:1px solid #e2e8f0;border-left:4px solid #3478bf;border-radius:9px;margin:10px 0;font-size:13px;line-height:1.6}.expense-driver{border-left-color:#d98924}.expense-tax{border-left-color:#168f69}.expense-providers{margin-top:26px}.expense-providers>.metric{max-width:350px;margin:14px 0}.expense-source,.expense-providers details{border:1px solid #dce5ef;border-radius:8px;padding:12px;margin:16px 0}.expense-source[open] summary,.expense-providers details[open] summary{margin-bottom:15px}.expense-table{width:100%}.expense-table td,.expense-table th{font-size:12px;padding:10px}.expense-table th{background:#f6f8fb}.expense-table td:not(:first-child){text-align:right}@media(max-width:950px){.expense-pareto-columns{grid-template-columns:1fr}}

.leasing-record{margin:22px 0 30px}.leasing-record>h4{font-size:17px;margin:0 0 6px}.leasing-record>.muted{margin:6px 0 14px}.lease-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}.lease-filters{display:grid;grid-template-columns:2.2fr 1.65fr .65fr;gap:15px;align-items:end;margin:18px 0 14px}.lease-filters label{display:block;font-size:12px;color:#536b85;margin-bottom:6px}.lease-filters .segmented-control{flex-wrap:wrap}.leasing-table{min-width:800px}.leasing-table td{padding:12px 15px}.leasing-table th:nth-child(3),.leasing-table th:nth-child(4){text-align:right}.leasing-record [data-lease-expand]{margin-top:12px}@media(max-width:900px){.lease-filters{grid-template-columns:1fr}.lease-metrics{grid-template-columns:1fr!important}}
.director-table{border:1px solid #dce6ef;border-radius:10px;max-height:560px;margin:12px 0 22px}.director-table th{position:sticky;top:0;background:#f2f7fb;white-space:nowrap}.director-table td{white-space:nowrap;text-align:right}.director-table th:first-child,.director-table td:first-child{text-align:left;min-width:190px}.director-table td.negative{color:#b93846}.director-table+h4{margin-top:26px}.director-pages{justify-content:flex-end;margin:8px 0 20px}#analytics-body>.management-conclusion{margin-bottom:10px}#director-trend{margin:20px 0 12px}
.settings-sections{margin-bottom:26px;flex-wrap:wrap}.settings-profile-row{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:12px 0}.settings-profile-row h3{margin:0 0 10px}.settings-profile-row>button{min-width:180px}.settings-user-row{display:grid;grid-template-columns:5fr 1.4fr .8fr;gap:22px;align-items:center;border-bottom:1px solid #dce6ef;padding:16px 0}.settings-user-row p{margin:8px 0 0}.settings-check{display:flex;align-items:center;gap:9px;font-size:13px}.settings-check input[type=checkbox]{width:17px;height:17px;min-height:17px}.settings-accountant-card{border:1px solid #dce6ef;border-radius:12px;padding:16px;margin:16px 0}.settings-accountant-card>button{margin-top:15px}.settings-payout-row{display:grid;grid-template-columns:2.5fr 2fr 1fr;gap:20px;align-items:center;border:1px solid #dce6ef;border-radius:12px;padding:16px;margin:12px 0}.settings-order-catalog{margin-top:24px}#settings-content hr,#dialog hr{border:0;border-top:1px solid #dce6ef;margin:20px 0}@media(max-width:650px){.settings-user-row,.settings-payout-row{grid-template-columns:1fr;gap:10px}.settings-profile-row{align-items:flex-start;flex-direction:column}}
#payroll-payment-inline{border:1px solid #dce6ef;border-radius:12px;padding:18px;margin:18px 0}#payroll-payment-inline fieldset{border:0;padding:0;display:grid;gap:16px;min-width:0}#payroll-payment-inline label,.payroll-statistic-select{display:flex;flex-direction:column;gap:7px;font-size:12px}#payroll-payment-inline>button{margin-top:18px}.payroll-statistic-select{margin:18px 0}.payroll-annual-grid{border:1px solid #d9e4ef;border-radius:16px;overflow:hidden;box-shadow:0 12px 30px rgba(31,71,112,.09)}.payroll-annual-grid table{min-width:1900px}.payroll-annual-grid th{background:#eaf2fb;white-space:nowrap;height:50px}.payroll-annual-grid td{height:48px;background:#fff;white-space:nowrap}.payroll-annual-grid th:first-child,.payroll-annual-grid td:first-child{position:sticky;left:0;min-width:230px;background:#f8fbff;font-weight:750}.payroll-annual-grid th:nth-child(2),.payroll-annual-grid td:nth-child(2){position:sticky;left:230px;min-width:140px;background:#f8fbff}.payroll-annual-grid tbody tr:last-child td,.payroll-year-summary tbody tr:last-child td{background:#dfeeff;color:#17395d;font-weight:800;border-top:2px solid #3b82f6}.payroll-annual-grid td:nth-child(n+4){text-align:right;font-weight:650}.payroll-year-summary{margin:20px 0}.payroll-year-summary table{min-width:1600px}.payroll-year-summary td,.payroll-year-summary th{white-space:nowrap}
.payroll-annual-grid table{table-layout:fixed;width:2024px;min-width:2024px}.payroll-annual-grid th,.payroll-annual-grid td{width:112px;min-width:112px}.payroll-annual-grid th:first-child,.payroll-annual-grid td:first-child{width:260px;min-width:260px;max-width:260px;overflow:hidden;text-overflow:ellipsis}.payroll-annual-grid th:nth-child(2),.payroll-annual-grid td:nth-child(2){left:260px;width:165px;min-width:165px;max-width:165px;overflow:hidden;text-overflow:ellipsis}.payroll-annual-grid th:nth-child(3),.payroll-annual-grid td:nth-child(3){width:110px;min-width:110px}.payroll-annual-grid th:last-child,.payroll-annual-grid td:last-child{width:145px;min-width:145px}

/* Original payment calendar appearance. */
    .integration-head {display:flex;align-items:center;gap:14px;padding:4px 2px 15px;margin-bottom:4px;border-bottom:1px solid #dce5f0}
    .integration-head-icon {width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:linear-gradient(135deg,#2476dc,#68a8ff);color:white;font-size:21px;box-shadow:0 8px 20px rgba(36,118,220,.22)}
    .integration-head h1 {font-size:25px;margin:0 0 2px;color:#17243a}
    .integration-head p {margin:0;color:#728096;font-size:13px}
    .st-key-payment_completion_card,.st-key-task_completion_card {margin:8px 0 18px}
    .st-key-payment_completion_card div[data-testid="stVerticalBlockBorderWrapper"],.st-key-task_completion_card div[data-testid="stVerticalBlockBorderWrapper"] {padding:14px 16px 13px!important;border:1px solid #d8e6f4!important;border-radius:16px!important;background:linear-gradient(135deg,#f7fbff,#eef6ff)!important;box-shadow:0 8px 22px rgba(28,65,108,.07)!important}
    .st-key-payment_completion_card h4,.st-key-task_completion_card h4 {margin:0!important;color:#1d3959!important;font-size:16px!important}
    .st-key-payment_completion_card div[data-testid="stCaptionContainer"],.st-key-task_completion_card div[data-testid="stCaptionContainer"] {margin-top:-5px!important}
    .integration-registry {display:flex;flex-direction:column;gap:5px;padding:7px;margin:10px 0 25px;border:1px solid #dce7f3;border-radius:17px;background:linear-gradient(145deg,#f4f8fc,#f9fbfd);box-shadow:0 10px 28px rgba(28,65,108,.075)}
    .integration-registry-row {position:relative;display:grid;align-items:center;gap:15px;min-height:60px;padding:9px 14px 9px 17px;overflow:hidden;border:1px solid #e8eef5;border-radius:12px;background:#fff;box-shadow:0 2px 7px rgba(31,64,102,.035);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
    .integration-registry-row:before {content:"";position:absolute;inset:9px auto 9px 0;width:3px;border-radius:0 4px 4px 0;background:#91a5bb}
    .integration-registry-row:hover {transform:translateY(-1px);border-color:#cedff0;box-shadow:0 7px 17px rgba(31,64,102,.085)}
    .tasks-registry .integration-registry-row {grid-template-columns:126px minmax(260px,1fr) 145px}
    .payments-registry .integration-registry-row {grid-template-columns:126px minmax(260px,1fr) 125px 145px}
    .integration-registry-row.status-active:before,.integration-registry-row.status-pending:before {background:#3985df}
    .integration-registry-row.status-completed:before,.integration-registry-row.status-paid:before {background:#2aae79}
    .integration-registry-row.status-overdue:before,.integration-registry-row.status-problem:before {background:#df5360}
    .integration-registry-row.status-cancelled:before {background:#d6a43a}
    .integration-registry-row.is-today {border-color:#b9d8fb;background:linear-gradient(90deg,#f3f8ff,#fff 38%);box-shadow:0 5px 16px rgba(42,113,196,.10)}
    .integration-registry-row.is-today:before {width:4px;background:#2476dc}
    .integration-registry-row.is-today .registry-date span {color:#155cae}
    .registry-date {display:flex;align-items:center;gap:8px;color:#3d5570;font-variant-numeric:tabular-nums;white-space:nowrap}
    .registry-date:before {content:"";width:8px;height:8px;border-radius:3px;background:#dbe9f8;box-shadow:inset 0 0 0 2px #6c9bd0}
    .registry-date span {font-size:14px;font-weight:820}
    .registry-main {min-width:0}
    .registry-main strong {display:block;overflow:hidden;color:#21354e;font-size:15px;font-weight:780;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
    .registry-main span {display:block;margin-top:4px;overflow:hidden;color:#7a8a9d;font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
    .registry-money {color:#173d73;font-size:15px;font-weight:870;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
    .registry-status {justify-self:start}
    .integration-status {display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:820;line-height:1;white-space:nowrap;border:1px solid transparent}
    .integration-status:before {content:"";width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px rgba(100,116,139,.1)}
    .integration-status.pending,.integration-status.active {color:#2563b8;background:#edf5ff;border-color:#d4e7ff}
    .integration-status.paid,.integration-status.completed {color:#16805a;background:#eaf8f2;border-color:#cceedd}
    .integration-status.overdue,.integration-status.problem {color:#c43b47;background:#fff0f1;border-color:#ffd7db}
    .integration-status.closed {color:#68768a;background:#f2f4f7;border-color:#e1e6ed}
    .integration-status.cancelled {color:#9a6a18;background:#fff7e7;border-color:#f7e3b7}
    @media(max-width:900px){
      .integration-registry-row{gap:10px;padding:9px 11px 9px 14px}
      .tasks-registry .integration-registry-row{grid-template-columns:112px minmax(220px,1fr) 120px}
      .payments-registry .integration-registry-row{grid-template-columns:112px minmax(220px,1fr) 105px 120px}
    }
    @media(max-width:650px){
      .tasks-registry .integration-registry-row,.payments-registry .integration-registry-row{grid-template-columns:105px minmax(0,1fr)}
      .registry-money{text-align:left}.registry-status{justify-self:start}.registry-main strong{white-space:normal}
    }

        .calendar-titlebar {position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:21px 24px;margin:14px 0 0;border-radius:20px 20px 0 0;background:linear-gradient(118deg,#122744 0%,#1d4b7e 65%,#2f82d7 100%);color:white;box-shadow:0 18px 44px rgba(19,52,92,.22)}
        .calendar-titlebar:before {content:"";position:absolute;z-index:-1;width:290px;height:290px;right:-75px;top:-155px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.22),rgba(255,255,255,0) 68%)}
        .calendar-titlebar:after {content:"";position:absolute;z-index:-1;width:180px;height:180px;right:310px;bottom:-150px;border-radius:50%;border:34px solid rgba(255,255,255,.045)}
        .calendar-eyebrow {font-size:10px;font-weight:800;letter-spacing:.13em;color:#9fc9f8;margin-bottom:5px}
        .calendar-main-title {font-size:22px;font-weight:850;letter-spacing:-.015em}
        .calendar-title-stats {display:flex;align-items:center;gap:8px}
        .calendar-title-stats>div {min-width:82px;padding:9px 11px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.1);text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 7px 18px rgba(10,35,66,.12);backdrop-filter:blur(8px)}
        .calendar-title-stats b {display:block;font-size:14px;color:#fff}.calendar-title-stats span {display:block;font-size:9px;color:#bcd5ef;text-transform:uppercase;margin-top:2px}
        .month-calendar-wrap {overflow-x:auto;margin:0 0 8px;padding:0 3px 24px}
        .month-calendar {display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:1px;min-width:1015px;border:1px solid #d8e3f0;border-top:0;border-radius:0 0 20px 20px;overflow:hidden;background:#dfe7f1;box-shadow:0 22px 50px rgba(31,64,106,.14)}
        .calendar-weekday {padding:12px 10px;background:linear-gradient(180deg,#f2f7fd,#e9f1fb);color:#4e6889;font-size:11px;font-weight:850;text-align:center;text-transform:uppercase;letter-spacing:.06em;text-shadow:0 1px 0 white}
        .calendar-day {position:relative;min-height:145px;padding:10px;background:linear-gradient(155deg,#fff 0%,#fcfdff 100%);transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
        .calendar-day:hover {z-index:10;background:#fff;box-shadow:0 10px 28px rgba(27,61,104,.14);transform:translateY(-1px)}.calendar-weekend {background:linear-gradient(155deg,#fbfdff,#f5f9fe)}
        .calendar-day-empty {background:#f6f8fb}
        .calendar-day-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
        .calendar-number {width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:10px;color:#293b55;font-weight:850;background:#f3f6fa;box-shadow:inset 0 0 0 1px rgba(53,82,119,.05)}
        .calendar-today {z-index:2;position:relative;background:linear-gradient(145deg,#eaf4ff,#f8fbff);box-shadow:inset 0 0 0 2px #438cf0,0 0 24px rgba(59,130,246,.15)}
        .calendar-today .calendar-number {background:linear-gradient(135deg,#2476dc,#5a9af2);color:white;box-shadow:0 5px 12px rgba(36,118,220,.25)}
        .today-label {color:#2563b8;font-size:10px;font-weight:800;text-transform:uppercase}
        .calendar-event-link {display:block;color:inherit!important;text-decoration:none!important}
        .calendar-event {position:relative;z-index:1;margin:0 0 7px;padding:8px 9px;border-radius:10px;border:1px solid rgba(255,255,255,.7);border-left:4px solid;font-size:11px;line-height:1.22;overflow:hidden;box-shadow:0 5px 13px rgba(28,52,86,.09),inset 0 1px 0 rgba(255,255,255,.65);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
        .calendar-event:hover {z-index:20;transform:translateY(-2px) scale(1.015);box-shadow:0 13px 28px rgba(28,52,86,.2);filter:saturate(1.08);overflow:visible}
        .event-label {font-size:9px;font-weight:900;letter-spacing:.055em;margin-bottom:3px;opacity:.78}
        .event-title {font-weight:750;color:#24364f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
        .event-meta {margin-top:3px;color:#617188;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
        .calendar-event:hover .event-title,.calendar-event:hover .event-meta {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
        .event-manage {display:none;margin-top:6px;padding-top:5px;border-top:1px solid rgba(40,72,112,.12);font-size:9px;font-weight:850;color:#2d65aa;text-transform:uppercase;letter-spacing:.04em}
        .calendar-event:hover .event-manage {display:block}
        .event-payment {background:linear-gradient(135deg,#e5f2ff,#f2f8ff);border-left-color:#2780df}.event-task {background:linear-gradient(135deg,#eee7ff,#f6f2ff);border-left-color:#7c55d9}
        .event-overdue,.event-problem {background:linear-gradient(135deg,#ffe9e9,#fff5f5);border-left-color:#e04a4a}.event-paid,.event-done {background:linear-gradient(135deg,#e4f7ed,#f1fbf6);border-left-color:#27a56d;opacity:.78}
        .event-more {font-size:10px;color:#54729a;font-weight:700;padding:2px 5px}
        @media(max-width:900px){.calendar-titlebar{align-items:flex-start;flex-direction:column}.calendar-title-stats{width:100%}.calendar-title-stats>div{flex:1}.calendar-day{min-height:138px}.month-calendar{grid-template-columns:repeat(7,145px)}}
        
.calendar-period label{display:flex;flex-direction:column;gap:7px;font-size:12px}.calendar-period{margin:16px 0}.calendar-legend{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px;font-size:12px}.calendar-search-tools{margin:24px 0}.calendar-completed{margin:16px 0}.integration-registry-row[role=button]{cursor:pointer}.integration-registry-row[role=button]:focus-visible,.calendar-event-link:focus-visible{outline:2px solid #2476dc;outline-offset:2px}.event-more{border:0;background:none;box-shadow:none}.calendar-event-link{border:0;background:none;padding:0;text-align:left}.calendar-titlebar{margin-top:20px}.cal-section-title[hidden]{display:none!important}
.report-legacy{padding:0;border:0;background:none}.report-legacy .report-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px}.report-mode{border:0;padding:0;display:flex;gap:20px;margin:18px 0}.report-mode legend{font-size:12px;margin-bottom:10px}.report-mode label{display:flex;align-items:center;gap:7px;font-size:13px}.report-mode input[type=radio]{width:16px;height:16px;min-height:16px}.report-legacy>h2{font-size:24px}.report-legacy .report-settings{margin:22px 0;background:transparent;box-shadow:none;padding:14px}.report-legacy #report-city-select{width:100%}.report-legacy #city-search{margin:8px 0}@media(max-width:650px){.report-mode{flex-direction:column;gap:10px}}

/* Accountant action strip occupies its original place above the period. */
.calendar-completion{padding:16px 20px;margin:0 0 18px}.calendar-completion h4{margin:0 0 8px}.calendar-completion p{margin:0 0 12px}.calendar-completion-fields{display:grid;grid-template-columns:1.05fr 2.65fr .8fr;gap:16px;align-items:end}.calendar-completion-fields label{min-width:0}.calendar-completion-fields select{width:100%}@media(max-width:760px){.calendar-completion-fields{grid-template-columns:1fr}.calendar-completion{padding:14px}}

/* Personal workspaces follow their original forms and registry. */
.personal-heading h1{margin:8px 0 7px}.personal-heading p{margin:0}.personal-heading>button{display:none}.employee-month{max-width:33.333%}.salary-payments{margin-top:22px}.salary-payments h2{font-size:18px}.absence-legacy-filters{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px;margin:20px 0}.absence-request-row{border:1px solid #dfe7ef;border-radius:8px;background:white;margin:9px 0}.absence-request-row>summary{padding:13px 16px;cursor:pointer;font-size:13px;font-weight:500}.absence-request-body{display:grid;gap:14px;padding:0 16px 16px}.absence-request-body p{margin:0;white-space:pre-wrap}.absence-request-body .party-form-row button{width:100%}#absence-request-form{border:1px solid #dfe7ef;border-radius:10px;padding:18px;margin:18px 0;background:white}#absence-request-form fieldset{display:grid;gap:16px}.absence-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:12px 0 20px}.absence-day{background:white;border:1px solid #dfe7ef;border-radius:8px;min-height:84px;padding:8px;min-width:0}.absence-day.empty{background:#edf1f6;border-color:transparent}.absence-weekday{color:#687c92;font-size:12px;text-align:center}.absence-day strong{font-size:13px;color:#304e68}.absence-event{font-size:10px;margin-top:4px;padding:3px 5px;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.absence-event.approved{background:#def2e8;color:#236c51}.absence-event.pending{background:#eef3fa;color:#456c94;border:1px dashed #9bb1c9}.absence-event.sick{background:#fff0d8;color:#8b611b}@media(max-width:640px){.absence-day{padding:4px;min-height:65px}.absence-event{font-size:9px;padding:2px}.absence-calendar{gap:3px}.absence-legacy-filters{grid-template-columns:1fr 1fr}.absence-legacy-filters>label:last-child{grid-column:1/-1}.employee-month{max-width:100%}}

.archive-heading h1{font-size:25px;margin:0}.archive-heading{margin-bottom:8px}.archive-intro{margin:0 0 20px}.archive-expander{border:1px solid #dce6f0;background:white;border-radius:12px;margin:12px 0}.archive-expander>summary{padding:14px 16px;min-height:46px;cursor:pointer;font-size:13px}.archive-month-body{padding:0 16px 16px}.archive-row{display:flex;align-items:center;justify-content:space-between;padding:5px 3px 4px;margin-top:2px;border-radius:8px;background:transparent}.archive-row:hover{background:rgba(37,99,235,.035)}.archive-name{font-size:14px;font-weight:800;color:#10243e}.archive-meta{margin-top:1px;color:#64748b;font-size:12px}.archive-version-actions{display:grid;grid-template-columns:3fr .8fr 1.1fr .8fr;gap:12px;margin:8px 0 16px}.archive-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 24px}.archive-overview-item{padding:16px 18px;border:1px solid #dce6f0;border-radius:15px;background:#fff}.archive-overview-label{color:#718096;font-size:12px;font-weight:780}.archive-overview-value{margin-top:5px;color:#15395f;font-size:22px;font-weight:850}.archive-filter-tools{margin:0 0 12px;font-size:12px}.archive-filter-tools .employee-filters{margin:12px 0}#archive-upload #calculation-panel>.panel{border:0;margin:0;padding:0 16px 16px;background:transparent}#archive-upload #calculation-panel>.panel>.top{display:none}@media(max-width:700px){.archive-overview{grid-template-columns:1fr}.archive-version-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.archive-version-actions>span{display:none}}

.directory-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.directory-stats .metric{padding:12px 14px;min-height:78px}.directory-tax-rule{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:14px 0;align-items:center}.directory-tax-rule>button{justify-self:start}.directory-mapping-form{padding:0 16px 16px;display:grid;gap:12px}.directory-mapping-form p{margin:0}.directory-status{display:grid;gap:8px;margin:16px 0}.directory-registry-actions{display:flex;gap:16px;margin:14px 0}.calculation-directory>.legacy-report-tabs{margin-top:0}.calculation-directory h3{margin:24px 0 12px}#directory-import-host>.panel{padding:0;border:0;background:transparent;box-shadow:none}#directory-import-host h2{font-size:18px}#directory-import-host .top{margin-bottom:10px}#insurance-register-form{margin-top:18px}#insurance-register-form input{min-width:110px;width:100%;background:transparent;border:0;border-radius:0}#insurance-register-form td:nth-child(2){width:55%}#insurance-register-form>button{margin-top:16px}#insurance-register-form fieldset>button{margin:10px 0}.calculation-directory .hero p{margin-top:10px}@media(max-width:760px){.directory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-tax-rule{grid-template-columns:1fr}.directory-registry-actions{flex-wrap:wrap}}

.directory-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.directory-stats .metric{padding:12px 14px;min-height:78px}.directory-tax-rule{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:14px 0;align-items:center}.directory-tax-rule>button{justify-self:start}.directory-mapping-form{padding:0 16px 16px;display:grid;gap:12px}.directory-mapping-form p{margin:0}.directory-status{display:grid;gap:8px;margin:16px 0}.directory-registry-actions{display:flex;gap:16px;margin:14px 0}.calculation-directory>.legacy-report-tabs{margin-top:0}.calculation-directory h3{margin:24px 0 12px}#directory-import-host>.panel{padding:0;border:0;background:transparent;box-shadow:none}#directory-import-host h2{font-size:18px}#directory-import-host .top{margin-bottom:10px}#insurance-register-form{margin-top:18px}#insurance-register-form input{min-width:110px;width:100%;background:transparent;border:0;border-radius:0}#insurance-register-form td:nth-child(2){width:55%}#insurance-register-form>button{margin-top:16px}#insurance-register-form fieldset>button{margin:10px 0}.calculation-directory .hero p{margin-top:10px}@media(max-width:760px){.directory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-tax-rule{grid-template-columns:1fr}.directory-registry-actions{flex-wrap:wrap}}
/* Original payment workspace: service tabs, selection, grouped statements. */
.payout-workspace{min-width:0}.payout-workspace>label{display:block;margin-bottom:6px}.payout-workspace h1{margin:20px 0}.payout-workspace h3{margin:24px 0 12px}.payout-workspace .muted{font-size:13px;line-height:1.6;margin:8px 0}.payout-workspace .notice{margin:14px 0}.payout-workspace .archive-expander{margin:16px 0}.payout-workspace .check{display:flex;align-items:center;gap:8px;margin:16px 0}.payout-workspace .check input{width:auto}.payout-workspace button{margin-right:6px}.payout-workspace #payout-body>label{display:block;margin-top:14px}.payout-workspace .payout-batch{padding:12px 0;border:0;border-bottom:1px solid var(--line)}.payout-workspace .payout-table{min-width:600px}.payout-workspace form>label{display:block;margin:12px 0}.payout-workspace form>label>input,.payout-workspace form>label>select{display:block;width:100%}.payout-multi{position:relative;margin:6px 0 14px}.payout-multi>summary{list-style:none;min-height:44px;padding:11px 38px 11px 14px;background:white;border:1px solid #d8e3ee;border-radius:9px;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px}.payout-multi>summary::after{content:'⌄';position:absolute;right:15px}.payout-multi-popup{position:absolute;top:100%;left:0;right:0;z-index:20;background:white;border:1px solid #d8e3ee;border-radius:9px;padding:10px;box-shadow:0 8px 20px #1e344d18}.payout-multi-popup>input{width:100%;margin-bottom:8px}.payout-multi-popup>div{max-height:260px;overflow:auto}.payout-multi-popup label{display:flex;gap:8px;padding:8px;font-size:13px}.payout-multi-popup label[hidden]{display:none}.payout-multi-popup input[type=checkbox]{width:auto}.payout-multi-popup label:hover{background:#f1f6fa}#payout-selected{margin-top:16px}#payout-single-form{max-width:100%}
/* The HTML hidden state must win over component flex/grid styling. */
[hidden]{display:none!important}
.payout-workspace .party-form-row>label,.calculation-upload-form .party-form-row>label{display:flex;flex-direction:column;gap:7px}.payout-workspace .party-form-row>label>input,.calculation-upload-form .party-form-row>label>select{width:100%}.calculation-upload-form{padding:0 18px 18px}.calculation-upload-form>p{font-size:13px;line-height:1.6;margin-top:0}.calculation-upload-form #calculation-vat-label{display:flex;flex-direction:column;gap:7px;margin-top:16px}.calculation-upload-form #calculation-vat-label>input{width:100%}.calculation-upload-form .calc-check{margin-top:12px}.payout-workspace .legacy-report-tabs{border:0;gap:6px;margin:4px 0 16px}.payout-workspace .legacy-report-tabs button{background:#eaf0f5;border:1px solid transparent;border-radius:8px;padding:10px 16px;color:#52677b}.payout-workspace .legacy-report-tabs button.selected{background:#24394f;color:white;border-color:#24394f}
.obligation-card-return{display:flex;align-items:center;gap:20px;margin:20px 0}.obligation-picker{display:flex;flex-direction:column;gap:7px;margin-bottom:20px}.obligation-workspace{width:86%;margin:auto}.obligation-inline{background:white;border:1px solid #dce5ed;border-radius:16px;overflow:hidden}.obligation-card-head{display:flex;justify-content:space-between;gap:24px;background:linear-gradient(110deg,#f4f9ff,#fff);border-bottom:1px solid #e0e8f0;padding:22px}.obligation-card-title>small{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#788ca2;font-weight:750}.obligation-card-title h2{font-size:23px;margin:8px 0 12px}.obligation-card-meta{display:flex;gap:6px;flex-wrap:wrap}.obligation-card-meta span{padding:5px 9px;border-radius:7px;font-size:10px;font-weight:700;background:#edf3f8;color:#49657c}.obligation-direction.payable{background:#fff0e5;color:#b26a37}.obligation-direction.receivable{background:#e6f5ef;color:#268167}.obligation-card-balance{display:flex;flex-direction:column;text-align:right;gap:7px}.obligation-card-balance small{color:#7b8fa2;font-size:11px}.obligation-card-balance b{font-size:25px}.obligation-card-balance em{font-style:normal;font-size:11px;color:#7b8fa2}.obligation-inline form{padding:4px 22px 20px}.obligation-inline fieldset,#obligation-operation-form fieldset{border:0;padding:0;margin:0}.obligation-form-section{display:flex;justify-content:space-between;align-items:center;padding:16px 0 10px;margin:6px 0 12px;border-bottom:1px solid #e9eef3}.obligation-form-section span{font-size:13px;font-weight:750}.obligation-form-section small{font-size:10px;color:#8998a9}.obligation-inline label,#obligation-operation-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;margin:8px 0}.obligation-inline input,.obligation-inline select,.obligation-inline textarea,#obligation-operation-form input,#obligation-operation-form select{width:100%}.obligation-inline .check{flex-direction:row;align-items:center}.obligation-inline input[type=checkbox]{width:auto}.obligation-delete{margin:0 22px 18px;padding:12px;background:#fffafa;border:1px solid #eadfe0;border-radius:10px;font-size:12px}.obligation-delete summary{cursor:pointer;font-weight:700;color:#8c4f54}#obligation-operation-form{padding:0 18px 18px}.obligation-inline [type=submit]{margin-top:14px}.obligation-workspace>.archive-expander{margin:16px 0}@media(max-width:1050px){.obligation-workspace{width:100%}.obligation-card-head{flex-direction:column}.obligation-card-balance{text-align:left}.obligation-form-section small{display:none}.obligation-card-return{flex-wrap:wrap}}

.vat-year{display:flex;flex-direction:column;gap:7px;margin:18px 0}.vat-year select{width:100%}.vat-register-row{display:grid;grid-template-columns:2.2fr 1.4fr .8fr;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid #dce6ef;font-size:13px}.vat-register-row .muted{margin:7px 0 0;font-size:12px}.vat-register-row button{width:100%}@media(max-width:640px){.vat-register-row{grid-template-columns:1.8fr 1fr 1fr;gap:8px}}

/* All monthly History/BI registers: full-height tables, aligned amounts, responsive rows. */
#history-body>.muted{font-size:12px;margin:0 0 12px}
#history-body .legacy-history-year{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:12px;font-weight:600}
#history-body .legacy-history-year select{width:120px;margin:0;min-height:36px;padding:6px 12px;border:1px solid #dce5ef;border-radius:8px;background:#fff;appearance:none}
#history-body .legacy-report-tabs{margin:10px 0 16px;gap:22px}
#history-body>h2{font-size:20px;margin:16px 0 12px}
#history-body .history-metrics{gap:12px;margin:0 0 16px}
#history-body .history-metrics .metric{padding:12px 14px;min-height:80px;border-radius:12px}
#history-body .history-metrics small{font-size:11px;line-height:1.35}
#history-body .history-metrics strong{font-size:clamp(17px,1.5vw,28px);line-height:1.3;margin-top:6px;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#history-body .history-name{max-width:520px;margin:12px 0;font-size:12px}
.history-grid{border:1px solid #dce5ef;border-radius:12px;background:#fff;box-shadow:0 3px 12px #203c5605;overflow:visible}
.history-data-table{width:100%;min-width:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-variant-numeric:tabular-nums}
.history-data-table th{background:#f2f6fb;padding:10px 9px;text-align:right;color:#62758b;vertical-align:middle;border-bottom:1px solid #dce5ef}
.history-data-table th:first-child{border-top-left-radius:12px;text-align:left}
.history-data-table th:last-child{border-top-right-radius:12px}
#history-table .history-data-table th button{border:0;border-radius:4px;background:none;box-shadow:none;color:inherit;font-size:11px;font-weight:700;padding:0;min-height:30px;line-height:1.4;text-align:inherit;width:100%;white-space:normal}
#history-table .history-data-table th button:hover{color:#086acb}
#history-table .history-data-table th button:focus-visible{outline:2px solid #0871db;outline-offset:3px}
.history-data-table td{font-size:12px;line-height:1.4;padding:9px;border-bottom:1px solid #e8eef5;color:#30465d;vertical-align:middle}
.history-data-table tbody tr:nth-child(even){background:#fafcfe}
.history-data-table tbody tr:hover{background:#f0f6fc}
.history-data-table .history-month{font-weight:600;text-align:left;white-space:normal}
.history-data-table .history-number{text-align:right;white-space:nowrap}
.history-data-table .positive{color:#237b60;font-weight:650}
.history-data-table .negative{color:#c04d4d;font-weight:650;background:#fff4f3}
.history-data-table .history-total td{background:#eaf2fb;border-top:2px solid #d2e0ef;border-bottom:0;font-weight:800;padding-top:11px;padding-bottom:11px}
.history-data-table .history-total td:first-child{border-bottom-left-radius:12px}
.history-data-table .history-total td:last-child{border-bottom-right-radius:12px}
.history-data-table .history-empty{padding:24px;text-align:center;color:#718399}
#history-charts{margin-top:24px}
@media(min-width:1101px) and (max-width:1399px){.history-data-table td{font-size:11px;padding:8px 6px}.history-data-table th{padding:8px 6px}#history-table .history-data-table th button{font-size:10px}#history-body .history-metrics{gap:8px}#history-body .history-metrics .metric{padding:10px}}
@media(max-width:1100px){
 #history-body .history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 .history-data-table,.history-data-table tbody,.history-data-table tfoot{display:block;width:100%}
 .history-data-table thead{display:none}
 .history-data-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px;border-bottom:1px solid #dce5ef}
 .history-data-table td{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;padding:7px 8px;font-size:12px;white-space:normal!important;min-width:0}
 .history-data-table td:before{content:attr(data-label);font-size:11px;line-height:1.4;font-weight:500;text-align:left;color:#6d8094}
 .history-data-table td span{white-space:nowrap;text-align:right}
 .history-data-table .history-month{grid-column:1/-1;font-size:14px;padding-bottom:10px;color:#244d70}
 .history-data-table .history-month:before{display:none}
 .history-data-table .history-total{background:#eaf2fb;border-bottom:0;border-radius:0 0 12px 12px}
 .history-data-table .history-total td{border:0;padding:7px 8px;background:none}
 .history-data-table .history-empty{grid-column:1/-1}
}
@media(max-width:650px){#history-body .history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.history-data-table tr{grid-template-columns:1fr;padding:10px}.history-data-table td{padding:6px 4px}.history-data-table .history-total td{padding:6px 4px}}

.history-data-table caption.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.history-mobile-sort{display:none}
@media(max-width:1100px){.history-mobile-sort{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font-size:12px}.history-mobile-sort select{max-width:75%;font-size:12px}}

/* Clients register: a compact header, a single aligned filter bar and readable records. */
.clients-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 22px;padding-right:52px}
.clients-title{display:flex;align-items:center;gap:12px}.clients-title h1{font-size:28px;line-height:1.25;margin:0;color:#20364a;font-weight:800}
.clients-total{display:inline-flex;align-items:center;padding:5px 10px;background:#eaf2fb;color:#3b658c;border:1px solid #dbe8f5;border-radius:9px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.clients-heading p{margin:7px 0 0;font-size:12px;color:#74879a;line-height:1.5}
.clients-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.clients-actions button{min-height:40px;font-size:12px;white-space:nowrap;border-radius:9px;padding:10px 15px}
.clients-toolbar{border:1px solid #dce5ef;background:white;border-radius:14px 14px 0 0;box-shadow:0 3px 12px #203c5604}
.clients-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,280px) auto;gap:16px;align-items:end;padding:18px 18px 14px}
.clients-filters label{display:block;font-size:11px;line-height:1.4;font-weight:650;color:#6d8095;min-width:0}
.clients-search-input,.clients-select{position:relative;margin-top:7px}.clients-search-input svg{position:absolute;width:18px;height:18px;left:13px;top:12px;fill:none;stroke:#8198af;stroke-width:1.8;pointer-events:none}
.clients-filters input,.clients-filters select{display:block;width:100%;height:42px;margin:0;border:1px solid #d5e1ee;border-radius:9px;background:#fafcfe;font-size:13px;color:#2d455d;font-weight:500}
.clients-filters input{padding:10px 12px 10px 40px}.clients-filters input::placeholder{color:#94a2b3;font-weight:400}
.clients-filters select{appearance:none;padding:10px 34px 10px 12px}.clients-select:after{content:'⌄';position:absolute;right:13px;top:9px;color:#6d849b;pointer-events:none;font-size:16px}
.clients-filters input:focus,.clients-filters select:focus{background:#fff}
.clients-filters>button{height:42px;padding:9px 16px;font-size:12px;background:#f6f9fc;color:#557089;border-color:#e0e8f0}
.clients-filters>button:disabled{opacity:.45}
.directory-meta.clients-meta{margin:0;padding:11px 18px;border-top:1px solid #edf1f6;min-height:58px;gap:12px}
.clients-meta #directory-count{font-size:11px;color:#7b8da0;font-variant-numeric:tabular-nums}
.clients-meta .pages{display:flex;align-items:center;gap:6px;flex:0 0 auto;background:#f5f8fc;border:1px solid #e4ebf3;border-radius:9px;padding:4px;font-size:11px;color:#647b90}
.clients-meta .pages input{width:42px;height:28px;min-height:0;padding:3px;text-align:center;border:0;background:transparent;font-size:12px;font-weight:650;appearance:textfield}
.clients-meta .pages input::-webkit-inner-spin-button{appearance:none}
.clients-meta .pages button{height:28px;min-width:28px;padding:0;font-size:18px;border:0;background:white;border-radius:6px}
.clients-meta #directory-pages{padding:0 6px 0 0;white-space:nowrap}
#table.clients-register{border:1px solid #dce5ef;border-top:0;border-radius:0 0 14px 14px;scrollbar-width:thin;scrollbar-color:#c4d2e1 transparent;scrollbar-gutter:auto}
#table.clients-register .directory-clients{width:100%;min-width:0;table-layout:fixed}
#table.clients-register th{height:42px!important;padding:10px 14px!important;background:#f4f7fb;text-transform:none;color:#70859b;font-size:11px!important;font-weight:650;line-height:1.4}
#table.clients-register td{padding:11px 14px!important;height:auto!important;min-height:44px;font-size:12px!important;font-weight:500;color:#41586d;line-height:1.5!important;border-bottom:1px solid #e9eef5;border-left:0!important;white-space:normal;overflow-wrap:anywhere}
#table.clients-register tr{background:#fff}#table.clients-register tbody tr:nth-child(even){background:#fbfcfe}#table.clients-register tbody tr:hover{background:#f0f6fd}
#table.clients-register tr:focus-visible{outline:2px solid #2582da;outline-offset:-2px}
#table.clients-register th:first-child{width:30%}#table.clients-register th:nth-child(2){width:13%}#table.clients-register th:nth-child(3){width:16%}#table.clients-register th:nth-child(4){width:16%;text-align:right}#table.clients-register th:nth-child(5){width:11%}#table.clients-register th:nth-child(6){width:14%}
#table.clients-register td:first-child{text-decoration:none;color:#255b87}
#table.clients-register .client-name-link{border:0;background:none;padding:0;text-align:left;font:inherit;font-weight:700;color:#285c89;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
#table.clients-register .client-name-link:hover{color:#0868cf;text-decoration:underline}
#table.clients-register .client-col-phone{font-variant-numeric:tabular-nums;white-space:normal}
#table.clients-register .client-col-balance{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.client-balance.has-debt{color:#b85b35;font-weight:750}.client-balance.no-debt{color:#8a9aaa;font-weight:500}
@media(max-width:1200px){.clients-heading{align-items:flex-start;gap:16px}.clients-actions{justify-content:flex-end;max-width:330px}#table.clients-register th,#table.clients-register td{padding:10px!important}.clients-filters{grid-template-columns:minmax(180px,1fr) 210px auto;gap:10px}}
@media(max-width:900px){.clients-heading{flex-direction:column;padding-right:0;margin-bottom:16px}.clients-actions{max-width:none;justify-content:flex-start}.clients-filters{grid-template-columns:minmax(0,1fr) auto}.clients-search{grid-column:1/-1}.clients-filters .clients-source{min-width:0}#table.clients-register{max-height:none!important;overflow:visible}#table.clients-register table,#table.clients-register tbody{display:block;width:100%}#table.clients-register thead{display:none}#table.clients-register tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #dce5ef;padding:10px}#table.clients-register td{display:flex;flex-direction:column;gap:3px;text-align:left!important;padding:7px!important;border:0;min-width:0}#table.clients-register td:before{content:attr(data-label);font-size:10px;color:#8294a7;font-weight:500}#table.clients-register td:first-child{grid-column:1/-1;width:auto;font-size:14px!important}#table.clients-register td:first-child:before{display:none}}
@media(max-width:480px){.clients-title h1{font-size:25px}.clients-actions{width:100%;gap:8px}.clients-actions button{flex:1;padding:9px 10px;font-size:11px}.clients-filters{padding:14px;gap:12px}.directory-meta.clients-meta{padding:10px 14px;flex-wrap:wrap}.clients-meta #directory-count{font-size:10px}}

/* Account balances: compact rows and explicit, aligned group totals. */
#view .treasury-accounts-view .balance-hero{margin-bottom:16px!important}
#view .treasury-accounts-view .balance-hero p{display:none}
.treasury-accounts-view .finance-metrics{gap:12px;margin-bottom:14px}
.treasury-accounts-view .finance-metrics .metric{min-height:82px;padding:12px 16px;border-radius:12px}
.treasury-accounts-view .finance-metrics .metric strong{font-size:clamp(18px,1.6vw,28px);line-height:1.35;margin-top:5px;white-space:normal;overflow-wrap:anywhere}
.treasury-accounts-view .finance-tabs{margin:12px 0 20px;min-height:40px}
.accounts-section-title{display:flex;align-items:center;gap:12px;margin:0 0 12px}.accounts-section-title h2{font-size:21px;margin:0}.accounts-section-title>span{font-size:11px;color:#8092a5}
.accounts-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.accounts-kpi{background:#fff;border:1px solid #dce6ef;border-radius:12px;min-width:0;padding:14px 16px;display:flex;flex-direction:column;justify-content:center;gap:7px;min-height:88px}
.accounts-kpi small{font-size:11px;line-height:1.4;color:#74879b;font-weight:600}.accounts-kpi strong{font-size:clamp(18px,1.6vw,28px);font-weight:800;line-height:1.3;color:#2b435a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.accounts-kpi-total{background:#eaf3fe;border-color:#bcd6f1;box-shadow:inset 3px 0 #1775cd}.accounts-kpi-total small{color:#34638e}.accounts-kpi-total strong{color:#155995}
#treasury-table.accounts-modern .finance-actions{gap:10px;margin:0 0 20px;flex-wrap:wrap}
#treasury-table.accounts-modern .finance-actions button{width:auto;min-height:38px;height:38px;padding:0 15px;box-shadow:none;border-radius:8px;font-size:12px}
#treasury-table.accounts-modern .account-ledger{margin:0 0 18px;border-radius:12px;border-color:#dce6ef;box-shadow:0 3px 12px #203c5604}
.accounts-modern .account-ledger-head{padding:12px 15px;background:#fff;gap:12px}
.accounts-modern .account-ledger-head>strong{font-size:15px;font-weight:750;color:#2d4a65}
.accounts-modern .account-ledger-head .account-count{font-size:10px;font-weight:600;color:#7a8da0;background:#f0f5fa;padding:4px 8px;border-radius:7px}
.accounts-modern .account-ledger-table{min-width:0}
.account-width-name{width:27%}.account-width-bank{width:17%}.account-width-entity{width:20%}.account-width-money{width:18%}.account-width-date{width:18%}
#view .accounts-modern .account-ledger-table th{padding:8px 12px;text-transform:none;white-space:normal;font-size:11px!important}
#view .accounts-modern .account-ledger-table td{padding:8px 12px;line-height:1.4!important;font-size:12px!important;font-variant-numeric:tabular-nums}
.accounts-modern .account-ledger-table .account-name strong{display:block;font-weight:650;line-height:1.4}
#view .accounts-modern .account-ledger-table .account-bank{font-weight:500}
#view .accounts-modern .account-ledger-table .account-date{white-space:normal;font-size:11px!important}
.accounts-modern .account-ledger-table .account-auto-row{background:#fff8e6}
.accounts-modern .account-ledger-table .account-auto-row td{background:#fff8e6!important;border-top:0}
.accounts-modern .account-ledger-table .account-auto-row td:first-child{box-shadow:inset 3px 0 #e7b342}
.accounts-modern .account-auto-badge{font-size:9px!important;font-weight:600!important;letter-spacing:0;text-transform:none;background:#ffedb8;color:#8a5b09!important;padding:2px 6px;margin-left:6px!important}
.accounts-modern .account-money-heading{text-align:right}
#view .accounts-modern .account-ledger-table tfoot th,#view .accounts-modern .account-ledger-table tfoot td{background:#e8f1fb!important;border-top:2px solid #c9daec;border-bottom:0;padding:12px;font-weight:800!important;color:#254b72!important;font-size:13px!important}
.accounts-modern .account-group-total th{text-align:left}
@media(max-width:1200px){.accounts-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.accounts-modern .account-ledger-table td,.accounts-modern .account-ledger-table th{padding-left:8px!important;padding-right:8px!important}}
@media(max-width:800px){.accounts-modern .account-ledger-table colgroup,.accounts-modern .account-ledger-table thead{display:none}.accounts-modern .account-ledger-scroll{overflow:visible}.accounts-modern .account-ledger-table,.accounts-modern .account-ledger-table tbody,.accounts-modern .account-ledger-table tfoot{display:block;width:100%}.accounts-modern .account-ledger-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:9px 10px;border-bottom:1px solid #e0e8f0}.accounts-modern .account-ledger-table tbody td{display:flex;flex-direction:column;gap:3px;min-width:0;border:0;text-align:left;white-space:normal!important}.accounts-modern .account-ledger-table tbody td:before{content:attr(data-label);font-size:10px;color:#8093a7;font-weight:500}.accounts-modern .account-ledger-table .account-name{grid-column:1/-1}.accounts-modern .account-ledger-table .account-name:before{display:none}.accounts-modern .account-ledger-table tbody tr:nth-child(even) td{background:none}.accounts-modern .account-ledger-table tfoot tr{display:grid;grid-template-columns:1fr auto;background:#e8f1fb;border-top:2px solid #c9daec}.accounts-modern .account-ledger-table tfoot td:last-child{display:none}#view .accounts-modern .account-ledger-table tfoot th,#view .accounts-modern .account-ledger-table tfoot td{border:0}.accounts-section-title{flex-wrap:wrap;gap:6px}}
@media(max-width:480px){.accounts-cards{gap:8px}.accounts-kpi{padding:12px;min-height:84px}.accounts-kpi strong{font-size:18px}.accounts-kpi small{font-size:10px}.accounts-modern .account-ledger-head{align-items:flex-start}.accounts-modern .account-ledger-head>strong{font-size:14px}.accounts-modern .account-count{white-space:nowrap}}

/* Shared compact indicators: one scale throughout the CRM. */
#view .metrics{gap:12px;align-items:stretch}
#view .metrics>.metric{
 min-height:76px!important;padding:10px 14px!important;border-left-width:1px;
 border-radius:12px;box-shadow:none;container-type:inline-size;min-width:0;
 display:flex;flex-direction:column;justify-content:center;gap:4px;
}
#view .metrics>.metric small{font-size:11px!important;line-height:1.35!important;min-height:0!important;margin:0!important;letter-spacing:0;font-weight:600;color:#637589}
#view .metrics>.metric strong{font-size:clamp(16px,10.5cqw,28px)!important;line-height:1.25!important;margin:0!important;letter-spacing:-.45px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
#view .metrics>.metric strong+small{font-size:10px!important;font-weight:400;color:#7c8998}
#view #sales-metrics>.metric{min-height:58px!important;padding:7px 12px!important}
#view .finance-metrics>.metric{border:1px solid #dfe6ee;border-top:3px solid #98a7b7;background:#fff}
#view .finance-metrics>.metric strong{color:#263c50}
#view .finance-metrics>.metric-income{border-top-color:#48a487;background:#fbfefc}
#view .finance-metrics>.metric-income strong{color:#22795e}
#view .finance-metrics>.metric-expense{border-top-color:#d8a052;background:#fffdf8}
#view .finance-metrics>.metric-expense strong{color:#92621e}
#view .finance-metrics>.metric-negative{border-top-color:#d77c7c;background:#fffafa}
#view .finance-metrics>.metric-negative strong{color:#b54848}
#view .finance-tabs{margin-top:14px;margin-bottom:22px;min-height:42px}
#view .balance-hero{margin-bottom:18px}
#view .balance-hero h1{margin-top:8px;margin-bottom:8px}
#view .balance-hero p{margin-bottom:0}
.cash-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 14px}
.cash-section-heading h2{font-size:22px;margin:0 0 4px;color:#263c50}
.cash-section-heading p,.cash-section-heading>span{font-size:12px;color:#728294;margin:0}
.cash-section-heading>span b{color:#42566b;font-weight:600}
#cash-body .cash-summary{margin-bottom:18px}
#view .dividend-focus{padding:16px;border:1px solid #dfe6ee;border-radius:12px;background:#fff;box-shadow:none;color:#263c50;margin:16px 0}
#view .dividend-focus__eyebrow{color:#718092;font-size:10px;letter-spacing:.04em}
#view .dividend-focus__title{color:#263c50;font-size:15px;margin:5px 0 12px}
#view .dividend-flow{gap:10px}
#view .dividend-flow__item{min-height:76px;padding:10px 12px;background:#f6f8fa;border:1px solid #e7ecf1;border-radius:9px;box-shadow:none;container-type:inline-size}
#view .dividend-flow__label{font-size:11px;color:#637589;min-height:0;margin:0 0 6px}
#view .dividend-flow__value{font-size:clamp(16px,10.5cqw,26px);line-height:1.25;color:#263c50;letter-spacing:-.4px;font-weight:800;white-space:nowrap;text-shadow:none}
#view .dividend-flow__item:last-child{background:#fffaf0;border-color:#f0dfba}
#view .dividend-flow__item:last-child .dividend-flow__value{color:#92621e}
#view .dividend-averages{margin:16px 0}
#dividend-chart{overflow-x:auto}
#view .executive-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
#view .executive-kpi{min-height:84px!important;padding:10px 14px!important;container-type:inline-size}
#view .executive-kpi-label{min-height:0!important;font-size:11px!important}
#view .executive-kpi-value{margin-top:5px!important;font-size:clamp(16px,10.5cqw,28px)!important}
#view .executive-kpi-meta{margin-top:4px!important}
@media(max-width:1200px){#view .executive-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){
 #view .metrics{gap:8px}
 #view .metrics>.metric{padding:9px 11px!important;min-height:72px!important}
 #view .executive-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .cash-section-heading{align-items:flex-start;flex-direction:column;gap:6px}
 #view .dividend-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Keep chart values distinct from grids, reference lines and neighbouring series. */
.overview-svg-amount,.crm-chart-value,.crm-chart .bartext{paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;font-variant-numeric:tabular-nums}
.crm-chart{min-width:0;max-width:100%}
.crm-chart-title{font-size:17px;line-height:1.4;margin:12px 0 4px;color:#263c50}
.crm-chart-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.crm-chart-canvas{min-width:0}
.crm-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.crm-chart-heading h3{margin:0;font-size:17px}
.crm-chart-heading>span{font-size:12px;color:#6d7f91}
.crm-chart-legend{display:flex;gap:18px;margin:14px 0 2px;color:#62768a;font-size:12px}
.crm-chart-legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;background:#8d9eaf}
.crm-chart-legend .dividend-fact-key:before{background:#3182db}
.dividend-chart-svg{display:block;min-width:680px;width:100%;height:auto;max-height:420px;font-family:Manrope,sans-serif}
@media(max-width:760px){.crm-chart-title,.crm-chart-heading h3{font-size:15px}}

.overview-month-svg{width:auto;min-width:100%;height:250px}

#profit-files-body .profit-month-label{display:flex;align-items:center;gap:14px;min-width:0}
#profit-month{min-height:38px;width:300px;max-width:100%;border:1px solid #cfdeec;border-radius:9px;background:#fff;color:#29465f;font-size:14px;font-weight:650;padding:7px 12px}
@media(max-width:760px){#profit-files-body .bi-selection-banner{align-items:flex-end;gap:10px;padding:12px}#profit-files-body .profit-month-label{display:grid;gap:6px;flex:1}#profit-month{width:100%;min-width:0;font-size:12px}#profit-files-body .period-chip{flex-shrink:0;font-size:10px;padding:7px 9px}}

/* Branded sign-in: company yellow meets the CRM's navy and blue palette. */
.auth-screen{min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:48px 40px;background:radial-gradient(ellipse at 8% 15%,#234b61 0,transparent 57%),linear-gradient(130deg,#152e40,#0e1d2c);color:#f7fafc;position:relative;isolation:isolate}
.auth-screen::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#92b9ce05 1px,transparent 1px),linear-gradient(90deg,#92b9ce05 1px,transparent 1px);background-size:64px 64px;mask-image:linear-gradient(to right,#000,transparent 80%)}
.auth-layout{width:100%;max-width:1120px;display:grid;grid-template-columns:1.1fr 1fr;gap:100px;align-items:center}
.auth-brand{min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;padding:18px 0}
.auth-eyebrow{font-size:10px;font-weight:700;letter-spacing:2.5px;color:#acbfcd;display:flex;align-items:center;gap:12px}
.auth-eyebrow>span{width:22px;height:3px;background:#f4d83c;border-radius:2px}
.auth-identity{padding:38px 0 44px}.auth-mark{display:block;width:210px;height:auto;margin:0 0 12px -10px}
.auth-wordmark{font-size:clamp(27px,3.1vw,43px);font-weight:850;font-style:italic;letter-spacing:-1.5px;white-space:nowrap;line-height:1.2;color:#fff}.auth-wordmark>span{color:#f4d83c}
.auth-brand-rule{width:64px;height:4px;background:#f4d83c;margin:24px 0 18px;border-radius:2px}
.auth-brand-caption{font-size:17px;color:#c2d0da;margin:0;letter-spacing:.1px}.auth-brand-bottom p{font-size:20px;font-weight:650;color:#eef4f8;margin:0 0 10px;letter-spacing:-.3px}.auth-brand-bottom>span{font-size:12px;color:#9bb2c4}
.auth-entry{width:100%;max-width:450px;justify-self:end;min-width:0}
.auth-screen .login{width:100%;max-width:none;margin:0;border:1px solid #ffffffa8;border-radius:24px;background:#fff;padding:42px 38px 30px;box-shadow:0 24px 80px #030e1d40;color:#1c3042}
.auth-form-tag{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#708398;margin-bottom:17px}
.auth-screen .login h1{font-size:29px;font-weight:800;line-height:1.25;letter-spacing:-.9px;margin:0 0 12px;color:#1b3042}
.auth-form-intro{font-size:14px;line-height:1.6;color:#687b8e;margin:0 0 29px}
.auth-screen .login label{font-size:13px;font-weight:700;color:#344e64;margin:0 0 19px}
.auth-screen .login input{width:100%;height:50px;padding:12px 14px;margin-top:8px;background:#f8fafc;border:1px solid #dce5ed;border-radius:10px;font-size:16px;color:#1b3042;transition:border-color .15s,box-shadow .15s}
.auth-screen .login input::placeholder{color:#8a9aa9;font-weight:400}.auth-screen .login input:focus{outline:none;border-color:#2374c9;box-shadow:0 0 0 3px #2374c918;background:#fff}
.auth-screen .login button.primary{display:flex;align-items:center;justify-content:center;gap:13px;width:100%;height:50px;margin-top:8px;border:1px solid #0968ce;border-radius:10px;background:#0968ce;color:#fff;font-size:15px;font-weight:750;box-shadow:0 4px 12px #0968ce20}
.auth-screen .login button.primary:hover{background:#085cb8}.auth-screen .login button.primary:focus-visible{outline:3px solid #f4d83c;outline-offset:3px}.auth-screen .login button.primary:disabled{opacity:.6;cursor:wait}
.auth-help{font-size:11px;line-height:1.6;color:#758596;text-align:center;margin:25px 0 0;padding-top:21px;border-top:1px solid #edf1f5}
.auth-screen .login .error{font-size:13px;line-height:1.5;margin:0 0 20px;border-radius:9px;padding:12px 14px}
.auth-entry-footer{display:flex;justify-content:center;gap:12px;margin:20px 0 0;color:#b3c3d0;font-size:10px}.auth-entry-footer>span{color:#8ca2b5;border-left:1px solid #63809855;padding-left:12px}
@media(min-width:1600px){.auth-layout{gap:140px;max-width:1200px}.auth-mark{width:240px}.auth-wordmark{font-size:48px}}
@media(max-width:1000px){.auth-layout{gap:46px}.auth-screen{padding:40px 30px}.auth-screen .login{padding:34px 28px 26px}.auth-mark{width:180px}.auth-brand-bottom p{font-size:18px}}
@media(max-width:700px){.auth-screen{padding:30px 20px;place-items:start center}.auth-layout{display:block;max-width:410px}.auth-brand{padding:0;text-align:center}.auth-eyebrow,.auth-brand-rule,.auth-brand-bottom,.auth-brand-caption{display:none}.auth-identity{padding:0 0 28px}.auth-mark{width:130px;margin:0 auto 7px}.auth-wordmark{font-size:29px;letter-spacing:-1px}.auth-entry{max-width:none}.auth-screen .login{padding:29px 26px 24px;border-radius:20px}.auth-screen .login h1{font-size:26px}.auth-form-tag{font-size:9px;margin-bottom:12px}.auth-form-intro{margin-bottom:24px}.auth-entry-footer{margin-top:18px;font-size:10px}}
@media(max-width:360px){.auth-screen{padding:22px 14px}.auth-screen .login{padding:26px 20px}.auth-wordmark{font-size:26px}.auth-entry-footer{gap:8px}}

/* Compact sales filters: consistent native controls without Safari's tall bevel. */
.sales-filters-legacy{padding:10px 12px;border-top-width:2px;box-shadow:0 2px 8px #183f6707}
.sales-filters-top,.sales-filters-bottom{gap:8px 10px}.sales-filters-bottom{margin-top:8px}
.sales-filters-top label,.sales-filters-bottom label{font-size:11px;line-height:15px;color:#657b90}
.sales-filters-legacy input,.sales-filters-legacy select{height:30px;min-height:30px;margin-top:4px;padding:4px 10px;border:1px solid #dce6ef;border-radius:7px;background-color:#fff;color:#2b4358;font-size:12px;line-height:20px;box-shadow:none}
.sales-filters-legacy select{appearance:none;-webkit-appearance:none;padding-right:26px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23768ba0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:10px 7px;text-overflow:ellipsis}
.sales-filters-legacy input:focus,.sales-filters-legacy select:focus{outline:none;border-color:#3888d4;box-shadow:0 0 0 2px #3888d419}
.sales-filters-legacy #sale-reset{height:30px;min-height:30px;padding:4px 12px;border-radius:7px;font-size:12px;line-height:20px;background:#f6f9fc;color:#36536e;white-space:nowrap}
@media(pointer:coarse){.sales-filters-legacy input,.sales-filters-legacy select,.sales-filters-legacy #sale-reset{height:40px;min-height:40px}.sales-filters-legacy input,.sales-filters-legacy select{font-size:16px}}

/* Finance uses the same quiet, white summary cards as the business overview. */
#view :is(#treasury-body,#finance-frame,#cash-body,#dividend-body) .metrics>.metric{background:#fff;border:1px solid #dfe6ee;border-top:3px solid #247dce;border-radius:12px;min-height:76px!important;padding:11px 14px!important;box-shadow:none}
#view :is(#treasury-body,#finance-frame,#cash-body,#dividend-body) .metrics>.metric:nth-child(2){border-top-color:#8c71c5}
#view :is(#treasury-body,#finance-frame,#cash-body,#dividend-body) .metrics>.metric:nth-child(3){border-top-color:#399bbd}
#view :is(#treasury-body,#finance-frame,#cash-body,#dividend-body) .metrics>.metric:nth-child(4){border-top-color:#48a487}
#view :is(#treasury-body,#finance-frame,#cash-body,#dividend-body) .metrics>.metric strong{color:#263c50;font-size:clamp(16px,9cqw,22px)!important;font-weight:650;letter-spacing:-.3px;line-height:1.3!important}
#view :is(#treasury-body,#finance-frame,#cash-body,#dividend-body) .metrics>.metric small{font-weight:500;color:#6c7e91}
#treasury-body .accounts-kpi{min-height:76px;padding:11px 14px;border-radius:12px}
#treasury-body .accounts-kpi strong{font-size:22px;font-weight:650;letter-spacing:-.3px}
#treasury-body .accounts-kpi small{font-weight:500}
/* Leasing: restrained filters, neutral amounts and a clear total row. */
#treasury-body .leasing-record{margin:16px 0 26px}
#treasury-body .leasing-record>h4{font-size:15px;font-weight:600;margin-bottom:4px}
#treasury-body .leasing-record>.muted{font-size:12px;margin:4px 0 12px}
#treasury-body .lease-filters{gap:12px;margin:14px 0 12px;grid-template-columns:2.2fr 1.65fr auto}
#treasury-body .lease-filters label{font-size:11px;font-weight:500;margin-bottom:5px;color:#6c7e91}
#treasury-body .lease-filters button{min-height:30px;padding:5px 10px;font-size:12px;font-weight:500;border:1px solid #dce5ed;border-radius:7px;background:#fff;color:#52677a;box-shadow:none}
#treasury-body .lease-filters button.selected{border-color:#bad3ea;background:#edf5fc;color:#205d90;font-weight:600}
#treasury-body .lease-filters .segmented-control{gap:5px}
#view :is(.leasing-table,.dividend-table){font-variant-numeric:tabular-nums}
#view :is(.leasing-record,#dividend-body) .debt-table-wrap{border-radius:10px;box-shadow:none;border-color:#dfe6ee}
#view :is(.leasing-table,.dividend-table) th{background:#f5f8fb;font-size:11px;font-weight:600;letter-spacing:0;padding:10px 12px;color:#6c7e91}
#view :is(.leasing-table,.dividend-table) td{font-size:12px;padding:10px 12px;line-height:1.5;color:#344b60;font-weight:400}
#view :is(.leasing-table,.dividend-table) tbody tr:first-child{background:inherit}
#view :is(.leasing-table,.dividend-table) tbody tr:first-child td:first-child{border-left:0}
#view :is(.leasing-table,.dividend-table) tbody tr:nth-child(even){background:#fafbfd}
#view :is(.leasing-table,.dividend-table) tbody tr:hover{background:#f3f7fa}
#view .leasing-table .lease-kind{background:none;border:0;padding:0;border-radius:0;font-size:12px;font-weight:500;color:#52677a}
#view .leasing-table .lease-kind.payment{color:#397567}
#view .leasing-table .lease-value{color:#344b60;font-weight:500}
#view .leasing-table tfoot td{background:#edf3f8;border-top:1px solid #cddce9;font-weight:600;padding:11px 12px}
#view .leasing-table tfoot .lease-value{font-weight:650}
/* Dividends: separate primary values from supporting carry-forward details. */
#dividend-body>.top h2{font-size:21px;font-weight:650}
#dividend-body>.top .muted{font-size:12px;line-height:1.6;margin:8px 0 0}
#dividend-body>.top .inline button{font-size:12px;font-weight:600;min-height:34px;padding:7px 12px}
#dividend-body>.employee-filters{display:flex;gap:14px;justify-content:flex-start;margin:12px 0 16px}
#dividend-body>.employee-filters label{flex:none;width:160px;max-width:calc(50% - 7px);font-size:11px;font-weight:500;color:#6c7e91}
#dividend-body>.employee-filters :is(input,select){display:block;width:100%;height:34px;min-height:34px;margin-top:5px;padding:5px 10px;border:1px solid #dce5ed;border-radius:7px;font-size:12px;font-weight:400;background-color:#fff}
#dividend-body>.employee-filters select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23768ba0' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:10px 7px;padding-right:26px}
#view #dividend-body .dividend-focus{padding:14px;margin:12px 0 22px;background:#fff}
#view #dividend-body .dividend-focus__eyebrow{font-size:10px;font-weight:500;letter-spacing:.04em}
#view #dividend-body .dividend-focus__title{font-size:13px;font-weight:600;line-height:1.5;margin:4px 0 12px}
#view #dividend-body .dividend-flow__item{min-height:68px;padding:8px 12px;border:0;border-left:1px solid #e3eaf0;border-radius:0;background:none;box-shadow:none;transform:none}
#view #dividend-body .dividend-flow__item:first-child{border-left:0;padding-left:0}
#view #dividend-body .dividend-flow__label{font-size:11px;line-height:1.5;font-weight:400;margin-bottom:7px;color:#6c7e91}
#view #dividend-body .dividend-flow__value{font-size:clamp(16px,9cqw,21px);font-weight:600;color:#263c50;letter-spacing:-.2px;line-height:1.3}
#dividend-body>h3{font-size:18px;font-weight:650;margin:18px 0 6px}
#dividend-body>h3+.muted{font-size:12px;margin:0 0 14px;color:#78899a}
#view .dividend-table .debt-name{min-width:140px}
#view .dividend-table .text-link{font-size:12px;font-weight:500;color:#356586}
#view .dividend-table .money{font-weight:500;color:#344b60}
#view .dividend-table .money-detail{font-size:10px;font-weight:400;color:#8291a0;margin-top:3px;line-height:1.5}
#view .dividend-table .dividend-result{padding:0;background:none;border-radius:0;font-size:11px;font-weight:400;line-height:1.6;color:#62788e;max-width:350px}
#view .dividend-table .dividend-result.pending{color:#8a6a32}
#view .dividend-table .dividend-result.done{color:#397567}
@media(max-width:900px){#treasury-body .lease-filters{grid-template-columns:1fr}.lease-filters>[data-lease-reset]{justify-self:start}}
@media(max-width:760px){#view #dividend-body .dividend-flow{gap:10px}#view #dividend-body .dividend-flow__item:nth-child(odd){border-left:0;padding-left:0}#treasury-body .accounts-kpi strong{font-size:18px}}

/* Light, compact sign-in with the original worker/parcel and Gazelle motif. */
.auth-screen{padding:32px 28px;background:radial-gradient(ellipse at 26% 48%,#fffbea 0,transparent 48%),#f5f7f9;color:#293746}
.auth-screen::before{display:none}
.auth-layout{max-width:850px;grid-template-columns:1fr 340px;gap:86px}
.auth-brand{padding:0;justify-content:center;align-self:center}
.auth-eyebrow,.auth-brand-bottom,.auth-entry-footer{display:none}
.auth-identity{padding:0}
.auth-mark{width:184px;height:auto;margin:0 0 14px -8px}
.auth-wordmark{font-size:38px;font-weight:800;color:#273541;letter-spacing:-1.6px;line-height:1.2}
.auth-wordmark>span{font-size:1.14em;color:#e6bd08;letter-spacing:-2px}
.auth-brand-rule{width:46px;height:3px;margin:19px 0 14px;background:#e7c52b}
.auth-brand-caption{font-size:13px;color:#77828c;letter-spacing:.1px}
.auth-entry{max-width:340px}
.auth-screen .login{padding:28px 26px 22px;border:1px solid #e2e7eb;border-radius:16px;box-shadow:0 12px 40px #243b5308}
.auth-form-tag{font-size:9px;font-weight:600;letter-spacing:1.3px;margin-bottom:12px;color:#82909b}
.auth-screen .login h1{font-size:23px;line-height:1.3;font-weight:700;letter-spacing:-.6px;margin-bottom:7px}
.auth-form-intro{font-size:12px;line-height:1.5;margin:0 0 22px;color:#7b8894}
.auth-screen .login label{font-size:12px;font-weight:600;margin:0 0 15px}
.auth-screen .login input{height:38px;min-height:38px;margin-top:6px;padding:8px 11px;font-size:14px;border-radius:7px;background:#fbfcfd}
.auth-screen .login button.primary{height:39px;min-height:39px;font-size:13px;font-weight:600;gap:10px;border-radius:7px;margin-top:5px;box-shadow:none}
.auth-screen .login button.primary svg{width:16px;height:16px}
.auth-help{font-size:10px;line-height:1.6;padding-top:15px;margin-top:20px;color:#8a959f}
.auth-screen .login .error{font-size:12px;padding:9px 11px;margin-bottom:15px}
@media(max-width:1000px){.auth-layout{max-width:760px;gap:50px}.auth-wordmark{font-size:34px}}
@media(max-width:700px){.auth-screen{padding:28px 20px;place-items:center}.auth-layout{max-width:340px;display:block}.auth-brand{text-align:center}.auth-identity{padding:0 0 24px}.auth-mark{width:120px;margin:0 auto 7px}.auth-wordmark{font-size:30px;letter-spacing:-1px}.auth-wordmark>span{letter-spacing:-1px}.auth-brand-rule,.auth-brand-caption{display:none}.auth-screen .login{padding:25px 24px 20px}.auth-screen .login input{font-size:16px;height:40px;min-height:40px}.auth-screen .login button.primary{height:40px;min-height:40px}}
@media(max-width:360px){.auth-screen{padding:22px 14px}.auth-screen .login{padding:23px 20px 18px}.auth-wordmark{font-size:28px}}

/* Leasing amounts retain their meaning through restrained red/green accents. */
#view .leasing-table .lease-kind.accrual,
#view .leasing-table tr:has(.lease-kind.accrual) .lease-value.plus,
#view .leasing-table tfoot .lease-value.plus{color:#b54848}
#view .leasing-table .lease-kind.payment,
#view .leasing-table tr:has(.lease-kind.payment) .lease-value.minus,
#view .leasing-table tfoot .lease-value.minus{color:#22795e}

/* Month and settlement cues remain distinct from the financial amounts. */
#view .dividend-table tbody tr.dividend-current td{background:#edf5ff}
#view .dividend-table tbody tr.dividend-current td:first-child{box-shadow:inset 3px 0 #3888d4}
#view .dividend-table tbody tr.dividend-selected:not(.dividend-current) td{background:#f3f7fb}
#view .dividend-table tbody tr.dividend-selected:not(.dividend-current) td:first-child{box-shadow:inset 3px 0 #9bb4cd}
#view .dividend-table .dividend-month-tag{display:table;margin-top:5px;border-radius:5px;padding:2px 6px;font-size:10px;font-weight:500;line-height:1.5;white-space:nowrap}
#view .dividend-table .dividend-month-tag.current{color:#2368a4;background:#dcecff}
#view .dividend-table .dividend-month-tag.selected{color:#62788e;background:#e7eef5}
#view .dividend-table .dividend-current .text-link{color:#2368a4;font-weight:600}
#view .dividend-table .dividend-result{padding:5px 8px;border-radius:6px;font-weight:400;line-height:1.55}
#view .dividend-table .dividend-result.over{color:#a34c4c;background:#fff2f2}
#view .dividend-table .dividend-result.pending{color:#8b6829;background:#fff7e5}
#view .dividend-table .dividend-result.done{color:#28765d;background:#edf8f2}

/* Match the cash ledger's visible amount colors; empty cells stay neutral. */
#view .leasing-table .lease-kind.accrual,
#view .leasing-table tr:has(.lease-kind.accrual) .lease-value.plus,
#view .leasing-table tfoot .lease-value.plus{color:#b64d43}
#view .leasing-table .lease-kind.payment,
#view .leasing-table tr:has(.lease-kind.payment) .lease-value.minus,
#view .leasing-table tfoot .lease-value.minus{color:#16805b}
#view .leasing-table tr:has(.lease-kind.accrual) .lease-value.plus,
#view .leasing-table tr:has(.lease-kind.payment) .lease-value.minus{font-weight:600}

/* Original company symbol on an even, neutral sign-in background. */
.auth-screen{background:#f5f7f9}
.auth-mark{width:142px;height:auto;margin:0 0 16px 0}
@media(max-width:700px){.auth-mark{width:98px;margin:0 auto 10px}}

/* Dividend carryovers use a calm informational accent. */
#view .dividend-table .dividend-result.over{color:#526b80;background:#edf2f6}

/* Crisp vector company mark, with the original silhouette and warmer accents. */
.auth-mark{width:156px}
@media(max-width:700px){.auth-mark{width:104px}}

/* Balanced brand composition and a quiet, compact employee sign-in. */
.auth-layout{max-width:820px;grid-template-columns:minmax(0,1fr) 340px;gap:100px}
.auth-brand{text-align:center;align-items:center}
.auth-identity{width:100%;max-width:340px}
.auth-mark{margin:0 auto 18px}
.auth-brand-rule{width:32px;margin:18px auto 14px}
.auth-brand-caption{font-size:13px;line-height:1.6;color:#72818e}
.auth-sections{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px;color:#587083;font-size:11px;letter-spacing:.15px}
.auth-sections i{width:3px;height:3px;border-radius:50%;background:#c6cfd6}
.auth-screen .login{border-color:#dfe6ec;box-shadow:0 16px 48px #293d5010}
.auth-form-tag{color:#658296;letter-spacing:.8px;font-size:9px}
@media(max-width:1000px){.auth-layout{max-width:740px;gap:48px}}
@media(max-width:700px){.auth-layout{max-width:340px;display:block}.auth-mark{margin:0 auto 12px}.auth-sections{margin-top:12px;font-size:10px;gap:12px}.auth-identity{padding-bottom:25px}}

/* Fulfilled dividend plans and carryover payments share a soft green status. */
#view .dividend-table .dividend-result.over,
#view .dividend-table .dividend-result.done{color:#39735b;background:#edf7f1}

/* Order references and the compact date chooser. */
.order-reference-filter{display:flex;align-items:center;gap:10px;margin-top:10px}
.order-reference-filter label{font-size:12px;color:#667c90;margin:0}
.order-reference-filter input{width:240px;height:32px;padding:6px 10px;font-size:12px}
.orders-table .order-service{color:#43758c;white-space:normal;line-height:1.4;margin-top:4px}
#dl-order-numbers{min-height:80px;height:80px;line-height:1.6}
.order-date-control{position:relative;display:flex;align-items:center;gap:4px}
#order-date-toggle{padding:4px 8px;min-width:30px;color:#356c9b}
#order-date-calendar{position:absolute;z-index:80;top:calc(100% + 7px);left:0;width:280px;padding:12px;background:white;border:1px solid #d9e4ef;border-radius:12px;box-shadow:0 12px 32px #233c5226}
#order-date-calendar[hidden]{display:none}
#order-date-calendar .month-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:10px}
#order-date-calendar .days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
#order-date-calendar .days>span{font-size:11px;color:#7d8e9e;padding:4px}
#order-date-calendar .days button{min-width:0;padding:6px 0;font-size:12px;border:0;box-shadow:none;border-radius:6px}
#order-date-calendar .days button:hover{background:#edf4fc}
#order-date-calendar .days button.edge{background:#1769b3;color:white}
@media(max-width:700px){.order-reference-filter{align-items:flex-start;flex-direction:column;gap:5px}.order-reference-filter input{width:100%}}

.order-reference-filter{padding:0 14px}

/* Order list sorting and draft copies. */
.orders-table .order-sort{padding:0;border:0;background:transparent;font:inherit;color:inherit;white-space:nowrap;cursor:pointer}
.orders-table .order-sort:hover{color:#1769ad}
.orders-table .order-copy{display:block;margin-top:3px;padding:2px 5px;border:1px solid #d8e6f2;border-radius:5px;background:#f5f9fd;color:#356a94;font-size:10px;line-height:1.4;cursor:pointer}
.card input.figure{width:150px;text-align:right;background:#fff;font-variant-numeric:tabular-nums}
.card .control .inline input.figure{flex:0 0 150px;max-width:150px}

/* Compact date pickers and immutable card provenance. */
.date-picker-field{display:flex;position:relative;min-width:0;align-items:center}
.date-picker-field input{width:100%;padding-right:36px!important}
.date-picker-field button{position:absolute;right:3px;top:3px;bottom:3px;width:30px;min-height:0!important;padding:0!important;border:0;background:transparent;color:#52748d;font-size:20px;box-shadow:none}
.crm-date-popup{position:fixed;z-index:10020;width:288px;padding:12px;background:#fff;border:1px solid #dbe5ee;border-radius:12px;box-shadow:0 12px 32px #20394e26;color:#263e50}
.crm-date-popup .month-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:14px}
.crm-date-popup button{min-height:32px!important;padding:5px!important;font-size:13px;border:1px solid transparent;background:#fff;color:#344f64;border-radius:6px;box-shadow:none}
.crm-date-popup .days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.crm-date-popup .days span{font-size:12px;color:#788b9c;padding:5px 0}
.crm-date-popup button:hover,.crm-date-popup button:focus-visible{background:#eaf3fc;border-color:#a9ccec}
.crm-date-popup .days .edge{background:#146fc4;color:white}
.crm-date-popup .calendar-footer{display:flex;justify-content:space-between;border-top:1px solid #edf1f5;margin-top:10px;padding-top:8px}
.card-creation{display:flex;flex-wrap:wrap;gap:6px 22px;color:#718395;font-size:13px;line-height:1.6;margin:10px 0 16px}
.card-creation b{font-weight:500;color:#3d5568}.card-creation small{flex-basis:100%;font-size:12px}
#client-block-reason{max-width:760px;padding:12px 14px;background:#fff9ec;border:1px solid #ebdbb7;border-radius:8px;margin:8px 0}
#client-block-reason textarea{min-height:68px}

/* Confirm cash writes visibly, including operations outside the previous period. */
#cash-save-notice{margin:12px 0;padding:10px 14px;border:1px solid #b8dfce;border-radius:10px;background:#f0faf5;color:#24694e;font-size:14px;line-height:1.5}
#cash-table .cash-saved-row td{background:#f0faf5!important}
#cash-table .cash-saved-row td:first-child{box-shadow:inset 3px 0 #429a75}

/* Worker earnings: compact figures and individual settlement states. */
.worker-salary .top p{margin:4px 0 0}
.ws-filters{display:grid;grid-template-columns:150px 150px minmax(180px,1fr) minmax(180px,1fr);gap:10px 14px;padding:14px;background:#fff;border:1px solid #dce5ee;border-radius:12px;margin-bottom:16px}
.ws-filters label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px}
.ws-filters input,.ws-filters select{height:36px;min-height:36px;padding:6px 10px;font-size:14px;width:100%;box-sizing:border-box}
.ws-filters .inline{align-self:end}.ws-filters button{min-height:36px;padding:6px 12px}
.ws-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:12px 0 18px!important}
.ws-metrics .metric{min-height:0!important;padding:12px 14px!important}.ws-metrics strong{font-size:23px!important;font-weight:600!important}
.ws-table{overflow:auto;background:#fff;border:1px solid #dce5ee;border-radius:12px}
.ws-table table{width:100%;border-collapse:collapse;font-size:14px}
.ws-table th{background:#f5f8fb;color:#697d90;font-size:12px;font-weight:600;text-align:left;white-space:nowrap}
.ws-table th,.ws-table td{padding:10px 12px;border-bottom:1px solid #e8eef4;vertical-align:middle}
.ws-table tr:last-child td{border-bottom:0}.ws-table tbody tr:nth-child(even){background:#fafcfd}
.ws-table .text-link{font-weight:500;padding:0;min-height:0;text-align:left}
.ws-table .ws-number{text-align:left;white-space:nowrap;font-variant-numeric:tabular-nums}
.worker-salary .ws-positive{color:#278169!important}
.salary-state{display:inline-block;border-radius:6px;padding:4px 7px;font-size:12px;line-height:1.4;white-space:nowrap}
.salary-paid{background:#eaf6ef;color:#25765b}.salary-due{background:#fff5df;color:#866324}.salary-neutral{background:#eef2f5;color:#607587}
.ws-note{font-size:12px;color:#738395;line-height:1.5;margin:12px 0 0}
@media(max-width:1100px){.ws-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.ws-filters{grid-template-columns:1fr}.ws-metrics strong{font-size:19px!important}}
.ws-filters label:nth-of-type(5){grid-column:1 / 3}
.ws-filters>.inline{grid-column:3 / -1;justify-content:flex-end;flex-wrap:nowrap}
.worker-salary [data-ws-mode].selected{background:#edf5fc;border-color:#b8d6f0;color:#27628e}
@media(max-width:1100px){.ws-filters label:nth-of-type(5){grid-column:auto}.ws-filters>.inline{grid-column:auto}}

/* Sales supervision uses recorded actions, with a compact results journal. */
.sales-activity .top p{margin:5px 0 0}.sales-activity h2{font-size:19px;margin:20px 0 12px}
.sa-filters{display:grid;grid-template-columns:150px 150px minmax(200px,1fr) minmax(180px,1fr) auto;gap:12px;padding:14px;background:#fff;border:1px solid #dce5ee;border-radius:12px}
.sa-presets{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.sa-presets button{min-height:30px;padding:5px 10px;font-size:12px}
.sa-filters label{font-size:12px;display:flex;flex-direction:column;gap:5px;min-width:0}.sa-filters input,.sa-filters select{height:36px;min-height:36px;padding:6px 10px;width:100%;box-sizing:border-box;font-size:14px}.sa-filters>button{align-self:end;min-height:36px;padding:6px 14px}
.sa-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:16px 0!important}.sa-metrics .metric{min-height:0!important;padding:12px 14px!important}.sa-metrics strong{font-size:25px!important;font-weight:600!important}.sa-metrics small:last-child{font-size:11px}
.sa-table{overflow:auto;border:1px solid #dce5ee;border-radius:12px;background:#fff}.sa-table table{border-collapse:collapse;width:100%;font-size:13px}.sa-table th{background:#f5f8fb;text-align:left;font-size:12px;font-weight:600;color:#718599}.sa-table th,.sa-table td{padding:10px 12px;border-bottom:1px solid #e5edf3;vertical-align:top}.sa-table tr:last-child td{border-bottom:0}.sa-table tbody tr:nth-child(even){background:#fafcfd}.sa-table .text-link{font-weight:500;text-align:left;padding:0;min-height:0}.sa-table td>small{display:block;margin-top:5px}.sa-number{text-align:right;font-variant-numeric:tabular-nums}.sa-summary td:first-child{min-width:210px}.sa-summary th:not(:first-child){text-align:right}.sa-positive{color:#23795e}.sa-warning{color:#946823}.sa-plan{font-size:12px;margin:12px 0 20px}
.sa-toolbar{gap:12px;flex-wrap:wrap}.sa-toolbar label{display:flex;align-items:center;gap:8px;font-size:12px}.sa-toolbar select{width:auto;min-height:34px;padding:5px 10px}.sales-activity [data-sa-mode].selected{background:#edf5fc;border-color:#b8d6f0;color:#27628e}
.sa-journal td:nth-child(2){min-width:130px;max-width:170px}.sa-journal td:nth-child(3){min-width:160px;max-width:210px}.sa-journal td:nth-child(4){min-width:300px}.sa-journal td:last-child{min-width:140px;max-width:210px;overflow-wrap:anywhere}.sa-when{min-width:92px;color:#657d91}.sa-result{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin-top:8px}.sa-result details{margin-top:5px}.sa-result summary{color:#3478a6;cursor:pointer}.sa-label{display:inline-block;font-size:11px;line-height:1.4;padding:3px 7px;border-radius:5px;color:#526e83;background:#edf3f7}.sa-label-good{color:#23795e;background:#eaf6ef}.sa-label-warn{color:#866324;background:#fff5df}.sa-next{font-weight:500}.sa-method{margin-top:16px;font-size:12px;color:#738395;line-height:1.5}.sa-method summary{cursor:pointer}.sa-method p{max-width:1050px}
@media(max-width:1150px){.sa-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.sa-filters>button{justify-self:start}.sa-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){.sa-filters{grid-template-columns:1fr}.sa-toolbar .inline{flex-wrap:wrap}}

/* Per-assignment issuance and aggregate worker balance. */
.worker-paid-check{display:flex!important;align-items:center;gap:6px;margin:7px 0 0!important;font-size:12px!important;white-space:nowrap;font-weight:400!important;color:#395b6c}
.worker-paid-check input[type=checkbox]{width:15px!important;height:15px!important;min-height:0!important;margin:0!important;accent-color:#298369}
.worker-total-debt{display:block;font-variant-numeric:tabular-nums}
.crew td[id^=due-] small{display:block;font-size:11px;line-height:1.45;white-space:nowrap}

/* DL reconciliation: compact export controls and an aligned, optional tariff editor. */
.dl-report.report-legacy{padding:20px 22px;background:#fff;border:1px solid var(--border);border-radius:14px}
.dl-report.report-legacy>h2{font-size:20px;line-height:1.35;margin:0 0 8px;font-weight:650}
.dl-report>p.muted{margin:0 0 18px;line-height:1.6}
.dl-export-fields{display:flex;align-items:flex-end;gap:28px;flex-wrap:wrap}
.dl-report .report-controls{grid-template-columns:repeat(2,minmax(0,190px));gap:12px}
.dl-report .report-mode{margin:0;padding:0;gap:8px;min-width:0}
.dl-report .report-mode legend{padding:0;margin:0 0 6px;color:var(--muted);font-size:12px;font-weight:600}
.dl-report .report-mode label{min-height:36px;padding:7px 12px;border:1px solid var(--border);border-radius:7px;gap:7px;font-weight:500;background:#fff;cursor:pointer}
.dl-report .report-mode label:has(input:checked){background:#edf5fe;border-color:#b8d5f3;color:#22649d}
.dl-report input:not([type=radio]),.dl-settings input:not([type=checkbox]):not([type=hidden]),.dl-settings select{height:36px;min-height:36px;padding:7px 10px;font-size:13px;line-height:20px;box-sizing:border-box}
.dl-report .date-picker-field input{padding-right:32px}
.dl-report #report-region-cities{margin:16px 0;padding:12px 0;border-top:1px solid #edf1f5;color:var(--muted);font-size:12px;line-height:1.7;max-width:960px}
.dl-export-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.dl-export-actions button{min-height:36px;padding:8px 14px;font-size:13px}
.dl-export-actions .muted{font-size:12px;line-height:1.5}
.dl-report #report-results:empty{display:none}
.dl-report #report-results h2{font-size:17px;font-weight:600;margin:0 0 12px}
.dl-report .report-file{padding:0 0 12px}.dl-report .download-link{overflow-wrap:anywhere}
.dl-settings{padding:18px 22px;margin-top:16px}
.dl-settings summary{font-size:13px;font-weight:600}
.dl-settings>p{font-size:12px;line-height:1.6;max-width:760px;margin:14px 0}
.dl-settings>label,.dl-settings #city-form label:not(.check),.dl-settings #city-editor>label{display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0;color:var(--muted);font-weight:500}
.dl-settings>label{max-width:340px;margin-top:14px}
.dl-settings select{width:100%;appearance:none;-webkit-appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2368798a' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px;border:1px solid var(--border);border-radius:7px}
.dl-settings #city-editor{margin-top:14px;max-width:700px}
.dl-settings #city-binding:empty{display:none}
.dl-settings #city-form{display:grid;gap:16px}
.dl-settings .report-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dl-settings #city-form input:not([type=checkbox]):not([type=hidden]){width:100%;min-width:0}
.dl-settings .check{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:400;line-height:1.5;margin:0;color:var(--text)}
.dl-settings input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:0;accent-color:#0868cf}
.dl-rate-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end}
.dl-rate-fields>.check{min-height:36px}
.dl-settings input:disabled{background:#f5f7fa;color:#8a97a5}
.dl-settings #city-form>p{font-size:12px;line-height:1.5;margin:-6px 0 0}
.dl-settings-actions{border-top:1px solid #edf1f5;padding-top:14px}
.dl-settings-actions button{min-height:36px;padding:8px 14px;font-size:13px;margin:0}
@media(max-width:900px){.dl-export-fields{gap:16px}.dl-report .report-controls{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:480px}}
@media(max-width:650px){.dl-report.report-legacy,.dl-settings{padding:16px}.dl-report .report-mode{flex-direction:row;flex-wrap:wrap}.dl-export-fields{display:block}.dl-report .report-mode{margin-top:14px}.dl-settings .report-controls,.dl-rate-fields{grid-template-columns:1fr}.dl-settings>label{max-width:none}.dl-export-actions{align-items:flex-start;gap:10px}.dl-report #report-region-cities{line-height:1.8}}

/* Worker salary selection: exact assignment totals, including selections across pages. */
#ws-selection:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#f0f6fb;border:1px solid #dce8f2;border-radius:10px;padding:12px 14px;margin:10px 0 14px;font-size:13px}
.ws-selection-summary{display:flex;gap:12px 22px;flex-wrap:wrap}.ws-selection-summary b{font-weight:600;white-space:nowrap}
#ws-selection>small{flex-basis:100%;color:var(--muted);line-height:1.5}
#ws-selection button{font-size:12px;min-height:34px;padding:7px 11px}
.ws-table .ws-select-cell{width:38px;min-width:38px;padding-right:4px}
.ws-select-cell input{width:16px;height:16px;min-height:16px;cursor:pointer;accent-color:#0868cf}
.ws-table tbody tr.ws-selected td{background:#edf5fd}
@media(max-width:650px){#ws-selection>.inline{flex-wrap:wrap}.ws-selection-summary{gap:8px 16px}}
