/* ===================================
   VACC_GEST - Style Responsive Mobile-First
   =================================== */

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --success-dark: #38a169;
    --danger: #f56565;
    --danger-dark: #e53e3e;
    --warning: #ed8936;
    --warning-dark: #dd6b20;
    --info: #4299e1;
    --info-dark: #3182ce;
    --dark: #1a2030;
    --darker: #141828;
    --gray-50: #f8f9fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-500: #718096;
    --gray-700: #2d3748;
    --gray-900: #1a202c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-sm: 6px;
    --sidebar-width: 270px;
    --topbar-height: 56px;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Empêcher le zoom auto sur les inputs (iOS) */
input, select, textarea {
    font-size: 16px !important;
}

/* ============================================================
   LOGIN PAGE - Mobile First
   ============================================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
}

.login-box .logo-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-box h1 {
    text-align: center;
    font-size: 20px;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.3;
}

.login-box .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 13px;
}

.login-box .form-control {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
}

.login-box .btn {
    padding: 14px;
    font-size: 16px;
    margin-top: 8px;
    border-radius: 10px;
}

.login-box .credentials-info {
    margin-top: 16px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================================
   LAYOUT - Mobile First (Sidebar hamburger)
   ============================================================ */

/* Topbar Mobile */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(135deg, var(--dark), var(--darker));
    color: #fff;
    z-index: 999;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-topbar .menu-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-topbar .menu-toggle:active {
    background: rgba(255,255,255,0.2);
}

.mobile-topbar .topbar-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: center;
    margin: 0 12px;
}

.mobile-topbar .topbar-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.sidebar-header .logo-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sidebar-header h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

.sidebar-header p {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    margin: 2px 10px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-menu li a:active {
    background: rgba(255,255,255,0.08);
    transform: scale(0.98);
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-menu li a.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-menu li a .icon {
    margin-right: 12px;
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

/* ============================================================
   COMPONENTS - Responsive
   ============================================================ */

/* Page Header */
.page-header {
    background: #fff;
    padding: 18px 22px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-left: 4px solid var(--primary);
}

.page-header h2 {
    font-size: 20px;
    color: var(--gray-900);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-header .date {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
    background: var(--gray-100);
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 8px;
}

.card-header h3 {
    font-size: 16px;
    color: var(--gray-900);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
    flex-shrink: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.08;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    position: relative;
    z-index: 1;
    word-break: break-word;
}

.stat-card .label {
    color: var(--gray-500);
    font-size: 11px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.stat-card.success .stat-icon { background: linear-gradient(135deg, var(--success), #38a169); box-shadow: 0 4px 10px rgba(72, 187, 120, 0.3); }
.stat-card.danger .stat-icon { background: linear-gradient(135deg, var(--danger), #e53e3e); box-shadow: 0 4px 10px rgba(245, 101, 101, 0.3); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, var(--warning), #dd6b20); box-shadow: 0 4px 10px rgba(237, 137, 54, 0.3); }
.stat-card.info .stat-icon { background: linear-gradient(135deg, var(--info), #3182ce); box-shadow: 0 4px 10px rgba(66, 153, 225, 0.3); }

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fff;
    font-family: inherit;
    color: var(--gray-900);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    gap: 6px;
    white-space: nowrap;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, var(--info), var(--info-dark));
    color: #fff;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 36px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Tables */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th,
table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap;
}

table th {
    background: linear-gradient(180deg, var(--gray-50), #fff);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background: var(--gray-50);
}

table .actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid;
    font-weight: 500;
    animation: slideInDown 0.4s ease;
    line-height: 1.4;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: #f0fff4; color: #22543d; border-left-color: var(--success); }
.alert-danger { background: #fff5f5; color: #742a2a; border-left-color: var(--danger); }
.alert-info { background: #ebf8ff; color: #2a4365; border-left-color: var(--info); }
.alert-warning { background: #fffaf0; color: #744210; border-left-color: var(--warning); }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-success { background: #c6f6d5; color: #22543d; }
.badge-danger { background: #fed7d7; color: #742a2a; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #bee3f8; color: #2a4365; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-body {
    padding: 18px;
}

.modal-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--gray-50);
    position: sticky;
    bottom: 0;
}

/* Profile */
.profile-card {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.profile-info {
    color: var(--gray-500);
    font-size: 13px;
}

.profile-details .detail-row {
    display: flex;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    gap: 8px;
}

.profile-details .detail-label {
    font-weight: 600;
    min-width: 120px;
    color: var(--gray-700);
    flex-shrink: 0;
}

.profile-details .detail-value {
    color: var(--gray-900);
    word-break: break-word;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--gray-500);
}

.empty-state .icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============================================================
   RESPONSIVE - Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Topbar mobile */
    .mobile-topbar {
        display: flex;
    }

    /* Sidebar cachée par défaut, glissante */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-header {
        padding-top: 20px;
    }

    /* Main content */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 16px;
        padding-top: calc(var(--topbar-height) + 16px);
    }

    /* Ajustements des composants */
    .login-container {
        padding: 0;
    }

    .login-box {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .login-box h1 {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .number {
        font-size: 24px;
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .page-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h2 {
        font-size: 17px;
    }

    .card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .card-header h3 {
        font-size: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-control {
        padding: 14px;
        font-size: 16px;
    }

    .btn {
        min-height: 48px;
        font-size: 15px;
    }

    .btn-sm {
        min-height: 40px;
        font-size: 13px;
    }

    table th,
    table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    table .actions {
        flex-direction: column;
        gap: 4px;
    }

    table .actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Modal mobile */
    .modal-overlay {
        align-items: flex-end;
    }

    .modal {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }

    .modal-header {
        padding: 14px 16px;
        border-radius: 16px 16px 0 0;
    }

    .modal-body {
        padding: 16px;
    }

    .profile-details .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .profile-details .detail-label {
        min-width: auto;
    }

    .alert {
        padding: 10px 14px;
        font-size: 13px;
        align-items: flex-start;
    }

    .empty-state {
        padding: 24px 12px;
    }

    .empty-state .icon {
        font-size: 36px;
    }
}

/* ============================================================
   RESPONSIVE - Petit mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card .number {
        font-size: 22px;
    }

    .login-box {
        padding: 20px 16px;
    }

    .login-box h1 {
        font-size: 16px;
    }

    .login-box .logo-circle {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .page-header h2 {
        font-size: 16px;
    }

    .card {
        padding: 14px;
    }

    table th,
    table td {
        padding: 6px 8px;
        font-size: 11px;
    }

    .mobile-topbar .topbar-title {
        font-size: 14px;
    }

    .sidebar {
        width: 260px;
    }
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-0 { padding: 0; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .sidebar,
    .mobile-topbar,
    .sidebar-overlay,
    .btn,
    .actions,
    #pwa-install-banner,
    .pwa-installed-indicator {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}