@tailwind base;
@tailwind components;
@tailwind utilities;

/* Classes d'état pour les toggles et éléments interactifs */
/* États d'opacité */
.dimmed {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.active {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* États des slots */
.slot-disabled {
  opacity: 0.75;
  background-color: #f3f4f6;
  transition: all 0.3s ease;
}

.slot-disabled input,
.slot-disabled select {
  opacity: 0.5;
  pointer-events: none;
}

/* États des éléments désactivés */
.disabled {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Animation de rotation pour les icônes de toggle */
.toggle-icon {
  transition: transform 0.3s ease;
}

.toggle-icon.rotate-180 {
  transform: rotate(180deg);
}

/* États de modification */
.modified {
  background-color: #fef3c7;
  border-color: #f59e0b;
  transition: all 0.3s ease;
}

/* États de chargement */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* États de survol */
.hoverable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

/* Masquer les selects originaux de Select2 */
select.select2-hidden-accessible {
  display: none !important;
}

/* Système de design avec variables CSS personnalisées */
:root {
  --background: oklch(1.0000 0 0);
  --foreground: oklch(0 0 0);
  --card: oklch(1.0000 0 0);
  --card-foreground: oklch(0 0 0);
  --popover: oklch(1.0000 0 0);
  --popover-foreground: oklch(0 0 0);
  --primary: oklch(0.5814 0.2349 27.9869);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.8699 0 0);
  --secondary-foreground: oklch(0 0 0);
  --muted: oklch(0.9067 0 0);
  --muted-foreground: oklch(0.5555 0 0);
  --accent: oklch(0.5814 0.2349 27.9869);
  --accent-foreground: oklch(1.0000 0 0);
  --destructive: oklch(0.5814 0.2349 27.9869);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.8699 0 0);
  --input: oklch(0.9219 0 0);
  --ring: oklch(0.5814 0.2349 27.9869);
  --chart-1: oklch(0.5814 0.2349 27.9869);
  --chart-2: oklch(0.4939 0.2019 27.9940);
  --chart-3: oklch(0.6612 0.2256 23.1993);
  --chart-4: oklch(0.3999 0.1641 29.2339);
  --chart-5: oklch(0.4557 0.1864 28.2294);
  --sidebar: oklch(1.0000 0 0);
  --sidebar-foreground: oklch(0 0 0);
  --sidebar-primary: oklch(0.5814 0.2349 27.9869);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.5814 0.2349 27.9869);
  --sidebar-accent-foreground: oklch(1.0000 0 0);
  --sidebar-border: oklch(0.8699 0 0);
  --sidebar-ring: oklch(0.5814 0.2349 27.9869);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  --font-serif: serif;
  --font-mono: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  --radius: 0.5rem;
  --shadow-2xs: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.15);
  --shadow-xs: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.15);
  --shadow-sm: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 1px 2px -0.9px hsl(0 0% 0% / 0.30);
  --shadow: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 1px 2px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-md: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 2px 4px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-lg: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 4px 6px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-xl: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 8px 10px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-2xl: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.75);
  --tracking-normal: 0.025em;
  --spacing: 0.25rem;
}

