/* --- TOP DASHBOARD STATS --- */
.summary-dashboard {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 0; 
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.text-green { color: #4ade80; }
.text-blue { color: #60a5fa; }
.text-red { color: #f87171; }

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ramp-btn {
    padding: 8px 16px;
    background: var(--ak-blue);
    color: white;
    text-decoration: none;
    border-radius: 0; 
    font-weight: bold;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.ramp-btn:hover {
    background: var(--ak-yellow);
    color: var(--bg-dark);
}

.logout-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0; 
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: 0.2s;
}

.ops-dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 1200px;
    gap: 2px;
    padding: 2px;
    /* 🌟 높이를 고정값(calc)으로 주지 않고 남은 공간(flex)을 꽉 채우도록 변경 */
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
    width: 100%;
}

.panel-left, .panel-right {
    background: #070d1a; 
    border: 1px solid rgba(255,255,255,0.15); 
    border-radius: 0; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* 🌟 핵심: 자식 요소가 부모(화면) 높이를 뚫고 커지는 것 방지 */
}

.panel-right {
    display: grid;
    /* 🌟 FIDS 전용 패널: FHD에서 8개만 딱 맞게 표출되도록 높이를 조절 (360px -> 300px) */
    grid-template-rows: 340px 1fr;
    gap: 2px;
    background: transparent;
    border: none;
    min-height: 0;
}

@media (min-width: 1921px) {
    .panel-right {
        /* QHD에서는 폰트/간격이 스케일업 되므로, 8개 행이 짤리지 않게 높이를 정확히 맞춰줌 (400px -> 360px) */
        grid-template-rows: 405px 1fr;
    }
}

.right-top, .right-bottom {
    background: #0e1931;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-height: 0; /* 🌟 핵심: 자식 컨텐츠(스케줄 표)가 많아져도 이 영역이 늘어나지 않게 고정 */
}

/* Bottom Bar */
.bottom-bar {
    height: 40px;
    background: #070d1a;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.apps-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-btn {
    padding: 6px 20px;
    background: #0e1931;
    color: white;
    text-decoration: none;
    border-radius: 0; 
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid var(--ak-yellow);
    transition: 0.2s;
    text-transform: uppercase;
}

.app-btn:hover:not(.disabled-btn) {
    background: var(--ak-yellow);
    color: #070d1a;
    border-color: var(--ak-yellow);
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Container flexibility for children */
.fids-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}
