:root{
    --primary:#3D5588;
    --primary-dark:#2c3f66;
    --accent:#2E7D32;
    --accent-dark:#1b5e20;
    --bg:#eef2f7;
    --surface:#ffffff;
    --text-main:#1f2937;
    --text-muted:#6b7280;
    --border:#e5e9f0;
    --radius-lg:18px;
    --radius-md:14px;
    --radius-sm:10px;
    --shadow-sm:0 3px 12px rgba(15,23,42,.06);
    --shadow-md:0 8px 24px rgba(15,23,42,.10);
    --shadow-lg:0 14px 34px rgba(15,23,42,.16);
    --gap:24px;
    --container-max:1600px;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:"Segoe UI",Arial,sans-serif;
    background:var(--bg);
    color:var(--text-main);
}

.container{
    width:94%;
    max-width:var(--container-max);
    margin:28px auto;
}

/* ---------- Header ---------- */

.header{
    background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);
    color:white;
    border-radius:var(--radius-lg);
    padding:32px 40px;
    display:flex;
    align-items:center;
    gap:28px;
    box-shadow:var(--shadow-lg);
}

.logo-box{
    flex-shrink:0;
    width:110px;
    height:110px;
    background:white;
    border-radius:var(--radius-md);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:var(--shadow-md);
}

.logo{
    width:88px;
    height:auto;
    display:block;
}

.header-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
}

.header-text h1{
    margin:0;
    font-size:34px;
    font-weight:700;
    letter-spacing:.3px;
}

.header-text p{
    margin:0;
    font-size:16px;
    color:#dbe4f5;
    letter-spacing:.4px;
    font-weight:400;
}

/* ---------- KPI Cards ---------- */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:var(--gap);
    margin-top:var(--gap);
}

.card{
    background:var(--surface);
    border-radius:var(--radius-md);
    padding:24px 26px;
    box-shadow:var(--shadow-sm);
    border:1px solid var(--border);
    transition:transform .15s ease,box-shadow .15s ease;
}

.card:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow-md);
}

.card h3{
    margin:0 0 10px;
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.6px;
    color:var(--text-muted);
}

.number{
    color:var(--primary);
    font-size:40px;
    font-weight:700;
    line-height:1;
}

/* ---------- Panel / Report ---------- */

.panel{
    margin-top:var(--gap);
    background:var(--surface);
    border-radius:var(--radius-md);
    padding:28px;
    box-shadow:var(--shadow-sm);
    border:1px solid var(--border);
}

.report-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
    gap:12px;
}

.report-header h2{
    margin:0;
    color:var(--primary);
    font-size:20px;
    font-weight:700;
}

.excel-button{
    background:var(--accent);
    color:white;
    text-decoration:none;
    padding:11px 20px;
    border-radius:8px;
    font-weight:600;
    font-size:14px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:background .15s ease;
}

.excel-button:hover{
    background:var(--accent-dark);
}

/* ---------- Table ---------- */

.table-wrap{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:640px;
}

thead{
    background:var(--primary);
    color:white;
}

th{
    padding:14px 15px;
    text-align:left;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.4px;
    font-weight:600;
}

td{
    padding:14px 15px;
    border-bottom:1px solid var(--border);
    font-size:14px;
}

tbody tr:hover{
    background:#f6f8fb;
}

.status-pill{
    padding:4px 12px;
    border-radius:20px;
    font-size:12.5px;
    font-weight:700;
    display:inline-block;
}

.status-pill.clicked{
    color:#c62828;
    background:#fdecea;
}

.status-pill.delivered{
    color:#2e7d32;
    background:#eaf6ec;
}

/* ---------- Responsive ---------- */

@media (max-width:992px){
    .header{
        flex-direction:column;
        align-items:flex-start;
    }
    .header-text h1{
        font-size:28px;
    }
}

@media (max-width:600px){
    .container{
        width:96%;
        margin:16px auto;
    }
    .cards{
        grid-template-columns:1fr 1fr;
    }
    .number{
        font-size:32px;
    }
}
