body { background: #f5f7fb; color: #1f2937; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 264px; background: #152033; color: #fff; position: fixed; inset: 0 auto 0 0; padding: 18px 14px; overflow-y: auto; }
.brand { color: #fff; text-decoration: none; font-weight: 700; display: block; padding: 10px 12px 18px; }
.sidebar .nav-link { color: #cbd5e1; display: flex; gap: 10px; align-items: center; border-radius: 8px; padding: 9px 12px; }
.sidebar .nav-link.active, .sidebar .nav-link:hover { background: #263850; color: #fff; }
.content { margin-left: 264px; flex: 1; min-width: 0; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 5; }
.page { padding: 24px; }
h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: 0; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #e9eef6; }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 28px; box-shadow: 0 18px 35px rgba(15, 23, 42, .12); }
.auth-card h1 { font-size: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.stat-card span { display: block; color: #64748b; text-transform: capitalize; }
.stat-card strong { font-size: 2rem; }
.card { border: 1px solid #e5e7eb; border-radius: 8px; }
.form-card { padding: 20px; max-width: 920px; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.detail-grid span { display: block; color: #64748b; font-size: .85rem; }
.detail-grid strong { overflow-wrap: anywhere; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.map { height: 620px; border-radius: 8px; }
.messages { max-height: 560px; overflow-y: auto; background: #f8fafc; }
.message { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.notification { border-bottom: 1px solid #e5e7eb; padding: 12px 0; }
.notification.unread { background: #f0f7ff; padding-inline: 10px; border-radius: 8px; }
.empty-state { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; text-align: center; padding: 48px; }
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; z-index: 20; }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; }
  .page { padding: 16px; }
  .filters { flex-direction: column; }
}
@media print {
  .sidebar, .topbar, .btn, .filters { display: none !important; }
  .content { margin: 0; }
  body { background: #fff; }
}
