.revenue-admin{width:100%;min-width:0;flex-direction:column;gap:16px;color:var(--ink,#213045)}
.revenue-admin *{box-sizing:border-box}
.rev-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.rev-head h2{margin:0 0 6px}.rev-head p,.rev-footnote,.rev-card-line,#rev-status{color:var(--sub,#657182);font-size:.84rem}.rev-head p{margin:0}
.rev-nav{display:flex;align-items:center;gap:8px}
.rev-nav button{min-height:44px;min-width:44px;border:1px solid var(--card-border,#ccc);border-radius:8px;background:var(--card,#fff);color:inherit;font:inherit;font-size:1.1rem;cursor:pointer}
.rev-nav button:disabled{opacity:.4;cursor:default}
.rev-nav span{min-width:7.5em;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.revenue-admin :focus-visible{outline:2px solid var(--ink,#213045);outline-offset:2px}
#rev-content{min-width:0;width:100%}#rev-content:not([hidden]){display:flex;flex-direction:column;gap:16px}
.rev-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rev-card,.rev-panel{min-width:0;background:var(--card,#fff);border:1px solid var(--card-border,#ddd);border-radius:14px;padding:16px;overflow-wrap:anywhere}
.rev-card-title{display:block;color:var(--sub,#657182);font-size:.84rem}
.rev-big{display:block;font-size:1.5rem;margin:8px 0;font-variant-numeric:tabular-nums;line-height:1.3}
.rev-card-line{display:block;line-height:1.55;margin-top:4px}
.rev-stack{display:flex;height:12px;border-radius:6px;overflow:hidden;background:var(--card-border,#e5e7eb);margin:8px 0}
.rev-seg{display:block;height:100%}
.rev-seg-ok{background:#2f855a}.rev-seg-grace{background:#d69e2e}.rev-seg-wait{background:#a0aec0}.rev-seg-lost{background:#c05621}
.rev-seg-a{background:#4a6fa5}.rev-seg-b{background:#2f855a}.rev-seg-c{background:#d69e2e}.rev-seg-d{background:#805ad5}
.rev-legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.8rem;margin-bottom:4px}
.rev-legend-item{display:inline-flex;align-items:center;gap:5px}
.rev-dot{display:inline-block;width:10px;height:10px;border-radius:50%}
.rev-dot.rev-seg-ok,.rev-dot.rev-seg-grace,.rev-dot.rev-seg-wait,.rev-dot.rev-seg-lost,.rev-dot.rev-seg-a,.rev-dot.rev-seg-b,.rev-dot.rev-seg-c,.rev-dot.rev-seg-d{display:inline-block}
.rev-panel h3{margin:0 0 10px;font-size:1rem}.rev-panel p,.rev-empty{font-size:.85rem;line-height:1.6;margin:8px 0}
.rev-bars{display:flex;align-items:flex-end;gap:3px;height:170px;overflow-x:auto;padding-bottom:2px}
.rev-bar-col{flex:1 0 12px;min-width:12px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer}
.rev-bar{display:block;width:100%;max-width:22px;background:#4a6fa5;border-radius:3px 3px 0 0;min-height:0}
.rev-bar-neg{background:repeating-linear-gradient(135deg,#c05621 0 3px,#f6ad55 3px 6px)}
.rev-bar-sign{font-size:.8rem;font-weight:700;line-height:1;color:#c05621;min-height:.8rem}
.rev-bar-day{font-size:.65rem;color:var(--sub,#657182);margin-top:3px;font-variant-numeric:tabular-nums;white-space:nowrap}
.rev-bar-detail{min-height:1.6em;font-size:.85rem;font-variant-numeric:tabular-nums}
.rev-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.rev-scroll-hint{display:none;margin:4px 0 0;font-size:.78rem;color:var(--sub,#657182);text-align:right}
.revenue-admin table{width:100%;min-width:440px;border-collapse:collapse;text-align:left}
.revenue-admin th,.revenue-admin td{padding:10px;border-bottom:1px solid var(--card-border,#ddd);font-size:.85rem;vertical-align:top;min-width:80px}
.revenue-admin th,.revenue-admin td{white-space:nowrap}.revenue-admin th{font-weight:600}.revenue-admin td{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:900px){.rev-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rev-card,.rev-panel{padding:12px}.rev-big{font-size:1.25rem}
.rev-bars{overflow-x:visible;gap:2px;padding-inline:8px}.rev-bar-col{flex:1 1 0;min-width:0}.rev-bar-day[data-skip]{visibility:hidden}
.rev-scroll-hint{display:block}.revenue-admin table{min-width:0}.revenue-admin th,.revenue-admin td{padding:10px 8px;min-width:0}}
@media(max-width:480px){.rev-cards{grid-template-columns:minmax(0,1fr)}}
