body {
    margin: 0;
    font-family: sans-serif;
    background: url('/images/bkscreen/POS-image1.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.page-shell {
    min-height: 100vh;
    padding: 8px;
    box-sizing: border-box;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.18);
    position: relative;
}

.top-logo-link {
    display: inline-block;
    margin-bottom: 8px;
}

.top-logo {
  width: 1.5cm;
    height: 1.5cm;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
    padding: 4px;
}

#franchiseTopBtn {
    position: fixed;
    top: 8px;
    right: 12px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 30px;
    padding: 9 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #eef4ff;
    background: rgba(41, 64, 92, 0.72);
    border: 1px solid rgba(206, 221, 243, 0.40);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

#franchiseTopBtn:hover {
    background: rgba(55, 84, 120, 0.84);
}

.page-title {
    text-align: center;
    margin: 8px 0 18px;
    font-size: 30px;
    font-weight: 800;
}

.filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 18px;
}

#yearSelect {
    min-width: 120px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 15px;
}

/* KPI */
.kpi-container {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.kpi-card {
    flex: 1 1 180px;
    min-height: 92px;
    background: rgba(0,0,0,0.72);
    padding: 14px 16px;
    border-radius: 14px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.08);
}

.kpi-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

/* charts */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.chart-card {
    background: rgba(0, 0, 0, 0.70);
    border-radius: 18px;
    padding: 14px 16px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.08);
}

.chart-card-wide {
    grid-column: span 2;
}

.chart-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
}

.chart-box {
    position: relative;
    width: 100%;
}

.line-box {
    height: 340px;
}

.rank-box {
    height: 340px;
}

.pie-box {
    height: 520px;
}

.chart-box canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* table */
.data-table {
    width: 100%;
    background: rgba(0,0,0,0.76);
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    font-size: 14px;
}

.data-table th {
    font-size: 16px;
    font-weight: 800;
    background: rgba(0,0,0,0.42);
}

.data-table tbody tr:hover {
    background: rgba(255,255,255,0.06);
}

@media (max-width: 1100px) {
    #franchiseTopBtn {
        min-width: 170px;
        height: 50px;
        font-size: 14px;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-card-wide {
        grid-column: span 1;
    }

    .line-box,
    .rank-box {
        height: 320px;
    }

    .pie-box {
        height: 460px;
    }
}

@media (max-width: 700px) {
    .page-shell {
        padding: 16px;
    }

    .top-logo {
        width: 110px;
    }

    #franchiseTopBtn {
        top: 12px;
        right: 12px;
        min-width: 150px;
        height: 46px;
        padding: 0 16px;
        font-size: 13px;
    }

    .page-title {
        font-size: 25px;
        margin-top: 16px;
    }

    .kpi-value {
        font-size: 20px;
    }

    .line-box,
    .rank-box {
        height: 290px;
    }

    .pie-box {
        height: 420px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}