/* Tema personalizado con colores cálidos */
        .dataTables_wrapper .dataTables_paginate .paginate_button.current,
        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            color: #fff !important;
            border: 1px solid #d97706 !important;
            background: linear-gradient(to bottom, #f59e0b 0%, #d97706 100%) !important;
        }

        .dataTables_wra/* Estilo para tablas */
.table-header {
  background-color: var(--amber-50);
}

.table-border {
  border-color: var(--amber-200);
}

/* Estilos para DataTables con bordes redondeados */
.dataTables_wrapper {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Asegurar que el fondo del encabezado tenga el color correcto */
table.dataTable thead {
  background-color: rgba(251, 191, 36, 0.05) !important;
}

/* Eliminar bordes conflictivos de DataTables */
.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollBody,
.dataTables_wrapper .dataTables_scrollHead {
  border: none !important;
}

/* Asegurarse que las celdas respetan el borde redondeado del contenedor */
table.dataTable.stripe tbody tr.odd {
  background-color: white;
}

table.dataTable.stripe tbody tr.even {
  background-color: rgba(251, 191, 36, 0.08);
}taTables_paginate .paginate_button:hover {
            color: white !important;
            border: 1px solid #f59e0b !important;
            background: linear-gradient(to bottom, #fbbf24 0%, #f59e0b 100%) !important;
        }

        /* Estilos generales para mantener consistencia */
        .bg-white {
            background-color: #FDF8F1; /* Tono café muy claro/beige para mejor descanso visual */
        }

        /* Contenedor principal con color de fondo suave */
        .content-container {
            background-color: #FDF8F1;
            min-height: calc(100vh - 80px); /* Ajustar según altura del header */
            padding-bottom: 0 !important; /* Evitar espacio extra al final del contenido */
        }

        /* Eliminar espacio blanco entre contenido y footer */
        main > div > div:last-child {
            margin-bottom: -1.5rem; /* Compensar el espacio entre el contenido y el footer */
        }

        /* Fondos para tarjetas y secciones con un tono aún más suave */
        .content-card {
            background-color: #FFFBF5;
            border: 1px solid #F5E9D9;
            border-radius: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        /* Estilo de tabla a rayas con colores suaves */
        table.dataTable {
            background-color: #FFFCF7 !important; /* Fondo base para la tabla */
        }

        table.dataTable tbody tr:nth-of-type(odd) {
            background-color: rgba(251, 243, 219, 0.3);
        }

        table.dataTable tbody tr:hover {
            background-color: rgba(251, 243, 219, 0.7);
        }

        table.dataTable thead th {
            background-color: #FBF3DB !important; /* Color más oscuro para cabeceras */
            color: #92400e !important; /* Texto café para cabeceras */
            font-weight: 600 !important;
            border-bottom: 2px solid #F7E2BC !important; /* Borde inferior para cabeceras */
        }

        /* Color de texto en celdas de la tabla */
        table.dataTable tbody td {
            color: #92400e !important; /* Texto café para el contenido */
        }        /* Estilos para botones de acción */
        .action-btn,
        td a,
        td button,
        .actions-column a,
        .actions-column button {
            color: #92400e !important;
        }

        /* Iconos en la tabla de acciones */
        .actions-cell i,
        td i.fas,
        td i.far,
        td i.fa,
        td svg {
            color: #92400e !important;
        }

        /* Estilos específicos para DataTables */
        #animals-table {
            width: 100% !important;
            margin: 0 !important;
            font-size: 0.925rem;
        }

        .dataTables_wrapper {
            width: 100% !important;
            padding: 0 !important;
        }

        /* Colores para los controles de DataTables */
        .dataTables_info,
        .dataTables_filter,
        .dataTables_length {
            color: #92400e !important;
        }

        /* Mejorar apariencia de inputs */
        .dataTables_wrapper .dataTables_filter input {
            border: 1px solid #fdba74 !important;
            border-radius: 4px !important;
            padding: 0.35rem 0.6rem !important;
            background-color: #FFFDF9 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
            color: #92400e !important; /* Color del texto en tono café */
        }

        .dataTables_wrapper .dataTables_length select {
            border: 1px solid #fdba74 !important;
            border-radius: 4px !important;
            padding: 0.35rem !important;
            background-color: #FFFDF9 !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
            color: #92400e !important; /* Color del texto en tono café */
        }

        /* Estilo para inputs en formularios */
        input.form-input,
        select.form-select,
        textarea.form-textarea,
        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="number"],
        input[type="date"],
        input[type="time"],
        input[type="search"],
        select,
        textarea {
            background-color: #FFFDF9 !important;
            border: 1px solid #F5E9D9 !important;
            color: #92400e !important; /* Color del texto en tono café */
        }

        input.form-input:focus,
        select.form-select:focus,
        textarea.form-textarea:focus,
        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="password"]:focus,
        input[type="number"]:focus,
        input[type="date"]:focus,
        input[type="time"]:focus,
        input[type="search"]:focus,
        select:focus,
        textarea:focus {
            border-color: #f59e0b !important;
            box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
            color: #92400e !important;
        }

        /* Estilo para opciones dentro de select */
        option {
            background-color: #FFFDF9 !important;
            color: #92400e !important;
        }

        /* Estilo para placeholder */
        ::placeholder {
            color: #d4946b !important;
            opacity: 0.7 !important;
        }

        /* Eliminar scroll horizontal y padding innecesario */
        .dataTable {
            margin-left: 0 !important;
            margin-right: 0 !important;
            border-collapse: collapse;
        }

        /* Corregir espaciado de controles */
        .dataTables_filter,
        .dataTables_length {
            margin-bottom: 1rem !important;
        }

        /* Ajustes móviles */
        @media (max-width: 768px) {
            .dataTables_wrapper .dataTables_info,
            .dataTables_wrapper .dataTables_paginate {
                text-align: left;
                display: block;
                margin-top: 0.75em;
            }
        }


        /* Mejorar la barra de scroll */
        .overflow-x-auto::-webkit-scrollbar,
        body::-webkit-scrollbar {
            height: 10px;
            width: 10px;
        }

        .overflow-x-auto::-webkit-scrollbar-track,
        body::-webkit-scrollbar-track {
            background: #FDF8F1;
            border-radius: 5px;
        }

        .overflow-x-auto::-webkit-scrollbar-thumb,
        body::-webkit-scrollbar-thumb {
            background: #F5E9D9;
            border-radius: 5px;
            border: 2px solid #FDF8F1;
        }

        .overflow-x-auto::-webkit-scrollbar-thumb:hover,
        body::-webkit-scrollbar-thumb:hover {
            background: #F7E2BC;
        }

        /* Estilos personalizados para MH-Ganado */