.dark {
  --background: oklch(0.1913 0 0);
  --foreground: oklch(1.0000 0 0);
  --card: oklch(0.2350 0 0);
  --card-foreground: oklch(1.0000 0 0);
  --popover: oklch(0.2350 0 0);
  --popover-foreground: oklch(1.0000 0 0);
  --primary: oklch(0.5814 0.2349 27.9869);
  --primary-foreground: oklch(1.0000 0 0);
  --secondary: oklch(0.3211 0 0);
  --secondary-foreground: oklch(1.0000 0 0);
  --muted: oklch(0.2972 0 0);
  --muted-foreground: oklch(0.7155 0 0);
  --accent: oklch(0.5814 0.2349 27.9869);
  --accent-foreground: oklch(1.0000 0 0);
  --destructive: oklch(0.5814 0.2349 27.9869);
  --destructive-foreground: oklch(1.0000 0 0);
  --border: oklch(0.3211 0 0);
  --input: oklch(0.3211 0 0);
  --ring: oklch(0.5814 0.2349 27.9869);
  --chart-1: oklch(0.5814 0.2349 27.9869);
  --chart-2: oklch(0.4939 0.2019 27.9940);
  --chart-3: oklch(0.6612 0.2256 23.1993);
  --chart-4: oklch(0.3999 0.1641 29.2339);
  --chart-5: oklch(0.4557 0.1864 28.2294);
  --sidebar: oklch(0.1913 0 0);
  --sidebar-foreground: oklch(1.0000 0 0);
  --sidebar-primary: oklch(0.5814 0.2349 27.9869);
  --sidebar-primary-foreground: oklch(1.0000 0 0);
  --sidebar-accent: oklch(0.5814 0.2349 27.9869);
  --sidebar-accent-foreground: oklch(1.0000 0 0);
  --sidebar-border: oklch(0.3211 0 0);
  --sidebar-ring: oklch(0.5814 0.2349 27.9869);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  --font-serif: serif;
  --font-mono: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  --radius: 0.5rem;
  --shadow-2xs: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.15);
  --shadow-xs: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.15);
  --shadow-sm: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 1px 2px -0.9px hsl(0 0% 0% / 0.30);
  --shadow: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 1px 2px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-md: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 2px 4px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-lg: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 4px 6px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-xl: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.30), 2px 8px 10px -0.9px hsl(0 0% 0% / 0.30);
  --shadow-2xl: 2px 2.5px 0.75rem 0.1rem hsl(0 0% 0% / 0.75);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
  --font-serif: var(--font-serif);

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --shadow-2xs: var(--shadow-2xs);
  --shadow-xs: var(--shadow-xs);
  --shadow-sm: var(--shadow-sm);
  --shadow: var(--shadow);
  --shadow-md: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
  --shadow-xl: var(--shadow-xl);
  --shadow-2xl: var(--shadow-2xl);

  --tracking-tighter: calc(var(--tracking-normal) - 0.05em);
  --tracking-tight: calc(var(--tracking-normal) - 0.025em);
  --tracking-normal: var(--tracking-normal);
  --tracking-wide: calc(var(--tracking-normal) + 0.025em);
  --tracking-wider: calc(var(--tracking-normal) + 0.05em);
  --tracking-widest: calc(var(--tracking-normal) + 0.1em);
}

body {
  letter-spacing: var(--tracking-normal);
}

/*
  Utilisez directement les classes utilitaires Tailwind dans vos fichiers .cshtml :
  Exemple :
  <button class="bg-primary text-primary-foreground px-4 py-2 rounded-lg">Bouton</button>
*/

/* Pagination DataTables moderne - Style spécifique */
.dataTables_wrapper.modern-pagination .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-right: 1.5rem;
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.9rem;
    border: none;
    background: transparent;
    color: #374151;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    margin: 0 2px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button:hover {
    background: #fee2e2;
    color: #b91c1c;
    text-decoration: none;
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button.current {
    background: #dc2626;
    color: #fff !important;
    font-weight: 700;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08);
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button.disabled {
    background: transparent;
    color: #9ca3af !important;
    cursor: not-allowed;
    text-decoration: none;
}

/* Style par défaut pour les autres tables */
.dataTables_wrapper:not(.modern-pagination) .dataTables_paginate {
    /* Garder le style Bootstrap par défaut */
}

/* Forcer l'application du style moderne pour la table des agences */
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.9rem !important;
    border: none !important;
    background: transparent !important;
    color: #111827 !important;
    border-radius: 0.75rem !important;
    font-weight: 500 !important;
    transition: background 0.2s, color 0.2s !important;
    margin: 0 2px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    text-decoration: none !important;
}

#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.current {
    background: #dc2626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08) !important;
}

#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.disabled {
    background: transparent !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
}

/* Styles pour les classes Bootstrap de pagination - HORIZONTALE */
#agencesTable_wrapper.modern-pagination .pagination {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#agencesTable_wrapper.modern-pagination .pagination .page-item {
    display: inline-block !important;
    margin: 0 2px !important;
}

#agencesTable_wrapper.modern-pagination .pagination .page-item .page-link {
    padding: 0.5rem 0.9rem !important;
    border: none !important;
    background: transparent !important;
    color: #111827 !important;
    border-radius: 0.75rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: inline-block !important;
    min-width: 2.5rem !important;
    text-align: center !important;
    white-space: nowrap !important;
}

#agencesTable_wrapper.modern-pagination .pagination .page-item .page-link:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#agencesTable_wrapper.modern-pagination .pagination .page-item.active .page-link {
    background: #dc2626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08) !important;
    border: none !important;
}

#agencesTable_wrapper.modern-pagination .pagination .page-item.disabled .page-link {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 0.6 !important;
}

