/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  border-left: 4px solid;
  animation: slideInRight 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--primary);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error .toast-icon {
  color: var(--danger);
}

.toast.warning .toast-icon {
  color: var(--warning);
}

.toast.info .toast-icon {
  color: var(--primary);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--gray-600);
  background-color: var(--gray-100);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: currentColor;
  opacity: 0.3;
  animation: toastProgress 5s linear forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gray-600);
  background-color: var(--gray-100);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.875rem;
}

.table td {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge.success {
  background-color: #dcfce7;
  color: #166534;
}

.badge.warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge.danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge.info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Progress Bar */
.progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  transition: width 0.3s ease;
  border-radius: 9999px;
}

.progress-bar.success {
  background-color: var(--success);
}

.progress-bar.warning {
  background-color: var(--warning);
}

.progress-bar.danger {
  background-color: var(--danger);
}

/* Accordion */
.accordion {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}

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

.accordion-header {
  background: var(--white);
  border: none;
  width: 100%;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--gray-50);
}

.accordion-header.active {
  background-color: var(--gray-50);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 1000px;
}

.accordion-body {
  padding: 1rem;
  background-color: var(--gray-50);
}

/* Tabs */
.tabs {
  border-bottom: 1px solid var(--gray-200);
}

.tab-nav {
  display: flex;
  gap: 0;
}

.tab-nav-item {
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-nav-item:hover {
  color: var(--primary);
}

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

.tab-content {
  padding: 1rem 0;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--gray-50);
  color: var(--gray-900);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--gray-200);
  margin: 0.5rem 0;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.font-mono {
  font-family: 'Courier New', monospace;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ==================== INTERFACE EMPLOYÉS SIRH ==================== */

/* Barre d'actions principale */
.employee-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.actions-left {
  display: flex;
  gap: 0.5rem;
}

.actions-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  color: var(--gray-400);
}

