/* =========================
   mapper.map-dock.css
   ========================= */
/* Dock wrapper becomes just a positioned anchor */
.mapper-dock-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1040;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: block !important;
}

/* New dock panel matches legend panel feel */
.mapper-dock-panel {
    width: var(--mapper-dock-w);
    max-width: 280px;
    min-width: 240px;
    height: 46vh;
    max-height: 46vh;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.mapper-map-wrap #mapperDockTabs {
    flex: 0 0 auto;
}

.mapper-map-wrap #mapperDockTabsContent {
    flex: 1 1 auto;
    min-height: 0; /* critical for overflow in flex */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mapper-map-wrap #mapperDockTabsContent > .tab-pane {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.mapper-dock-side-toggle {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1046;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .2rem .55rem rgba(0, 0, 0, 0.18);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: none;
}

.mapper-dock-side-toggle:hover,
.mapper-dock-side-toggle:focus {
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.mapper-dock-toggle-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mapper-dock-toggle-arrow {
    font-size: 1.2rem;
    font-weight: 700;
}

.mapper-dock-toggle-stack {
    display: inline-flex;
    font-size: .95rem;
}

.mapper-dock-toggle .mapper-dock-toggle-arrow {
    display: none;
}

.mapper-dock-toggle.is-panel-open .mapper-dock-toggle-arrow {
    display: inline-flex;
}

.mapper-dock-toggle.is-panel-open .mapper-dock-toggle-stack {
    display: none;
}

.mapper-dock-toggle.is-panel-open {
    height: 36px;
    border-radius: 5px;
}


@media (min-width: 993px) {
    .mapper-dock-toggle.is-panel-open {
        right: calc(var(--mapper-panel-pad) - .7rem);
        z-index: 1039;
    }
}

/* Body holds tabs + scrolling content */
.mapper-dock-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.mapper-dock-top-tabs {
    gap: .35rem;
    padding: .5rem .75rem 0 .75rem;
    background: var(--bs-light);
    border-bottom: 1px solid var(--bs-border-color);
}

.mapper-dock-top-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .6rem;
    white-space: nowrap;
}

.mapper-dock-top-tabs .dock-tab-label {
    display: none;
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    letter-spacing: 0.01em;
}

.mapper-dock-top-tabs .nav-link.active .dock-tab-label {
    display: inline;
}

.mapper-dock-subtabs {
    gap: .35rem;
    margin-bottom: .5rem;
}

.mapper-dock-subtabs .nav-link {
    padding: .35rem .6rem;
    font-size: .86rem;
}

.mapper-page .mapper-dock-panel .mapper-dock-subtabs-content {
    min-height: 0;
    height: auto;
}

.mapper-page .mapper-dock-panel .mapper-dock-subtabs-content > .tab-pane {
    min-height: 0;
    height: auto;
    overflow: visible;
}


.dock-content {
    padding: .2rem .7rem .02rem .7rem;
}

.dock-section {
    padding: .1rem 0 0 0;
}

.dock-section-title {
    font-weight: 600;
    font-size: 0.90rem;
    line-height: 1.25;
    margin-bottom: .35rem;
    margin-top: .35rem;
}

#dock-main .dock-section,
#dock-land .dock-section {
    font-size: .95rem;
}

.dock-temp-cards {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dock-temp-intro {
    font-size: .92rem;
    line-height: 1.35;
    margin-bottom: .65rem;
}

.dock-temp-intro p {
    margin: 0 0 .45rem 0;
}

.dock-temp-intro p:last-child {
    margin-bottom: 0;
}

.dock-temp-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .6rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 .15rem .45rem rgba(0, 0, 0, 0.06);
    padding: .75rem;
}

