:root {
  --brand: #1e3a5f;
  --brand-dark: #142942;
  --brand-light: #eef3f8;
  --accent: #2f7d5f;
  --danger: #b3432a;
}

body {
  background: #f4f6f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.app-navbar {
  background: var(--brand-dark);
}
.app-navbar .navbar-brand { color: #fff; }

.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.app-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e3e7ec;
  flex-shrink: 0;
}
.app-sidebar .nav-link {
  color: #3a4a5c;
  border-radius: .5rem;
  padding: .55rem .8rem;
  margin-bottom: .15rem;
  font-size: .93rem;
}
.app-sidebar .nav-link i { width: 1.3em; display: inline-block; }
.app-sidebar .nav-link.active,
.app-sidebar .nav-link:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.app-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
}

.btn-toggle-sidebar { color: #fff; border: none; background: transparent; font-size: 1.3rem; }

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 56px;
    left: -240px;
    bottom: 0;
    z-index: 1030;
    transition: left .2s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,.08);
  }
  .app-sidebar.open { left: 0; }
}

.stat-card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 600; }
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}

.badge-pendiente { background: #f4a83c; }
.badge-pagado { background: var(--accent); }
.badge-anulado { background: #9aa5b1; }

.table-responsive { border-radius: .6rem; overflow: hidden; }
.card { border: none; border-radius: .75rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f4; font-weight: 600; }

.thumb-link img {
  width: 42px; height: 42px; object-fit: cover; border-radius: .4rem;
  border: 1px solid #dfe4ea;
}

.form-label { font-weight: 500; font-size: .88rem; }
