.demo-tools{background:white;border:1px solid #cddde0;padding:16px;margin:0 0 18px;color:#203e4a}.demo-tools h2{font-size:17px;margin:0}.demo-tools p{font-size:13px}.demo-top,.demo-query-form,.demo-scope,.demo-actions,.demo-examples{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.demo-top{justify-content:space-between;margin-bottom:12px}.demo-badge{font-size:11px;font-weight:700;letter-spacing:.09em;color:#227c82}.demo-query-form input{flex:1;min-width:210px;padding:10px;font-size:14px}.demo-examples{margin:9px 0 14px}.demo-examples button{border:0;background:#edf5f6;color:#1d6169;border-radius:3px;padding:6px 9px;font-size:12px;cursor:pointer}.demo-scope{border-top:1px solid #e0eaed;padding-top:12px}.demo-scope label,.demo-condition{display:flex;align-items:center;gap:6px;font-size:12px}.demo-scope input{width:82px}.demo-scope select{max-width:150px}.demo-conditions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.demo-condition{background:#edf5f6;padding:6px}.demo-condition input{width:70px}.demo-condition button{border:0;background:transparent;cursor:pointer}.demo-message{min-height:18px;margin:8px 0 0;font-size:13px}.demo-message.error{color:#b52b31}.demo-summary{font-size:13px;font-weight:600}.demo-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:10px}.demo-gis{border-top:1px solid #e0eaed;margin-top:12px;padding-top:10px}.demo-gis summary{cursor:pointer;font-weight:600;font-size:13px}.demo-gis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.demo-gis-row{border:1px solid #dbe6e8;padding:10px;display:flex;flex-wrap:wrap;gap:7px;align-items:center}.demo-gis-row small{display:block;color:#657e87;font-size:11px;width:100%}.demo-gis-row label{font-size:12px}.demo-gis-row button{font-size:11px}.demo-focus-evidence{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:16px;margin:16px 0;background:white;border:1px solid #cddde0}.demo-focus-evidence img{width:180px;height:210px;object-fit:contain;background:#18353e}.demo-focus-evidence h3{margin:0 0 8px}.demo-focus-evidence p{margin:6px 0;font-size:13px}.demo-focus-evidence button{margin:8px 6px 0 0}.demo-result-active{outline:2px solid #227c82;outline-offset:-2px}.demo-history table{width:100%;margin-top:16px}.demo-history th,.demo-history td{padding:10px;text-align:left;border-bottom:1px solid #e0eaed}.demo-history-controls{display:flex;gap:16px;flex-wrap:wrap}.demo-history-controls label{display:grid;gap:6px}.demo-history-empty{padding:18px;background:#edf5f6;margin-top:16px}.demo-present-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;background:#173d46;color:white;margin-bottom:10px}.demo-present-bar small{display:block;color:#bed3d8;font-size:11px;margin-top:3px}.demo-present-bar button{white-space:nowrap}.demo-presentation .sidebar,.demo-presentation .topbar,.demo-presentation .page-heading,.demo-presentation .survey-bar,.demo-presentation .mobile-views,.demo-presentation .demo-tools,.demo-presentation footer{display:none!important}.demo-presentation .application{margin-left:0!important;width:100%!important}.demo-presentation #main{padding:12px!important;max-width:none!important}.demo-presentation .panorama-map-grid{height:calc(100vh - 90px)!important;min-height:500px!important}.demo-presentation .panorama-panel,.demo-presentation #inspection-map{height:100%!important}.demo-presentation .inspection-layout,.demo-presentation .inspection-details{display:none!important}.demo-presentation .inspection-nav{display:none!important}.parent-mode .demo-tools{display:none!important}.demo-selected-halo{filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 3px #00bdd1)}.demo-empty{padding:24px;text-align:center;color:#5a747e}.demo-tools button:focus-visible,.demo-tools input:focus-visible,.demo-tools select:focus-visible{outline:2px solid #227c82;outline-offset:2px}@media(max-width:1000px){.demo-gis-grid{grid-template-columns:1fr 1fr}.demo-presentation .panorama-map-grid{height:auto!important}}@media(max-width:650px){.demo-gis-grid{grid-template-columns:1fr}.demo-focus-evidence{grid-template-columns:1fr}.demo-focus-evidence img{width:100%}.demo-scope{align-items:flex-start}.demo-query-form input{width:100%}.demo-presentation .panorama-map-grid{min-height:0!important}}@media print{.demo-tools,.demo-present-bar{display:none!important}}
.pa-map-tools .pm-map-evidence-link{position:static!important;width:auto!important;min-width:34px;max-width:95px;height:auto!important;white-space:normal;font-size:11px;padding:6px;margin:0;box-shadow:none}.panorama-map-grid.demo-with-data{grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(300px,.9fr)!important}.demo-pm-data-panel{display:flex;flex-direction:column;min-width:0;height:100%;background:white;border:1px solid #ccdce0;overflow:hidden}.demo-pm-data-panel>header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #dce8eb;font-size:13px}.demo-pm-data-panel iframe{width:100%;flex:1;min-height:360px;border:0}.demo-with-data .split-handle{display:none}@media(max-width:1100px){.panorama-map-grid.demo-with-data{grid-template-columns:1fr 1fr!important;height:auto!important}.demo-pm-data-panel{grid-column:1/-1;height:620px}}@media(max-width:700px){.panorama-map-grid.demo-with-data{grid-template-columns:1fr!important}}
#demo-toggle-query{display:none}.demo-inspection #demo-toggle-query{display:inline-flex}.demo-inspection .demo-tools:not(.demo-query-expanded) .demo-query-form,.demo-inspection .demo-tools:not(.demo-query-expanded) .demo-examples,.demo-inspection .demo-tools:not(.demo-query-expanded) #demo-filter-details,.demo-inspection .demo-tools:not(.demo-query-expanded) .demo-gis,.demo-inspection .demo-tools:not(.demo-query-expanded) .demo-message{display:none}.demo-inspection .demo-tools{padding:10px 14px}.demo-inspection .demo-bottom{margin-top:0}.demo-present-bar>div:last-child{display:flex;gap:6px;flex-wrap:wrap}.demo-with-data .pa-map-tools{max-width:95px}.demo-presentation .demo-present-bar{position:sticky;top:0;z-index:900}.demo-tools input,.demo-tools select{border:1px solid #c9dade;border-radius:3px;padding:6px;background:white;color:#244854}.demo-tools summary{font-size:12px}
#overview-view .profile-panel{display:none!important}#overview-view .workspace-grid{grid-template-columns:1fr!important}#overview-view .map-panel{grid-column:1/-1!important;height:430px!important}#overview-view .demo-focus-evidence{display:block;padding:12px 16px}#overview-view .demo-focus-evidence>img,#overview-view .demo-focus-evidence>div>p,#overview-view #demo-image,#overview-view #demo-section-history,#overview-view .demo-focus-evidence .demo-badge{display:none}#overview-view .demo-focus-evidence>div{display:flex;justify-content:space-between;align-items:center;gap:12px}#overview-view .demo-focus-evidence h3{margin:0}#overview-view #demo-open-360{margin:0}
body:not([data-demo-view=reports]) #demo-history{display:none}body[data-demo-view=reports] .demo-query-form,body[data-demo-view=reports] .demo-examples,body[data-demo-view=reports] #demo-filter-details,body[data-demo-view=reports] .demo-gis,body[data-demo-view=reports] .demo-message,body[data-demo-view=reports] #demo-analytics,body[data-demo-view=reports] #demo-maintenance,body[data-demo-view=reports] .demo-bottom .demo-actions{display:none}body[data-demo-view=register] .demo-tools{display:none}body[data-demo-view=overview] #demo-export{display:none}body[data-demo-view=overview] .heading-actions #export{display:none}
body[data-demo-view=overview] #demo-toggle-query{display:inline-flex}body[data-demo-view=overview] .demo-tools:not(.demo-query-expanded)>:not(.demo-top):not(.demo-bottom){display:none}body[data-demo-view=overview] .demo-tools:not(.demo-query-expanded) .demo-bottom{margin-top:5px}body[data-demo-view=overview] .demo-tools:not(.demo-query-expanded) .demo-bottom .demo-actions{display:none}body[data-demo-view=overview] .demo-tools:not(.demo-query-expanded) .demo-top{margin-bottom:0}body[data-demo-view=overview] .demo-tools{margin-top:14px;padding:12px 16px}body[data-demo-view=overview] #demo-maintenance{display:none}body[data-demo-view=overview] .demo-focus-evidence{margin:10px 0}body[data-demo-view=overview] #kpis{margin-bottom:0}
.panorama-map-grid.demo-with-data>.viewer-width-handle{display:none!important}.panorama-map-grid.demo-with-data{grid-template-rows:minmax(0,1fr)!important;column-gap:10px!important}.demo-with-data>.demo-pm-data-panel{min-height:0;height:100%;grid-column:3;grid-row:1}.demo-with-data>.compact-map-panel{grid-column:2;grid-row:1;min-height:0!important;height:100%!important}.demo-with-data>#road-panorama{grid-column:1;grid-row:1;min-height:0!important;height:100%!important}.demo-present-bar .button{color:#244854!important;background:#fff!important}.demo-pm-data-panel iframe{min-height:0}.demo-with-data .pano-measure-tools{max-width:calc(100% - 70px)}@media(max-width:1100px){.panorama-map-grid.demo-with-data{grid-template-rows:minmax(400px,65vh) 600px!important}.demo-with-data>.demo-pm-data-panel{grid-column:1/-1;grid-row:2}}@media(max-width:700px){.panorama-map-grid.demo-with-data{grid-template-rows:420px 420px 600px!important}.demo-with-data>.compact-map-panel{grid-column:1;grid-row:2}.demo-with-data>.demo-pm-data-panel{grid-column:1;grid-row:3}}
#demo-change-scope{display:none}body[data-demo-view=reports] #demo-change-scope{display:inline-flex}.demo-pm-data-panel header .icon-button{color:#244854}
body[data-demo-view=inspection] #demo-toggle-query,body[data-demo-view=inspection] .demo-query-form,body[data-demo-view=inspection] .demo-examples,body[data-demo-view=inspection] #demo-filter-details,body[data-demo-view=inspection] .demo-gis,body[data-demo-view=inspection] .demo-message{display:none!important}body[data-demo-view=inspection] #demo-change-scope{display:inline-flex}
body[data-demo-view=reports] .demo-tools{display:none!important}
#demo-back-summary{display:none}body[data-demo-view=overview] #demo-back-summary{display:inline-flex}
#demo-filter-details>summary #demo-add-condition{margin-left:12px;padding:6px 10px;vertical-align:middle}
#inspection-view{overflow-anchor:none}
body:not([data-demo-view=inspection]) .demo-single-section,body:not([data-demo-view=inspection]) #demo-jump,body:not([data-demo-view=inspection]) #demo-jump-go{display:none!important}
body[data-demo-view=inspection] .heading-actions #export{display:none}body[data-demo-view=overview] .demo-tools:not(.demo-query-expanded) #demo-back-summary,body[data-demo-view=overview] .demo-tools.demo-query-expanded #demo-toggle-query{display:none!important}
/* Prominent condition key at the top of the Overview map. */
#overview-view .map-panel>.map-legend{top:10px;bottom:auto;left:auto;right:60px;max-width:calc(100% - 310px);display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:12px 16px;background:#fff;border:1px solid #b9cdd2;border-radius:6px;box-shadow:0 3px 12px #183d4630;color:#183b48;font-size:13px;font-weight:600;line-height:1.4;z-index:4}
#overview-view .map-legend .map-legend-title{font-size:14px;font-weight:800;letter-spacing:.04em}
#overview-view .map-legend>span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
#overview-view .map-legend .legend-dot{width:14px;height:14px;margin:0;border-radius:3px;box-shadow:inset 0 0 0 1px #00000018;flex-shrink:0}
@media(max-width:900px){#overview-view .map-panel>.map-legend{top:92px;left:12px;right:12px;max-width:none;padding:9px 12px;gap:8px 12px;font-size:12px}#overview-view #map .leaflet-top{top:176px}#overview-view .map-panel .map-filter-panel{top:176px}}
/* Compare the survey map with the sections needing attention. */
#overview-view .workspace-grid{grid-template-columns:minmax(0,65fr) minmax(0,35fr)!important;gap:16px;align-items:start}
#overview-view .workspace-grid>.map-panel{grid-column:1!important;grid-row:1;height:430px!important;min-width:0}
#overview-view .workspace-grid>.review-panel{grid-column:2;grid-row:1;height:430px;min-width:0;margin:0;display:flex;flex-direction:column;overflow:hidden}
#overview-view .review-panel .panel-heading{padding:16px;flex-shrink:0}
#overview-view .review-panel h2{font-size:16px}
#overview-view #review-list{flex:1;min-height:0;overflow:auto}
#overview-view #review-list .table-scroll{max-height:none!important;overflow:visible!important}
#overview-view #review-list table,#overview-view #review-list tbody{display:block;width:100%;min-width:0}
#overview-view #review-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#overview-view #review-list tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;padding:12px 16px;border-top:1px solid #e1eaec}
#overview-view #review-list td{display:block;padding:0;border:0;white-space:normal;font-size:13px;font-weight:600}
#overview-view #review-list td:first-child{grid-column:1/3;grid-row:1}
#overview-view #review-list td:last-child{grid-column:3;grid-row:1;text-align:right}
#overview-view #review-list td:nth-child(2){grid-column:1;grid-row:2}
#overview-view #review-list td:nth-child(3){grid-column:2;grid-row:2}
#overview-view #review-list td:nth-child(4){grid-column:3;grid-row:2}
#overview-view #review-list td:nth-child(2)::before{content:'PCI'}
#overview-view #review-list td:nth-child(3)::before{content:'Max. rutting'}
#overview-view #review-list td:nth-child(4)::before{content:'Potholes'}
#overview-view #review-list td::before{display:block;font-size:10px;font-weight:400;color:#647e89;margin-bottom:3px}
#overview-view #review-list .text-button{font-size:12px;padding:0;text-align:left}
#overview-view .review-panel>.panel-footnote{padding:10px 16px;flex-shrink:0;font-size:10px;line-height:1.5;border-top:1px solid #e1eaec}
#overview-view .map-panel>.map-legend{top:92px;left:12px;right:60px;max-width:none;padding:9px 12px;gap:8px 12px}
#overview-view #map .leaflet-top{top:176px}
#overview-view .map-panel .map-filter-panel{top:176px;max-height:calc(100% - 188px);overflow:auto}
@media(max-width:1000px){#overview-view .workspace-grid{grid-template-columns:minmax(0,1fr)!important}#overview-view .workspace-grid>.review-panel{grid-column:1;grid-row:2}#overview-view .workspace-grid>.map-panel{grid-column:1!important}}
/* Keep map controls compact and use the space freed by the section bar. */
#overview-view #demo-focus-evidence{display:none!important}
#overview-view .workspace-grid>.map-panel,#overview-view .workspace-grid>.review-panel{height:510px!important}
#overview-view .map-panel>.map-legend{top:10px;left:248px;right:60px;padding:8px 10px;gap:6px 10px;font-size:11px}
#overview-view .map-legend .map-legend-title{font-size:12px}
#overview-view .map-legend .legend-dot{width:12px;height:12px}
#overview-view #map .leaflet-top{top:100px}
#overview-view .map-panel .map-filter-panel{top:88px;max-height:calc(100% - 112px)}
#overview-view #review-list[data-metric=crackLength] td:nth-child(3)::before{content:'Crack length'}
#overview-view #review-list[data-metric=pci] td:nth-child(2),#overview-view #review-list[data-metric=rutMax] td:nth-child(3),#overview-view #review-list[data-metric=crackLength] td:nth-child(3),#overview-view #review-list[data-metric=potholes] td:nth-child(4){color:#ba2525;font-weight:800}
@media(max-width:650px){#overview-view .map-panel>.map-legend{top:92px;left:12px;right:12px}#overview-view #map .leaflet-top{top:170px}#overview-view .map-panel .map-filter-panel{top:170px;max-height:calc(100% - 194px)}}
/* Selected tracklog location stays labelled as sections advance. */
.selected-tracklog-label{background:#fff;border:2px solid #087fbd;border-radius:5px;padding:7px 10px;color:#153f52;font-size:13px;font-weight:800;box-shadow:0 2px 8px #17394330;white-space:nowrap;pointer-events:none}
.leaflet-tooltip-left.selected-tracklog-label::before{border-left-color:#087fbd}
#road-panorama .pano-frame-label{bottom:10px;left:12px}
.demo-pm-data-panel header{flex-wrap:wrap;gap:8px}.demo-pm-data-panel header strong{flex:1;min-width:120px}.demo-pm-data-panel .demo-detach-lcms{font-size:11px;padding:7px 9px;white-space:normal}
/* Keep inspection layers anchored below and clear of the map toolbar. */
#inspection-view .compact-map-panel #map-layer-rail{top:280px!important;bottom:auto;right:60px;max-height:min(290px,calc(100% - 304px));overflow:auto}
/* Compact condition key on the inspection map; independent of Overview filters. */
.inspection-condition-control{position:absolute;top:86px;left:52px;right:60px;z-index:800;width:fit-content;max-width:calc(100% - 112px);padding:8px 10px;background:#fffffff2;border:1px solid #c7dade;border-radius:5px;box-shadow:0 2px 7px #153c4920;color:#214451;font-size:11px}
.inspection-condition-control label{display:flex;align-items:center;gap:8px;font-weight:600}.inspection-condition-control select{padding:4px 6px;max-width:150px;font-size:11px}
.inspection-condition-legend{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:7px;font-size:10px}.inspection-condition-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.inspection-condition-legend i{width:10px;height:10px;border-radius:2px;flex-shrink:0}
/* Keep the basemap and condition selector together in a compact top row. */
.inspection-top-controls{position:absolute;top:10px;left:52px;right:60px;z-index:950;display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;pointer-events:none}
.inspection-top-controls>*{pointer-events:auto}
.inspection-top-controls .inspection-basemap{position:static;flex-shrink:0;height:28px}
.inspection-top-controls .inspection-basemap>button{padding:4px 7px;font-size:10px}
.inspection-top-controls .inspection-drive{padding:1px 2px;gap:1px}
.inspection-top-controls .inspection-drive button{width:22px;padding:3px;font-size:11px}
.inspection-top-controls .inspection-drive select{width:39px;padding:2px 0;font-size:10px}
.inspection-top-controls .inspection-condition-control{position:static;max-width:100%;padding:4px 7px;font-size:10px;flex-shrink:1}
.inspection-top-controls .inspection-condition-control label{gap:5px}
.inspection-top-controls .inspection-condition-control select{padding:2px 4px;font-size:10px;max-width:132px}
.inspection-top-controls .inspection-condition-legend{gap:4px 7px;margin-top:4px;font-size:9px}
.inspection-top-controls .inspection-condition-legend i{width:9px;height:9px}
#inspection-view .compact-map-panel .map-survey-badge{top:auto;bottom:23px;left:10px}
.section-condition-facts strong{font-size:13px}.section-condition-facts span{font-size:10px}.section-condition-source{font-size:10px;color:#527781;margin:4px 0 10px}
.inspection-condition-control .section-colours-toggle{font-size:10px;margin-top:4px;display:flex;align-items:center;gap:4px}.section-colours-toggle input{margin:0;accent-color:#1b7d87}
