/* GIS Workspace reference layout, phase 1. Scoped to workspace only. */
body.gis-reference-ui{--gis-ink:#d8eafa;--gis-border:#24455e;--gis-card:#09243a;background:#031523;color:var(--gis-ink)}
.gis-reference-ui .app-shell{background:linear-gradient(160deg,#031523,#061e30)}
.gis-reference-ui .app-header{background:linear-gradient(110deg,#031523,#06385d 70%,#031523);border-bottom:1px solid #174568;min-height:60px}
.gis-reference-ui .ribbon{background:#061d30;border:1px solid #20415b;border-radius:9px;margin:5px 12px 7px}
.gis-reference-ui .ribbon-tabs{display:none!important}
.gis-reference-ui .workspace{display:grid;grid-template-columns:minmax(215px,19%) minmax(350px,1fr) minmax(205px,17%);gap:10px;padding:0 12px;align-items:stretch}
.gis-reference-ui .workspace .dock-panel{background:#082239;border:1px solid #23445c;border-radius:7px}
.gis-reference-ui .workspace .map-shell{min-height:470px;border:1px solid #305672;border-radius:7px}
.gis-reference-ui .workspace .dock-header{background:#0b2c46}
.gis-reference-ui .workspace .dock-header h2{font-size:14px}
.gis-reference-ui .gis-reference-nav{display:flex;gap:3px;align-items:stretch;overflow-x:auto;margin:0 12px;background:#061e31;border:1px solid #20415b;border-radius:8px;scrollbar-width:thin}
.gis-reference-ui .gis-reference-nav button{flex:0 0 auto;min-width:85px;padding:10px 12px;background:transparent;border:0;border-right:1px solid #173850;color:#dceaf6;font:600 12px/1.4 inherit;cursor:pointer}
.gis-reference-ui .gis-reference-nav button small{display:block;color:#9ebbd0;font-size:10px;font-weight:400}
.gis-reference-ui .gis-reference-nav button.active,.gis-reference-ui .gis-reference-nav button:hover{background:#0c5484;color:#fff}
.gis-reference-ui .gis-reference-nav button:focus-visible,.gis-reference-ui .gis-view-tabs button:focus-visible{outline:2px solid #48b9e9;outline-offset:-2px}
.gis-reference-ui .gis-view-tabs{position:absolute;top:8px;left:12px;z-index:890;display:flex;gap:3px;background:#08243ce8;padding:4px;border:1px solid #31516a;border-radius:6px}
.gis-reference-ui .gis-view-tabs button{background:#0a2b43;color:#c6e4f7;border:1px solid #284e68;border-radius:4px;padding:6px 11px;cursor:pointer}
.gis-reference-ui .gis-view-tabs button.active{background:#1682bc;color:#fff}
.gis-reference-ui .gis-bottom-workbench{display:grid;grid-template-columns:minmax(215px,19%) minmax(350px,1fr) minmax(205px,17%);gap:10px;margin:10px 12px 0}
.gis-reference-ui .gis-bottom-workbench>section{min-height:150px;max-height:240px;overflow:auto;border:1px solid #24465f;background:#082239;border-radius:7px}
.gis-reference-ui .gis-bottom-workbench h3{font-size:12px;margin:0;padding:9px 12px;background:#0c2e48;color:#e7f4ff;border-bottom:1px solid #27465b}
.gis-reference-ui .gis-bottom-workbench .gis-body{padding:12px;color:#a9c5d9;font-size:12px}
.gis-reference-ui .gis-bottom-workbench button{padding:7px 10px;border-radius:5px;background:#0d456d;color:#eef8ff;border:1px solid #326185;cursor:pointer}
.gis-reference-ui .gis-bottom-workbench button:disabled{opacity:.45;cursor:not-allowed}
.gis-reference-ui .gis-bottom-workbench .gis-actions{display:flex;gap:6px;flex-wrap:wrap}
.gis-reference-ui .gis-bottom-workbench .gis-actions button[aria-selected="true"]{background:#176b9c}
.gis-reference-ui .gis-bottom-workbench .gis-info{padding:10px 12px;font-size:12px;color:#9ebbd0}
.gis-reference-ui .gis-reference-note{font-size:11px;color:#9ab9cb}
@media(max-width:1050px){.gis-reference-ui .workspace{grid-template-columns:minmax(170px,23%) minmax(280px,1fr)}.gis-reference-ui #rightPanel{display:none}.gis-reference-ui .gis-bottom-workbench{grid-template-columns:1fr 2fr}.gis-reference-ui .gis-bottom-workbench>section:last-child{grid-column:1/-1}}
@media(max-width:680px){.gis-reference-ui .workspace,.gis-reference-ui .gis-bottom-workbench{display:block}.gis-reference-ui .workspace>* , .gis-reference-ui .gis-bottom-workbench>section{margin-bottom:8px}.gis-reference-ui .workspace .map-shell{min-height:400px}.gis-reference-ui .gis-reference-nav button{min-width:74px;padding:8px}}

/* Screenshot fidelity pass: compact blue CAD/GIS ribbon and docked map workbench */
.gis-reference-ui .app-shell{max-width:none;width:100%;min-height:100vh}
.gis-reference-ui .app-header{margin:0;padding:7px 15px;min-height:62px}
.gis-reference-ui .brand-copy strong{font-size:21px;color:#f1f8ff}
.gis-reference-ui .brand-copy span{font-size:10px;color:#a6c9e1}
.gis-reference-ui .gis-reference-nav{margin:0 12px 4px;min-height:53px;overflow-x:auto;background:linear-gradient(#061d30,#04192a);box-shadow:0 2px 8px #0004}
.gis-reference-ui .gis-reference-nav button{min-width:94px;font-family:inherit;font-size:12px;border-right:1px solid #0f344d;padding:7px 13px}
.gis-reference-ui .gis-reference-nav button span{font-size:19px;vertical-align:middle;margin-right:5px;color:#cdeaff}
.gis-reference-ui .gis-reference-nav button small{margin-top:1px}
.gis-reference-ui .ribbon{margin:0 12px 8px;border-radius:7px;background:#08233a;min-height:86px;overflow:hidden}
.gis-reference-ui .ribbon-content{display:none!important}
.gis-reference-ui .ribbon-collapse{display:none!important}
.gis-reference-ui .gis-reference-tools{display:flex;align-items:stretch;gap:1px;overflow-x:auto;scrollbar-width:thin;min-height:85px}
.gis-reference-ui .gis-reference-tool{flex:0 0 83px;min-width:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-right:1px solid #173b55;background:transparent;color:#e0f0ff;padding:8px 4px;cursor:pointer}
.gis-reference-ui .gis-reference-tool:hover:not(:disabled),.gis-reference-ui .gis-reference-tool:focus-visible{background:#105a89;outline:none}
.gis-reference-ui .gis-reference-tool:disabled{opacity:.48;cursor:not-allowed}
.gis-reference-ui .gis-tool-icon{font-size:26px;line-height:30px;color:#8cdaff}
.gis-reference-ui .gis-tool-label{font-size:11px;font-weight:600;white-space:nowrap}
.gis-reference-ui .gis-reference-tool small{font-size:9px;color:#9dbfd6;white-space:nowrap}
.gis-reference-ui .workspace{grid-template-columns:minmax(220px,19%) minmax(390px,1fr) minmax(210px,15%);min-height:490px;gap:10px}
.gis-reference-ui .workspace .map-shell{position:relative;min-height:490px;overflow:hidden}
.gis-reference-ui .workspace .map-shell #map{height:100%;min-height:440px}
.gis-reference-ui .workspace .map-overlay{display:none}
.gis-reference-ui .gis-document-tabs{position:absolute;top:0;left:0;right:0;height:32px;display:flex;align-items:stretch;z-index:890;background:#08243ae8;border-bottom:1px solid #31546d}
.gis-reference-ui .gis-document-tab{display:flex;align-items:center;padding:0 12px;border-right:1px solid #31516a;font-size:11px;color:#bed9e9}
.gis-reference-ui .gis-document-tab.active{background:#0d3a5b;color:#fff}
.gis-reference-ui .gis-document-hint{color:#739eb8}
.gis-reference-ui .gis-view-tabs{top:39px;left:10px}
.gis-reference-ui .gis-map-status{position:absolute;bottom:0;left:0;right:0;z-index:890;min-height:28px;display:flex;gap:18px;align-items:center;padding:5px 12px;background:#06243bdc;border-top:1px solid #31526b;color:#c0d9e9;font-size:10px;pointer-events:none}
.gis-reference-ui .gis-map-status span:first-child{font-weight:700;color:#68cfff}
.gis-reference-ui .gis-layer-search{display:flex;align-items:center;gap:7px;margin:8px 10px;padding:5px 8px;border:1px solid #294d68;border-radius:5px;background:#041b2e}
.gis-reference-ui .gis-layer-search input{background:transparent;color:#d9ecf9;border:0;outline:0;min-width:0;width:100%;font-size:11px}
.gis-reference-ui .gis-layer-search input::placeholder{color:#86a6ba}
.gis-reference-ui #leftPanel,.gis-reference-ui #rightPanel{min-height:490px}
.gis-reference-ui .gis-bottom-workbench{margin-top:9px}
.gis-reference-ui .gis-bottom-workbench>section{min-height:184px;max-height:260px}
.gis-reference-ui .gis-bottom-workbench .gis-actions{padding:6px;gap:3px;flex-wrap:nowrap;overflow-x:auto;background:#0a2d49}
.gis-reference-ui .gis-bottom-workbench .gis-actions button{flex:0 0 auto;font-size:10px;padding:7px 9px}
.gis-reference-ui .gis-bottom-workbench .gis-info{min-height:94px;line-height:1.7}
.gis-reference-ui .gis-bottom-workbench select{width:100%;padding:7px;background:#061a2c;border:1px solid #2c5775;color:#deefff;border-radius:5px}
.gis-reference-ui .statusbar{margin-top:9px;background:#031525;border-top:1px solid #23445e}
@media(max-width:1100px){.gis-reference-ui .workspace{grid-template-columns:220px minmax(320px,1fr)}.gis-reference-ui #rightPanel{display:none}.gis-reference-ui .gis-bottom-workbench{grid-template-columns:220px minmax(320px,1fr)}.gis-reference-ui .gis-bottom-workbench>section:last-child{grid-column:1/-1}}
@media(max-width:700px){.gis-reference-ui .workspace,.gis-reference-ui .gis-bottom-workbench{display:flex;flex-direction:column}.gis-reference-ui #rightPanel{display:block}.gis-reference-ui .gis-reference-tool{flex-basis:75px}.gis-reference-ui .gis-document-hint{display:none}.gis-reference-ui .gis-map-status{gap:8px}.gis-reference-ui .gis-reference-nav button{min-width:85px}}

/* Retire additive 2026 quickbar when full reference ribbon is active. */
.gis-reference-ui #gisWorkspaceQuickbar{display:none!important}
.gis-reference-ui .gis-database-entry{border-color:#244d6c;background:#0a2c46}
.gis-reference-ui .gis-reference-tool:focus-visible{outline:2px solid #50c7ff;outline-offset:-2px}
.gis-reference-ui .gis-view-tabs button:disabled{opacity:.42;cursor:not-allowed}
.gis-reference-ui .gis-layer-search~.panel-tabs{border-top:1px solid #254861}

/* Critical layout fix: legacy ribbon content remains in DOM for event handlers,
   but cannot reserve vertical space in the reference shell. */
html.gis-reference-ui,body.gis-reference-ui{margin:0;min-height:100%;background:#041727}
.gis-reference-ui .app-shell{display:flex!important;flex-direction:column!important;min-height:100vh!important;height:auto!important;overflow:visible!important}
.gis-reference-ui .ribbon{display:block!important;flex:none!important;height:auto!important;min-height:0!important;max-height:110px!important;overflow:hidden!important;padding:0!important}
.gis-reference-ui .ribbon>.ribbon-content,.gis-reference-ui .ribbon>.ribbon-tabs,.gis-reference-ui .ribbon>.ribbon-collapse{display:none!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;position:absolute!important;visibility:hidden!important;overflow:hidden!important}
.gis-reference-ui .ribbon>.gis-reference-tools{display:flex!important;min-height:78px!important;max-height:84px!important;height:84px!important}
.gis-reference-ui .workspace{flex:1 0 auto!important;margin-top:0!important;padding-top:0!important;min-height:0!important;height:min(55vh,570px)!important;max-height:570px!important;align-self:stretch!important}
.gis-reference-ui .workspace>.map-shell{height:100%!important;min-height:0!important;max-height:100%!important}
.gis-reference-ui .workspace>.dock-panel{height:100%!important;min-height:0!important;max-height:100%!important;overflow:auto!important}
.gis-reference-ui .workspace .map-shell #map{height:100%!important;min-height:0!important}
.gis-reference-ui .gis-bottom-workbench{flex:none!important;min-height:176px!important;max-height:245px!important}
.gis-reference-ui .gis-bottom-workbench>section{height:190px!important;min-height:0!important}
.gis-reference-ui .statusbar{flex:none!important}
@media(max-width:1100px){.gis-reference-ui .workspace{height:56vh!important}}
@media(max-width:700px){.gis-reference-ui .workspace{height:auto!important;max-height:none!important}.gis-reference-ui .workspace>.map-shell{height:400px!important;min-height:400px!important}.gis-reference-ui .workspace>.dock-panel{height:auto!important;min-height:170px!important;max-height:280px!important}}

/* Professional GIS header: brand | project identity | quick actions */
.gis-reference-ui .app-header{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(170px,auto) minmax(360px,1fr)!important;align-items:center!important;gap:18px!important;padding:9px 18px!important;min-height:68px!important;height:auto!important;background:linear-gradient(105deg,#041829 0%,#063354 62%,#051b2d 100%)!important;border-bottom:1px solid #2c5771!important}
.gis-reference-ui .app-header>.brand{display:flex;align-items:center;gap:10px;min-width:0;max-width:330px;text-decoration:none}
.gis-reference-ui .app-header .app-globe{flex:none;width:40px;height:40px}
.gis-reference-ui .app-header .brand-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
.gis-reference-ui .app-header .brand-copy strong{font-size:19px;line-height:1.1;letter-spacing:.15px;white-space:nowrap}
.gis-reference-ui .app-header .brand-copy span{font-size:9px;letter-spacing:.8px;color:#94c2df;white-space:nowrap}
.gis-reference-ui .document-title{display:flex!important;align-items:flex-start!important;flex-direction:column!important;gap:4px!important;min-width:170px;padding:6px 14px!important;border:1px solid #27516c;border-radius:8px;background:#071f34b8;justify-self:center}
.gis-reference-ui .gis-project-label{font-size:9px;font-weight:700;letter-spacing:1px;color:#86b6d3}
.gis-reference-ui .gis-project-line{display:flex;align-items:center;gap:7px;max-width:230px;font-size:12px;font-weight:650;color:#e8f6ff}
.gis-reference-ui #projectTitle{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.gis-reference-ui .document-title #saveState{font-size:10px;color:#6fd6a9;line-height:1.2}
.gis-reference-ui .document-title .status-dot{flex:none;width:6px;height:6px}
.gis-reference-ui .header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important;min-width:0}
.gis-reference-ui .gis-header-tools-label{font-size:9px;letter-spacing:1px;color:#7aa8c4;white-space:nowrap;margin-right:3px}
.gis-reference-ui .header-actions>.header-button,.gis-reference-ui .header-actions>.lang-switch{min-height:35px!important;height:35px!important;border:1px solid #315771!important;border-radius:6px!important;background:#08263d!important;color:#e4f3ff!important;font-size:11px!important;font-weight:600!important;white-space:nowrap;box-shadow:none!important}
.gis-reference-ui .header-actions>.header-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 12px!important}
.gis-reference-ui .header-actions>.header-button svg{width:15px;height:15px}
.gis-reference-ui .header-actions>.gis-header-export{background:#18a87d!important;border-color:#21b78b!important;color:#031e23!important}
.gis-reference-ui .header-actions>.gis-header-export:hover{background:#3bd7a6!important}
.gis-reference-ui .header-actions>.gis-header-import:hover{background:#10486b!important}
.gis-reference-ui .header-actions [hidden]{display:none!important}
.gis-reference-ui .header-actions>.lang-switch{display:flex;align-items:center;padding:0 5px!important}
.gis-reference-ui .header-actions .lang-switch-trigger{font-size:11px!important}
.gis-reference-ui .gis-reference-nav{min-height:51px}
@media(max-width:1180px){.gis-reference-ui .app-header{grid-template-columns:minmax(200px,1fr) minmax(145px,auto) minmax(260px,1fr)!important;gap:8px!important;padding:8px 12px!important}.gis-reference-ui .gis-header-tools-label{display:none}.gis-reference-ui .header-actions{gap:5px!important}.gis-reference-ui .header-actions>.header-button{padding:0 8px!important}.gis-reference-ui .app-header .brand-copy span{font-size:8px}}
@media(max-width:860px){.gis-reference-ui .app-header{grid-template-columns:minmax(180px,1fr) auto!important;row-gap:7px!important}.gis-reference-ui .document-title{grid-column:1/-1;grid-row:2;justify-self:stretch;flex-direction:row!important;align-items:center!important;justify-content:space-between!important}.gis-reference-ui .header-actions{grid-column:2;grid-row:1}.gis-reference-ui .gis-header-export span{display:none}.gis-reference-ui .gis-header-import span{display:none}.gis-reference-ui .header-actions>.header-button{width:35px;padding:0!important}}
@media(max-width:520px){.gis-reference-ui .app-header{grid-template-columns:minmax(125px,1fr) auto!important;padding:8px!important}.gis-reference-ui .app-header .app-globe{width:29px;height:29px}.gis-reference-ui .app-header .brand-copy strong{font-size:15px}.gis-reference-ui .app-header .brand-copy span{font-size:7px;letter-spacing:0}.gis-reference-ui .header-actions>.lang-switch{max-width:92px}.gis-reference-ui .document-title{padding:5px 8px!important}}

/* GIS inspector moved out of the layer tree; true attribute table in bottom pane */
.gis-reference-ui #leftPanel [data-panel-content="imported"]{min-height:0}
.gis-reference-ui #leftPanel .project-tree-root{margin:8px 10px;padding:9px;border:1px solid #244d6a;border-radius:6px;background:#0a2c45}
.gis-reference-ui #leftPanel .dock-section-title{margin-top:5px;color:#bfe4f7}
.gis-reference-ui #leftPanel .layer-list{min-height:170px;overflow:auto}
.gis-reference-ui .gis-import-details{margin-top:12px;border:1px solid #2c5a76;border-radius:6px;background:#09283f}
.gis-reference-ui .gis-import-details>summary{cursor:pointer;display:flex;justify-content:space-between;gap:8px;padding:10px;font-weight:700;color:#d8f1ff;font-size:11px}
.gis-reference-ui .gis-import-details>summary span{font-size:10px;font-weight:400;color:#8acbe9}
.gis-reference-ui .gis-import-details .gis-database-entry{margin:0;border:0;border-top:1px solid #31516a;padding:10px;background:transparent}
.gis-reference-ui .gis-import-details button{max-width:100%}
.gis-reference-ui .gis-bottom-workbench>section:nth-child(2){overflow:hidden;display:flex;flex-direction:column}
.gis-reference-ui .gis-attributes-open{align-self:flex-start;margin:7px 10px;padding:5px 10px!important;font-size:10px!important}
.gis-reference-ui .gis-attribute-grid{flex:1;min-height:0;overflow:auto;margin:0 8px 8px;border:1px solid #234861;border-radius:4px}
.gis-reference-ui .gis-attribute-grid:empty{display:none}
.gis-reference-ui .gis-attribute-grid table{border-collapse:collapse;min-width:100%;font-size:11px;color:#e1f0fa}
.gis-reference-ui .gis-attribute-grid th,.gis-reference-ui .gis-attribute-grid td{padding:7px 10px;text-align:left;white-space:nowrap;border-bottom:1px solid #24475e;border-right:1px solid #193b52;max-width:280px;overflow:hidden;text-overflow:ellipsis}
.gis-reference-ui .gis-attribute-grid th{position:sticky;top:0;background:#10466b;color:#eaf9ff;z-index:1}
.gis-reference-ui .gis-attribute-grid tbody tr:nth-child(even){background:#0b2a41}
.gis-reference-ui .gis-attribute-grid tbody tr:hover{background:#145174}
.gis-reference-ui .gis-bottom-workbench>section:nth-child(3){max-height:260px}

/* User-approved compact GIS header and restored left-side data tools. */
.gis-reference-ui .app-header{min-height:48px!important;height:50px!important;max-height:50px!important;padding:4px 12px!important;grid-template-columns:minmax(200px,1fr) auto minmax(250px,1fr)!important;gap:10px!important}
.gis-reference-ui .app-header .app-globe{width:31px!important;height:31px!important}
.gis-reference-ui .app-header .brand-copy strong{font-size:16px!important}
.gis-reference-ui .app-header .brand-copy span{font-size:8px!important;letter-spacing:.3px!important}
.gis-reference-ui .document-title{min-width:145px!important;padding:3px 10px!important;gap:1px!important;flex-direction:row!important;align-items:center!important;max-height:36px!important}
.gis-reference-ui .gis-project-label{display:none!important}
.gis-reference-ui .gis-project-line{font-size:11px!important}
.gis-reference-ui .document-title #saveState{font-size:9px!important;margin-left:7px!important}
.gis-reference-ui .gis-header-tools-label{display:none!important}
.gis-reference-ui .header-actions{gap:5px!important}
.gis-reference-ui .header-actions>.header-button,.gis-reference-ui .header-actions>.lang-switch{height:29px!important;min-height:29px!important;font-size:10px!important}
.gis-reference-ui .header-actions>.header-button{padding:0 9px!important}
.gis-reference-ui .gis-reference-nav{min-height:41px!important;height:41px!important;margin-bottom:3px!important}
.gis-reference-ui .gis-reference-nav button{min-width:78px!important;padding:4px 9px!important;font-size:10px!important}
.gis-reference-ui .gis-reference-nav button span{font-size:15px!important}
.gis-reference-ui .gis-reference-nav button small{font-size:9px!important;margin-top:0!important}
.gis-reference-ui .ribbon{max-height:75px!important;margin-bottom:6px!important}
.gis-reference-ui .ribbon>.gis-reference-tools{height:70px!important;min-height:70px!important;max-height:70px!important}
.gis-reference-ui .gis-reference-tool{flex-basis:76px!important;min-width:70px!important;padding:4px!important}
.gis-reference-ui .gis-tool-icon{font-size:23px!important;line-height:25px!important}
.gis-reference-ui .gis-layer-data-tools{display:block!important;margin:8px!important;padding:10px!important}
.gis-reference-ui .gis-layer-data-tools p{font-size:11px!important;line-height:1.45!important;margin:5px 0!important}
.gis-reference-ui .gis-layer-data-tools button{font-size:11px!important;min-height:31px!important;padding:6px 9px!important}
.gis-reference-ui .gis-layer-data-tools .gis-db-file-actions{display:grid!important;gap:5px!important}
@media(max-width:860px){.gis-reference-ui .app-header{height:auto!important;max-height:none!important;min-height:50px!important;grid-template-columns:minmax(160px,1fr) auto!important}.gis-reference-ui .document-title{grid-row:2!important;grid-column:1/-1!important;max-height:32px!important}}
@media(max-width:520px){.gis-reference-ui .app-header .brand-copy strong{font-size:14px!important}.gis-reference-ui .header-actions>.header-button{padding:0 5px!important}}

/* Keep the GIS header focused: no redundant New/Open/Save/Save As quick-access cluster. */
.gis-reference-ui .app-header .gis-hidden-quick-access,
.gis-reference-ui .app-header .quick-access-toolbar,
.gis-reference-ui .app-header .quick-access,
.gis-reference-ui .app-header .qat,
.gis-reference-ui .app-header .file-quick-actions{display:none!important}

/* Exact injected control from dist/professional-layout.js: installQuickAccess().
   This is GIS-only; keep underlying handlers for CAD Workspace. */
html.gis-reference-ui #cadQuickAccess,
body.gis-reference-ui #cadQuickAccess,
.gis-reference-ui .app-header #cadQuickAccess,
.gis-reference-ui .app-header .cad-quick-access{display:none!important;visibility:hidden!important;width:0!important;min-width:0!important;max-width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}

/* GIS map chrome: no command input, zoom controls below map view tabs. CAD modes retain command line. */
html.gis-reference-ui:not(:has(body[data-cad-mode])) .map-shell .autocad-command-line,
html.gis-reference-ui .map-shell #cadClassicCommandLine,
html.gis-reference-ui .map-shell .cad-command-line,
html.gis-reference-ui .map-shell .command-bar,
html.gis-reference-ui .map-shell .command-line,
html.gis-reference-ui .map-shell .gis-command-bar,
html.gis-reference-ui .map-shell #commandBar{display:none!important}
.gis-reference-ui .map-shell .leaflet-top.leaflet-left{top:88px!important;left:10px!important;z-index:900}
.gis-reference-ui .map-shell .leaflet-top.leaflet-left .leaflet-control-zoom{margin:0!important}
.gis-reference-ui .map-shell .leaflet-control-zoom a{width:31px!important;height:31px!important;line-height:31px!important;background:#092c46!important;color:#f0f8ff!important;border-color:#315b76!important}
@media(max-width:680px){.gis-reference-ui .map-shell .leaflet-top.leaflet-left{top:88px!important;left:9px!important}}


/* GIS header: Home is a real link beside the brand, not a central toolbar action. */
.gis-reference-ui .app-header{grid-template-columns:auto auto minmax(145px,1fr) auto!important}
.gis-reference-ui .app-header>.brand{max-width:none!important}
.gis-reference-ui .gis-header-home-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:6px 11px;border:1px solid #326381;border-radius:6px;color:#e6f6ff;background:#0b3550;text-decoration:none;font-size:12px;font-weight:700}
.gis-reference-ui .gis-header-home-link:hover,.gis-reference-ui .gis-header-home-link:focus-visible{background:#14577d;outline:2px solid #45c6ec;outline-offset:1px}
.gis-reference-ui .document-title{justify-self:center}
.gis-reference-ui .header-actions{justify-self:end}
@media(max-width:860px){.gis-reference-ui .app-header{grid-template-columns:auto auto minmax(0,1fr)!important}.gis-reference-ui .header-actions{grid-column:1/-1;justify-self:end}.gis-reference-ui .document-title{grid-column:1/-1!important;grid-row:auto!important}}
/* Do not clip the lower workbench tabs and controls at short viewport heights. */
.gis-reference-ui .gis-bottom-workbench{max-height:none!important;min-height:205px!important;align-items:stretch}
.gis-reference-ui .gis-bottom-workbench>section{height:auto!important;min-height:205px!important;max-height:none!important;overflow:visible!important;min-width:0}
.gis-reference-ui .gis-bottom-workbench .gis-actions{overflow-x:auto!important;overflow-y:visible!important;flex-wrap:nowrap!important;scrollbar-width:thin;min-height:40px}
.gis-reference-ui .gis-bottom-workbench .gis-actions button{min-height:30px!important;flex-shrink:0}
.gis-reference-ui .gis-bottom-workbench .gis-info,.gis-reference-ui .gis-bottom-workbench .gis-body{overflow-wrap:anywhere}

/* Top-level Import Data dropdown: keep live GIS handlers, free Layers for the layer tree. */
.gis-reference-ui .gis-import-dropdown[hidden]{display:none!important}
.gis-reference-ui .gis-import-dropdown{position:absolute;top:auto;left:12px;z-index:1900;width:min(380px,calc(100vw - 24px));max-height:min(70vh,660px);overflow-y:auto;overscroll-behavior:contain;padding:12px;background:#08273d;color:#e5f5ff;border:1px solid #37718b;border-radius:8px;box-shadow:0 18px 40px #0009}
.gis-reference-ui .gis-import-dropdown>strong{display:block;margin-bottom:9px;font-size:13px}
.gis-reference-ui .gis-import-native-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
.gis-reference-ui .gis-import-native-actions button{min-height:36px;padding:8px;border-radius:6px;border:1px solid #36647c;background:#103c53;color:#e9f9ff;text-align:start;cursor:pointer}
.gis-reference-ui .gis-import-native-actions button:hover,.gis-reference-ui .gis-import-native-actions button:focus-visible{background:#16627a;outline:2px solid #3cc8e3}
.gis-reference-ui .gis-import-dropdown .gis-database-entry{display:block!important;margin:0!important;max-width:100%;padding:10px;border:1px solid #2b6377;border-radius:7px}
.gis-reference-ui .gis-import-dropdown .gis-database-entry button{min-height:32px}
.gis-reference-ui #leftPanel .gis-database-entry{display:none!important}
@media(max-width:680px){.gis-reference-ui .gis-import-dropdown{left:6px;width:calc(100vw - 12px);max-height:65vh}}

/* Full-width, compact GIS attribute workbench below all three workspace columns. */
.gis-reference-ui .gis-bottom-workbench{display:block!important;grid-template-columns:none!important;width:calc(100% - 24px);max-width:none;margin:4px 12px 0!important;min-width:0;max-height:210px!important;overflow:hidden!important}
.gis-reference-ui .gis-bottom-workbench>section{width:100%;box-sizing:border-box;min-width:0;min-height:0!important;max-height:205px!important;overflow:auto}
.gis-reference-ui .gis-bottom-workbench h3{padding:5px 10px}
.gis-reference-ui .gis-bottom-workbench .gis-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px 6px}
.gis-reference-ui .gis-bottom-workbench .gis-actions button{padding:4px 8px;min-height:26px}
.gis-reference-ui .gis-bottom-workbench .gis-info{padding:5px 8px}
.gis-reference-ui .gis-bottom-workbench .gis-inline-attribute-table{max-height:150px!important}
@media(max-width:850px){.gis-reference-ui .gis-bottom-workbench{width:calc(100% - 16px);margin:4px 8px 0!important}}

/* Compact, readable ribbon controls for Basemaps and Database. */
.gis-reference-ui .ribbon>.gis-reference-tools{align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important}
.gis-reference-ui .gis-ribbon-control-group{display:flex;flex-direction:row;align-items:center;gap:10px;flex:0 0 auto;min-width:0;max-width:100%;height:100%;padding:6px 14px;box-sizing:border-box;border-right:1px solid #28516c}
.gis-reference-ui .gis-ribbon-control-label{font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;color:#e8f4ff}
.gis-reference-ui .gis-ribbon-control-group select{width:210px;max-width:40vw;min-width:150px;min-height:32px;padding:5px 9px;background:#0b304b;border:1px solid #37627f;border-radius:5px;color:#fff;font-size:12px}
.gis-reference-ui .gis-ribbon-action{display:flex;align-items:center;gap:7px;flex:0 0 auto;min-height:34px;padding:6px 12px;border-radius:5px;border:1px solid #326185;background:#0d456d;color:#eef8ff;cursor:pointer;white-space:nowrap;font-size:12px}
.gis-reference-ui .gis-ribbon-action small{font-size:11px;color:#c2d9e9}
.gis-reference-ui .gis-ribbon-control-note{font-size:11px;color:#a9c5d9;white-space:nowrap}
@media(max-width:650px){.gis-reference-ui .gis-ribbon-control-group{padding:5px 8px;gap:6px}.gis-reference-ui .gis-ribbon-control-group select{min-width:120px;width:150px}.gis-reference-ui .gis-ribbon-control-note{display:none}}


/* GIS View ribbon: independently dock/undock the existing panels. */
.gis-reference-ui .workspace.gis-hide-layers.gis-hide-properties{grid-template-columns:minmax(0,1fr)!important}
.gis-reference-ui .workspace.gis-hide-layers:not(.gis-hide-properties){grid-template-columns:minmax(0,1fr) minmax(205px,17%)!important}
.gis-reference-ui .workspace.gis-hide-properties:not(.gis-hide-layers){grid-template-columns:minmax(215px,19%) minmax(0,1fr)!important}
.gis-reference-ui .workspace.gis-hide-layers>.map-shell{grid-column:1!important}
.gis-reference-ui .workspace.gis-hide-layers:not(.gis-hide-properties)>#rightPanel{grid-column:2!important}
.gis-reference-ui .workspace .dock-panel.gis-panel-collapsed,
.gis-reference-ui .gis-bottom-workbench.gis-panel-collapsed{display:none!important}
.gis-reference-ui .gis-view-panel-controls{display:flex;align-items:center;gap:5px;flex:0 0 auto;border-left:1px solid #28516c;padding:3px 8px}
.gis-reference-ui .gis-panel-heading{color:#d5eaf7;font-size:11px;white-space:nowrap}
.gis-reference-ui .gis-view-panel-controls .gis-panel-toggle{min-width:84px;padding:5px 8px;opacity:.65}
.gis-reference-ui .gis-view-panel-controls .gis-panel-toggle.gis-panel-enabled{opacity:1;background:#155475;box-shadow:inset 0 0 0 1px #36b4dc}
.gis-reference-ui .gis-panel-preset{padding:8px;border:1px solid #315b76;border-radius:5px;background:#0d3853;color:#e8f6ff;cursor:pointer;font-size:11px;white-space:nowrap}
.gis-reference-ui .gis-panel-preset:hover{background:#145d83}
@media(max-width:1100px) and (min-width:701px){
 .gis-reference-ui .workspace.gis-hide-layers{grid-template-columns:minmax(0,1fr)!important}
 .gis-reference-ui .workspace.gis-hide-properties:not(.gis-hide-layers){grid-template-columns:220px minmax(0,1fr)!important}
}
@media(max-width:700px){
 .gis-reference-ui .workspace.gis-hide-layers,.gis-reference-ui .workspace.gis-hide-properties,.gis-reference-ui .workspace.gis-hide-layers.gis-hide-properties{display:flex!important;flex-direction:column!important}
}

/* Preview build refresh: panel visibility review branch. */


/* View panel height fix: map consumes remaining viewport instead of fixed 55vh/570px. */
@media(min-width:701px){
 .gis-reference-ui .app-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
 .gis-reference-ui .workspace{flex:1 1 0!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:hidden!important}
 .gis-reference-ui .workspace>.map-shell{height:100%!important;min-height:0!important;max-height:none!important}
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed){flex:0 0 205px!important;height:205px!important;min-height:0!important;max-height:205px!important;overflow:auto!important}
 .gis-reference-ui .gis-bottom-workbench.gis-panel-collapsed{display:none!important;flex:0 0 0!important;min-height:0!important;height:0!important;margin:0!important}
}

/* Map height first: the attribute pane stays short while idle and grows only while a table is open; table rows
   scroll inside the pane under a sticky header. Shorter screens get a shorter idle pane. */
@media(min-width:701px){
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed)>section{display:flex!important;flex-direction:column;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;box-sizing:border-box}
 .gis-reference-ui .gis-bottom-workbench>section>*{flex:none}
 .gis-reference-ui .gis-bottom-workbench .gis-info{flex:1 1 auto;min-height:0!important;overflow:auto}
 .gis-reference-ui .gis-bottom-workbench .gis-attribute-grid{flex:1 1 auto}
 .gis-reference-ui .gis-inline-attributes:not([hidden]){flex:1 1 auto;display:flex;flex-direction:column;min-height:0;max-height:none!important;overflow:hidden!important;margin:6px 8px 8px!important}
 .gis-reference-ui .gis-inline-attributes-grid{flex:1 1 auto;min-height:0;max-height:none!important}
 .gis-reference-ui .gis-inline-attributes-pager{flex:none;margin-top:4px!important;font-size:11px}
 .gis-reference-ui .gis-inline-attributes button{padding:3px 10px;font-size:11px}
 .gis-reference-ui .gis-inline-attributes input{padding:3px 6px;font-size:11px}
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed):has(.gis-inline-attributes:not([hidden])),
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed):has(.gis-attribute-grid:not(:empty)){flex-basis:270px!important;height:270px!important;max-height:270px!important}
}
@media(min-width:701px) and (max-height:960px){
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed){flex-basis:160px!important;height:160px!important;max-height:160px!important}
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed):has(.gis-inline-attributes:not([hidden])),
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed):has(.gis-attribute-grid:not(:empty)){flex-basis:250px!important;height:250px!important;max-height:250px!important}
}
@media(min-width:701px) and (max-height:820px){
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed){flex-basis:124px!important;height:124px!important;max-height:124px!important;margin-top:6px!important}
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed):has(.gis-inline-attributes:not([hidden])),
 .gis-reference-ui .gis-bottom-workbench:not(.gis-panel-collapsed):has(.gis-attribute-grid:not(:empty)){flex-basis:226px!important;height:226px!important;max-height:226px!important}
 .gis-reference-ui .gis-bottom-workbench h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .gis-reference-ui .gis-bottom-workbench .gis-actions{padding:4px 6px}
 .gis-reference-ui .gis-bottom-workbench .gis-actions button{padding:5px 8px}
 .gis-reference-ui .gis-inline-attributes:not([hidden]){margin:4px 8px 6px!important;padding:4px 6px!important}
}

/* 701-840px: styles.css turns the Layers and Properties panels into slide-in drawers (opened from the header's
   panel buttons), so the map takes the whole row instead of a 220px column next to an empty one. */
@media(max-width:840px) and (min-width:701px){
 .gis-reference-ui .workspace{grid-template-columns:minmax(0,1fr)}
 .gis-reference-ui .workspace>.map-shell{grid-column:1/-1}
}
/* The language switch must keep its own width: shrunk by the header row, its trigger spilled over the panel button
   next to it and hid the Layers drawer button on tablets. Below 861px only the globe and arrow show; the language
   name stays available to screen readers. */
.gis-reference-ui .header-actions>.lang-switch{flex:none}
@media(max-width:860px){
 .gis-reference-ui .header-actions [data-language-trigger-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
