.rr-panel{margin:22px 0;border:1px solid #bdd7dc;border-radius:15px;background:#fff;padding:22px 24px}.rr-intro{display:flex;gap:20px;justify-content:space-between;align-items:flex-start}.rr-intro h2{margin:6px 0 9px;font-size:21px;color:#143943}.rr-intro p{max-width:790px;color:#607b84;font-size:12px;line-height:1.65}.rr-chip{background:#eaf6f8;color:#156675;border:1px solid #bce1e6;border-radius:99px;white-space:nowrap;padding:7px 11px;font-size:10px;font-weight:800}.rr-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.rr-actions span{font-size:11px;color:#75919b}.rr-form{margin-top:22px;border-top:1px solid #e1eced;padding-top:18px}.rr-form[hidden]{display:none}.rr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.rr-form-grid label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:700;color:#456977}.rr-form-grid .rr-wide{grid-column:1/-1}.rr-form input,.rr-form textarea,.rr-form select{font:inherit;border:1px solid #c9d9df;border-radius:9px;color:#204650;background:#fff;padding:9px 10px;width:100%;min-width:0}.rr-form textarea{min-height:83px;resize:vertical}.rr-form select{height:42px}.rr-form input:focus-visible,.rr-form textarea:focus-visible,.rr-form select:focus-visible{outline:3px solid #96d7de;outline-offset:1px}.rr-info{border-left:3px solid #197f8c;background:#eef8f9;font-size:12px;line-height:1.65;color:#52747d;padding:13px 17px;border-radius:7px;margin:20px 0}.rr-section{margin:10px 0;border:1px solid #dbe6e8;border-radius:11px;overflow:hidden}.rr-section>summary{cursor:pointer;padding:14px 16px;font-size:13px;font-weight:800;background:#f5f9fa;color:#174750}.rr-section>summary span{float:right;font-weight:600;font-size:11px;color:#7698a0}.rr-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:17px}.rr-section h4{margin:15px 17px 0;font-size:12px;color:#5a808b}.rr-field{min-width:0;border-bottom:1px solid #eaf0f0;padding:0 0 12px}.rr-field>label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:750;color:#285460;margin-bottom:9px}.rr-field small{font-size:11px;color:#8299a1;font-weight:450;line-height:1.5}.rr-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rr-footer{border-top:1px solid #e2eced;padding-top:19px;margin-top:19px;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.rr-footer p{margin:0 auto 0 0;max-width:560px;line-height:1.5;font-size:11px;color:#55727c}.rr-error{color:#a13d42!important}.rr-history{margin-top:17px;padding:13px 15px;border:1px solid #e2ebed;background:#f9fbfc;border-radius:10px;color:#536e77;font-size:12px}.rr-history>strong{color:#204854}.rr-history-row{padding:10px 0;border-top:1px solid #e7eff0;margin-top:9px}.rr-history-row span{margin-left:10px;background:#e9f4ed;padding:4px 7px;border-radius:5px;color:#2d8065;font-size:10px}@media(max-width:760px){.rr-panel{padding:17px}.rr-intro{display:block}.rr-chip{display:inline-block;margin:8px 0}.rr-form-grid,.rr-section-grid{grid-template-columns:1fr}.rr-two{grid-template-columns:1fr 1fr}.rr-footer{justify-content:stretch}.rr-footer button{flex:1}.rr-footer p{flex-basis:100%}}
.rr-evidence{margin:20px 0;padding:16px 18px;background:#f5f9fa;border:1px solid #d9e7e9;border-radius:11px}.rr-evidence>strong{color:#1b505e;font-size:12px}.rr-evidence>p{font-size:11px;color:#6c8891;line-height:1.6}.rr-evidence-choice{display:flex;align-items:center;gap:9px;margin:8px 0;padding:9px 11px;border-radius:8px;background:#fff;border:1px solid #d8e7e9;font-size:11px;color:#315764}.rr-evidence-choice input{width:17px;height:17px;accent-color:#087b8b}.rr-evidence #rrEvidencePicker{margin-top:12px;max-height:300px;overflow:auto}.rr-history-row p{color:#6f8992;line-height:1.5}.rr-history-row small{color:#94a7ae;overflow-wrap:anywhere}.rr-history-row .rr-actions{margin-top:10px}.rr-panel #ergReview label{display:block;margin:14px 0;color:#244b56;font-weight:700;font-size:12px}.rr-panel #ergReview textarea{display:block;margin-top:9px;width:100%;min-height:90px;border-radius:10px;border:1px solid #c8d9de;padding:12px;color:#173c48}.rr-panel #ergPreview{border-left:4px solid #0c7e91;color:#174250}.rr-panel #ergResults .rr-history-row{overflow-wrap:anywhere}

/* Field GPS is user-initiated and has explicit accuracy and capture time. */
.rr-gps-capture{min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #bfd9dc;border-radius:12px;padding:15px;margin:16px 0;overflow-wrap:anywhere}
.rr-gps-capture legend{font-size:13px;font-weight:700;padding:0 8px;color:#264b59}
.rr-gps-capture .button{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:8px 8px 0 0}
.rr-gps-capture input[readonly]{background:#f4f8fa;color:#234c5b}
@media(max-width:500px){.rr-gps-capture{padding:12px}.rr-gps-capture .button{width:100%;margin:8px 0 0}}


/* Legacy notebook migration only: quick capture never opens this dialog for a new device. */
dialog.av-field-unlock-dialog{border:1px solid #d8e9e6;border-radius:22px;padding:0;max-width:min(92vw,440px);width:440px;color:#16383d;background:#fff;box-shadow:0 28px 95px rgba(6,48,52,.22);font-family:inherit}
dialog.av-field-unlock-dialog::backdrop{background:rgba(8,32,38,.5);backdrop-filter:blur(6px)}
.av-field-unlock-dialog form{padding:30px;display:grid;gap:16px}
.av-field-unlock-dialog .av-field-dialog-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#009e96}
.av-field-unlock-dialog h3{margin:0;font-size:24px;letter-spacing:-.035em;line-height:1.2}
.av-field-unlock-dialog p{margin:0;color:#527078;font-size:14px;line-height:1.6}
.av-field-unlock-dialog label{display:grid;gap:8px;font-weight:700;font-size:13px}
.av-field-unlock-dialog input{width:100%;min-height:48px;padding:10px 13px;border:1px solid #b9d7d4;border-radius:12px;background:#f8fcfb;color:#14383b}
.av-field-unlock-dialog [data-error]{color:#b02e31;font-weight:650}
.av-field-dialog-actions{display:flex;gap:10px;justify-content:flex-end}
.av-field-dialog-actions button{border:1px solid #cde4e1;border-radius:11px;padding:11px 15px;background:#fff;color:#23636a;font-weight:700;cursor:pointer}
.av-field-dialog-actions button:last-child{border-color:#008e87;background:#008e87;color:white}
.av-field-recovery-code{display:block;padding:15px;border-radius:12px;background:#eff9f6;word-break:break-all;font-size:13px;line-height:1.6}
.av-field-primary-actions{align-items:center}
.av-field-primary-actions .button.primary{border-radius:13px;min-height:46px;background:linear-gradient(120deg,#03b5a9,#087e86);box-shadow:0 6px 20px rgba(0,143,137,.15)}
.av-field-primary-actions .rr-chip{margin-left:auto}
#avFieldMore{border:1px solid #d7eae7;border-radius:12px;padding:12px 16px;margin-top:14px;background:#f9fcfb}
#avFieldMore summary{cursor:pointer;font-weight:750;color:#3a6266}
@media(max-width:620px){.av-field-unlock-dialog form{padding:22px}.av-field-primary-actions .rr-chip{margin-left:0}}

/* Single photographic-evidence entry point. Source choices are disclosed on demand. */
.rr-evidence .rr-photo-actions{margin-top:14px}
.rr-evidence .rr-photo-actions>summary{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none;min-height:42px;border-radius:9px;padding:10px 15px;font-size:12px;font-weight:700}
.rr-evidence .rr-photo-actions>summary::-webkit-details-marker{display:none}
.rr-evidence .rr-photo-actions>summary:focus-visible{outline:3px solid #27b1b7;outline-offset:3px}
.rr-evidence .rr-photo-actions>summary span{font-size:17px;line-height:1;transition:transform .15s}
.rr-evidence .rr-photo-actions[open]>summary span{transform:rotate(180deg)}
.rr-evidence .rr-photo-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:560px;margin-top:10px;padding:12px;background:#fff;border:1px solid #d8e7e9;border-radius:10px}
.rr-evidence .rr-photo-options button{text-align:left;white-space:normal;min-height:42px;line-height:1.35}
.rr-evidence #rrPhotoCount{font-size:11px;color:#55727c;margin:12px 0 0}
.rr-evidence #rrEvidencePicker[hidden]{display:none}
@media(max-width:580px){.rr-evidence .rr-photo-actions>summary{display:flex;width:100%;box-sizing:border-box}.rr-evidence .rr-photo-options{grid-template-columns:1fr}}

/* Segment continuation: a reviewed copy is not an observed/saved second inspection. */
.rr-continuation-notice[hidden]{display:none!important}
.rr-continuation-notice strong{display:block;color:#164d58;font-size:13px}
.rr-continuation-notice p{margin:8px 0 12px;line-height:1.55}
.rr-continuation-notice label{display:flex;align-items:flex-start;gap:9px;color:#214f5a;font-size:12px;font-weight:700}
.rr-form .rr-continuation-notice input[type=checkbox]{width:18px;min-width:18px;height:18px;margin:0;accent-color:#0b7888;padding:0}


/* Search and browse the full authenticated road register without rendering all roads. */
.rr-form-grid .rr-road-lookup{grid-column:1/-1;display:grid;gap:9px;min-width:0}
.rr-form-grid .rr-road-lookup>label{font-size:12px;font-weight:750;color:#456977}
.rr-form .rr-road-lookup input[type=search]{min-height:44px}
.rr-road-lookup-actions{display:flex;flex-wrap:wrap;gap:9px}
.rr-road-lookup-actions button{min-height:42px}
.rr-road-lookup-actions button:disabled{opacity:.48;cursor:not-allowed}
#rrAssetLookupStatus{margin:0;color:#52747d;font-size:12px;line-height:1.5}
@media(max-width:580px){.rr-road-lookup-actions button{flex:1 1 calc(50% - 5px)}}

/* Preview original photo evidence immediately beneath the upload button. */
.rr-evidence #avFieldPhotoPreview{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;margin:12px 0 0;max-width:100%;min-width:0}
.rr-evidence #avFieldPhotoPreview[hidden]{display:none!important}
.rr-evidence #avFieldPhotoPreview figure{flex:0 1 124px;min-width:0;overflow-wrap:anywhere}
.rr-evidence #avFieldPhotoPreview img{display:block;max-width:100%;height:auto;aspect-ratio:14/11;object-fit:cover}
@media(max-width:580px){.rr-evidence #avFieldPhotoPreview figure{flex-basis:calc(50% - 6px)}}


/* Actual recorded TMH 9 distress breakdown in Reports. */
.av-distress-report{margin:18px 0;padding:21px 23px;border:1px solid #d6e6e9;border-radius:15px;background:#fff;color:#173d48}
.av-distress-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}
.av-distress-heading h3{font-size:19px;margin:4px 0 8px;color:#153f4b}
.av-distress-heading p{font-size:12px;line-height:1.6;color:#55747d;margin:0;max-width:750px}
.av-distress-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:17px 0 9px}
.av-distress-controls label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#41636e}
.av-distress-controls select{padding:9px 12px;border:1px solid #c6dce0;border-radius:9px;min-height:42px;background:#fff;color:#173f4b}
.av-distress-controls button{min-height:42px}
.av-distress-controls button:disabled{opacity:.5;cursor:not-allowed}
#avDistressStatus{font-size:12px;line-height:1.6;color:#52747d;margin:12px 0}
#avDistressResults{font-size:12px}
.av-distress-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}
.av-distress-kpis>div{border:1px solid #dce9eb;border-radius:9px;padding:13px;background:#f7fafb}
.av-distress-kpis strong{display:block;font-size:21px;color:#154d5c}
.av-distress-kpis span{display:block;font-size:11px;color:#627e86;line-height:1.35;margin-top:5px}
.av-distress-coverage{margin:11px 0 5px;color:#174f5e;font-weight:750}
.av-distress-caution{margin:0 0 14px;color:#526e78;font-size:11px;line-height:1.65}
.av-distress-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:19px 0}
.av-distress-charts>section{border:1px solid #e0ebed;border-radius:11px;padding:15px;min-width:0}
.av-distress-charts h4{font-size:13px;color:#174c59;margin:0 0 12px}
.av-distress-chart{display:flex;flex-wrap:wrap;align-items:center;gap:21px}
.av-distress-donut{flex:0 0 154px;height:154px;width:154px;border-radius:50%;display:grid;place-items:center}
.av-distress-donut>span{width:98px;height:98px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#1d4e5a}
.av-distress-donut small{font-size:10px;font-weight:500;color:#64828a}
.av-distress-legend{list-style:none;padding:0;margin:0;display:grid;gap:7px;flex:1;min-width:160px}
.av-distress-legend li{display:flex;align-items:center;gap:9px;line-height:1.35;font-size:11px}
.av-distress-legend i{display:block;flex:0 0 10px;height:10px;border-radius:3px}
.av-distress-legend span{flex:1}
.av-distress-legend strong{font-variant-numeric:tabular-nums}
.av-distress-none{padding:20px;background:#f7fafb;color:#627d84;border-radius:8px}
.av-distress-table-scroll{overflow-x:auto;max-width:100%;border:1px solid #dae7e9;border-radius:9px}
.av-distress-table{width:100%;border-collapse:collapse;font-size:11px;min-width:700px}
.av-distress-table th,.av-distress-table td{padding:10px 9px;border-bottom:1px solid #e5eff0;text-align:left}
.av-distress-table thead th{background:#edf4f6;color:#244d58;font-weight:800}
.av-distress-table tbody th{font-weight:700;color:#28535d}
.av-distress-table tbody tr:nth-child(even){background:#f9fcfc}
@media(max-width:880px){.av-distress-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.av-distress-charts{grid-template-columns:1fr}}
@media(max-width:560px){.av-distress-report{padding:16px}.av-distress-kpis strong{font-size:18px}.av-distress-controls button{flex:1 1 100%}.av-distress-controls label{width:100%}.av-distress-controls select{width:100%}}


/* The TMH 9 worksheet is the primary, fully editable VCI/VGI assessment UI. */
.rr-panel .av-vci-print-controls{border:1px solid #dce8ea;border-radius:9px;padding:0;max-width:100%}
.av-vci-print-controls>summary{padding:11px 13px;cursor:pointer;font-weight:700;color:#2c6472;font-size:11px}
.av-vci-print-controls button{margin:0 7px 9px}
.av-vci-sheet-intro{border-top:1px solid #dce8ea;margin-top:20px;padding:19px 0 8px}
.av-vci-sheet-intro h3,.av-vci-attributes-intro h3,.av-vci-method-panel h3{font-size:17px;letter-spacing:-.2px;margin:0 0 8px;color:#153f4b}
.av-vci-sheet-intro>p,.av-vci-attributes-intro>p,.av-vci-method-panel>p{font-size:12px;line-height:1.65;color:#587981;max-width:920px}
.av-vci-sheet-summary{margin:15px 0;padding:16px 18px;background:#f1f8f9;border:1px solid #cce3e6;border-radius:12px;color:#204d59}
.av-vci-status-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between;font-size:12px}
.av-vci-status-heading>strong{font-size:14px}
.av-vci-status-heading span{color:#527a82}
.av-vci-sheet-summary progress{display:block;width:100%;height:11px;accent-color:#178397;margin:13px 0 9px}
.av-vci-sheet-summary p{margin:0;font-size:11px;line-height:1.55;color:#527681}
.av-vci-sheet-summary p strong{color:#9a4f23}
.av-vci-filter-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:11px 0 17px}
.av-vci-filter-controls label{display:grid;gap:6px;flex:1 1 160px;color:#3c6874;font-size:11px;font-weight:800}
.av-vci-filter-controls label:first-child{flex:2 1 290px}
.rr-form .av-vci-filter-controls input,.rr-form .av-vci-filter-controls select{min-height:43px;font-weight:500}
.av-vci-group{margin:0 0 18px;border:1px solid #d9e7e9;border-radius:12px;background:white;overflow:hidden}
.av-vci-group[hidden],.av-vci-table tr[hidden],.av-vci-choice-group[hidden]{display:none}
.av-vci-group>h4{margin:0;padding:14px 16px;background:#edf5f6;font-size:13px;color:#164e5c;display:flex;justify-content:space-between;gap:12px}
.av-vci-group>h4 span{font-weight:500;color:#66858b;font-size:11px}
.av-vci-table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-inline:contain}
.av-vci-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:650px;font-size:12px}
.av-vci-table thead th{background:#f6fafb;color:#52737c;text-transform:uppercase;font-size:9px;letter-spacing:.4px;border-bottom:1px solid #dce7e9;line-height:1.5}
.av-vci-table th,.av-vci-table td{padding:12px 10px;text-align:left;vertical-align:middle;border-bottom:1px solid #eaf0f1;min-width:0}
.av-vci-table thead th:first-child{width:36%}
.av-vci-table thead th:nth-child(2){width:16%}
.av-vci-table thead th:nth-child(3),.av-vci-table thead th:nth-child(4){width:16%}
.av-vci-table thead th:last-child{width:16%}
.av-vci-table tbody tr:last-child>*{border-bottom:0}
.av-vci-table .av-vci-code{font-family:ui-monospace,SFMono-Regular,monospace;color:#7a9399;font-size:10px;overflow-wrap:anywhere}
.av-vci-table .av-vci-field-title{display:block;font-weight:800;color:#1b4c57;line-height:1.4}
.av-vci-table .rr-field small{display:block;margin-top:5px;font-size:10px;font-weight:400;line-height:1.45;color:#78929a}
.rr-form .av-vci-table .rr-field select{font-size:12px;min-width:0;width:100%;height:auto;min-height:43px;padding:8px}
.av-vci-status{font-size:10px;line-height:1.5;color:#68868e}
.av-vci-invalid{background:#fff5f1}
.av-vci-invalid .av-vci-status{color:#a04426;font-weight:800}
.av-vci-invalid select[aria-invalid="true"]{border-color:#c47961;outline:1px solid #c47961}
.av-vci-choice-group{border:1px solid #deeaec;border-radius:12px;overflow:hidden;margin:10px 0 15px}
.av-vci-choice-group h4{font-size:12px;color:#235666;padding:13px 16px;background:#f4f9f9;margin:0}
.av-vci-attribute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:15px}
.av-vci-choice{min-width:0;display:grid;gap:7px;font-size:11px;font-weight:700;color:#416874}
.rr-form .av-vci-choice select{min-height:42px;height:auto;font-weight:500}
.av-vci-method-panel{margin:18px 0;padding:18px;background:#f6f9fa;border:1px solid #d8e8ea;border-radius:12px}
.av-vci-method-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.av-vci-method-controls label{display:grid;gap:7px;min-width:240px;flex:1;font-size:11px;color:#426874;font-weight:800}
.rr-form .av-vci-method-controls select{min-height:42px}
.av-vci-method-controls button{min-height:42px}
#rrVciMethodStatus{margin:12px 0 0;font-size:11px;color:#566f79;line-height:1.6}
.av-vci-preview{margin-top:14px;padding:14px;border:1px solid #b9d9dc;background:#e8f3f5;border-radius:8px;font-size:12px;line-height:1.65}
.av-vci-preview[hidden]{display:none}
.av-vci-preview>strong{color:#165463;font-size:15px}
.av-vci-preview p{margin-bottom:0;color:#52737b}
.rr-history .rr-history-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.rr-history-actions button{min-height:40px;font-size:11px;white-space:normal}
@media(max-width:700px){
 .av-vci-table{min-width:585px}
 .av-vci-attribute-grid{grid-template-columns:1fr}
 .av-vci-sheet-summary{padding:13px}
 .av-vci-status-heading>strong{font-size:12px}
 .av-vci-group h4{padding:13px}
 .av-vci-method-controls label{flex-basis:100%;min-width:0}
 .av-vci-method-controls button{width:100%}
 .rr-history-actions button{flex:1}
}


/* TMH 9 interactive distress intelligence: charts, filtering and source drilldown. */
.av-distress-controls label{min-width:135px;flex:1 1 145px}
.av-distress-controls select,.av-distress-controls input{width:100%;min-width:0;min-height:42px;border:1px solid #c6dce0;border-radius:9px;background:#fff;color:#173f4b;padding:9px 11px;font-size:12px}
.av-distress-road-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0}
.av-distress-road-filter label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#41636e;flex:1 1 190px;min-width:170px}
.av-distress-road-filter label:first-child{flex:2 1 230px}
.av-distress-road-filter input,.av-distress-road-filter select{min-height:42px;width:100%;border:1px solid #c6dce0;border-radius:9px;background:#fff;color:#173f4b;padding:8px 12px;font-size:12px}
.av-distress-road-filter button{min-height:42px}
#avDistressRoadStatus{font-size:11px;color:#52737b;line-height:1.55;margin:7px 0}
.av-distress-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.av-distress-toolbar p{margin:10px 0;font-size:12px;color:#285c69;font-weight:700}
.av-distress-charts>section>p{font-size:11px;color:#617f87;line-height:1.55;margin:0 0 12px}
.av-distress-bar{display:flex;align-items:center;gap:10px;width:100%;min-height:43px;padding:7px 8px;background:#fff;color:#20515d;border:1px solid transparent;border-radius:8px;text-align:left;cursor:pointer}
.av-distress-bar:hover,.av-distress-bar:focus-visible{border-color:#83b5bc;background:#f0f7f8}
.av-distress-bar:focus-visible{outline:2px solid #147789;outline-offset:2px}
.av-distress-bar.is-active{border-color:#15829b;background:#e8f5f7}
.av-distress-bar-label{width:42%;flex:0 1 42%;font-size:11px;line-height:1.4;min-width:0}
.av-distress-bar-track{height:11px;background:#e7eff1;border-radius:8px;overflow:hidden;flex:1;display:block}
.av-distress-bar-track>span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#2d9eae,#176276)}
.av-distress-bar strong{width:42px;text-align:right;font-size:11px;font-variant-numeric:tabular-nums}
.av-distress-table caption{text-align:left;caption-side:top;padding:10px 12px;font-size:11px;font-weight:700;color:#305e69}
.av-distress-table th small{display:block;margin-top:3px;font-size:9px;color:#79929a;font-weight:500}
.av-distress-table button{font-size:11px;min-height:34px;padding:7px 12px}
.av-distress-observations th,.av-distress-observations td{white-space:normal;max-width:300px;overflow-wrap:anywhere}
.av-distress-observations-heading{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:24px}
.av-distress-observations-heading h4{font-size:14px;color:#174c59;margin:0 0 12px}
.av-distress-observations-heading span{font-size:11px;color:#5c7981}
.av-distress-pagination{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin:13px 0;font-size:11px;color:#537983}
.av-distress-pagination button{min-height:37px}
.av-distress-pagination button:disabled{opacity:.4;cursor:not-allowed}
.av-distress-detail{border:1px solid #b9d8de;background:#f6fafb;border-radius:11px;margin:21px 0 0;padding:18px 20px;overflow-wrap:anywhere}
.av-distress-detail[hidden]{display:none}
.av-distress-detail-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.av-distress-detail-title h4{font-size:15px;color:#164b57;margin:0}
.av-distress-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}
.av-distress-detail-grid>div{padding:11px 12px;background:white;border:1px solid #dfecef;border-radius:8px;min-width:0}
.av-distress-detail-grid dt{color:#67828a;font-size:10px;margin-bottom:6px}
.av-distress-detail-grid dd{font-size:12px;color:#244f5c;font-weight:700;margin:0;overflow-wrap:anywhere}
.av-distress-detail>p{font-size:11px;line-height:1.6;color:#5e7b82}
@media(max-width:900px){.av-distress-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){
 .av-distress-road-filter label{flex-basis:100%;min-width:0}
 .av-distress-road-filter button{flex:1 1 auto}
 .av-distress-detail{padding:13px}
 .av-distress-detail-grid{grid-template-columns:1fr}
 .av-distress-pagination{justify-content:space-between}
 .av-distress-bar-label{width:44%;flex-basis:44%}
 .av-distress-bar{gap:7px}
 .av-distress-bar strong{width:30px}
}


/* Reports-first TMH 9 explorer: reveal the decision-making view before report cards,
   progressive disclosure for specialist filters, keyboard and small-screen access. */
#view-reports > .av-distress-report{margin:14px 0 23px;padding:22px 24px;border:1px solid #cfdee2;border-left:4px solid #078e9e;border-radius:16px;background:#fff;box-shadow:0 7px 24px rgba(16,47,62,.06)}
#view-reports > .av-distress-report .av-distress-heading h3{font-size:clamp(20px,2vw,25px);line-height:1.2;letter-spacing:-.02em}
.av-distress-start{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#f0f8f9;border:1px solid #d5e8eb;border-radius:12px;padding:13px 16px;margin-top:15px}
.av-distress-start strong{display:block;font-size:13px;color:#174b58}
.av-distress-start p{margin:5px 0 0;font-size:11px;line-height:1.5;color:#527580;max-width:620px}
.av-distress-start .button{flex:0 0 auto;min-height:43px}
.av-distress-quickbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:16px 0 12px}
.av-distress-quickbar>strong{font-size:12px;color:#294f5a;margin-right:6px}
.av-distress-quick{appearance:none;min-height:39px;padding:9px 14px;border:1px solid #c8dadd;background:white;border-radius:999px;font-size:12px;font-weight:700;line-height:1.1;color:#285462;cursor:pointer}
.av-distress-quick:hover{background:#f0f8f9;border-color:#83bdc5}
.av-distress-quick.is-active,.av-distress-quick[aria-pressed="true"]{background:#0d677b;color:white;border-color:#0d677b}
.av-distress-quick:focus-visible,.av-distress-advanced summary:focus-visible,.av-distress-breakdown summary:focus-visible{outline:3px solid #1ba3b8;outline-offset:2px}
.av-distress-primary-filters{margin:5px 0 12px;gap:12px}
.av-distress-primary-filters label{min-width:220px;flex:1 1 260px}
.av-distress-advanced{border:1px solid #e0eaed;border-radius:11px;background:#fbfdfd;margin:12px 0;padding:0}
.av-distress-advanced summary,.av-distress-breakdown summary{cursor:pointer;padding:13px 15px;font-size:12px;font-weight:800;color:#215668}
.av-distress-advanced summary>span{font-weight:500;color:#6b858d;margin-left:7px}
.av-distress-advanced[open]{padding-bottom:12px}
.av-distress-advanced>.av-distress-controls,.av-distress-advanced>.av-distress-road-filter,.av-distress-advanced>#avDistressRoadStatus{margin-left:14px;margin-right:14px}
.av-distress-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 6px}
.av-distress-actions>p{margin:0;font-size:12px;font-weight:700;line-height:1.5;color:#2a5b68}
.av-distress-actions>div{display:flex;flex-wrap:wrap;gap:8px}
.av-distress-actions .button{min-height:39px}
.av-distress-empty{background:#f5f9fa;border:1px dashed #cbdfe4;border-radius:10px;padding:20px;color:#526e78;line-height:1.6}
.av-distress-breakdown{border:1px solid #dbe7ea;border-radius:10px;margin:16px 0;background:#fff}
.av-distress-breakdown[open]{padding-bottom:10px}
.av-distress-breakdown>.av-distress-table-scroll{margin:0 10px}
.av-distress-field-verification{margin:12px 0;border:1px solid #e1ebee;border-radius:10px}
.av-distress-field-verification>summary{padding:13px 15px;cursor:pointer;font-size:12px;font-weight:800;color:#235665}
.av-distress-field-verification[open]{padding:0 12px 12px}
.av-distress-report .av-distress-charts{margin:15px 0 10px}
@media(max-width:650px){
 #view-reports>.av-distress-report{padding:16px 14px;margin:10px 0 19px}
 .av-distress-start{align-items:stretch;padding:12px}
 .av-distress-start .button{flex:1 1 100%;width:100%}
 .av-distress-quickbar>strong{flex:1 1 100%}
 .av-distress-quick{flex:1 1 auto;padding-inline:9px}
 .av-distress-primary-filters label{flex:1 1 100%;min-width:0}
 .av-distress-advanced summary>span{display:block;margin:4px 0 0}
 .av-distress-actions{align-items:stretch}
 .av-distress-actions>p{flex:1 1 100%}
 .av-distress-actions>div{width:100%}
 .av-distress-actions .button{flex:1 1 auto}
}


/* 17 Nov follow-up: place the real explorer alongside the official field report library. */
#view-reports .av2-reports-grid > button.av-distress-library-entry {
 grid-column:1 / -1;display:flex;align-items:center;gap:14px;
 padding:17px 18px;min-height:96px;border:1px solid #86cfd3;
 border-radius:16px;background:linear-gradient(125deg,#e9fbf9,#f4fbfd);
 color:#134d56;text-align:left;box-shadow:0 6px 18px rgba(8,101,115,.07);
 cursor:pointer;white-space:normal;
}
#view-reports .av2-reports-grid > button.av-distress-library-entry:hover,
#view-reports .av2-reports-grid > button.av-distress-library-entry:focus-visible{
 border-color:#0b9da9;box-shadow:0 10px 24px rgba(8,101,115,.13);
 transform:translateY(-1px);
}
#view-reports .av-distress-library-mark{display:grid;place-items:center;flex:0 0 48px;
 width:48px;height:48px;border-radius:14px;background:#0a7783;color:#fff;
 font-size:26px;line-height:1}
#view-reports .av-distress-library-copy{display:grid;gap:6px;flex:1 1 0;min-width:0}
#view-reports .av-distress-library-copy strong{font-size:16px;letter-spacing:-.02em;color:#103e49}
#view-reports .av-distress-library-copy small{font-size:12px;font-weight:500;line-height:1.4;color:#54717b}
#view-reports .av2-reports-grid > button.av-distress-library-entry > b{
 flex:0 0 auto;font-size:12px;white-space:nowrap;color:#077b89;font-weight:800}
#view-reports .av-distress-main-workspace{margin:20px 0 22px;padding:22px;
 border:1px solid #b8dade;border-top:5px solid #0aa4aa;border-radius:18px;
 background:#fff;box-shadow:0 10px 34px rgba(13,69,78,.07);
 scroll-margin-top:80px}
#view-reports .av-distress-main-workspace:focus{outline:none}
#view-reports .av-distress-main-workspace.av-distress-arrived{
 animation:avDistressArrive .8s ease-out}
@keyframes avDistressArrive{0%{box-shadow:0 0 0 5px rgba(15,175,185,.20)}100%{box-shadow:0 10px 34px rgba(13,69,78,.07)}}
#view-reports .av-distress-heading{align-items:center}
#view-reports .av-distress-heading h3{font-size:clamp(22px,2.4vw,29px)}
#view-reports .av-distress-heading p{line-height:1.55;max-width:690px}
#view-reports .av-distress-back{flex:0 0 auto;border:1px solid #cfe2e6;border-radius:999px;
 background:#f3f9fa;color:#146271;cursor:pointer;font-weight:750;font-size:12px;
 min-height:40px;padding:9px 15px}
#view-reports .av-distress-back:focus-visible{outline:3px solid #0e9eaa;outline-offset:2px}
#view-reports .av-distress-start{background:#edf8f8;border-radius:13px;padding:13px 16px;
 border-color:#cae8ea;margin:14px 0 10px}
#view-reports .av-distress-start strong{font-size:14px}
#view-reports .av-distress-start p{font-size:12px}
#view-reports .av-distress-start #avDistressLoad{
 border:0;border-radius:11px;background:linear-gradient(120deg,#068a9e,#00b7bb);
 color:#fff;font-weight:800;font-size:13px;box-shadow:0 5px 16px rgba(6,138,158,.20);
 padding:10px 17px;min-height:45px}
#view-reports .av-distress-quickbar{gap:9px}
#view-reports .av-distress-quickbar button.av-distress-quick{
 appearance:none;display:inline-flex;align-items:center;justify-content:center;
 flex:0 1 auto;min-height:40px;border-radius:100px;
 padding:10px 15px;border:1px solid #c4dbdf;background:#fff;
 box-shadow:none;color:#205966;font-size:12px;font-weight:800;
 white-space:normal;line-height:1.2;cursor:pointer;
}
#view-reports .av-distress-quickbar button.av-distress-quick.is-active,
#view-reports .av-distress-quickbar button.av-distress-quick[aria-pressed=true]{
 border-color:#077e8a;background:#086d79;color:#fff;box-shadow:0 2px 8px rgba(7,126,138,.13)}
#view-reports .av-distress-quickbar button.av-distress-quick:focus-visible{
 outline:3px solid #35b9c5;outline-offset:2px}
#view-reports .av-distress-primary-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#view-reports .av-distress-primary-filters label{min-width:0;display:grid;gap:6px}
#view-reports .av-distress-primary-filters select,
#view-reports .av-distress-advanced select,#view-reports .av-distress-advanced input{
 background:#fff;border:1px solid #cadee1;border-radius:10px;
 min-height:46px;font-size:13px;padding:10px;color:#1a4b58;max-width:100%}
#view-reports .av-distress-advanced{background:#f9fcfc;border-radius:12px}
#view-reports .av-distress-advanced>summary{list-style:none;display:flex;
 justify-content:space-between;align-items:center;gap:8px}
#view-reports .av-distress-advanced>summary::-webkit-details-marker{display:none}
#view-reports .av-distress-advanced>summary::after{content:"＋";font-size:18px;color:#178893}
#view-reports .av-distress-advanced[open]>summary::after{content:"−"}
#view-reports .av-distress-insight{display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:13px;background:#eaf7f8;border:1px solid #cfebed;
 border-radius:13px;padding:15px 17px;margin:13px 0}
#view-reports .av-distress-insight span,#view-reports .av-distress-eyebrow{
 display:block;font-size:10px;font-weight:850;letter-spacing:.12em;color:#0c8a97}
#view-reports .av-distress-insight p{font-size:12px;line-height:1.6;margin:7px 0 0;color:#215866}
#view-reports .av-distress-insight small{font-size:10px;color:#5d7780}
#view-reports .av-distress-action-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
#view-reports .av-distress-action-strip>span{border:1px solid #dcebed;background:#fff;
 border-radius:10px;padding:12px;font-size:12px;line-height:1.4;color:#42646d}
#view-reports .av-distress-action-strip strong{font-size:19px;margin-right:6px;color:#126274}
#view-reports .av-distress-followup{border:1px solid #dae8e9;border-radius:14px;
 padding:16px 18px;background:#fbfdfd;margin:14px 0 18px}
#view-reports .av-distress-section-title{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:13px}
#view-reports .av-distress-section-title h4{margin:4px 0 0;font-size:16px;color:#174550}
#view-reports .av-distress-section-title p{max-width:260px;margin:0;font-size:11px;color:#657f87;line-height:1.4}
#view-reports .av-distress-road-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#view-reports .av-distress-road-card{border:1px solid #d4e3e6;background:#fff;
 padding:15px;border-radius:11px;min-width:0}
#view-reports .av-distress-road-count{display:inline-block;padding:5px 8px;
 background:#e8f8f8;border-radius:20px;color:#0a7581;font-size:10px;font-weight:800}
#view-reports .av-distress-road-card h5{font-size:14px;color:#153f4c;margin:9px 0 6px}
#view-reports .av-distress-road-card p{font-size:11px;color:#527581;line-height:1.5;margin:0 0 8px}
#view-reports .av-distress-road-card small{display:block;color:#6c878e;font-size:10px;margin-bottom:12px}
#view-reports .av-distress-road-card .button{min-height:39px}
#view-reports .av-distress-quiet{border:1px dashed #c6dfe2;background:#f3fafa;border-radius:10px;
 padding:14px;color:#416c77;font-size:12px;line-height:1.5}
#view-reports .av-distress-quiet p{margin:6px 0 0}
#view-reports .av-distress-followup-checks{border-top:1px solid #d9e7ea;margin-top:13px}
#view-reports .av-distress-followup-checks summary{padding:12px 4px;cursor:pointer;font-size:12px;font-weight:800;color:#176a7a}
#view-reports .av-distress-followup-row{display:flex;justify-content:space-between;align-items:center;gap:9px;
 padding:12px 0;border-top:1px solid #e6edef}
#view-reports .av-distress-followup-row strong{font-size:12px;color:#315963}
#view-reports .av-distress-followup-row p{font-size:11px;line-height:1.5;margin:4px 0;color:#6b838c}
#view-reports .av-distress-mobile-records{display:none}
#view-reports .av-distress-record-result{font-weight:800;font-size:10px;white-space:nowrap;
 border-radius:999px;padding:5px 7px;background:#ebf7f7;color:#0d7b84}
#view-reports .av-distress-record-result.is-observed{background:#fff0de;color:#99591c}
#view-reports .av-distress-record-result.is-absent{background:#e8f7f1;color:#246c58}
#view-reports .av-distress-report [hidden]{display:none!important}
@media(max-width:730px){
 #view-reports .av2-reports-grid > button.av-distress-library-entry{padding:14px;gap:10px;min-height:93px}
 #view-reports .av-distress-library-mark{flex-basis:40px;width:40px;height:40px;border-radius:11px;font-size:22px}
 #view-reports .av-distress-library-copy strong{font-size:14px}
 #view-reports .av-distress-library-copy small{font-size:11px}
 #view-reports .av2-reports-grid > button.av-distress-library-entry>b{font-size:11px}
 #view-reports .av-distress-main-workspace{padding:16px 14px;margin:16px 0;scroll-margin-top:58px}
 #view-reports .av-distress-heading{flex-wrap:wrap}
 #view-reports .av-distress-back{margin:0}
 #view-reports .av-distress-quickbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #view-reports .av-distress-quickbar>strong{grid-column:1/-1;margin:0 0 3px}
 #view-reports .av-distress-quickbar button.av-distress-quick{width:100%;padding:9px 4px;min-height:44px;font-size:11px}
 #view-reports .av-distress-primary-filters{grid-template-columns:1fr}
 #view-reports .av-distress-advanced>summary{align-items:start}
 #view-reports .av-distress-action-strip{grid-template-columns:1fr}
 #view-reports .av-distress-road-cards{grid-template-columns:1fr}
 #view-reports .av-distress-followup{padding:14px 12px}
 #view-reports .av-distress-desktop-records{display:none}
 #view-reports .av-distress-mobile-records{display:grid;gap:9px;margin:10px 0}
 #view-reports .av-distress-mobile-record{border:1px solid #d8e6e8;border-radius:12px;background:#fff;padding:14px;display:grid;gap:9px}
 #view-reports .av-distress-mobile-record>div{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
 #view-reports .av-distress-mobile-record strong{font-size:13px;color:#174b58;max-width:100%}
 #view-reports .av-distress-mobile-record p{color:#53747e;font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
 #view-reports .av-distress-mobile-record small{color:#65838c;font-size:10px}
 #view-reports .av-distress-mobile-record button{min-height:43px;width:100%}
 #view-reports .av-distress-followup-row{align-items:stretch;flex-direction:column}
}

/* Source-labelled start/end field photo capture, queued using the existing offline evidence store. */
.av-road-photo-role-controls{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.av-road-photo-role-controls .button{min-height:44px;flex:1 1 165px}
.av-tmh9-road-context{margin:14px 0}
.av-tmh9-road-context input[readonly]{background:#eaf2f0;color:#47666b}
@media(max-width:520px){.av-road-photo-role-controls .button{width:100%;flex-basis:100%}}

/* Selected road context is recorded as read-only reference on all quick-capture
   sheets. Observation-specific chainage stays editable and initially blank. */
.av-road-sheet .av360-capture-road-ref{border-color:#bde3d8;background:#f3fbf9;}
.av-road-sheet .av360-capture-road-ref input[readonly]{
 background:#e9f5f1;border-color:#d4ebe5;color:#194e55;font-weight:700;
}
.av-road-sheet .av360-capture-road-ref .av-road-grid{min-width:0;}
.av-road-sheet .av360-capture-road-ref label{min-width:0;}
@media(max-width:520px){.av-road-sheet .av360-capture-road-ref{padding:12px;}}

/* Single repeatable defect camera, with evidence chips appearing beneath it. */
.av-road-defect-photo-controls{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.av-road-defect-photo-controls .button{min-height:48px;width:100%}
.av-road-defect-photo-controls .av-road-note{margin:0}

/* Continuous defect camera: retain live preview while adding multiple evidence photos. */
.av-road-live-camera[hidden]{display:none!important}
.av-road-live-camera{
 position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;
 background:#09191c;color:#f2fffd;overflow-y:auto;
 padding:max(16px,env(safe-area-inset-top)) 14px max(20px,env(safe-area-inset-bottom));
 box-sizing:border-box;
}
.av-road-live-camera-inner{width:min(680px,100%);display:flex;flex-direction:column;gap:12px;min-height:0}
.av-road-live-camera-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:16px}
.av-road-live-camera-head span{font-size:13px;color:#abdfd9}
.av-road-live-camera video{
 display:block;width:100%;height:min(56dvh,580px);min-height:190px;object-fit:cover;
 border-radius:14px;background:#000;border:1px solid #36565b;
}
.av-road-camera-message{color:#bce8e3;font-size:13px;min-height:18px;margin:0}
.av-road-camera-thumbnails{display:flex;gap:7px;overflow-x:auto;min-height:0;max-width:100%}
.av-road-camera-thumbnails img{
 display:block;width:58px;height:58px;object-fit:cover;border-radius:8px;border:1px solid #6d9b9e;flex:none;
}
.av-road-camera-actions{display:flex;gap:9px;flex-wrap:wrap}
.av-road-camera-actions .button{min-height:50px;flex:1 1 140px}
.av-road-camera-actions [data-av-camera-snap]{flex:2 1 210px}
@media(max-width:520px){
 .av-road-live-camera{align-items:stretch;padding:calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))}
 .av-road-live-camera-inner{width:100%;justify-content:center}
 .av-road-live-camera video{height:48dvh;min-height:180px}
 .av-road-camera-actions [data-av-camera-fallback]{flex-basis:100%}
}

