/* Pakki reports and money labels */
.money-basis{font-weight:600;opacity:.75;text-transform:none;letter-spacing:0;white-space:nowrap}
.money-sub{display:block;font-size:11px;font-weight:600;color:var(--mid,#64748b);margin-top:2px;font-family:inherit}
.money-totals{line-height:1.6}
.money-line-wrap{flex-wrap:wrap}
.dash-money.drafts-card{border-color:rgba(34,197,94,.35)}
.dash-money.drafts-card .v{color:var(--green,#16a34a)}

.work-flags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px}
.work-flag{display:inline-flex;align-items:baseline;gap:5px;border:1px solid var(--b1,#d8dee9);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;background:var(--s2,rgba(148,163,184,.08))}
.work-flag small{font-weight:600;opacity:.75;font-size:11px}
.work-flag.unbilled{border-color:rgba(249,115,22,.55);background:rgba(249,115,22,.12);color:var(--orange,#c2410c)}
.work-flag.draft{border-color:rgba(47,128,255,.45);background:rgba(47,128,255,.1)}
.work-flag.pricing{border-color:rgba(139,92,246,.5);background:rgba(139,92,246,.12)}
.work-flag.done{border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.1);color:var(--green,#15803d)}
.tabs button .tab-count{margin-left:6px;font-size:11px;font-weight:700;opacity:.7}
.tabs button .tab-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange,#f97316);margin-left:5px;vertical-align:middle}
.tabs button.has-unbilled{border-color:rgba(249,115,22,.55)}

#modalBg .modal.report-wide{width:min(860px,96vw);max-width:96vw}
.report-form{margin-top:10px}
.report-h{margin:16px 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--mid,#64748b)}
.report-h small{font-weight:600;opacity:.7}
.report-hint{margin:6px 0 0;font-size:12px;color:var(--mid,#64748b)}
.report-start{margin:10px 0 4px}
.report-rows{display:grid;gap:6px}
.report-row{border:1px solid var(--b1,#d8dee9);border-radius:12px;padding:9px 11px;display:grid;gap:7px}
.report-pick,.report-note{display:flex;gap:9px;align-items:flex-start;cursor:pointer}
.report-pick input,.report-note input{width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:#2f80ff}
.report-pick small{display:block;color:var(--mid,#64748b);font-size:12px;margin-top:1px}
.report-note{font-size:12px;color:var(--mid,#64748b)}
.report-note em{font-style:normal;color:inherit;opacity:.9}
.report-mat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.report-mat input{padding:7px 10px;font-size:13px}
.report-error{color:#dc2626;font-size:13px;min-height:18px;margin-top:10px}
.report-error.ok,.report-ok{color:var(--green,#15803d)}
@media(max-width:640px){.report-mat{grid-template-columns:1fr}}
.report-tag{display:inline-block;margin-left:8px;border:1px solid var(--b1,#d8dee9);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:700;opacity:.85}

/* Report dialogs: touch-sized controls and no sideways scrolling on phones */
#modalBg .modal.report-wide{overflow-x:hidden}
#modalBg .modal.report-wide #modalActions{flex-wrap:wrap;gap:8px}
#modalBg .modal.report-wide #modalActions .btn,#modalBg .modal.report-wide .report-start .btn,#modalBg .modal.report-wide [data-open-report]{min-height:44px}
#modalBg .modal.report-wide [data-open-report]{flex:none}
#modalBg .modal.report-wide .btn:disabled{opacity:.5;cursor:not-allowed}
.report-versions .row{gap:10px;align-items:center}
.report-versions .row>div{min-width:0}
.report-legend{margin:14px 0 0;padding:10px 12px 10px 30px;border:1px solid var(--b1,#d8dee9);border-radius:12px;font-size:12.5px;line-height:1.5;display:grid;gap:4px}
.report-blocked{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px;color:var(--text,inherit)}
.report-blocked .btn{min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
.report-row,.report-pick span,.report-note span{min-width:0;overflow-wrap:anywhere}
@media(max-width:640px){
 #modalBg .modal.report-wide{width:100%;max-width:100%}
 #modalBg .modal.report-wide .report-form{display:grid;grid-template-columns:minmax(0,1fr)}
 #modalBg .modal.report-wide .report-form>*{grid-column:1/-1;min-width:0}
 #modalBg .modal.report-wide input[type=date],#modalBg .modal.report-wide textarea,.report-mat input{min-height:44px;font-size:16px;width:100%;max-width:100%}
 #modalBg .modal.report-wide #modalActions .btn{flex:1 1 calc(50% - 8px);padding-left:8px;padding-right:8px}
 #modalBg .modal.report-wide .report-start .btn{flex:1 1 100%}
 .report-pick,.report-note{gap:12px;min-height:44px;align-items:center}
 .report-pick input,.report-note input{width:26px;height:26px;margin:0}
 .report-versions .row{flex-wrap:wrap}
 .report-versions [data-open-report]{flex:1 1 100%}
 .work-flags{gap:5px}.tabs button .tab-count{margin-left:4px}
}

/* Actions stay reachable in long report dialogs; bulk choices per group */
#modalBg .modal.report-wide #modalActions{position:sticky;bottom:0;z-index:2;background:var(--s0,#fff);box-shadow:0 -8px 18px rgba(15,23,42,.08)}
#modalBg .modal.report-wide #closeModal{min-height:44px;min-width:44px}
.report-group-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px;margin:16px 0 6px}
.report-group-head .report-h{margin:0}
.report-bulk{display:flex;gap:6px}
.report-bulk .btn{padding:6px 10px;font-size:12px;min-height:36px}
@media(max-width:640px){.report-bulk{flex:1 1 100%}.report-bulk .btn{flex:1;min-height:44px}}