/* Styles ultra-spécifiques pour surcharger DataTables Bootstrap */
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button:active,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button:focus {
    padding: 0.5rem 0.9rem !important;
    border: none !important;
    background: transparent !important;
    color: #374151 !important;
    border-radius: 0.75rem !important;
    font-weight: 500 !important;
    margin: 0 2px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button:hover,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button:hover:active,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button:hover:focus {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.current,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.current:active,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.current:focus {
    background: #dc2626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08) !important;
}

#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.disabled,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.disabled:active,
#agencesTable_wrapper.modern-pagination .dataTables_paginate .paginate_button.disabled:focus {
    background: transparent !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Détails des lignes enfants DataTables - même taille que le parent */
table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

table.dataTable > tbody > tr.child ul.dtr-details li {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

table.dataTable > tbody > tr.child ul.dtr-details li:last-child {
    border-bottom: none;
}

table.dataTable > tbody > tr.child ul.dtr-details li .dtr-title {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
    margin-right: 1rem;
    flex-shrink: 0;
}

table.dataTable > tbody > tr.child ul.dtr-details li .dtr-data {
    color: #6b7280;
    flex: 1;
    word-break: break-word;
}

/* Styles pour les lignes cliquables de la DataTable */
#agencesTable tbody tr {
    transition: background-color 0.2s ease;
}

#agencesTable tbody tr:hover {
    background-color: #f9fafb !important;
}

#agencesTable tbody tr.bg-gray-50 {
    background-color: #f9fafb !important;
}

#agencesTable tbody tr.bg-gray-50:hover {
    background-color: #f3f4f6 !important;
}

/* Curseur pointer uniquement sur la première colonne */
#agencesTable tbody tr td:first-child {
    cursor: pointer;
}

#agencesTable tbody tr td:first-child:hover {
    background-color: #f3f4f6 !important;
}

/* Styles pour les détails des lignes DataTables */
#agencesTable tbody tr.child {
    background-color: #f9fafb !important;
}

#agencesTable tbody tr.child:hover {
    background-color: #f3f4f6 !important;
}

/* Améliorer l'apparence des détails */
#agencesTable tbody tr.child ul.dtr-details {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    margin: 0.5rem 0 !important;
    padding: 1rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Styles pour les contrôles DataTables */
.dt-length,
.dt-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.dt-length label,
.dt-search label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dt-length label::after {
    content: "";
    display: inline-block;
    width: 0.25rem;
}

.dt-search label::after {
    content: "";
    display: inline-block;
    width: 0.25rem;
}

/* Styles pour les classes Bootstrap */
.dt-length select.form-select,
.dt-length select.form-select-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
    min-width: 5rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dt-length select.form-select:focus,
.dt-length select.form-select-sm:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dt-search input.form-control,
.dt-search input.form-control-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
    min-width: 16rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dt-search input.form-control:focus,
.dt-search input.form-control-sm:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dt-search input.form-control::placeholder,
.dt-search input.form-control-sm::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Styles pour les classes de marge DataTables */
.dataTables_wrapper .mt-4 {
    margin-top: 1rem !important;
}

.dataTables_wrapper .mb-4 {
    margin-bottom: 1rem !important;
}

