:root {
    --primary: #2563eb;
    --dark: #111827;
    --sidebar: #0f172a;
    --sidebar-hover: #1e293b;
    --bg: #f3f6fb;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--sidebar);
    color: #fff;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 20px 0;
}

.brand {
    padding: 0 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand h4 {
    margin: 0;
    font-weight: 700;
}

.brand small {
    color: #94a3b8;
}

.nav-menu {
    margin-top: 20px;
}

.nav-menu a {
    display: block;
    padding: 12px 22px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--sidebar-hover);
    color: #fff;
}

.main {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page {
    padding: 28px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
}

.card-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.stat-card small {
    color: var(--muted);
}

.stat-card h3 {
    margin: 8px 0 0;
    font-size: 30px;
}

.table {
    background: #fff;
}

.table th {
    white-space: nowrap;
}

.action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.step-box {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.step span {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 8px;
}

.report-summary {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:12px 16px;
    margin-bottom:18px;
    font-size:14px;
}

.report-summary span {
    margin-right:22px;
    color:#374151;
}

.report-summary b {
    color:#111827;
}

.report-table th {
    background:#f3f4f6 !important;
    color:#111827;
    font-weight:600;
    font-size:13px;
    border-bottom:1px solid #d1d5db;
}

.report-table td {
    font-size:13px;
    vertical-align:middle;
}

.report-table tbody tr:hover {
    background:#f8fafc;
}

.review-row {
    background:#fffdf2;
}

.status-badge {
    min-width:95px;
    display:inline-block;
    text-align:center;
    font-weight:500;
}

.btn-action {
    padding:3px 8px;
    font-size:12px;
}

.filter-card {
    padding:16px;
}

.report-remarks small {
    display:block;
    margin-top:4px;
}

@media(max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .app {
        display: block;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 600px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 16px;
    }
}