/* Custom overrides for Arbol de Oro */

/* Sidebar background */
.left-sidebar,
.sidebar-nav,
.fixed-profile {
  background-color: #f6f9fc !important;
}

/* Header / Topbar background */
.topbar,
.topbar .navbar {
  background-color: #f6f9fc !important;
}

/* Login card background */
.authentication-login .card,
.authentication-login .card-body {
  background-color: #f6f9fc !important;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  transition: background 0.2s;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Tables full width */
.body-wrapper .container-fluid {
  max-width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.card {
  width: 100% !important;
}

.table-responsive {
  width: 100% !important;
}

table.table {
  width: 100% !important;
  margin-bottom: 0 !important;
}

/* Dark theme sidebar and header */
[data-bs-theme="dark"] .left-sidebar,
[data-bs-theme="dark"] .sidebar-nav,
[data-bs-theme="dark"] .fixed-profile,
[data-bs-theme="dark"] .topbar,
[data-bs-theme="dark"] .topbar .navbar {
  background-color: #1e293b !important;
}

/* Sidebar submenu (Pagos y Finanzas child items) */
ul.submenu {
  display: none;
  padding-left: 2.5rem !important;
  list-style: none;
}
ul.submenu.in {
  display: block;
}
ul.submenu .sidebar-link {
  padding: 8px 16px !important;
  font-size: 0.875rem;
}