/* Container des contrôles */
.dataTables_wrapper .flex.flex-col.sm\\:flex-row {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin: 2rem 1.5rem 2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Responsive design */
@media (max-width: 640px) {
    .dt-length,
    .dt-search {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }
    
    .dt-length select,
    .dt-search input,
    .dt-length select.form-select,
    .dt-length select.form-select-sm,
    .dt-search input.form-control,
    .dt-search input.form-control-sm {
        min-width: 10rem;
        flex: 1;
    }
    
    .dataTables_wrapper .flex.flex-col.sm\\:flex-row {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Hover effects */
.dt-length select:hover,
.dt-search input:hover,
.dt-length select.form-select:hover,
.dt-length select.form-select-sm:hover,
.dt-search input.form-control:hover,
.dt-search input.form-control-sm:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dt-length label,
    .dt-search label {
        color: #f3f4f6;
    }
    
    .dt-length select,
    .dt-search input,
    .dt-length select.form-select,
    .dt-length select.form-select-sm,
    .dt-search input.form-control,
    .dt-search input.form-control-sm {
        background-color: #1f2937;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .dt-search input::placeholder,
    .dt-search input.form-control::placeholder,
    .dt-search input.form-control-sm::placeholder {
        color: #6b7280;
    }
    
    .dataTables_wrapper .flex.flex-col.sm\\:flex-row {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
        border-color: #374151;
    }
}

/* Animation d'entrée */
.dataTables_wrapper .flex.flex-col.sm\\:flex-row {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles personnalisés pour DataTables sans Bootstrap */
.custom-datatable .dt-length select,
.custom-datatable .dt-search input {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
    min-width: 5rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-datatable .dt-length select:focus,
.custom-datatable .dt-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-datatable .dt-search input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.custom-datatable .dt-length select:hover,
.custom-datatable .dt-search input:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Override des styles Bootstrap */
.custom-datatable .form-select,
.custom-datatable .form-control,
.custom-datatable .form-select-sm,
.custom-datatable .form-control-sm {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    transition: all 0.2s ease-in-out !important;
    min-width: 5rem !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.custom-datatable .form-select:focus,
.custom-datatable .form-control:focus,
.custom-datatable .form-select-sm:focus,
.custom-datatable .form-control-sm:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.custom-datatable .form-control::placeholder,
.custom-datatable .form-control-sm::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.custom-datatable .form-select:hover,
.custom-datatable .form-control:hover,
.custom-datatable .form-select-sm:hover,
.custom-datatable .form-control-sm:hover {
    border-color: #d1d5db !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Styles pour la pagination et informations DataTables */
.dataTables_info {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    padding: 0.5rem 0;
}

.dataTables_paginate {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    margin: 0 0.125rem;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.dataTables_paginate .paginate_button.current {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

.dataTables_paginate .paginate_button.disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.dataTables_paginate .paginate_button.disabled:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
}

/* Styles génériques pour modern-pagination */
.dataTables_wrapper.modern-pagination .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-right: 1.5rem;
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.9rem;
    border: none;
    background: transparent;
    color: #374151;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    margin: 0 2px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button:hover {
    background: #fee2e2;
    color: #b91c1c;
    text-decoration: none;
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button.current {
    background: #dc2626;
    color: #fff !important;
    font-weight: 700;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08);
}

.dataTables_wrapper.modern-pagination .dataTables_paginate .paginate_button.disabled {
    background: transparent;
    color: #9ca3af !important;
    cursor: not-allowed;
    text-decoration: none;
}

/* Styles pour les informations de pagination avec modern-pagination */
.dataTables_wrapper.modern-pagination .dataTables_info {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    padding: 0.5rem 0;
    text-align: left;
}

/* Container de pagination pour modern-pagination */
.dataTables_wrapper.modern-pagination .flex.flex-col.sm\\:flex-row:last-child {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin: 1.5rem 1.5rem 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Responsive pour modern-pagination */
@media (max-width: 640px) {
    .dataTables_wrapper.modern-pagination .dataTables_paginate {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dataTables_wrapper.modern-pagination .dataTables_info {
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .dataTables_wrapper.modern-pagination .flex.flex-col.sm\\:flex-row:last-child {
        padding: 0.75rem;
        margin: 1rem 0.75rem 0 0.75rem;
    }
}

/* ===== STYLES POUR LES FILTRES MODERNES ===== */

/* Container principal des filtres modernes */
.modern-filters-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Header des filtres */
.modern-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modern-filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
}

.modern-filters-title svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
}

/* Badge des filtres actifs */
.active-filters-badge {
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.active-filters-badge.hidden {
    display: none;
}

/* Boutons d'action */
.modern-filters-actions {
    display: flex;
    gap: 0.5rem;
}

.modern-filters-toggle-btn,
.modern-filters-reset-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-filters-toggle-btn:hover,
.modern-filters-reset-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.modern-filters-toggle-btn svg,
.modern-filters-reset-btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease-in-out;
}

/* Container des filtres détaillés */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.filters-container.hidden {
    display: none;
}

/* Styles pour Select2 dans les filtres modernes */
.modern-filters-container .select2-container {
    width: 100% !important;
}

.modern-filters-container .select2-container--default .select2-selection--single {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    background: white;
    transition: all 0.2s ease-in-out;
}

.modern-filters-container .select2-container--default .select2-selection--single:hover {
    border-color: #d1d5db;
}

.modern-filters-container .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-filters-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    line-height: 1.5;
}

.modern-filters-container .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.modern-filters-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.5rem;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-filters-container .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    width: 0;
    height: 0;
    margin-left: 0;
    margin-top: 0;
    position: static;
}

/* Styles pour Select2 multiple */
.modern-filters-container .select2-container--default .select2-selection--multiple {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    min-height: 2.5rem;
    background: white;
    transition: all 0.2s ease-in-out;
}

.modern-filters-container .select2-container--default .select2-selection--multiple:hover {
    border-color: #d1d5db;
}

.modern-filters-container .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-filters-container .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem;
}

.modern-filters-container .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 0.25rem;
    font-weight: bold;
}

.modern-filters-container .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0.25rem 0.5rem;
}

/* Dropdown Select2 */
.modern-filters-container .select2-dropdown {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: white;
}

.modern-filters-container .select2-container--default .select2-results__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
}

.modern-filters-container .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #3b82f6;
    color: white;
}

.modern-filters-container .select2-container--default .select2-results__option[aria-selected=true] {
    background: #f3f4f6;
    color: #1f2937;
}

/* ===== STYLES POUR LES CHILD ROWS ===== */

/* Styles pour les lignes enfants DataTables */
#agencesTable tbody tr.child {
    background-color: rgb(249 250 251) !important;
    padding-bottom: 1rem !important;
}

