.audit-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-height:88vh;overflow:auto;padding:28px;border:1px solid #bfcad4;border-radius:12px;background:#fff;color:#14283a;font:14px Arial,Helvetica,sans-serif}.audit-dialog::backdrop{background:#10203299}.audit-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.audit-heading h2{margin:0 0 10px;font-size:24px}.audit-heading p,.audit-note{color:#617181;font-size:12px;line-height:1.5}.audit-heading .button{white-space:nowrap}.audit-list{list-style:none;padding:0;margin:20px 0}.audit-list li{border-left:3px solid #efb545;border-bottom:1px solid #e3e8ee;padding:16px 20px;margin-bottom:12px}.audit-list li>div{display:flex;justify-content:space-between;gap:12px}.audit-list li>div span{font-size:12px;color:#617181}.audit-list p{line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.calc-meta{display:block;font-size:12px;color:#617181;margin-top:6px;line-height:1.5;overflow-wrap:anywhere}.calc-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:20px}.calc-toolbar label{flex:1;min-width:180px;margin:0}.calc-toolbar input,.calc-toolbar select{margin-top:8px}.calc-table-wrap{overflow:auto}.calc-table{width:100%;border-collapse:collapse;font-size:14px}.calc-table th,.calc-table td{text-align:left;border-bottom:1px solid #dce3e9;padding:16px 12px;vertical-align:top}.calc-table th{color:#617181;font-size:12px}.calc-row-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:180px}.calc-row-actions .button{font-size:12px;padding:10px}.rights-dialog{width:min(760px,calc(100vw - 32px))}.rights-table input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:#b57b12;cursor:pointer}.rights-table .check-cell{text-align:center;width:110px}.rights-table .check-cell label{margin:0;display:flex;justify-content:center}.rights-table .fixed-access{font-size:12px;color:#617181}.rights-table tr:focus-within{background:#fff8e8}.rights-table th{white-space:nowrap}#rights-status{min-height:24px;line-height:1.5;font-size:13px}.cloud-audit-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted,#617181);margin:0 0 16px}.cloud-audit-bar[hidden]{display:none}.readonly-note{padding:12px;background:#fff5da;border:1px solid #e5ca81;border-radius:6px;color:#57451b}.calc-admin-nav{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:600px){.audit-dialog{padding:20px}.audit-heading{gap:10px}.calc-table th,.calc-table td{padding:12px 8px}.rights-table .check-cell{width:75px}.calc-row-actions{min-width:145px}}
.pricing-dialog p{line-height:1.6}.pricing-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.pricing-dialog #pricing-status{font-size:13px;line-height:1.5}.pricing-dialog .calc-table td,.pricing-dialog .calc-table th{padding:10px}.pricing-preview{padding:12px;margin-bottom:12px;background:#fff5da;color:#57451b;border:1px solid #e5ca81;border-radius:6px;font-size:13px}

