/* Actual category report layout with independent flat token presentation. */
body[data-theme="7"] #m-cat-report .mc-top h2,
body[data-theme="7"] #m-cat-report .mc-top .title,
body[data-theme="7"] #m-cat-report .mc-top .ttl,
body[data-theme="7"] #m-cat-report .mc-top .h{display:none}
body[data-theme="7"] #m-cat-report .mc-top{position:sticky;top:0;z-index:60;padding:6px 10px 0;min-height:0;background:inherit;backdrop-filter:none}
body[data-theme="7"] #m-cat-report.md{align-items:stretch}
body[data-theme="7"] #m-cat-report .mc{height:100dvh;max-height:100dvh;overflow:hidden;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;padding:0}
body[data-theme="7"] #cat-report-body{flex:1;overflow:hidden;padding:6px 0 0;display:flex;flex-direction:column;min-height:0}
body[data-theme="7"] .catR{height:100%;display:flex;flex-direction:column;width:100%;overflow:hidden;min-height:0}
body[data-theme="7"] .catRlist{flex:1;min-height:0;overflow-y:auto;padding:0 10px 18px;-webkit-overflow-scrolling:touch}
body[data-theme="7"] .catRempty{height:100%;opacity:.75;font-weight:800;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px 10px}
body[data-theme="7"] .catRsum{margin:8px 10px 10px;padding:10px 12px;border-radius:16px;background:var(--surface);border:1px solid var(--divider)}
body[data-theme="7"] .catRrow{display:flex;justify-content:space-between;gap:10px;font-weight:900;margin-top:6px}
body[data-theme="7"] .catRrow:first-child{margin-top:0}
body[data-theme="7"] .catRcnt{opacity:.7;margin-top:8px;font-weight:800;font-size:12px}
body[data-theme="7"] .catRexp{font-weight:900}
body[data-theme="7"] .catRplus{color:var(--text)}
body[data-theme="7"] .catRminus{color:var(--text)}
body[data-theme="7"] .catRitem{padding:10px 0;border-bottom:1px solid var(--divider)}
body[data-theme="7"] .catRline{display:flex;justify-content:space-between;gap:10px;font-weight:900}
body[data-theme="7"] .catRcom{margin-top:6px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px 10px;border-radius:999px;font-weight:800;font-size:12px;line-height:1.15;max-width:100%;word-break:break-word;background:var(--surface);border:1px solid var(--divider);box-shadow:none;opacity:.95}
body[data-theme="7"] .catRcom::before{content:"💬";opacity:.75;font-size:12px;line-height:1;flex:0 0 auto}
body[data-theme="7"] .catRcom.open{white-space:normal;overflow:visible;text-overflow:clip;word-break:break-word}
body[data-theme="7"] .catRcomPlus{color:var(--text);border-color:var(--divider)}
body[data-theme="7"] .catRcomMinus{color:var(--text);border-color:var(--divider)}
body[data-theme="7"] .catRfooter{position:sticky;bottom:0;z-index:70;padding:0 0 calc(10px + env(safe-area-inset-bottom, 0px));background:var(--surface);backdrop-filter:none}
body[data-theme="7"] .catRcontrols{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:10px;padding:0 10px calc(8px + env(safe-area-inset-bottom, 0px));margin:0;align-items:center}
body[data-theme="7"] .catRcontrols::-webkit-scrollbar{height:0}
body[data-theme="7"] .catRcontrols .br{width:auto;min-height:44px;padding:10px 12px;border-radius:16px;font-size:12px;font-weight:900;white-space:nowrap;margin:0;flex:0 0 auto;border:1px solid var(--divider);background:var(--surface)}
body[data-theme="7"] .catRcontrols .br.on{border-color:var(--divider);background:var(--surface);box-shadow:none}
body[data-theme="7"] .catRcontrols .br-icon{min-width:48px;text-align:center}
body[data-theme="7"] .catRdates{margin:0 10px 8px;padding:10px 12px;border-radius:16px;background:var(--surface);border:1px solid var(--divider);display:grid;gap:8px}
body[data-theme="7"] .catRdatesRow{display:flex;gap:10px;align-items:center}
body[data-theme="7"] .catRdatesRow input{flex:1;min-height:40px;border-radius:12px;border:1px solid var(--divider);background:var(--surface);color:var(--text);padding:0 10px;font-weight:800}
body[data-theme="7"] .catRplus{color:var(--paid)}
body[data-theme="7"] .catRminus{color:var(--negative)}

