/* ── Layout ────────────────────────────────────────────────── */
body { background: #f0f2f5; }

.sidebar {
  width: 230px;
  min-height: 100vh;
  position: fixed;
  top: 50px;
  left: 0;
  z-index: 999;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .main-content {
    margin-left: 230px;
    margin-top: 50px;
    padding: 1.25rem;
    min-height: calc(100vh - 50px);
  }
}
@media (max-width: 991.98px) {
  .main-content { margin-top: 50px; padding: 0.75rem; }
}

/* ── Sidebar links ─────────────────────────────────────────── */
.sidebar-link {
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s;
}
.sidebar-link:hover  { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,0.18); font-weight: 600; }
.sidebar-link i { font-size: 1rem; width: 1.2rem; }

.sidebar-section {
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 0.75rem 0.75rem 0.2rem;
  text-transform: uppercase;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card { border: none; box-shadow: 0 1px 6px rgba(0,0,0,.07); border-radius: 10px; }
.card-header { background: #fff; border-bottom: 1px solid #e9ecef; font-weight: 600; }

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-card {
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1) !important;
}
.stat-card .stat-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.1rem;
  font-size: 3rem;
  opacity: 0.07;
  pointer-events: none;
}
.stat-card.c-primary { border-left-color: #0d6efd; }
.stat-card.c-warning { border-left-color: #ffc107; }
.stat-card.c-danger  { border-left-color: #dc3545; }
.stat-card.c-success { border-left-color: #198754; }
.stat-card.c-info    { border-left-color: #0dcaf0; }

/* ── Hover card (acceso rápido) ─────────────────────────────── */
.hover-card {
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid #e9ecef !important;
}
.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }
.table td { vertical-align: middle; }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.page-header h5 { margin: 0; font-weight: 700; }

/* ── Item row in order forms ─────────────────────────────────── */
.item-row { background: #f8f9fa; border-radius: 6px; padding: 0.6rem; margin-bottom: 0.5rem; }

/* ── Login page ──────────────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.login-card {
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,.35) !important;
}