.dock-temp-card-title {
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dock-temp-card-single {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.dock-temp-options {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .65rem;
}

.dock-temp-options-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 0.6rem;
    text-align: center;
    font-size: .9rem;
}

.dock-temp-options-row .form-check {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    white-space: nowrap;
}

.dock-temp-options-row .form-check-label {
    position: relative;
    top: 1px;
}

.dock-temp-controls {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.dock-temp-controls-top {
    margin-bottom: 0;
}

.dock-temp-control-label {
    font-size: .68rem;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.58);
}

.dock-temp-slider {
    margin-bottom: 0;
}

.dock-temp-colormap {
    margin-top: .1rem;
}

.dock-temp-health {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.dock-temp-health-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    color: #1b5e20;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dock-temp-health-panel {
    width: 100%;
    border: 1px solid rgba(27, 94, 32, 0.18);
    border-radius: .6rem;
    background: rgba(255, 255, 255, 0.96);
    padding: .75rem;
}

.dock-temp-health-content {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-size: .88rem;
    line-height: 1.35;
}

.dock-temp-health-image-button {
    appearance: none;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.dock-temp-health-image {
    display: block;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.dock-temp-health-image-button:hover .dock-temp-health-image,
.dock-temp-health-image-button:focus-visible .dock-temp-health-image {
    box-shadow: 0 0 0 .2rem rgba(27, 94, 32, 0.18);
}

.dock-temp-health-copy {
    margin: 0;
}

.dock-temp-health-source {
    font-size: .75rem;
    font-style: italic;
    line-height: 1.2;
}

.dock-temp-health-legend {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.dock-temp-health-legend-item {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.dock-temp-health-swatch {
    display: inline-block;
    width: .95rem;
    height: .95rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: .15rem;
    flex: 0 0 .95rem;
    cursor: help;
}

.dock-temp-health-swatch:focus-visible,
.dock-temp-health-toggle:focus-visible,
.dock-temp-health-image-button:focus-visible {
    outline: 2px solid rgba(27, 94, 32, 0.5);
    outline-offset: 2px;
}

#dock-temp-health-image-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

#dock-temp-health-image-modal .dock-temp-health-modal-image {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    align-self: center;
}

#dock-temp-health-image-modal .dock-temp-health-modal-details {
    text-align: left;
}

#dock-temp-health-image-modal .dock-temp-health-modal-details .dock-temp-health-copy,
#dock-temp-health-image-modal .dock-temp-health-modal-details .dock-temp-health-source,
#dock-temp-health-image-modal .dock-temp-health-modal-details .dock-temp-health-legend-item {
    font-size: .95rem;
}

.dock-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.dock-checkrow {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .5rem;
    padding: .375rem 0.1rem;
    border-bottom: 1px dashed var(--bs-border-color);
    font-size: inherit;
}

.dock-checkrow:last-child {
    border-bottom: 0;
}

.keep-right-inline {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}

.land-row.keep-right-inline,
.dock-checkrow.keep-right-inline {
    flex-wrap: nowrap !important;
}

.keep-right-inline > .form-check,
.keep-right-inline > .land-left {
    flex: 1 1 0%;
    min-width: 0;
}

.keep-right-inline .form-check-label {
    display: inline;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.keep-right-inline > .layer-swatch,
.keep-right-inline > .land-right {
    flex: 0 0 auto;
    margin-left: .5rem;
    align-self: flex-start;
}

.dock-checkrow.keep-right-inline:has(.dock-inline-control) {
    flex-wrap: wrap !important;
}

.dock-checkrow.keep-right-inline:has(.dock-inline-control) > .dock-inline-control {
    flex: 1 0 100%;
    order: 3;
}

.land-row.keep-right-inline:has(.dock-inline-control) {
    flex-wrap: wrap !important;
}

.land-row.keep-right-inline:has(.dock-inline-control) > .land-left {
    order: 1;
}

.land-row.keep-right-inline:has(.dock-inline-control) > .land-right {
    order: 2;
}

.land-row.keep-right-inline:has(.dock-inline-control) > .dock-inline-control {
    flex: 1 0 100%;
    order: 3;
}

.dock-inline-control {
    flex: 0 0 100%;
    padding-left: 1.45rem;
    margin-top: .1rem;
    margin-bottom: 0;
}

.dock-inline-control-label {
    display: block;
    margin-bottom: .15rem;
    font-size: .68rem;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.58);
}


/* Legend swatches */
.layer-swatch {
    width: 38px;
    height: 14px;
    border-radius: 0;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
    display: inline-block;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 0.25rem;
}

/* Boundary swatches */
.swatch-bnd-bg {
    width: 38px;
    background: transparent;
    border: 2px solid rgba(10, 40, 130, 0.90);
}

.swatch-bnd-tract {
    background: transparent;
    border: 2px solid rgba(110, 50, 160, 0.90);
}

.swatch-bnd-county {
    background: transparent;
    border: 2px solid rgba(60, 60, 60, 0.90);
}

.swatch-bnd-city {
    background: transparent;
    border: 2px solid rgba(150, 20, 20, 0.90);
}

.swatch-bnd-dac {
    background: rgba(107, 182, 255, 0.20);
    border: 2px solid rgba(107, 182, 255, 1.00);
}

.swatch-bnd-redc {
    background: transparent;
    border: 2px solid rgba(20, 110, 50, 0.90);
}

.swatch-bnd-state {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.95);
}

/* LAND + COMMUNITY list layout (existing) */
.land-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.land-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: .375rem 0;
    border-bottom: 1px dashed var(--bs-border-color);
}

