.visual-tech-monitor { max-width: 900px; padding: 0px; font-family: sans-serif; }
.monitor-row { margin-bottom: 50px; }
.monitor-label { font-weight: 700; margin-bottom: 15px; font-size: 20px; }

.monitor-controls-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.limit-val { font-size: 14px; font-weight: 700; color: #666; min-width: 35px; text-align: center; }

.range-container { 
    position: relative; 
    height: 30px; 
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.layer-track-left, .layer-avail, .layer-user, .layer-exist { 
    position: absolute; height: 10px; box-sizing: border-box; border-radius: 10px; transition: 0.3s; 
}
.layer-track-left { background-color: #d0f7d8 !important; left: 0; z-index: 0; }
.layer-avail { border: 1px solid #1a1a1a; width: 100%; z-index: 1; background: transparent; border-radius: 10px; }
.layer-exist { background: #459d57; z-index: 2; }
.layer-user { border: 2px solid #167f2b; z-index: 3; background: transparent; border-radius: 10px; }

/* Ползунки управления */
.handle {
    position: absolute; width: 100%; background: none; pointer-events: none;
    -webkit-appearance: none; margin: 0; z-index: 10;
    border: none; /* Убирает рамку в Firefox */
}

/* ФИКС ДЛЯ FIREFOX */
.handle::-moz-range-track {
    background: none;
    border: none;
}

.handle::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto;
    width: 24px; height: 24px; border-radius: 50%;
    background: #167f2b; border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); cursor: pointer;
}

.handle::-moz-range-thumb {
    pointer-events: auto; /* Явно разрешаем клики в Firefox */
    width: 20px; height: 20px; border-radius: 50%;
    background: #167f2b; border: 3px solid #fff; 
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.min-h::-webkit-slider-thumb { transform: translateX(-10px); }
.max-h::-webkit-slider-thumb { transform: translateX(10px); }
/* Смещение для Firefox */
.min-h::-moz-range-thumb { transform: translateX(-10px); }
.max-h::-moz-range-thumb { transform: translateX(10px); }

.tech-data { display: flex; flex-wrap: wrap; gap: 20px; font-size: 17px; align-items: center; }
.data-item-input { position: relative; display: inline-block; }
.tech-data input { width: 75px; border: 1px solid #ccc; text-align: center; font-weight: 700; padding: 2px 0; }

.tech-data input[type="number"]::-webkit-inner-spin-button,
.tech-data input[type="number"]::-webkit-outer-spin-button {
    opacity: 1 !important;
    -webkit-appearance: inner-spin-button !important;
}
.tech-data input[type="number"] { -moz-appearance: number-input; }

.input-suggestions {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    background: #fff; border: 1px solid #ccc; z-index: 100; max-height: 150px; overflow-y: auto;
}
.data-item-input:hover .input-suggestions { display: block; }
.suggestion-item { padding: 5px; cursor: pointer; text-align: center; border-bottom: 1px solid #eee; }
.suggestion-item:hover { background: #f0f7f1; color: #167f2b; }
.data-item.exist { color: #167f2b; font-weight: 700; }
