/* ============================================
   HMS Gruppe GmbH & Co. KG — System Styles
   ============================================ */

:root {
    --primary: #1a2744;
    --primary-light: #243558;
    --primary-dark: #111b30;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;
    --orange: #f97316;
    --orange-light: #fff7ed;
    --bg: #f1f5f9;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--gray-800);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.5rem;
    color: var(--accent);
}

.sidebar-subtitle {
    display: block;
    margin-top: 4px;
    color: var(--gray-400);
    font-size: 0.75rem;
}

.sidebar-nav {
    padding: 10px 0;
    flex: 1;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    padding: 8px 20px 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-400);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: var(--primary-light);
    color: white;
}

.nav-item.active {
    background: var(--primary-light);
    color: white;
    border-left-color: var(--accent);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.badge:empty, .badge[data-count="0"] {
    display: none;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

.topbar {
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-600);
    cursor: pointer;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.current-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.content {
    padding: 24px;
    flex: 1;
}

/* ============================================
   Cards & Panels
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

.card-body.no-pad {
    padding: 0;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid var(--accent);
}

.kpi-card.green { border-left-color: var(--success); }
.kpi-card.orange { border-left-color: var(--orange); }
.kpi-card.red { border-left-color: var(--danger); }
.kpi-card.blue { border-left-color: var(--accent); }
.kpi-card.info { border-left-color: var(--info); }

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kpi-card.green .kpi-icon { background: var(--success-light); color: var(--success); }
.kpi-card.orange .kpi-icon { background: var(--warning-light); color: var(--warning); }
.kpi-card.red .kpi-icon { background: var(--danger-light); color: var(--danger); }
.kpi-card.blue .kpi-icon { background: #dbeafe; color: var(--accent); }
.kpi-card.info .kpi-icon { background: var(--info-light); color: var(--info); }

.kpi-content h4 {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ============================================
   Tables
   ============================================ */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

thead {
    background: var(--primary);
    color: white;
}

thead th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--gray-50);
}

tbody td {
    padding: 10px 14px;
    white-space: nowrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #059669; }

.btn-warning {
    background: var(--warning);
    color: white;
}
.btn-warning:hover { background: #d97706; }

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover { background: #dc2626; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}
.btn-outline:hover { background: var(--gray-100); border-color: var(--gray-400); }

.btn-sm {
    padding: 5px 10px;
    font-size: 0.78rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.btn-group {
    display: flex;
    gap: 6px;
}

/* ============================================
   Forms
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control {
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ============================================
   Status Badges
   ============================================ */
.status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-offen { background: #fef3c7; color: #92400e; }
.status-unbearbeitet { background: #fee2e2; color: #991b1b; }
.status-bearbeitet { background: #d1fae5; color: #065f46; }
.status-in_bearbeitung { background: #dbeafe; color: #1e40af; }
.status-abgeschlossen { background: #d1fae5; color: #065f46; }
.status-storniert { background: #f3f4f6; color: #6b7280; }
.status-ausstehend { background: #dbeafe; color: #1d4ed8; }
.status-geplant { background: #fde68a; color: #92400e; }
.status-ja { background: #d1fae5; color: #065f46; }
.status-nein { background: #fee2e2; color: #991b1b; }
.status-erledigt { background: #d1fae5; color: #065f46; }

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-bar .form-group {
    min-width: 150px;
    flex: 1;
}

.filter-bar .form-group label {
    font-size: 0.7rem;
}

.filter-bar .form-control {
    padding: 7px 10px;
    font-size: 0.8rem;
}


/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal.modal-xl {
    max-width: 1280px;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.modal-close:hover { color: var(--gray-700); }

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================
   System Confirm Dialog
   ============================================ */
.system-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}
.system-confirm-overlay.active { opacity: 1; }
.system-confirm-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.2s ease;
}
.system-confirm-overlay.active .system-confirm-box { transform: scale(1); }
.system-confirm-icon { font-size: 2.8rem; margin-bottom: 16px; }
.system-confirm-title { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.system-confirm-message { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin-bottom: 28px; }
.system-confirm-actions { display: flex; gap: 12px; justify-content: center; }
.system-confirm-actions .btn { min-width: 130px; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--accent);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-message {
    font-size: 0.85rem;
    flex: 1;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


/* ============================================
   Dashboard Grid
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-grid .card {
    min-height: 200px;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.quick-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.quick-stat:last-child { border-bottom: none; }

.quick-stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.quick-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ============================================
   Toolbar (above tables)
   ============================================ */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    position: relative;
}

.search-input input {
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    min-width: 250px;
    background: var(--white);
}

.search-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.search-input i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ============================================
   Sidebar User Section
   ============================================ */
/* Sidebar Close Button (mobile) */
.sidebar-close {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    position: absolute;
    top: 16px;
    right: 16px;
}

.sidebar-close:hover {
    background: var(--danger);
    color: white;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 299;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-info > i {
    font-size: 1.5rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

.user-name {
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--gray-400);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* Topbar Chat Icon */
.topbar-icon-btn {
    position: relative;
    background: none;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.topbar-icon-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.chat-badge.visible {
    display: flex;
}


/* ============================================
   Print styles
   ============================================ */
.print-only { display: none; }

@media print {
    .sidebar, .topbar, .toolbar, .modal-overlay, .toast-container, .filter-bar { display: none !important; }
    .main-content { margin-left: 0; }
    .content { padding: 0; }
    .print-only { display: block; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 300;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }
    .menu-toggle {
        display: block;
    }
    .sidebar-header {
        position: relative;
    }
    .sidebar-close {
        display: flex;
    }

    /* Topbar */
    .topbar {
        padding: 0 12px;
        gap: 8px;
        height: 50px;
    }
    .page-title {
        font-size: 1rem;
    }
    .topbar-right {
        gap: 8px;
    }
    .topbar-username {
        display: none;
    }
    .current-date {
        font-size: 0.75rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    /* Content */
    .content {
        padding: 12px;
    }

    /* KPI Cards */
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .kpi-card {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    .kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .kpi-content h4 {
        font-size: 0.65rem;
        word-break: break-word;
        white-space: normal;
    }
    .kpi-value {
        font-size: 1.2rem;
    }

    /* Dashboard Grid */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Cards */
    .card-header {
        padding: 12px;
    }
    .card-body {
        padding: 12px;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 600px;
    }
    th, td {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    /* Toolbar */
    .toolbar {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }
    .toolbar .btn {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    .filter-bar .form-group {
        min-width: unset;
        width: 100%;
    }

    /* Modal */
    .modal-overlay {
        left: 0;
        padding: 10px;
        align-items: flex-end;
    }
    .modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .modal-header {
        padding: 12px 16px;
    }
    .modal-body {
        padding: 12px 16px;
    }
    .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }

    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Search */
    .search-input input {
        max-width: 100%;
    }

    /* Sidebar user section */
    .sidebar-user {
        padding: 12px 16px;
    }

    /* Report KPI Grid */
    .report-kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .quick-stat {
        padding: 8px 0;
    }
    .quick-stat-label {
        font-size: 0.78rem;
    }
    .quick-stat-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .topbar {
        padding: 0 8px;
    }
    .content {
        padding: 8px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--gray-500); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.mt-1 { margin-top: 8px; }
.currency::after { content: ' €'; }