.land-row:last-child {
    border-bottom: 0;
}

.land-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.land-left .form-check-input {
    margin-right: .5rem;
}

.land-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.land-info {
    color: rgba(0, 0, 0, 0.55);
}

.mapper-layer-info-modal {
    position: fixed;
    z-index: 1100;
    width: min(360px, calc(100vw - 1rem));
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: .6rem .7rem .7rem .7rem;
    border-radius: .5rem;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, 0.20);
}

.mapper-layer-info-modal[hidden] {
    display: none !important;
}

.mapper-layer-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .45rem;
}

.mapper-layer-info-title {
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.2;
}

.mapper-layer-info-close {
    margin-top: -.1rem;
    flex: 0 0 auto;
}

.mapper-layer-info-scale {
    margin-bottom: .55rem;
}

.mapper-layer-info-scale-bar {
    width: 100%;
    height: 14px;
    border: 1px solid #9ea7b1;
    border-radius: .22rem;
    background-color: #ffffff;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.mapper-layer-info-scale-bar::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 1px;
    background: var(--mapper-layer-info-fill, linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.65)));
}

.mapper-layer-info-scale-ticks {
    position: relative;
    height: 8px;
    margin-top: 1px;
}

.mapper-layer-info-scale-tick {
    position: absolute;
    top: 0;
    width: 1px;
    height: 8px;
    background: rgba(0, 0, 0, 0.66);
}

.mapper-layer-info-scale-tick.is-0 {
    left: 0;
}

.mapper-layer-info-scale-tick.is-50 {
    left: 50%;
    transform: translateX(-0.5px);
}

.mapper-layer-info-scale-tick.is-100 {
    right: 0;
}

.mapper-layer-info-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: rgba(0, 0, 0, 0.66);
    line-height: 1;
}

.mapper-layer-info-scale-ticks.is-dynamic {
    position: relative;
    height: 8px;
}

.mapper-layer-info-scale-tick-dyn {
    position: absolute;
    top: 0;
    width: 1px;
    height: 8px;
    background: rgba(0, 0, 0, 0.66);
    transform: translateX(-0.5px);
}

.mapper-layer-info-scale-labels.is-dynamic {
    position: relative;
    display: block;
    height: 16px;
}

.mapper-layer-info-scale-label-dyn {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: .7rem;
    color: rgba(0, 0, 0, 0.72);
    line-height: 1.1;
    white-space: nowrap;
}

.mapper-layer-info-scale-label-dyn.is-start {
    transform: translateX(0);
}

.mapper-layer-info-scale-label-dyn.is-end {
    transform: translateX(-100%);
}

.mapper-layer-info-source {
    font-size: .78rem;
    line-height: 1.25;
    color: rgba(0, 0, 0, 0.82);
}

.mapper-layer-info-note {
    font-size: .76rem;
    color: rgba(0, 0, 0, 0.62);
    margin-bottom: .5rem;
}

.mapper-layer-info-source a {
    color: #0d6efd;
    text-decoration: underline;
}

