html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ==========================================================================
   BillarClub — sistema de diseño
   Paleta: verde paño de billar (principal) + dorado (acento), tonos apagados
   pero con contraste suficiente para ser accesibles y agradables.
   ========================================================================== */

:root {
  --bc-primary: #2f6f5e;
  --bc-primary-dark: #234f42;
  --bc-primary-light: #e8f3f0;
  --bc-accent: #c9973f;
  --bc-accent-dark: #a97b2c;
  --bc-accent-light: #faf1de;
  --bc-success: #4f8f6d;
  --bc-success-light: #eaf5ef;
  --bc-danger: #a4241a;
  --bc-danger-light: #fbeae7;
  --bc-header-navy: #16324f;
  --bc-header-navy-dark: #0e2237;
  --bc-warning: #c98a2c;
  --bc-warning-light: #fbf1e2;
  --bc-info: #4d7ea8;
  --bc-info-light: #ecf3f8;
  --bc-secondary: #6d7d78;
  --bc-secondary-light: #eef1f0;
  --bc-surface: #ffffff;
  --bc-bg: #f6f8f7;
  --bc-table-header-bg: #e3efeb;
  --bc-table-header-border: #cfe4dd;
  --bc-table-stripe-bg: #f2f8f6;
  --bc-text: #26332f;
  --bc-text-muted: #6d7d78;
  --bc-border: #e2e8e5;
  --bc-radius: 0.75rem;
  --bc-radius-sm: 0.5rem;
  --bc-shadow: 0 2px 10px rgba(38, 51, 47, 0.07);
  --bc-shadow-hover: 0 8px 24px rgba(38, 51, 47, 0.12);
}

body {
  background-color: var(--bc-bg);
  color: var(--bc-text);
}

/* ---- Barra de navegación ------------------------------------------------ */

.navbar-bc {
  background-color: var(--bc-header-navy) !important;
  box-shadow: var(--bc-shadow);
}

.navbar-bc .navbar-brand,
.navbar-bc .nav-link,
.navbar-bc .btn-link.nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.navbar-bc .navbar-brand {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-bc .nav-link:hover,
.navbar-bc .btn-link.nav-link:hover {
  color: #ffffff !important;
}

.navbar-bc .nav-link.active {
  color: #ffffff !important;
  position: relative;
}

.navbar-bc .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -2px;
  height: 2px;
  background-color: var(--bc-accent);
  border-radius: 2px;
}

.navbar-bc .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-bc .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

.navbar-bc .dropdown-toggle::after {
  opacity: 0.7;
}

.navbar-bc .dropdown-menu {
  border: none;
  border-radius: var(--bc-radius-sm);
  box-shadow: var(--bc-shadow-hover);
  padding: 0.4rem;
  margin-top: 0.5rem;
}

.navbar-bc .dropdown-item {
  border-radius: var(--bc-radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  color: var(--bc-text);
}

.navbar-bc .dropdown-item:hover,
.navbar-bc .dropdown-item:focus {
  background-color: var(--bc-header-navy);
  color: #fff;
}

.navbar-bc .dropdown-item.active {
  background-color: var(--bc-header-navy);
  color: #fff;
}

.bc-logo-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3d3d3d, #111 70%);
  color: var(--bc-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* ---- Menú lateral (BillarClub.Web, panel de staff) ------------------------ */

.bc-mobile-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bc-header-navy);
  padding: 0.6rem 1rem;
  box-shadow: var(--bc-shadow);
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Botón del menú en teléfono/tableta: ícono de tres rayas blanco + "Menú" (el ícono de Bootstrap es oscuro y no se veía sobre el azul). */
.bc-mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--bc-radius-sm);
  color: #fff;
  padding: 0.4rem 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}

.bc-mobile-toggle:hover,
.bc-mobile-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.bc-mobile-toggle-icon {
  flex-shrink: 0;
}

