:root { --sidebar-w: 260px; }

body { background: var(--bs-body-bg); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: #14382a; color: #e7efe9;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .nav-link { color: #c9dccf; border-radius: .5rem; padding: .5rem .75rem; display: flex; align-items: center; gap: .6rem; }
.sidebar .nav-link i { width: 1.1rem; text-align: center; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-link.active { background: var(--bs-primary); color: #fff; }
.sidebar .nav-section-title { color: #7fa08c; text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; padding: 1rem .9rem .25rem; }
.sidebar-footer { color: #7fa08c; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; }
.sidebar-brand { color: #fff; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { height: 64px; flex-shrink: 0; background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); position: sticky; top: 0; z-index: 1020; }
.app-content { flex: 1; width: 100%; }

.stat-card .stat-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: .6rem; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.stat-card .stat-value { font-size: clamp(1.15rem, 4.6vw, 1.55rem); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }

.tabs-scroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.tabs-scroll .nav-link { white-space: nowrap; }

.dl-grid dt { color: var(--bs-secondary-color); font-weight: 500; }

@media (max-width: 991.98px) {
  .sidebar { position: fixed; z-index: 1045; }
}

@media print {
  .sidebar, .app-topbar, .no-print, .dropdown, .btn { display: none !important; }
  .app-content { padding: 0 !important; }
  .card { border: none !important; }
  .tab-content > .tab-pane { display: block !important; opacity: 1 !important; margin-bottom: 1rem; }
}

.min-w-0 { min-width: 0; }
