.monthly-billing{color:var(--ink,#20333d);line-height:1.5;margin-bottom:28px}.monthly-billing h2{font-size:25px;letter-spacing:-.5px;margin:0}.monthly-billing p{font-size:14px;margin:8px 0 16px}.monthly-billing header,.billing-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.monthly-billing button{font:600 14px system-ui;border:1px solid #aabec8;border-radius:10px;background:#fff;color:#20333d;padding:12px 16px;min-height:44px;cursor:pointer}.monthly-billing button:hover{background:#eff5f6}.monthly-billing button:focus-visible,.monthly-billing input:focus-visible,.monthly-billing select:focus-visible,.monthly-billing textarea:focus-visible{outline:3px solid #426b7a;outline-offset:3px}.monthly-billing button:disabled{opacity:.55;cursor:not-allowed}.monthly-billing label{display:block;font-size:14px;font-weight:600;margin:12px 0}.monthly-billing input,.monthly-billing select,.monthly-billing textarea{font:inherit;display:block;border:1px solid #afc0c8;border-radius:8px;padding:10px;background:#fff;color:#20333d;max-width:100%;width:100%;box-sizing:border-box}.billing-prep{padding:18px;border:1px solid #d4dfe3;border-radius:14px;background:#f5f8f9}.billing-prep input{width:auto}.billing-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.billing-metrics>div{padding:16px;border:1px solid #d4dfe3;border-radius:12px}.billing-metrics strong{display:block;font-size:23px}.billing-metrics span{font-size:12px}.billing-alert{padding:14px;border-left:3px solid #8d6d35;background:#faf7ef;color:#48391f}.monthly-billing .billing-invoice{display:flex;justify-content:space-between;gap:20px;width:100%;text-align:left;margin:10px 0;padding:18px}.monthly-billing small{display:block;font-size:12px;font-weight:400}.billing-dialog{width:950px;max-width:calc(100% - 32px);max-height:90dvh;overflow:auto;padding:24px;border:1px solid #b7c9d1;border-radius:18px;color:#20333d;background:#fff}.billing-dialog::backdrop{background:#1e303b88}.billing-table-wrap{overflow-x:auto}.monthly-billing table{border-collapse:collapse;width:100%;font-size:13px}.monthly-billing td,.monthly-billing th{padding:10px;text-align:left;border-bottom:1px solid #d4dfe3}.monthly-billing th{font-size:12px}.monthly-billing td input{min-width:105px}.monthly-billing [data-error]{color:#a32626}.billing-actions{margin:18px 0}.billing-status{min-height:22px}@media(max-width:550px){.billing-metrics{grid-template-columns:1fr}.billing-metrics>div{padding:12px}.billing-dialog{padding:16px}.monthly-billing h2{font-size:23px}}@media(prefers-reduced-motion:reduce){.monthly-billing *{transition:none!important;animation:none!important}}
@media(max-width:550px){.monthly-billing table,.monthly-billing tbody,.monthly-billing tr,.monthly-billing td{display:block;width:100%;box-sizing:border-box}.monthly-billing thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.monthly-billing tr{padding:8px 0 16px;border-bottom:1px solid #aabec8}.monthly-billing td{border:0;padding:6px 0}.monthly-billing td::before{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#526c79;margin-bottom:4px}.monthly-billing td:nth-child(1)::before{content:'Case / location'}.monthly-billing td:nth-child(2)::before{content:'Work'}.monthly-billing td:nth-child(3)::before{content:'Quantity'}.monthly-billing td:nth-child(4)::before{content:'Unit price'}.monthly-billing td:nth-child(5)::before{content:'Line total'}.monthly-billing td input{min-width:0}}
.billing-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.billing-metrics strong{overflow-wrap:anywhere}.monthly-billing[data-mode="office"] .billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-billing[data-mode="office"] .billing-metrics>div:first-child,.monthly-billing[data-mode="office"] .billing-metrics>div:nth-child(n+4){display:none}.billing-dialog .billing-dialog-close{position:sticky;top:0;float:right;z-index:2;background:#fff;box-shadow:0 2px 12px #20333d12}.billing-dialog h2{padding-right:80px;overflow-wrap:anywhere}@media(max-width:550px){.billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-metrics strong{font-size:20px}}

.billing-print-frame{display:block;width:100%;height:65dvh;min-height:360px;border:1px solid #d4dfe3;background:#fff;border-radius:8px}
