
:root {
  --blue-950: #071d54;
  --blue-900: #082a7a;
  --blue-800: #003da5;
  --blue-700: #075bd8;
  --blue-600: #1769e9;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --bg: #f8fbff;
  --white: #ffffff;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --orange: #ea580c;
  --orange-bg: #ffedd5;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --purple: #7c3aed;
  --purple-bg: #ede9fe;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(7, 91, 216, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 38%, #f4f8ff 100%);
  color: var(--slate-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  width: 286px;
  min-height: 100vh;
  background:
    radial-gradient(circle at -12% 92%, rgba(255,255,255,0.13), transparent 34%),
    radial-gradient(circle at 120% 20%, rgba(96,165,250,0.28), transparent 20%),
    linear-gradient(180deg, #0649bf 0%, #003da5 38%, #001f69 100%);
  color: white;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  box-shadow: 18px 0 42px rgba(0, 38, 100, 0.16);
}

.logo-area {
  height: 210px;
  background: white;
  display: grid;
  place-items: center;
  position: relative;
}

.logo {
  width: 152px;
  height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 61, 165, 0.22));
}

.mobile-close { display: none; }

.nav {
  height: calc(100vh - 302px);
  overflow-y: auto;
  padding: 20px 18px 14px;
  display: grid;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
}

.nav-item {
  border: 0;
  width: 100%;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  text-align: left;
  transition: 0.18s ease;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 4px 0 0 rgba(56, 189, 248, 0.95);
}

.admin-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--blue-700);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.admin-card small { display: block; color: rgba(255,255,255,.76); margin-top: 2px; }

.main { flex: 1; min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(248, 251, 255, 0.86);
  backdrop-filter: blur(12px);
  padding: 26px 34px 18px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
}

.menu-button { display: none; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }

