.fin-report-page{min-width:0;grid-template-columns:minmax(0,1fr)}
.fin-report-page>*,.fin-report-results>*{min-width:0}
.fin-report-filter-form input,.fin-report-filter-form select{box-sizing:border-box;min-width:0;max-width:100%}
.fin-report-period>label,.fin-report-filter-grid>label{min-width:0}
.fin-report-register,.fin-report-chart-scroll,.fin-report-table-wrap{min-width:0;max-width:100%}
.fin-report-table-wrap,.fin-report-chart-scroll{overscroll-behavior-x:contain}
.fin-report-builder{overflow:visible;background:linear-gradient(145deg,#fffdf8,#f6f2e9)}
.fin-report-builder .fin-heading{padding-bottom:4px}
.fin-report-builder .fin-heading h2{margin:4px 0}
.fin-report-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 18px 17px}
.fin-report-types button{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:3px 10px;min-height:75px;padding:12px;border:1px solid #e7e1d5;border-radius:14px;background:#fff;color:var(--ink);text-align:left;font:inherit;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.fin-report-types button:hover{transform:translateY(-2px);border-color:#e9c95d}
.fin-report-types button.is-active{border-color:#eabf39;background:linear-gradient(130deg,#fff5d6,#fffaf0);box-shadow:inset 3px 0 0 var(--signal)}
.fin-report-types button>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f5f1e9;color:#8b6e18;font-size:20px}
.fin-report-types button.is-active>span{background:#ffe49a;color:#654d00}
.fin-report-types strong{align-self:end;font-size:11px}
.fin-report-types small{align-self:start;color:var(--muted);font-size:8px;line-height:1.3}
.fin-report-filter-form{display:grid;gap:15px;padding:17px 18px 18px;border-top:1px solid #e9e1d5;background:#fbf8f1;border-radius:0 0 16px 16px}
.fin-report-period,.fin-report-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:10px;align-items:end}
.fin-report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.fin-report-period label,.fin-report-filter-grid>label{display:grid;gap:6px;color:#5c5851;font-size:9px;font-weight:800}
.fin-report-period input,.fin-report-filter-grid select,.fin-report-picker input[type=search]{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dcd6cc;border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-size:11px;font-weight:400}
.fin-report-presets{display:flex;flex-wrap:wrap;gap:5px}
.fin-report-presets button{min-height:44px;padding:0 10px;border:1px solid #e4d8bd;border-radius:10px;background:#fffaf0;color:#6d570e;font:inherit;font-size:9px;font-weight:800;cursor:pointer}
.fin-report-presets button:hover{background:#fff0c0}
.fin-report-picker{position:relative;display:grid;align-content:start;gap:6px;min-width:0}
.fin-report-picker>label{color:#5c5851;font-size:9px;font-weight:800}
.fin-report-picker-field{min-width:0;border-radius:11px;background:#fff}
.fin-report-picker input[type=search]{display:block;min-width:0}
.fin-report-picker:focus-within input[type=search]{border-color:#e8b527;outline:3px solid rgba(255,192,0,.14)}
.fin-report-picker>small{color:var(--muted);font-size:8px;line-height:1.4}
.fin-report-selected{display:flex;flex-wrap:wrap;gap:5px}
.fin-report-selected:not(:empty){padding:7px 8px 0;border:1px solid #dcd6cc;border-bottom:0;border-radius:11px 11px 0 0;background:#fff}
.fin-report-selected:not(:empty)+input[type=search]{border-radius:0 0 11px 11px;border-top:0}
.fin-report-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:32px;padding:3px 4px 3px 9px;border:1px solid #ecd48b;border-radius:9px;background:#fff7dd;color:#574c30;font-size:9px;font-weight:500;overflow-wrap:anywhere}
.fin-report-chip button{display:grid;place-items:center;flex:none;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:#705500;font:inherit;font-size:16px;cursor:pointer}
.fin-report-chip button:hover{background:#ffe9a8}
.fin-report-suggestions{position:absolute;z-index:20;top:calc(100% - 20px);left:0;right:0;max-height:248px;overflow:auto;padding:5px;border:1px solid #ded5c5;border-radius:11px;background:#fff;box-shadow:0 14px 30px rgba(35,31,32,.14)}
.fin-report-suggestions[hidden]{display:none}
.fin-report-suggestions button{display:grid;width:100%;min-height:44px;gap:2px;padding:8px 10px;border:0;border-radius:8px;background:#fff;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.fin-report-suggestions button:hover,.fin-report-suggestions button[aria-selected=true]{background:#fff5d8}
.fin-report-suggestions strong{font-size:10px;font-weight:700}
.fin-report-suggestions small{color:var(--muted);font-size:8px}
.fin-report-suggestions p{margin:0;padding:12px;color:var(--muted);font-size:9px}
.fin-report-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px}
.fin-report-filter-actions .primary-action{min-height:44px}
.fin-report-results{margin-top:16px;padding:20px;border:1px solid #e7e0d4;border-radius:20px;background:linear-gradient(135deg,#fffdf9,#f7f4ed);box-shadow:0 10px 27px rgba(35,31,32,.045)}
.fin-report-preview-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fin-report-preview-actions .primary-action{min-height:44px;white-space:normal}
.fin-report-results-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.fin-report-results-head h2{margin:5px 0;color:var(--ink);font-size:18px}
.fin-report-results-head p{max-width:760px;margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.fin-report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.fin-report-metrics article{display:grid;gap:5px;min-height:112px;padding:17px;border:1px solid #ebe2d3;border-radius:15px;background:#fff}
.fin-report-metrics article:first-child{background:linear-gradient(135deg,#fff5d6,#fffbf1);border-color:#f1d77c}
.fin-report-metrics span{color:#756b59;font-size:9px;font-weight:800}
.fin-report-metrics strong{color:var(--ink);font-size:24px;letter-spacing:-.035em;overflow-wrap:anywhere}
.fin-report-metrics small{color:var(--muted);font-size:8px}
.fin-report-charts{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}
.fin-report-chart-card{min-width:0;min-height:278px;padding:17px;border:1px solid #e9e1d5;border-radius:16px;background:#fff}
.fin-report-chart-card h3{margin:4px 0 13px;font-size:13px}
.fin-report-chart-scroll{max-width:100%;overflow:auto}
.fin-report-month-chart{display:flex;align-items:end;gap:8px;min-width:max(100%,calc(var(--report-month-count) * 38px));height:170px;border-bottom:1px solid #ded8cb}
.fin-report-month{display:grid;flex:1;min-width:26px;gap:5px;align-items:end;text-align:center}
.fin-report-month-bars{display:flex;align-items:end;justify-content:center;gap:3px;height:145px}
.fin-report-month-bars span{display:block;width:42%;max-width:20px;min-height:0;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#ffd24b,#e9ad00)}
.fin-report-month-bars span.is-prior{background:linear-gradient(180deg,#8bc4ae,#3f8a70)}
.fin-report-month small{padding-bottom:5px;color:#777066;font-size:8px}
.fin-report-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;color:var(--muted);font-size:9px}
.fin-report-legend i{display:inline-block;width:9px;height:9px;margin-right:5px;border-radius:3px;background:#e9ad00}
.fin-report-legend i.is-prior{background:#3f8a70}
.fin-report-breakdown{display:grid;gap:13px}
.fin-report-breakdown-row>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:9px}
.fin-report-breakdown-row strong{min-width:0;overflow-wrap:anywhere}
.fin-report-breakdown-row span{flex:none;color:#6b655e}
.fin-report-track{height:9px;margin-top:6px;border-radius:99px;background:#f1eee7;overflow:hidden}
.fin-report-track i,.fin-report-track b{display:block;height:50%;border-radius:99px;background:#e8b414}
.fin-report-track i:only-child{height:100%}
.fin-report-track b{background:#5a9f83}
.fin-report-breakdown>small{color:var(--muted);font-size:8px}
.fin-report-empty-chart{display:grid;place-items:center;min-height:160px;padding:20px;border:1px dashed #e5dccd;border-radius:12px;background:#faf8f3;color:var(--muted);text-align:center;font-size:10px}
.fin-report-register{margin-top:18px;overflow:hidden;border:1px solid #e9e1d5;border-radius:16px;background:#fff}
.fin-report-register .fin-heading{padding:15px 17px;border-bottom:1px solid #e9e1d5}
.fin-report-register .fin-heading h2{margin:0 0 4px;font-size:13px}
.fin-report-register .fin-heading p{margin:0;font-size:9px}
.fin-report-table-wrap{max-width:100%;overflow:auto}
.fin-report-table{min-width:720px}
.fin-report-table td,.fin-report-table th{font-size:9px}
.fin-report-table td small{display:block;margin-top:3px;color:var(--muted);font-size:8px}
.fin-report-overflow,.fin-report-coverage{padding:10px 17px;color:var(--muted);font-size:9px;line-height:1.5}
.fin-report-coverage{margin:12px 0 0;border:1px solid #e9e1d5;border-radius:12px;background:#f4f1eb}
@media(max-width:700px){
 .fin-report-page .fin-page-heading,.fin-report-page .fin-heading{flex-wrap:wrap}
 .fin-report-page .fin-heading>div{min-width:0;flex:1 1 180px}
 .fin-report-page .fin-page-heading>button{width:100%;min-height:44px}
 .fin-report-page .fin-demo,.fin-report-builder .fin-heading,.fin-report-results-head{overflow-wrap:anywhere}
 .fin-report-period,.fin-report-filter-grid{grid-template-columns:minmax(0,1fr)}
 .fin-report-filter-form input,.fin-report-filter-form select,.fin-report-filter-form .fin-report-picker input[type=search]{font-size:16px;min-height:44px}
 .fin-report-types button,.fin-report-types button>strong,.fin-report-types button>small{min-width:0;overflow-wrap:anywhere}
 .fin-report-suggestions strong{overflow-wrap:anywhere}
 .fin-report-chip button{min-width:44px;min-height:44px}
 .fin-report-breakdown-row>div:first-child{flex-wrap:wrap}
}
@media(max-width:900px){.fin-report-types{grid-template-columns:repeat(2,minmax(0,1fr))}.fin-report-charts{grid-template-columns:1fr}}
@media(max-width:700px){.fin-report-types{gap:7px;padding:0 11px 12px}.fin-report-types button{grid-template-columns:30px minmax(0,1fr);min-height:72px;padding:9px;gap:3px 6px}.fin-report-types button>span{width:30px;height:30px;font-size:16px}.fin-report-types strong{font-size:9px}.fin-report-types small{font-size:7px}.fin-report-filter-form{padding:12px}.fin-report-period,.fin-report-filter-grid{grid-template-columns:1fr}.fin-report-presets button{flex:1}.fin-report-filter-actions{align-items:stretch;flex-direction:column}.fin-report-filter-actions .primary-action{width:100%}.fin-report-results{padding:12px;border-radius:15px}.fin-report-results-head{align-items:start;flex-direction:column}.fin-report-results-head h2{font-size:14px}.fin-report-metrics{grid-template-columns:1fr;gap:7px;margin:12px 0}.fin-report-metrics article{min-height:82px;padding:12px}.fin-report-metrics strong{font-size:18px}.fin-report-chart-card{min-height:230px;padding:12px}.fin-report-month-chart{height:140px}.fin-report-month-bars{height:115px}.fin-report-register .fin-heading{padding:12px}}
