/* =============================================
   Zakat Management System - Mobile-First RTL CSS
   ============================================= */

:root {
    --primary: #E8B800;
    --primary-dark: #C99A00;
    --primary-light: #F0C808;
    --primary-bg: #FFF9E0;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --sidebar-width: 260px;
    --header-height: 56px;
    --bottom-nav-height: 60px;
    --font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 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: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--gray-50);
    color: var(--gray-800);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   Offline Banner
   ============================================= */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--danger);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* =============================================
   Top Header Bar
   ============================================= */
.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-900);
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.hamburger-btn:active {
    background: rgba(0,0,0,0.1);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-year-badge {
    background: rgba(0,0,0,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    z-index: 1100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.sidebar.show {
    right: 0;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
    text-align: center;
    position: relative;
}

.sidebar-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.sidebar-header h4 i {
    margin-left: 6px;
}

.sidebar-year {
    font-size: 13px;
    background: rgba(0,0,0,0.15);
    padding: 2px 12px;
    border-radius: 12px;
    display: inline-block;
}

.sidebar-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-800);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav {
    list-style: none;
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 48px;
}

.sidebar-nav li a i {
    width: 24px;
    margin-left: 12px;
    text-align: center;
    font-size: 18px;
}

.sidebar-nav li.active a {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-right: 4px solid var(--primary);
}

.sidebar-nav li a:active {
    background: var(--gray-100);
}

.sidebar-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   Main Content
   ============================================= */
.main-content {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: calc(var(--bottom-nav-height) + 24px);
    padding-right: 12px;
    padding-left: 12px;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

/* =============================================
   Bottom Navigation (Mobile)
   ============================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 500;
    padding: 6px 8px;
    min-width: 0;
    flex: 1;
    min-height: 44px;
    transition: color 0.2s;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-dark);
}

.bottom-nav-item:active {
    color: var(--primary);
}

/* =============================================
   Toast Notifications
   ============================================= */
.toast-notification {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 12px;
    left: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    animation: slideDown 0.3s ease, fadeOut 0.5s ease 3.5s forwards;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
}

.toast-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.toast-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.toast-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.toast-close {
    background: none;
    border: none;
    margin-right: auto;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* =============================================
   Cards
   ============================================= */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gray-900);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: none;
}

.card-body {
    padding: 16px;
}

/* =============================================
   Stat Cards
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:active {
    transform: scale(0.97);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
}

.stat-card .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-icon.icon-total { background: #DBEAFE; color: #2563EB; }
.stat-icon.icon-amount { background: #FEF3C7; color: #D97706; }
.stat-icon.icon-sick { background: #FEE2E2; color: #DC2626; }
.stat-icon.icon-poor { background: #E0E7FF; color: #4F46E5; }
.stat-icon.icon-widow { background: #FCE7F3; color: #DB2777; }
.stat-icon.icon-avg { background: #D1FAE5; color: #059669; }
.stat-icon.icon-max { background: #FEF3C7; color: #B45309; }
.stat-icon.icon-min { background: #ECFDF5; color: #047857; }
.stat-icon.icon-family { background: #EDE9FE; color: #7C3AED; }
.stat-icon.icon-house { background: #FEE2E2; color: #DC2626; }

/* =============================================
   Form Styles (Mobile-First)
   ============================================= */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-family: var(--font-family);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    direction: rtl;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
    -webkit-appearance: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 184, 0, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gray-900);
    box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #B38600 100%);
    color: var(--gray-900);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 17px;
    min-height: 52px;
}

.btn-block {
    width: 100%;
}

/* Sticky Bottom Action Button */
.sticky-bottom-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 12px);
    right: 12px;
    left: 12px;
    z-index: 900;
    padding: 14px;
    font-size: 17px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* FAB Button */
.fab-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gray-900);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 184, 0, 0.4);
    border: none;
    cursor: pointer;
    z-index: 900;
    transition: transform 0.2s;
    text-decoration: none;
}

