﻿/* ===============================
   공통 테이블 - 입출차 현황
   =============================== */
table.hour-table {
    width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(8, 20, 58, 0.55);
    border: 1px solid rgba(120, 170, 255, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

    table.hour-table th,
    table.hour-table td {
        padding: 4px 2px;
        font-size: 11px;
        text-align: center;
        vertical-align: middle;
        line-height: 1.15;
        border: 0;
        border-bottom: 1px solid rgba(255,255,255,.10);
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: break-all;
    }

    /* 헤더 */
    table.hour-table thead th {
        background: linear-gradient(180deg,#6c8fff,#355fd6);
        color: #ffffff;
        font-weight: 800;
        font-size: 12px;
        letter-spacing: -0.2px;
        padding: 4px 2px;
        text-shadow: 0 1px 4px rgba(0,0,0,.28);
        border-bottom: 2px solid rgba(255,255,255,.35);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    }

        table.hour-table thead th:not(:last-child) {
            border-right: 1px solid rgba(255,255,255,.16);
        }

    /* 본문 */
    table.hour-table tbody td {
        background: #0b2a78;
        color: #ffffff;
        font-weight: 600;
    }

    table.hour-table tbody tr:nth-child(odd) td {
        background: #0b2a78;
    }

    table.hour-table tbody tr:nth-child(even) td {
        background: #2a4fb3;
    }

    table.hour-table tbody tr:hover td {
        background: #3f6de0;
    }

/* 컬럼 */
.col-auto {
    width: auto;
}

.col-m3 {
    width: 42px;
}

.col-water {
    width: 55px;
}

table.hour-table td.col-num {
    text-align: right;
    padding-right: 12px;
    font-variant-numeric: tabular-nums;
    color: #dbeafe;
    font-weight: 700;
}

/* 오류 행 */
.row-error1 td {
    background: linear-gradient( 180deg, #467fd6, #356bc4 55%, #2756a8 ) !important;
    color: #ffffff !important;
    text-shadow: none;
}


/* 오류 행 */
.row-error2 td {
    background: linear-gradient(180deg, rgba(255,230,90,.95), rgba(255,210,40,.92)) !important;
    color: #332600 !important;
    text-shadow: none;
}


/* ===============================
   팝업 테이블 - 배합 / 계량 상세
   =============================== */

/* 가로 스크롤 영역 */
.mix-design-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .mix-design-scroll::-webkit-scrollbar {
        display: none;
    }

/* 팝업 테이블 */
table.mix-popup-table.mix-design-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 16px;
}

    table.mix-popup-table.mix-design-table th,
    table.mix-popup-table.mix-design-table td {
        padding: 8px 10px;
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
        text-align: center;
        min-width: auto;
    }

        /* 첫 번째 컬럼 */
        table.mix-popup-table.mix-design-table th:first-child,
        table.mix-popup-table.mix-design-table td:first-child {
            min-width: 52px;
            text-align: center;
        }

        /* 숫자 컬럼 */
        table.mix-popup-table.mix-design-table td.mix-col-value {
            text-align: right !important;
            padding-right: 10px;
            min-width: 46px;
            font-variant-numeric: tabular-nums;
        }

        /* 항목 컬럼 */
        table.mix-popup-table.mix-design-table td:first-child {
            text-align: left;
            padding-left: 10px;
        }

/* 구분 컬럼 */
.mix-type-col {
    text-align: left !important;
    min-width: 44px;
    padding-left: 10px;
}
