#screen-production {
    padding-bottom: 250px;
    /* Increased to allow scrolling when dropdowns are open */
}

#screen-production .employee-compact {
    display: flex !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    width: 100% !important;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding: 0 5px 10px 5px;
    border-bottom: 1px solid var(--border-color);
}

#screen-production .employee-compact span {
    color: var(--text-color);
    font-weight: 500;
}

/* Screen 3 & 5: Labels & Fields (v5.1.14) */
#screen-production .form-label,
#screen-production .field-label,
#screen-5 .form-label,
#screen-5 .field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color) !important;
    /* Force Blue labels */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding-left: 5px;
}

#screen-production .field-value,
#screen-5 .field-value {
    display: block;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff !important;
    /* Force White text for values */
    text-align: left;
    width: 100%;
}

/* Informational Field: Current Stage (v5.1.15) */
#screen-production .info-group {
    margin-bottom: 35px;
    /* Separation from input labels */
}

#screen-production .info-group .field-label {
    color: #ffffff !important;
    /* White label for info */
    opacity: 0.8;
}

#screen-production .info-group .field-value {
    color: var(--primary-color) !important;
    /* Blue value for info */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    /* 1.5x smaller padding */
    font-size: 14px;
}

/* Custom Select - Pushing Content Down (v5.1.14) */
.custom-select {
    position: relative;
    width: 100%;
}

.select-selected {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff !important;
    /* Force White text */
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-items {
    position: relative;
    /* v5.1.14: Push content down instead of absolute overlap */
    background: #1e293b;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    width: 100%;
}

.select-items div {
    color: #ffffff;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.select-items div:hover {
    background-color: rgba(0, 240, 255, 0.1);
}

.select-hide {
    display: none !important;
}

/* Buttons Fix */
#screen-production .buttons-stack,
#screen-timer .buttons-stack,
#screen-5 .buttons-stack,
#screen-6 .buttons-stack,
#screen-7 .buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 80px;
}

/* Centralizing Form & Input Styles (Lost from modular switch) (v3.3.12) */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-input {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

textarea.form-input {
    min-height: 80px;
    resize: none;
    font-family: inherit;
}

.btn-execute {
    background: var(--primary-color) !important;
    /* Match Screen 2 Design */
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4) !important;
}

.btn-finish {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

/* Toggle Switch (Переключатель Да/Нет) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #475569;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #eab308;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}