:root {
    --brand-blue: #0d3b66;
    --brand-orange: #f4a300;
    --brand-dark: #10243a;
}

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.topbar {
    background-color: var(--brand-blue);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.sidebar {
    width: 240px;
    background-color: var(--brand-dark);
    flex-shrink: 0;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #cbd5e1;
    padding: .6rem .9rem;
    border-radius: .4rem;
    margin-bottom: .15rem;
    font-size: .93rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: var(--brand-orange);
    color: #10243a;
    font-weight: 600;
}

.content {
    flex-grow: 1;
    width: 100%;
}

.card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: .6rem;
}

.kpi-card {
    border-left: 4px solid var(--brand-orange);
}

.table thead th {
    background-color: #eef2f7;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.table td, .table th {
    vertical-align: middle;
    font-size: .9rem;
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -240px;
        z-index: 1030;
        transition: left .2s ease;
        height: calc(100vh - 56px);
    }
    .sidebar.show {
        left: 0;
    }
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
}

.login-card {
    width: 100%;
    max-width: 380px;
}

@media print {
    .topbar, .sidebar, .no-print { display: none !important; }
    .content { width: 100% !important; }
    body { background: #fff; }
}