.mapper-layer-info-nlcd-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .24rem;
    margin: .2rem 0 .55rem 0;
}

.mapper-layer-info-nlcd-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.mapper-layer-info-nlcd-chip {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.24);
    flex: 0 0 auto;
}

.mapper-layer-info-nlcd-label {
    font-size: .76rem;
    line-height: 1.2;
}

/* Land cover ramps */
.swatch-tree {
    background: linear-gradient(90deg, rgba(232, 245, 233, 0.45), rgba(27, 94, 32, 1));
}

.swatch-plantable {
    background: linear-gradient(90deg, rgba(227, 242, 253, 0.65), rgba(13, 71, 161, 1));
}

.swatch-imperv {
    background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 1),
            rgba(45, 0, 75, 1),
            rgba(190, 70, 50, 1),
            rgba(245, 140, 30, 1),
            rgba(252, 255, 100, 1)
    );
}

/* NLCD multi-color bar (16 classes) */
.swatch-nlcd {
    background: linear-gradient(
            90deg,
            #466b9f 0% 6.25%,
            #d1def8 6.25% 12.5%,
            #dec5c5 12.5% 18.75%,
            #d99282 18.75% 25%,
            #eb0000 25% 31.25%,
            #ab0000 31.25% 37.5%,
            #b3ac9f 37.5% 43.75%,
            #68ab5f 43.75% 50%,
            #1c5f2c 50% 56.25%,
            #b5c58f 56.25% 62.5%,
            #ccb879 62.5% 68.75%,
            #dfdfc2 68.75% 75%,
            #dcd939 75% 81.25%,
            #ab6c28 81.25% 87.5%,
            #b8d9eb 87.5% 93.75%,
            #6c9fb8 93.75% 100%
    );
}

.swatch-temp-tair {
    background: linear-gradient(
            90deg,
            #f8fe69 0% 20%,
            #dcae19 20% 40%,
            #bc6404 40% 60%,
            #901a07 60% 80%,
            #400505 80% 100%
    );
}

.swatch-temp-hi {
    background: linear-gradient(
            90deg,
            #fff1aa 0% 20%,
            #ffd200 20% 40%,
            #ff6400 40% 60%,
            #990000 60% 80%,
            #000000 80% 100%
    );
}

.swatch-temp-wbgt {
    background: linear-gradient(
            90deg,
            #000083 0% 20%,
            #0288cc 20% 40%,
            #83ff7f 40% 60%,
            #fd7d00 60% 80%,
            #800000 80% 100%
    );
}

.swatch-nonwht {
    background: linear-gradient(
            90deg,
            #f3e5f5 0% 20%,
            #e1bee7 20% 40%,
            #ce93d8 40% 60%,
            #ab47bc 60% 80%,
            #6a1b9a 80% 100%
    );
}

.swatch-lowinc {
    background: linear-gradient(
            90deg,
            #fff3e0 0% 20%,
            #ffe0b2 20% 40%,
            #ffb74d 40% 60%,
            #fb8c00 60% 80%,
            #e65100 80% 100%
    );
}

.swatch-elderly {
    background: linear-gradient(
            90deg,
            #e3f2fd 0% 20%,
            #bbdefb 20% 40%,
            #64b5f6 40% 60%,
            #1e88e5 60% 80%,
            #0d47a1 80% 100%
    );
}

.swatch-disability {
    background: linear-gradient(
            90deg,
            #efebe9 0% 20%,
            #d7ccc8 20% 40%,
            #a1887f 40% 60%,
            #6d4c41 60% 80%,
            #3e2723 80% 100%
    );
}

.swatch-hvi {
    background: linear-gradient(
            90deg,
            #ffebeb 0% 20%,
            #ffb7b7 20% 40%,
            #ff7171 40% 60%,
            #f83a3a 60% 80%,
            #da0000 80% 100%
    );
}

.swatch-hvi-nyc {
    background: linear-gradient(
            90deg,
            #ffffff 0% 20%,
            #bfbfbf 20% 40%,
            #858585 40% 60%,
            #4e4e4e 60% 80%,
            #1b1b1b 80% 100%
    );
}