.old-damage-help{padding:14px 18px;margin-bottom:18px;border:1px solid var(--line,#cbd5e1);border-left:4px solid #c28c32;border-radius:8px}.old-damage-help p{margin:6px 0 0;font-size:13px;line-height:1.6}.old-damage-fields{display:grid;gap:5px;min-width:135px;max-width:240px}.old-damage-fields input{width:100%;min-width:90px;box-sizing:border-box}.old-damage-fields small{line-height:1.5;font-size:12px}.manual-row>.old-damage-fields{grid-column:1/-1;max-width:none;padding:12px;border:1px solid var(--line,#cbd5e1);border-radius:6px}.manual-row>.old-damage-fields input{max-width:220px}.summary-deduction{background:rgba(194,140,50,.10)}#summary-old-damage-breakdown{display:block;font-size:11px;line-height:1.6;max-width:280px}.summary-deduction dd{color:var(--navy,#143956)}
.mail-dialog{width:min(1050px,96vw)}
.mail-body{display:grid;gap:18px}.mail-body fieldset{min-width:0;border:0;padding:0;margin:0}
.mail-body label{display:grid;gap:7px;margin-bottom:16px;font-weight:600}.mail-body input[type=email],.mail-body textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #bac9d9;border-radius:7px;font:inherit;color:inherit;background:var(--surface,#fff)}
.mail-fixed{display:flex;flex-wrap:wrap;gap:12px 28px;background:#eaf2fb;color:#163451;border-radius:8px;padding:14px;margin-bottom:18px}
.mail-body .mail-report-choice{border:1px solid #bdcddd;border-radius:9px;padding:16px;margin:18px 0}.mail-report-choice legend{font-weight:700;padding:0 6px}.mail-report-choice label{display:flex;align-items:flex-start;gap:12px;font-weight:400;cursor:pointer}.mail-report-choice small{display:block;margin-top:5px}.mail-report-choice input{width:18px;height:18px;flex:none;accent-color:#215a8a}
.mail-connection{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px}.mail-attachment{display:grid;gap:7px;padding:16px;background:#eaf2fb;color:#163451;border-radius:8px;overflow-wrap:anywhere}.mail-attachment a{justify-self:start}
#mail-preview{width:100%;height:680px;background:white;border:1px solid #d9e3ee;border-radius:8px;margin-top:16px}#mail-status{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.mail-dialog{width:98vw}.mail-body{padding:15px}#mail-preview{height:620px}.mail-dialog .metadata-footer{flex-wrap:wrap}}

/* One report surface moves into the dialog, preserving all actions and the current page. */
.report-is-open{overflow:hidden}
.report-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:var(--surface,#fff);color:var(--text,#14283a);overflow:hidden}
.report-dialog[open]{display:flex;flex-direction:column}
.report-dialog::backdrop{background:#102032cc}
.report-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;padding:16px max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left));background:var(--navy,#102032);color:#fff;border-bottom:3px solid var(--gold,#efb545)}
.report-dialog-header h2{font-size:21px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.report-dialog-header p{font-size:13px;color:#cfdae5;margin:5px 0 0;overflow-wrap:anywhere}
.report-dialog-header p:empty{display:none}
.report-dialog-header .button{flex:none;background:#fff;color:#14283a;border-color:#cbd6df}
.report-dialog-header .button span{font-size:24px;line-height:1}
.report-dialog>.report-area{flex:1;display:flex;flex-direction:column;min-height:0;border:0;border-radius:0}
.report-dialog .report-toolbar{flex:none;flex-wrap:wrap}
.report-dialog .report-view{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px}
.report-dialog .paper{max-width:1100px}
.report-dialog .pager{position:sticky;top:-20px;z-index:1;background:var(--surface,#fff);border:1px solid var(--line,#dce3e9);border-radius:8px;padding:9px;width:max-content;max-width:100%;margin:0 auto 20px;box-shadow:0 3px 12px #10203218}
.report-dialog .report-footer{flex:none;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.report-dialog>.alert{flex:none;margin:0;border-radius:0}
#report-paper[role=button]{cursor:zoom-in}
#report-paper:focus-visible{outline:3px solid var(--gold,#efb545);outline-offset:5px}
.calculation-open-link{display:block;text-align:left;padding:0;border:0;background:transparent;color:inherit;font:inherit}
.calculation-open-link strong{text-decoration:underline;text-decoration-color:#9bb4ca;text-underline-offset:3px}
.calculation-open-link:hover strong{color:#215a8a;text-decoration-color:currentColor}
@media(max-width:650px){.report-dialog-header{padding:12px;gap:10px}.report-dialog-header h2{font-size:18px}.report-dialog-header .button{padding:9px 12px}.report-dialog .report-toolbar{max-height:36dvh;overflow:auto}.report-dialog .report-actions{gap:6px}.report-dialog .report-actions .button{font-size:12px;padding:9px 10px}.report-dialog .report-view{padding:10px}.report-dialog .pager{top:-10px;margin-bottom:10px}}

[data-theme=dark] .report-dialog{background:#172434;color:#e5edf5}
[data-theme=dark] .report-dialog .pager{background:#172434;color:#e5edf5}
