#monthly-report{color-scheme:light;--paper:#fff;--page:#f4f6f9;--ink:#18283b;--muted:#617185;--line:#e0e6ee;--soft:#f6f8fb;--blue:#2b6cb0;--blue-soft:#eaf2fb;--green:#22715b;--red:#b73f45;--amber:#916319;--purple:#79599a;--radius:9px;font:12px/1.55 var(--board-font)}
#monthly-report *{box-sizing:border-box}
#monthly-report{margin:0;color:var(--ink);background:var(--page)}
#monthly-report button,#monthly-report input,#monthly-report select{font:inherit;color:inherit}
#monthly-report button,#monthly-report select{cursor:pointer}
#monthly-report button{background:var(--paper);border:1px solid #cfd9e5;border-radius:5px;padding:7px 11px;font-weight:600;white-space:nowrap}
#monthly-report button:hover{background:var(--blue-soft);border-color:#9cb8d7}
#monthly-report button:disabled{cursor:default;opacity:.45}
#monthly-report button:focus-visible,#monthly-report a:focus-visible,#monthly-report input:focus-visible,#monthly-report select:focus-visible,#monthly-report summary:focus-visible{outline:3px solid #73a9e1;outline-offset:2px}
#monthly-report select,#monthly-report input{background:var(--paper);border:1px solid #ced8e3;border-radius:5px;padding:7px 9px;max-width:100%}
#monthly-report input[type=search]{width:220px}
#monthly-report a{color:inherit;text-decoration:none}
#monthly-report h1,#monthly-report h2,#monthly-report h3,#monthly-report p{margin:0}
#monthly-report h1{font-size:23px;letter-spacing:.02em;line-height:1.4}
#monthly-report h2{font-size:17px}
#monthly-report h3{font-size:13px}
#monthly-report small,#monthly-report .muted{color:var(--muted)}
#monthly-report .mono{font-variant-numeric:tabular-nums;letter-spacing:.01em}
#monthly-report .num{text-align:right;font-variant-numeric:tabular-nums}
#monthly-report .primary-button{background:var(--blue);border-color:var(--blue);color:#fff}
#monthly-report .primary-button:hover{background:#245c97;color:#fff}
#monthly-report .subtle-button{border:0;background:transparent;color:var(--blue);padding:3px 7px}
#monthly-report .sample-badge{font-size:11px;color:#6b5b2b;background:#fff7dd;border:1px solid #ead9a4;border-radius:4px;padding:3px 8px;white-space:nowrap}
#monthly-report .lab-header{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:12px;background:var(--paper);border-bottom:1px solid var(--line)}
#monthly-report .lab-brand{display:flex;align-items:center;gap:11px;font-size:15px;font-weight:700}
#monthly-report .brand-mark{background:#24496e;color:#fff;border-radius:8px;width:36px;height:36px;display:grid;place-items:center;position:relative;font-size:21px;font-weight:700}
#monthly-report .brand-mark span{font-size:12px;position:absolute;right:2px;top:2px;color:#b8d5f3}
#monthly-report .lab-brand small{display:block;font-size:10px;font-weight:500;letter-spacing:.07em}
#monthly-report .lab-actions{display:flex;align-items:center;gap:12px}
#monthly-report .lab-actions button{font-size:11px}
#monthly-report .variant-nav{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));padding:11px 20px;gap:5px;background:#edf1f6;border-bottom:1px solid #d6dfe9}
#monthly-report .variant-tab{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:1px solid transparent;background:transparent;border-radius:6px;padding:7px 9px;min-width:0}
#monthly-report .variant-tab .tab-number{font-size:10px;color:#718297;letter-spacing:.1em}
#monthly-report .variant-tab .tab-name{font-size:12px}
#monthly-report .variant-tab[aria-selected=true]{background:var(--paper);box-shadow:0 2px 6px #213d5a0c;border-color:#cbd9e9}
#monthly-report .variant-tab[aria-selected=true] .tab-number{color:var(--blue);font-weight:700}
#monthly-report .variant-tab[aria-selected=true] .tab-name{color:var(--blue)}
#monthly-report .workspace{display:flex;min-height:calc(100vh - 150px)}
#monthly-report .sidebar{width:168px;flex-shrink:0;border-right:1px solid var(--line);padding:24px 10px;background:var(--paper);position:relative}
#monthly-report .workspace-label{font-size:10px;color:#7d8997;padding:0 13px 9px;letter-spacing:.08em}
#monthly-report .side-link{display:flex;align-items:center;gap:9px;color:#637184;padding:10px 12px;border-radius:5px;font-size:12px}
#monthly-report .side-link.selected{background:var(--blue-soft);color:#245f9c;font-weight:700}
#monthly-report .side-dot{width:5px;height:5px;border-radius:50%;background:var(--blue);margin-left:auto}
#monthly-report .section-gap{margin-top:25px}
#monthly-report .sidebar-bottom{position:absolute;bottom:20px;left:22px;color:#5f7084;font-size:10px}
#monthly-report .sidebar-bottom small{display:block;font-size:9px;margin-top:4px;max-width:125px}
#monthly-report .tiny-dot{display:inline-block;width:5px;height:5px;background:#679b87;border-radius:50%;margin-right:4px}
#monthly-report main{flex:1;min-width:0;max-width:1880px;padding:26px 27px 16px;margin:auto}
#monthly-report .page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}
#monthly-report .eyebrow{font-size:9px;letter-spacing:.16em;font-weight:700;color:var(--blue);margin-bottom:5px}
#monthly-report .page-heading p{color:var(--muted);font-size:12px;margin-top:5px}
#monthly-report .variant-step{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;white-space:nowrap}
#monthly-report .variant-step button{width:29px;height:28px;padding:0;background:transparent}
#monthly-report .global-filters{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
#monthly-report .global-filters label{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)}
#monthly-report .global-filters select{font-size:12px;min-width:125px;color:var(--ink)}
#monthly-report .period-context{margin-left:auto;text-align:right;font-size:11px}
#monthly-report .period-context strong{display:block;font-weight:600;color:var(--ink)}
#monthly-report .period-context span{font-size:10px;color:var(--muted)}
#monthly-report .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
#monthly-report .metric{background:var(--paper);border:1px solid var(--line);padding:16px 17px;border-radius:var(--radius);position:relative}
#monthly-report .metric-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}
#monthly-report .metric-value{font-size:25px;font-weight:700;letter-spacing:-.035em;line-height:1.5;margin-top:3px;font-variant-numeric:tabular-nums;white-space:nowrap}
#monthly-report .metric-value em{font-size:12px;font-style:normal;font-weight:500;margin-left:5px;color:var(--muted)}
#monthly-report .metric-caption{display:flex;gap:6px;align-items:center;margin-top:5px;font-size:10px;color:var(--muted)}
#monthly-report .metric.featured{border-color:#acc7e3;background:#f1f7fd}
#monthly-report .metric.featured .metric-value{color:#245f9c}
#monthly-report .delta{font-size:10px;display:inline-block;background:#eef5fb;color:#2b6cb0;padding:1px 5px;border-radius:3px;white-space:nowrap}
#monthly-report .delta.up{color:#b33e42;background:#fff0f0}
#monthly-report .delta.down{color:#2568aa;background:#edf4ff}
#monthly-report .source-tag{display:inline-flex;align-items:center;color:#366da6;background:#edf4fc;border-radius:3px;font-size:9px;line-height:1.7;padding:0 5px;white-space:nowrap;font-weight:500}
#monthly-report .source-tag.daily{background:#eef5f1;color:#37715c}
#monthly-report .source-tag.annual{background:#f2edf8;color:#775697}
#monthly-report .source-tag.plan{background:#fff3de;color:#8b611f}
#monthly-report .panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:18px;min-width:0}
#monthly-report .panel-title{padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8edf3}
#monthly-report .panel-title h2,#monthly-report .panel-title h3{font-size:13px}
#monthly-report .panel-title small{font-size:10px}
#monthly-report .panel-body{padding:17px}
#monthly-report .two-col{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:18px;align-items:start}
#monthly-report .equal-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
#monthly-report .three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#monthly-report .micro-label{font-size:10px;color:var(--muted)}
#monthly-report .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:23px 0 12px}
#monthly-report .section-heading h2{font-size:15px}
#monthly-report .section-heading p{font-size:11px;color:var(--muted)}
#monthly-report .note-line{padding:11px 15px;border:1px solid #d9e6f4;background:#f0f6fc;color:#476887;border-radius:6px;margin-bottom:17px;font-size:11px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#monthly-report .note-line.amber-note{background:#fff8e8;border-color:#eddeb9;color:#846228}
#monthly-report .inline-legend{display:flex;align-items:center;gap:14px;font-size:10px;color:var(--muted);flex-wrap:wrap}
#monthly-report .legend-dot{width:7px;height:7px;display:inline-block;margin-right:5px;border-radius:2px;background:var(--blue)}
#monthly-report .legend-dot.pale{background:#c4d6e9}
#monthly-report .legend-dot.green{background:#75a48c}
#monthly-report .table-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin}
#monthly-report .table-scroll:focus{outline-offset:-3px}
#monthly-report table{width:100%;border-collapse:collapse;font-size:11px}
#monthly-report th{font-weight:600;color:#63758a;background:#f6f8fb;white-space:nowrap;text-align:left;padding:10px 13px;border-bottom:1px solid var(--line);font-size:10px}
#monthly-report td{padding:10px 13px;border-bottom:1px solid #edf0f5;white-space:nowrap;font-variant-numeric:tabular-nums}
#monthly-report tbody tr:last-child td{border-bottom:0}
#monthly-report tbody tr:hover td{background:#f7faff}
#monthly-report td.strong{font-weight:700}
#monthly-report tfoot td{background:#f0f5fa;font-weight:700;border-top:1px solid #cfdae8;border-bottom:0}
#monthly-report .compact-table td{padding:8px 12px}
#monthly-report .status{font-size:9px;padding:2px 5px;background:#eef4f1;color:#44725e;border-radius:3px}
#monthly-report .status.warning{background:#fff3de;color:#976920}
#monthly-report .status.cancel{background:#f3f3f5;color:#747b85}
#monthly-report .status.issue{background:#fff0ee;color:#b5574f}
#monthly-report .text-blue{color:var(--blue)}
#monthly-report .text-green{color:var(--green)}
#monthly-report .text-red{color:var(--red)}
#monthly-report .text-purple{color:var(--purple)}
#monthly-report .store-name:before{content:'';display:inline-block;width:5px;height:5px;margin-right:6px;border-radius:50%;background:var(--store-color,var(--blue))}
#monthly-report .amount{font-weight:600}
#monthly-report .bar-track{height:6px;background:#edf1f6;border-radius:3px;overflow:hidden}
#monthly-report .bar-fill{height:100%;background:var(--blue);border-radius:3px}
#monthly-report .bar-fill.green{background:#73a28f}
#monthly-report .mini-bar{display:flex;align-items:center;gap:10px}
#monthly-report .mini-bar .bar-track{width:75px;height:4px}
#monthly-report .ledger{margin-top:18px}
#monthly-report .ledger-head{padding:15px 17px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#monthly-report .ledger-heading{display:flex;align-items:center;gap:10px}
#monthly-report .ledger-heading small{font-size:10px}
#monthly-report .ledger-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#monthly-report .ledger-tools input,#monthly-report .ledger-tools select,#monthly-report .ledger-tools button{padding:5px 8px;font-size:11px}
#monthly-report .ledger-subtools{padding:0 17px 11px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:10px}
#monthly-report .filter-chip{border:1px solid #b9cee5;color:#2b6196;background:#edf4fb;display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border-radius:4px;font-size:10px}
#monthly-report .ledger-table th,#monthly-report .ledger-table td{padding:9px 11px;line-height:1.5;white-space:nowrap}
#monthly-report .ledger-table td{height:37px}
#monthly-report .ledger-table th button{font-size:10px;border:0;border-radius:0;padding:0;background:transparent;color:inherit}
#monthly-report .ledger-table .pinned{position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 #e3e9f1}
#monthly-report .ledger-table th.pinned{background:#f6f8fb;z-index:2}
#monthly-report .ledger-table tfoot .pinned{background:#f0f5fa}
#monthly-report .ticket-id{font-size:10px;color:#356eaa;border:0;background:transparent;padding:0;letter-spacing:.015em;font-weight:600;text-decoration:underline;text-decoration-color:#cadcf0;text-underline-offset:3px}
#monthly-report .ledger-summary{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fbfcfe;border-top:1px solid var(--line);gap:12px;flex-wrap:wrap;font-size:10px;color:var(--muted)}
#monthly-report .pager{display:flex;align-items:center;gap:10px}
#monthly-report .pager button{padding:3px 8px;font-size:11px}
#monthly-report .column-popover{position:relative}
#monthly-report .column-popover summary{list-style:none;border:1px solid #cfd9e5;border-radius:5px;padding:5px 8px;cursor:pointer;background:white;font-size:11px}
#monthly-report .column-popover summary::-webkit-details-marker{display:none}
#monthly-report .column-menu{position:absolute;right:0;top:33px;z-index:8;display:grid;grid-template-columns:repeat(2,minmax(100px,1fr));gap:7px 13px;width:300px;padding:14px;border:1px solid #cbd7e4;border-radius:7px;background:#fff;box-shadow:0 8px 28px #203a5526}
#monthly-report .column-menu label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}
#monthly-report .column-menu input{accent-color:var(--blue);width:13px}
#monthly-report .ledger-empty{text-align:center;padding:35px!important;color:var(--muted)}
#monthly-report .search-count{color:var(--muted);font-size:10px}
#monthly-report .scope-note{font-size:10px;color:#778495;margin:6px 0 0}
#monthly-report .page-footer{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#7c8999;border-top:1px solid var(--line);padding-top:15px;margin-top:25px}
#monthly-report .pl-row{display:grid;grid-template-columns:minmax(110px,1fr) auto;gap:15px;padding:12px 0;border-bottom:1px solid #edf0f4;font-size:12px}
#monthly-report .pl-row:last-child{border-bottom:0}
#monthly-report .pl-row .pl-amount{font-variant-numeric:tabular-nums;text-align:right;font-weight:600}
#monthly-report .pl-row.indent{padding-left:16px;color:var(--muted);font-size:11px}
#monthly-report .pl-row.total{background:#eef5fc;margin:0 -17px;padding-left:17px;padding-right:17px;font-weight:700;color:#275e96;border-top:1px solid #cfdfef}
#monthly-report .pl-row.result{background:#eef5f1;color:#28644e;font-weight:700;margin:0 -17px -17px;padding:17px}
#monthly-report .pl-row.result .pl-amount{font-size:21px}
#monthly-report .expense-block{padding:13px 0;border-bottom:1px solid #edf0f5}
#monthly-report .expense-block:last-child{border:0}
#monthly-report .expense-top{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}
#monthly-report .expense-top strong{font-size:11px}
#monthly-report .formula{font-size:10px;color:var(--muted);padding:10px 0 0;line-height:1.8}
#monthly-report .chart-svg{display:block;width:100%;height:auto;overflow:visible}
#monthly-report .chart-svg text{font-family:inherit;font-size:10px;fill:#718094}
#monthly-report .chart-svg .line-current{stroke:#3e7fb9;fill:none;stroke-width:2.5}
#monthly-report .chart-svg .line-previous{stroke:#b4c9df;fill:none;stroke-width:2;stroke-dasharray:4 4}
#monthly-report .chart-svg .gridline{stroke:#e8edf3;stroke-width:1}
#monthly-report .chart-svg .chart-value{fill:var(--ink);font-size:11px;font-weight:600}
#monthly-report .chart-tops{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:10px}
#monthly-report .chart-bignum{font-size:27px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
#monthly-report .spark-bars{display:flex;align-items:end;height:65px;gap:4px}
#monthly-report .spark-bars div{flex:1;background:#bdcfe2;min-width:0;border-radius:2px 2px 0 0}
#monthly-report .spark-bars div.current{background:#3d7cb6}
#monthly-report .spark-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:5px}
#monthly-report .comparison-hero{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:19px;background:#f0f6fc;border-bottom:1px solid #dce7f4}
#monthly-report .comparison-hero .big{font-size:30px;font-weight:700;letter-spacing:-.04em}
#monthly-report .comparison-hero .previous .big{color:#768ba2}
#monthly-report .comparison-hero .big small{font-size:12px}
#monthly-report .comparison-hero .current small,#monthly-report .comparison-hero .previous>small{display:block;font-size:10px}
#monthly-report .comparison-hero .current .big{color:#295f96}
#monthly-report .change-bar{display:flex;gap:16px;align-items:center;padding:14px 17px;background:#fbfcfd;border-top:1px solid #e6ecf3}
#monthly-report .change-bar strong{font-size:18px;color:#2b6cb0}
#monthly-report .calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
#monthly-report .calendar-weekday{padding:9px;text-align:center;border-bottom:1px solid var(--line);background:#f8fafc;font-size:10px;color:#78869a}
#monthly-report .calendar-day{min-height:91px;border:0;border-right:1px solid #e7ecf3;border-bottom:1px solid #e7ecf3;border-radius:0;padding:9px;text-align:left;font-weight:400;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:3px;white-space:normal;min-width:0}
#monthly-report .calendar-day:nth-child(7n){border-right:0}
#monthly-report .calendar-day.empty{background:#f9fafc}
#monthly-report .calendar-day.future{background:#f9fafc;color:#a2adba;cursor:default}
#monthly-report .calendar-day .day-num{font-size:10px;color:#6a7c91}
#monthly-report .calendar-day strong{font-size:13px;white-space:nowrap}
#monthly-report .calendar-day small{font-size:9px}
#monthly-report .calendar-day .day-bar{display:block;width:100%;height:3px;background:#edf1f6;border-radius:3px;margin-top:3px}
#monthly-report .calendar-day .day-bar i{display:block;height:100%;background:#8eb4d9}
#monthly-report .calendar-day.selected{background:#eaf3fc;box-shadow:inset 0 0 0 2px #6599cb}
#monthly-report .calendar-day.today .day-num{background:var(--blue);color:#fff;border-radius:3px;padding:0 4px}
#monthly-report .daily-highlight{padding:18px;background:#f1f7fc;border-bottom:1px solid #dae5f1}
#monthly-report .daily-highlight .chart-bignum{font-size:30px}
#monthly-report .key-value{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f4;font-size:11px}
#monthly-report .key-value:last-child{border-bottom:0}
#monthly-report .key-value strong{font-variant-numeric:tabular-nums}
#monthly-report .store-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
#monthly-report .store-tile{border:1px solid var(--line);border-radius:9px;background:#fff;padding:18px}
#monthly-report .store-tile .store-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
#monthly-report .store-tile h3{font-size:13px}
#monthly-report .store-tile .store-main{font-size:26px;font-weight:700;margin:12px 0 2px;letter-spacing:-.03em}
#monthly-report .store-tile .store-details{display:flex;justify-content:space-between;gap:7px;color:var(--muted);font-size:10px;margin-bottom:14px}
#monthly-report .store-tile button{padding:3px 7px;font-size:10px}
#monthly-report .wide-number{font-size:38px;font-weight:700;letter-spacing:-.04em;line-height:1.3}
#monthly-report .media-hero{display:flex;gap:25px;align-items:center;background:#f4f0f9;padding:20px 23px;margin-bottom:18px;border-radius:8px;border:1px solid #e4daef}
#monthly-report .media-hero .wide-number{color:#725594}
#monthly-report .media-hero .hero-divider{height:48px;width:1px;background:#d9cde5}
#monthly-report .media-hero .hero-sub{font-size:11px;color:#756782}
#monthly-report .media-hero .hero-value{font-size:21px;font-weight:700}
#monthly-report .media-hero .hero-note{margin-left:auto;max-width:270px;font-size:10px;color:#7b6a87}
#monthly-report .signal-list{list-style:none;margin:0;padding:0}
#monthly-report .signal-list li{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #edf0f5;font-size:11px}
#monthly-report .signal-list li:last-child{border:0}
#monthly-report .signal-icon{background:#fff3e1;color:#92692d;padding:1px 6px;border-radius:4px;height:20px;white-space:nowrap;font-size:10px}
#monthly-report .signal-list strong{display:block;margin-bottom:3px;font-size:11px}
#monthly-report .signal-list p{color:var(--muted);font-size:10px}
#monthly-report .ranking-num{display:inline-grid;place-items:center;background:#edf3f9;color:#62819e;border-radius:4px;min-width:21px;height:21px;margin-right:8px;font-size:10px}
#monthly-report .efficiency-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px}
#monthly-report .segment-hero{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}
#monthly-report .segment-block{padding:22px;background:#edf5fc;border:1px solid #d8e5f1;border-radius:9px}
#monthly-report .segment-block.repeat{background:#eff5f2;border-color:#dce9e1}
#monthly-report .segment-block h3{font-size:12px;color:var(--muted)}
#monthly-report .segment-block .segment-value{font-size:33px;font-weight:700;margin:6px 0;font-variant-numeric:tabular-nums}
#monthly-report .segment-block .segment-value small{font-size:12px;font-weight:500}
#monthly-report .segment-block .segment-meta{display:flex;justify-content:space-between;font-size:11px;gap:8px;color:#5c7289}
#monthly-report .cohort-cell{background:rgba(58,124,183,var(--heat,0));text-align:center;color:#254b6b;font-weight:600}
#monthly-report .cohort-cell.empty-cell{background:#f8f9fb;color:#a0aab5;font-weight:400}
#monthly-report .reconcile-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
#monthly-report .reconcile-stage{padding:19px 22px;border-right:1px solid var(--line);position:relative}
#monthly-report .reconcile-stage:last-child{border:0;background:#f2f6fb}
#monthly-report .reconcile-stage .stage-label{font-size:11px;color:var(--muted)}
#monthly-report .reconcile-stage .stage-value{font-size:26px;font-weight:700;letter-spacing:-.03em;margin:5px 0}
#monthly-report .reconcile-stage p{font-size:10px;color:var(--muted)}
#monthly-report .reconcile-stage .step-circle{position:absolute;right:16px;top:16px;color:#8da2bb;font-size:10px}
#monthly-report .report-cover{display:flex;justify-content:space-between;gap:20px;background:#294f74;border-radius:9px;padding:23px 26px;margin-bottom:18px;color:#fff}
#monthly-report .report-cover .eyebrow{color:#b4cee8}
#monthly-report .report-cover h2{font-size:23px;letter-spacing:.02em}
#monthly-report .report-cover p{color:#b4c7da;margin-top:7px;font-size:11px}
#monthly-report .report-cover .cover-amount{text-align:right}
#monthly-report .report-cover .wide-number{font-size:33px}
#monthly-report .report-cover .cover-amount>span{color:#b8cce0;font-size:10px}
#monthly-report .report-cover .sample-badge{font-size:9px}
#monthly-report .goal-row{padding:11px 0}
#monthly-report .goal-row>div:first-child{display:flex;justify-content:space-between;margin-bottom:6px;font-size:11px}
#monthly-report .goal-row small{font-size:10px;color:var(--muted)}
#monthly-report .data-source-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;border-bottom:1px solid #edf0f5;padding:11px 0}
#monthly-report .data-source-row:last-child{border:0}
#monthly-report .data-source-row strong{font-size:11px}
#monthly-report .data-source-row small{display:block;font-size:10px}
#monthly-report .report-note{background:#f7f9fc;padding:13px;border-radius:5px;color:#5e7187;font-size:11px;margin-top:12px}
#monthly-report .daily-bars{display:flex;align-items:end;gap:3px;height:100px;border-bottom:1px solid #dce5ee;padding-top:6px}
#monthly-report .daily-bars button{border:0;border-radius:2px 2px 0 0;background:#9bbbdc;padding:0;flex:1;min-width:2px}
#monthly-report .daily-bars button:hover,#monthly-report .daily-bars button.selected{background:#2b6cb0}
#monthly-report .daily-bars button.cancel-day{background:#c2cddb}
#monthly-report .side-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#monthly-report .side-metric{padding:12px 0;border-bottom:1px solid #e6edf4}
#monthly-report .side-metric strong{display:block;font-size:20px;font-weight:700}
#monthly-report .side-metric span{font-size:10px;color:var(--muted)}
#monthly-report dialog{border:1px solid #cad6e4;border-radius:12px;color:var(--ink);padding:0;box-shadow:0 20px 100px #16345138;max-height:85vh;background:white}
#monthly-report dialog::backdrop{background:#21354d66;backdrop-filter:blur(2px)}
#monthly-report .overview-dialog{width:min(960px,94vw)}
#monthly-report .dialog-top{padding:25px;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}
#monthly-report .dialog-top h2{font-size:22px}
#monthly-report .dialog-top p{font-size:11px;color:var(--muted);margin-top:6px}
#monthly-report .dialog-top>button{align-self:flex-start;font-size:20px;padding:0 8px}
#monthly-report .overview-grid{padding:23px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#monthly-report .overview-card{padding:16px;background:#f9fbfd;border:1px solid #e1e8f0;border-radius:7px;text-align:left;white-space:normal;display:grid;grid-template-columns:34px 1fr;gap:10px}
#monthly-report .overview-card:hover{background:#eef5fc}
#monthly-report .overview-card .overview-num{color:#6487ac;font-size:19px;font-weight:500}
#monthly-report .overview-card h3{font-size:13px;margin-bottom:3px}
#monthly-report .overview-card p{font-size:11px;font-weight:400;color:var(--muted);line-height:1.7}
#monthly-report .overview-card small{font-weight:400;font-size:10px;color:#426f9d;display:block;margin-top:6px}
#monthly-report .dialog-note{padding:14px 24px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);line-height:2}
#monthly-report .detail-dialog{width:min(760px,94vw)}
#monthly-report .detail-meta{display:flex;align-items:center;gap:8px;padding:15px 24px;border-bottom:1px solid var(--line);background:#f6f9fd;flex-wrap:wrap}
#monthly-report .detail-sections{display:grid;grid-template-columns:1fr 1fr;padding:22px 25px;gap:25px}
#monthly-report .detail-sections h3{color:var(--blue);margin-bottom:8px}
#monthly-report .detail-total{padding:18px 25px;border-top:1px solid #d9e5f1;display:flex;justify-content:space-between;background:#eef5fc;color:#295e94;font-size:13px;font-weight:700}
#monthly-report .detail-total strong{font-size:23px}
#monthly-report .toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:11px 20px;background:#294f74;color:white;border-radius:7px;box-shadow:0 5px 24px #24496e33;z-index:50;font-size:12px;max-width:90vw}
@media(min-width:1650px){#monthly-report main{padding:30px 38px}
#monthly-report .ledger-table td,#monthly-report .ledger-table th{padding:10px 13px}
#monthly-report .variant-nav{padding-left:185px;padding-right:35px}
#monthly-report .variant-tab{flex-direction:row;align-items:center;gap:9px}
#monthly-report .calendar-day{min-height:105px}}
@media(max-width:1180px){#monthly-report .sidebar{width:145px;padding-left:6px;padding-right:6px}
#monthly-report main{padding:22px 19px}
#monthly-report .metric{padding:13px}
#monthly-report .metric-value{font-size:22px}
#monthly-report .variant-tab{padding:6px}
#monthly-report .variant-tab .tab-name{font-size:11px}
#monthly-report .global-filters{gap:10px}
#monthly-report .two-col{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
#monthly-report .efficiency-layout{grid-template-columns:1fr}
#monthly-report .media-hero{gap:15px}
#monthly-report .media-hero .hero-note{max-width:175px}
#monthly-report .sidebar-bottom{left:15px}
#monthly-report .calendar-day{padding:7px;min-height:83px}
#monthly-report .calendar-day strong{font-size:11px}}
@media(max-width:950px){#monthly-report .sidebar{display:none}
#monthly-report .variant-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:9px 15px}
#monthly-report .variant-tab{flex-direction:row;align-items:center;gap:6px}
#monthly-report .variant-tab .tab-name{font-size:12px}
#monthly-report .lab-header{padding:0 19px}
#monthly-report .metrics{gap:9px}
#monthly-report .global-filters{gap:10px}
#monthly-report .period-context{order:4;margin:0;flex-basis:100%;text-align:left}
#monthly-report .period-context strong,#monthly-report .period-context span{display:inline;margin-right:10px}
#monthly-report .global-filters>.primary-button{margin-left:auto}
#monthly-report .two-col{grid-template-columns:1fr 1fr}
#monthly-report .metric-value{font-size:22px}
#monthly-report .store-tiles{gap:10px}
#monthly-report .store-tile{padding:14px}
#monthly-report .store-tile .store-main{font-size:23px}
#monthly-report .media-hero .hero-note{display:none}}
@media(max-width:680px){#monthly-report{font-size:12px}
#monthly-report .lab-header{padding:11px 14px;height:auto;min-height:61px}
#monthly-report .lab-brand{font-size:13px;gap:8px}
#monthly-report .brand-mark{height:30px;width:30px;font-size:18px}
#monthly-report .lab-brand small{font-size:9px}
#monthly-report .lab-actions{gap:6px}
#monthly-report .lab-actions .sample-badge{display:none}
#monthly-report .lab-actions button{font-size:10px;padding:6px 8px}
#monthly-report .variant-nav{padding:7px 10px;gap:4px}
#monthly-report .variant-tab{display:block;text-align:center;padding:5px 2px}
#monthly-report .variant-tab .tab-number{display:none}
#monthly-report .variant-tab .tab-name{font-size:10px}
#monthly-report .workspace{display:block}
#monthly-report main{padding:20px 14px 14px}
#monthly-report .page-heading{align-items:flex-start;margin-bottom:17px;gap:8px}
#monthly-report h1{font-size:20px}
#monthly-report .page-heading p{font-size:11px;max-width:95%}
#monthly-report .variant-step{gap:6px;font-size:10px;margin-top:20px}
#monthly-report .variant-step button{width:23px;height:25px}
#monthly-report .global-filters{margin-bottom:17px;padding-bottom:16px;gap:10px}
#monthly-report .global-filters label{font-size:10px;gap:5px}
#monthly-report .global-filters select{min-width:0;max-width:130px;padding:7px 5px;font-size:11px}
#monthly-report .global-filters .primary-button{font-size:10px;padding:7px 8px}
#monthly-report .period-context{font-size:10px;line-height:1.9}
#monthly-report .period-context strong,#monthly-report .period-context span{display:block}
#monthly-report .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:15px}
#monthly-report .metric{padding:12px}
#monthly-report .metric-value{font-size:22px}
#monthly-report .metric-label{font-size:10px;flex-wrap:wrap;gap:3px}
#monthly-report .metric-caption{font-size:9px;gap:4px;flex-wrap:wrap}
#monthly-report .metric-value em{font-size:10px}
#monthly-report .two-col,#monthly-report .equal-col,#monthly-report .three-col,#monthly-report .efficiency-layout{grid-template-columns:1fr;gap:0}
#monthly-report .panel{margin-bottom:14px}
#monthly-report .panel-title{padding:13px;gap:8px}
#monthly-report .panel-title small{font-size:9px}
#monthly-report .panel-body{padding:14px}
#monthly-report .ledger-head{padding:13px;align-items:flex-start;gap:12px}
#monthly-report .ledger-heading{flex-wrap:wrap;gap:5px}
#monthly-report .ledger-tools{width:100%;gap:5px}
#monthly-report .ledger-tools input[type=search]{width:140px;flex:1;min-width:90px}
#monthly-report .ledger-tools select{max-width:105px}
#monthly-report .ledger-subtools{padding:0 13px 10px}
#monthly-report .ledger-table td,#monthly-report .ledger-table th{padding:9px;font-size:11px}
#monthly-report .ledger-table .ticket-id{font-size:10px}
#monthly-report .column-menu{width:275px}
#monthly-report .ledger-summary{padding:11px 13px}
#monthly-report .page-footer{font-size:9px;flex-direction:column;gap:5px}
#monthly-report .source-tag{font-size:9px}
#monthly-report .store-tiles{grid-template-columns:1fr;gap:10px;margin-bottom:14px}
#monthly-report .store-tile .store-main{font-size:24px}
#monthly-report .store-tile .spark-bars{height:40px}
#monthly-report .store-tile{padding:15px}
#monthly-report .media-hero{padding:16px;gap:16px;flex-wrap:wrap}
#monthly-report .media-hero .wide-number{font-size:30px}
#monthly-report .media-hero .hero-sub{font-size:10px}
#monthly-report .media-hero .hero-value{font-size:19px}
#monthly-report .media-hero .hero-divider{display:none}
#monthly-report .calendar-day{padding:6px 4px;min-height:77px}
#monthly-report .calendar-day strong{font-size:10px}
#monthly-report .calendar-day small{font-size:9px}
#monthly-report .calendar-weekday{padding:8px 4px}
#monthly-report .calendar-day .day-num{font-size:10px}
#monthly-report .calendar-layout{display:block}
#monthly-report .comparison-hero{padding:16px;gap:12px}
#monthly-report .comparison-hero .big{font-size:24px}
#monthly-report .comparison-hero .big small{font-size:10px}
#monthly-report .segment-hero{gap:10px}
#monthly-report .segment-block{padding:15px}
#monthly-report .segment-block .segment-value{font-size:26px}
#monthly-report .segment-block .segment-meta{flex-direction:column;font-size:10px;gap:4px}
#monthly-report .reconcile-strip{grid-template-columns:1fr}
#monthly-report .reconcile-stage{padding:13px 17px;border:0;border-bottom:1px solid var(--line)}
#monthly-report .reconcile-stage .stage-value{font-size:24px;margin:2px 0}
#monthly-report .report-cover{padding:20px;display:block}
#monthly-report .report-cover h2{font-size:20px}
#monthly-report .report-cover .cover-amount{text-align:left;margin-top:16px}
#monthly-report .report-cover .wide-number{font-size:29px}
#monthly-report .report-cover .cover-amount>span{font-size:10px}
#monthly-report .pl-row.total,#monthly-report .pl-row.result{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
#monthly-report .pl-row.result{margin-bottom:-14px}
#monthly-report .overview-grid{grid-template-columns:1fr;padding:15px}
#monthly-report .dialog-top{padding:18px}
#monthly-report .dialog-top h2{font-size:19px}
#monthly-report .dialog-top p{font-size:11px}
#monthly-report .detail-sections{grid-template-columns:1fr;padding:19px;gap:20px}
#monthly-report .detail-meta{padding:12px 19px}
#monthly-report .detail-total{padding:15px 19px}
#monthly-report .detail-total strong{font-size:20px}
#monthly-report .overview-card{padding:13px}
#monthly-report .overview-card h3{font-size:13px}
#monthly-report .note-line{padding:10px 12px}
#monthly-report .section-heading{align-items:flex-start}
#monthly-report .section-heading p{text-align:right;font-size:10px}}
#monthly-report .segment-block{min-width:0}
#monthly-report .segment-block .subtle-button{white-space:normal;text-align:left;padding-left:0}
#monthly-report .column-menu input[type=checkbox]{width:13px;min-width:13px;flex:0 0 13px;padding:0}
@media(max-width:680px){#monthly-report .ledger-tools{position:relative}
#monthly-report .column-popover{position:static}
#monthly-report .column-menu{top:35px;right:0;width:min(275px,calc(100vw - 60px))}}
@media(max-width:360px){#monthly-report .metric{padding:10px}
#monthly-report .metric-value{font-size:19px}
#monthly-report .metric-value em{font-size:9px;margin-left:3px}
#monthly-report .segment-block{padding:12px}
#monthly-report .segment-block h3{font-size:11px}
#monthly-report .segment-block .subtle-button{font-size:10px}
#monthly-report .page-heading .eyebrow{letter-spacing:.06em}
#monthly-report .variant-step{gap:4px}}
#monthly-report main[data-variant="1"] .metric{padding-top:12px;padding-bottom:12px}
#monthly-report main[data-variant="1"] .note-line{padding-top:8px;padding-bottom:8px;margin-bottom:12px}
#monthly-report main[data-variant="1"] .section-heading{margin-top:16px;margin-bottom:8px}
#monthly-report main[data-variant="1"] .ledger{margin-top:8px}
#monthly-report main[data-variant="1"] .ledger-head{padding-top:12px;padding-bottom:8px}
@media(prefers-reduced-motion:no-preference){#monthly-report .panel,#monthly-report .metric,#monthly-report .store-tile{animation:mr-enter .2s ease-out}
@keyframes mr-enter{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:none}}}
@media print{#monthly-report .lab-header,#monthly-report .variant-nav,#monthly-report .sidebar,#monthly-report .variant-step,#monthly-report .global-filters button,#monthly-report .ledger-tools,#monthly-report .pager,#monthly-report .page-footer{display:none!important}
#monthly-report .workspace{display:block}
#monthly-report main{padding:0}
#monthly-report{background:#fff}
#monthly-report .panel,#monthly-report .metric{break-inside:avoid}
#monthly-report .table-scroll{overflow:visible}
#monthly-report .ledger-table{font-size:8px}
#monthly-report .ledger-table th,#monthly-report .ledger-table td{font-size:8px;padding:4px}
#monthly-report .ledger-table .pinned{position:static}}
#monthly-report{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){#monthly-report{overflow-y:scroll}}
#monthly-report main{margin:0 auto;align-self:flex-start}
#monthly-report .workspace{min-height:calc(100vh - 65px)}
#monthly-report .report-page-header{margin-bottom:18px;border-bottom:1px solid var(--line)}
#monthly-report .report-page-title h1{font-size:22px;line-height:1.4}
#monthly-report .report-page-header .page-nav{margin:13px 0;padding:6px;border:1px solid #d6dfe9;border-radius:7px}
#monthly-report .report-page-header .global-filters{margin-bottom:0;padding-bottom:16px;border-bottom:0}
#monthly-report .page-heading{min-height:48px;align-items:flex-start}
#monthly-report .page-heading h2{font-size:17px;line-height:1.4}
#monthly-report .report-header-actions{flex:0 0 100px;height:36px;min-height:36px;display:flex;align-items:center;justify-content:flex-end}
#monthly-report .report-header-actions .primary-button{width:100px}
@media(max-width:680px){#monthly-report .report-page-header{margin-bottom:15px}
#monthly-report .report-page-title h1{font-size:20px}
#monthly-report .report-page-header .page-nav{margin:11px 0;padding:5px}
#monthly-report .report-page-header .global-filters{padding-bottom:13px}
#monthly-report .page-heading{min-height:62px}
#monthly-report .page-heading h2{font-size:16px}
#monthly-report .report-header-actions{margin-left:auto}}
#monthly-report [hidden]{display:none!important}
#monthly-report .equal-col>*,#monthly-report .two-col>*{min-width:0}
#monthly-report .page-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:11px 20px;background:#edf1f6;border-bottom:1px solid #d6dfe9}
#monthly-report .page-tab{border:1px solid transparent;background:transparent;padding:9px 12px;font-size:12px;font-weight:600;color:#5f7186;border-radius:6px}
#monthly-report .page-tab[aria-selected=true]{background:#fff;border-color:#cbd9e9;color:var(--blue);box-shadow:0 2px 6px #213d5a0c}
#monthly-report .local-view-switch{display:flex;align-items:center;gap:5px;margin-bottom:17px;flex-wrap:wrap}
#monthly-report .local-view-switch button{padding:7px 14px;font-size:11px;background:#fff}
#monthly-report .local-view-switch button[aria-pressed=true]{background:var(--blue-soft);border-color:#aac5e0;color:#285f96}
#monthly-report .local-view-switch>span{font-size:10px;color:var(--muted);margin-left:8px}
#monthly-report .ledger-heading h2{font-size:13px}
#monthly-report .issue-filters{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
#monthly-report .issue-filters button{font-size:11px;font-weight:500;padding:7px 10px}
#monthly-report .issue-filters button strong{font-size:10px;font-weight:600;border-radius:3px;padding:1px 5px;background:#edf1f6;margin-left:8px}
#monthly-report .issue-filters button[aria-pressed=true]{background:#eaf2fb;border-color:#aac5e0;color:#285f96}
#monthly-report #return-context{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:9px 12px;border:1px solid #d6e3f2;border-radius:6px;background:#edf4fb;margin-bottom:17px;font-size:11px;color:#536e8b}
#monthly-report .context-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
#monthly-report .context-actions .subtle-button{padding:5px 0;margin-right:8px;font-size:11px}
#monthly-report .month-cost-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding:13px 16px;background:#fff;border:1px solid var(--line);border-radius:7px;font-size:11px}
#monthly-report .month-cost-summary strong{font-size:15px;margin:0 8px;font-variant-numeric:tabular-nums}
#monthly-report .calendar-cost{color:#7b6b5b!important;font-size:9px}
#monthly-report .expense-toolbar{padding:15px 17px 11px;border-bottom:1px solid var(--line)}
#monthly-report .expense-toolbar .local-view-switch{margin-bottom:12px}
#monthly-report .expense-filter-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
#monthly-report .expense-filter-row label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}
#monthly-report .expense-filter-row input,#monthly-report .expense-filter-row select,#monthly-report .expense-filter-row button{padding:6px 8px;font-size:11px}
#monthly-report .expense-filter-row input[type=search]{margin-left:auto;width:215px}
#monthly-report .expense-filter-row input:disabled{background:#f2f4f7;color:#97a3b1;cursor:default}
#monthly-report .expense-table-context{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:11px 17px;font-size:11px}
#monthly-report .expense-table-context>span{font-size:10px;color:var(--muted)}
#monthly-report .expense-table-context>button{margin-left:auto;font-size:10px}
#monthly-report .expense-table td,#monthly-report .expense-table th{padding:10px 12px;white-space:nowrap}
@media(min-width:1650px){#monthly-report .page-nav{padding-left:185px;padding-right:35px}}
@media(max-width:950px){#monthly-report .page-nav{padding:9px 15px;gap:5px}
#monthly-report .page-tab{padding:8px 5px;font-size:11px}
#monthly-report .expense-filter-row input[type=search]{margin-left:0}}
@media(max-width:680px){#monthly-report .page-nav{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 12px;gap:5px}
#monthly-report .page-tab{padding:7px 3px;font-size:11px}
#monthly-report .local-view-switch>span{display:none}
#monthly-report .local-view-switch{margin-bottom:14px}
#monthly-report .local-view-switch button{padding:7px 12px}
#monthly-report .issue-filters{gap:6px}
#monthly-report .issue-filters button{font-size:10px;padding:7px 8px}
#monthly-report .issue-filters button strong{margin-left:5px}
#monthly-report .expense-toolbar{padding:13px}
#monthly-report .expense-filter-row{gap:9px}
#monthly-report .expense-filter-row input[type=search]{flex:1;min-width:120px;width:150px}
#monthly-report .expense-filter-row input[type=date]{width:135px}
#monthly-report .expense-filter-row select{max-width:140px}
#monthly-report .expense-table-context{padding:11px 13px;gap:6px}
#monthly-report .expense-table-context>span{flex-basis:100%}
#monthly-report .expense-table-context>button{margin-left:0}
#monthly-report .calendar-day{min-height:94px}
#monthly-report .calendar-day .day-num{font-size:9px}
#monthly-report .context-actions{gap:6px}
#monthly-report .month-cost-summary>span{line-height:2}
#monthly-report .month-cost-summary strong{font-size:14px;margin:0 4px}
#monthly-report .month-cost-summary small{display:block}}
@media print{#monthly-report .page-nav,#monthly-report .local-view-switch,#monthly-report .issue-filters,#monthly-report .expense-filter-row,#monthly-report #return-context{display:none!important}}
#monthly-report .report-page-header .chip-filters{display:block}
#monthly-report .scope-chip-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.55fr);gap:14px 24px;align-items:start}
#monthly-report .scope-chip-fieldset{border:0;margin:0;padding:0;min-width:0}
#monthly-report .scope-chip-fieldset legend{padding:0;margin-bottom:7px;font-size:11px;font-weight:600;color:var(--ink)}
#monthly-report .scope-chip-fieldset legend small{margin-left:8px;font-size:10px;font-weight:400}
#monthly-report .month-chips{display:grid;gap:4px}
#monthly-report .month-year-row{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:6px}
#monthly-report .chip-year{font-size:10px;color:var(--muted);line-height:24px;font-variant-numeric:tabular-nums}
#monthly-report .month-year-chips,#monthly-report .store-chips{display:flex;flex-wrap:wrap;gap:4px}
#monthly-report .scope-chip{height:24px;min-width:33px;padding:1px 7px;border-radius:5px;background:#fff;border:1px solid #d4dfe9;color:#687a8d;font-size:11px;font-weight:600;line-height:20px;font-variant-numeric:tabular-nums}
#monthly-report .scope-chip[aria-pressed=true]{color:#245f9c;background:#e5effa;border-color:#91b6dd;box-shadow:inset 0 0 0 1px #91b6dd33}
#monthly-report .scope-chip:hover{color:#245f9c;background:#f0f6fc;border-color:#91b6dd}
#monthly-report .scope-chip[aria-pressed=true]:hover{background:#dbeaf9}
#monthly-report .scope-chip.current-month{text-decoration:underline;text-decoration-color:#91b6dd;text-underline-offset:3px}
#monthly-report .store-chips .scope-chip{padding-inline:9px}
#monthly-report .scope-chip-actions{display:flex;align-items:center;gap:8px;margin-top:6px;color:#7a8999;font-size:9px;line-height:19px}
#monthly-report .scope-chip-actions button{border:0;background:transparent;padding:0;font-size:10px;font-weight:500;color:var(--blue);line-height:19px}
#monthly-report .scope-chip-actions button:hover{text-decoration:underline}
#monthly-report .scope-summary-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:12px;margin-top:10px;min-height:36px}
#monthly-report .scope-summary-row .period-context{min-width:0;margin:0;text-align:left;order:0;line-height:18px}
#monthly-report .scope-summary-row .period-context strong,#monthly-report .scope-summary-row .period-context span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
#monthly-report .scope-summary-row .report-header-actions{width:100px;margin:0}
#monthly-report .scope-coverage{padding:9px 12px;margin-bottom:15px;background:#f0f6fc;border:1px solid #d8e5f1;border-radius:6px;font-size:11px;color:#526f8c}
#monthly-report .empty-scope{padding:35px 20px;background:#fff;border:1px solid var(--line);border-radius:8px;text-align:center;margin-bottom:18px}
#monthly-report .empty-scope strong{font-size:14px;font-weight:600}
#monthly-report .empty-scope p{font-size:11px;color:var(--muted);margin-top:8px}
#monthly-report .calendar-months{min-width:0}
@media(max-width:1100px){#monthly-report .scope-chip-grid{grid-template-columns:minmax(0,1fr);gap:11px}
#monthly-report .scope-chip-fieldset legend{margin-bottom:6px}}
@media(max-width:680px){#monthly-report .scope-chip-grid{gap:10px}
#monthly-report .month-year-row{grid-template-columns:30px minmax(0,1fr);gap:4px}
#monthly-report .month-year-chips,#monthly-report .store-chips{gap:4px}
#monthly-report .scope-chip{min-width:31px;padding-inline:5px;font-size:10px}
#monthly-report .store-chips .scope-chip{padding-inline:8px}
#monthly-report .scope-chip-fieldset legend{font-size:10px}
#monthly-report .scope-chip-fieldset legend small{font-size:9px}
#monthly-report .scope-summary-row{gap:8px;margin-top:8px}
#monthly-report .scope-summary-row .period-context strong{font-size:10px}
#monthly-report .scope-summary-row .period-context span{font-size:9px}
#monthly-report .scope-chip-actions{gap:10px}}


.monthreportmode #top,.monthreportmode #foot{display:none}
.monthreportmode #body{padding:0;overflow:visible}
#monthly-report{min-width:0;position:relative;background:#f4f6f9}
#monthly-report #main{padding:20px 22px;max-width:none;margin:0}
#monthly-report .report-page-title h1{margin:0;color:var(--ink)}
#monthly-report .report-page-header{margin-bottom:18px}
#monthly-report .data-status{padding:9px 12px;border:1px solid #d9e4ef;border-radius:6px;color:#607489;background:#f6f9fc;font-size:10px;margin-bottom:14px;line-height:1.8}
#monthly-report .data-status strong{font-weight:600;color:#466b90}
#monthly-report .scope-loading{padding:40px 20px;text-align:center;font-size:12px;color:var(--muted)}
#monthly-report .scope-error{padding:25px;background:#fff7ea;border:1px solid #e9d7b9;border-radius:7px;font-size:12px;color:#865d2e}
#monthly-report .scope-error button{margin-top:12px}
@media(max-width:680px){#monthly-report #main{padding:16px 12px}}

/* Closed-month metadata and explicit refresh occupy the existing compact scope row. */
#monthly-report .scope-chip-actions [data-refresh-closed]{margin-left:8px;font-weight:600}
#monthly-report .scope-chip-actions [data-refresh-closed]:disabled{opacity:.65;cursor:wait}

/* A compact, left-aligned ledger. Full course names remain available on hover and in details. */
#monthly-report .ledger-table{width:100%;min-width:100%;max-width:none}
#monthly-report .ledger-table th,#monthly-report .ledger-table td{padding:3px 5px;height:auto;line-height:1.35;text-align:left;font-size:12px}
#monthly-report .ledger-table .num{text-align:left}
#monthly-report .ledger-table th button{font-size:11px}
#monthly-report .ledger-table tbody tr:nth-child(odd) td{background:#fff}
#monthly-report .ledger-table tbody tr:nth-child(even) td{background:#f1f2f4}
#monthly-report .ledger-table tbody tr:hover td{background:#eaf1f8}
#monthly-report .ledger-course{display:block;width:160px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#monthly-report .ledger-cast-link{max-width:83px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;border:0;border-radius:0;background:none;color:#356eaa;font:inherit;line-height:1.35;text-align:left}
#monthly-report .ledger-table .store-name{display:block;max-width:96px;overflow:hidden;text-overflow:ellipsis}
#monthly-report .ledger-table .col-date{white-space:nowrap}
#monthly-report .ledger-summary{padding:7px 10px}
#monthly-report .nomination-check{color:#916d27;text-decoration:underline dotted}

/* Only the final column absorbs spare width; every stripe and border reaches the same edge. */
#monthly-report .ledger-table th:last-child,#monthly-report .ledger-table td:last-child{width:100%}

/* Match the expense ledger to the more readable slip ledger. */
#monthly-report .expense-table td{font-size:12px}
#monthly-report .expense-table th{font-size:11px}

/* Expense ledger cash direction: incoming is positive; outgoing is red and negative. */
#monthly-report main[data-page="expenses"] .money-negative,
#monthly-report .expense-total .money-negative{color:var(--red)}

/* Keep the report header aligned while showing only the expense export action. */
#monthly-report main:not([data-page="expenses"]) .scope-summary-row{grid-template-columns:minmax(0,1fr)}
/* The slip heading has no description; place its view chips directly below it. */
#monthly-report main[data-page="slips"] .page-heading{min-height:0;margin-bottom:8px}

/* 自社と本家のチップ（mergemonth-2026-11-03）。上の絞り込みと、行ごとの札 */
@media(min-width:1101px){#monthly-report .scope-chip-grid{grid-template-columns:minmax(0,1fr) auto minmax(220px,.55fr)}}
#monthly-report .origin-chip{display:inline-block;padding:0 7px;border-radius:9px;font-size:11px;font-weight:700;line-height:18px;white-space:nowrap}
#monthly-report .origin-chip.core{background:#e5effa;color:#245f9c}
#monthly-report .origin-chip.mind{background:#f0eaf6;color:#6b4f8f}