.bc-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.bc-mobile-brand:hover {
  color: #fff;
}

.bc-app-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.bc-sidebar {
  width: 270px;
  background-color: var(--bc-header-navy);
  border-right: none;
}

/* Encabezado del menú en teléfono/tableta: el título "Menú" en blanco (Bootstrap lo deja oscuro). */
.bc-sidebar .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bc-sidebar .offcanvas-title {
  color: #fff;
  font-weight: 700;
}

.bc-sidebar-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  overflow-y: auto;
}

.bc-sidebar-brand {
  align-items: center;
  gap: 0.6rem;
  padding: 1.35rem 1.25rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.bc-sidebar-brand:hover {
  color: #fff;
}

.bc-sidebar-nav {
  flex: 1 1 auto;
  padding: 0.25rem 0.75rem 1rem;
}

.bc-sidebar-group {
  margin-top: 1.1rem;
}

.bc-sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--bc-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.bc-sidebar-group-toggle:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.bc-sidebar-caret {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-left: 0.5rem;
}

.bc-sidebar-group-toggle[aria-expanded="true"] .bc-sidebar-caret {
  transform: rotate(45deg);
}

.bc-sidebar-group .collapse,
.bc-sidebar-group .collapsing {
  padding-left: 0.25rem;
  margin-top: 0.15rem;
}

.bc-sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--bc-radius-sm);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  border: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.bc-sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.bc-sidebar-link.active {
  background-color: var(--bc-accent);
  color: var(--bc-header-navy);
  font-weight: 700;
}

.bc-sidebar-link-btn {
  background: transparent;
  cursor: pointer;
}