#agencesTable tbody tr.child:hover {
    background-color: rgb(243 244 246) !important;
}

/* Styles pour les détails des child rows */
#agencesTable tbody tr.child .child-row-content {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    margin: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Sections des détails */
.child-row-section {
    margin-bottom: 1.5rem;
}

.child-row-section:last-child {
    margin-bottom: 0;
}

.child-row-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-row-section-title svg {
    width: 1.125rem;
    height: 1.125rem;
    color: #6b7280;
}

/* Grille des informations */
.child-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.child-row-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.child-row-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.child-row-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
}

/* Actions dans les child rows */
.child-row-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.child-row-actions button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-row-actions button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.child-row-actions button.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.child-row-actions button.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.child-row-actions button.danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.child-row-actions button.danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Responsive pour les child rows */
@media (max-width: 768px) {
    .child-row-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .child-row-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .child-row-actions button {
        flex: 1;
        min-width: 120px;
    }
}

/* ===== STYLES POUR LE TBODY ===== */

/* Styles pour le tbody de la table des agences */
#agencesTable tbody {
    background-color: white;
}

#agencesTable tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

/* ===== ANIMATIONS ET TRANSITIONS ===== */

/* Animation pour l'apparition des child rows */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#agencesTable tbody tr.child {
    animation: slideDown 0.3s ease-out;
}

/* Transition pour les hover effects */
#agencesTable tbody tr,
.modern-filters-toggle-btn,
.modern-filters-reset-btn,
.child-row-actions button {
    transition: all 0.2s ease-in-out;
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) {
    .modern-filters-container {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
        border-color: #374151;
    }
    
    .modern-filters-title {
        color: #f3f4f6;
    }
    
    .modern-filters-container .select2-container--default .select2-selection--single,
    .modern-filters-container .select2-container--default .select2-selection--multiple {
        background: #1f2937;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .modern-filters-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #f3f4f6;
    }
    
    .modern-filters-container .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #6b7280;
    }
    
    .modern-filters-container .select2-dropdown {
        background: #1f2937;
        border-color: #4b5563;
    }
    
    .modern-filters-container .select2-container--default .select2-results__option {
        color: #f3f4f6;
    }
    
    .modern-filters-container .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background: #3b82f6;
    }
    
    .modern-filters-container .select2-container--default .select2-results__option[aria-selected=true] {
        background: #374151;
        color: #f3f4f6;
    }
    
    #agencesTable tbody tr.child {
        background-color: #1f2937 !important;
    }
    
    #agencesTable tbody tr.child:hover {
        background-color: #374151 !important;
    }
    
    .child-row-content {
        background: #111827;
        border-color: #374151;
    }
    
    .child-row-section-title {
        color: #f3f4f6;
        border-color: #374151;
    }
    
    .child-row-label {
        color: #9ca3af;
    }
    
    .child-row-value {
        color: #f3f4f6;
    }
    
    .child-row-actions {
        border-color: #374151;
    }
    
    .child-row-actions button {
        background: #374151;
        color: #f3f4f6;
        border-color: #4b5563;
    }
    
    .child-row-actions button:hover {
        background: #4b5563;
        border-color: #6b7280;
    }
}

/* ===== STYLES POUR LA PAGINATION DATATABLES MODERNE ===== */

/* Styles pour la pagination DataTables - Design moderne avec Bootstrap */
.dataTables_paginate.paging_full_numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1.5rem !important;
}

