.flex{
  display:flex;
}
.justify-content-sb{
  justify-content: space-between
}

.pointer{
  cursor: pointer;
}

/* ==========================================================================
   ESTILOS MODERNOS PARA LA TABLA DE REGISTRO
   ========================================================================== */

/* Contenedor principal de la tabla */
.table-responsive {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  margin-top: 15px;
}

/* Tabla base */
.table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #334155;
}

/* Encabezado */
.table thead.thead tr,
.table thead tr {
  background-color: hsl(220, 14%, 91%) !important;
}

.table thead th {
  color: #f8fafc !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 14px 10px !important;
  border: none !important;
  vertical-align: middle !important;
}

.table thead th:first-child {
  border-top-left-radius: 10px;
}

.table thead th:last-child {
  border-top-right-radius: 10px;
}

/* Filas y celdas */
.table tbody tr {
  transition: background-color 0.2s ease;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8fafc;
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: #ffffff;
}

.table-hover tbody tr:hover {
  background-color: #f1f5f9 !important;
}

.table td {
  padding: 10px 8px !important;
  vertical-align: middle !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}

/* Modernización de Inputs y Selects dentro de la tabla */
.table .form-control {
  height: 34px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.table .form-control[readonly],
.table .form-control[disabled] {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #475569;
  font-weight: 500;
  cursor: default;
}

.table .form-control:focus:not([readonly]) {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  background-color: #ffffff !important;
}

/* Formato para el select de cuenta */
.table select.form-control[disabled] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Rediseño de Botones en Celdas */
.table .btn {
  border-radius: 6px;
  font-size: 12px;
  padding: 5px 8px;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.table .btn-warning {
  background-color: #f59e0b;
  color: #ffffff;
}

.table .btn-warning:hover {
  background-color: #d97706;
  color: #ffffff;
}

.table .btn-info {
  background-color: #0284c7;
  color: #ffffff;
}

.table .btn-info:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.table .btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.table .btn-danger:hover {
  background-color: #dc2626;
  color: #ffffff;
}

/* Ajustes de columnas específicas */
.table td.text-right {
  font-weight: 600;
  color: #0f172a;
}