.bc-sidebar-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bc-sidebar-user {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.bc-app-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bc-app-content {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.bc-app-main .footer {
  padding: 1rem 1.5rem;
}

@media (min-width: 992px) {
  .bc-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- Botones, badges y utilidades de color (theming global) -------------
   Nota: el Bootstrap de este proyecto es 5.1 (no usa variables --bs-btn-*,
   eso llegó en 5.2+), así que acá se pisan directamente color/background/border. ------- */

.btn-primary {
  color: #fff;
  background-color: var(--bc-primary);
  border-color: var(--bc-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background-color: var(--bc-primary-dark);
  border-color: var(--bc-primary-dark);
}
.btn-primary:disabled,
.btn-primary.disabled {
  color: #fff;
  background-color: var(--bc-primary);
  border-color: var(--bc-primary);
}

.btn-outline-primary {
  color: var(--bc-primary);
  border-color: var(--bc-primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--bc-primary);
  border-color: var(--bc-primary);
}

.btn-success {
  color: #fff;
  background-color: var(--bc-success);
  border-color: var(--bc-success);
}
.btn-success:hover,
.btn-success:focus {
  color: #fff;
  background-color: #3f7659;
  border-color: #3f7659;
}

.btn-outline-success {
  color: var(--bc-success);
  border-color: var(--bc-success);
}
.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #fff;
  background-color: var(--bc-success);
  border-color: var(--bc-success);
}

/* Variante "suave": igual de transparente que los outline (Editar, Regresar), pero con un
   tinte de fondo propio para que no se vea plana/apagada cuando no tiene el mouse encima. */
.btn-soft-success {
  color: var(--bc-primary-dark);
  background-color: var(--bc-success-light);
  border-color: var(--bc-success);
}
.btn-soft-success:hover,
.btn-soft-success:focus {
  color: #fff;
  background-color: var(--bc-success);
  border-color: var(--bc-success);
}

.btn-danger {
  color: #fff;
  background-color: var(--bc-danger);
  border-color: var(--bc-danger);
}
.btn-danger:hover,
.btn-danger:focus {
  color: #fff;
  background-color: #c8392c;
  border-color: #c8392c;
}

.btn-outline-info {
  color: var(--bc-info);
  border-color: var(--bc-info);
}
.btn-outline-info:hover,
.btn-outline-info:focus {
  color: #fff;
  background-color: var(--bc-info);
  border-color: var(--bc-info);
}

.btn-outline-danger {
  color: var(--bc-danger);
  border-color: var(--bc-danger);
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
  color: #fff;
  background-color: var(--bc-danger);
  border-color: var(--bc-danger);
}

.btn-outline-warning {
  color: var(--bc-warning);
  border-color: var(--bc-warning);
}
.btn-outline-warning:hover,
.btn-outline-warning:focus {
  color: #fff;
  background-color: var(--bc-warning);
  border-color: var(--bc-warning);
}

.btn-info {
  color: #fff;
  background-color: var(--bc-header-navy);
  border-color: var(--bc-header-navy);
}
.btn-info:hover,
.btn-info:focus {
  color: #fff;
  background-color: var(--bc-header-navy-dark);
  border-color: var(--bc-header-navy-dark);
}

.btn-outline-secondary {
  color: var(--bc-secondary);
  border-color: #c7d0cc;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #fff;
  background-color: var(--bc-secondary);
  border-color: var(--bc-secondary);
}

.btn-secondary {
  color: #fff;
  background-color: var(--bc-secondary);
  border-color: var(--bc-secondary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  color: #fff;
  background-color: #57655f;
  border-color: #57655f;
}
.btn-secondary:disabled,
.btn-secondary.disabled {
  color: #fff;
  background-color: var(--bc-secondary);
  border-color: var(--bc-secondary);
  opacity: 1;
}

.bc-hora-btn.bc-hora-seleccionada {
  box-shadow: 0 0 0 3px rgba(79, 143, 109, 0.45);
}
.bc-hora-btn.bc-hora-seleccionada::after {
  content: "\2713";
  margin-left: 0.25rem;
}

.badge.bg-success { background-color: var(--bc-success) !important; }
.badge.bg-danger { background-color: var(--bc-danger) !important; }
.badge.bg-warning { background-color: var(--bc-warning) !important; }
.badge.bg-info { background-color: var(--bc-info) !important; }
.badge.bg-secondary { background-color: var(--bc-secondary) !important; }

a {
  color: var(--bc-primary);
}

a:hover {
  color: var(--bc-primary-dark);
}

/* ---- Tarjeta contenedora -------------------------------------------------- */

.bc-card {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 1.5rem;
}

/* ---- Tarjeta de mesa (portal de reservas) --------------------------------- */

.bc-mesa-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bc-mesa-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bc-primary), var(--bc-accent));
}

.bc-mesa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bc-shadow-hover);
  border-color: var(--bc-primary-light);
}

.bc-mesa-card:focus-within {
  box-shadow: 0 0 0 3px var(--bc-primary-light), var(--bc-shadow-hover);
  border-color: var(--bc-primary);
}

.bc-mesa-card-off::before {
  background: linear-gradient(90deg, var(--bc-secondary), var(--bc-secondary-light));
}

.bc-mesa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bc-primary-light);
  color: var(--bc-primary);
}

.bc-mesa-card-off .bc-mesa-icon {
  background: var(--bc-secondary-light);
  color: var(--bc-secondary);
}

.bc-tarifa-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--bc-accent-light);
  color: var(--bc-accent-dark);
  font-size: 0.85rem;
}

.bc-tarifa-pill strong {
  color: var(--bc-text);
  font-size: 0.95rem;
}

.bc-mesa-aviso {
  padding: 0.6rem 0.85rem;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-secondary-light);
  color: var(--bc-secondary);
  font-size: 0.875rem;
}

.bc-bloques-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- Combobox de cliente con autocompletado ------------------------------- */

.bc-combobox input {
  padding-right: 2rem;
}

