/* Production Line OEE Grid */

.line-oee-panel {
    grid-column: span 6;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.line-selector {
    margin-bottom: 15px;
}

.line-selector select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.line-selector select:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent-cyan);
}

.line-selector select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.line-oee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    flex: 1;
    max-height: 350px;
    overflow-y: auto;
}

.line-oee-grid::-webkit-scrollbar {
    width: 8px;
}

.line-oee-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.line-oee-grid::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

.line-card {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line-card.healthy {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.05);
}

.line-card.warning {
    border-color: var(--accent-amber);
    background: rgba(255, 191, 0, 0.05);
}

.line-card.critical {
    border-color: var(--accent-red);
    background: rgba(255, 51, 102, 0.05);
}

.line-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.line-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 1.2em;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 5px;
}

.line-oee-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.line-card.healthy .line-oee-value {
    color: var(--accent-green);
}

.line-card.warning .line-oee-value {
    color: var(--accent-amber);
}

.line-card.critical .line-oee-value {
    color: var(--accent-red);
}

.line-oee-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.line-oee-bar-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.line-card.healthy .line-oee-bar-fill {
    background: var(--accent-green);
}

.line-card.warning .line-oee-bar-fill {
    background: var(--accent-amber);
}

.line-card.critical .line-oee-bar-fill {
    background: var(--accent-red);
}

.line-breakdown {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.line-breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-breakdown-label {
    text-transform: uppercase;
}

.line-breakdown-value {
    color: var(--text-primary);
    font-weight: 700;
}
