/* ========================================================================
   🎨 Modern UI Global Style V4
   Bordes redondeados, sombras suaves y consistencia en todo el sistema
   ======================================================================== */

/* ---------------- MODALES ---------------- */
.modal-content {
  border-radius: 15px !important;
  border: none !important;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.modal-content:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.modal-header {
  background: #2f3542; /* neutro elegante */
  color: #fff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: none;
  padding: 15px 20px;
}
.modal-header .close {
  color: #fff;
  opacity: 0.8;
  font-size: 22px;
  transition: all 0.2s;
}
.modal-header .close:hover { opacity: 1; }
.modal-title {
  font-weight: 600;
  font-size: 17px;
}
.modal-footer {
  border-top: none;
  padding-top: 10px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* ---------------- ALERTS ---------------- */
.alert {
  border-radius: 12px;
  padding: 15px 20px;
  font-weight: 500;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  animation: fadeInUp 0.4s ease both;
  position: relative;
  margin-bottom: 15px;
}
.alert .close {
  color: inherit;
  opacity: 0.8;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 10px;
  transition: opacity 0.2s ease;
}
.alert .close:hover { opacity: 1; }

.alert-primary {
  background: linear-gradient(145deg, #5060d4, #3b4cca);
  color: #fff;
}
.alert-success {
  background: linear-gradient(145deg, #34a853, #1f7a3a);
  color: #fff;
}
.alert-danger {
  background: linear-gradient(145deg, #e04e5b, #b23a48);
  color: #fff;
}
.alert-warning {
  background: linear-gradient(145deg, #f0c85d, #d4a73b);
  color: #212529;
}
.alert-info {
  background: linear-gradient(145deg, #5bc0de, #3594b0);
  color: #fff;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(15px); }
}
.alert.hide {
  animation: fadeOutDown 0.4s ease forwards;
}

/* ---------------- INPUTS GLOBALES ---------------- */
.form-control {
  border-radius: 12px !important;
  border: 1px solid #dcdcdc;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.form-control:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
  background: #fff;
  outline: none;
}
textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* ---------------- BOTONES ---------------- */
.btn {
  border-radius: 12px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.btn:active, .btn.active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

/* Colores principales */
.btn-primary {
  background: linear-gradient(145deg, #5060d4, #3b4cca) !important;
  border: none;
  color: #fff !important;
}
.btn-success {
  background: linear-gradient(145deg, #34a853, #1f7a3a) !important;
  border: none;
  color: #fff !important;
}
.btn-danger {
  background: linear-gradient(145deg, #e04e5b, #b23a48) !important;
  border: none;
  color: #fff !important;
}
.btn-warning {
  background: linear-gradient(145deg, #f0c85d, #d4a73b) !important;
  border: none;
  color: #212529 !important;
}
.btn-info {
  background: linear-gradient(145deg, #5bc0de, #3594b0) !important;
  border: none;
  color: #fff !important;
}

/* ---------------- TABLAS ---------------- */
.table {
  border-radius: 10px;
  overflow: hidden;
  border: none;
}
.table td, .table th {
  border: none !important;
  padding: 12px;
  font-size: 14px;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9fafc;
}

/* ---------------- ACCIÓN EN TABLAS ---------------- */
.action-btn {
  margin-right: 6px;
  border-radius: 9px !important;
  transition: all 0.3s ease;
}
.action-btn:last-child { margin-right: 0; }
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
/* Panel general */
#miAcordeonDeCategorias .panel {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background-color: #fff;
}

/* Título del grupo */
#miAcordeonDeCategorias .group-title {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.25rem; /* Aumenta el tamaño de letra */
    padding: 12px 18px;
    margin: 0;
    border-radius: 6px;
    background-color: #f0f0f0;
    color: #333;
    transition: background 0.3s ease;
}

#miAcordeonDeCategorias .group-title:hover {
    background-color: #e0e0e0;
}

/* Panel colapsado */
#miAcordeonDeCategorias .panel-collapse {
    padding: 12px 18px;
    background-color: #fafafa;
    border-radius: 0 0 6px 6px;
}

/* Panel body */
#miAcordeonDeCategorias .panel-body {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

/* Checkbox moderno */
#miAcordeonDeCategorias .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

#miAcordeonDeCategorias .form-check-input:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

#miAcordeonDeCategorias .form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Label del checkbox */
#miAcordeonDeCategorias .form-check-label {
    font-size: 1.1rem; /* Aumenta tamaño de texto */
    color: #333;
}

/* Hover en las filas */
#miAcordeonDeCategorias .panel-body:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Columnas internas */
#miAcordeonDeCategorias .col-sm-6 {
    padding-left: 10px;
    padding-right: 10px;
}

/* Animación collapse */
.collapse {
    transition: all 0.35s ease;
}
/* Separar botones de Quick Cash */
#payModal .btn-group-vertical .btn {
    margin-bottom: 8px; /* espacio entre botones */
    font-size: 1.1rem; /* opcional: aumentar tamaño de texto */
}

/* Evitar margen extra en el último botón */
#payModal .btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

/* Opcional: que se vea más moderno */
#payModal .btn-group-vertical .btn.quick-cash {
    border-radius: 6px;
    padding: 10px 0;
    transition: all 0.2s ease;
}

#payModal .btn-group-vertical .btn.quick-cash:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Tabla general */
#payModal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Encabezado */
#payModal table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Celdas */
#payModal table td {
    font-size: 0.95rem;
    color: #555;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Última fila sin border-bottom */
#payModal table tr:last-child td {
    border-bottom: none;
}

/* Hover en filas */
#payModal table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Números alineados a la derecha */
#payModal table td.text-right {
    text-align: right;
}

/* Opcional: destacar la primera columna */
#payModal table td:first-child {
    font-weight: 500;
    color: #333;
}
/* Aumenta solo el tamaño de los iconos a 25px */
.main-sidebar i.fa {
    font-size: 25px !important;
    margin-right: 8px;  /* Mueve el icono a la derecha */
    vertical-align: middle; /* Alinea verticalmente el icono con el texto */
}

/* Mantener el tamaño normal del texto */
.main-sidebar span {
    font-size: initial; /* O un tamaño de fuente personalizado, por ejemplo: font-size: 16px; */
}
.btn-black {
  background-color: #414141;
  color: white; /* Texto blanco por defecto */
  transition: color 0.3s; /* Suaviza el cambio de color */
}

.btn-black:hover {
  color: white; /* Asegura que el texto sea blanco al hacer hover */
  background-color: #333; /* Cambia el color del fondo a un gris oscuro (opcional) */
}
#list-table-div {
    height: 520px !important;  /* Elimina el valor de altura fija */
    overflow: auto !important; /* Asegura que el contenido sea desplazable si es necesario */
}
/* Asegurar que todo se ajuste correctamente */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Aseguramos que todo el contenedor sea responsive */
.container-fluid {
    padding: 20px;
}

/* Hacer que las tablas y los elementos dentro se ajusten */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Flexbox para organizar el contenido */
.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col-12 {
    width: 100%;
    margin-bottom: 10px;
}

.col-md-6 {
    width: 48%;
}

button, .btn {
    width: 100%; /* Asegurar que los botones ocupen todo el ancho disponible */
    padding: 15px;
    margin: 5px 0;
}

/* Ajustes específicos para pantallas pequeñas */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Reducir el tamaño de la fuente en pantallas pequeñas */
    }

    .container-fluid {
        padding: 10px;
    }

    /* Ajustar columnas */
    .col-12 {
        width: 100%;
    }

    /* Poner las columnas una debajo de la otra en móviles */
    .row {
        flex-direction: column;
    }

    /* Ajustar tabla para pantallas pequeñas */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    /* Botones de pantalla pequeña */
    .btn-group-vertical {
        width: 100%;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