.bc-combobox::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--bc-text-muted);
  border-bottom: 2px solid var(--bc-text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.bc-cliente-resultados {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  box-shadow: var(--bc-shadow-hover);
  max-height: 260px;
  overflow-y: auto;
}

.bc-cliente-resultado {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.bc-cliente-resultado:hover {
  background: var(--bc-primary-light);
}

.bc-cliente-resultado .nombre {
  font-weight: 600;
  color: var(--bc-text);
}

.bc-cliente-resultado .detalle {
  font-size: 0.78rem;
  color: var(--bc-text-muted);
}

.bc-cliente-resultado-vacio {
  padding: 0.6rem 0.75rem;
  color: var(--bc-text-muted);
  font-size: 0.85rem;
}

/* ---- Tarjetas pequeñas de selección de mesa (Nueva reserva, staff) -------- */

.bc-mesa-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bc-mesa-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 5.5rem;
  padding: 0.6rem 0.4rem;
  border: 1.5px solid #d7ebe1;
  border-radius: var(--bc-radius-sm);
  /* Verde muy suave y parejo (no blanco plano, no gris apagado): da sensación de calma, no de "apagado/dormido". */
  background: var(--bc-success-light);
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease, background-color 0.12s ease;
}

.bc-mesa-chip:hover {
  border-color: var(--bc-primary);
  transform: translateY(-2px);
}

.bc-mesa-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--bc-primary), 0 0 0 4px var(--bc-primary-light);
}

.bc-mesa-chip-numero {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bc-text);
}

.bc-mesa-chip-sub {
  font-size: 0.7rem;
  color: var(--bc-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bc-mesa-chip-activa {
  border-color: var(--bc-primary);
  background: var(--bc-primary-light);
  box-shadow: 0 0 0 3px var(--bc-primary-light);
}

.bc-mesa-chip-activa .bc-mesa-chip-numero {
  color: var(--bc-primary-dark);
}

.bc-mesa-chip-off {
  background: var(--bc-secondary-light);
  border-color: var(--bc-secondary-light);
}

.bc-mesa-chip-off .bc-mesa-chip-numero,
.bc-mesa-chip-off .bc-mesa-chip-sub {
  color: var(--bc-secondary);
}

.bc-mesa-chip-dot {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--bc-warning);
}

/* ---- Alerta de "otros días con reservas" (Reservas/Index) ----------------- */

.bc-dias-alerta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-info-light);
  border: 1px solid #d7e6f2;
}

.bc-dias-alerta-icono {
  font-size: 1.25rem;
  line-height: 1;
}

.bc-dias-alerta strong {
  display: block;
  color: var(--bc-text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.bc-dias-alerta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bc-dia-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bc-surface);
  border: 1px solid var(--bc-info);
  color: var(--bc-info);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.bc-dia-chip:hover {
  background: var(--bc-info);
  color: #fff;
  transform: translateY(-1px);
}

.bc-dia-chip-badge {
  background: var(--bc-info);
  color: #fff;
  border-radius: 999px;
  min-width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  padding: 0 0.35rem;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.bc-dia-chip:hover .bc-dia-chip-badge {
  background: #fff;
  color: var(--bc-info);
}

.bc-hora-btn,
.bc-hora-ocupada {
  border-radius: 999px;
  min-width: 3.25rem;
}

.bc-hora-btn {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bc-hora-btn:hover {
  transform: translateY(-2px);
}

.bc-hora-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--bc-primary), 0 0 0 4px var(--bc-primary-light);
}

.bc-seleccion-resumen {
  padding: 0.4rem 0.65rem;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-bg);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bc-seleccion-resumen.text-danger {
  background: var(--bc-danger-light);
}

.bc-btn-reservar {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bc-btn-reservar:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: var(--bc-shadow-hover);
}

.bc-btn-reservar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--bc-primary-dark), 0 0 0 4px var(--bc-primary-light);
}

/* ---- Barra de herramientas / buscador ------------------------------------ */

.bc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.bc-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
}

