/* Compact administration workspace. The PDF owns its separate A4 typography. */
body.professional-mode #viewInvoices{max-width:1440px;margin:0 auto;}
#viewInvoices .inv-heading,#viewInvoices .inv-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
body.professional-mode #viewInvoices h2{margin:4px 0 0!important;}
#viewInvoices .inv-eyebrow{color:#607994;font-size:12px;font-weight:600;}
#viewInvoices .inv-status{margin:12px 0;min-height:22px;color:#315d91;}
#viewInvoices .inv-status.inv-error{color:#a12535;}
#viewInvoices .inv-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.85fr);gap:16px;align-items:start;}
#viewInvoices .inv-card{padding:18px;border:1px solid #dbe5f1;border-radius:12px;background:#fff;min-width:0;}
body.professional-mode #viewInvoices h3{font-size:17px!important;margin:0!important;}
body.professional-mode #viewInvoices h4{font-size:14px!important;margin:18px 0 10px!important;}
#viewInvoices .inv-section-heading{margin-bottom:16px;}
#viewInvoices .inv-badge{padding:5px 9px;border-radius:6px;color:#245388;background:#edf4fe;font-size:12px;}
#viewInvoices .inv-flow{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:10px 0;}
#viewInvoices .inv-field{flex:0 1 var(--inv-width);width:var(--inv-width);max-width:100%;min-width:0;}
#viewInvoices .inv-short{--inv-width:165px;}#viewInvoices .inv-medium{--inv-width:210px;}#viewInvoices .inv-wide{--inv-width:320px;}#viewInvoices .inv-full{--inv-width:100%;}
body.professional-mode #viewInvoices .inv-field :is(input,select,textarea){width:100%!important;max-width:100%!important;min-width:0!important;min-height:38px!important;padding:8px 10px!important;}
body.professional-mode #viewInvoices .inv-field label{font-size:13px!important;margin-bottom:5px!important;}
#viewInvoices .inv-field textarea{resize:vertical;}
#viewInvoices fieldset{margin:0;padding:0;border:0;min-width:0;}
#viewInvoices fieldset:disabled :is(input,select,textarea){color:#315171!important;background:#f8fafd!important;opacity:1;}
#viewInvoices .inv-model-bar{padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #e6edf7;}
#viewInvoices .inv-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px;}
#viewInvoices details{border-top:1px solid #e6edf7;padding-top:13px;margin-top:16px;}
#viewInvoices summary{cursor:pointer;color:#315d91;font-size:13px;font-weight:600;}
#viewInvoices .inv-hint{font-size:12px!important;line-height:1.5!important;color:#6b7d93;display:block;margin-top:5px;}
#viewInvoices .inv-preview-panel{position:sticky;top:94px;}
#viewInvoices #invPreviewFrame{width:100%;height:650px;border:1px solid #dbe5f1;border-radius:8px;background:#f5f8fc;}
#viewInvoices .inv-preview-empty{min-height:340px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#4d6888;border:1px dashed #d2dfef;border-radius:8px;margin-top:14px;}
#viewInvoices .inv-preview-empty img{width:110px;height:auto;}
#viewInvoices .inv-preview-empty small{font-size:12px;color:#8496ab;}
#viewInvoices [hidden]{display:none!important;}
#viewInvoices .inv-history{margin-top:18px;}
#viewInvoices .inv-table-wrap{overflow:auto;margin-top:16px;border:1px solid #e6edf7;border-radius:8px;}
#viewInvoices table{width:100%;border-collapse:collapse;}
#viewInvoices .inv-reference{white-space:pre-line;min-width:145px;}
#viewInvoices .inv-price{white-space:nowrap;font-variant-numeric:tabular-nums;}
#viewInvoices .inv-concept-cell{max-width:360px;white-space:pre-wrap;overflow-wrap:anywhere;}
#viewInvoices .inv-concept-cell>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
#viewInvoices .inv-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
#viewInvoices .inv-delivery-badge{display:block;margin-top:5px;color:#315d91;font-size:11px;white-space:normal;}
#viewInvoices .inv-send-dialog{box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:85dvh;overflow:auto;border:1px solid #ccdae9;border-radius:16px;padding:24px;background:#fff;color:#173953;box-shadow:0 24px 80px #08294355;}
#viewInvoices .inv-send-dialog::backdrop{background:#08243d99;}
#viewInvoices .inv-send-dialog p{font-size:14px;line-height:1.6;}
#viewInvoices .inv-send-dialog input{box-sizing:border-box;width:100%;margin-top:6px;}
#viewInvoices .inv-send-dialog label{font-size:13px;font-weight:600;}
#viewInvoices .inv-send-dialog .inv-status{color:#315d91;}
@media(min-width:1650px){#viewInvoices .inv-wide{--inv-width:345px;}}
@media(max-width:1180px){#viewInvoices .inv-layout{grid-template-columns:1fr;}#viewInvoices .inv-preview-panel{position:static;}#viewInvoices .inv-preview-empty{min-height:180px;}#viewInvoices .inv-preview-empty img{width:80px;}}
@media(max-width:600px){#viewInvoices .inv-card{padding:14px;}#viewInvoices .inv-field{flex-basis:100%;width:100%;}#viewInvoices #invPreviewFrame{height:520px;}#viewInvoices .inv-heading{align-items:start;}body.professional-mode #viewInvoices h2{font-size:23px!important;}}
