:root {
  --nav: #063b70;
  --nav2: #005995;
  --blue: #064c94;
  --bright: #0874de;
  --red: #ed1c24;
  --green: #07883d;
  --ink: #092b5d;
  --muted: #60738d;
  --line: #d7e4f1;
  --wash: #f3f8fc;
  --card: #ffffff;
  --shadow: 0 5px 18px rgba(8, 48, 89, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #edf5fb;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
body { height: 100vh; overflow: hidden; margin: 0; }

/* Main Application Layout Shell */
#app-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: linear-gradient(165deg, #07335f 0%, #00518b 58%, #032e57 100%);
  color: white;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.logo { font-size: 29px; font-weight: 900; letter-spacing: -2px; }
.logo .r { color: #ef2532; }
.logo .g { color: #14a44d; }
.logo .b { color: #2c65d4; }
.logo small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-left: 49px;
  margin-top: -5px;
}

.nav {
  padding: 14px 9px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 99px; }

.nav-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8cb8e0;
  padding: 14px 11px 5px;
  font-weight: 800;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}
.nav-label:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 6px;
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #e9f4fc;
  text-align: left;
  padding: 9.5px 11px;
  border-radius: 8px;
  margin: 2px 0;
  font-size: 12px;
  font-weight: 600;
}
.nav button:hover { background: rgba(255, 255, 255, 0.12); }
.nav button.active {
  background: linear-gradient(90deg, #ee1d2d, #d81725);
  box-shadow: 0 5px 14px rgba(226, 25, 40, 0.35);
  font-weight: 800;
}

.ico { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }

.account {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 13px;
  flex-shrink: 0;
}
.account-card { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  flex-shrink: 0;
}
.account-name { font-size: 12px; font-weight: 700; }
.account-role { font-size: 10px; color: #c5dced; }
.account-actions { display: flex; gap: 6px; margin-top: 10px; }
.account-actions button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 6px;
  padding: 7px;
  font-size: 10px;
  font-weight: 700;
}

.shell { min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.topbar {
  height: 65px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 15px;
}
.crumb { font-size: 12px; color: #69809c; font-weight: 600; }
.top-search {
  margin-left: auto;
  width: min(280px, 24vw);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  background: #fbfdff;
  outline: none;
}
.fresh { font-size: 11px; color: #335675; white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
}
.pill.green { background: #e3f6e9; color: #087334; }
.pill.amber { background: #fff4d6; color: #936400; }
.pill.blue { background: #e8f2ff; color: #075bb8; }
.pill.red { background: #fee8ea; color: #b30d1a; }

.action {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 11px;
}
.action.primary { background: var(--red); border-color: var(--red); color: #fff; }
.action.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.action.green { background: var(--green); border-color: var(--green); color: #fff; }

.content { overflow: auto; padding: 18px 20px 30px; }
.page { max-width: 1500px; margin: auto; }
.page-head { display: flex; gap: 15px; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.eyebrow { font-size: 10px; color: var(--bright); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.page h1 { margin: 2px 0 0; font-size: 25px; letter-spacing: -0.04em; font-weight: 800; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.demo-tag { border: 1px solid #bcd5ee; background: #fff; border-radius: 7px; padding: 8px 10px; font-size: 10px; color: #315777; }
.demo-tag b { color: var(--blue); }

.panel, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.filters { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 9px; padding: 10px; margin-bottom: 11px; }
.field label { display: block; font-size: 10px; margin: 0 0 4px; color: #49657e; font-weight: 700; }
.field select, .field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%;
  border: 1px solid #cdddea;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  outline: none;
}
.field select:focus, .field input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(8, 116, 222, 0.1); }

/* 2026 Executive Action Buttons & Table Styling */
.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #334155;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.action-btn.perm-btn {
  background: #f0f7ff;
  color: #0369a1;
  border-color: #bae6fd;
}
.action-btn.perm-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}
.action-btn.edit-btn {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}
.action-btn.edit-btn:hover {
  background: #f1f5f9;
  border-color: #64748b;
}
.action-btn.lock-btn {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}
.action-btn.lock-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
}
.action-btn.unlock-btn {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}
.action-btn.unlock-btn:hover {
  background: #dcfce7;
  border-color: #22c55e;
}

/* 2026 Role Selection Cards */
.role-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.role-select-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.role-select-card:hover {
  background: #f8fafc;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.role-select-card.checked {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
  color: #0369a1;
}

.role-select-card input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #0284c7;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 !important;
}

/* Modal Form Inputs 2026 */
.modal-body .field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.modal-body .field input:not([type="checkbox"]):not([type="radio"]),
.modal-body .field select,
.modal-body .field textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 99px;
  border-radius: 9px;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.15s;
}

.modal-body .field input:focus,
.modal-body .field select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.kpi { padding: 14px; min-height: 112px; position: relative; overflow: hidden; }
.kpi:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), #54a8ed); }
.kpi-label { font-size: 11px; font-weight: 700; color: #315579; }
.kpi-value { font-size: 27px; font-weight: 850; letter-spacing: -0.04em; margin: 6px 0 2px; }
.delta { font-size: 11px; font-weight: 700; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.micro { margin-top: 7px; height: 20px; display: flex; gap: 2px; align-items: end; }
.micro i { display: block; width: 11%; background: #d8eafb; border-radius: 2px 2px 0 0; }

.grid-main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 10px; }
.chart-card { padding: 13px; }
.card-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.card-title h3 { margin: 0; font-size: 14px; font-weight: 800; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 10px; font-size: 10px; font-weight: 700; }
.seg button.active { background: var(--blue); color: #fff; }

.chart {
  height: 210px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 16px 8px 25px;
  border-left: 1px solid #d9e6f1;
  border-bottom: 1px solid #d9e6f1;
  background: repeating-linear-gradient(to top, transparent 0, transparent 39px, #edf3f8 40px);
}
.bar {
  flex: 1;
  min-width: 15px;
  background: linear-gradient(180deg, #0d70ca, #06457f);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: 0.2s;
}
.bar:hover, .bar.selected {
  background: linear-gradient(180deg, #ed1c24, #b80c17);
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(237, 28, 36, 0.23);
}
.bar span { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; white-space: nowrap; }

.line-chart {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(to top, #fff 0, #fff 39px, #edf3f8 40px);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.line-chart svg { width: 100%; height: 100%; }
.line-chart circle { cursor: pointer; }
.line-chart circle:hover { r: 6; fill: var(--red); }

.signal-list { display: grid; gap: 8px; }
.signal { border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 7px; padding: 11px; }
.signal.bad { border-left-color: var(--red); }
.signal b { display: block; font-size: 11px; }
.signal span { font-size: 10px; color: var(--muted); }

.lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-top: 10px; }
.table-card { padding: 12px; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.data-table th { background: #edf4fa; text-align: left; color: #294d70; padding: 7px; border: 1px solid #dce7f1; white-space: nowrap; font-weight: 800; }
.data-table td { padding: 7px; border: 1px solid #e2ebf3; }
.data-table tr:hover td { background: #f3f8ff; }

.meter { height: 8px; background: #e8eef4; border-radius: 99px; overflow: hidden; min-width: 70px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #0b4f91, #2c8ee5); }

.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.quick-links button { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 9px; text-align: left; font-size: 10px; }
.quick-links b { display: block; color: var(--blue); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-card { padding: 16px; cursor: pointer; transition: 0.2s; }
.dash-card:hover { transform: translateY(-3px); border-color: #8dbce7; box-shadow: 0 10px 24px rgba(0, 70, 130, 0.12); }
.dash-card .num { font-size: 10px; font-weight: 800; color: var(--red); }
.dash-card h3 { margin: 7px 0 4px; font-size: 15px; font-weight: 800; }
.dash-card p { font-size: 11px; color: var(--muted); min-height: 34px; }
.mini-grid { height: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 13px 0; }
.mini-grid i { border-radius: 4px; background: #e7f1fa; }
.mini-grid i:first-child { grid-row: span 2; background: linear-gradient(145deg, #0d5da5, #38a0e7); }
.meta { display: flex; justify-content: space-between; font-size: 10px; color: #5f7890; }

.notice {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  background: #fff9e8;
  border: 1px solid #f3dda0;
  border-radius: 8px;
  color: #795d13;
  font-size: 11px;
  margin-bottom: 12px;
}

.dag { display: flex; align-items: center; gap: 8px; overflow: auto; padding: 18px; }
.task { min-width: 120px; padding: 13px; text-align: center; border: 2px solid #b9d5eb; background: #f5faff; border-radius: 8px; font-size: 10px; }
.task b { display: block; font-size: 11px; margin-bottom: 4px; }
.task.success { border-color: #7dc694; background: #edf9f1; }
.task.running { border-color: #f0c55b; background: #fff8e6; }
.task.failed { border-color: #eb7b84; background: #fff0f1; }
.arrow { color: #6f9abd; font-size: 20px; }

.log {
  background: #071d31;
  color: #c4f5d2;
  border-radius: 8px;
  padding: 13px;
  min-height: 180px;
  font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: auto;
}

.ops-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 10px; }
.status-table { padding: 12px; }
.status-row { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr auto; gap: 8px; align-items: center; padding: 9px; border-bottom: 1px solid #e5edf4; font-size: 10px; }
.status-row:first-child { background: #edf4fa; font-weight: 800; }

.layers { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: 170px 1fr; gap: 10px; border-radius: 9px; border: 1px solid var(--line); background: white; overflow: hidden; }
.layer-name { padding: 15px; color: #fff; font-weight: 800; background: #126fbc; }
.layer:nth-child(2) .layer-name { background: #158c6a; }
.layer:nth-child(3) .layer-name { background: #e17115; }
.layer:nth-child(4) .layer-name { background: #7239b8; }
.layer-services { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px; }
.service { padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #f9fcff; font-size: 10px; }
.service b { display: block; font-size: 11px; }

.architecture-toggle { display: flex; gap: 7px; margin-bottom: 10px; }
.architecture-toggle button { border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.architecture-toggle button.active { background: var(--blue); color: #fff; }

.flow { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; padding: 25px 12px; }
.flow-box { min-width: 138px; text-align: center; border: 1px solid #a9c9e5; background: #f6fbff; border-radius: 8px; padding: 13px; }
.flow-box b { display: block; }

.governance { margin-top: 10px; padding: 14px; background: #fff0f6; border: 1px solid #f0b7d0; border-radius: 8px; color: #a01656; font-weight: 700; text-align: center; }

.matrix-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.matrix-tools input { min-width: 260px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.matrix { padding: 0; overflow: auto; }
.matrix table { min-width: 1040px; }

.status-btn { border: 0; border-radius: 999px; padding: 4px 7px; font-size: 9px; font-weight: 800; }
.status-live { background: #dff5e6; color: #087433; }
.status-design { background: #fff0c7; color: #8d6100; }
.status-explain { background: #e4efff; color: #135baa; }
.evidence { color: #1766ad; text-decoration: underline; cursor: pointer; }

.coverage-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.summary-card { padding: 12px; }
.summary-card strong { font-size: 24px; display: block; }
.summary-card span { font-size: 10px; color: var(--muted); }

.builder { display: grid; grid-template-columns: 290px 1fr; gap: 10px; }
.builder-side { padding: 14px; }
.steps { display: grid; gap: 6px; margin-bottom: 14px; }
.step { padding: 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; font-weight: 700; }
.step.active { border-color: var(--bright); background: #eaf4ff; }
.step.done { border-color: #79c494; background: #eff9f2; }

.builder-canvas { padding: 14px; min-height: 520px; background: #f5f9fc; }
.canvas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.canvas-item { min-height: 150px; background: #fff; border: 1px dashed #8ab6da; border-radius: 8px; padding: 13px; }
.canvas-item.wide { grid-column: 1 / -1; }
.palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.palette button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 9px; font-size: 10px; font-weight: 700; }
.form-stack { display: grid; gap: 10px; }
.publish-banner { padding: 11px; background: #e8f7ee; border: 1px solid #9cd3ad; border-radius: 7px; color: #096b30; font-size: 11px; }

.modal-wrap { position: fixed; inset: 0; background: rgba(3, 28, 52, 0.58); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: #fff; border-radius: 12px; width: min(880px, 96vw); max-height: 90vh; overflow: auto; box-shadow: 0 25px 80px rgba(0, 20, 50, 0.3); }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.modal-head h2 { font-size: 17px; margin: 0; font-weight: 800; }
.modal-body { padding: 18px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.close { border: 0; background: transparent; font-size: 22px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #073b70;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 30, 70, 0.25);
  z-index: 80;
  font-size: 11px;
  font-weight: 700;
}
.mobile-toggle { display: none; }

@media(max-width: 1050px) {
  #app-layout { grid-template-columns: 220px 1fr; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-main, .lower, .ops-grid { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
}

@media(max-width: 720px) {
  #app-layout { display: block; }
  .sidebar { position: fixed; left: -270px; top: 0; bottom: 0; width: 265px; z-index: 45; transition: 0.2s; }
  .sidebar.open { left: 0; }
  .mobile-toggle { display: block; }
  .topbar { padding: 0 10px; }
  .top-search, .fresh { display: none; }
  .content { padding: 12px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .catalog-grid, .kpis { grid-template-columns: 1fr; }
  .coverage-summary { grid-template-columns: 1fr 1fr; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .page h1 { font-size: 20px; }
  .layer { grid-template-columns: 1fr; }
  .builder { display: block; }
  .builder-side { margin-bottom: 10px; }
}

/* Export Modal Options Cards Styling */
.export-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
}
.export-option-card:hover {
  background: #eef6ff;
  border-color: #0874de;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 116, 222, 0.12);
}
.export-option-card .export-ico {
  font-size: 26px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.export-option-card b {
  display: block;
  font-size: 13.5px;
  color: #064c94;
  font-weight: 800;
  margin-bottom: 3px;
}
.export-option-card span {
  font-size: 11px;
  color: #60738d;
  line-height: 1.4;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    height: auto !important;
    overflow: visible !important;
    font-size: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #app-layout {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .sidebar, .topbar, .action, .account-actions, .demo-tag, .quick-links, .toast, .notice select, button {
    display: none !important;
  }

  .shell, .content, .page {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .filters {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 12px !important;
  }

  .kpis {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .grid-main, .lower {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr !important;
    gap: 10px !important;
    page-break-inside: avoid;
  }

  .card, .panel {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid;
  }

  /* Force Chart & Graphic Colors to print 100% accurately */
  .bar {
    background: #06457f !important;
    border: 1px solid #042e57 !important;
    border-radius: 4px 4px 0 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .meter {
    background: #e2eaf2 !important;
    border: 1px solid #cbd5e1 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .meter i {
    background: #0b4f91 !important;
    display: block !important;
    height: 100% !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .micro i {
    background: #0874de !important;
    display: block !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .line-chart polyline {
    stroke: #0a559f !important;
    stroke-width: 4px !important;
  }

  .line-chart circle {
    fill: #0a559f !important;
    r: 4 !important;
  }

  .pill.green { background: #e3f6e9 !important; color: #087334 !important; }
  .pill.amber { background: #fff4d6 !important; color: #936400 !important; }
  .pill.blue { background: #e8f2ff !important; color: #075bb8 !important; }
  .pill.red { background: #fee8ea !important; color: #b30d1a !important; }
}