.bc-search input {
  border-radius: 999px;
  padding-left: 2.5rem;
  border-color: var(--bc-border);
  background-color: var(--bc-bg);
}

.bc-search input:focus {
  background-color: var(--bc-surface);
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 0.2rem var(--bc-primary-light);
}

.bc-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bc-text-muted);
  pointer-events: none;
}

/* ---- Tabla interactiva ----------------------------------------------------- */

.bc-table-wrap {
  border-radius: var(--bc-radius-sm);
  overflow: hidden;
  border: 1px solid var(--bc-table-header-border);
}

.bc-table {
  margin-bottom: 0;
}

.bc-table thead th {
  background-color: var(--bc-header-navy);
  border-bottom: 2px solid var(--bc-header-navy-dark);
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.bc-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.bc-table thead th.sortable:hover {
  color: var(--bc-accent);
}

.bc-table thead th.sortable .sort-icon {
  display: inline-block;
  margin-left: 0.25rem;
  opacity: 0.35;
  font-size: 0.7em;
}

.bc-table thead th.sortable.sorted-asc .sort-icon,
.bc-table thead th.sortable.sorted-desc .sort-icon {
  opacity: 1;
  color: var(--bc-accent);
}

.bc-table tbody tr {
  background-color: var(--bc-surface);
  transition: background-color 0.15s ease;
}

.bc-table tbody tr:nth-of-type(even) {
  background-color: var(--bc-table-stripe-bg);
}

.bc-table tbody tr:hover {
  background-color: var(--bc-primary-light);
}

.bc-table td, .bc-table th {
  vertical-align: middle;
  border-color: var(--bc-border);
}

.bc-table tbody tr td {
  border-top: 1px solid var(--bc-border);
  border-bottom: none;
}

.bc-empty-row td {
  padding: 2.5rem 1rem;
}

/* ---- Acciones por fila (iconos, sin listas desplegables) ------------------ */

.bc-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.bc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: var(--bc-secondary-light);
  color: var(--bc-secondary);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  padding: 0;
}

