/* ================================================================
   Ciudita Admin Theme — inspirado en Basecamp
   Solo se carga en páginas de gestión de tienda (?l=…)
   ================================================================ */

/* ── Página ────────────────────────────────────────────────────── */
body {
  background: #F6F4F0 !important;
  color: #2D2926;
  font-size: 15px;
  line-height: 1.62;
}

/* ── Tipografía ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: #1E1C1A; font-weight: 700; }

/* ── Sidebar ───────────────────────────────────────────────────── */
#sidebarMenu {
  background-color: #2A2825 !important;
  border-radius: 10px !important;
}
/* Texto general de links */
#sidebarMenu .nav li a,
#sidebarMenu .nav-link,
#sidebarMenu .nav-link.text-dark {
  color: #BDB8B2 !important;
  border-radius: 7px;
}
#sidebarMenu .nav li a:hover,
#sidebarMenu .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
}
/* Estado activo */
#sidebarMenu .nav-link-active,
#sidebarMenu .scb-acc li a.scb-active {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
}
/* Logo / nombre tienda */
#sidebarMenu h5 { color: #EDEBE8; font-size: 1rem; }
#sidebarMenu a.text-dark { color: #EDEBE8 !important; text-decoration: none; }
#sidebarMenu li.nav-item.nav-link {
  border-bottom-color: rgba(255,255,255,.1) !important;
}
/* Sub-items acordeón */
#sidebarMenu .scb-acc { border-left-color: rgba(255,255,255,.12) !important; }
#sidebarMenu .scb-acc li a { color: #A8A29C !important; }
#sidebarMenu .scb-acc li a:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}
#sidebarMenu .scb-toggle { color: #666 !important; }
#sidebarMenu .scb-toggle:hover { background: rgba(255,255,255,.1) !important; color: #ccc !important; }
/* URL input al pie */
#sidebarMenu #scbUrlTienda {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: #AAA !important;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  border: 1px solid #E3DED8 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.card-header {
  background: #FEFDFB !important;
  border-bottom: 1px solid #EDE9E4 !important;
  border-radius: 10px 10px 0 0 !important;
  padding: .8rem 1rem;
}
.card-body { background: #fff !important; }
.card-body:hover { background: #fff !important; }
.shadow-sm, .shadow { box-shadow: none !important; }

/* ── Tablas ────────────────────────────────────────────────────── */
.table { font-size: .875rem; }
.table th {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: #888;
}
.thead-light th, .table-light th, .table-light td {
  background-color: #FAFAF8 !important;
  border-bottom-color: #E5E0DA !important;
  color: #888 !important;
}
.table td, .table th { border-color: #EDE9E4 !important; }
.table-hover tbody tr:hover td { background-color: #FDFCFA !important; }

/* ── Botones ───────────────────────────────────────────────────── */
.btn { border-radius: 7px; font-size: .86rem; font-weight: 500; }
.btn-sm { border-radius: 6px; font-size: .8rem; }

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
  background: transparent !important;
  padding: .15rem 0 .6rem !important;
  font-size: .82rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: #bbb; }
.breadcrumb-item a { color: #999; text-decoration: none; }
.breadcrumb-item a:hover { color: #D32B27; }
.breadcrumb-item.active { color: #666; }

/* ── Formularios ───────────────────────────────────────────────── */
.form-control, .form-select, select.form-control {
  border-color: #DDD8D2 !important;
  border-radius: 7px !important;
  background: #FEFEFE;
  font-size: .88rem;
}
.form-control:focus, .form-select:focus {
  border-color: #D32B27 !important;
  box-shadow: 0 0 0 .18rem rgba(211,43,39,.14) !important;
}
.form-label, label { font-size: .84rem; font-weight: 500; color: #555; margin-bottom: .3rem; }

/* ── Alertas ───────────────────────────────────────────────────── */
.alert {
  border-radius: 8px !important;
  border-width: 0 !important;
  border-left: 3px solid transparent;
}
.alert-success { border-left-color: #28a745; background: #f0faf2 !important; color: #1e5e30; }
.alert-danger  { border-left-color: #dc3545; background: #fef2f2 !important; color: #7a1c1c; }
.alert-warning { border-left-color: #ffc107; background: #fffbec !important; color: #6b4c00; }
.alert-info    { border-left-color: #17a2b8; background: #f0fbfd !important; color: #0a4d5c; }

/* ── Nav tabs ──────────────────────────────────────────────────── */
.nav-tabs { border-bottom-color: #E5E0DA; }
.nav-tabs .nav-link { border-radius: 7px 7px 0 0; color: #888; font-size: .88rem; }
.nav-tabs .nav-link.active { color: #D32B27; font-weight: 600; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge { border-radius: 5px !important; font-weight: 500 !important; }

/* ── Modales ───────────────────────────────────────────────────── */
.modal-content {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 8px 36px rgba(0,0,0,.14) !important;
}
.modal-header { border-bottom-color: #EDE9E4 !important; padding: 1rem 1.25rem; }
.modal-footer { border-top-color: #EDE9E4 !important; }

/* ── Misc ──────────────────────────────────────────────────────── */
.border { border-color: #E3DED8 !important; }
hr { border-color: #EDE9E4; }
