:root{
  --navy:#071b3a;--navy2:#082448;--blue:#1167f5;--text:#0a1936;--muted:#63718a;--line:#e5eaf2;--bg:#f5f7fb;
  --green:#07984f;--red:#f23838;--orange:#f07f20;--purple:#7657eb;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;font-size:14px}
button,select{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:205px;background:linear-gradient(180deg,var(--navy),var(--navy2));padding:14px 11px 12px;color:#fff;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:9px;padding:4px 8px 15px}.brand-mark{width:31px;height:31px;border:1.4px solid #1974ff;border-radius:7px;display:grid;place-items:center;color:#1974ff}.brand-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand-text{font-size:13px;line-height:1.18;font-weight:700}.nav-list{display:flex;flex-direction:column;gap:2px}.nav-item{height:36px;border:0;border-radius:6px;background:transparent;color:#f1f6ff;padding:0 10px;display:flex;align-items:center;gap:9px;text-align:left;font-size:12px;cursor:pointer}.nav-item.active{background:#1368f4}.nav-ico{width:18px;text-align:center;font-size:15px}.sidebar-spacer{flex:1}.profile{border-top:1px solid rgba(255,255,255,.09);border-bottom:1px solid rgba(255,255,255,.09);padding:13px 3px;margin:0 7px 8px;display:flex;align-items:center;gap:9px}.avatar{width:38px;height:38px;border-radius:50%;background:white;color:#0c2343;display:grid;place-items:center;font-size:11px;font-weight:700}.profile-copy{display:flex;flex-direction:column;line-height:1.25;flex:1}.profile-copy strong{font-size:12px}.profile-copy span{font-size:10px;color:#b9c7db}.profile-chevron{color:#d6e1ee}.logout{margin-top:1px}
.content{margin-left:205px;width:calc(100% - 205px);padding:14px 18px 16px;min-width:1050px}.top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:10px}.page-title-row{display:flex;align-items:center;gap:7px;margin:1px 0 10px}.page-title-row h1{margin:0;font-size:19px;line-height:1.1;font-weight:750}.info-dot{width:15px;height:15px;border:1px solid #8797af;border-radius:50%;display:grid;place-items:center;font-size:9px;color:#667995;font-weight:700}.draft-chip{display:none;padding:3px 7px;border-radius:99px;background:#fff0ba;color:#765d00;font-size:9px;font-weight:700}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.control,.segment{height:34px;border:1px solid #d8e0eb;background:#fff;border-radius:6px;color:#142542;box-shadow:0 1px 2px rgba(15,34,65,.02)}.control{padding:0 30px 0 12px;font-size:11px;font-weight:600;appearance:auto}.month-control{width:170px}.compare-control{width:225px}.segment{display:flex;overflow:hidden}.segment button{border:0;background:transparent;padding:0 16px;color:#475874;font-size:11px;cursor:pointer}.segment button+button{border-left:1px solid #e5e9f0}.segment .selected{background:#edf4ff;color:#1468f5;font-weight:700}.top-right{text-align:right}.action-row{display:flex;gap:10px;justify-content:flex-end}.action{height:37px;border-radius:6px;padding:0 13px;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;cursor:pointer}.action.secondary{background:#fff;border:1px solid #d8e0eb;color:#10213d}.action.primary{background:#069a4c;border:1px solid #069a4c;color:#fff;min-width:204px;justify-content:center}.update-meta{margin-top:8px;color:#6b7890;font-size:9.5px}.small-refresh{color:#47658c;font-size:12px;margin-left:3px}
.kpi-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:9px}.card{background:white;border:1px solid #e3e8f0;border-radius:9px;box-shadow:0 1px 2px rgba(14,33,64,.025)}.kpi-card{height:117px;padding:12px 13px 9px;overflow:hidden}.kpi-title{font-size:10px;color:#5e6c82;margin-bottom:5px}.kpi-value{font-size:20px;font-weight:750;letter-spacing:-.25px;line-height:1.05;white-space:nowrap}.kpi-delta{font-size:10px;margin-top:5px;color:var(--green);display:flex;align-items:center;gap:3px}.kpi-delta.bad{color:var(--red)}.sparkline{width:100%;height:30px;margin-top:3px}.sparkline polyline{fill:none;stroke:#1769ff;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.flow-card{height:106px;padding:12px 12px 10px;margin-bottom:9px}.section-head{display:flex;align-items:baseline;gap:5px}.section-head h2,.rating-head h2,.panel-head h2{margin:0;font-size:13px;line-height:1;font-weight:750}.section-head span,.panel-head span{font-size:9.5px;color:#6e7a90}.flow-grid{display:grid;grid-template-columns:repeat(8,1fr);margin-top:10px;height:62px}.flow-item{display:flex;align-items:center;gap:10px;padding:0 12px;border-right:1px solid #e8edf3}.flow-item:last-child{border-right:0}.flow-icon{font-size:19px;width:22px;text-align:center;color:#214b84}.flow-copy{min-width:0}.flow-label{font-size:9px;color:#5f6d84;line-height:1.15;min-height:20px;display:flex;align-items:flex-start}.flow-value{margin-top:3px;font-size:14px;font-weight:750;white-space:nowrap}.flow-delta{font-size:9px;color:var(--green);font-weight:650;margin-left:5px}.flow-delta.red{color:var(--red)}
.rating-card{height:258px;padding:11px 10px 7px;margin-bottom:9px;overflow:hidden}.rating-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.sort-label{font-size:9.5px;color:#68758b;display:flex;align-items:center;gap:7px}.sort-select{height:25px;border:1px solid #d9e0ea;border-radius:5px;background:white;font-size:9.5px;color:#132641;padding:0 23px 0 8px}.table-wrap{overflow:hidden}.rating-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9.3px}.rating-table th{height:28px;color:#64728a;font-weight:600;text-align:center;border-bottom:1px solid #e4e9f0;white-space:nowrap}.rating-table td{height:24px;text-align:center;border-bottom:1px solid #edf1f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rating-table .rank-num{width:31px}.rating-table .manager-col{width:160px;text-align:left}.rating-table td:nth-child(2){text-align:left;font-weight:650}.rating-table th:nth-child(3){width:53px}.rating-table th:nth-child(4){width:55px}.rating-table th:nth-child(5){width:92px}.rating-table th:nth-child(6){width:86px}.rating-table th:nth-child(7){width:78px}.rating-table th:nth-child(8){width:91px}.rating-table th:nth-child(9){width:77px}.rating-table th:nth-child(10){width:111px}.rating-table th:nth-child(11){width:74px}.rating-table th:nth-child(12){width:69px}.row-rank{display:flex;align-items:center;gap:7px;justify-content:center}.rank-arrow.up{color:#00a45b}.rank-arrow.down{color:#f13b3b}.rank-arrow.neutral{color:#1769ff}.money-good{color:#029449;font-weight:700}.money-warn{color:#e88700;font-weight:700}.money-bad{color:#f23838;font-weight:700}.delta-up{color:#029449;font-weight:700}.delta-down{color:#f23838;font-weight:700}.show-all{border:0;background:transparent;color:#0e66ff;font-size:9.5px;font-weight:650;margin:5px 0 0 2px;padding:0;cursor:pointer}
.lower-grid{display:grid;grid-template-columns:1.06fr 1.03fr 1.22fr;gap:10px;height:231px}.panel{padding:11px 11px 9px;overflow:hidden}.panel-head{display:flex;flex-direction:column;gap:3px}.legend-row{height:21px;margin-top:4px;display:flex;align-items:center;gap:14px;color:#607086;font-size:8.8px}.legend-row span{display:flex;align-items:center;gap:4px}.dot{width:6px;height:6px;border-radius:50%;display:inline-block}.dot.blue{background:#1769ff}.dot.green{background:#15a24a}.dot.orange{background:#ff6b00}.line-chart{height:177px}.line-chart svg{width:100%;height:100%}.axis-text{font-size:8.5px;fill:#6c7990}.grid-line{stroke:#edf1f5;stroke-width:1}.blue-line{stroke:#1769ff}.green-line{stroke:#17a34a}.orange-line{stroke:#ff6b00}.chart-line{fill:none;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.chart-dot{stroke:white;stroke-width:1.5}.bar-chart{margin-top:8px;display:flex;flex-direction:column;gap:5px}.bar-row{display:grid;grid-template-columns:100px 1fr 40px;align-items:center;gap:8px;height:15px;font-size:8.8px}.bar-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-track{height:7px;position:relative}.bar-fill{height:7px;border-radius:1px;background:#7557e8}.bar-value{font-size:8.8px;font-weight:650}.attention-head{display:grid;grid-template-columns:1.12fr 1.5fr .65fr;gap:5px;margin-top:12px;padding-bottom:6px;border-bottom:1px solid #e7ebf1;color:#67758b;font-size:8.8px}.attention-head span:last-child{text-align:right}.attention-row{display:grid;grid-template-columns:1.12fr 1.5fr .65fr;gap:5px;align-items:center;height:31px;border-bottom:1px solid #edf1f5;font-size:9.2px}.attention-name{font-weight:650}.attention-value{text-align:right;font-weight:700;color:var(--red)}.attention-value.warn{color:var(--orange)}
.footer-note{height:33px;display:flex;align-items:center;color:#64728a;font-size:8.5px;position:relative;padding-left:1px}.footer-info{width:17px;height:17px;border:1px solid #8192ab;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:700;margin-right:8px}.footer-note a{margin-left:auto;color:#0d65ff;font-size:8.8px;cursor:pointer}.toast{position:fixed;right:24px;bottom:24px;background:#102440;color:#fff;padding:10px 14px;border-radius:7px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 10px 28px rgba(0,0,0,.18);z-index:5}.toast.show{opacity:1}
@media(max-width:1350px){.content{zoom:.86}.sidebar{width:180px}.content{margin-left:180px;width:calc(116.28% - 180px)}.brand-text{font-size:12px}.nav-item{font-size:11px}}
.auth-screen{position:fixed;inset:0;background:linear-gradient(135deg,#07172f,#0b2d58);z-index:100;display:grid;place-items:center}.auth-screen.hidden{display:none}.auth-card{width:360px;background:#fff;border-radius:14px;padding:28px;box-shadow:0 20px 60px rgba(0,0,0,.25);text-align:center}.auth-logo{width:45px;height:45px;border:1px solid #1769ff;color:#1769ff;border-radius:10px;display:grid;place-items:center;margin:0 auto 12px;font-size:22px}.auth-card h2{margin:0 0 6px;font-size:20px}.auth-card p{margin:0 0 18px;color:#6c7890;font-size:12px}.auth-card input{width:100%;height:42px;border:1px solid #d8e0eb;border-radius:7px;padding:0 12px;margin:6px 0;font-size:13px}.auth-card button{width:100%;height:42px;border:0;border-radius:7px;background:#1167f5;color:#fff;font-weight:700;margin-top:10px;cursor:pointer}.auth-card .auth-secondary{background:#edf3ff;color:#1769ff}.auth-message{min-height:20px;margin-top:10px;font-size:11px;color:#df3333}.sync-note{font-size:9px;color:#6c7890;margin-top:4px}
/* v9: периодные фильтры + 15 менеджеров */
.kpi-delta.neutral-delta{color:#8190a5}.flow-delta.muted{color:#8a96a8}.action:disabled{cursor:not-allowed}.rating-card{height:424px}.table-wrap{overflow-x:auto;overflow-y:hidden}.rating-table{font-size:9px;min-width:1320px}.rating-table td{height:22px}.rating-table th{height:27px}.rating-table .manager-col{width:145px}.rating-table .avg-rank-col{width:82px}.rating-table th:nth-child(4){width:50px}.rating-table th:nth-child(5){width:52px}.rating-table th:nth-child(6){width:88px}.rating-table th:nth-child(7){width:82px}.rating-table th:nth-child(8){width:74px}.rating-table th:nth-child(9){width:87px}.rating-table th:nth-child(10){width:75px}.rating-table th:nth-child(11){width:105px}.rating-table th:nth-child(12){width:70px}.rating-table th:nth-child(13){width:68px}.lower-grid{height:348px}.bar-chart{gap:3px}.bar-row{height:15px;grid-template-columns:108px 1fr 40px}.conversion-card .bar-chart{margin-top:8px}.attention-row{height:36px}.line-chart{height:282px}.panel{min-height:348px}.flow-value{display:flex;align-items:center;gap:3px}.flow-delta{white-space:nowrap}
/* v10 */
.range-controls{height:34px;display:flex;align-items:center;gap:5px}.range-controls.hidden{display:none}.range-prefix{font-size:10px;font-weight:700;color:#64748b}.range-separator{color:#94a3b8;margin:0 1px}.range-year-control{width:78px;padding:0 18px 0 9px}.range-month-control{width:108px;padding:0 18px 0 9px}.anchor-control.hidden-control{display:none}.compare-control:disabled{background:#f5f7fa;color:#94a3b8;cursor:not-allowed}.segment button{padding:0 12px}.rating-table .avg-rank-col{width:68px}.lower-grid{height:430px;grid-template-columns:1.14fr 1fr 1.05fr}.panel{min-height:430px}.line-chart{height:360px;margin-top:4px}.line-chart svg{display:block;width:100%;height:100%}.chart-dot.blue-fill{fill:#1769ff}.chart-dot.green-fill{fill:#17a34a}.chart-dot.orange-fill{fill:#ff6b00}.conversion-card .bar-chart{margin-top:12px;gap:5px;overflow:visible}.bar-row{height:18px;grid-template-columns:122px 1fr 42px;font-size:9px}.bar-track,.bar-fill{height:8px}.bar-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attention-row{height:42px}
/* v12: отдельный год/месяц + Маржа в рейтинге */
.year-control{width:88px;padding-right:18px}.month-control{width:122px;padding-right:18px}.rating-table{min-width:1395px}.rating-table th:nth-child(9){width:62px}.rating-table th:nth-child(10){width:87px}.rating-table th:nth-child(11){width:75px}.rating-table th:nth-child(12){width:105px}.rating-table th:nth-child(13){width:70px}.rating-table th:nth-child(14){width:68px}
/* v13.4: 24h auth session, account settings, chart hover values */
.auth-hint{margin-top:10px;color:#7b8799;font-size:10px;line-height:1.35;text-align:left}
.settings-modal{position:fixed;inset:0;background:rgba(5,18,38,.48);z-index:120;display:grid;place-items:center;padding:20px;backdrop-filter:blur(2px)}
.settings-modal.hidden{display:none}
.settings-dialog{width:min(480px,calc(100vw - 32px));background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(4,18,40,.28);padding:20px}
.settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e8edf3;padding-bottom:13px;margin-bottom:14px}
.settings-head h2{font-size:17px;margin:0 0 4px}.settings-head p{font-size:10.5px;color:#6b7890;margin:0}.settings-close{border:0;background:#f1f4f8;color:#516078;width:30px;height:30px;border-radius:7px;font-size:20px;line-height:1;cursor:pointer}
.settings-current{font-size:11px;color:#607087;background:#f6f8fb;border-radius:7px;padding:9px 11px;margin-bottom:12px}.settings-current strong{color:#152742}
#accountSettingsForm{display:flex;flex-direction:column;gap:10px}#accountSettingsForm label{font-size:10.5px;font-weight:650;color:#526178;display:flex;flex-direction:column;gap:5px}#accountSettingsForm input{height:38px;border:1px solid #d7dfe9;border-radius:7px;padding:0 11px;font-size:12px;color:#10233e;outline:none}#accountSettingsForm input:focus{border-color:#1769ff;box-shadow:0 0 0 2px rgba(23,105,255,.1)}
.settings-note{font-size:9.5px;color:#748198;line-height:1.4;padding:2px 1px}.settings-message{min-height:18px;font-size:10.5px}.settings-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}.settings-actions button{height:35px;border-radius:7px;padding:0 15px;font-size:11px;font-weight:700;cursor:pointer}.settings-cancel{border:1px solid #d8e0ea;background:#fff;color:#53627a}.settings-save{border:0;background:#1167f5;color:#fff}
.line-chart{position:relative;overflow:visible}.chart-hit{fill:transparent;stroke:none;cursor:pointer;pointer-events:all}.chart-hit:hover{fill:rgba(23,105,255,.06)}
.chart-tooltip{position:absolute;z-index:20;min-width:138px;max-width:180px;background:#102440;color:#fff;border-radius:7px;padding:8px 10px;box-shadow:0 10px 28px rgba(7,25,50,.23);font-size:9px;line-height:1.25;opacity:0;transform:translateY(2px);pointer-events:none;transition:opacity .12s,transform .12s}.chart-tooltip.show{opacity:1;transform:translateY(0)}.chart-tooltip strong,.chart-tooltip span,.chart-tooltip b{display:block}.chart-tooltip strong{font-size:9px;color:#dbe7f7;margin-bottom:2px}.chart-tooltip span{font-size:8.5px;color:#aebed3}.chart-tooltip b{font-size:11px;margin-top:4px;color:#fff}
/* v14: автономная рабочая среда «Данные месяца» */
.page-view.hidden{display:none!important}.entry-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:12px}.entry-title-row{margin-bottom:5px}.entry-subtitle{font-size:10.5px;color:#718096}.entry-actions{display:flex;align-items:center;gap:9px}.entry-period-pickers{display:flex;gap:7px}.entry-period-pickers .control{width:112px}.entry-status-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:99px;font-size:9px;font-weight:750}.entry-status-chip.draft{background:#fff2bd;color:#7b6200}.entry-status-chip.locked{background:#dff7e9;color:#087a40}.entry-actions .action.primary{min-width:168px}.entry-actions .action.secondary{min-width:150px;justify-content:center}.entry-actions .action:disabled{opacity:.55;cursor:not-allowed}
.entry-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid #dfe6ef;margin-bottom:12px}.entry-tabs button{height:36px;padding:0 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:#627188;font-size:11px;font-weight:650;cursor:pointer}.entry-tabs button.selected{color:#1167f5;border-bottom-color:#1167f5}.entry-tab-panel.hidden{display:none}.entry-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.entry-card{background:#fff;border:1px solid #e3e8f0;border-radius:10px;box-shadow:0 1px 2px rgba(14,33,64,.025);padding:14px}.entry-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.entry-card-head h2{margin:0;font-size:13px}.entry-card-head span{font-size:9.5px;color:#718096;line-height:1.35}.entry-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.entry-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:9.5px;color:#617086;font-weight:650}.entry-form-grid input,.entry-note-card textarea{width:100%;border:1px solid #d9e1eb;border-radius:7px;background:#fff;color:#10213d;font:inherit;outline:none}.entry-form-grid input{height:38px;padding:0 10px;font-size:12px}.entry-form-grid input:focus,.entry-note-card textarea:focus{border-color:#1769ff;box-shadow:0 0 0 2px rgba(23,105,255,.08)}.entry-form-grid input:disabled,.entry-note-card textarea:disabled{background:#f4f6f9;color:#7a879a}.computed-field{justify-content:flex-end;min-height:62px;background:#f6f8fb;border:1px solid #edf1f5;border-radius:8px;padding:8px 10px}.computed-field span{font-size:15px;color:#112542;font-weight:750;margin-top:3px}.entry-note-card{margin-top:12px}.entry-note-card textarea{padding:10px 11px;resize:vertical;min-height:72px;font-size:11px}
.entry-table-wrap{overflow:auto;border:1px solid #e8edf3;border-radius:8px}.entry-table{width:100%;border-collapse:collapse;table-layout:fixed}.entry-table th{height:34px;background:#f7f9fc;color:#657389;font-size:9.3px;font-weight:700;text-align:left;border-bottom:1px solid #e2e8f0;padding:0 8px}.entry-table td{height:42px;border-bottom:1px solid #edf1f5;padding:5px 8px;font-size:10px;color:#142541}.entry-table tr:last-child td{border-bottom:0}.entry-table input{width:100%;height:30px;border:1px solid #d8e0ea;border-radius:6px;padding:0 7px;font-size:10px;color:#10213d;background:#fff;outline:none}.entry-table input:focus{border-color:#1769ff;box-shadow:0 0 0 2px rgba(23,105,255,.08)}.entry-table input:disabled{background:#f2f4f7;color:#9aa5b3;border-color:#e6eaf0}.expenses-table th:nth-child(1){width:27%}.expenses-table th:nth-child(2){width:13%}.expenses-table th:nth-child(3),.expenses-table th:nth-child(4),.expenses-table th:nth-child(5){width:12%}.expenses-table th:nth-child(6){width:24%}.expenses-table td:first-child strong{display:block;font-size:10px}.expenses-table td:first-child small{display:block;margin-top:2px;color:#8a96a8;font-size:8.5px}.pay-badge{display:inline-flex;align-items:center;justify-content:center;min-width:78px;height:22px;border-radius:99px;padding:0 7px;font-size:8.5px;font-weight:750}.pay-badge.cash{background:#fff1db;color:#a35a00}.pay-badge.bank{background:#eaf2ff;color:#1764d8}.pay-badge.split{background:#eaf8ef;color:#087a40}.expense-row-total{font-weight:750;white-space:nowrap}.expense-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.expense-summary>div{min-height:64px;border:1px solid #e6ebf2;border-radius:8px;background:#f9fbfd;padding:9px 10px;display:flex;flex-direction:column;justify-content:center}.expense-summary span{font-size:8.8px;color:#68768b}.expense-summary strong{font-size:14px;margin-top:4px}.expense-summary .expense-grand{background:#eef5ff;border-color:#d9e7ff}.expense-summary .expense-grand strong{color:#0f64e8}
.managers-entry-table{min-width:1280px}.managers-entry-table th:nth-child(1){width:150px}.managers-entry-table th:nth-child(2){width:70px}.managers-entry-table th:nth-child(3),.managers-entry-table th:nth-child(4){width:68px}.managers-entry-table th:nth-child(5),.managers-entry-table th:nth-child(6),.managers-entry-table th:nth-child(7),.managers-entry-table th:nth-child(8){width:105px}.managers-entry-table th:nth-child(9){width:72px}.managers-entry-table th:nth-child(10){width:130px}.managers-entry-table th:nth-child(11){width:78px}.managers-entry-table td:first-child{font-weight:700}.calc-cell{background:#f7f9fc;color:#5b6b80;font-weight:700;text-align:right}.calc-cell.calc-good{color:#078947}.calc-cell.calc-warn{color:#d57a00}.calc-cell.calc-bad{color:#df3333}
.control-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:12px}.entry-checklist{display:flex;flex-direction:column;gap:8px}.check-row{height:42px;border-radius:8px;border:1px solid #e5eaf1;display:flex;align-items:center;gap:9px;padding:0 11px}.check-row span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:800}.check-row b{font-size:10.5px}.check-row.ok{background:#f5fbf7}.check-row.ok span{background:#dff5e7;color:#078947}.check-row.bad{background:#fff8f6}.check-row.bad span{background:#ffe3dd;color:#d8432f}.control-warnings{margin-top:5px;padding-top:8px;border-top:1px solid #edf0f4;display:flex;flex-direction:column;gap:5px;color:#b56c00;font-size:9.5px}.recon-head,.recon-row{display:grid;grid-template-columns:1.35fr 1fr 1fr .8fr;gap:8px;align-items:center}.recon-head{height:28px;color:#718096;font-size:8.8px;border-bottom:1px solid #e7ebf1}.recon-row{height:45px;border-bottom:1px solid #edf1f5;font-size:10px}.recon-row b{text-align:right}.recon-row strong{text-align:right}.recon-row strong.ok{color:#078947}.recon-row strong.warn{color:#df7c00}.recon-row strong.neutral{color:#8793a6}.recon-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:10px}.recon-summary span{background:#f7f9fc;border-radius:7px;padding:8px 9px;color:#68768b;font-size:9px}.recon-summary b{float:right;color:#10213d;font-size:10px}
@media(max-width:1350px){.entry-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-summary{grid-template-columns:repeat(3,1fr)}}
/* v14.1 — редактируемые статьи расходов, динамический способ оплаты и исторический импорт */
.expense-name-input{width:100%;height:30px;border:1px solid transparent!important;background:transparent!important;border-radius:6px;padding:0 6px!important;font-weight:700;font-size:10px!important;color:#142541!important}
.expense-name-input:hover:not(:disabled),.expense-name-input:focus:not(:disabled){border-color:#d8e0ea!important;background:#fff!important}
.pay-badge.empty{background:#f1f3f6;color:#7a8698;min-width:88px}
.entry-legacy-note{margin:0 0 9px;padding:9px 11px;border:1px solid #f0d8a8;background:#fff9ec;color:#805d17;border-radius:8px;font-size:9px;line-height:1.4}
.legacy-expense-row td{background:#fbfcfe;color:#5b687a}.legacy-expense-row td:nth-child(3),.legacy-expense-row td:nth-child(4){color:#8b96a6;text-align:center}.legacy-expense-row td:first-child small{display:block;margin-top:2px;color:#8a96a8;font-size:8.5px}

/* v14.2 — симметрия таблиц, групповые заголовки и формат зафиксированных денежных значений */
.entry-two-col{align-items:stretch}.entry-two-col>.entry-card{height:100%;display:flex;flex-direction:column}.entry-two-col>.entry-card .entry-form-grid{flex:1;align-content:start}
.entry-card-head{min-height:34px;align-items:flex-start}.entry-card-head h2{line-height:1.2}.entry-card-head span{max-width:360px;text-align:right}
.entry-table thead th{text-align:center;vertical-align:middle;line-height:1.2;padding:6px 7px;white-space:normal}
.entry-table thead .entry-head-group th{height:29px;background:#eef3f9;color:#43546b;font-size:9px;text-transform:none;border-bottom:1px solid #dce4ee}
.entry-table thead .entry-head-columns th{height:34px;background:#f7f9fc;color:#657389}
.expenses-table thead th:first-child,.managers-entry-table thead th:first-child{text-align:left}
.expenses-table td:nth-child(2){text-align:center}.expenses-table td:nth-child(3),.expenses-table td:nth-child(4),.expenses-table td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
.managers-entry-table td:nth-child(2),.managers-entry-table td:nth-child(3),.managers-entry-table td:nth-child(4),.managers-entry-table td:nth-child(9),.managers-entry-table td:nth-child(11){text-align:center}
.managers-entry-table td:nth-child(5),.managers-entry-table td:nth-child(6),.managers-entry-table td:nth-child(7),.managers-entry-table td:nth-child(8),.managers-entry-table td:nth-child(10){text-align:right;font-variant-numeric:tabular-nums}
.managers-entry-table input{text-align:right}.managers-entry-table td:nth-child(2) input,.managers-entry-table td:nth-child(3) input,.managers-entry-table td:nth-child(4) input{text-align:center}
.entry-readonly-value{display:inline-flex;align-items:center;justify-content:flex-end;min-height:30px;width:100%;font-weight:650;color:#233752;font-variant-numeric:tabular-nums}.entry-readonly-value.money{font-weight:750}.managers-entry-table td:nth-child(2) .entry-readonly-value,.managers-entry-table td:nth-child(3) .entry-readonly-value,.managers-entry-table td:nth-child(4) .entry-readonly-value{justify-content:center}
.locked-table-money{font-weight:700;color:#233752;white-space:nowrap}.locked-comment{color:#66758a;line-height:1.3}
.locked-value-source{display:none!important}.locked-money-value{height:38px;border:1px solid #e3e8ef;border-radius:7px;background:#f4f6f9;color:#233752;display:flex;align-items:center;padding:0 10px;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
.computed-field span,.expense-summary strong,.expense-row-total,.calc-cell{font-variant-numeric:tabular-nums}
.expense-summary>div{align-items:flex-start}.expense-summary strong{white-space:nowrap}
@media(max-width:1350px){.entry-card-head span{max-width:260px}}

/* v14.3 — управляемые расходы, порядок строк и упрощённая сверка */
.expenses-head{align-items:center}.expenses-head>div{flex:1;min-width:0}.expense-add-btn{min-width:142px!important;height:34px!important;flex:0 0 auto}
.expenses-table{min-width:1260px}.expenses-table col.exp-order{width:64px}.expenses-table col.exp-name{width:300px}.expenses-table col.exp-payment{width:150px}.expenses-table col.exp-money{width:122px}.expenses-table col.exp-total{width:128px}.expenses-table col.exp-comment{width:250px}.expenses-table col.exp-action{width:88px}
.expenses-table th,.expenses-table td{text-align:center}.expenses-table th:nth-child(2),.expenses-table td:nth-child(2),.expenses-table th:nth-child(7),.expenses-table td:nth-child(7){text-align:left}.expenses-table td:nth-child(4),.expenses-table td:nth-child(5),.expenses-table td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
.expense-order-cell{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.expense-order-number{font-size:9px;font-weight:750;color:#7a8799}.expense-drag-handle{width:26px;height:26px;border:1px solid #dce3ec;background:#fff;border-radius:6px;color:#617188;cursor:grab;font-size:13px;line-height:1}.expense-drag-handle:active{cursor:grabbing}.expense-fixed-mark{font-size:8px;color:#1769ff}.expenses-table tr.dragging{opacity:.45}.expenses-table tr.drag-over td{background:#f1f6ff}
.expense-payment-select{width:100%;height:30px;border:1px solid #d8e0ea;border-radius:6px;padding:0 7px;background:#fff;color:#18304f;font-size:9.5px;outline:none}.expense-payment-select:focus{border-color:#1769ff;box-shadow:0 0 0 2px rgba(23,105,255,.08)}.expense-payment-select:disabled{background:#f2f4f7;color:#8c98a9}
.expense-actions-cell{text-align:center!important}.expense-delete-btn{height:27px;padding:0 8px;border:1px solid #f0d4d0;border-radius:6px;background:#fff8f7;color:#c94c3e;font-size:8.5px;font-weight:700;cursor:pointer}.expense-delete-btn:hover{background:#fff0ee}.expense-protected{font-size:8.5px;color:#8b97a8}.expenses-table input:disabled{background:#f1f3f6!important;color:#a0a9b6!important}
.legacy-expense-row td:nth-child(4),.legacy-expense-row td:nth-child(5){color:#8b96a6;text-align:center}.legacy-expense-row td:nth-child(2){text-align:left}

.managers-entry-table{min-width:1450px}.managers-entry-table col.mgr-name{width:170px}.managers-entry-table col.mgr-rank{width:78px}.managers-entry-table col.mgr-shifts{width:74px}.managers-entry-table col.mgr-orders{width:76px}.managers-entry-table col.mgr-revenue{width:142px}.managers-entry-table col.mgr-bonus{width:132px}.managers-entry-table col.mgr-salary{width:125px}.managers-entry-table col.mgr-avg{width:120px}.managers-entry-table col.mgr-margin{width:78px}.managers-entry-table col.mgr-net{width:150px}.managers-entry-table col.mgr-conv{width:88px}
.managers-entry-table td:nth-child(5) input,.managers-entry-table td:nth-child(6) input,.managers-entry-table td:nth-child(7) input{font-size:10.5px;padding-left:9px;padding-right:9px}

.control-layout{grid-template-columns:1fr 1fr;align-items:start}.reconciliation-card{min-width:0}.recon-explainer{margin:-2px 0 12px;padding:9px 10px;border:1px solid #e4ebf4;border-radius:8px;background:#f8fafc;color:#627188;font-size:9px;line-height:1.45}.recon-explainer b{color:#243a59}.recon-head,.recon-row{grid-template-columns:1.05fr 1fr 1fr .9fr .78fr;gap:10px}.recon-head{padding:0 8px}.recon-row{min-height:52px;height:auto;padding:7px 8px}.recon-head span:not(:first-child),.recon-row b,.recon-row strong{text-align:right}.recon-status{justify-self:end;min-width:72px;height:22px;padding:0 8px;border-radius:99px;display:inline-flex;align-items:center;justify-content:center;font-size:8.3px;font-style:normal;font-weight:750}.recon-status.ok{background:#e8f7ed;color:#078947}.recon-status.warn{background:#fff3df;color:#b86b00}.recon-status.neutral{background:#f1f3f6;color:#788598}.recon-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.recon-summary span{min-height:48px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;padding:8px 10px}.recon-summary b{float:none;text-align:right;white-space:nowrap}.recon-summary small{grid-column:1/-1;color:#8a96a8;font-size:7.8px;margin-top:-2px}
@media(max-width:1350px){.control-layout{grid-template-columns:1fr}.expense-add-btn{min-width:132px!important}}
.expenses-table th,.managers-entry-table th{width:auto!important}.expenses-table td:nth-child(2) strong{display:block;font-size:10px}.expenses-table td:nth-child(2) small{display:block;margin-top:2px;color:#8a96a8;font-size:8.5px}
