body { background: #f5f7fb; color: #1f2933; }
.app-layout { min-height: 100vh; display: flex; }
.app-sidebar { width: 260px; background: #12343b; color: #fff; flex-direction: column; padding: 20px 16px; position: sticky; top: 0; height: 100vh; }
.app-brand { color: #fff; text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 8px 6px 22px; }
.app-brand small { display: block; color: rgba(255,255,255,.68); font-size: .78rem; }
.app-brand-mark { width: 44px; height: 44px; border-radius: 8px; background: #f4a261; color: #12343b; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.app-nav { display: grid; gap: 6px; }
.app-nav a { color: rgba(255,255,255,.78); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.app-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.app-offcanvas { background: #12343b; color: #fff; }
.app-offcanvas .btn-close { filter: invert(1); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-header { min-height: 68px; background: #fff; border-bottom: 1px solid #e6eaf0; display: flex; align-items: center; gap: 16px; padding: 12px 24px; position: sticky; top: 0; z-index: 10; }
.app-content { flex: 1; padding: 24px; }
.app-footer { padding: 14px 24px; color: #6c757d; border-top: 1px solid #e6eaf0; background: #fff; font-size: .875rem; }
.kpi-card { border: 0; border-radius: 8px; box-shadow: 0 8px 24px rgba(18,52,59,.08); }
.trend-up { color: #198754; }
.trend-down { color: #dc3545; }
.table td, .table th { vertical-align: middle; }
.badge-status { letter-spacing: .02em; }
.form-panel { background: #fff; border: 1px solid #e6eaf0; border-radius: 8px; padding: 16px; overflow-x: auto; }
.small-muted { color: #6c757d; font-size: .875rem; }
.auth-body { min-height: 100vh; background: #eef3f6; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-shell { width: min(980px, 100%); }
.login-split { min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 50px rgba(18,52,59,.14); }
.login-brand { background: #12343b; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.login-brand h1 { font-size: 2.5rem; margin: 18px 0 10px; }
.login-brand p { color: rgba(255,255,255,.78); font-size: 1.1rem; }
.login-brand small { color: rgba(255,255,255,.62); }
.brand-chip { width: 64px; height: 64px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #f4a261; color: #12343b; }
.login-panel { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 991.98px) {
  .app-content { padding: 16px; }
  .app-header { padding: 10px 16px; }
}
@media (max-width: 767.98px) {
  .login-split { grid-template-columns: 1fr; min-height: auto; }
  .login-brand { padding: 28px; }
  .login-brand h1 { font-size: 1.8rem; }
  .login-panel { padding: 28px; }
}
@media (max-width: 575.98px) {
  .app-header { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .app-header .ms-auto { margin-left: 0 !important; width: 100%; justify-content: space-between; }
  .app-header .text-end { text-align: left !important; }
  .app-content { padding: 14px; }
}
