.leaflet-control-layers-toggle.leaflet-layerstree-named-toggle {
    margin: 2px 5px;
    width: auto;
    height: auto;
    background-image: none;
}

.leaflet-layerstree-node {
}

.leaflet-layerstree-header input{
    margin-left: 0px;
}


.leaflet-layerstree-header {
    display: flex;
    align-items: center;
    gap: 2px;
    width: max-content;
    min-width: 100%;
}

.leaflet-layerstree-header-pointer {
    flex: 0 0 auto;
    cursor: pointer;
}

.leaflet-layerstree-header label {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    cursor: pointer;
}

.leaflet-layerstree-header-label {
}

.leaflet-layerstree-header-name {
}

.leaflet-layerstree-header-space {
}

.leaflet-layerstree-children {
    padding-left: 10px;
}

.leaflet-layerstree-children-nopad {
    padding-left: 0px;
}

.leaflet-layerstree-closed {
}

.leaflet-layerstree-opened {
}

.leaflet-layerstree-hide {
    display: none;
}

.leaflet-layerstree-nevershow {
    display: none;
}

.leaflet-layerstree-expand-collapse {
    cursor: pointer;
}

.leaflet-layerstree-expand-collapse {
    display: none !important;
}

.leaflet-control-layers {
    position: relative;
    --layer-panel-width: 236px;
    --layer-panel-height: 440px;
    width: var(--layer-panel-width) !important;
    min-width: 220px !important;
    height: var(--layer-panel-height) !important;
    min-height: 220px !important;
    resize: none;
    overflow: hidden !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.leaflet-control-layers.leaflet-control-layers-expanded {
    resize: none;
}

.leaflet-control-layers .leaflet-control-layers-list {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: auto !important;
    padding-right: 2px;
    box-sizing: border-box;
}

.leaflet-control-layers .leaflet-control-layers-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.leaflet-control-layers .leaflet-control-layers-list::-webkit-scrollbar-thumb {
    background: #a9a9a9;
    border-radius: 6px;
}

.leaflet-control-layers .leaflet-control-layers-list {
    scrollbar-width: auto;
}

.leaflet-layerstree-xscroll {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 14px;
    overflow-x: scroll;
    overflow-y: hidden;
    border-top: 1px solid #d6d6d6;
    background: #f2f2f2;
    z-index: 3;
}

.leaflet-layerstree-xscroll-inner {
    height: 1px;
}

.leaflet-layerstree-xscroll::-webkit-scrollbar {
    height: 10px;
}

.leaflet-layerstree-xscroll::-webkit-scrollbar-thumb {
    background: #9a9a9a;
    border-radius: 8px;
}

.leaflet-layerstree-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 3px 5px;
    border-bottom: 1px solid #d6d6d6;
    background: #f5f5f5;
}

.leaflet-layerstree-panel-title {
    font-weight: 700;
    color: #3b3b3b;
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaflet-layerstree-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.leaflet-layerstree-refresh-btn,
.leaflet-layerstree-minimize-btn {
    width: 18px;
    height: 18px;
    border: 1px solid #bfbfbf;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font-size: 12px;
    line-height: 14px;
    cursor: pointer;
    padding: 0;
}

.leaflet-layerstree-refresh-btn.is-loading {
    animation: layerRefreshSpin 0.8s linear infinite;
}

@keyframes layerRefreshSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.leaflet-layerstree-section-title {
    margin: 6px 0 3px;
    color: #4a4a4a;
    font-weight: 700;
    font-size: 13px;
}

.leaflet-layerstree-base-title {
    margin-top: 1px;
}

.leaflet-control-layers .leaflet-control-layers-base,
.leaflet-control-layers .leaflet-control-layers-overlays {
    margin: 0;
    width: max-content;
    min-width: 100%;
}

.leaflet-layerstree-header-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    min-width: max-content;
}

.leaflet-layerstree-header-label input {
    flex: 0 0 auto;
    margin-right: 0;
    vertical-align: middle;
}

.leaflet-layerstree-header-name {
    display: inline-block;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
}

.leaflet-layerstree-header-name br {
    display: none;
}

.leaflet-layer-label-marquee {
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
}

.leaflet-layer-label-marquee-track {
    display: inline-flex;
    align-items: center;
    transform: none;
    will-change: auto;
}

.leaflet-layer-label-overflow {
    cursor: pointer;
}

.leaflet-layer-label-marquee:hover .leaflet-layer-label-marquee-track,
.leaflet-layer-label-marquee.leaflet-layer-label-marquee-active .leaflet-layer-label-marquee-track {
    animation: leafletLayerLabelMarquee var(--layer-marquee-duration, 8s) linear infinite alternate;
}

@keyframes leafletLayerLabelMarquee {
    0%,
    12% {
        transform: translateX(0);
    }
    88%,
    100% {
        transform: translateX(calc(-1 * var(--layer-marquee-distance, 0px)));
    }
}

@media (max-width: 640px) {
    .leaflet-control-layers {
        --layer-panel-width: min(236px, calc(100vw - 24px));
        --layer-panel-height: min(360px, 62vh);
        resize: none;
    }
}

.leaflet-layerstree-refresh-btn:hover,
.leaflet-layerstree-minimize-btn:hover {
    background: #f1f1f1;
}

.leaflet-control-layers.leaflet-layerstree-minimized .leaflet-control-layers-list {
    display: none;
}

.leaflet-control-layers.leaflet-layerstree-minimized .leaflet-layerstree-xscroll {
    display: none;
}

.leaflet-control-layers.leaflet-layerstree-minimized .leaflet-layerstree-panel-header {
    border-bottom: 0;
}

.leaflet-control-layers.leaflet-layerstree-minimized .leaflet-layerstree-panel-title,
.leaflet-control-layers.leaflet-layerstree-minimized .leaflet-layerstree-refresh-btn {
    display: none;
}

.leaflet-control-layers.leaflet-layerstree-minimized {
    min-width: 40px;
    max-width: 40px;
    min-height: 34px;
    height: 34px !important;
    padding: 0;
}