/* Colores principales */
:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --amber-950: #451a03;
}

/* Clases de fondo */
.bg-amber-50 {
  background-color: var(--amber-50);
}
.bg-amber-100 {
  background-color: var(--amber-100);
}
.bg-amber-200 {
  background-color: var(--amber-200);
}
.bg-amber-300 {
  background-color: var(--amber-300);
}
.bg-amber-400 {
  background-color: var(--amber-400);
}
.bg-amber-500 {
  background-color: var(--amber-500);
}
.bg-amber-600 {
  background-color: var(--amber-600);
}
.bg-amber-700 {
  background-color: var(--amber-700);
}
.bg-amber-800 {
  background-color: var(--amber-800);
}
.bg-amber-900 {
  background-color: var(--amber-900);
}

/* Clases de texto */
.text-amber-50 {
  color: var(--amber-50);
}
.text-amber-100 {
  color: var(--amber-100);
}
.text-amber-200 {
  color: var(--amber-200);
}
.text-amber-300 {
  color: var(--amber-300);
}
.text-amber-400 {
  color: var(--amber-400);
}
.text-amber-500 {
  color: var(--amber-500);
}
.text-amber-600 {
  color: var(--amber-600);
}
.text-amber-700 {
  color: var(--amber-700);
}
.text-amber-800 {
  color: var(--amber-800);
}
.text-amber-900 {
  color: var(--amber-900);
}

/* Clases de borde */
.border-amber-50 {
  border-color: var(--amber-50);
}
.border-amber-100 {
  border-color: var(--amber-100);
}
.border-amber-200 {
  border-color: var(--amber-200);
}
.border-amber-300 {
  border-color: var(--amber-300);
}
.border-amber-400 {
  border-color: var(--amber-400);
}
.border-amber-500 {
  border-color: var(--amber-500);
}
.border-amber-600 {
  border-color: var(--amber-600);
}
.border-amber-700 {
  border-color: var(--amber-700);
}
.border-amber-800 {
  border-color: var(--amber-800);
}
.border-amber-900 {
  border-color: var(--amber-900);
}

/* Estilos específicos para botones */
.btn-primary {
  background-color: var(--amber-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--amber-700);
}

/* Botones secundarios */
.btn-secondary {
  background-color: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-300);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--amber-100);
}

/* Estilos para los menús desplegables */
.dropdown-menu {
  position: absolute;
  background-color: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1050;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--amber-700);
  display: flex;
  align-items: center;
}

.dropdown-item:hover {
  background-color: var(--amber-100);
}

/* Asegurar que los elementos del menú desplegable aparezcan correctamente */
.relative {
  position: relative;
}

/* Estilo para hacer que el menú flote por encima del contenido */
#export-menu {
  position: absolute;
  z-index: 1050;
  overflow: visible;
}

/* Barra de navegación y menús */
.navbar {
  background-color: var(--amber-50);
  border-bottom: 1px solid var(--amber-200);
}

.nav-link.active {
  border-bottom: 2px solid var(--amber-600);
  color: var(--amber-800);
}

.nav-link:hover {
  color: var(--amber-700);
}

/* Estilos para tablas */
.table-header {
  background-color: var(--amber-50);
}

.table-border {
  border-color: var(--amber-200);
}


html { -webkit-text-size-adjust: 100%; }

          /* Evitar auto-zoom al enfocar inputs en iOS cuando la fuente es <16px */
          @media (max-width: 640px) {
            input, select, textarea { font-size: 16px; }
          }

          /* Box sizing básico */
          * { box-sizing: border-box; }

          /* Estilos full width */
          .container-fluid {
            width: 100% !important;
            max-width: none !important;
            padding-left: 1rem;
            padding-right: 1rem;
          }

          @media (min-width: 640px) {
            .container-fluid {
              padding-left: 1.5rem;
              padding-right: 1.5rem;
            }
          }

          @media (min-width: 1024px) {
            .container-fluid {
              padding-left: 2rem;
              padding-right: 2rem;
            }
          }