.topbar h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: 42px;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.topbar p {
  margin: 8px 0 0;
  color: rgba(7, 29, 84, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.top-actions { display: flex; align-items: center; gap: 14px; }

.search {
  height: 50px;
  width: 440px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  color: rgba(7, 29, 84, 0.55);
}

.search input { border: 0; outline: 0; width: 100%; font-size: 14px; }

.bell {
  width: 50px;
  height: 50px;
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.bell b {
  position: absolute;
  right: -6px;
  top: -7px;
  background: var(--blue-700);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

#content { padding: 0 34px 28px; }

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.page-head h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.page-head p { margin: 6px 0 0; color: var(--slate-500); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col { grid-template-columns: 1.08fr 1fr; margin-top: 18px; }
.table-col { grid-template-columns: 1.1fr 1fr; margin-top: 18px; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-grid { grid-template-columns: 1fr; }

.card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-body { padding: 20px; }

.stat-card { padding: 20px; }
.stat-top { display: flex; gap: 16px; align-items: flex-start; }

.icon-ring {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 4px solid #dbeafe;
  color: var(--blue-800);
  background: white;
  font-size: 30px;
  box-shadow: inset 0 0 12px rgba(8, 42, 122, 0.04);
  flex-shrink: 0;
}

.stat-card p { margin: 0; color: var(--blue-950); font-weight: 850; }
.stat-card strong {
  display: block;
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--blue-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-card small { display: block; color: var(--slate-500); margin-top: 2px; }

.stat-footer {
  border-top: 1px solid var(--slate-200);
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 12px;
}

.stat-footer b { color: var(--green); }

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--blue-900);
}

.section-title h2 { margin: 0; font-size: 19px; }
.section-title a { color: var(--blue-700); text-decoration: none; font-weight: 800; font-size: 12px; }

.structure {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: stretch;
}

.company-card {
  min-height: 174px;
  border-radius: 18px;
  background: linear-gradient(180deg, white, #eff6ff);
  border: 2px solid rgba(7, 91, 216, 0.22);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  position: relative;
}

.company-card.holding { border-color: var(--blue-700); }
.company-card img { width: 70px; height: 70px; object-fit: contain; }
.company-card h3 { margin: 10px 0 4px; color: var(--blue-950); line-height: 1.05; font-size: 20px; }
.company-card p { margin: 0; color: var(--blue-700); font-weight: 900; font-size: 13px; }
.company-card .meta { margin-top: 8px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.subsidiaries { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.company-icon {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: white;
  display: grid;
  place-items: center;
  color: var(--blue-800);
  font-size: 32px;
  margin: 0 auto;
  box-shadow: inset 0 0 16px rgba(15, 23, 42, 0.07);
}

.alert-list { display: grid; gap: 12px; }

.alert-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1px solid;
  border-radius: 14px;
  padding: 14px;
}

.alert-row.orange { color: var(--orange); background: var(--orange-bg); border-color: #fed7aa; }
.alert-row.red { color: var(--red); background: var(--red-bg); border-color: #fecaca; }
.alert-row.green { color: var(--green); background: var(--green-bg); border-color: #bbf7d0; }
.alert-row.purple { color: var(--purple); background: var(--purple-bg); border-color: #ddd6fe; }

.alert-row strong { color: var(--blue-950); display: block; font-size: 14px; }
.alert-row small { color: var(--slate-500); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 12px; }
.table-small { min-width: 620px; }
th {
  background: var(--slate-100);
  color: var(--blue-950);
  padding: 12px;
  text-align: left;
}
td { padding: 13px 12px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); }
td.amount { color: var(--slate-900); font-weight: 800; }

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid;
  white-space: nowrap;
}
.pill.green { color: #047857; background: #d1fae5; border-color: #a7f3d0; }
.pill.blue { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.pill.gray { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.pill.orange { color: #c2410c; background: #ffedd5; border-color: #fed7aa; }
.pill.red { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }
.pill.purple { color: #6d28d9; background: #ede9fe; border-color: #ddd6fe; }

.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.doc-card {
  border: 1px solid var(--slate-200);
  border-radius: 15px;
  padding: 16px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 13px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.doc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-800);
  display: grid;
  place-items: center;
  font-size: 26px;
}
.doc-card strong { color: var(--blue-950); display: block; font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.doc-card small { color: var(--slate-500); display: block; margin-top: 2px; }

.btn {
  background: var(--blue-800);
  color: white;
  border: 0;
  border-radius: 13px;
  padding: 11px 15px;
  font-weight: 850;
  cursor: pointer;
}
.btn.secondary { background: white; color: var(--blue-800); border: 1px solid var(--blue-100); }
.btn.light { background: var(--blue-50); color: var(--blue-900); border: 1px solid var(--blue-100); }

.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--blue-950); font-weight: 800; font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
  padding: 12px 12px;
  outline: none;
  background: white;
  font-size: 14px;
}
.field textarea { min-height: 92px; resize: vertical; }

.chart-card {
  height: 260px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.bars { flex: 1; display: flex; align-items: end; gap: 12px; padding: 16px 6px 4px; }
.bar {
  flex: 1;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-900));
  min-height: 36px;
  position: relative;
}
.bar span {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--slate-500);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi-mini {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.kpi-mini small { color: var(--slate-500); display: block; }
.kpi-mini strong { color: var(--blue-950); font-family: Georgia, "Times New Roman", serif; font-size: 20px; display: block; margin-top: 7px; }

footer {
  text-align: center;
  color: rgba(8, 42, 122, 0.6);
  font-size: 12px;
  padding: 0 0 24px;
}

@media (max-width: 1380px) {
  .stats-grid, .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar h1 { font-size: 36px; }
  .search { width: 360px; }
}

@media (max-width: 1180px) {
  .two-col, .table-col, .structure { grid-template-columns: 1fr; }
  .three-col, .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    z-index: 20;
    transform: translateX(-100%);
    transition: 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-close, .menu-button { display: inline-flex; border: 0; cursor: pointer; }
  .mobile-close {
    position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px;
    align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue-950); font-size: 25px;
  }
  .menu-button {
    width: 44px; height: 44px; border-radius: 14px; align-items: center; justify-content: center;
    background: white; color: var(--blue-900); border: 1px solid var(--slate-200);
  }
  .topbar { padding: 18px; }
  .topbar h1 { font-size: 30px; }
  .top-actions { display: none; }
  #content { padding: 0 18px 22px; }
  .stats-grid, .doc-grid, .subsidiaries, .three-col, .form-grid, .kpi-strip { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
}

/* =========================================================
   Elegant polish patch - ICG Control Center
   Fokus: layout lebih rapi, premium, tidak melebar horizontal
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(29, 78, 216, 0.08), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.10), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 48%, #eef4fb 100%);
}

.app-shell {
  width: 100%;
  min-width: 0;
}

.sidebar {
  width: 260px;
  background:
    linear-gradient(180deg, rgba(5, 30, 88, 0.98) 0%, rgba(4, 57, 148, 0.98) 54%, rgba(2, 17, 61, 0.98) 100%);
  box-shadow: 16px 0 36px rgba(2, 17, 61, 0.18);
}

.logo-area {
  height: 176px;
  background:
    radial-gradient(circle at 50% 40%, #ffffff 0%, #f8fbff 62%, #eaf2ff 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.logo {
  width: 126px;
  height: 126px;
  filter: drop-shadow(0 12px 20px rgba(0, 61, 165, 0.18));
}

.nav {
  height: calc(100vh - 270px);
  padding: 18px 14px 12px;
  gap: 5px;
}

.nav-item {
  min-height: 46px;
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.26), rgba(255, 255, 255, 0.12));
  box-shadow: inset 4px 0 0 #38bdf8;
}

.admin-card {
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 14px 10px 0;
}

.main {
  flex: 1;
  min-width: 0;
  max-width: calc(100vw - 260px);
}

.topbar {
  padding: 22px 28px 18px;
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
}

.title-block {
  min-width: 0;
}

.topbar h1 {
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.045em;
}

.topbar p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.35;
}

.top-actions {
  flex-shrink: 0;
}

.search {
  width: min(400px, 30vw);
  height: 48px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.bell {
  width: 48px;
  height: 48px;
  border-radius: 18px;
}

#content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 34px;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
}

.kpi-strip {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
}

.kpi-mini {
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.055);
}

.kpi-mini strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.card-body {
  padding: 22px;
}

.stat-card {
  padding: 24px;
  min-height: 168px;
}

.stat-top {
  align-items: center;
}

.icon-ring {
  width: 58px;
  height: 58px;
  border-width: 3px;
  font-size: 25px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.stat-card p {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.stat-card strong {
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: normal;
}

.stat-footer {
  margin-top: 20px;
  font-size: 13px;
}

.two-col,
.table-col {
  gap: 22px;
}

.section-title h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.alert-row {
  border-radius: 18px;
  padding: 15px 16px;
}

.table-wrap {
  border-radius: 16px;
  border: 1px solid var(--slate-100);
}

table {
  min-width: 680px;
}

th {
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .045em;
}

td {
  font-size: 13px;
}

.pill {
  padding: 6px 11px;
}

.doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-card {
  border-radius: 18px;
}

.btn {
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 61, 165, 0.14);
}

.btn.secondary,
.btn.light {
  box-shadow: none;
}

@media (max-width: 1380px) {
  .main { max-width: calc(100vw - 260px); }
  .topbar { padding-left: 24px; padding-right: 24px; }
  #content { padding-left: 24px; padding-right: 24px; }
  .search { width: min(330px, 28vw); }
}

@media (max-width: 1180px) {
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: 1fr; }
  .top-actions { display: none; }
}

@media (max-width: 900px) {
  .sidebar { width: 282px; }
  .main { max-width: 100vw; }
  .topbar {
    align-items: flex-start;
    padding: 16px;
  }
  #content {
    padding: 18px 16px 28px;
  }
  .kpi-strip,
  .stats-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .card-body,
  .stat-card {
    padding: 18px;
  }
  .stat-card strong {
    font-size: 24px;
  }
}

/* =========================================================
   Elegant + Responsive refresh 2
   Fokus: warna serasi dengan logo, logo tidak mengotak,
   tipografi baru, dan semua layout fit window.
   ========================================================= */

:root {
  --blue-950: #082c73;
  --blue-900: #0b3d91;
  --blue-800: #0d5bd7;
  --blue-700: #2b74ea;
  --blue-600: #4c8ef5;
  --blue-100: #dce9ff;
  --blue-50: #f5f9ff;
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #fbfdff;
  --line: #dbe6f5;
  --text: #12233f;
  --muted: #5d6f88;
  --shadow: 0 18px 45px rgba(8, 44, 115, 0.08);
  --shadow-soft: 0 10px 26px rgba(8, 44, 115, 0.06);
  --radius: 22px;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(13, 91, 215, 0.10), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(76, 142, 245, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 42%, #eef4fc 100%);
}

h1, h2, h3, .section-title h2, .page-head h2, .topbar h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--blue-950);
}

.topbar p,
.page-head p,
.section-title a,
.stat-card p,
.kpi-mini small,
.alert-row small,
.admin-card small,
footer,
td,
th,
.field label,
.field input,
.field select,
.field textarea,
.search input,
.btn,
.nav-item,
.pill,
.doc-card small {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.sidebar {
  width: 292px;
  min-width: 292px;
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 156, 255, 0.28), transparent 24%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(180deg, #082c73 0%, #0b3d91 52%, #06245d 100%);
  box-shadow: 18px 0 42px rgba(8, 44, 115, 0.16);
}

.logo-area {
  height: 198px;
  padding: 24px 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.logo-shell {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,1) 0%, rgba(246,250,255,0.98) 66%, rgba(224,236,255,0.95) 100%);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 1px rgba(13, 91, 215, 0.14),
    0 16px 34px rgba(2, 17, 61, 0.22);
}

.logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(11, 61, 145, 0.18));
}

.brand-copy {
  text-align: center;
  color: #ffffff;
}

.brand-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  height: calc(100vh - 300px);
  padding: 18px 16px 14px;
  gap: 6px;
}

.nav-item {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(255,255,255,0.90);
  font-weight: 700;
  font-size: 14px;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, rgba(76,142,245,0.32), rgba(255,255,255,0.12));
  box-shadow:
    inset 4px 0 0 #8dc2ff,
    0 12px 22px rgba(2, 17, 61, 0.14);
}

.nav-icon {
  font-size: 16px;
}

.admin-card {
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 15px;
}

.avatar {
  background: linear-gradient(180deg, #2f7cf0 0%, #0d5bd7 100%);
  box-shadow: 0 8px 18px rgba(13, 91, 215, 0.30);
}

.main {
  flex: 1;
  width: calc(100% - 292px);
  max-width: calc(100% - 292px);
  min-width: 0;
}

.topbar {
  width: 100%;
  padding: 24px 28px 20px;
  gap: 24px;
  align-items: center;
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(219, 230, 245, 0.95);
}

.title-block {
  flex: 1;
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(36px, 3vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.topbar p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 860px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.search {
  width: clamp(300px, 30vw, 440px);
  max-width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.search input {
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.search input::placeholder {
  color: #7d8ba3;
}

.bell {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

#content,
footer {
  width: 100%;
  max-width: none;
}

#content {
  margin: 0;
  padding: 24px 28px 34px;
}

footer {
  padding: 0 28px 28px;
  color: #69809e;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 2px 8px;
}

.page-head h2 {
  font-size: clamp(32px, 2.4vw, 42px);
  line-height: 1;
  margin: 0;
}

.page-head p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

.actions {
  gap: 12px;
}

.btn {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1769e9 0%, #0b3d91 100%);
  box-shadow: 0 12px 24px rgba(11, 61, 145, 0.18);
}

.btn.secondary,
.btn.light {
  background: rgba(255,255,255,0.94);
  color: var(--blue-900);
  border: 1px solid var(--line);
}

.grid {
  width: 100%;
}

.kpi-strip {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.kpi-mini,
.card,
.doc-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(219, 230, 245, 0.96);
  box-shadow: var(--shadow);
}

.kpi-mini {
  border-radius: 20px;
  padding: 18px;
}

.kpi-mini strong,
.stat-card strong {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.two-col,
.table-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.three-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.structure {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.doc-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  border-radius: 24px;
}

.card-body,
.stat-card,
.chart-card {
  padding: 22px;
}

.section-title h2 {
  font-size: 28px;
  line-height: 1;
}

.section-title a {
  font-weight: 700;
  font-size: 13px;
}

.icon-ring {
  border-color: rgba(13, 91, 215, 0.14);
  color: var(--blue-900);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.stat-card {
  min-height: 156px;
}

.stat-card p {
  color: #395271;
  font-size: 14px;
  font-weight: 600;
}

.stat-card strong {
  margin-top: 8px;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  white-space: normal;
}

.stat-footer {
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 18px;
  border: 1px solid #edf2f8;
}

table {
  min-width: 100%;
}

table.table-small {
  min-width: 700px;
}

th {
  background: #f5f9ff;
  color: var(--blue-950);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  font-size: 13px;
  color: #314864;
}

td.amount {
  color: var(--text);
}

.pill {
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
}

.doc-card {
  border-radius: 18px;
}

.doc-card strong {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  border-color: var(--line);
  background: rgba(255,255,255,0.96);
}

.chart-card {
  min-height: 280px;
}

@media (max-width: 1280px) {
  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .search {
    width: min(420px, 100%);
  }

  .structure,
  .two-col,
  .table-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 286px;
    min-width: 286px;
  }

  .main {
    width: 100%;
    max-width: 100%;
  }

  .topbar {
    padding: 18px 16px;
    gap: 14px;
  }

  .topbar h1 {
    font-size: 32px;
  }

  #content {
    padding: 18px 16px 28px;
  }

  footer {
    padding: 0 16px 24px;
  }

  .page-head h2,
  .section-title h2 {
    font-size: 28px;
  }

  .kpi-strip,
  .stats-grid,
  .doc-grid,
  .three-col,
  .form-grid,
  .subsidiaries {
    grid-template-columns: 1fr;
  }

  .actions {
    width: 100%;
  }

  .actions .btn {
    flex: 1 1 auto;
  }
}

/* =========================================================
   Final compact layout patch - fit window and clean dashboard
   ========================================================= */
:root {
  --sidebar-w: 264px;
  --navy: #082c73;
  --navy-2: #0b3d91;
  --blue-accent: #2f7cf0;
  --paper: #ffffff;
  --paper-soft: #f7faff;
  --stroke: #dce7f6;
  --ink: #102345;
  --muted-2: #60718c;
}

* { min-width: 0; }

html, body {
  width: 100%;
  overflow-x: hidden !important;
}

body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f9fcff 0%, #f1f6fe 100%);
}

h1, h2, h3, .topbar h1, .page-head h2, .section-title h2 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif !important;
  letter-spacing: -0.045em;
}

.app-shell {
  width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  width: var(--sidebar-w) !important;
  min-width: var(--sidebar-w) !important;
  max-width: var(--sidebar-w) !important;
  background: linear-gradient(180deg, #0c48a9 0%, #0a3c8f 46%, #06245d 100%) !important;
  box-shadow: 12px 0 30px rgba(8, 44, 115, 0.14);
}

.logo-area {
  height: 156px !important;
  padding: 14px 16px !important;
  gap: 7px !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.logo-shell {
  width: 78px !important;
  height: 78px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(246,250,255,.96) 76%, rgba(219,234,254,.78) 100%) !important;
  box-shadow: 0 10px 22px rgba(2, 17, 61, .18), inset 0 0 0 1px rgba(13, 91, 215, .12) !important;
  overflow: hidden;
}

.logo {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  background: transparent !important;
  display: block;
}

.brand-copy strong {
  font-size: 13px !important;
  line-height: 1.2;
}

.brand-copy small {
  font-size: 10px !important;
  letter-spacing: .07em;
}

.nav {
  height: calc(100vh - 250px) !important;
  padding: 14px 12px 10px !important;
  gap: 4px !important;
}

.nav-item {
  min-height: 42px !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  gap: 10px !important;
}

.nav-icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 14px !important;
}

.admin-card {
  left: 14px !important;
  right: 14px !important;
  bottom: 12px !important;
  padding-top: 12px !important;
  gap: 10px !important;
}

.avatar {
  width: 40px !important;
  height: 40px !important;
  font-size: 14px !important;
}

.main {
  width: calc(100vw - var(--sidebar-w)) !important;
  max-width: calc(100vw - var(--sidebar-w)) !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.topbar {
  position: sticky;
  top: 0;
  min-height: 92px !important;
  padding: 16px 24px !important;
  align-items: center !important;
  gap: 18px !important;
  background: rgba(249, 252, 255, .94) !important;
}

.topbar h1 {
  font-size: clamp(28px, 2.5vw, 40px) !important;
  line-height: 1.02 !important;
  margin: 0 !important;
}

.topbar p {
  font-size: 13px !important;
  line-height: 1.35 !important;
  margin: 6px 0 0 !important;
  max-width: 720px !important;
}

.top-actions {
  flex: 0 1 430px !important;
  width: auto !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
}

.search {
  width: min(360px, 26vw) !important;
  height: 44px !important;
  border-radius: 999px !important;
}

.bell {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
}

#content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 24px 28px !important;
  overflow-x: hidden !important;
}

.page-head {
  padding: 4px 0 14px !important;
  margin: 0 !important;
  align-items: center !important;
}

.page-head h2 {
  font-size: clamp(24px, 2.1vw, 34px) !important;
  line-height: 1.08 !important;
}

.page-head p {
  font-size: 13px !important;
  margin-top: 6px !important;
}

.actions .btn, .btn {
  min-height: 40px !important;
  padding: 9px 14px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
}

.kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.kpi-mini {
  min-height: 92px;
  padding: 16px !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(8, 44, 115, .055) !important;
}

.kpi-mini small {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.kpi-mini strong {
  font-size: clamp(20px, 1.6vw, 26px) !important;
  line-height: 1.1 !important;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.stat-card {
  min-height: 168px !important;
  padding: 18px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

.stat-top {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
}

.icon-ring {
  width: 48px !important;
  height: 48px !important;
  border-width: 3px !important;
  font-size: 20px !important;
}

.stat-card p {
  font-size: 13px !important;
  line-height: 1.25 !important;
  margin: 0 0 7px !important;
  white-space: normal !important;
}

.stat-card strong {
  display: block !important;
  font-size: clamp(21px, 1.6vw, 27px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.04em !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
  max-width: 100% !important;
}

.stat-card small {
  font-size: 12px !important;
}

.stat-footer {
  margin-top: 14px !important;
  padding-top: 12px !important;
  font-size: 12px !important;
  gap: 8px !important;
}

.two-col,
.table-col {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 14px !important;
  margin-top: 14px !important;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.card {
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(8, 44, 115, .065) !important;
  overflow: hidden !important;
}

.card-body,
.chart-card {
  padding: 18px !important;
}

.section-title {
  margin-bottom: 12px !important;
}

.section-title h2 {
  font-size: 21px !important;
  line-height: 1.12 !important;
}

.alert-row {
  padding: 12px !important;
  border-radius: 14px !important;
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
}

.alert-row strong {
  font-size: 13px !important;
}

.alert-row small {
  font-size: 11px !important;
}

.structure {
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.company-card {
  min-height: 150px !important;
  padding: 14px !important;
  border-radius: 16px !important;
}

.company-card img {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
}

.company-card h3 {
  font-size: 17px !important;
  line-height: 1.08 !important;
}

.company-card p {
  font-size: 11px !important;
}

.company-icon {
  width: 54px !important;
  height: 54px !important;
  font-size: 24px !important;
}

.table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
}

table {
  width: 100% !important;
  min-width: 620px !important;
  table-layout: auto !important;
}

th, td {
  padding: 11px 12px !important;
  font-size: 12px !important;
}

.doc-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.doc-card {
  padding: 14px !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
}

.doc-icon {
  width: 42px !important;
  height: 42px !important;
  font-size: 21px !important;
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.chart-card {
  height: 230px !important;
}

footer {
  padding: 0 24px 18px !important;
}

@media (max-width: 1500px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .stat-card strong { font-size: clamp(20px, 1.8vw, 25px) !important; }
}

@media (max-width: 1250px) {
  .top-actions { display: none !important; }
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .two-col, .table-col, .structure { grid-template-columns: 1fr !important; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 286px; }
  .sidebar {
    width: var(--sidebar-w) !important;
    min-width: var(--sidebar-w) !important;
    max-width: var(--sidebar-w) !important;
  }
  .main { width: 100vw !important; max-width: 100vw !important; }
  .topbar { padding: 14px 16px !important; min-height: 78px !important; }
  #content { padding: 16px !important; }
  .kpi-strip, .stats-grid, .doc-grid, .three-col, .form-grid, .subsidiaries { grid-template-columns: 1fr !important; }
  .page-head { align-items: flex-start !important; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  table { min-width: 640px !important; }
}
