﻿/* ===============================
   팝업 오버레이
   =============================== */
.kiosk-modal-backdrop,
.modal-backdrop.show {
    background: rgba(2, 8, 23, 0.62) !important;
    backdrop-filter: blur(4px);
    opacity: 1 !important;
}

/* ===============================
   팝업 전체
   =============================== */
.mix-popup {
    width: min(94vw, 520px);
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #08162f 0%, #0b1d44 100%);
    border: 1px solid rgba(120, 165, 255, 0.42);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    color: #fff;
}

/* ===============================
   헤더
   =============================== */
.mix-popup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #5075e8 0%, #3559c9 100%);
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.mix-popup__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: none;
}

.mix-popup__close {
    margin-left: auto;
    width: 36px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: #ef3b4d;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

/* ===============================
   본문
   =============================== */
.mix-popup__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden; /* 추가 */
    padding: 14px;
    -webkit-overflow-scrolling: touch;
}

/* ===============================
   요약 카드
   =============================== */
.mix-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.mix-summary__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(80,120,220,.22), rgba(255,255,255,.05));
    border: 1px solid rgba(120,170,255,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.mix-summary__item--full {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(70,120,255,.26), rgba(255,255,255,.05));
    border: 1px solid rgba(130,180,255,.30);
}

.mix-summary__label {
    font-size: 12px;
    font-weight: 600;
    color: #a9c4ff;
    line-height: 1.2;
}

.mix-summary__value {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    word-break: keep-all;
}

.mix-summary__value--accent {
    color: #9ed0ff;
}

/* ===============================
   섹션 제목
   =============================== */
.mix-popup__section-title {
    margin: 4px 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #dbeafe;
    letter-spacing: -0.2px;
}

/* ===============================
   팝업 전용 테이블
   =============================== */
table.mix-popup-table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;

    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(140,180,255,.58);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

    table.mix-popup-table th,
    table.mix-popup-table td {
        padding: 8px 10px;
        font-size: 13px;
        text-align: center;
        line-height: 1.2;

        overflow: hidden;
    }

    table.mix-popup-table thead th {
        background: linear-gradient(180deg, #6b8ef8 0%, #4a6edf 100%);
        color: #fff;
        font-weight: 800;
        border-bottom: 2px solid rgba(255,255,255,.34);
    }

    table.mix-popup-table th:not(:last-child),
    table.mix-popup-table td:not(:last-child) {
        border-right: 1px solid rgba(255,255,255,.22);
    }

    table.mix-popup-table tbody td {
        background: #133179;
        color: #f3f7ff;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

    table.mix-popup-table tbody tr:nth-child(even) td {
        background: #29489d;
    }

    table.mix-popup-table tbody tr:last-child td {
        border-bottom: 0;
    }

    table.mix-popup-table .mix-col-name {
        font-weight: 800;
        color: #ffffff;
    }

    table.mix-popup-table .mix-col-value {
        text-align: right;
        padding-right: 14px;
        color: #ffffff;
    }

    table.mix-popup-table .mix-col-err {
        text-align: right;
        padding-right: 14px;
        color: #dbeafe;
        font-variant-numeric: tabular-nums;
    }

        /* 오차 강조 */
        table.mix-popup-table .mix-col-err.is-plus {
            color: #ffd6d6;
        }

        table.mix-popup-table .mix-col-err.is-minus {
            color: #cfe2ff;
        }

/* ===============================
   푸터
   =============================== */
.mix-popup__footer {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.10);
}

.mix-popup__footer-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: #ea3145;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

/* ===============================
   모바일
   =============================== */
@media (max-width: 480px) {
    .mix-popup {
        width: 96vw;
        max-height: 90vh;
        border-radius: 16px;
    }

    .mix-popup__header {
        padding: 9px 12px 8px;
    }

    .mix-popup__title {
        font-size: 17px;
    }

    .mix-popup__close {
        width: 38px;
        height: 34px;
        font-size: 18px;
    }

    .mix-popup__body {
        padding: 12px;
    }

    .mix-summary {
        gap: 8px;
    }

    .mix-summary__item {
        padding: 10px 10px;
    }

    .mix-summary__label {
        font-size: 11px;
    }

    .mix-summary__value {
        font-size: 14px;
    }

    .mix-popup__section-title {
        font-size: 14px;
    }

    table.mix-popup-table th,
    table.mix-popup-table td {
        padding: 7px 8px;
        font-size: 12px;
    }

    .mix-popup__footer-btn {
        height: 44px;
        font-size: 17px;
    }
}