.fab-btn:active {
    transform: scale(0.9);
}

.fab-btn:hover {
    color: var(--gray-900);
}

/* =============================================
   Type Badges
   ============================================= */
.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-sick { background: #FEE2E2; color: #DC2626; }
.badge-poor { background: #E0E7FF; color: #4F46E5; }
.badge-widow { background: #FCE7F3; color: #DB2777; }
.badge-orphan { background: #FEF3C7; color: #D97706; }
.badge-indebted { background: #DBEAFE; color: #2563EB; }
.badge-default { background: var(--gray-100); color: var(--gray-600); }

/* =============================================
   Priority Badges
   ============================================= */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.priority-high { background: #FEE2E2; color: #DC2626; }
.priority-medium { background: #FEF3C7; color: #D97706; }
.priority-low { background: #D1FAE5; color: #059669; }

/* =============================================
   Star Rating Component
   ============================================= */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
    direction: ltr;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star {
    font-size: 28px;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.star-rating label.star {
    padding: 4px 2px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-rating .star.filled,
.star-rating input:checked ~ label.star,
.star-rating label.star:hover,
.star-rating label.star:hover ~ label.star {
    color: #F59E0B;
}

.star-rating label.star:active {
    transform: scale(1.2);
}

/* Readonly stars (smaller, inline) */
.star-rating.star-readonly {
    gap: 0;
}

.star-rating.star-readonly .star {
    font-size: 16px;
    cursor: default;
    padding: 0;
    min-width: unset;
    min-height: unset;
}

.star-rating.star-readonly .star.filled {
    color: #F59E0B;
}

/* Star rating in form - bigger touch targets */
.star-rating-field {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.star-rating-field .star-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    min-width: 80px;
}

.star-rating-field .star-rating .star {
    font-size: 32px;
}

.star-rating-field .star-rating label.star {
    min-width: 40px;
    min-height: 40px;
}

/* Priority text next to stars */
.star-priority-text {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 6px;
}

/* =============================================
   Tables
   ============================================= */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
    position: relative;
}

.table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.table-responsive.has-scroll::after {
    opacity: 1;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gray-900);
    padding: 12px 10px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table tbody td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background: var(--primary-bg);
}

.data-table tbody tr:hover {
    background: #FFF3C4;
}

.data-table .actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.data-table .total-row {
    background: var(--primary-bg) !important;
    font-weight: 700;
    font-size: 15px;
}

/* Sortable columns */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background: var(--primary-dark) !important;
}

.sortable .sort-icon {
    margin-right: 4px;
    opacity: 0.5;
}

.sortable.asc .sort-icon::after { content: '▲'; }
.sortable.desc .sort-icon::after { content: '▼'; }

/* =============================================
   Mobile Card Layout for List
   ============================================= */
.recipient-cards {
    display: none;
}

.recipient-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.recipient-card:active {
    box-shadow: var(--shadow-md);
}

.recipient-card-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}

.recipient-card-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-900);
    flex: 1;
}

.recipient-card-body {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.recipient-card-field {
    display: flex;
    flex-direction: column;
}

.recipient-card-field .field-label {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

.recipient-card-field .field-value {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.recipient-card-details {
    display: none;
    padding: 0 14px 12px;
    border-top: 1px solid var(--gray-100);
}

.recipient-card-details.show {
    display: block;
    padding-top: 12px;
}

.recipient-card-actions {
    display: flex;
    border-top: 1px solid var(--gray-100);
}

.recipient-card-actions a {
    flex: 1;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.recipient-card-actions a:first-child {
    border-left: 1px solid var(--gray-100);
}

.recipient-card-actions .action-edit {
    color: var(--info);
}

.recipient-card-actions .action-delete {
    color: var(--danger);
}

.recipient-card-actions .action-expand {
    color: var(--gray-500);
}

.recipient-card-actions a:active {
    background: var(--gray-50);
}

/* =============================================
   SmartSelect Component
   ============================================= */
.smart-select-wrapper {
    position: relative;
}

.smart-select-input {
    width: 100%;
    padding: 12px 14px;
    padding-left: 36px;
    font-size: 16px;
    font-family: var(--font-family);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    direction: rtl;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
    -webkit-appearance: none;
}

.smart-select-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 184, 0, 0.2);
    outline: none;
}

.smart-select-arrow {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    font-size: 14px;
}

/* Desktop dropdown */
.smart-select-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1200;
    display: none;
    box-shadow: var(--shadow-lg);
}

.smart-select-dropdown.show {
    display: block;
}

.smart-select-option {
    padding: 12px 14px;
    font-size: 15px;
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-50);
}

.smart-select-option:hover,
.smart-select-option.highlighted {
    background: var(--primary-bg);
}

.smart-select-option.add-new {
    color: var(--primary-dark);
    font-weight: 600;
}

.smart-select-option.add-new i {
    margin-left: 8px;
}

.smart-select-no-results {
    padding: 14px;
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* Mobile bottom sheet */
.smart-select-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.smart-select-modal.show {
    display: flex;
    flex-direction: column;
}

.smart-select-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.2s;
}

.smart-select-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.smart-select-modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.smart-select-modal-header input {
    flex: 1;
    padding: 12px 14px;
    font-size: 16px;
    font-family: var(--font-family);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    direction: rtl;
    text-align: right;
    min-height: 48px;
}

.smart-select-modal-header input:focus {
    border-color: var(--primary);
    outline: none;
}

.smart-select-modal-close {
    min-width: 44px;
    min-height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-select-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.smart-select-modal-option {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 52px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-50);
}

.smart-select-modal-option:active {
    background: var(--primary-bg);
}

.smart-select-modal-option.add-new {
    color: var(--primary-dark);
    font-weight: 600;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============================================
   Login Page
   ============================================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-card .login-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: var(--gray-900);
}

.login-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.login-card p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-card .form-group {
    text-align: right;
}

.login-error {
    background: #FEE2E2;
    color: #DC2626;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   Search & Filter
   ============================================= */
.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    font-size: 15px;
    font-family: var(--font-family);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    direction: rtl;
    text-align: right;
    min-height: 48px;
}

.search-box input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 184, 0, 0.2);
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-row .form-select {
    flex: 1;
    min-width: 120px;
}

/* =============================================
   Filter Panel (Reports)
   ============================================= */
.filter-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-panel-header {
    padding: 14px 16px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    min-height: 48px;
    user-select: none;
}

.filter-panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-panel-header .toggle-icon {
    transition: transform 0.3s;
    font-size: 14px;
    color: var(--gray-500);
}

.filter-panel-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.filter-panel-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.filter-panel-body.collapsed {
    display: none;
}

.filter-panel-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 10px;
}

/* =============================================
   Tabs
   ============================================= */
.tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tabs {
    display: flex;
    gap: 4px;
    min-width: max-content;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 4px;
}

.tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    font-family: var(--font-family);
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.tab-btn:active {
    transform: scale(0.97);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =============================================
   Pagination
   ============================================= */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    gap: 4px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 44px;
    min-height: 44px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--gray-900);
}

.page-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* =============================================
   Charts
   ============================================= */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.chart-container canvas {
    width: 100% !important;
    max-height: 300px;
}

/* =============================================
   Number Input Formatting
   ============================================= */
.number-formatted {
    font-variant-numeric: tabular-nums;
}

/* =============================================
   Report Print Styles
   ============================================= */
.print-header {
    display: none;
}

/* =============================================
   Multi-select checkboxes
   ============================================= */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-height: 44px;
    font-size: 14px;
    transition: all 0.2s;
    user-select: none;
}

