:root {
  --sidebar-width: 230px;
  --sidebar-bg: #1e2a3a;
  --sidebar-text: #c8d3e0;
  --sidebar-active: #3b82f6;
}

body { background: #f0f2f5; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .nav-link {
  color: var(--sidebar-text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(59,130,246,0.2);
  color: #fff;
}

.sidebar .nav-link.active {
  background: var(--sidebar-active);
}

.sidebar-section {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(200,211,224,0.5);
  padding: 0 0.75rem;
}

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.stat-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.table-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
}

.table-card .card-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

.badge-status-pendente  { background-color: #ffc107; color: #000; }
.badge-status-confirmado{ background-color: #0d6efd; }
.badge-status-enviado   { background-color: #6f42c1; }
.badge-status-entregue  { background-color: #198754; }
.badge-status-cancelado { background-color: #dc3545; }
.badge-status-pago      { background-color: #198754; }
.badge-status-vencido   { background-color: #dc3545; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
