:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1a1f36;
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active: #4f6ef7;
    --topbar-height: 58px;
    --danger-color: #dc3545;
    --success-color: #198754;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    min-height: 100vh;
    color: #2d3436;
}

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: 100vh; }

.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s;
}

@media (max-width: 991.98px) {
    .main-wrapper { margin-left: 0; }
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Logo */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f6ef7, #6c5ce7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,110,247,0.4);
    flex-shrink: 0;
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.sidebar-sub {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
}

.sidebar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}
.sidebar-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* User */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.user-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #00cec9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.user-info { overflow: hidden; }

.user-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-role {
    font-size: 0.7rem;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.role-admin { background: rgba(255,71,87,0.2); color: #ff6b81; }
.role-profesor { background: rgba(79,110,247,0.2); color: #74b9ff; }

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.sidebar-section-title {
    padding: 16px 20px 8px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.25);
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 1px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: rgba(255,255,255,0.9);
    border-left-color: rgba(255,255,255,0.2);
}

.sidebar-link.active {
    background: var(--sidebar-active);
    color: #fff;
    border-left-color: transparent;
    box-shadow: 0 4px 15px rgba(79,110,247,0.35);
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-link.active i { opacity: 1; }

/* Footer */
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 0 8px;
}

.sidebar-logout {
    color: rgba(255,99,107,0.7) !important;
    border-left-color: transparent !important;
}
.sidebar-logout:hover {
    background: rgba(255,99,107,0.1) !important;
    color: #ff6b6b !important;
    border-left-color: rgba(255,99,107,0.5) !important;
}

.sidebar-version {
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.15);
    padding-top: 4px;
}

/* ===== TOPBAR ===== */
.topbar {
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #2d3436;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.topbar-toggle:hover { background: #f0f2f5; }

@media (max-width: 991.98px) {
    .topbar-toggle { display: block; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    letter-spacing: -0.3px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-user {
    font-size: 0.82rem;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ===== CONTENT ===== */
.main-content {
    flex: 1;
    padding: 24px;
}

/* ===== CARDS ===== */
.card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
}

.card-header {
    font-weight: 600;
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
    padding: 14px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i { font-size: 1.1rem; }

.header-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(79, 110, 247, 0.12);
    color: #4f6ef7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.card-body { padding: 20px; }

/* ===== STAT CARDS ===== */
.stat-card {
    border: none;
    border-radius: 14px;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.stat-card .stat-icon {
    font-size: 2.8rem;
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.stat-blue { background: linear-gradient(135deg, #4f6ef7 0%, #6c5ce7 100%); }
.stat-green { background: linear-gradient(135deg, #00b894 0%, #00cec9 100%); }
.stat-orange { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
.stat-purple { background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%); }
.stat-teal { background: linear-gradient(135deg, #00cec9 0%, #55efc4 100%); }
.stat-red { background: linear-gradient(135deg, #ff7675 0%, #d63031 100%); }

/* ===== TABLE ===== */
.table { margin-bottom: 0; }

.table th {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
    color: #636e72;
    padding: 12px 14px;
}

.table td {
    vertical-align: middle;
    font-size: 0.85rem;
    padding: 11px 14px;
    border-bottom: 1px solid #f0f2f5;
}

.table-hover tbody tr:hover { background-color: rgba(79,110,247,0.04); }

/* ===== BADGES ===== */
.badge { font-size: 0.7rem; padding: 0.35em 0.65em; font-weight: 600; letter-spacing: 0.3px; }

/* ===== BUTTONS ===== */
.btn { border-radius: 8px; font-weight: 500; font-size: 0.85rem; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; border-radius: 6px; }

/* ===== FORMS ===== */
.form-label {
    font-weight: 500;
    font-size: 0.83rem;
    color: #2d3436;
}

.form-control, .form-select {
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border-color: #dfe6e9;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79,110,247,0.15);
}

/* ===== MODAL ===== */
.modal-content { border-radius: 14px; border: none; overflow: hidden; }
.modal-header { background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.modal-title { font-weight: 700; font-size: 1rem; }
.modal-footer { background: #f8f9fa; border-top: 1px solid #e9ecef; }
.modal-lg { max-width: 900px; }

/* ===== PAGINATION ===== */
.pagination-sm .page-link {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    color: #4f6ef7;
}
.pagination-sm .page-item.active .page-link { background: #4f6ef7; color: #fff; }

/* ===== ALERTS ===== */
.alert { font-size: 0.85rem; padding: 0.7rem 1.1rem; border-radius: 10px; border: none; }

/* ===== MISC ===== */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fade-in { animation: fadeIn 0.3s ease-in; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.is-invalid { border-color: var(--danger-color) !important; }
.is-valid { border-color: var(--success-color) !important; }

/* ===== PAGE HEADING ===== */
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.page-heading h2 {
    font-weight: 800;
    font-size: 1.4rem;
    color: #1a1f36;
    margin: 0;
    letter-spacing: -0.4px;
}

.page-heading .heading-sub {
    font-size: 0.82rem;
    color: #636e72;
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.heading-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(79, 110, 247, 0.1);
    color: #4f6ef7;
    border: 1px solid rgba(79, 110, 247, 0.2);
}

.topbar-date {
    font-size: 0.78rem;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* ===== STAT CARDS (rediseño) ===== */
.stat-card {
    border: none;
    border-radius: 16px;
    color: #fff;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    min-height: 118px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -18%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.stat-body {
    position: relative;
    z-index: 1;
}

.stat-icon-bubble {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.76rem;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.stat-trend {
    font-size: 0.7rem;
    opacity: 0.95;
    margin-top: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.18);
    padding: 3px 9px;
    border-radius: 20px;
    width: fit-content;
    font-weight: 600;
}

.stat-blue { background: linear-gradient(135deg, #4f6ef7 0%, #6c5ce7 100%); }
.stat-green { background: linear-gradient(135deg, #00b894 0%, #00cec9 100%); }
.stat-orange { background: linear-gradient(135deg, #f8b26a 0%, #e17055 100%); }
.stat-purple { background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%); }
.stat-teal { background: linear-gradient(135deg, #00cec9 0%, #06a8a3 100%); }
.stat-red { background: linear-gradient(135deg, #ff8a80 0%, #d63031 100%); }

/* ===== RESUMEN DE ESTADOS ===== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px 28px;
}

.summary-item .d-flex { margin-bottom: 6px; }

.summary-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2d3436;
}

.summary-pct {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f6ef7;
}

.summary-progress {
    height: 8px;
    border-radius: 20px;
    background: #eef0f4;
}

.summary-progress .progress-bar {
    border-radius: 20px;
    background: linear-gradient(90deg, #4f6ef7, #6c5ce7);
}

.card-accent {
    border-top: 3px solid #4f6ef7;
}

.card-accent-green { border-top: 3px solid #00b894; }
.card-accent-orange { border-top: 3px solid #e17055; }
.card-accent-red { border-top: 3px solid #d63031; }
.card-accent-purple { border-top: 3px solid #6c5ce7; }
.card-accent-teal { border-top: 3px solid #00cec9; }

/* ===== CHART BOX ===== */
.chart-box {
    position: relative;
    height: 280px;
}
.chart-box canvas {
    max-width: 100%;
}
.chart-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== LOGIN ===== */
.login-body {
    background: linear-gradient(135deg, #1a1f36 0%, #232a4d 55%, #4f6ef7 130%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.login-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.14;
    background: #fff;
}
.login-blob-1 { width: 420px; height: 420px; top: -120px; left: -120px; }
.login-blob-2 { width: 340px; height: 340px; bottom: -100px; right: -80px; background: #6c5ce7; }
.login-blob-3 { width: 180px; height: 180px; top: 40%; right: 15%; background: #4f6ef7; }

.login-wrapper {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 2;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 34px 32px 26px;
    box-shadow: 0 24px 60px rgba(6, 10, 40, 0.45);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.login-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f6ef7, #6c5ce7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(79, 110, 247, 0.4);
    flex-shrink: 0;
}

.login-brand-text h4 {
    font-weight: 800;
    color: #1a1f36;
    margin: 0;
    letter-spacing: -0.5px;
}

.login-brand-text span {
    font-size: 0.75rem;
    color: #636e72;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4f6ef7;
    background: rgba(79, 110, 247, 0.1);
    border: 1px solid rgba(79, 110, 247, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.login-alert { border: none; border-radius: 10px; font-size: 0.85rem; }

.form-field .form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #2d3436;
    margin-bottom: 6px;
    display: block;
}

.input-group-icon {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dfe6e9;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group-icon:focus-within {
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15);
}
.input-group-icon .input-group-text {
    background: #f8f9fa;
    border: none;
    color: #a0a8b8;
    padding: 0.55rem 0.9rem;
}
.input-group-icon .form-control {
    border: none;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}
.input-group-icon .form-control:focus {
    border: none;
    box-shadow: none;
}
.input-group .btn-eye {
    border: none;
    background: #f8f9fa;
    color: #636e72;
    padding: 0 1rem;
}
.input-group .btn-eye:hover { background: #eef0f4; color: #2d3436; }

.btn-login {
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f6ef7, #6c5ce7);
    border: none;
    box-shadow: 0 8px 20px rgba(79, 110, 247, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 110, 247, 0.45);
}

.login-demo {
    margin-top: 24px;
    background: #f6f8fc;
    border: 1px dashed #cdd6ea;
    border-radius: 12px;
    padding: 14px 16px;
}
.login-demo-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4f6ef7;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.demo-cred {
    font-size: 0.8rem;
    color: #57606f;
    padding: 2px 0;
}
.demo-cred code {
    background: #eef1f8;
    color: #1a1f36;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.76rem;
}

.login-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    margin-top: 20px;
    margin-bottom: 0;
}

/* ===== CUENTAS DISPONIBLES ===== */
.login-accounts {
    margin-top: 22px;
    border-top: 1px solid #eef0f4;
    padding-top: 16px;
}

.login-accounts-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f8fc;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4f6ef7;
    cursor: pointer;
    transition: background 0.2s;
}
.login-accounts-toggle:hover { background: #eef1f8; }
.login-accounts-toggle .bi-chevron-down { transition: transform 0.25s; }
.login-accounts-toggle .bi-chevron-down.rotado { transform: rotate(180deg); }

.login-accounts-list {
    display: none;
    margin-top: 12px;
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    scrollbar-width: thin;
}

.login-accounts-list.show { display: block; }

.accounts-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a0a8b8;
    padding: 10px 8px 4px;
}

.account-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    border-radius: 9px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.account-item + .account-item { margin-top: 2px; }
.account-item:hover { background: #f0f3fb; }

.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #4f6ef7, #6c5ce7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.account-avatar-admin {
    background: linear-gradient(135deg, #d63031, #e17055);
}

.account-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-cred {
    font-size: 0.72rem;
    color: #636e72;
    white-space: nowrap;
}
.account-cred b { color: #4f6ef7; }

/* ===== PRINT ===== */
@media print {
    .sidebar, .topbar, .no-print, .btn, .d-print-none { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .main-content { padding: 0 !important; }
    body { background: #fff !important; }
    .card { border: none !important; box-shadow: none !important; }
    .table { font-size: 11px; }
    @page { margin: 15mm; }
}