.search-box input {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  width: 250px;
  font-size: 0.875rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Vue principale avec sidebar */
.employee-main-view {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  min-height: 600px;
}

/* Sidebar employés */
.employee-sidebar {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-header {
  padding: 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.employee-count {
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Filtres rapides */
.quick-filters {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  background: none;
  border: none;
  border-radius: var(--border-radius);
  color: var(--gray-600);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* Liste des employés */
.employee-list {
  max-height: 500px;
  overflow-y: auto;
}

.loading-employees {
  padding: 2rem;
  text-align: center;
  color: var(--gray-500);
}

.loading-employees i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.employee-item {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
}

.employee-item:hover {
  background: var(--gray-50);
}

.employee-item.active {
  background: var(--primary);
  color: var(--white);
}

.employee-item.active .employee-function,
.employee-item.active .employee-status {
  color: rgba(255, 255, 255, 0.8);
}

.employee-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.employee-function {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.employee-status {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.employee-status.active {
  background: var(--success);
  color: var(--white);
}

.employee-status.inactive {
  background: var(--gray-300);
  color: var(--gray-700);
}

/* Contenu principal */
.employee-content {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Vue de bienvenue */
.employee-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.welcome-content {
  text-align: center;
  max-width: 400px;
}

.welcome-content i {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.welcome-content h3 {
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.welcome-content p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Profil employé */
.employee-profile {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* En-tête du profil */
.profile-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile-details h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
}

.profile-details p {
  margin: 0 0 0.5rem 0;
  opacity: 0.9;
}

.profile-badges {
  display: flex;
  gap: 0.5rem;
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.profile-actions .btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.profile-actions .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Navigation par onglets du profil */
.profile-tabs {
  display: flex;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.profile-tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray-600);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-tab-btn:hover {
  background: var(--white);
  color: var(--gray-900);
}

.profile-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Contenu des onglets */
.profile-tab-content {
  flex: 1;
  overflow-y: auto;
}

.tab-pane {
  display: none;
  padding: 2rem;
}

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

.tab-pane-content h3 {
  margin: 0 0 1.5rem 0;
  color: var(--gray-900);
  font-size: 1.25rem;
}

.tab-pane-content h4 {
  margin: 2rem 0 1rem 0;
  color: var(--gray-700);
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.5rem;
}

/* Grille de formulaire */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.span-2 {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[readonly] {
  background: var(--gray-50);
  color: var(--gray-600);
}

.form-group select[disabled] {
  background: var(--gray-50);
  color: var(--gray-600);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

.badge-info {
  background: var(--primary);
  color: var(--white);
}

.badge-warning {
  background: var(--warning);
  color: var(--white);
}

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

/* Sections spécialisées */

/* Section fiscale */
.fiscal-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.fiscal-card {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.fiscal-card h5 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 600;
}

.fiscal-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
}

.fiscal-card small {
  color: var(--gray-500);
  font-size: 0.75rem;
}

/* Section bancaire */
.banking-history {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.history-date {
  font-weight: 500;
  color: var(--gray-700);
}

.history-amount {
  font-weight: 600;
  color: var(--gray-900);
}

.history-status {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

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

/* Section activité */
.activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card i {
  font-size: 2rem;
  color: var(--primary);
}

.stat-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Timeline d'activité */
.activity-timeline {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-left: 2px solid var(--gray-200);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-content h5 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-900);
  font-size: 0.875rem;
}

.timeline-content p {
  margin: 0 0 0.25rem 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.timeline-content small {
  color: var(--gray-500);
  font-size: 0.75rem;
}

/* Section financière */
.financial-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.financial-card {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.financial-card h5 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 600;
}

.financial-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
}

.financial-card small {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.financial-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.financial-list {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.financial-items {
  min-height: 100px;
}

.no-financial-data {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
}

.no-financial-data i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Modal employé */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-large {
  width: 90%;
  max-width: 800px;
}

.modal-small {
  width: 90%;
  max-width: 400px;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Onglets du formulaire */
.form-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.form-tab-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray-600);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-tab-btn:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.form-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--gray-50);
}

/* Contenu des onglets du formulaire */
.form-tab-content {
  min-height: 400px;
}

.form-tab-pane {
  display: none;
}

.form-tab-pane.active {
  display: block;
}

.form-tab-pane h4 {
  margin: 0 0 1.5rem 0;
  color: var(--gray-900);
  font-size: 1.125rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.5rem;
}

/* Messages d'erreur */
.error-message {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

.form-group.error input,
.form-group.error select {
  border-color: var(--danger);
}

.form-group.error label {
  color: var(--danger);
}

/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: 1px solid var(--gray-300);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--gray-600);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.dropdown-item.text-danger {
  color: var(--danger);
}

.dropdown-item.text-danger:hover {
  background: var(--danger);
  color: var(--white);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

/* Responsive pour l'interface employés */
@media (max-width: 1024px) {
  .employee-main-view {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 768px) {
  .employee-main-view {
    grid-template-columns: 1fr;
  }

  .employee-sidebar {
    order: 2;
  }

  .employee-content {
    order: 1;
  }

  .employee-actions-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .actions-left,
  .actions-right {
    width: 100%;
    justify-content: center;
  }

  .search-box input {
    width: 100%;
  }

  .profile-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .profile-tabs {
    flex-wrap: wrap;
  }

  .profile-tab-btn {
    flex: 1;
    min-width: 120px;
  }

  .form-tabs {
    flex-wrap: wrap;
  }

  .form-tab-btn {
    flex: 1;
    min-width: 120px;
  }

  .modal-large {
    width: 95%;
    margin: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.span-2 {
    grid-column: span 1;
  }
}

/* ==================== INTERFACE FINANCIÈRE ==================== */

/* Tableau de bord financier */
.financial-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* KPIs principaux */
.financial-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.kpi-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

.kpi-content p {
  margin: 0 0 0.25rem 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.kpi-count {
  color: var(--gray-500);
  font-size: 0.75rem;
}

/* Navigation financière */
.financial-nav {
  display: flex;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.financial-nav-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-right: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.financial-nav-btn:last-child {
  border-right: none;
}

.financial-nav-btn:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.financial-nav-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* Contenu des sections */
.financial-content {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.financial-section {
  display: none;
  padding: 2rem;
}

.financial-section.active {
  display: block;
}

/* Barre d'outils des sections */
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.toolbar-left h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 1.25rem;
}

.toolbar-right {
  display: flex;
  gap: 0.5rem;
}

/* Filtres financiers */
.financial-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables financières */
.financial-table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.financial-table th {
  background: var(--gray-50);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

.financial-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}

.financial-table tbody tr:hover {
  background: var(--gray-50);
}

.no-data {
  text-align: center;
}

.no-data-message {
  padding: 2rem;
  color: var(--gray-500);
}

.no-data-message i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Badges de statut */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.en-cours {
  background: var(--warning);
  color: var(--white);
}

.status-badge.termine {
  background: var(--success);
  color: var(--white);
}

.status-badge.suspendu {
  background: var(--gray-400);
  color: var(--white);
}

.status-badge.en-attente {
  background: var(--info);
  color: var(--white);
}

.status-badge.approuve {
  background: var(--success);
  color: var(--white);
}

.status-badge.refuse {
  background: var(--danger);
  color: var(--white);
}

.status-badge.rembourse {
  background: var(--gray-600);
  color: var(--white);
}

/* Analytics */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.analytics-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.analytics-card h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 600;
}

.chart-container {
  position: relative;
  height: 250px;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.stat-value {
  font-weight: 600;
  color: var(--gray-900);
}

/* Rapports */
.report-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.option-group {
  display: flex;
  flex-direction: column;
}

.option-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.option-group select,
.option-group input {
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.report-preview {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.report-preview h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
}

.preview-content {
  min-height: 200px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-placeholder {
  text-align: center;
  color: var(--gray-500);
}

.preview-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.report-history {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.report-history h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.history-info {
  display: flex;
  flex-direction: column;
}

.history-name {
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.history-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Modals financiers */
.loan-calculation {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.loan-calculation h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
}

.calculation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.calc-item {
  text-align: center;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.calc-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.calc-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.advance-eligibility {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.advance-eligibility h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
}

.eligibility-checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.check-item.success {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.check-item.error {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.check-item i.fa-check {
  color: var(--success);
}

.check-item i.fa-times {
  color: var(--danger);
}

/* Actions dans les tables */
.table-actions {
  display: flex;
  gap: 0.25rem;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Responsive pour l'interface financière */
@media (max-width: 768px) {
  .financial-kpis {
    grid-template-columns: 1fr;
  }

  .financial-nav {
    flex-direction: column;
  }

  .financial-nav-btn {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .financial-nav-btn:last-child {
    border-bottom: none;
  }

  .section-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .toolbar-right {
    justify-content: center;
  }

  .financial-filters {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .report-options {
    grid-template-columns: 1fr;
  }

  .calculation-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== STYLES CALCULATEUR AVANCÉ ===== */

.calculator-nav-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.calculator-section {
  display: none;
}

.calculator-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== STYLES RÉSULTATS AVANCÉS ===== */

.advanced-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.result-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.result-section h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.result-item.highlight {
  background: var(--gray-50);
  margin: 0 -1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.result-item .label {
  color: var(--gray-700);
  font-size: 0.9rem;
}

.result-item .value {
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.result-item .value.positive {
  color: var(--success);
}

.result-item .value.negative {
  color: var(--danger);
}

.result-item .value.net {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ===== STYLES SIMULATION ===== */

.scenario-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.scenario-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.scenario-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.scenario-form {
  display: none;
}

.scenario-form.active {
  display: block;
}

.comparison-table {
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}

.comparison-table .positive {
  color: var(--success);
  font-weight: 600;
}

.comparison-table .negative {
  color: var(--danger);
  font-weight: 600;
}

.comparison-table .highlight {
  background: var(--gray-50);
  font-weight: 600;
}

/* ===== STYLES RECOMMANDATIONS ===== */

.recommendation-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--gray-300);
}

.recommendation-item.high {
  border-left-color: var(--danger);
}

.recommendation-item.medium {
  border-left-color: var(--warning);
}

.recommendation-item.low {
  border-left-color: var(--success);
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.recommendation-header h5 {
  margin: 0;
  color: var(--gray-900);
  font-size: 1rem;
}

.recommendation-header .impact {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: auto;
}

/* ===== STYLES BULLETIN ===== */

.bulletin-preview-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.bulletin-header-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-900);
}

.bulletin-header-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-900);
  font-size: 1.1rem;
}

.bulletin-header-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.85rem;
}

.bulletin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.bulletin-table th,
.bulletin-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}

.bulletin-table th {
  background: var(--gray-100);
  font-weight: bold;
  color: var(--gray-900);
}

.bulletin-table .gain-line td {
  color: var(--gray-900);
}

.bulletin-table .deduction-line td {
  color: var(--gray-700);
}

.bulletin-table .total-line {
  border-top: 1px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
}

.bulletin-table .net-line {
  background: var(--gray-50);
  border-top: 2px solid var(--gray-900);
  border-bottom: 2px solid var(--gray-900);
}

.bulletin-table .positive {
  color: var(--success);
  font-weight: 600;
}

.bulletin-table .negative {
  color: var(--danger);
  font-weight: 600;
}

.bulletin-table .net {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.signature-section {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
}

.signature-line {
  width: 150px;
  height: 1px;
  background: var(--gray-400);
  margin-top: 2rem;
}

/* ===== STYLES HISTORIQUE BULLETINS ===== */

.bulletin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  background: var(--white);
  transition: var(--transition);
}

.bulletin-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.bulletin-info {
  flex: 1;
}

.bulletin-employee {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.bulletin-period {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.bulletin-amount {
  font-weight: 600;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

.bulletin-actions {
  display: flex;
  gap: 0.5rem;
}

/* ===== STYLES RESPONSIVE ===== */

@media (max-width: 768px) {
  .advanced-results-grid {
    grid-template-columns: 1fr;
  }

  .bulletin-header-info {
    flex-direction: column;
    gap: 1rem;
  }

  .signature-section {
    flex-direction: column;
    gap: 2rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .scenario-tabs {
    flex-wrap: wrap;
  }
}

/* ===== STYLES EXEMPLES DE TEST ===== */

.test-examples {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.test-examples h5 {
  margin: 0 0 1rem 0;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.test-examples h5 i {
  color: var(--primary);
}

.example-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.test-example-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  transition: var(--transition);
}

.test-example-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.test-example-btn i {
  font-size: 0.7rem;
}

/* Responsive pour les exemples */
@media (max-width: 768px) {
  .example-buttons {
    flex-direction: column;
  }

  .test-example-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== STYLES PAGINATION EMPLOYÉS ===== */

.employee-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-size: 0.875rem;
}

.pagination-info {
  color: var(--gray-600);
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.pagination-controls .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.pagination-settings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-settings label {
  color: var(--gray-600);
  font-size: 0.8rem;
}

.pagination-settings select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  background: var(--white);
  font-size: 0.8rem;
}

/* ===== STYLES EMPLOYÉ ITEM AMÉLIORÉ ===== */

.employee-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.employee-item:hover {
  background: var(--gray-50);
  transform: translateX(2px);
}

.employee-item.active {
  background: var(--primary);
  color: var(--white);
}

.employee-item.active .employee-function,
.employee-item.active .employee-details,
.employee-item.active .employee-status {
  color: rgba(255, 255, 255, 0.8);
}

.employee-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.employee-item.active .employee-avatar {
  background: rgba(255, 255, 255, 0.2);
}

.employee-info {
  flex: 1;
  min-width: 0;
}

.employee-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.employee-function {
  color: var(--gray-600);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.employee-details {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.employee-salary {
  font-weight: 500;
}

.employee-hire-date {
  opacity: 0.8;
}

.employee-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.employee-action-buttons {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.employee-item:hover .employee-action-buttons {
  opacity: 1;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.btn-icon:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.btn-icon.btn-danger {
  background: var(--gray-100);
  color: var(--danger);
}

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

/* ===== STYLES MODAL IMPORT ===== */

.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  background: var(--gray-50);
  transition: all 0.2s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-upload-area i {
  font-size: 2rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.file-upload-area p {
  margin: 0.5rem 0;
  color: var(--gray-600);
}

.import-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--blue-50);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
}

.import-info h5 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
  font-size: 0.9rem;
}

.import-info p {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--gray-600);
  background: var(--white);
  padding: 0.5rem;
  border-radius: 4px;
}

/* ===== STYLES RESPONSIVE PAGINATION ===== */

@media (max-width: 768px) {
  .employee-pagination {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .pagination-info,
  .pagination-controls,
  .pagination-settings {
    justify-content: center;
  }

  .employee-item {
    padding: 0.75rem;
  }

  .employee-details {
    flex-direction: column;
    gap: 0.25rem;
  }

  .employee-action-buttons {
    opacity: 1;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
  }
}

/* ===== STYLES MODAL CONFIRMATION ===== */

.confirmation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.confirmation-icon {
  margin-bottom: 1rem;
}

.confirmation-icon i {
  font-size: 3rem;
  color: var(--warning);
}

.confirmation-content p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== STYLES MODE ÉDITION PROFIL ===== */

.profile-edit-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--primary);
  border-radius: var(--border-radius);
  background: var(--white);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.profile-edit-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-edit-mode .tab-pane {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.profile-edit-mode .form-group {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.profile-edit-mode .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Boutons d'action du profil */
.profile-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#saveProfileBtn,
#cancelProfileBtn {
  display: none;
}

.profile-edit-mode #saveProfileBtn,
.profile-edit-mode #cancelProfileBtn {
  display: inline-flex;
}

.profile-edit-mode #editProfileBtn,
.profile-edit-mode #printProfileBtn {
  display: none;
}

/* ===== STYLES STATISTIQUES EMPLOYÉS ===== */

.stats-modal {
  padding: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.stat-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.stats-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stats-section {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.stats-section h5 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

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

/* Responsive pour les statistiques */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card h4 {
    font-size: 1.5rem;
  }
}

/* ===== STYLES RECHERCHE AVANCÉE ===== */

.btn-search-advanced {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-search-advanced:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-indicator {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  margin: 1rem 0;
}

.search-indicator-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--primary);
}

.search-indicator-content i {
  color: var(--primary);
}

.btn-clear-search {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  margin-left: auto;
  transition: all 0.2s ease;
}

.btn-clear-search:hover {
  background: var(--primary);
  color: white;
}

/* Amélioration de la search-box */
.search-box {
  position: relative;
}

.search-box input {
  padding-right: 2.5rem;
}

/* Responsive pour la recherche avancée */
@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-indicator-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .btn-clear-search {
    margin-left: 0;
    align-self: flex-end;
  }
}

/* ===== STYLES MODULES FINANCIERS AVANCÉS ===== */

/* Modals de validation hiérarchique */
.approval-details {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.approval-details h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1.1rem;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item label {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.detail-item span {
  color: var(--gray-800);
  font-size: 1rem;
}

.rejection-warning {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.rejection-warning i {
  font-size: 1.5rem;
  color: var(--red-500);
}

.rejection-warning p {
  margin: 0;
  color: var(--red-700);
  font-weight: 500;
}

/* Historique des paiements */
.payment-history-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.payment-history-table {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

/* Détails des prêts */
.loan-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.details-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.details-section h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.progress-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.loan-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--primary));
  transition: width 0.3s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.loan-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* Tableau d'amortissement */
.amortization-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
}

.summary-card h5 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.summary-card span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.amortization-table {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

.amortization-table tr.paid {
  background: var(--green-50);
}

.amortization-table tr.paid td {
  color: var(--green-700);
}

/* Badges de statut */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.status-en-cours,
.status-badge.status-actif {
  background: var(--green-100);
  color: var(--green-700);
}

.status-badge.status-en-attente {
  background: var(--yellow-100);
  color: var(--yellow-700);
}

.status-badge.status-termine,
.status-badge.status-paye {
  background: var(--blue-100);
  color: var(--blue-700);
}

.status-badge.status-rejete,
.status-badge.status-annule {
  background: var(--red-100);
  color: var(--red-700);
}

.status-badge.status-suspendu {
  background: var(--gray-100);
  color: var(--gray-700);
}

/* Badges de type */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.badge.badge-primary {
  background: var(--primary);
  color: white;
}

.badge.badge-info {
  background: var(--blue-500);
  color: white;
}

/* Actions de table améliorées */
.table-actions {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.btn.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-width: auto;
}

.btn.btn-sm i {
  font-size: 0.8rem;
}

/* Responsive pour les modules financiers */
@media (max-width: 768px) {
  .loan-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .amortization-summary {
    grid-template-columns: 1fr;
  }

  .payment-history-filters {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .loan-actions {
    flex-direction: column;
  }

  .table-actions {
    flex-wrap: wrap;
  }
}

/* ===== TABLEAU DE BORD DES PAIEMENTS ===== */

.payment-dashboard {
  padding: 1.5rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h3 {
  margin: 0;
  color: var(--gray-800);
}

.dashboard-actions {
  display: flex;
  gap: 0.5rem;
}

.payment-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card.urgent {
  border-left: 4px solid var(--red-500);
}

.stat-card.warning {
  border-left: 4px solid var(--yellow-500);
}

.stat-card.success {
  border-left: 4px solid var(--green-500);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card.urgent .stat-icon {
  background: var(--red-100);
  color: var(--red-600);
}

.stat-card.warning .stat-icon {
  background: var(--yellow-100);
  color: var(--yellow-600);
}

.stat-card.success .stat-icon {
  background: var(--green-100);
  color: var(--green-600);
}

.stat-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.stat-content p {
  margin: 0 0 0.25rem 0;
  color: var(--gray-600);
  font-weight: 500;
}

.stat-content small {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.payment-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.payment-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.section-header h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-800);
}

.payment-list {
  max-height: 400px;
  overflow-y: auto;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.payment-item:hover {
  background: var(--gray-50);
}

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

.payment-item.overdue {
  border-left: 4px solid var(--red-500);
  background: var(--red-50);
}

.payment-item.upcoming {
  border-left: 4px solid var(--yellow-500);
  background: var(--yellow-50);
}

.payment-item.recent {
  border-left: 4px solid var(--green-500);
  background: var(--green-50);
}

.payment-info {
  flex: 1;
}

.payment-employee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.payment-employee strong {
  color: var(--gray-800);
}

.payment-type {
  background: var(--primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.payment-details {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.payment-amount {
  font-weight: 600;
  color: var(--gray-800);
}

.payment-actions {
  display: flex;
  gap: 0.25rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-400);
}

.empty-state p {
  margin: 0;
  font-style: italic;
}

.loading-payments {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.loading-payments i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.loading-payments p {
  margin: 0;
}

/* Couleurs de texte utilitaires */
.text-danger {
  color: var(--red-600) !important;
}

.text-warning {
  color: var(--yellow-600) !important;
}

.text-success {
  color: var(--green-600) !important;
}

/* Responsive pour le tableau de bord des paiements */
@media (max-width: 768px) {
  .payment-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .dashboard-actions {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .payment-item {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .payment-details {
    justify-content: space-between;
  }

  .payment-actions {
    justify-content: center;
  }
}

/* ===== TABLEAU DE BORD FINANCIER AVANCÉ ===== */

.advanced-financial-dashboard {
  padding: 1.5rem;
}

.dashboard-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dashboard-controls select {
  min-width: 150px;
}

.financial-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.kpi-card.primary::before {
  background: var(--primary);
}

.kpi-card.success::before {
  background: var(--success);
}

.kpi-card.warning::before {
  background: var(--warning);
}

.kpi-card.info::before {
  background: var(--info);
}

.kpi-card.danger::before {
  background: var(--danger);
}

.kpi-card.secondary::before {
  background: var(--gray-500);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.kpi-header h4 {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
}

.kpi-header i {
  font-size: 1.5rem;
  color: var(--gray-400);
}

.kpi-value {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kpi-value .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.kpi-value .count,
.kpi-value .percentage {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.kpi-value .trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.kpi-value .trend.positive {
  color: var(--success);
}

.kpi-value .trend.negative {
  color: var(--danger);
}

.financial-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.chart-header h4 {
  margin: 0;
  color: var(--gray-800);
  font-size: 1rem;
}

.chart-controls {
  display: flex;
  gap: 0.25rem;
}

.chart-controls .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.chart-container {
  padding: 1.5rem;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-container canvas {
  max-width: 100%;
  max-height: 100%;
}

.financial-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.table-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.table-header h4 {
  margin: 0;
  color: var(--gray-800);
  font-size: 1rem;
}

.table-container {
  max-height: 300px;
  overflow-y: auto;
}

.table-container .table {
  margin: 0;
}

.table-container .table th {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Responsive pour le tableau de bord financier avancé */
@media (max-width: 1200px) {
  .financial-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .financial-charts-grid {
    grid-template-columns: 1fr;
  }

  .financial-tables-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .financial-kpis-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .chart-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .chart-controls {
    justify-content: center;
  }

  .kpi-value .value {
    font-size: 1.5rem;
  }
}
