﻿.cc-register-page {
    max-width: 100%;
    min-height: calc(100vh - 140px);
    overflow-x: hidden;
    padding: 4px 0 24px 0;
}

.cc-page-header {
    margin-bottom: 16px;
}

.cc-filter-card {
    padding: 16px;
    margin-bottom: 16px;
}

.cc-filter-grid {
    display: grid;
    grid-template-columns: 180px 180px 220px auto;
    gap: 12px;
    align-items: end;
}

.cc-filter-item label {
    display: block;
    font-size: 13px;
    color: #667085;
    margin-bottom: 6px;
}

.cc-filter-action {
    display: flex;
    justify-content: flex-start;
}

.cc-btn-search {
    min-height: 40px;
    padding-left: 18px;
    padding-right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cc-filter-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -6px 0 16px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475467;
    font-size: 13px;
}

    .cc-filter-summary i {
        color: #2f80ed;
    }

    .cc-filter-summary span {
        font-weight: 600;
        color: #344054;
    }

.cc-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.cc-kpi-card {
    min-height: 96px;
    padding: 16px;
}

.cc-kpi-label {
    font-size: 13px;
    color: #667085;
    margin-bottom: 6px;
}

.cc-kpi-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    color: #101828;
    font-family: "Public Sans", "Prompt", sans-serif;
}

.cc-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

.cc-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

    .cc-section-head h2 {
        font-size: 18px;
        font-weight: 700;
        color: #101828;
        margin: 0;
    }

    .cc-section-head p {
        font-size: 13px;
        color: #667085;
        margin: 4px 0 0 0;
    }

.cc-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
/* =========================
   CHART
   ========================= */

.cc-chart-card {
    max-width: 100%;
    overflow: hidden;
    padding: 16px;
    margin-bottom: 16px;
}

.cc-chart-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    min-height: 340px;
    max-height: 340px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
}

    .cc-chart-wrap canvas {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
/* =========================
   TABLE
   ========================= */

.cc-table-card {
    max-width: 100%;
    min-height: 560px;
    overflow: hidden;
    padding: 16px;
}

.cc-table-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 420px;
    max-height: 680px;
    overflow: auto;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #ffffff;
}

.cc-excel-table {
    width: max-content !important;
    min-width: 1280px !important;
    max-width: none !important;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto !important;
    font-size: 12px;
    background: #ffffff;
}

    .cc-excel-table th,
    .cc-excel-table td {
        border-right: 1px solid #d9e2ec;
        border-bottom: 1px solid #d9e2ec;
        padding: 2px 4px;
        line-height: 1.22;
        vertical-align: middle;
        text-align: center;
    }

    .cc-excel-table th {
        position: sticky;
        height: 30px;
        min-height: 30px;
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
        background: #4c1d95;
        background-clip: padding-box;
        white-space: normal;
        word-break: keep-all;
        overflow: visible;
    }

    .cc-excel-table td {
        font-size: 12px;
        color: #334155;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cc-excel-table .cc-header-row-1 th {
        top: 0;
        z-index: 30;
        background: #3b0764 !important;
    }

    .cc-excel-table .cc-header-row-2 th {
        top: 30px;
        z-index: 29;
        background: #581c87 !important;
    }

    .cc-excel-table .cc-header-row-3 th {
        top: 60px;
        z-index: 28;
        background: #6b21a8 !important;
    }

    /* sticky left columns */
    .cc-excel-table th:nth-child(1),
    .cc-excel-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 18;
        min-width: 72px;
        width: 72px;
        text-align: center !important;
    }

    .cc-excel-table th:nth-child(2),
    .cc-excel-table td:nth-child(2) {
        position: sticky;
        left: 72px;
        z-index: 18;
        min-width: 130px;
        width: 130px;
    }

    .cc-excel-table td:nth-child(1),
    .cc-excel-table td:nth-child(2) {
        background: #ffffff;
    }

    .cc-excel-table .cc-header-row-1 th:nth-child(1),
    .cc-excel-table .cc-header-row-1 th:nth-child(2) {
        z-index: 40;
        background: #3b0764 !important;
    }

    .cc-excel-table .cc-header-row-2 th:nth-child(1),
    .cc-excel-table .cc-header-row-2 th:nth-child(2),
    .cc-excel-table .cc-header-row-3 th:nth-child(1),
    .cc-excel-table .cc-header-row-3 th:nth-child(2) {
        z-index: 39;
        background: #581c87 !important;
    }

    .cc-excel-table .cc-zone-row td {
        background: #ede9fe !important;
        color: #4c1d95;
        font-weight: 700;
    }

        .cc-excel-table .cc-zone-row td:nth-child(2) {
            color: transparent !important;
        }

    .cc-excel-table .cc-total-row td {
        background: #4c1d95 !important;
        color: #ffffff !important;
        font-weight: 800;
    }

.cc-empty-cell {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    text-align: center !important;
    font-style: italic;
}

.cc-excel-table tbody tr:hover td {
    background: #f8fafc;
}
/* =========================
   MAP PLACEHOLDER
   ========================= */

.cc-map-card {
    padding: 16px;
}

.cc-map-placeholder {
    min-height: 320px;
    border: 1px dashed #d0d5dd;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #667085;
    text-align: center;
    padding: 24px;
}

.cc-map-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #eef4ff;
    color: #2f80ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}

.cc-map-title {
    font-size: 16px;
    font-weight: 700;
    color: #344054;
    margin-bottom: 6px;
}

.cc-map-desc {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.5;
}

.cc-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #475467;
}

    .cc-map-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.cc-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.cc-good {
    background: #12b76a;
}

.cc-watch {
    background: #fdb022;
}

.cc-risk {
    background: #f04438;
}

/* =========================
   LOADING
   ========================= */

.cc-soft-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-soft-loading-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e3e9f0;
    box-shadow: 0 10px 28px rgba(31, 95, 139, 0.16);
    color: #243447;
    font-weight: 600;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991px) {
    .cc-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-kpi-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .cc-filter-grid {
        grid-template-columns: 1fr;
    }

    .cc-btn-search {
        width: 100%;
        justify-content: center;
    }

    .cc-kpi-value {
        font-size: 26px;
    }
}
/* =========================
   TOAST
   ========================= */

.cc-toast {
    position: fixed;
    left: 50%;
    top: 22px;
    transform: translateX(-50%) translateY(-12px);
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all .25s ease;
    pointer-events: none;
}

    .cc-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .cc-toast i {
        color: #12b76a;
    }