.dataTables_paginate .pagination {
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.dataTables_paginate .pagination .page-item {
    margin: 0 !important;
    padding: 0 !important;
}

.dataTables_paginate .pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.25rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.dataTables_paginate .pagination .page-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.5s !important;
}

.dataTables_paginate .pagination .page-link:hover::before {
    left: 100% !important;
}

.dataTables_paginate .pagination .page-link:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.dataTables_paginate .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3), 0 2px 4px -1px rgba(220, 38, 38, 0.2) !important;
    transform: translateY(-1px) !important;
}

.dataTables_paginate .pagination .page-item.active .page-link:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    border-color: #b91c1c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 8px -1px rgba(220, 38, 38, 0.4), 0 4px 6px -1px rgba(220, 38, 38, 0.3) !important;
}

.dataTables_paginate .pagination .page-item.disabled .page-link {
    color: #9ca3af !important;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    border-color: #e5e7eb !important;
    opacity: 0.6 !important;
}

.dataTables_paginate .pagination .page-item.disabled .page-link:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Corriger la barre de scroll horizontal */
.dataTables_wrapper {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.dataTables_paginate {
    overflow-x: hidden !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.dataTables_paginate .pagination {
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 100% !important;
}

/* Responsive design pour la pagination */
@media (max-width: 768px) {
    .dataTables_paginate .pagination {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .dataTables_paginate .pagination .page-link {
        min-width: 2rem !important;
        height: 2rem !important;
        font-size: 0.75rem !important;
    }
}

/* Classes Tailwind CSS manquantes */
.bg-gray-200 {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

/* ==================
   Responsive: cacher exports en mobile uniquement
   ================== */
@media (max-width: 767px) {
  /* Bouton d'ouverture de la barre d'export (Agences) */
  #open-export-modal { display: none !important; }

  /* Barres d'export et overlays (Agences + Reusable) */
  #export-bar,
  #export-overlay,
  [id^="export-bar-"],
  [id^="export-overlay-"] { display: none !important; }

  /* Toolbar DataTables Buttons */
  /*div.dt-buttons { display: none !important; }*/

  /* Masquer la barre d'info (breadcrumb) uniquement sur mobile */
  #info-bar { display: none !important; }
}

/* ==================
   Classes personnalisées pour la couleur turquoise (rgb(86, 172, 165))
   ================== */

/* Couleur principale */
:root {
  --teal-custom: rgb(86, 172, 165);
  --teal-custom-dark: rgb(70, 150, 145);
  --teal-custom-light: rgba(86, 172, 165, 0.1);
  --teal-custom-lighter: rgba(86, 172, 165, 0.2);
  --teal-custom-lightest: rgba(86, 172, 165, 0.3);
  --teal-custom-border: rgba(86, 172, 165, 0.3);
  --teal-custom-border-light: rgba(86, 172, 165, 0.4);
}

/* Background */
.bg-teal-custom {
  background-color: var(--teal-custom) !important;
}

.bg-teal-custom-dark {
  background-color: var(--teal-custom-dark) !important;
}

.bg-teal-custom-light {
  background-color: var(--teal-custom-light) !important;
}

.bg-teal-custom-lighter {
  background-color: var(--teal-custom-lighter) !important;
}

.bg-teal-custom-lightest {
  background-color: var(--teal-custom-lightest) !important;
}

/* Text */
.text-teal-custom {
  color: var(--teal-custom) !important;
}

.text-teal-custom-dark {
  color: var(--teal-custom-dark) !important;
}

/* Border */
.border-teal-custom {
  border-color: var(--teal-custom) !important;
}

.border-teal-custom-light {
  border-color: var(--teal-custom-border) !important;
}

.border-teal-custom-lighter {
  border-color: var(--teal-custom-border-light) !important;
}

/* Hover states */
.hover\:bg-teal-custom-dark:hover {
  background-color: var(--teal-custom-dark) !important;
}

.hover\:text-teal-custom-dark:hover {
  color: var(--teal-custom-dark) !important;
}

.hover\:border-teal-custom-dark:hover {
  border-color: var(--teal-custom-dark) !important;
}

/* Focus states */
.focus\:ring-teal-custom:focus {
  --tw-ring-color: var(--teal-custom);
  box-shadow: 0 0 0 1px var(--teal-custom) !important;
}

.focus\:border-teal-custom:focus {
  border-color: var(--teal-custom) !important;
  box-shadow: 0 0 0 1px var(--teal-custom) !important;
}

/* Spinner/Border color */
.border-teal-custom-spinner {
  border-color: var(--teal-custom) !important;
}