/* ============================================
   style.css - التصميمات الكاملة (منظمة)
   ============================================ */

/* ===== المتغيرات ===== */
:root {
    --navy-deep: #1B2F52;
    --gold-amber: #C9991A;
    --navy-mid: #2C4A6E;
    --egypt-green: #4A7A5B;
    --bg-light: #F7F8FB;
    --surface-white: #FFFFFF;
    --success-green: #16A34A;
    --danger-red: #DC2626;
    --warning-gold: #D97706;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-arabic: 'Cairo', sans-serif;
}

/* ===== الأساسيات ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-arabic);
    background: var(--bg-light);
    color: #1a1a2e;
    display: flex;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-mid);
    border-radius: 10px;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--navy-deep) 0%, #152840 100%);
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: rgba(201, 153, 26, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 32px;
    color: var(--gold-amber);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--surface-white);
    line-height: 1.2;
}

.logo-sub {
    font-size: 13px;
    color: var(--gold-amber);
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.nav-link i {
    width: 22px;
    font-size: 18px;
    text-align: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--surface-white);
}

.nav-link.active {
    background: var(--gold-amber);
    color: var(--navy-deep);
    box-shadow: 0 4px 15px rgba(201, 153, 26, 0.3);
}
.nav-link.active i {
    color: var(--navy-deep);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-right: 260px;
    padding: 24px 32px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(27, 47, 82, 0.06);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-deep);
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    color: var(--surface-white);
    box-shadow: 0 4px 15px rgba(27, 47, 82, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(27, 47, 82, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--navy-deep);
    border: 2px solid var(--navy-deep);
}
.btn-outline:hover {
    background: var(--navy-deep);
    color: var(--surface-white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(22, 163, 74, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red), #b91c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-gold), #b45309);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(217, 119, 6, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.btn-payment {
    background: linear-gradient(135deg, var(--gold-amber), #b8860b);
    color: white;
    box-shadow: 0 4px 15px rgba(201, 153, 26, 0.3);
}
.btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 153, 26, 0.4);
}

/* ===== الصفحات ===== */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}
.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== بطاقات KPI ===== */
.kpi-grid,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card,
.summary-card {
    background: var(--surface-white);
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.kpi-card:hover,
.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.kpi-card {
    border-left: 4px solid var(--gold-amber);
}
.kpi-card:nth-child(2) {
    border-left-color: var(--danger-red);
}
.kpi-card:nth-child(3) {
    border-left-color: var(--success-green);
}
.kpi-card:nth-child(4) {
    border-left-color: var(--warning-gold);
}
.kpi-card:nth-child(5) {
    border-left-color: var(--navy-mid);
}
.kpi-card:nth-child(6) {
    border-left-color: var(--egypt-green);
}

.kpi-icon,
.summary-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.kpi-info,
.summary-info {
    flex: 1;
}

.kpi-label,
.summary-label {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.kpi-value,
.summary-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-deep);
}

/* ===== الرسوم البيانية ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.chart-card {
    background: var(--surface-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card h3 {
    font-size: 16px;
    color: var(--navy-deep);
    margin-bottom: 16px;
    font-weight: 700;
}

.chart-card canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
}

/* ===== شريط الأدوات ===== */
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input,
.filter-input,
.filter-select,
.date-input {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-family: var(--font-arabic);
    font-size: 14px;
    background: var(--surface-white);
    transition: var(--transition);
}

.search-input {
    min-width: 160px;
}

.filter-select {
    min-width: 130px;
    cursor: pointer;
}

.search-input:focus,
.filter-input:focus,
.filter-select:focus,
.date-input:focus {
    outline: none;
    border-color: var(--gold-amber);
    box-shadow: 0 0 0 4px rgba(201, 153, 26, 0.1);
}

/* ===== الجداول ===== */
.table-container {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    color: var(--surface-white);
}

.data-table th {
    padding: 14px 18px;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}
.data-table tbody tr:hover {
    background: #e8edf5 !important;
}

.data-table tbody tr.low-stock {
    background: #fee2e2 !important;
}
.data-table tbody tr.low-stock:hover {
    background: #fecaca !important;
}

.data-table .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.data-table .actions .btn-sm {
    border-radius: 6px;
    transition: all 0.2s ease;
}
.data-table .actions .btn-sm:hover {
    transform: scale(1.1);
}

/* ===== البادجات ===== */
.badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d1fae5;
    color: var(--success-green);
}
.badge-danger {
    background: #fee2e2;
    color: var(--danger-red);
}
.badge-warning {
    background: #fef3c7;
    color: var(--warning-gold);
}

.badge-status-scheduled {
    background: #fef3c7;
    color: var(--warning-gold);
}
.badge-status-ongoing {
    background: #dbeafe;
    color: #2563eb;
}
.badge-status-completed {
    background: #d1fae5;
    color: var(--success-green);
}
.badge-status-cancelled {
    background: #fee2e2;
    color: var(--danger-red);
}

.badge-overdue {
    background: #fee2e2;
    color: var(--danger-red);
    animation: pulse 2s infinite;
}

.badge-status.in-stock {
    background: #d1fae5;
    color: var(--success-green);
}
.badge-status.low-stock {
    background: #fee2e2;
    color: var(--danger-red);
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ===== HR Tabs ===== */
.hr-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--surface-white);
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tab-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: var(--bg-light);
    color: var(--navy-deep);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
    color: white;
    box-shadow: 0 4px 15px rgba(27, 47, 82, 0.3);
}

