
.leaflet-control-orderlayer.leaflet-control {
    margin: 0;
}

.leaflet-control-orderlayer {
    font-family: Arial, sans-serif;
    width: 280px;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 4px;
    background: rgba(255,255,255,0.5);
    box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    overflow: hidden;
}


.leaflet-control-orderlayer .ol-header {
    padding: 4px 8px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.leaflet-control-orderlayer .close-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.leaflet-control-orderlayer .close-btn:hover {
    color: #000;
}

.leaflet-control-orderlayer #layerContainer,
.leaflet-control-orderlayer #listaOrderLayer {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.leaflet-control-orderlayer .ol-row {
    padding: 6px 8px;
    margin: 0 2px 4px 2px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 4px;
}

.leaflet-control-orderlayer .ol-row:hover {
    border: 1px solid #888;
}

.leaflet-control-orderlayer .ol-drag-area {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: grab;
    user-select: none;
    padding: 2px;
}

.leaflet-control-orderlayer .ol-drag-area:active {
    cursor: grabbing;
}

.leaflet-control-orderlayer .drag-icon {
    font-size: 14px;
    color: #666;
}

.leaflet-control-orderlayer .drag-label {
    font-size: 9px;
    color: #888;
    margin-left: auto;
}

.leaflet-control-orderlayer .layer-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaflet-control-orderlayer .ol-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
}

.leaflet-control-orderlayer .control-line {
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 2px;    
}

.leaflet-control-orderlayer .control-line label {
    font-size: 12px;
    color: #666;
    width: 80px;
    min-width: 80px;
    margin-right: 10px;
    margin-left: 10px;
    flex-shrink: 0;
    margin-bottom: 0;    
}

.leaflet-control-orderlayer .control-line .range-with-input {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.leaflet-control-orderlayer .control-line .range-with-input .range-slider {
    flex: 1;
    min-width: 50px;
    accent-color: #0072bb;
    background: linear-gradient(to right, transparent calc(50% - 2px), #0072bb calc(50% - 2px), #0072bb calc(50% + 2px), transparent calc(50% + 2px));
    background-size: 100% 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.leaflet-control-orderlayer .control-line .range-with-input .range-slider:hover {
    accent-color: #005fa3;
    background: linear-gradient(to right, transparent calc(50% - 2px), #005fa3 calc(50% - 2px), #005fa3 calc(50% + 2px), transparent calc(50% + 2px));
    background-size: 100% 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.leaflet-control-orderlayer .control-line .range-with-input .range-input {
    width: 50px;
    min-width: 50px;
    height: 22px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 11px;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.leaflet-control-orderlayer .control-line .range-with-input .range-input::-webkit-outer-spin-button,
.leaflet-control-orderlayer .control-line .range-with-input .range-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.leaflet-control-orderlayer .control-line input[type="range"] {
    flex: 1;
    min-width: 0;
    accent-color: #0072bb;
    background: linear-gradient(to right, transparent calc(50% - 2px), #0072bb calc(50% - 2px), #0072bb calc(50% + 2px), transparent calc(50% + 2px));
    background-size: 100% 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.leaflet-control-orderlayer .control-line input[type="range"]:hover {
    accent-color: #005fa3;
    background: linear-gradient(to right, transparent calc(50% - 2px), #005fa3 calc(50% - 2px), #005fa3 calc(50% + 2px), transparent calc(50% + 2px));
    background-size: 100% 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.leaflet-control-orderlayer .control-line .val {
    font-size: 11px;
    color: #666;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.leaflet-control-orderlayer .control-line select {
    flex: 1;
    height: 22px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 11px;
    background: #fff;
}

.leaflet-control-orderlayer .ol-row .actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
}

.leaflet-control-orderlayer .ol-row .actions .btn-remember,
.leaflet-control-orderlayer .ol-row .actions .btn-reset {
    width: 24px;
    height: 20px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 3px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-control-orderlayer .ol-row .actions .btn-remember:hover,
.leaflet-control-orderlayer .ol-row .actions .btn-reset:hover {
    background: #e0e0e0;
}

.leaflet-control-orderlayer .ol-dragging {
    opacity: 0.7;
    background: #f0f7ff;
}

.leaflet-control-orderlayer .ol-ghost {
    opacity: 0.4;
    background: #e0e0e0;
}

.leaflet-control-orderlayer #listaOrderLayer::-webkit-scrollbar {
    width: 5px;
}

.leaflet-control-orderlayer #listaOrderLayer::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}