.checkbox-item:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* =============================================
   Range inputs
   ============================================= */
.range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.range-inputs .form-control {
    flex: 1;
}

.range-separator {
    color: var(--gray-400);
    font-weight: 600;
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--gray-300);
}

.empty-state h3 {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* =============================================
   Settings Page
   ============================================= */
.settings-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.settings-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-bg);
}

/* User management table */
.user-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.user-list-item:last-child {
    border-bottom: none;
}

/* =============================================
   Reports Page - Compact Mobile-First
   ============================================= */

/* Top bar: year + mini stats inline */
.report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px 12px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    gap: 8px;
}

.report-year-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.report-year-select select {
    padding: 4px 8px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-bg);
    min-height: 36px;
}

.report-mini-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.report-mini-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.report-mini-stats i {
    color: var(--primary-dark);
    font-size: 11px;
}

/* Tab navigation - horizontal scroll */
.report-tabs-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 12px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.report-tabs-nav::-webkit-scrollbar {
    display: none;
}

.report-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--gray-500);
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    min-height: 40px;
    transition: all 0.2s;
}

.report-tab i {
    font-size: 13px;
}

.report-tab.active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.report-tab:active {
    transform: scale(0.96);
}

/* Compact Filter Grid */
.report-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.rf-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 3px;
    text-transform: uppercase;
}

