:root {
    --yc-navy: #2e3192;
    --yc-red: #e31e24;
    --yc-sky: #8dd3f5;
    --bs-primary: #2e3192;
    --bs-primary-rgb: 46, 49, 146;
    --bs-link-color: #2e3192;
    --bs-link-color-rgb: 46, 49, 146;
}

body {
    background: #f3f6fb;
    color: #1f2433;
}

.btn-primary {
    --bs-btn-bg: var(--yc-navy);
    --bs-btn-border-color: var(--yc-navy);
    --bs-btn-hover-bg: #23266f;
    --bs-btn-hover-border-color: #23266f;
    --bs-btn-active-bg: #1c1e5a;
}

.btn-outline-primary {
    --bs-btn-color: var(--yc-navy);
    --bs-btn-border-color: var(--yc-navy);
    --bs-btn-hover-bg: var(--yc-navy);
    --bs-btn-hover-border-color: var(--yc-navy);
}

.text-bg-primary { background-color: var(--yc-navy) !important; }

.topbar { background: var(--yc-navy); }

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--yc-navy) 0%, #1c1e5a 100%);
    display: flex;
    flex-direction: column;
    border-right: 4px solid var(--yc-red);
}

@media (min-width: 992px) {
    .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
}

@media (max-width: 991.98px) {
    .sidebar.offcanvas-lg { background: linear-gradient(180deg, var(--yc-navy) 0%, #1c1e5a 100%); }
}

.sidebar-brand {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.sidebar-brand img { max-width: 100%; max-height: 110px; }

.sidebar .nav-link {
    color: rgba(255, 255, 255, .82);
    border-radius: 8px;
    padding: .55rem .8rem;
    margin-bottom: 2px;
}

.sidebar .nav-link i { width: 22px; display: inline-block; }

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

.sidebar .nav-link.active { background: var(--yc-sky); color: var(--yc-navy); font-weight: 600; }

.content { min-width: 0; }

.page-title { color: var(--yc-navy); font-weight: 700; }

.card { border: 0; box-shadow: 0 1px 3px rgba(20, 30, 80, .08); border-radius: 12px; }

.card-header { background: #fff; border-bottom: 1px solid #eef0f6; font-weight: 600; border-radius: 12px 12px 0 0 !important; }

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .value { font-size: 1.45rem; font-weight: 700; line-height: 1.2; }

.table thead th { font-size: .8rem; text-transform: uppercase; color: #6b7280; font-weight: 600; white-space: nowrap; }

.table td { vertical-align: middle; }

.bar { height: 8px; background: #e6e9f4; border-radius: 4px; overflow: hidden; }

.bar > span { display: block; height: 100%; background: var(--yc-navy); }

.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, #d9f1fc 0%, #f3f6fb 45%), #f3f6fb;
}

.atrasado { color: var(--yc-red); font-weight: 600; }

@media print {
    .sidebar, .topbar, .no-print, .btn, form.no-print { display: none !important; }
    .content { padding: 0 !important; }
    body { background: #fff; }
    .card { box-shadow: none; }
}