/* Category report v1094: fixed summary/controls, FULL independently scrollable history. */
body[data-theme="7"] #m-cat-report .mc-top{min-height:38px;flex:none}
body[data-theme="7"] #m-cat-report .catR{min-height:0;overflow:hidden}
body[data-theme="7"] #m-cat-report .catRoverview{
 flex:none;margin:4px 10px 7px;padding:11px 12px;
 background:var(--surface-soft);border:1px solid var(--divider);
 border-radius:var(--radius);display:grid;gap:4px;min-width:0;
}
body[data-theme="7"] #m-cat-report .catRtitle{font-size:15px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
body[data-theme="7"] #m-cat-report .catRperiod-label{font-size:12px;color:var(--muted)}
body[data-theme="7"] #m-cat-report .catRstats{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin-top:6px}
body[data-theme="7"] #m-cat-report .catRstats span{
 min-width:0;display:flex;justify-content:space-between;align-items:baseline;gap:5px;
 border-top:1px solid var(--divider);padding-top:7px;font-size:11px;color:var(--muted);
}
body[data-theme="7"] #m-cat-report .catRstats b{
 font-size:12px;text-align:right;overflow-wrap:anywhere;
 font-variant-numeric:tabular-nums;
}
body[data-theme="7"] #m-cat-report .catRlist{flex:1;min-height:0;overflow-y:auto;padding:0 11px 12px}
body[data-theme="7"] #m-cat-report .catRitem{padding:9px 1px}
body[data-theme="7"] #m-cat-report .catRline{font-size:12px;font-weight:600;gap:6px}
body[data-theme="7"] #m-cat-report .catRcom{
 display:block;white-space:normal;overflow-wrap:anywhere;
 font-size:11px;font-weight:400;line-height:1.4;border-radius:8px;margin-top:6px;
}
body[data-theme="7"] #m-cat-report .catRfooter{
 flex:none;position:relative;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px));
 background:var(--surface);border-top:1px solid var(--divider);
}
body[data-theme="7"] #m-cat-report .catRcontrols{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:6px;overflow:visible;margin:0;padding:0;
}
body[data-theme="7"] #m-cat-report .catRcontrols .br{
 min-width:0;width:100%;min-height:38px;margin:0;padding:7px 2px;
 font-size:11px;font-weight:650;line-height:1.2;white-space:normal;
 color:var(--text);background:var(--surface-soft);border:1px solid var(--divider);border-radius:9px;
}
body[data-theme="7"] #m-cat-report .catRcontrols .br.on{
 color:var(--main);background:var(--surface-selected);border-color:var(--success-border);
}
body[data-theme="7"] #m-cat-report .catRtools{
 display:grid;grid-template-columns:2fr 3fr;gap:7px;min-width:0;margin-top:7px;
}
body[data-theme="7"] #m-cat-report .catRtools .br,body[data-theme="7"] #m-cat-report .catRapply{
 min-width:0;min-height:39px;padding:8px;margin:0;
 font-size:12px;font-weight:650;border:1px solid var(--divider);
 border-radius:9px;background:var(--surface-soft);color:var(--main);
}
body[data-theme="7"] #m-cat-report .catRtools .catRpng{
 background:var(--main);border-color:var(--main);color:var(--on-main);
}
body[data-theme="7"] #m-cat-report .catRdates{
 margin:0 0 9px;padding:9px;border:1px solid var(--divider);
 border-radius:9px;background:var(--surface-soft);gap:7px;
}
body[data-theme="7"] #m-cat-report .catRdate-labels{
 display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px;color:var(--muted);
}
body[data-theme="7"] #m-cat-report .catRdatesRow{
 display:grid;grid-template-columns:1fr 1fr;gap:7px;
}
body[data-theme="7"] #m-cat-report .catRdatesRow input{
 min-width:0;width:100%;min-height:39px;height:39px;
 padding:3px 4px;font-size:12px;font-weight:500;
 color-scheme:var(--field-color-scheme);
}
body[data-theme="7"] #m-cat-report .catRapply{width:100%}
@media(max-width:370px){
 body[data-theme="7"] #m-cat-report .catRcontrols .br{font-size:10px}
 body[data-theme="7"] #m-cat-report .catRstats b{font-size:11px}
}

/* Category report: same two-action layout as ordinary cards, theme 7 only. */
body[data-theme="7"] #m-cat-report .catRactions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0;margin-top:8px;
}
body[data-theme="7"] #m-cat-report .catRactions .br{
 width:100%;min-width:0;min-height:43px;margin:0;padding:9px 7px;
 border-radius:10px;font-size:13px;font-weight:750;border:1px solid var(--main);
}
body[data-theme="7"] #m-cat-report .catRactions .catRpdf{
 background:var(--surface-soft);color:var(--main);
}
body[data-theme="7"] #m-cat-report .catRactions .catRshare{
 background:var(--main);color:var(--on-main);
}
