.rg-panel{--rg-ink:#173e35;--rg-edge:#cfddd5;max-width:1500px;margin:0 auto 2rem;color:#253c34;font-family:inherit;font-size:15px;line-height:1.45}
.rg-head,.rg-bar,.rg-actions,.rg-terms{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.rg-head{justify-content:space-between;margin-bottom:1.15rem}.rg-panel h1{font-size:clamp(1.6rem,3vw,2.3rem);color:var(--rg-ink);line-height:1.15;margin:0}.rg-panel h2{font-size:1.13rem;margin:0 0 .9rem;color:var(--rg-ink)}.rg-head p{margin:.35rem 0;color:#496155}
.rg-panel button{padding:.45rem .8rem;min-height:36px;background:white;border:1px solid #afc7ba;color:#164d3d;border-radius:6px;font:inherit;font-weight:600;cursor:pointer}.rg-panel button:hover{background:#eff6f1}.rg-panel button:disabled{opacity:.55;cursor:default}.rg-panel button.rg-primary{color:white;background:#155447;border-color:#155447}.rg-panel button.rg-link{border:0;color:#155447;text-decoration:underline;padding:0;background:transparent}
.rg-panel :focus-visible,.case-invoices button:focus-visible{outline:3px solid #117e85;outline-offset:2px}.rg-bar,.rg-card,.rg-scroll{background:white;border:1px solid var(--rg-edge);border-radius:9px}.rg-bar,.rg-card{padding:1rem 1.15rem;margin-bottom:.9rem}.rg-panel label{display:grid;gap:.25rem;color:#365548;font-size:.87rem;font-weight:600;align-content:start}.rg-panel input,.rg-panel select,.rg-panel textarea,.rg-panel output{box-sizing:border-box;width:100%;border:1px solid #b8ccc0;border-radius:5px;font:inherit;color:#20382d;background:white;padding:.43rem .6rem;min-height:36px}.rg-panel textarea{min-height:64px}.rg-panel output{background:#f4f7f4}.rg-panel input[type=number]{font-variant-numeric:tabular-nums}
.rg-grid,.rg-line-values{display:grid;gap:.7rem;grid-template-columns:repeat(3,minmax(0,1fr))}.rg-card>label{max-width:29rem;margin-bottom:.65rem}.rg-concept{grid-template-columns:1fr 1.4fr}.rg-line-values{grid-template-columns:repeat(5,minmax(0,1fr)) auto;align-items:end;margin:.65rem 0}.rg-line{min-width:0;padding:.75rem;border:1px solid var(--rg-edge);border-radius:6px;margin:0 0 .75rem}.rg-line legend{font-weight:600;padding:0 .3rem}.rg-terms{margin-top:.55rem}.rg-scroll{overflow:auto}.rg-panel table{border-collapse:collapse;width:100%;text-align:left;font-size:.89rem}.rg-panel table caption{text-align:left;padding:.85rem;font-weight:700;color:var(--rg-ink)}.rg-panel th,.rg-panel td{padding:.55rem .65rem;border-bottom:1px solid #deebe2}.rg-panel th{background:#edf4ef;color:#365548;white-space:nowrap}.rg-panel .rg-num{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.rg-panel td button{margin:.1rem .2rem .1rem 0}.rg-panel td small{display:block}
.rg-state{display:inline-block;border-radius:5px;padding:.15rem .45rem;font-weight:650;white-space:nowrap}.rg-state.pending{background:#fff0ce;color:#785100}.rg-state.followup{background:#fbe6de;color:#883d27}.rg-state.paid{background:#dceee2;color:#245536}.rg-totals{display:grid;gap:1px;grid-template-columns:repeat(4,minmax(0,1fr));background:#d4e2d8;border:1px solid #d4e2d8;border-radius:6px;overflow:hidden;margin:.9rem 0}.rg-totals div{padding:.6rem .8rem;background:#f6f9f6}.rg-totals div:last-child{background:#e4efe7}.rg-totals dt{font-size:.84rem}.rg-totals dd{margin:.15rem 0 0;font-size:1.15rem;font-weight:700}.rg-error{padding:.7rem 1rem;border:1px solid #ddac9e;border-radius:6px;color:#742909;background:#fff1ec}.rg-empty{padding:.65rem;color:#486453}
@media(max-width:780px){.rg-grid,.rg-line-values,.rg-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.rg-head{align-items:flex-start}}
@media(max-width:480px){.rg-grid,.rg-concept{grid-template-columns:1fr}.rg-panel th,.rg-panel td{padding:.4rem}.rg-head{display:block}.rg-head .rg-actions{margin-top:.6rem}}

.rg-picker{max-width:42rem;position:relative;margin-bottom:.8rem}.rg-picker input{margin-top:.25rem}.rg-suggestions{max-height:17rem;overflow:auto;border:1px solid #b8ccc0;border-radius:6px;background:#fff}.rg-suggestions button{border:0;border-radius:0;display:block;width:100%;text-align:left}.rg-suggestions button[aria-selected=true]{background:#e0eee5}.rg-suggestions p{margin:.5rem}.rg-directory .rg-actions{margin-top:1rem}.rg-directory [hidden]{display:none!important}