.rf-field .form-control,
.rf-field .form-select {
    padding: 8px 10px;
    font-size: 14px;
    min-height: 40px;
}

.rf-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rf-range .form-control {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    min-height: 40px;
}

.rf-range span {
    color: var(--gray-400);
    font-weight: 600;
    font-size: 14px;
}

.report-filter-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.report-filter-actions .btn {
    min-height: 40px;
    font-size: 13px;
    padding: 8px 14px;
}

/* Mini stat cards row */
.report-mini-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.rmc {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.rmc-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.rmc-lbl {
    display: block;
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
}

/* Breakdown card - compact */
.report-breakdown-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
    overflow: hidden;
    border-right: 3px solid var(--primary);
}

.rbc-header {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.rbc-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-bg);
    padding: 2px 8px;
    border-radius: 10px;
}

.rbc-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

.rbc-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--gray-900);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.rbc-name-flex {
    flex: 1;
    font-size: 14px;
    margin: 0 6px;
}

.rbc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 12px;
    gap: 4px;
}

.rbc-stats > div {
    text-align: center;
}

.rbc-stats small {
    display: block;
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 500;
}

.rbc-stats strong,
.rbc-stats span {
    font-size: 13px;
    color: var(--gray-800);
}

.rbc-stats-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Search result card - compact */
.report-result-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 6px;
    overflow: hidden;
}

.rrc-top {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-50);
}

.rrc-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
    flex: 1;
    margin-left: 8px;
}

.rrc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 12px;
    gap: 4px;
}

.rrc-fields > div {
    display: flex;
    flex-direction: column;
}

.rrc-fields small {
    font-size: 10px;
    color: var(--gray-400);
    font-weight: 500;
}

.rrc-fields strong,
.rrc-fields span {
    font-size: 13px;
    color: var(--gray-800);
}

/* Total bar */
.report-total-bar {
    text-align: center;
    padding: 10px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-dark);
    margin-top: 8px;
}

/* Priority card border colors */
.priority-card.report-breakdown-card {
    border-right-color: var(--gray-300);
}

