/* Dynamic application additions layered on top of the approved static prototype. */
.logout-link{color:var(--muted);font-size:11px}.logout-link:hover{color:var(--jade)}
.role-switch:disabled{opacity:1;color:var(--ink);cursor:default}
.brand>span:last-child{display:flex;min-width:0;flex-direction:column;align-items:flex-start}.brand-title,.brand-sub{display:block;max-width:100%;white-space:nowrap}.brand-sub{margin-top:3px}
.brand .brand-logo-wrap{display:block;flex:0 0 auto;overflow:hidden;padding:0;background:transparent;border:0;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.brand .brand-logo-wrap img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.notice{margin-bottom:16px}.head-actions,.page-actions,.form-actions,.row-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.head-actions,.page-actions{justify-content:flex-end}.form-actions{justify-content:flex-end;padding-top:15px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:18px;padding:20px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.panel-head h3{margin:0;font-size:16px}
.button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 15px;color:var(--ink);font-weight:650;background:#fff;border:1px solid var(--line);border-radius:10px}
.button.primary{color:#fff;background:var(--jade);border-color:var(--jade)}.button.accent{color:#fff;background:var(--orange);border-color:var(--orange)}.button.small{min-height:32px;padding:0 11px;font-size:12px}
.coverage{display:inline-flex;align-items:center;padding:5px 10px;color:#2e6557;font-size:11px;background:var(--jade-soft);border-radius:999px}
.trial-banner,.return-note,.info-callout{margin-bottom:16px;padding:12px 16px;border:1px solid #ead6a8;border-radius:12px;background:var(--amber-soft);color:#745619;font-size:12px}.return-note{border-color:#e7bcbc;background:var(--red-soft);color:#8f4141}.info-callout{border-color:#c9e2d8;background:var(--jade-soft);color:#285e50}
.analysis-meta{display:flex;align-items:center;gap:14px;margin-bottom:16px}.analysis-meta p{margin:0;color:var(--muted);font-size:12px}
.analysis-kpis{margin-bottom:18px}.analysis-kpis .metric-foot{min-height:18px}
body{line-height:normal}
.app-shell .sidebar{padding:0}
.sidebar nav.nav-scroll{display:block;gap:0;scrollbar-width:none;-ms-overflow-style:none}.nav-scroll::-webkit-scrollbar{display:none}
.sidebar .nav-scroll .nav-link{min-height:44px;margin:3px 0;padding:0 13px;color:rgba(245,252,248,.72);border-radius:11px;box-shadow:none}
.sidebar .nav-scroll .nav-link:hover{color:#fff;background:rgba(255,255,255,.07);box-shadow:none}
.sidebar .nav-scroll .nav-link.active{color:#fff;background:rgba(255,255,255,.12);box-shadow:none}
.accounting-table .table-input[type="number"]{-moz-appearance:textfield;appearance:textfield}
.accounting-table .table-input[type="number"]::-webkit-inner-spin-button,.accounting-table .table-input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.accounting-table thead th,.excel-accounting-table thead th{font-family:var(--sans);font-weight:800}
.topbar .page-title{font-size:20px}
.hero-strip .hero-title{max-width:650px;margin:10px 0 8px;font-size:25px;line-height:1.35}
.hero-strip .hero-copy{max-width:720px;margin:0;color:rgba(255,255,255,.68);line-height:1.8}
.filter-bar .tabs{margin-bottom:0}.tree-view-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
/* finesse · component: report-unit-picker · register=product
 * states: default · hover · focus-visible · active · disabled · loading · error · success
 * tokens: inherited (app.css and themes.css) */
.report-unit-filter{position:relative;align-items:center;flex-wrap:nowrap}.report-period-form{flex:0 0 auto}.report-period-form .filter-select{height:46px}.report-unit-picker{position:relative;flex:0 0 260px;min-width:220px}.report-unit-picker-trigger{display:grid;width:100%;height:46px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:0 13px;color:var(--ink);text-align:left;background:var(--card,#fafcfb);border:1px solid #d5e1db;border-radius:10px;outline:2px solid transparent;outline-offset:2px;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .08s ease}.report-unit-picker-trigger>span{color:var(--muted);font-size:10px;font-weight:700}.report-unit-picker-trigger>strong{min-width:0;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.report-unit-picker-trigger>i{color:var(--muted);font-size:15px;font-style:normal;transition:transform .16s ease}.report-unit-picker-trigger:focus-visible{border-color:var(--green);outline-color:var(--green)}.report-unit-picker-trigger:active{transform:translateY(1px)}.report-unit-picker-trigger:disabled{opacity:.48;cursor:not-allowed}.report-unit-picker.is-open .report-unit-picker-trigger{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,107,80,.10)}.report-unit-picker.is-open .report-unit-picker-trigger>i{transform:rotate(180deg)}
.report-unit-picker-panel{position:absolute;z-index:120;top:calc(100% + 9px);left:0;width:360px;max-width:calc(100vw - 48px);min-width:0;padding:14px;background:var(--card,#fafcfb);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 60px -28px rgba(23,61,49,.38)}.report-unit-picker-panel[hidden]{display:none}.report-unit-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.report-unit-picker-head>div{display:grid;gap:3px}.report-unit-picker-head strong{font-size:14px}.report-unit-picker-head span{color:var(--muted);font-size:11px}.report-unit-picker-head>button{display:grid;width:32px;height:32px;place-items:center;color:var(--muted);font-size:19px;background:#eef3f0;border:0;border-radius:8px;outline:2px solid transparent;outline-offset:2px}.report-unit-picker-head>button:focus-visible{outline-color:var(--green)}
.report-unit-options{display:grid;gap:6px;max-height:320px;overflow-y:auto;padding:2px 4px 2px 0;overscroll-behavior:contain;scrollbar-width:thin}.report-unit-option{display:block!important;min-width:0!important;cursor:pointer}.report-unit-option input{position:absolute;width:1px!important;height:1px!important;overflow:hidden;opacity:0}.report-unit-option span{display:flex;min-width:0;min-height:42px;align-items:center;gap:9px;padding:0 10px;color:var(--ink);font-size:12px;font-weight:700;background:#f3f7f5;border:1px solid transparent;border-radius:9px;outline:2px solid transparent;outline-offset:1px;transition:background-color .14s ease,border-color .14s ease}.report-unit-option span>i{display:grid;flex:0 0 18px;width:18px;height:18px;place-items:center;color:transparent;font-size:10px;font-style:normal;background:#fafcfb;border:1px solid #bfd0c8;border-radius:5px}.report-unit-option input:focus-visible+span{border-color:var(--green);outline-color:var(--green)}.report-unit-option input:checked+span{color:var(--green);background:#e6f1eb;border-color:#b9d7c9}.report-unit-option input:checked+span>i{color:#fff;background:var(--green);border-color:var(--green)}.report-unit-empty{padding:28px 12px;text-align:center;color:var(--muted);font-size:12px}.report-unit-picker-error{margin-top:8px;padding:8px 10px;color:#99463f;font-size:11px;background:#fff0ed;border-radius:8px}.report-unit-picker-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:10px -14px -14px;padding:11px 14px;background:#f5f8f6;border-top:1px solid var(--line);border-radius:0 0 14px 14px}.report-unit-picker-foot .btn{min-width:76px;min-height:38px}.report-unit-picker-foot .btn:focus-visible{outline:2px solid var(--green);outline-offset:2px}.report-unit-picker-foot .btn:active{transform:translateY(1px)}.report-unit-picker-foot .btn:disabled{opacity:.48;cursor:not-allowed}.report-unit-picker-foot .is-loading{cursor:wait}
@media(hover:hover){.report-unit-picker-trigger:hover{background:#f7faf8;border-color:#bcd4ca}.report-unit-picker-head>button:hover{color:var(--ink);background:#e4ece8}.report-unit-option span:hover{background:#edf4f0;border-color:#c9dcd3}}
.analysis-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr);gap:18px}.analysis-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
/* finesse · component: period-governance · register=product
 * states: default · hover · focus-visible · active · disabled · loading · error · success
 * tokens: inherited (app.css and themes.css) */
.period-governance{margin-bottom:18px;overflow:hidden;background:var(--card,#fafcfb);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px -26px rgba(25,63,51,.36)}.period-governance.is-closed{background:#fff9f7;border-color:#ecd4cf}.period-governance.is-open{background:#f6faf8;border-color:#cee2d8}.period-governance-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px 20px}.period-governance-status{display:grid;width:46px;height:46px;place-items:center;font-size:15px;font-weight:800;border-radius:13px}.period-governance.is-closed .period-governance-status{color:#a65248;background:#f7dfda}.period-governance.is-open .period-governance-status{color:var(--green);background:#dfeee7}.period-governance-copy{min-width:0}.period-governance-badge{display:inline-flex;align-items:center;min-height:24px;margin-bottom:5px;padding:0 9px;color:var(--muted);font-size:10px;font-weight:800;background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:999px}.period-governance-copy h3{margin:0;color:var(--ink);font-size:16px;line-height:1.45}.period-governance-copy p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.period-governance-reason{display:flex;min-width:0;align-items:flex-start;gap:7px;margin-top:7px;color:#76534d;font-size:11px;line-height:1.5}.period-governance-reason span{flex:0 0 auto;padding:1px 6px;color:#925148;background:#f9e9e5;border-radius:5px}.period-governance-check{min-height:40px;white-space:nowrap;background:rgba(255,255,255,.76)}.period-governance-check span{color:var(--muted)}.period-governance-action{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(480px,1.2fr);align-items:center;gap:20px;padding:13px 20px;background:rgba(255,255,255,.55);border-top:1px solid var(--line)}.period-governance-action-copy{display:grid;gap:3px;min-width:0}.period-governance-action-copy strong{color:var(--ink);font-size:12px}.period-governance-action-copy span{color:var(--muted);font-size:10px;line-height:1.55}.period-governance-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;width:100%;max-width:680px;margin-left:auto}.period-governance-form label{display:grid;min-width:0;gap:4px}.period-governance-form label>span{color:var(--muted);font-size:10px;font-weight:700}.period-governance-form .field{width:100%;min-width:0;height:42px;background:var(--card,#fafcfb);border:1px solid #d5e1db;border-radius:9px;outline:2px solid transparent;outline-offset:1px}.period-governance-form .field:focus{border-color:var(--green);outline-color:var(--green);box-shadow:none}.period-governance-form .btn{min-width:126px;height:42px;white-space:nowrap;outline:2px solid transparent;outline-offset:2px}.period-governance-form .btn:focus-visible,.period-governance-check:focus-visible{outline-color:var(--green)}.period-governance-form .btn:active,.period-governance-check:active{transform:translateY(1px)}.period-governance-form .btn:disabled{opacity:.48;cursor:not-allowed}.period-governance-form .btn.is-loading{cursor:wait}
@media(hover:hover){.period-governance-check:hover{border-color:#b9cec5;background:var(--card,#fafcfb)}.period-governance-form .btn:not(:disabled):hover{filter:brightness(.96)}}
.chart-box{position:relative;min-height:280px}.bar-list{display:flex;flex-direction:column;gap:13px}.bar-item{display:grid;grid-template-columns:80px 1fr 90px;gap:8px;align-items:center;font-size:11px}.bar-track{height:8px;background:#edf2ef;border-radius:99px;overflow:hidden}.bar-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,var(--jade),#69ae97)}.bar-item b{text-align:right}
.waterfall{display:flex;align-items:flex-end;gap:6px;height:220px;padding-top:20px}.wf-item{flex:1;text-align:center}.wf-bar{min-height:2px;border-radius:5px 5px 0 0;background:var(--jade)}.wf-item.decrease .wf-bar{background:var(--orange)}.wf-item.subtotal .wf-bar{background:#d4a14d}.wf-item span{display:block;margin-top:6px;color:var(--muted);font-size:9px}.wf-item b{display:block;font-size:9px;white-space:nowrap}
.metric-list{display:grid}.metric-list>div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #edf2ef}.metric-list span{color:var(--muted);font-size:12px}
.capital-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.capital-grid>div{padding:14px;border-radius:10px;background:#f6f9f7}.capital-grid span,.capital-grid b{display:block}.capital-grid span{color:var(--muted);font-size:11px}
.alert-list{display:flex;flex-direction:column}.alert-row{display:flex;align-items:center;gap:11px;padding:11px 3px;border-bottom:1px solid #edf2ef}.alert-row>div{flex:1}.alert-row strong{font-size:13px}.alert-row p{margin:1px 0;color:var(--muted);font-size:11px}.alert-dot{width:9px;height:9px;border-radius:50%;background:#d0a136}.alert-dot.red{background:var(--red)}.alert-dot.orange{background:var(--orange)}.alert-dot.yellow{background:#d0a136}
.empty-mini,.empty-state{padding:30px;text-align:center;color:var(--muted)}.up,.positive{color:var(--jade)!important}.down,.negative{color:var(--red)!important}.muted{color:#98a39f}
.accounting-panel{padding:0;overflow:hidden}.accounting-panel .card-head{padding:18px 20px}.accounting-table-wrap{max-height:calc(100vh - 300px);overflow:auto}
.excel-accounting-table{min-width:1580px}.excel-accounting-table th,.excel-accounting-table td{font-size:11px}.excel-accounting-table input{width:100%;min-width:78px;height:30px;padding:0 7px;text-align:right;color:var(--ink);background:#fff8df;border:1px solid #efd898;border-radius:5px}.excel-accounting-table input[readonly]{color:#687a73;background:#edf2ef;border-color:transparent}
.excel-accounting-table .readonly-cell{background:#f1f5f3}.excel-accounting-table .lock{display:inline-block;margin-left:3px;color:#87958f;font-size:9px}.excel-accounting-table .num{text-align:right;font-variant-numeric:tabular-nums}
.excel-accounting-table .group-row td{color:#fff;background:#2b6759;font-weight:700}.excel-accounting-table .total-row td{background:#e7f2ed;font-weight:700}
.kind{padding:2px 7px;border-radius:999px;background:#edf2ef;font-size:9px}.kind-manual{color:#21664e;background:#def0e8}.kind-fixed,.kind-allocation{color:#805b1f;background:#f8ead0}
.reason-form{display:flex;align-items:center;gap:6px}.reason-form input,.threshold-input{height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px}.danger-text{color:var(--red)!important}
.store-card form{margin:0}.compact-form{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}.compact-form .form-item{min-width:140px;flex:1}.compact-form .field{height:38px}
.store-card{display:flex;flex-direction:column}.store-card .store-foot{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin-top:auto}.store-card .store-foot-note{order:2;display:block;white-space:nowrap}.store-card .store-foot .actions{order:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%}.store-card .store-foot .actions>.btn,.store-card .store-foot .actions>form,.store-card .store-foot .actions>form .btn{width:100%;min-width:0}.store-card .store-foot .actions .btn{justify-content:center;padding-left:4px;padding-right:4px;font-size:11px;white-space:nowrap}
.actions form{margin:0}.btn:disabled{cursor:not-allowed;opacity:.45}.form-item-wide{grid-column:1/-1}
.btn-warning{color:#8a5b13;background:#fff4da;border-color:#ebc77c}.btn-warning:hover{background:#fce9bd}
.store-card.is-disabled{color:#87918d;background:#f1f3f2;border-color:#d8ddda;box-shadow:none}.store-card.is-disabled::before{background:#a6afab}.store-card.is-disabled .store-code,.store-card.is-disabled .store-name,.store-card.is-disabled .store-stat span,.store-card.is-disabled .store-stat strong,.store-card.is-disabled .store-foot-note{color:#8f9995}.store-card.is-disabled .store-stats{border-color:#d6dbd8}.store-card.is-disabled .btn:not(.btn-primary){color:#7f8985;background:#ecefed;border-color:#d5dad7}
.unit-disabled-row{color:#929c98}.unit-disabled-row td,.review-card.unit-disabled-row{background:#f1f3f2!important}.unit-disabled-row .positive,.unit-disabled-row .negative,.unit-disabled-row strong{color:#7f8985}.unit-state-badge{margin-left:8px;vertical-align:middle}.unit-disabled-notice{color:#68736e;background:#eef1ef;border-color:#d5dcda}.unit-disabled-notice>span{color:#fff;background:#8d9893}
.timeline-item.unit-disabled-log{color:#939c98;background:#f1f3f2}.timeline-item.unit-disabled-log .timeline-time,.timeline-item.unit-disabled-log .timeline-title,.timeline-item.unit-disabled-log .timeline-copy{color:#8c9691}
.period-field{width:170px;height:38px}.unit-multi{width:150px;height:38px}.month-field{width:160px;height:38px}.filter-note{color:var(--muted);font-size:12px}.progress-time{margin-top:12px;color:rgba(255,255,255,.65);font-size:11px}.table-card-body{padding:0 0 8px;overflow-x:auto}
.native-date-picker:not(:disabled):not([readonly]){cursor:pointer}.native-date-picker::-webkit-calendar-picker-indicator{cursor:pointer}
.accounting-list-table .return-reason{max-width:220px;margin-top:7px;color:#a44c3d;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.store-foot-note{color:var(--muted);font-size:11px}.audit-summary{grid-template-columns:1fr}.audit-notice{margin:15px 0 0}
.history-wrap{border:0;border-radius:16px}
.history-table{min-width:1180px;table-layout:fixed}.history-table .history-col-month{width:14%}.history-table .history-col-unit{width:14%}.history-table .history-col-money{width:12%}.history-table .history-col-version{width:7%}.history-table .history-col-status{width:9%}.history-table .history-col-time{width:10%}.history-table .history-col-actions{width:10%}.history-table th:nth-child(3),.history-table th:nth-child(4),.history-table th:nth-child(5){text-align:right}.history-table th:nth-child(6),.history-table th:nth-child(7),.history-table th:nth-child(9),.history-table td:nth-child(6),.history-table td:nth-child(7),.history-table td:nth-child(9){text-align:center}.history-table td:nth-child(8){font-variant-numeric:tabular-nums}
.accounting-query{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:10px}.accounting-query .filter-select{width:auto;min-width:132px}
.accounting-inline-select{width:auto;min-width:112px;height:36px}
.sheet-table .subtotal-row td{font-weight:700;background:#fbfcfb}.sheet-table td.depth-2{padding-left:18px}.sheet-table td.depth-3{padding-left:30px}.sheet-table td.depth-4{padding-left:42px}.sheet-table td.depth-5{padding-left:54px}
.user-table-wrap,.fixed-table-wrap{border:0;border-radius:16px}
.sync-toast{position:fixed;z-index:9999;right:24px;bottom:24px;display:grid;grid-template-columns:1fr auto;gap:2px 18px;min-width:330px;padding:14px 16px;color:#214c3f;background:#fff;border:1px solid #c9e2d8;border-radius:12px;box-shadow:0 16px 45px rgba(22,57,47,.2)}.sync-toast strong,.sync-toast span{display:block}.sync-toast span{color:var(--muted);font-size:11px}.sync-toast button{grid-column:2;grid-row:1/3;padding:0 10px;color:var(--jade);background:var(--jade-soft);border:0;border-radius:8px;cursor:pointer}
.sync-toast.license-expired-action-notice{color:#76372f;background:#fff9f7;border-color:#edc8c1;box-shadow:0 18px 48px rgba(102,42,32,.18)}.sync-toast.license-expired-action-notice span{color:#986258}.sync-toast.license-expired-action-notice button{color:#8f392f;background:#f9e7e3}
@media(max-width:640px){.sync-toast{right:16px;bottom:16px;left:16px;min-width:0}}
.analysis-metric-dialog{width:min(680px,calc(100vw - 32px))}.analysis-metric-setting-list{display:grid;gap:10px}.analysis-metric-setting-row{display:grid;grid-template-columns:auto minmax(0,1fr) 112px;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}.analysis-metric-setting-row>input[type="checkbox"]{width:18px;height:18px;accent-color:var(--jade)}.analysis-metric-setting-row span{display:grid;gap:2px}.analysis-metric-setting-row strong{color:var(--ink)}.analysis-metric-setting-row small{color:var(--muted);font-size:12px}.analysis-metric-setting-row .field{min-height:38px;padding:7px 9px}@media(max-width:560px){.analysis-metric-setting-row{grid-template-columns:auto minmax(0,1fr)}.analysis-metric-setting-row .field{grid-column:2}}
.table-link{color:var(--jade);text-decoration:none}.table-link:hover{text-decoration:underline}
.nav-count{min-width:20px;height:20px;margin-left:auto;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;color:#fff;background:#d98b67;border-radius:999px;font-size:10px}
.accounting-create-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:16px;padding:20px 22px;background:linear-gradient(135deg,#eff8f4,#fff);border:1px solid #cde4db;border-radius:16px;box-shadow:var(--shadow)}
.accounting-create-copy{display:flex;align-items:center;gap:14px;min-width:280px}.accounting-create-copy h3{margin:0 0 4px;font-size:16px}.accounting-create-copy p{margin:0;color:var(--muted);font-size:12px}.create-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#fff;background:var(--jade);border-radius:12px;font-size:24px}
.accounting-create-form{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.accounting-create-form label{display:grid;gap:5px;color:var(--muted);font-size:11px}.accounting-create-form .field{width:180px;height:38px}.accounting-create-submit{height:38px}
.disabled-action-tip{display:inline-flex;cursor:not-allowed}.disabled-action-tip .accounting-create-submit:disabled{pointer-events:none}
.accounting-status-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.accounting-status-cards>div{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;background:#fff;border:1px solid var(--line);border-radius:12px}.accounting-status-cards span{color:var(--muted);font-size:11px}.accounting-status-cards strong{font-size:20px;color:var(--ink)}
.accounting-list-table td{vertical-align:middle}
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:14px 16px 6px}.pagination .btn{min-width:32px;height:32px;padding:0 9px}.pagination .btn.active{color:#fff;background:var(--jade);border-color:var(--jade);pointer-events:none}
.report-analysis-entry{background:linear-gradient(110deg,#eef8f4 0%,#fbfdfc 60%,#fff7e9 100%)}
.report-analysis-heading{align-items:flex-start}.report-analysis-heading p{max-width:920px;line-height:1.7}
.report-analysis-filter{display:grid;grid-template-columns:145px 180px 190px 160px minmax(300px,1fr) auto;gap:12px;align-items:end;margin-bottom:18px;padding:17px 18px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.report-analysis-filter>label,.report-store-filter{display:grid;gap:7px;min-width:0}.report-analysis-filter label>span,.report-store-filter>span{color:var(--muted);font-size:11px}.report-analysis-filter .filter-select{width:100%;height:40px}.report-analysis-submit{height:40px;white-space:nowrap}
.report-store-checks{display:flex;align-items:center;gap:7px;min-height:40px;overflow-x:auto;scrollbar-width:thin}.store-check-pill{position:relative;flex:0 0 auto}.store-check-pill input{position:absolute;opacity:0;pointer-events:none}.store-check-pill span{display:flex!important;align-items:center;height:34px;padding:0 11px;color:#567068!important;font-size:11px!important;background:#f4f7f6;border:1px solid #dde7e3;border-radius:9px;cursor:pointer;transition:.15s ease}.store-check-pill input:checked+span{color:#fff!important;background:var(--jade);border-color:var(--jade);box-shadow:0 5px 13px rgba(23,124,97,.16)}
.report-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.report-overview article{position:relative;min-width:0;padding:18px 18px 16px;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.report-overview article::after{content:"";position:absolute;right:-18px;bottom:-27px;width:75px;height:75px;background:#e6f3ee;border-radius:50%;opacity:.8}.report-overview span,.report-overview strong,.report-overview small{position:relative;z-index:1;display:block}.report-overview span{margin-bottom:11px;color:var(--muted);font-size:11px}.report-overview strong{overflow:hidden;color:var(--ink);font-size:21px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.report-overview small{margin-top:8px;color:#508271;font-size:10px}
.report-insight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.report-insight{display:flex;gap:10px;min-height:104px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:13px}.report-insight .insight-dot{flex:0 0 auto;width:8px;height:8px;margin-top:5px;background:#6c8f83;border-radius:50%}.report-insight h3{margin:0 0 7px;color:var(--ink);font-size:13px}.report-insight p{margin:0;color:var(--muted);font-size:11px;line-height:1.65}.report-insight.positive{background:#f2faf7;border-color:#cee8de}.report-insight.positive .insight-dot{background:var(--jade)}.report-insight.warning{background:#fffaf0;border-color:#efdfbd}.report-insight.warning .insight-dot{background:#d49b43}.report-insight.danger{background:#fff5f3;border-color:#efd0ca}.report-insight.danger .insight-dot{background:var(--red)}.report-insight.info{background:#f4f8fb;border-color:#d7e2ea}.report-insight.info .insight-dot{background:#4e7fa8}
.report-analysis-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(390px,1fr);gap:18px}.report-analysis-grid>.card{min-width:0}.report-analysis-lower{margin-top:18px}.report-chart-card canvas,.report-trend-card canvas{display:block;width:100%;max-width:100%}.report-trend-card{margin-top:18px}.report-chart-card .card-head,.report-trend-card .card-head{align-items:flex-start}.chart-switch{display:flex;flex:0 0 auto;gap:3px;padding:3px;background:#eef3f1;border-radius:9px}.chart-switch button{height:28px;padding:0 10px;color:#71817b;font-size:10px;background:transparent;border:0;border-radius:7px;cursor:pointer}.chart-switch button.active{color:#fff;background:var(--jade);box-shadow:0 3px 9px rgba(23,124,97,.18)}.report-benchmark{flex:0 0 auto;padding:5px 9px;color:#9a6d26;font-size:10px;background:#fff6df;border-radius:999px}
.report-matrix-wrap{overflow-x:auto}.report-matrix{display:grid;grid-template-columns:100px repeat(var(--matrix-columns),minmax(82px,1fr));min-width:650px;border-top:1px solid #e7eeeb;border-left:1px solid #e7eeeb;border-radius:10px;overflow:hidden}.report-matrix>div{min-height:54px;padding:9px;border-right:1px solid #e7eeeb;border-bottom:1px solid #e7eeeb}.matrix-corner,.matrix-head{display:flex;align-items:center;color:#667a72;font-size:10px;font-weight:700;background:#f5f8f7}.matrix-corner{justify-content:flex-start}.matrix-head{justify-content:center;text-align:center}.matrix-store{display:flex;align-items:center;color:var(--ink);font-size:11px;font-weight:700}.matrix-cell{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.matrix-cell strong{font-size:12px}.matrix-cell small{display:block;margin-top:4px;color:#84928d;font-size:8px}.matrix-cell.good{color:#177c61;background:#edf8f4}.matrix-cell.bad{color:#bf5749;background:#fff2ef}.matrix-cell.neutral{color:#526a62;background:#fafcfb}.matrix-legend{display:flex;justify-content:flex-end;gap:13px;margin-top:10px;color:#84928d;font-size:9px}.matrix-legend span::before{content:"";display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:2px}.matrix-legend .good::before{background:#bfe5d7}.matrix-legend .neutral::before{background:#dce5e1}.matrix-legend .bad::before{background:#f2c4bb}
.cost-burden-list{display:flex;flex-direction:column;gap:20px}.cost-burden-row{display:grid;grid-template-columns:92px 1fr;gap:11px;align-items:center}.cost-burden-label strong,.cost-burden-label span{display:block}.cost-burden-label strong{font-size:11px}.cost-burden-label span{margin-top:3px;color:var(--muted);font-size:8px}.cost-burden-track{display:flex;height:25px;overflow:hidden;background:#eef2f0;border-radius:7px}.cost-segment{display:block;min-width:0;transition:filter .15s ease}.cost-segment:hover{filter:brightness(.9)}.cost-legend{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:20px;color:#6f807a;font-size:9px}.cost-legend span{display:inline-flex;align-items:center}.cost-legend i{width:8px;height:8px;margin-right:5px;border-radius:2px}.report-footnote{margin:12px 0 0;color:#929e9a;font-size:9px;line-height:1.6}
.mini-comparison-table{display:grid;min-width:520px}.mini-table-head,.mini-table-row{display:grid;grid-template-columns:110px repeat(4,minmax(90px,1fr));align-items:center;min-height:45px;border-bottom:1px solid #e8eeeb}.mini-table-head{min-height:36px;color:#73857e;font-size:9px;background:#f6f8f7;border-radius:8px 8px 0 0}.mini-table-head span,.mini-table-row span,.mini-table-row strong{padding:0 9px;text-align:right}.mini-table-head span:first-child,.mini-table-row strong{text-align:left}.mini-table-row strong{color:var(--ink);font-size:11px}.mini-table-row span{color:#4e665e;font-size:10px;font-variant-numeric:tabular-nums}.report-metric-table{overflow-x:auto}
.report-detail-card{margin-top:18px}.report-comparison-table{min-width:1230px}.report-comparison-table td{white-space:nowrap}.report-comparison-table .table-link{display:grid;gap:3px}.report-comparison-table .table-link small{color:var(--muted);font-size:9px}.rank-chip{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;color:#177c61;font-size:10px;font-weight:700;background:#e7f4ef;border-radius:7px}
@media(max-width:1380px){.report-analysis-filter{grid-template-columns:repeat(4,minmax(130px,1fr))}.report-store-filter{grid-column:1/4}.report-analysis-submit{grid-column:4}.report-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.report-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1180px){.analysis-grid,.analysis-three{grid-template-columns:1fr 1fr}.capital-grid{grid-template-columns:1fr 1fr}.topbar-actions .role-switch{display:none}}
@media(max-width:1180px){.period-governance-action{grid-template-columns:1fr;gap:10px}.period-governance-form{max-width:none;margin-left:0}}
@media(max-width:1180px){.report-analysis-grid{grid-template-columns:1fr}.report-analysis-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.report-store-filter{grid-column:1/2}.report-analysis-submit{grid-column:2}.report-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1280px){.accounting-status-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.accounting-create-card{align-items:flex-start;flex-direction:column}.accounting-create-form{justify-content:flex-start}.accounting-status-cards{grid-template-columns:repeat(2,1fr)}.report-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.analysis-grid,.analysis-three,.capital-grid{grid-template-columns:1fr}.analysis-meta{align-items:flex-start;flex-direction:column}.topbar-actions .month-switch,.user-block,.logout-link{display:none}.accounting-create-form,.accounting-create-form label,.accounting-create-form .field,.accounting-create-submit{width:100%}.period-governance-main{grid-template-columns:auto minmax(0,1fr);align-items:start;padding:15px}.period-governance-status{width:42px;height:42px}.period-governance-check{grid-column:1/-1;width:100%}.period-governance-action{padding:13px 15px}.period-governance-form{grid-template-columns:1fr}.period-governance-form .btn{width:100%;min-height:44px}.report-analysis-filter{grid-template-columns:1fr}.report-store-filter,.report-analysis-submit{grid-column:1}.report-analysis-submit{width:100%}.report-overview,.report-insight-grid{grid-template-columns:1fr}.report-analysis-heading{gap:12px}.report-analysis-heading>.actions{justify-content:flex-start}.chart-switch{margin-top:8px}.report-chart-card .card-head,.report-trend-card .card-head{flex-direction:column}.report-overview strong{font-size:19px}}
@media(min-width:1381px) and (min-height:780px){body[data-page="dashboard"]{overflow-y:hidden}}

/* Report comparison: prototype layout with the application's jade-and-gold palette. */
body[data-title="门店对比分析"] .workspace{background:#f2f6f3}
body[data-title="门店对比分析"] .page{max-width:1680px;padding:20px 24px 42px}
.report-analysis-page{--rc-primary:#177c61;--rc-primary-dark:#105c49;--rc-primary-light:#e3f2ec;--rc-success:#2b9574;--rc-warning:#d59a43;--rc-danger:#d86f61;--rc-purple:#b4814b;--rc-cyan:#4e8f7b;--rc-page:#f2f6f3;--rc-card:#fff;--rc-header:#f6f9f7;--rc-text:#173c31;--rc-muted:#6f817a;--rc-light:#93a19c;--rc-border:#dce6e0;--rc-border-dark:#c9d6cf;color:var(--rc-text)}
.report-analysis-page .report-analysis-heading{align-items:center;margin-bottom:14px}.report-analysis-page .report-analysis-heading h2{color:var(--rc-text);font-size:22px}.report-analysis-page .report-analysis-heading p{margin-top:4px;color:var(--rc-muted);font-size:12px}.report-analysis-page .report-analysis-heading .btn{min-height:34px;color:var(--rc-text);font-size:12px;border-color:var(--rc-border-dark);border-radius:6px;box-shadow:none}.report-analysis-page .report-analysis-heading .btn:hover{color:var(--rc-primary);background:var(--rc-primary-light);border-color:var(--rc-primary);transform:none}
.report-analysis-page .report-analysis-filter{grid-template-columns:135px 168px 178px 150px minmax(295px,1fr) auto;gap:12px;margin-bottom:14px;padding:14px 16px;background:var(--rc-card);border:1px solid var(--rc-border);border-radius:8px;box-shadow:0 1px 3px rgba(20,57,47,.06)}.report-analysis-page .report-analysis-filter>label,.report-analysis-page .report-store-filter{gap:5px}.report-analysis-page .report-analysis-filter label>span,.report-analysis-page .report-store-filter>span{color:var(--rc-muted);font-size:11px;font-weight:600}.report-analysis-page .report-analysis-filter .filter-select{height:36px;padding:0 10px;color:var(--rc-text);font-size:12px;background:var(--rc-page);border-color:var(--rc-border-dark);border-radius:6px;transition:border-color .2s,box-shadow .2s}.report-analysis-page .report-analysis-filter .filter-select:hover,.report-analysis-page .report-analysis-filter .filter-select:focus{border-color:var(--rc-primary);box-shadow:0 0 0 3px rgba(23,124,97,.09)}.report-analysis-page .report-analysis-submit{height:36px;min-height:36px;padding:0 18px;background:var(--rc-primary);border-color:var(--rc-primary);border-radius:6px;box-shadow:0 3px 8px rgba(23,124,97,.18);transition:background .15s,box-shadow .15s,transform .15s}.report-analysis-page .report-analysis-submit:hover{background:var(--rc-primary-dark);border-color:var(--rc-primary-dark);box-shadow:0 5px 12px rgba(23,124,97,.24);transform:translateY(-1px)}
.report-analysis-page .report-store-checks{gap:6px;min-height:36px}.report-analysis-page .store-check-pill span{height:30px;padding:0 10px;color:var(--rc-muted)!important;background:var(--rc-header);border-color:var(--rc-border);border-radius:5px;transition:all .15s}.report-analysis-page .store-check-pill span:hover{color:var(--rc-primary)!important;border-color:#9bc8b8;background:#edf7f3}.report-analysis-page .store-check-pill input:checked+span{color:#fff!important;background:var(--rc-primary);border-color:var(--rc-primary);box-shadow:none}
.report-analysis-page .trial-banner{border-color:#f4d8a4;background:#fffbeb;color:#92400e;border-radius:6px}
.report-analysis-page .report-overview{gap:12px;margin-bottom:12px}.report-analysis-page .report-overview article{padding:15px 16px 14px;background:var(--rc-card);border:1px solid var(--rc-border);border-left:4px solid var(--rc-primary);border-radius:8px;box-shadow:0 1px 3px rgba(15,23,42,.06);transition:transform .18s,box-shadow .18s}.report-analysis-page .report-overview article:nth-child(2){border-left-color:var(--rc-cyan)}.report-analysis-page .report-overview article:nth-child(3){border-left-color:var(--rc-success)}.report-analysis-page .report-overview article:nth-child(4){border-left-color:var(--rc-purple)}.report-analysis-page .report-overview article:nth-child(5){border-left-color:var(--rc-warning);background:linear-gradient(135deg,#fffbeb,#fff)}.report-analysis-page .report-overview article::after{display:none}.report-analysis-page .report-overview article:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(15,23,42,.09)}.report-analysis-page .report-overview span{margin-bottom:5px;color:var(--rc-muted);font-size:12px}.report-analysis-page .report-overview strong{font-size:22px;font-feature-settings:"tnum"}.report-analysis-page .report-overview small{margin-top:4px;color:var(--rc-light);font-size:10px}.report-analysis-page .report-overview .positive{color:var(--rc-success)!important}.report-analysis-page .report-overview .negative{color:var(--rc-danger)!important}
.report-view-tabs{position:sticky;z-index:15;top:78px;display:flex;gap:4px;margin:0 0 14px;padding:8px 10px 0;background:rgba(242,246,243,.96);border-bottom:1px solid var(--rc-border);backdrop-filter:blur(10px)}.report-view-tabs a{position:relative;padding:8px 16px;color:var(--rc-muted);font-size:12px;font-weight:600;background:transparent;border:1px solid transparent;border-bottom:0;border-radius:7px 7px 0 0;transition:color .15s,background .15s,border-color .15s}.report-view-tabs a:hover{color:var(--rc-primary);background:#f6f9f7}.report-view-tabs a.active{color:var(--rc-primary-dark);background:#fff;border-color:var(--rc-border)}.report-view-tabs a.active::after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:var(--rc-primary)}.report-anchor-section{scroll-margin-top:130px}
.report-analysis-page .report-insight-grid{gap:12px;margin-bottom:16px}.report-analysis-page .report-insight{position:relative;min-height:88px;padding:13px 14px;background:#fff!important;border:1px solid var(--rc-border);border-left:4px solid var(--rc-primary);border-radius:8px;box-shadow:0 1px 3px rgba(15,23,42,.04);transition:transform .18s,box-shadow .18s}.report-analysis-page .report-insight:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,23,42,.08)}.report-analysis-page .report-insight.warning{border-left-color:var(--rc-warning)}.report-analysis-page .report-insight.danger{border-left-color:var(--rc-danger)}.report-analysis-page .report-insight.positive{border-left-color:var(--rc-success)}.report-analysis-page .report-insight.info{border-left-color:var(--rc-primary)}.report-analysis-page .report-insight .insight-dot{display:none}.report-analysis-page .report-insight h3{margin-bottom:4px;color:var(--rc-text);font-size:12px}.report-analysis-page .report-insight p{color:var(--rc-muted);font-size:10px;line-height:1.6}
.report-analysis-page .report-analysis-grid{gap:16px}.report-analysis-page .report-analysis-lower,.report-analysis-page .report-trend-card,.report-analysis-page .report-detail-card{margin-top:16px}.report-analysis-page .card{overflow:hidden;background:var(--rc-card);border:1px solid var(--rc-border);border-radius:8px;box-shadow:0 1px 3px rgba(15,23,42,.06);transition:box-shadow .18s}.report-analysis-page .card:hover{box-shadow:0 5px 16px rgba(15,23,42,.08)}.report-analysis-page .card-head{position:relative;min-height:60px;padding:12px 15px 11px 19px;background:var(--rc-header);border-bottom:1px solid var(--rc-border)}.report-analysis-page .card-head::before{content:"";position:absolute;top:0;bottom:0;left:0;width:4px;background:var(--rc-primary)}.report-analysis-page .card-title{color:var(--rc-text);font-size:14px;font-weight:700}.report-analysis-page .card-subtitle{margin-top:3px;color:var(--rc-muted);font-size:10px}.report-analysis-page .card-body{padding:14px 16px 16px}
@media(min-width:1381px){.report-analysis-page .report-analysis-filter{grid-template-columns:135px 168px 178px minmax(295px,1fr) auto}}
.report-analysis-page .report-store-checks{overflow:visible;flex-wrap:wrap}.report-analysis-page .cost-segment{cursor:pointer}
.report-analysis-page .chart-switch{gap:2px;padding:3px;background:#e8efeb;border-radius:6px}.report-analysis-page .chart-switch button{height:26px;padding:0 10px;color:var(--rc-muted);border-radius:4px;transition:all .15s}.report-analysis-page .chart-switch button:hover{color:var(--rc-primary)}.report-analysis-page .chart-switch button.active{color:#fff;background:var(--rc-primary);box-shadow:0 2px 5px rgba(23,124,97,.2)}.report-analysis-page .report-benchmark{color:#805a1e;background:#f8ecd3;border-radius:4px}.report-analysis-page .report-chart-card canvas,.report-analysis-page .report-trend-card canvas{transition:opacity .18s,transform .18s}.report-analysis-page .chart-refreshing canvas{animation:rcChartRefresh .24s ease}.report-analysis-page .report-chart-card canvas{cursor:default}
.report-analysis-page .report-matrix{border-color:var(--rc-border);border-radius:6px}.report-analysis-page .report-matrix>div{border-color:var(--rc-border)}.report-analysis-page .matrix-corner,.report-analysis-page .matrix-head{color:var(--rc-muted);background:var(--rc-header)}.report-analysis-page .matrix-store{color:var(--rc-text)}.report-analysis-page .matrix-cell.good{color:#166534;background:#f0fdf4}.report-analysis-page .matrix-cell.bad{color:#991b1b;background:#fef2f2}.report-analysis-page .matrix-cell.neutral{color:#334155;background:#fff}.report-analysis-page .matrix-cell{transition:filter .15s,transform .15s}.report-analysis-page .matrix-cell:hover{position:relative;z-index:2;filter:saturate(1.25);transform:scale(1.035);box-shadow:0 3px 10px rgba(15,23,42,.1)}
.report-analysis-page .cost-burden-track{height:24px;background:#eef2f7;border-radius:5px}.report-analysis-page .cost-segment{transition:filter .15s,transform .15s}.report-analysis-page .cost-segment:hover{filter:brightness(.92);transform:scaleY(1.14)}.report-analysis-page .cost-legend,.report-analysis-page .report-footnote{color:var(--rc-muted)}
.report-analysis-page .mini-table-head{color:var(--rc-muted);background:var(--rc-header);border-color:var(--rc-border);border-radius:5px 5px 0 0}.report-analysis-page .mini-table-row{border-color:var(--rc-border);transition:background .15s}.report-analysis-page .mini-table-row:hover{background:#f6f9f7}.report-analysis-page .mini-table-row strong{color:var(--rc-text)}.report-analysis-page .mini-table-row span{color:#536b62}
.report-analysis-page .report-detail-card .card-body{padding:0}.report-analysis-page .report-comparison-table thead th{position:sticky;z-index:3;top:0;color:var(--rc-muted);font-weight:600;background:var(--rc-header);border-bottom:2px solid var(--rc-border)}.report-analysis-page .report-comparison-table tbody tr{transition:background .15s}.report-analysis-page .report-comparison-table tbody tr:hover{background:#f6f9f7}.report-analysis-page .table-link{color:var(--rc-primary-dark)}.report-analysis-page .rank-chip{color:var(--rc-primary-dark);background:var(--rc-primary-light);border-radius:5px}.report-analysis-page .coverage{color:var(--rc-primary-dark);background:var(--rc-primary-light)}
.report-chart-tooltip{position:fixed;z-index:9999;max-width:230px;padding:10px 12px;color:#173c31;font-size:11px;line-height:1.55;pointer-events:none;background:#fafcf9;border:1px solid #dce9e1;border-radius:9px;box-shadow:0 12px 30px rgba(23,60,49,.18),0 3px 8px rgba(23,60,49,.08);opacity:0;transform:translateY(4px);transition:opacity .12s,transform .12s}.report-chart-tooltip.show{opacity:1;transform:translateY(0)}.report-chart-tooltip strong,.report-chart-tooltip span{display:block}.report-chart-tooltip strong{font-weight:700}.report-chart-tooltip span{color:#177c61;font-weight:700}
.report-reveal{opacity:0;transform:translateY(10px)}.report-reveal.is-visible{animation:rcReveal .38s cubic-bezier(.2,.7,.3,1) forwards;animation-delay:var(--reveal-delay,0ms)}
@keyframes rcReveal{to{opacity:1;transform:translateY(0)}}
@keyframes rcChartRefresh{0%{opacity:.35;transform:translateY(3px)}100%{opacity:1;transform:translateY(0)}}
.report-analysis-page .report-comparison-table{min-width:1309px;table-layout:fixed}.report-analysis-page .report-comparison-table .comparison-col-store{width:170px}.report-analysis-page .report-comparison-table .comparison-col-coverage{width:78px}.report-analysis-page .report-comparison-table .comparison-col-rank{width:88px}.report-analysis-page .report-comparison-table .comparison-col-money{width:135px}.report-analysis-page .report-comparison-table .comparison-col-compare{width:118px}.report-analysis-page .report-comparison-table .comparison-col-rate{width:108px}.report-analysis-page .report-comparison-table .comparison-col-alert{width:72px}.report-analysis-page .report-comparison-table th:nth-child(2),.report-analysis-page .report-comparison-table th:nth-child(3),.report-analysis-page .report-comparison-table th:nth-child(12),.report-analysis-page .report-comparison-table td:nth-child(2),.report-analysis-page .report-comparison-table td:nth-child(3),.report-analysis-page .report-comparison-table td:nth-child(12){text-align:center}.report-analysis-page .report-comparison-table th:nth-child(n+4):nth-child(-n+11),.report-analysis-page .report-comparison-table td:nth-child(n+4):nth-child(-n+11){text-align:right}
@media(max-width:1380px){.report-analysis-page .report-analysis-filter{grid-template-columns:repeat(4,minmax(130px,1fr))}.report-analysis-page .report-store-filter{grid-column:1/4}.report-analysis-page .report-analysis-submit{grid-column:4}}
@media(max-width:1180px){.report-analysis-page .report-analysis-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.report-analysis-page .report-store-filter{grid-column:1}.report-analysis-page .report-analysis-submit{grid-column:2}.report-view-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:none}.report-view-tabs::-webkit-scrollbar{display:none}}
@media(max-width:760px){body[data-title="门店对比分析"] .page{padding:14px}.report-analysis-page .report-analysis-filter{grid-template-columns:1fr}.report-analysis-page .report-store-filter,.report-analysis-page .report-analysis-submit{grid-column:1}.report-analysis-page .report-view-tabs{top:70px;margin-right:-4px;margin-left:-4px;padding-left:4px}.report-analysis-page .report-view-tabs a{padding:8px 12px}.report-analysis-page .report-overview{grid-template-columns:1fr 1fr}.report-analysis-page .report-overview article:first-child{grid-column:1/-1}.report-analysis-page .report-analysis-heading{align-items:flex-start;flex-direction:column}.report-analysis-page .report-analysis-heading>.actions{justify-content:flex-start}.report-analysis-page .report-insight-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.report-analysis-page *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}.report-reveal{opacity:1;transform:none}}
@media(max-width:980px){.report-unit-filter{display:grid;grid-template-columns:170px minmax(220px,260px);align-items:center}.report-unit-picker{width:100%;min-width:0}}
@media(max-width:620px){.report-unit-filter{grid-template-columns:1fr;gap:9px;padding:12px}.report-period-form,.report-period-form .filter-select,.report-unit-picker{width:100%}.report-unit-picker-trigger{height:48px}.report-unit-picker.is-open:before{position:fixed;z-index:170;inset:0;content:"";background:rgba(20,48,39,.28)}.report-unit-picker-panel{position:fixed;z-index:180;top:auto;right:10px;bottom:10px;left:10px;width:auto;max-width:none;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:14px;border-radius:17px}.report-unit-options{max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px)}.report-unit-picker-foot{margin:10px -14px -14px;padding:12px 14px;border-radius:0 0 17px 17px}.report-unit-picker-foot .btn{flex:1;min-height:44px}}
/* 固定规则弹窗：项目新建与改名均在栏目选择器内完成。 */
.fixed-subject-picker,
.fixed-subject-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fixed-subject-inline .field { min-width: 0; flex: 1; }
.fixed-subject-inline { margin-top: 8px; }
.fixed-subject-inline[hidden],
.fixed-subject-picker[hidden] { display: none; }
.fixed-subject-picker { position: relative; width: 100%; }
.fixed-subject-menu { width: 100%; }
.fixed-subject-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  color: #25483e;
  cursor: pointer;
  list-style: none;
  background: #fff;
  border: 1px solid #d3e1dc;
  border-radius: 9px;
}
.fixed-subject-menu > summary::-webkit-details-marker { display: none; }
.fixed-subject-menu[open] > summary { border-color: #80bba7; box-shadow: 0 0 0 3px rgba(23,124,97,.10); }
.fixed-subject-menu > summary > span:last-child { color: #729086; font-size: 15px; transition: transform .16s ease; }
.fixed-subject-menu[open] > summary > span:last-child { transform: rotate(180deg); }
.fixed-subject-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 260px;
  padding: 6px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d3e1dc;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15,70,55,.16);
}
.fixed-subject-option { display: flex; gap: 6px; align-items: center; border-radius: 7px; }
.fixed-subject-option.is-selected { background: #e9f6f0; }
.fixed-subject-option > [data-fixed-subject-select-option],
.fixed-subject-new {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  color: #25483e;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 7px;
}
.fixed-subject-option > [data-fixed-subject-select-option]:hover,
.fixed-subject-new:hover { color: #0c6d54; background: #f1faf6; }
.fixed-subject-new { width: 100%; margin-top: 4px; color: #127658; font-weight: 700; border-top: 1px solid #e5efeb; border-radius: 0 0 7px 7px; }
.fixed-subject-option-edit { flex-basis: 30px; width: 30px; height: 30px; margin-right: 3px; font-size: 15px; border-radius: 7px; }
.icon-btn {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #315d50;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: #f6faf8;
  border: 1px solid #d6e5df;
  border-radius: 9px;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.icon-btn:hover { color: #0d7057; background: #e8f5ef; border-color: #a6d4c3; transform: translateY(-1px); }
.icon-btn:focus-visible { outline: 3px solid rgba(23,124,97,.2); outline-offset: 2px; }
.icon-btn.success { color: #fff; background: #177c61; border-color: #177c61; }
.icon-btn.success:hover { color: #fff; background: #105c49; border-color: #105c49; }
.icon-btn:disabled { cursor: wait; opacity: .58; transform: none; }
@media (max-width: 560px) {
  .fixed-subject-picker,
  .fixed-subject-inline { gap: 6px; }
  .icon-btn { flex-basis: 36px; width: 36px; height: 36px; }
}

/* 栏目规则：中等宽度的桌面不压缩列内容，改为表格自身横向滚动。 */
@media (min-width: 761px) and (max-width: 1280px) {
  .subject-tree {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .subject-tree .subject-row {
    min-width: 1100px;
  }
}

/* 特殊解锁：将两种不可逆处理方式拆成独立卡片，避免操作与原因输入互相挤压。 */
.unlock-choice-dialog { width: min(760px, calc(100vw - 32px)); }
.unlock-choice-dialog .dialog-head { align-items: flex-start; padding-bottom: 18px; }
.unlock-choice-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.unlock-choice-dialog .dialog-body { padding-top: 18px; }
.unlock-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.unlock-choice-option { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 238px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.unlock-choice-admin { background: linear-gradient(145deg, #f3fbf7, #ffffff); border-color: #bfe2d2; }
.unlock-choice-return { background: linear-gradient(145deg, #fff8f6, #ffffff); border-color: #efd2ca; }
.unlock-choice-kicker { display: inline-flex; align-self: flex-start; margin-bottom: 9px; padding: 3px 8px; color: var(--green); font-size: 11px; font-weight: 700; line-height: 1.35; background: #e3f4eb; border-radius: 999px; }
.unlock-choice-return .unlock-choice-kicker { color: #b34d43; background: #ffebe7; }
.unlock-choice-option strong { color: var(--ink); font-size: 17px; line-height: 1.35; }
.unlock-choice-option > p { min-height: 54px; margin: 8px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.unlock-choice-option .btn { width: 100%; min-height: 40px; margin-top: auto; justify-content: center; white-space: nowrap; }
.unlock-reason-field { display: flex; flex-direction: column; gap: 6px; margin: -2px 0 14px; color: var(--muted); font-size: 12px; font-weight: 650; }
.unlock-reason-field textarea { width: 100%; min-height: 72px; padding: 9px 10px; color: var(--ink); font: inherit; line-height: 1.5; resize: vertical; background: #fff; border: 1px solid #e5c9c1; border-radius: 9px; outline: 0; box-sizing: border-box; }
.unlock-reason-field textarea:focus { border-color: #d17a6c; box-shadow: 0 0 0 3px rgba(209, 122, 108, .14); }
@media (max-width: 620px) {
  .unlock-choice-dialog { width: min(460px, calc(100vw - 20px)); }
  .unlock-choice-grid { grid-template-columns: 1fr; }
  .unlock-choice-option { min-height: auto; }
  .unlock-choice-option > p { min-height: 0; }
}

/* 年度计划：直接录入月度 MP，季度与年度合计由系统计算。 */
.annual-plan-heading { align-items: flex-end; }
.annual-plan-notice { margin-bottom: 16px; }
.annual-plan-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.annual-plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  min-width: 0;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(24, 72, 59, .05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.annual-plan-card:hover { transform: translateY(-2px); border-color: #a7d2c3; box-shadow: 0 12px 28px rgba(24, 72, 59, .10); }
.annual-plan-card-main { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; min-width: 0; }
.annual-plan-card-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; min-width: 112px; }
.annual-plan-card-actions form { margin: 0; }
.annual-plan-card-actions .btn { width: 100%; white-space: nowrap; }
.annual-plan-card-year { color: var(--green); font-size: 16px; font-weight: 800; }
.annual-plan-card-main > strong,
.annual-plan-card-main > small,
.annual-plan-card-main > i { grid-column: 1 / -1; }
.annual-plan-card-main > strong { font-size: 13px; line-height: 1.5; }
.annual-plan-card-main > small { color: var(--muted); }
.annual-plan-card-main > .annual-review-reason { grid-column: 1 / -1; }
.annual-plan-card-main > i { height: 5px; overflow: hidden; background: #e7efeb; border-radius: 999px; }
.annual-plan-card-main > i > b { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #49a98d); border-radius: inherit; }
.annual-plan-empty { margin-top: 14px; }
.annual-plan-review-card { margin-bottom: 16px; overflow: hidden; }
.annual-plan-review-card .data-table td { vertical-align: middle; }
.annual-plan-review-card .data-table td:last-child { min-width: 260px; }
.annual-plan-review-card .inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 4px 6px 4px 0; }
.annual-plan-review-card .inline-form .field { width: 170px; min-width: 140px; }
.annual-plan-review-card .inline-form label { white-space: nowrap; }
.annual-plan-company-summary { margin-top: 18px; overflow: hidden; }
.annual-plan-company-summary-list { display: grid; }
.annual-plan-company-summary-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 22px; border-top: 1px solid var(--line); }
.annual-plan-company-summary-year { color: var(--muted); font-size: 14px; font-weight: 700; }
.annual-plan-company-summary-row > strong { color: var(--green); font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.annual-plan-company-summary-row .btn { white-space: nowrap; }
@media (max-width: 600px) { .annual-plan-company-summary-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; } .annual-plan-company-summary-row .btn { justify-self: start; min-height: 44px; } }
.annual-review-section { margin-bottom: 16px; }
.annual-review-list { display: grid; gap: 10px; }
.annual-review-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface, #fbfdfb); }
.annual-review-item > div { display: grid; gap: 7px; min-width: 0; }
.annual-review-item > div > strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.annual-review-item > div > small { color: var(--muted); }
.annual-review-item .badge { justify-self: start; }
.annual-review-item .btn { flex: none; white-space: nowrap; }
.annual-review-reason { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(183, 63, 56, .26); border-radius: 10px; color: var(--ink); background: #fff4f0; }
.annual-review-reason > span { color: var(--red); font-size: 12px; font-weight: 800; }
.annual-review-reason > strong { color: #73302d; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.annual-review-reason > small { color: #885c55; font-size: 12px; }
@media (max-width: 600px) { .annual-review-item { align-items: stretch; flex-direction: column; } .annual-review-item .btn { min-height: 44px; } }
.annual-plan-workbench { overflow: hidden; }
.annual-plan-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--line);
}
.annual-plan-workbench-head h3 { margin: 4px 0 5px; color: var(--ink); font-size: 22px; }
.annual-plan-workbench-head p { margin: 0; color: var(--muted); }
.annual-plan-eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.annual-plan-summary { display: grid; grid-template-columns: auto auto; gap: 2px 12px; min-width: 160px; text-align: right; }
.annual-plan-summary span,
.annual-plan-summary small { color: var(--muted); font-size: 12px; }
.annual-plan-summary strong { color: var(--ink); font-size: 24px; }
.annual-plan-summary small { grid-column: 1 / -1; }
.annual-plan-unit-tabs { display: flex; gap: 8px; padding: 14px 24px 0; overflow-x: auto; }
.annual-plan-unit-tabs a { flex: 0 0 auto; padding: 9px 14px; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; background: #f1f6f3; border: 1px solid transparent; border-radius: 9px 9px 0 0; }
.annual-plan-unit-tabs a:hover { color: var(--green); }
.annual-plan-unit-tabs a.is-active { color: #fff; background: var(--green); }
.annual-plan-actions-bar { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 10px 24px; color: var(--muted); font-size: 12px; background: #f8fbf9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.annual-plan-actions-bar form { margin: 0; }
.annual-plan-grid-wrap { width: 100%; max-height: 68vh; overflow: auto; background: var(--surface, #fff); }
.annual-plan-grid { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.annual-plan-grid th,
.annual-plan-grid td { min-width: 118px; height: 56px; padding: 8px 9px; vertical-align: middle; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.annual-plan-grid th { position: sticky; top: 0; z-index: 5; height: 52px; color: #49665e; text-align: center; background: #eef5f1; }
.annual-plan-grid th small { display: block; margin-top: 2px; color: #82958f; font-size: 10px; font-weight: 500; }
.annual-plan-grid .annual-plan-code { position: sticky; left: 0; z-index: 3; min-width: 92px; width: 92px; background: var(--surface, #fff); }
.annual-plan-grid th.annual-plan-code { z-index: 7; background: #e8f2ed; }
.annual-plan-grid .annual-plan-subject { position: sticky; left: 92px; z-index: 3; min-width: 210px; width: 210px; background: var(--surface, #fff); box-shadow: 8px 0 12px rgba(32, 72, 61, .04); }
.annual-plan-grid th.annual-plan-subject { z-index: 7; background: #e8f2ed; }
.annual-plan-grid tr.is-primary td { color: #173c31; font-weight: 800; background: #eaf4ef; }
.annual-plan-grid tr.is-primary .annual-plan-code,
.annual-plan-grid tr.is-primary .annual-plan-subject { background: #eaf4ef; }
.annual-plan-grid tr.is-subtotal td { font-weight: 700; background: #f5f9f7; }
.annual-plan-grid tr.is-subtotal .annual-plan-code,
.annual-plan-grid tr.is-subtotal .annual-plan-subject { background: #f5f9f7; }
.annual-plan-code span { display: inline-block; padding-left: calc(var(--depth) * 8px); color: #58746b; }
.annual-plan-subject strong { display: block; max-width: 195px; overflow: hidden; text-overflow: ellipsis; }
.annual-plan-subject small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.annual-plan-month-cell .field,
.annual-plan-total-input .field { width: 100%; min-width: 98px; height: 36px; padding: 6px 8px; text-align: right; }
.annual-plan-total-cell { min-width: 178px !important; }
.annual-plan-total-input { display: grid; grid-template-columns: minmax(96px, 1fr) auto; gap: 5px; align-items: center; }
.annual-plan-calculated { color: #3b5d53; background: rgba(238, 245, 241, .5); }
.annual-plan-na { display: block; color: #98a7a2; font-size: 11px; text-align: center; }
.annual-plan-form-foot { position: sticky; bottom: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 24px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(26, 69, 57, .07); }
.annual-plan-form-foot div { display: flex; flex-direction: column; gap: 3px; }
.annual-plan-form-foot span { color: var(--muted); font-size: 12px; }
.annual-plan-publish { display: flex; justify-content: flex-end; padding: 0 24px 20px; background: var(--surface, #fff); }
.annual-plan-publish .btn { min-width: 150px; }
.annual-plan-create-dialog { width: min(760px, calc(100vw - 28px)); }
.annual-plan-create-dialog textarea.field { min-height: 84px; resize: vertical; }
.annual-plan-create-dialog .unit-check small { margin-left: 5px; color: var(--muted); font-size: 10px; }
.annual-plan-create-dialog .form-help.is-error { color: var(--red, #c74444); font-weight: 700; }
@media (max-width: 760px) {
  .annual-plan-card { grid-template-columns: 1fr; }
  .annual-plan-card-actions { flex-direction: row; }
  .annual-plan-heading,
  .annual-plan-workbench-head,
  .annual-plan-form-foot { align-items: stretch; flex-direction: column; }
  .annual-plan-heading .actions,
  .annual-plan-heading .btn { width: 100%; }
  .annual-plan-summary { text-align: left; }
  .annual-plan-actions-bar { align-items: stretch; flex-wrap: wrap; padding: 10px 14px; }
  .annual-plan-actions-bar .filter-spacer { display: none; }
  .annual-plan-unit-tabs { padding-left: 14px; }
  .annual-plan-workbench-head { padding: 18px 16px; }
  .annual-plan-grid-wrap { max-height: 62vh; }
  .annual-plan-grid .annual-plan-subject { min-width: 160px; width: 160px; left: 82px; }
  .annual-plan-grid .annual-plan-code { min-width: 82px; width: 82px; }
  .annual-plan-subject strong { max-width: 145px; }
  .annual-plan-form-foot { padding: 14px; }
  .annual-plan-form-foot .btn { width: 100%; }
}