.hr-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.hr-tab-content.active {
    display: block;
}

.payroll-total-row {
    background: var(--bg-light);
    font-weight: 700;
    border-top: 3px solid var(--navy-deep);
}
.payroll-total-row td {
    padding: 12px 16px;
    font-size: 15px;
}

/* ===== المودالات ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-wide {
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
}
.modal-wide .modal-body {
    max-height: 75vh;
    overflow-y: auto;
    background: #f8fafc;
}

.fullscreen-modal .modal {
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #f0f0f0;
    background: var(--bg-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h2 {
    font-size: 20px;
    color: var(--navy-deep);
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--danger-red);
    background: #fee2e2;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy-deep);
    font-size: 14px;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-family: var(--font-arabic);
    font-size: 14px;
    transition: var(--transition);
    background: var(--surface-white);
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--gold-amber);
    box-shadow: 0 0 0 4px rgba(201, 153, 26, 0.1);
}

.modal-body .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* ===== الفاتورة ===== */
#invoiceModal .modal-wide {
    max-width: 750px;
}

#invoiceModal .modal-body {
    padding: 16px 20px;
}

/* ===== مكونات إضافية ===== */
.add-to-warehouse {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 8px 0;
}
.add-to-warehouse input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--navy-deep);
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    transition: var(--transition);
}
.radio-group label:hover {
    border-color: var(--gold-amber);
}
.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--navy-deep);
}

.installment-schedule {
    margin-top: 16px;
}
.installment-schedule table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.installment-schedule th {
    background: var(--navy-deep);
    color: white;
    padding: 8px 12px;
    text-align: right;
}
.installment-schedule td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
}
.installment-schedule .paid {
    background: #d1fae5;
}
.installment-schedule .unpaid {
    background: #fee2e2;
}
.installment-schedule .paid-badge {
    color: var(--success-green);
    font-weight: 700;
}
.installment-schedule .unpaid-badge {
    color: var(--danger-red);
    font-weight: 700;
}

#overdueAlert {
    background: #fee2e2;
    border-right: 4px solid var(--danger-red);
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}
#overdueAlert .alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
#overdueAlert .alert-content i {
    color: var(--danger-red);
    font-size: 24px;
}
#overdueAlert .alert-content strong {
    color: var(--danger-red);
}

/* ===== إحصائيات العميل ===== */
.client-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.client-stat-card {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}
.client-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.client-stat-card .stat-label {
    font-size: 12px;
    color: #666;
}
.client-stat-card .stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-deep);
    margin-top: 4px;
}

/* ===== الأنواع ===== */
.movement-type.add {
    background: #d1fae5;
    color: var(--success-green);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.movement-type.remove {
    background: #fee2e2;
    color: var(--danger-red);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.type-receivable {
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.type-payable {
    background: #fef3c7;
    color: var(--warning-gold);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.purchase-badge.added {
    background: #d1fae5;
    color: var(--success-green);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}
.purchase-badge.not-added {
    background: #fee2e2;
    color: var(--danger-red);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.profit-positive {
    color: var(--success-green);
    font-weight: 700;
}
.profit-negative {
    color: var(--danger-red);
    font-weight: 700;
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 24px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s ease;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-arabic);
}

.toast.success {
    background: linear-gradient(135deg, var(--success-green), #059669);
}
.toast.error {
    background: linear-gradient(135deg, var(--danger-red), #b91c1c);
}
.toast.warning {
    background: linear-gradient(135deg, var(--warning-gold), #b45309);
}
.toast.info {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast i {
    font-size: 20px;
}

/* ===== طباعة ===== */
.invoice-print-container,
.payroll-print-container {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    .invoice-print-container,
    .invoice-print-container *,
    .payroll-print-container,
    .payroll-print-container * {
        visibility: visible;
    }
    .invoice-print-container,
    .payroll-print-container {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        padding: 40px;
        background: white;
        font-family: 'Cairo', sans-serif;
        direction: rtl;
        z-index: 9999;
    }
}

/* ===== متجاوبة ===== */
@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .chart-card.full-width {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 72px;
        padding: 16px 0;
    }
    .sidebar .logo-text,
    .sidebar .nav-link span {
        display: none;
    }
    .sidebar .nav-link {
        justify-content: center;
        padding: 14px;
    }
    .sidebar .nav-link i {
        font-size: 22px;
        margin: 0;
    }
    .sidebar .logo-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    .sidebar .logo-icon {
        font-size: 24px;
        padding: 8px;
    }
    .main-content {
        margin-right: 72px;
        padding: 16px;
    }
    .kpi-grid,
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input,
    .filter-input,
    .filter-select,
    .date-input {
        min-width: auto;
    }
    .modal {
        margin: 10px;
    }
    .hr-tabs {
        flex-wrap: wrap;
    }
    .tab-btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 8px 12px;
    }
    .fullscreen-modal .modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    .radio-group label {
        padding: 6px 12px;
    }
    .client-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .kpi-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }
    .header-actions {
        flex-wrap: wrap;
    }
    .btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 8px 14px;
    }
    .client-stats-grid {
        grid-template-columns: 1fr;
    }
    .toast {
        min-width: auto;
        width: calc(100% - 40px);
    }
}