.swatch-hvi-plantability-frequency {
    background: linear-gradient(90deg,#2e7d32 0.00% 20.00%,#a5d6a7 20.00% 40.00%,#fff176 40.00% 60.00%,#ff9800 60.00% 80.00%,#7f0000 80.00% 100.00%);
}

/* Let temperature tab dock shrink to content while other tabs keep fixed panel height */
.mapper-dock-panel:has(#dock-temp.tab-pane.active) {
    height: auto;
    max-height: none;
}

.mapper-dock-panel:has(#dock-temp.tab-pane.active) .mapper-dock-body {
    flex: 0 0 auto;
}

.mapper-dock-panel:has(#dock-temp.tab-pane.active) #mapperDockTabsContent {
    flex: 0 0 auto;
    overflow: visible;
}

.mapper-dock-panel:has(#dock-temp.tab-pane.active) #dock-temp.tab-pane.active {
    overflow: visible;
}

.mapper-dock-panel:has(#dock-temp.tab-pane.active) #dock-temp .dock-temp-cards {
    margin-bottom: 1rem;
}

/* In stacked map/table layout, expanded health content can outgrow the dock.
   Restore an internal scroll container for the temp tab while the panel is open. */
#mapper-pane[data-layout-resolved="stacked"] .mapper-dock-panel:has(#dock-temp.tab-pane.active):has(#dock-temp-health-panel:not([hidden])) {
    height: min(56vh, calc(100% - .5rem));
    max-height: calc(100% - .5rem);
}

#mapper-pane[data-layout-resolved="stacked"] .mapper-dock-panel:has(#dock-temp.tab-pane.active):has(#dock-temp-health-panel:not([hidden])) .mapper-dock-body {
    flex: 1 1 auto;
    min-height: 0;
}

#mapper-pane[data-layout-resolved="stacked"] .mapper-dock-panel:has(#dock-temp.tab-pane.active):has(#dock-temp-health-panel:not([hidden])) #mapperDockTabsContent {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#mapper-pane[data-layout-resolved="stacked"] .mapper-dock-panel:has(#dock-temp.tab-pane.active):has(#dock-temp-health-panel:not([hidden])) #dock-temp.tab-pane.active {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* Legend boundary line swatch (line only, not a rectangle) */
.legend-line-swatch {
    width: 52px;
    height: 0;
    border-top-style: solid;
    border-top-color: rgba(0, 0, 0, 0.8);
    border-top-width: 2px;
    display: inline-block;
    flex: 0 0 auto;
    margin-right: .25rem;
}



/* Collapsed dock */
.mapper-dock-right.is-collapsed {
    pointer-events: none;
    width: 0 !important;
}

.mapper-dock-panel.is-collapsed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(12px);
}



/* Keep dock tab layers pinned while layer rows scroll */
.mapper-page #dock-layers.mapper-dock-layers-pane {
    min-height: 0;
    overflow: hidden;
}

.mapper-page #dock-layers.mapper-dock-layers-pane.active {
    display: flex;
    flex-direction: column;
}

.mapper-page #dock-layers.mapper-dock-layers-pane > .mapper-dock-subtabs {
    position: sticky;
    top: 0;
    z-index: 4;
    margin-bottom: 0;
    padding-top: 0.35rem;
    background: #fff;
    border-bottom: 1px solid var(--bs-border-color);
}

.mapper-page #dock-layers.mapper-dock-layers-pane > .mapper-dock-layers-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0.45rem;
}

.mapper-page #dock-layers.mapper-dock-layers-pane > .mapper-dock-layers-content > .tab-pane {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Temp dock colormap dropdown should use full control width */
#dock-temp .dock-temp-controls .palette-dropdown {
    display: block;
    width: 100%;
}

#dock-temp .dock-temp-controls .palette-dropdown .dropdown-toggle {
    display: flex;
    width: 100%;
}

#dock-temp .dock-temp-controls .palette-dropdown .palette-bar {
    width: 100%;
}

#dock-temp .dock-temp-controls .palette-dropdown .palette-dropdown-menu {
    width: 100%;
    min-width: 100%;
}