/* Desktop reports */
@media (min-width: 768px) {
    .report-filter-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .report-tabs-nav {
        gap: 6px;
    }

    .report-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .report-mini-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .rmc {
        padding: 12px 10px;
    }

    .rmc-val {
        font-size: 18px;
    }

    .rmc-lbl {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .report-filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile report compact overrides */
@media (max-width: 767px) {
    .report-mini-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-tabs-nav {
        margin-right: -12px;
        margin-left: -12px;
        padding: 4px 12px;
        border-radius: 0;
    }

    .report-tab span {
        display: none;
    }

    .report-tab {
        padding: 10px 14px;
        font-size: 16px;
    }

    .report-tab.active span {
        display: inline;
        font-size: 12px;
    }
}

/* =============================================
   Utility Classes
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-500); }
.text-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-2 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* =============================================
   Desktop Styles (768px+)
   ============================================= */
@media (min-width: 768px) {
    .sidebar {
        right: 0;
        width: var(--sidebar-width);
        box-shadow: var(--shadow);
    }

    .sidebar-close {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .hamburger-btn {
        display: none;
    }

    .top-header {
        right: var(--sidebar-width);
    }

    .main-content {
        margin-right: var(--sidebar-width);
        padding: calc(var(--header-height) + 20px) 24px 40px;
        max-width: calc(100vw - var(--sidebar-width));
    }

    .bottom-nav {
        display: none;
    }

    .sticky-bottom-btn {
        position: static;
        max-width: 300px;
    }

    .fab-btn {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .filter-panel-body {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipient-cards {
        display: none !important;
    }

    .toast-notification {
        right: auto;
        left: auto;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .filter-panel-body {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* =============================================
   Mobile Specific (< 768px)
   ============================================= */
@media (max-width: 767px) {
    .desktop-table {
        display: none;
    }

    .recipient-cards {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   Cashbox Styles
   ============================================= */
.cashbox-balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

.cashbox-balance-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cashbox-balance-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cashbox-balance-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.cashbox-balance-amount {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.cashbox-balance-amount small {
    font-size: 14px;
    font-weight: 500;
}

.cashbox-balance-amount.text-danger {
    color: var(--danger) !important;
}

.cashbox-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #92400E;
}

.cashbox-warning i {
    color: #F59E0B;
    font-size: 16px;
    flex-shrink: 0;
}

/* Transaction List */
.cashbox-transactions {
    display: flex;
    flex-direction: column;
}

.cashbox-tx-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}

.cashbox-tx-row:last-child {
    border-bottom: none;
}

.cashbox-tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cashbox-tx-icon.cashbox-deposit {
    background: #D1FAE5;
    color: #059669;
}

.cashbox-tx-icon.cashbox-deduct {
    background: #FEE2E2;
    color: #DC2626;
}

.cashbox-tx-icon.cashbox-refund {
    background: #DBEAFE;
    color: #2563EB;
}

.cashbox-tx-icon.cashbox-adjust {
    background: #FEF3C7;
    color: #D97706;
}

.cashbox-tx-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cashbox-tx-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cashbox-tx-meta {
    font-size: 11px;
    color: var(--gray-400);
}

.cashbox-tx-amount {
    text-align: left;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.cashbox-tx-amount .tx-plus {
    color: #059669;
    font-weight: 700;
    font-size: 14px;
}

.cashbox-tx-amount .tx-minus {
    color: #DC2626;
    font-weight: 700;
    font-size: 14px;
}

.cashbox-tx-balance {
    color: var(--gray-400);
    font-size: 10px;
}

/* Cashbox badge in forms */
.cashbox-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.cashbox-form-badge i {
    color: var(--primary-dark);
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    body {
        background: white;
        font-size: 12px;
    }

    .sidebar, .top-header, .bottom-nav, .fab-btn,
    .sticky-bottom-btn, .toast-notification, .offline-banner,
    .no-print, .sidebar-overlay {
        display: none !important;
    }

    .main-content {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    .print-header {
        display: block;
        text-align: center;
        padding: 20px 0;
        border-bottom: 3px solid #000;
        margin-bottom: 20px;
    }

    .print-header h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .print-header p {
        font-size: 14px;
        color: #666;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .card-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .data-table thead th {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .type-badge, .priority-badge {
        border: 1px solid #999;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .stat-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .page-break {
        page-break-before: always;
    }

    @page {
        size: A4;
        margin: 1cm;
    }
}