.bc-icon-btn:hover, .bc-icon-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Ver detalle -> azul marino */
.bc-icon-btn-info { background: #24405c; color: #fff; }
.bc-icon-btn-info:hover { background: #3d6488; color: #fff; }

/* Editar -> verde fuerte */
.bc-icon-btn-primary { background: #1e7a49; color: #fff; }
.bc-icon-btn-primary:hover { background: #2fa365; color: #fff; }

/* Activar -> verde suave (distinto del verde fuerte de Editar) */
.bc-icon-btn-success { background: var(--bc-success); color: #fff; }
.bc-icon-btn-success:hover { background: #72ab8d; color: #fff; }

/* Desactivar -> rojo claro */
.bc-icon-btn-danger { background: #d97b64; color: #fff; }
.bc-icon-btn-danger:hover { background: #e6a08d; color: #fff; }

/* Bloquear -> rojo fuerte (mas intenso que el de Desactivar) */
.bc-icon-btn-dark { background: #a4241a; color: #fff; }
.bc-icon-btn-dark:hover { background: #c8392c; color: #fff; }

/* Emitir tarjeta -> dorado (acento), distinto de las acciones de estado */
.bc-icon-btn-accent { background: var(--bc-accent); color: #fff; }
.bc-icon-btn-accent:hover { background: var(--bc-accent-dark); color: #fff; }

/* ---- Avatar con iniciales -------------------------------------------------- */

.bc-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.bc-avatar-0 { background-color: var(--bc-primary); }
.bc-avatar-1 { background-color: var(--bc-accent); }
.bc-avatar-2 { background-color: var(--bc-info); }
.bc-avatar-3 { background-color: var(--bc-danger); }
.bc-avatar-4 { background-color: #6a8f4f; }
.bc-avatar-5 { background-color: #8a6bb0; }

.bc-person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bc-person .bc-person-name {
  font-weight: 600;
  color: var(--bc-text);
}

.bc-person .bc-person-sub {
  font-size: 0.8rem;
  color: var(--bc-text-muted);
}

/* ---- Badge de estado con punto -------------------------------------------- */

.bc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.bc-status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.bc-status-activo { background: var(--bc-success-light); color: var(--bc-success); }
.bc-status-activo .dot { background: var(--bc-success); }

.bc-status-inactivo { background: var(--bc-secondary-light); color: var(--bc-secondary); }
.bc-status-inactivo .dot { background: var(--bc-secondary); }

.bc-status-bloqueado { background: var(--bc-danger-light); color: var(--bc-danger); }
.bc-status-bloqueado .dot { background: var(--bc-danger); }

.bc-status-alerta { background: var(--bc-warning-light); color: var(--bc-warning); }
.bc-status-alerta .dot { background: var(--bc-warning); }

.bc-status-info { background: var(--bc-info-light); color: var(--bc-info); }
.bc-status-info .dot { background: var(--bc-info); }

/* ---- Modal de confirmación (reemplaza al confirm() nativo del navegador) -- */

.bc-confirm-modal .modal-header {
  border-bottom: 1px solid var(--bc-border);
}

.bc-confirm-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bc-header-navy);
  font-weight: 700;
}

.bc-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--bc-warning-light);
  color: var(--bc-warning);
  font-weight: 700;
  flex-shrink: 0;
}

.bc-confirm-modal .modal-body {
  color: var(--bc-text);
  font-size: 0.95rem;
}

/* ---- Toast de confirmación auto-descartable ------------------------------- */

.bc-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bc-success-light);
  color: var(--bc-primary-dark);
  border: 1px solid #cfe6da;
  border-radius: var(--bc-radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bc-toast.bc-toast-hide {
  opacity: 0;
  transform: translateY(-6px);
}

.bc-toast button {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  font-size: 1.1rem;
  line-height: 1;
}

.bc-toast button:hover {
  opacity: 1;
}

/* ---- Formularios en tarjeta ------------------------------------------------ */

.bc-form-card .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bc-text-muted);
}

.bc-form-card .form-control:focus,
.bc-form-card .form-select:focus {
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 0.2rem var(--bc-primary-light);
}

/* ---- Perfil de detalle ----------------------------------------------------- */

.bc-profile-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #1f96d1, #0b5c85);
  color: #fff;
  border-radius: var(--bc-radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--bc-shadow-hover);
}

.bc-profile-banner .bc-avatar {
  width: 4rem;
  height: 4rem;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  flex-shrink: 0;
}

.bc-profile-banner h1 {
  color: #fff;
  margin-bottom: 0.15rem;
}

.bc-profile-banner .bc-profile-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.bc-profile-banner .bc-status {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.bc-profile-banner .bc-status-activo .dot {
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
}

/* ---- Secciones (tarjetas con encabezado de color) -------------------------- */

.bc-section {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--bc-shadow);
}

.bc-section-header {
  background: var(--bc-surface);
  color: var(--bc-primary-dark);
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--bc-border);
  border-left: 4px solid var(--bc-primary);
}

.bc-section-body {
  padding: 1.25rem;
}

.bc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem 1.5rem;
}

.bc-info-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bc-text-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.bc-info-grid dd {
  margin: 0;
  color: var(--bc-text);
}

/* ---- Login ----------------------------------------------------------------- */

.bc-login-wrap {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Bolas y tacos de billar en las 4 esquinas, mismo tamaño, enmarcando la tarjeta de login. */
  background-image:
    url("/img/billar-bg.svg"),
    url("/img/billar-bg.svg"),
    url("/img/billar-bg.svg"),
    url("/img/billar-bg.svg");
  background-repeat: no-repeat;
  background-position:
    top -6rem left -6rem,
    top -6rem right -6rem,
    bottom -6rem left -6rem,
    bottom -6rem right -6rem;
  background-size: 20rem 20rem;
}

.bc-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--bc-surface);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow-hover);
  overflow: hidden;
}

.bc-login-header {
  background: linear-gradient(135deg, var(--bc-header-navy), var(--bc-header-navy-dark));
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.bc-login-header .bc-logo-ball {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bc-login-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.bc-login-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.bc-login-body {
  padding: 1.75rem 1.75rem 2rem;
}

.btn-login {
  color: #fff;
  background-color: var(--bc-header-navy);
  border-color: var(--bc-header-navy);
}
.btn-login:hover,
.btn-login:focus {
  color: #fff;
  background-color: var(--bc-header-navy-dark);
  border-color: var(--bc-header-navy-dark);
}

.bc-login-social {
  text-align: center;
  padding: 1.1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--bc-border);
}

.bc-login-social p {
  font-size: 0.8rem;
  color: var(--bc-text-muted);
  margin-bottom: 0.75rem;
}

.bc-social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.bc-social-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.bc-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
  color: #fff;
}

.bc-social-facebook { background: #1877f2; }
.bc-social-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.bc-social-tiktok { background: #010101; }

/* ---- Logo --------------------------------------------------------------- */

.bc-navbar-logo {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.35rem;
  margin-top: -0.2rem;
}

.bc-login-logo {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.bc-home-hero {
  text-align: center;
  padding: 3rem 1.5rem;
}

.bc-home-hero .bc-home-logo {
  width: 11rem;
  height: 11rem;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.bc-home-hero h1 {
  color: var(--bc-header-navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bc-home-hero p {
  color: var(--bc-text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Panel de inicio (dashboard del staff) --------------------------------- */

.bc-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, var(--bc-header-navy), var(--bc-header-navy-dark));
  color: #fff;
  border-radius: var(--bc-radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--bc-shadow-hover);
}

.bc-dash-header h1 {
  color: #fff;
  margin-bottom: 0.15rem;
  text-transform: capitalize;
}

.bc-dash-header p {
  color: rgba(255, 255, 255, 0.75);
  text-transform: capitalize;
}

.bc-dash-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

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

.bc-stat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-left: 4px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  box-shadow: var(--bc-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bc-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--bc-shadow-hover);
  text-decoration: none;
}

.bc-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bc-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bc-text);
  line-height: 1.15;
}

.bc-stat-sub {
  font-size: 0.8rem;
  color: var(--bc-text-muted);
}

.bc-stat-tile-success { border-left-color: var(--bc-success); }
.bc-stat-tile-success .bc-stat-value { color: var(--bc-success); }

.bc-stat-tile-primary { border-left-color: var(--bc-primary); }
.bc-stat-tile-primary .bc-stat-value { color: var(--bc-primary); }

.bc-stat-tile-info { border-left-color: var(--bc-info); }
.bc-stat-tile-info .bc-stat-value { color: var(--bc-info); }

.bc-stat-tile-warning { border-left-color: var(--bc-warning); }
.bc-stat-tile-warning .bc-stat-value { color: var(--bc-warning); }

.bc-stat-tile-danger { border-left-color: var(--bc-danger); }
.bc-stat-tile-danger .bc-stat-value { color: var(--bc-danger); }

.bc-stat-tile-secondary { border-left-color: var(--bc-secondary); }
.bc-stat-tile-secondary .bc-stat-value { color: var(--bc-secondary); }

/* Tarjetas de acceso rápido del portal: el "valor" es un texto, no un número. */
.bc-stat-tile-link .bc-stat-value { font-size: 1.35rem; }

/* Mesa de billar centrada debajo del contenido (portal), en flujo para no tapar las tarjetas. */
.bc-dash-table-center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  pointer-events: none;
}

.bc-dash-table-center img {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: 0.45;
}

.bc-dash-wrap {
  position: relative;
}

.bc-dash-table-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 320px;
  height: auto;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bc-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
