:root {
  --isf-navy: #0b1c2c;
  --isf-navy-2: #12263a;
  --isf-cyan: #0891b2;
  --isf-cyan-dark: #0e7490;
  --isf-gold: #c9a227;
  --isf-bg: #eef2f6;
  --isf-card: #ffffff;
  --isf-text: #0f172a;
  --isf-muted: #64748b;
  --isf-border: #dbe3ec;
  --isf-sidebar: 248px;
  --isf-topbar: 56px;
  --isf-success: #059669;
  --isf-danger: #dc2626;
  --isf-warning: #d97706;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.app-body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--isf-bg);
  color: var(--isf-text);
  font-size: 13.5px;
}
.sidebar {
  width: var(--isf-sidebar);
  background: linear-gradient(180deg, var(--isf-navy) 0%, #08141f 100%);
  color: #d7e3ee;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  z-index: 1040;
}
.sidebar a { color: #c5d4e2; text-decoration: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img { height: 36px; width: auto; background: #fff; border-radius: 6px; padding: 3px; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; color: #fff; font-size: 13px; }
.brand-text span { font-size: 10.5px; color: #8aa0b5; letter-spacing: .04em; text-transform: uppercase; }
.nav-section { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #7f93a8; padding: 14px 16px 6px; }
.sidebar .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px; margin: 1px 8px; border-radius: 6px;
  font-size: 13px; color: #c5d4e2;
}
.sidebar .nav-link i { width: 16px; text-align: center; opacity: .9; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(8,145,178,.18); color: #fff; }
.sidebar .nav-sub { padding-left: 34px; font-size: 12.5px; opacity: .9; }
.topbar {
  height: var(--isf-topbar);
  background: #fff;
  border-bottom: 1px solid var(--isf-border);
  margin-left: var(--isf-sidebar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; position: sticky; top: 0; z-index: 1030;
}
.main-wrap { margin-left: var(--isf-sidebar); padding: 16px 18px 40px; min-height: calc(100vh - var(--isf-topbar)); }
.search-box { min-width: 280px; }
.search-box input { font-size: 13px; background: #f8fafc; }
.kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.kpi-card {
  background: var(--isf-card); border: 1px solid var(--isf-border); border-radius: 8px;
  padding: 10px 12px; text-decoration: none; color: inherit; display: block;
  min-height: 86px;
}
.kpi-card:hover { border-color: var(--isf-cyan); box-shadow: 0 2px 10px rgba(8,145,178,.12); }
.kpi-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--isf-muted); font-weight: 600; }
.kpi-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.kpi-sub { font-size: 11px; color: var(--isf-muted); margin-top: 2px; }
.kpi-delta { font-size: 11px; }
.kpi-delta.up { color: var(--isf-success); }
.kpi-delta.down { color: var(--isf-danger); }
.panel {
  background: var(--isf-card); border: 1px solid var(--isf-border); border-radius: 8px; margin-bottom: 12px;
}
.panel-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--isf-border);
  font-size: 12.5px; font-weight: 700;
}
.panel-b { padding: 10px 12px; }
.filter-bar { background: #fff; border: 1px solid var(--isf-border); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.badge-status { font-weight: 600; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.table-dense td, .table-dense th { padding: 6px 8px; font-size: 12.5px; vertical-align: middle; white-space: nowrap; }
.table-dense thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--isf-muted); background: #f8fafc; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.page-title { font-size: 18px; font-weight: 700; margin: 0; }
.page-sub { color: var(--isf-muted); font-size: 12.5px; }
.btn-cyan { background: var(--isf-cyan); color: #fff; border: 0; }
.btn-cyan:hover { background: var(--isf-cyan-dark); color: #fff; }
.timeline { border-left: 2px solid var(--isf-border); margin-left: 10px; padding-left: 16px; }
.timeline-item { position: relative; margin-bottom: 14px; }
.timeline-item:before {
  content: ""; position: absolute; left: -21px; top: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--isf-cyan);
}
.kanban { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { min-width: 240px; background: #f8fafc; border: 1px solid var(--isf-border); border-radius: 8px; padding: 8px; }
.kanban-card { background: #fff; border: 1px solid var(--isf-border); border-radius: 6px; padding: 8px; margin-bottom: 8px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #0b1c2c, #0e7490); }
.login-card { width: 420px; background: #fff; border-radius: 12px; padding: 28px; }
.alert-compact { padding: 8px 12px; font-size: 13px; }
.form-section { border: 1px solid var(--isf-border); border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fff; }
.form-section h6 { color: var(--isf-cyan-dark); font-weight: 700; margin-bottom: 12px; }
.nav-tabs .nav-link { font-size: 13px; }
@media (max-width: 1400px) {
  .kpi-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .topbar, .main-wrap { margin-left: 0; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search-box { min-width: 160px; }
}
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-wrap { margin: 0; padding: 0; }
}
