:root {
  --navy: #062c55;
  --navy-2: #041f40;
  --blue: #0a54c8;
  --cyan: #16bebd;
  --green: #1b9d3b;
  --mint: #bfeac9;
  --orange: #ff9f1c;
  --yellow: #ffd60a;
  --purple: #7a35d8;
  --red: #e63946;
  --ink: #111318;
  --muted: #747b86;
  --line: #d9dde4;
  --soft-line: #edf0f4;
  --surface: #f7f6f2;
  --panel: #efede8;
  --white: #fff;
  --shadow: 0 10px 24px rgba(22, 31, 44, .12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  margin: 0;
}

a {
  color: inherit;
}

.gh-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 100vh;
}

.gh-sidebar {
  background:
    linear-gradient(180deg, rgba(5, 37, 73, .93), rgba(4, 29, 60, .98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 3px, transparent 3px 24px),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .16), transparent 30%);
  border-right: 1px solid rgba(0, 0, 0, .35);
  color: var(--white);
  min-height: 100vh;
  overflow-y: auto;
  padding: 42px 0 26px;
  position: sticky;
  top: 0;
}

.gh-brand {
  align-items: center;
  display: flex;
  font-size: 48px;
  font-weight: 900;
  gap: 0;
  line-height: 1;
  margin: 0 32px 42px;
  text-decoration: none;
}

.gh-brand-logo {
  display: none;
}

.gh-brand-text {
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.gh-map-mark {
  background: linear-gradient(#e3262e 0 33%, #ffd32a 33% 66%, #159947 66%);
  clip-path: polygon(28% 0, 78% 4%, 100% 34%, 76% 100%, 20% 92%, 0 52%);
  display: inline-grid;
  height: 55px;
  margin: 0 -4px;
  place-items: center;
  width: 44px;
}

.gh-map-mark span {
  background: #151515;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 67% 56%, 79% 91%, 50% 70%, 21% 91%, 33% 56%, 2% 35%, 39% 34%);
  height: 18px;
  width: 18px;
}

.gh-check {
  color: #fff;
  position: relative;
}

.gh-check::after {
  border-bottom: 8px solid #58c879;
  border-right: 8px solid #58c879;
  content: "";
  height: 56px;
  position: absolute;
  right: -38px;
  top: -16px;
  transform: rotate(39deg);
  width: 28px;
}

.gh-nav {
  display: grid;
  gap: 2px;
}

.gh-nav a {
  align-items: center;
  color: #fff;
  display: grid;
  font-size: 20px;
  font-weight: 800;
  gap: 16px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 48px;
  padding: 8px 32px;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.gh-nav a:hover,
.gh-nav a:focus,
.gh-nav a.active {
  background: rgba(255, 255, 255, .22);
  transform: translateX(2px);
}

.gh-nav a.active {
  background: rgba(13, 72, 166, .92);
}

.gh-nav svg {
  height: 26px;
  width: 26px;
}

.gh-nav-other {
  font-size: 28px;
  font-weight: 900;
  margin: 42px 18px 12px;
}

.gh-nav-support a {
  font-size: 20px;
}

.gh-workspace {
  min-width: 0;
}

.gh-topbar {
  align-items: center;
  background: #faf9f5;
  border-bottom: 1px solid #111;
  display: flex;
  justify-content: space-between;
  min-height: 132px;
  padding: 18px 34px 18px 36px;
}

.gh-ministry,
.gh-topbar-actions,
.gh-user {
  align-items: center;
  display: flex;
}

.gh-ministry {
  gap: 20px;
  font-size: 21px;
  font-weight: 900;
}

.gh-crest {
  background:
    radial-gradient(circle, #fff 0 22%, transparent 23%),
    linear-gradient(135deg, #e4b328 0 45%, #159947 45% 70%, #0c4da2 70%);
  border: 2px solid rgba(0, 0, 0, .2);
  border-radius: 50%;
  color: #111;
  display: grid;
  font-size: 18px;
  height: 45px;
  place-items: center;
  width: 45px;
}

.gh-topbar-actions {
  gap: 18px;
}

.gh-cycle-picker {
  align-items: center;
  border: 1px solid #cdd2da;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  line-height: 1.2;
  padding: 9px 12px;
}

.gh-cycle-picker small,
.gh-user span {
  color: #111;
  display: block;
  font-size: 12px;
}

.gh-cycle-picker strong {
  font-size: 13px;
}

.gh-icon-btn {
  background: transparent;
  border: 0;
  color: #061322;
  display: grid;
  height: 36px;
  place-items: center;
  position: relative;
  width: 36px;
}

.gh-notification span {
  background: #e41b2b;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  position: absolute;
  right: 1px;
  top: 0;
}

.gh-user {
  gap: 12px;
}

.gh-user strong {
  display: block;
  font-size: 24px;
  line-height: .92;
}

.gh-user span {
  font-size: 19px;
}

.gh-avatar {
  background:
    radial-gradient(circle at 50% 34%, #f5b38d 0 15%, transparent 16%),
    radial-gradient(circle at 50% 100%, #7d56dc 0 38%, transparent 39%),
    linear-gradient(135deg, #ffd23f, #ffe07b);
  border-radius: 50%;
  height: 68px;
  overflow: hidden;
  position: relative;
  width: 68px;
}

.gh-avatar::before {
  background: #32204e;
  border-radius: 50% 50% 35% 35%;
  content: "";
  height: 28px;
  left: 22px;
  position: absolute;
  top: 8px;
  width: 24px;
}

.gh-content {
  min-width: 0;
  padding: 40px 34px;
  position: relative;
}

.gh-page {
  animation: ghFadeIn .34s ease both;
}

@keyframes ghFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.gh-page-head.compact {
  margin-bottom: 36px;
}

.gh-title-row {
  align-items: center;
  display: flex;
  gap: 28px;
  min-width: 0;
}

.gh-title-row h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.gh-title-row p,
.gh-page-head p {
  font-size: 12px;
  margin: 8px 0 0;
}

.gh-menu-btn {
  background: transparent;
  border: 0;
  color: #0f2d3c;
  display: grid;
  height: 44px;
  place-items: center;
  width: 44px;
}

.gh-menu-btn svg {
  height: 42px;
  width: 42px;
}

.gh-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.gh-btn {
  align-items: center;
  border: 1px solid #111;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}

.gh-btn:hover,
.gh-btn:focus {
  box-shadow: 0 8px 18px rgba(6, 44, 85, .16);
  transform: translateY(-1px);
}

.gh-btn svg {
  height: 20px;
  width: 20px;
}

.gh-btn-primary {
  background: #0a3262;
  border-color: #0a3262;
  color: #fff;
}

.gh-btn-green {
  background: #078322;
  border-color: #078322;
  color: #fff;
}

.gh-btn-outline {
  background: #fff;
  color: #111;
}

.gh-filter-bar,
.gh-version-filters {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1.5fr) .55fr .75fr .65fr .65fr auto;
  margin-bottom: 40px;
}

.gh-filter-bar label,
.gh-version-filters label {
  display: grid;
  gap: 4px;
}

.gh-filter-bar label span,
.gh-version-filters label span {
  font-size: 16px;
}

.gh-filter-bar input,
.gh-filter-bar select,
.gh-version-filters input,
.gh-version-filters select,
.gh-compare-head select {
  background: #fff;
  border: 1px solid #0f1115;
  border-radius: 6px;
  color: #141414;
  font-size: 16px;
  font-weight: 700;
  height: 40px;
  min-width: 0;
  padding: 7px 14px;
}

.gh-filter-bar input::placeholder,
.gh-version-filters input::placeholder {
  color: #9a9da2;
  font-weight: 500;
}

.gh-search {
  position: relative;
}

.gh-search svg {
  color: #9a9da2;
  left: 12px;
  position: absolute;
  top: 33px;
}

.gh-filter-bar .gh-search svg {
  top: 10px;
}

.gh-search input {
  padding-left: 54px;
}

.gh-table-card,
.gh-panel,
.gh-side-card,
.gh-stat-card,
.gh-version-stats article {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(218, 220, 224, .88);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gh-table-soft {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gh-table-responsive {
  overflow-x: auto;
}

.gh-data-table,
.gh-compact-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 920px;
  width: 100%;
}

.gh-data-table th {
  background: #e5e1dc;
  color: #171717;
  font-size: 24px;
  font-weight: 900;
  padding: 20px 30px;
  white-space: nowrap;
}

.gh-data-table th:first-child {
  border-radius: 10px 0 0 10px;
}

.gh-data-table th:last-child {
  border-radius: 0 10px 10px 0;
}

.gh-data-table td {
  background: rgba(255, 255, 255, .78);
  color: #111;
  font-size: 21px;
  font-weight: 600;
  padding: 16px 30px;
  vertical-align: middle;
}

.gh-data-table tbody tr {
  animation: rowIn .32s ease both;
}

.gh-data-table tbody tr:nth-child(2n) td {
  background: rgba(250, 250, 248, .58);
}

.gh-data-table tbody tr:hover td,
.gh-data-table tbody tr.selected td {
  background: #eef7ff;
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.gh-status {
  border-radius: 7px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 90px;
  padding: 8px 17px;
}

.gh-status-active,
.gh-status-approved,
.gh-status-completed,
.gh-status-working {
  background: #bdebc7;
  color: #0e4a1d;
}

.gh-status-draft,
.gh-status-submitted,
.gh-status-in_progress {
  background: #cfe3fb;
  color: #083967;
}

.gh-status-closed,
.gh-status-archived,
.gh-status-cancelled,
.gh-status-superseded {
  background: #eadedf;
  color: #2b2324;
}

.gh-status-final {
  background: #d7c4ff;
  color: #381484;
}

.gh-status-review {
  background: #ffe6ba;
  color: #9b4e00;
}

.gh-status-overdue {
  background: #ffd4da;
  color: #a11220;
}

.gh-row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.gh-row-actions a,
.gh-row-actions button {
  align-items: center;
  background: #efeff0;
  border: 0;
  border-radius: 8px;
  color: #14b9b6;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 40px;
}

.gh-row-actions.bordered a,
.gh-row-actions.bordered button {
  background: #fff;
  border: 1px solid #d9dde4;
  color: #0f1720;
  width: 32px;
}

.gh-row-actions svg {
  height: 22px;
  width: 22px;
}

.gh-table-footer {
  align-items: center;
  color: #b7b7b7;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 84px;
  padding: 0 24px;
}

.gh-table-footer.inner {
  color: #111;
  font-size: 14px;
  margin-top: 10px;
  padding: 8px 12px 12px;
}

.gh-pagination {
  align-items: center;
  color: #111;
  display: flex;
  gap: 7px;
}

.gh-pagination button,
.gh-pagination span,
.gh-pagination select {
  align-items: center;
  background: transparent;
  border: 1px solid #111;
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0 8px;
}

.gh-pagination span.active {
  background: #8e8e8e;
  color: #fff;
}

.gh-pagination select {
  border-color: #d5d9e0;
  border-radius: 6px;
  height: 36px;
  margin-left: 14px;
  min-width: 110px;
}

.gh-empty {
  color: var(--muted);
  padding: 32px !important;
  text-align: center;
}

.gh-alert-stack {
  display: grid;
  gap: 10px;
  position: fixed;
  right: 30px;
  top: 24px;
  z-index: 1000;
}

.gh-toast {
  align-items: center;
  animation: toastIn .25s ease both;
  background: #fff;
  border-left: 5px solid var(--blue);
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  max-width: 420px;
  padding: 12px 14px;
}

.gh-toast.alert-success {
  border-color: var(--green);
}

.gh-toast.alert-error,
.gh-toast.alert-danger {
  border-color: var(--red);
}

.gh-toast button {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}

.gh-breadcrumb {
  color: #111;
  font-size: 28px;
  font-weight: 900;
}

.gh-breadcrumb span {
  color: #8a8a8a;
}

.gh-stat-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.gh-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gh-stat-card {
  align-items: center;
  background: #efede8;
  display: flex;
  gap: 28px;
  min-height: 142px;
  padding: 28px 18px;
}

.gh-stat-icon {
  border-radius: 18px;
  color: #fff;
  display: grid;
  flex: 0 0 66px;
  height: 66px;
  place-items: center;
  width: 66px;
}

.gh-stat-icon.blue,
.gh-version-stats .blue {
  background: #2c85f5;
}

.gh-stat-icon.orange,
.gh-version-stats .orange {
  background: var(--orange);
}

.gh-stat-icon.yellow {
  background: var(--yellow);
}

.gh-stat-icon.purple,
.gh-version-stats .purple {
  background: #c44dd7;
}

.gh-stat-icon.green,
.gh-version-stats .green {
  background: #2fac44;
}

.gh-version-stats .red {
  background: #eb3f4f;
}

.gh-stat-card small,
.gh-stat-card span {
  display: block;
  font-size: 16px;
}

.gh-stat-card strong {
  display: block;
  font-size: 48px;
  line-height: 1;
}

.gh-stat-card:nth-child(2) strong {
  color: var(--orange);
}

.gh-stat-card:nth-child(4) strong {
  color: #c44dd7;
  font-size: 30px;
}

.gh-stat-card:nth-child(5) strong {
  color: #2fac44;
  font-size: 30px;
}

.gh-detail-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.05fr 1.32fr .72fr;
  margin-bottom: 30px;
}

.gh-lower-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.55fr .95fr;
}

.gh-panel {
  background: #efede8;
  padding: 22px 24px;
}

.gh-panel h2,
.gh-table-card h2,
.gh-side-card h2 {
  color: #cc0f25;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 18px;
}

.gh-panel h2 {
  background: rgba(255, 255, 255, .58);
  border-radius: 999px;
  padding: 5px 22px;
}

.gh-panel h2 span {
  margin-right: 10px;
}

.gh-cycle-info dl {
  display: grid;
  font-size: 22px;
  gap: 16px;
  grid-template-columns: 180px 1fr;
  margin: 18px 42px 6px;
}

.gh-cycle-info dt {
  font-weight: 500;
}

.gh-cycle-info dd {
  font-weight: 500;
  margin: 0;
  position: relative;
}

.gh-cycle-info dd::before {
  content: ":";
  left: -24px;
  position: absolute;
}

.gh-panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.gh-months {
  color: #878b91;
  display: grid;
  font-size: 13px;
  grid-template-columns: repeat(12, 1fr);
  margin-left: 220px;
}

.gh-gantt {
  display: grid;
  gap: 22px;
  margin-top: 12px;
}

.gh-gantt div {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 210px 1fr;
}

.gh-gantt strong {
  font-size: 22px;
  font-weight: 500;
}

.gh-gantt .bar {
  border-radius: 6px;
  display: block;
  grid-column: 2;
  height: 34px;
  margin-left: calc((var(--start) - 1) * 8.333%);
  width: calc(var(--span) * 8.333%);
}

.gh-gantt .blue {
  background: #327fca;
}

.gh-gantt .orange {
  background: var(--orange);
}

.gh-gantt .green {
  background: #3ea33f;
}

.gh-gantt .purple {
  background: #5954d8;
}

.gh-progress-panel {
  text-align: center;
}

.gh-donut {
  --value: 80;
  align-items: center;
  animation: ringPulse 1.5s ease-in-out infinite alternate;
  aspect-ratio: 1;
  background: conic-gradient(#348bd6 calc(var(--value) * 1%), #e1e4e8 0);
  border-radius: 50%;
  display: inline-grid;
  margin: 8px auto 18px;
  max-width: 205px;
  padding: 26px;
  width: 80%;
}

.gh-donut > div {
  align-items: center;
  background: #efede8;
  border-radius: 50%;
  display: grid;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.gh-donut strong {
  display: block;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.gh-donut span {
  display: block;
  font-size: 17px;
}

@keyframes ringPulse {
  to {
    filter: drop-shadow(0 0 8px rgba(52, 139, 214, .22));
  }
}

.gh-legend {
  display: grid;
  gap: 6px;
  text-align: left;
}

.gh-legend span {
  align-items: center;
  display: grid;
  font-size: 14px;
  gap: 8px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.gh-legend i {
  display: inline-block;
  height: 10px;
  width: 10px;
}

.gh-legend .blue {
  background: #348bd6;
}

.gh-legend .orange {
  background: var(--orange);
}

.gh-legend .red {
  background: #f04022;
}

.gh-legend .teal {
  background: var(--cyan);
}

.gh-legend .purple {
  background: var(--purple);
}

.gh-compact-table {
  min-width: 600px;
}

.gh-compact-table th {
  background: rgba(255, 255, 255, .72);
  font-size: 16px;
  font-weight: 900;
  padding: 8px 24px;
}

.gh-compact-table th:first-child {
  border-radius: 999px 0 0 999px;
}

.gh-compact-table th:last-child {
  border-radius: 0 999px 999px 0;
}

.gh-compact-table td {
  font-size: 18px;
  padding: 8px 24px;
  vertical-align: middle;
}

.gh-compact-table td span {
  color: #4b5563;
  display: block;
  font-size: 13px;
}

.gh-calendar-panel {
  margin-top: 30px;
}

.gh-calendar-panel h2 {
  color: #111;
}

.gh-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.gh-version-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.gh-version-page .gh-content {
  padding-top: 28px;
}

.gh-version-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.gh-version-stats article {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 58px 1fr;
  min-height: 92px;
  padding: 14px 18px;
}

.gh-version-stats span {
  border-radius: 10px;
  color: #fff;
  display: grid;
  height: 52px;
  place-items: center;
  width: 52px;
}

.gh-version-stats small {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.gh-version-stats strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.gh-version-stats p {
  font-size: 12px;
  margin: 4px 0 0;
}

.gh-version-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 14px;
  grid-template-columns: 1.35fr .8fr .75fr .85fr 1.15fr auto auto;
  margin-bottom: 18px;
  padding: 16px 22px;
}

.gh-version-filters span {
  font-size: 12px !important;
  font-weight: 900;
}

.gh-version-filters input,
.gh-version-filters select {
  border-color: #cfd4dc;
  font-size: 13px;
  height: 38px;
}

.gh-version-filters .gh-btn,
.gh-version-page .gh-btn {
  font-size: 12px;
  min-height: 34px;
}

.gh-table-card {
  background: #fff;
  padding: 14px;
}

.gh-table-card h2 {
  color: #00123a;
  font-size: 15px;
}

.gh-version-table th {
  background: #f4f5f7;
  border-bottom: 1px solid #d7dbe1;
  border-radius: 0 !important;
  font-size: 12px;
  padding: 12px 14px;
  text-transform: uppercase;
}

.gh-version-table td {
  border-bottom: 1px solid #e3e6eb;
  font-size: 13px;
  padding: 11px 14px;
}

.gh-version-table .gh-status {
  font-size: 12px;
  min-width: 82px;
  padding: 5px 8px;
}

.gh-lock {
  align-items: center;
  color: #08721a;
  display: inline-flex;
  font-weight: 900;
  gap: 7px;
}

.gh-lock.locked {
  color: #eb2638;
}

.gh-version-bottom {
  display: grid;
  gap: 14px;
  grid-template-columns: 210px minmax(0, 1fr) 260px;
  margin-top: 14px;
}

.gh-version-bottom .gh-panel,
.gh-version-side .gh-side-card {
  background: #fff;
  box-shadow: none;
  padding: 14px;
}

.gh-active-cycle h2,
.gh-comparison h2,
.gh-budget-donut h2,
.gh-version-side h2 {
  background: transparent;
  color: #00123a;
  font-size: 13px;
  padding: 0;
}

.gh-cycle-badge {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 36px 1fr;
  margin-bottom: 14px;
}

.gh-cycle-badge svg {
  color: var(--blue);
  height: 36px;
  width: 36px;
}

.gh-cycle-badge .gh-status {
  grid-column: 2;
  justify-self: start;
  min-width: 50px;
  padding: 3px 8px;
}

.gh-active-cycle dl {
  display: grid;
  font-size: 12px;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.gh-active-cycle dd {
  font-weight: 900;
  margin: 0;
}

.gh-compare-head {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) 170px 170px auto;
  margin-bottom: 8px;
}

.gh-compare-head label {
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 3px;
}

.gh-compare-head select {
  border-color: #d5d9e0;
  font-size: 12px;
  height: 30px;
}

.gh-comparison .gh-compact-table th,
.gh-comparison .gh-compact-table td {
  font-size: 11px;
  padding: 7px 9px;
}

.up {
  color: #0b7d22;
  font-weight: 900;
}

.down {
  color: #dc1e30;
  font-weight: 900;
}

.gh-budget-donut {
  text-align: center;
}

.gh-donut.multi {
  background: conic-gradient(#064fd6 0 36.5%, var(--cyan) 36.5% 60.8%, var(--orange) 60.8% 89.6%, var(--purple) 89.6% 100%);
  max-width: 150px;
}

.gh-donut.multi strong {
  font-size: 15px;
}

.gh-donut.multi span {
  font-size: 9px;
}

.gh-legend.split span {
  font-size: 11px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.gh-version-side {
  display: grid;
  gap: 14px;
}

.gh-side-card {
  background: #fff;
}

.gh-vertical-timeline {
  border-left: 2px solid #cad0d8;
  display: grid;
  gap: 17px;
  margin-left: 16px;
  padding-left: 20px;
}

.gh-vertical-timeline article {
  position: relative;
}

.gh-vertical-timeline article::before {
  background: #243653;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #9aa3af;
  content: "";
  height: 12px;
  left: -27px;
  position: absolute;
  top: 4px;
  width: 12px;
}

.gh-vertical-timeline article.done::before {
  background: #078322;
}

.gh-vertical-timeline article.review::before {
  background: #ff9f1c;
}

.gh-vertical-timeline article.active::before {
  background: #0757d6;
}

.gh-vertical-timeline strong {
  font-size: 14px;
}

.gh-vertical-timeline span {
  background: #d8f3df;
  border-radius: 5px;
  color: #0a4e1a;
  float: right;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
}

.gh-vertical-timeline .review span,
.gh-vertical-timeline article:not(.done):not(.active) span {
  background: #ffe3b8;
  color: #bf5200;
}

.gh-vertical-timeline .active span {
  background: #cfe3ff;
  color: #064aa4;
}

.gh-vertical-timeline p {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  margin: 8px 0 0;
}

.gh-side-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.gh-side-title a {
  color: #064fd6;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.gh-activity-feed article {
  border-top: 1px solid #eef0f4;
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 18px 1fr auto;
  padding: 10px 0;
}

.gh-activity-feed svg {
  height: 16px;
  margin-top: 3px;
  width: 16px;
}

.gh-activity-feed .ok {
  color: var(--green);
}

.gh-activity-feed .warn {
  color: var(--orange);
}

.gh-activity-feed .new {
  color: var(--blue);
}

.gh-activity-feed strong,
.gh-activity-feed span,
.gh-activity-feed p {
  font-size: 11px;
  margin: 0;
}

.gh-activity-feed p {
  color: #111;
  grid-column: 2 / -1;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.metric-label {
  color: var(--muted);
  display: block;
  font-size: .875rem;
  margin-bottom: .25rem;
}

.report-printable {
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: .875rem;
  overflow-x: auto;
  white-space: pre;
}

@media (max-width: 1400px) {
  .gh-shell {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .gh-brand {
    font-size: 40px;
  }

  .gh-nav a {
    font-size: 17px;
    padding-inline: 24px;
  }

  .gh-filter-bar,
  .gh-version-filters,
  .gh-detail-grid,
  .gh-version-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .gh-filter-bar .gh-search,
  .gh-version-filters .gh-search,
  .gh-detail-grid .gh-timeline-panel,
  .gh-version-bottom .gh-comparison {
    grid-column: 1 / -1;
  }

  .gh-five,
  .gh-version-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gh-version-layout {
    grid-template-columns: 1fr;
  }

  .gh-version-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .gh-shell {
    grid-template-columns: 1fr;
  }

  .gh-sidebar {
    min-height: auto;
    position: static;
  }

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

  .gh-topbar,
  .gh-page-head,
  .gh-lower-grid,
  .gh-version-side {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .gh-content {
    padding: 24px 16px;
  }

  .gh-filter-bar,
  .gh-version-filters,
  .gh-detail-grid,
  .gh-five,
  .gh-version-stats,
  .gh-version-bottom,
  .gh-compare-head {
    grid-template-columns: 1fr;
  }

  .gh-data-table th,
  .gh-data-table td {
    font-size: 16px;
    padding: 13px 16px;
  }

  .gh-table-footer {
    align-items: start;
    display: grid;
    gap: 14px;
    margin-top: 34px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .gh-sidebar,
  .gh-topbar,
  .gh-actions,
  .gh-alert-stack,
  .no-print {
    display: none !important;
  }

  .gh-shell {
    display: block;
  }

  .gh-content {
    padding: 0;
  }

  .gh-panel,
  .gh-table-card,
  .metric-card,
  .report-print-surface {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* Professional national-budget UI polish layer */
:root {
  --card: #ffffff;
  --card-2: #f8fafc;
  --field: #ffffff;
  --heading: #071120;
  --sidebar-line: rgba(255, 255, 255, .1);
  --focus: 0 0 0 4px rgba(20, 184, 166, .18);
  --shadow: 0 16px 40px rgba(15, 23, 42, .08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7eef8;
  --heading: #f8fbff;
  --muted: #98a8bd;
  --line: #233146;
  --soft-line: #1b293c;
  --surface: #08111f;
  --panel: #0f1b2b;
  --card: #111f32;
  --card-2: #0c1727;
  --field: #0a1525;
  --white: #101b2b;
  --shadow: 0 18px 48px rgba(0, 0, 0, .35);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, .24);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, 0) 280px),
    var(--surface);
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 78% -10%, rgba(20, 184, 166, .13), transparent 32rem),
    linear-gradient(180deg, rgba(13, 27, 46, .92), rgba(8, 17, 31, 0) 320px),
    var(--surface);
}

.gh-shell {
  grid-template-columns: 300px minmax(0, 1fr);
}

.gh-sidebar {
  background:
    linear-gradient(180deg, rgba(4, 31, 64, .96), rgba(2, 18, 38, .99)),
    linear-gradient(135deg, rgba(255, 255, 255, .06) 25%, transparent 25% 50%, rgba(255, 255, 255, .035) 50% 75%, transparent 75%),
    radial-gradient(circle at 20% 10%, rgba(20, 184, 166, .18), transparent 26rem);
  background-size: auto, 34px 34px, auto;
  border-right: 1px solid rgba(2, 8, 23, .46);
  padding: 24px 12px;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.gh-brand {
  font-size: 34px;
  margin: 0 16px 28px;
  padding: 8px 4px 18px;
  position: relative;
}

.gh-brand::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
}

.gh-map-mark {
  height: 40px;
  width: 32px;
}

.gh-map-mark span {
  height: 13px;
  width: 13px;
}

.gh-check::after {
  border-bottom-width: 6px;
  border-right-width: 6px;
  height: 40px;
  right: -28px;
  top: -12px;
  width: 20px;
}

.gh-nav {
  gap: 3px;
}

.gh-nav a {
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr);
  line-height: 1.18;
  margin: 0 4px;
  min-height: 42px;
  padding: 9px 12px;
}

.gh-nav a:hover,
.gh-nav a:focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--sidebar-line);
  outline: none;
  transform: translateX(2px);
}

.gh-nav a.active {
  background: linear-gradient(135deg, #0a54c8, #063a82);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: inset 3px 0 0 #14b8a6, 0 12px 22px rgba(0, 0, 0, .18);
}

.gh-nav svg {
  height: 20px;
  width: 20px;
}

.gh-nav-other {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  letter-spacing: .14em;
  margin: 28px 16px 8px;
  text-transform: uppercase;
}

.gh-sidebar-heading {
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  margin: 0 16px 10px;
  text-transform: uppercase;
}

.gh-legacy-toggler {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.gh-topbar {
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border-bottom: 1px solid var(--line);
  min-height: 86px;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 80;
}

.gh-ministry {
  gap: 14px;
  min-width: 0;
}

.gh-ministry-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gh-ministry-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gh-ministry-text strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.15;
}

.gh-crest {
  background:
    radial-gradient(circle at 50% 50%, #111 0 13%, transparent 14%),
    linear-gradient(#e3262e 0 33%, #ffd32a 33% 66%, #159947 66%);
  border: 3px solid color-mix(in srgb, var(--card), #f1c232 35%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
  flex: 0 0 auto;
  height: 42px;
  width: 42px;
}

.gh-topbar-actions {
  gap: 10px;
}

.gh-cycle-picker {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  min-width: 184px;
  padding: 9px 12px;
}

.gh-cycle-picker small,
.gh-user span {
  color: var(--muted);
}

.gh-icon-btn {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  height: 42px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  width: 42px;
}

.gh-icon-btn:hover,
.gh-icon-btn:focus {
  border-color: color-mix(in srgb, var(--blue), var(--line) 50%);
  box-shadow: var(--focus);
  outline: none;
  transform: translateY(-1px);
}

.theme-moon,
html[data-theme="dark"] .theme-sun {
  display: none;
}

html[data-theme="dark"] .theme-moon {
  display: block;
}

.gh-notification span {
  right: -5px;
  top: -6px;
}

.gh-user {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 10px;
  padding: 6px;
}

.gh-user strong {
  color: var(--heading);
  font-size: 14px;
  line-height: 1.1;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-user span {
  font-size: 12px;
}

.gh-user-meta {
  display: grid;
  min-width: 0;
}

.gh-avatar {
  align-items: center;
  color: transparent;
  display: flex;
  flex: 0 0 auto;
  font-size: 0;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.gh-avatar::before {
  height: 18px;
  left: 13px;
  top: 6px;
  width: 16px;
}

.gh-logout-form {
  margin: 0;
}

.gh-logout-btn {
  border-radius: 12px;
  height: 38px;
  width: 38px;
}

.gh-logout-btn:hover,
.gh-logout-btn:focus {
  background: #fff1f1 !important;
  border-color: rgba(230, 57, 70, 0.25) !important;
  color: #b42323 !important;
}

.gh-notification-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 10px;
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: absolute;
  right: 28px;
  top: calc(100% + 10px);
  transform: translateY(-8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  width: min(390px, calc(100vw - 32px));
  z-index: 90;
}

.gh-notification-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.gh-notification-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.gh-notification-head strong {
  color: var(--heading);
  display: block;
  font-size: 16px;
}

.gh-notification-head span {
  color: var(--muted);
  font-size: 12px;
}

.gh-notification-head button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
}

.gh-notification-panel article {
  align-items: start;
  background: var(--card-2);
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 12px;
}

.gh-notification-panel article.critical {
  border-left: 4px solid var(--red);
}

.gh-notification-panel article svg {
  color: var(--blue);
  margin-top: 2px;
}

.gh-notification-panel article.critical svg {
  color: var(--red);
}

.gh-notification-panel article strong,
.gh-notification-panel article span {
  display: block;
}

.gh-notification-panel article strong {
  color: var(--heading);
  font-size: 13px;
}

.gh-notification-panel article span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.gh-content {
  padding: 28px;
}

.gh-page-head {
  gap: 20px;
  margin-bottom: 28px;
}

.gh-title-row {
  gap: 16px;
}

.gh-title-row h1 {
  color: var(--heading);
  font-size: 30px;
  letter-spacing: 0;
}

.gh-title-row p,
.gh-page-head p {
  color: var(--muted);
  font-size: 14px;
}

.gh-menu-btn {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  height: 42px;
  width: 42px;
}

.gh-menu-btn svg {
  height: 24px;
  width: 24px;
}

.gh-btn {
  border-color: var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 14px;
}

.gh-btn-primary {
  background: linear-gradient(135deg, #0a54c8, #08346c);
  border-color: transparent;
}

.gh-btn-green {
  background: linear-gradient(135deg, #078322, #046317);
  border-color: transparent;
}

.gh-btn-outline {
  background: var(--field);
  color: var(--ink);
}

.gh-btn:hover,
.gh-btn:focus {
  box-shadow: var(--focus);
}

.gh-filter-bar,
.gh-version-filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
}

.gh-filter-bar input,
.gh-filter-bar select,
.gh-version-filters input,
.gh-version-filters select,
.gh-compare-head select {
  background: var(--field);
  border-color: var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.gh-filter-bar label span,
.gh-version-filters label span {
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gh-search svg {
  color: var(--muted);
}

.gh-table-card,
.gh-panel,
.gh-side-card,
.gh-stat-card,
.gh-version-stats article,
.metric-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.gh-panel {
  padding: 18px;
}

.gh-table-card {
  padding: 16px;
}

.gh-table-soft {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gh-data-table,
.gh-compact-table {
  border-collapse: collapse;
  min-width: 900px;
}

.gh-data-table th,
.gh-compact-table th {
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.gh-data-table th:first-child,
.gh-data-table th:last-child,
.gh-compact-table th:first-child,
.gh-compact-table th:last-child {
  border-radius: 0;
}

.gh-data-table td,
.gh-compact-table td {
  background: var(--card);
  border-bottom: 1px solid var(--soft-line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  padding: 13px 14px;
}

.gh-data-table tbody tr:nth-child(2n) td {
  background: color-mix(in srgb, var(--card) 84%, var(--card-2));
}

.gh-data-table tbody tr:hover td,
.gh-data-table tbody tr.selected td,
.gh-compact-table tbody tr:hover td {
  background: color-mix(in srgb, var(--blue) 8%, var(--card));
}

.gh-status {
  border-radius: 999px;
  font-size: 12px;
  min-width: auto;
  padding: 5px 10px;
}

.gh-row-actions a,
.gh-row-actions button {
  background: var(--card-2);
  border: 1px solid var(--soft-line);
  color: var(--cyan);
  height: 32px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  width: 34px;
}

.gh-row-actions a:hover,
.gh-row-actions button:hover {
  background: color-mix(in srgb, var(--cyan) 12%, var(--card));
  border-color: color-mix(in srgb, var(--cyan) 42%, var(--line));
  transform: translateY(-1px);
}

.gh-table-footer {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
  padding: 0;
}

.gh-pagination button,
.gh-pagination span,
.gh-pagination select {
  background: var(--field);
  border-color: var(--line);
  color: var(--ink);
}

.gh-pagination span.active {
  background: var(--blue);
  color: #fff;
}

.gh-toast {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  color: var(--ink);
}

.gh-toast button {
  color: var(--muted);
}

.gh-breadcrumb {
  color: var(--heading);
  font-size: 18px;
}

.gh-stat-grid {
  gap: 16px;
}

.gh-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gh-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gh-stat-card {
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gh-stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.gh-stat-icon {
  border-radius: 14px;
  flex-basis: 48px;
  height: 48px;
  width: 48px;
}

.gh-stat-card small,
.gh-stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.gh-stat-card strong {
  color: var(--heading);
  font-size: 30px;
}

.gh-stat-card:nth-child(4) strong,
.gh-stat-card:nth-child(5) strong {
  font-size: 26px;
}

.gh-panel h2,
.gh-table-card h2,
.gh-side-card h2 {
  color: var(--heading);
  font-size: 16px;
  letter-spacing: 0;
}

.gh-panel h2 {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.gh-detail-grid {
  gap: 16px;
  grid-template-columns: minmax(280px, .95fr) minmax(360px, 1.35fr) minmax(260px, .75fr);
  margin-bottom: 16px;
}

.gh-lower-grid {
  gap: 16px;
}

.gh-cycle-info dl {
  font-size: 14px;
  gap: 12px;
  grid-template-columns: 130px 1fr;
  margin: 0;
}

.gh-cycle-info dt {
  color: var(--muted);
  font-weight: 800;
}

.gh-cycle-info dd {
  color: var(--heading);
  font-weight: 700;
}

.gh-months {
  margin-left: 160px;
}

.gh-gantt div {
  grid-template-columns: 150px 1fr;
}

.gh-gantt strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 750;
}

.gh-gantt .bar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 8px 18px rgba(15, 23, 42, .12);
  height: 28px;
}

.gh-donut {
  background: conic-gradient(#0a7ee6 calc(var(--value) * 1%), color-mix(in srgb, var(--line) 75%, transparent) 0);
  max-width: 178px;
  padding: 20px;
}

.gh-donut > div {
  background: var(--card);
}

.gh-donut strong {
  color: var(--heading);
  font-size: 30px;
}

.gh-donut span {
  color: var(--muted);
  font-size: 13px;
}

.gh-legend span {
  color: var(--muted);
}

.gh-legend strong {
  color: var(--heading);
}

.gh-version-layout {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 286px;
}

.gh-version-stats {
  gap: 12px;
}

.gh-version-stats article {
  border-radius: 14px;
  min-height: 94px;
}

.gh-version-bottom {
  gap: 14px;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
}

.gh-version-bottom .gh-panel,
.gh-version-side .gh-side-card {
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.gh-vertical-timeline {
  border-left-color: var(--line);
}

.gh-vertical-timeline p,
.gh-activity-feed p,
.gh-activity-feed strong,
.gh-activity-feed span {
  color: var(--ink);
}

.gh-dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-bottom: 16px;
}

.gh-command-panel {
  background:
    linear-gradient(135deg, rgba(10, 84, 200, .94), rgba(4, 40, 84, .97)),
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, .28), transparent 28rem);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 238px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.gh-command-panel::after {
  background: linear-gradient(135deg, transparent 0 49%, rgba(255, 255, 255, .06) 50% 52%, transparent 53%);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: .85;
  pointer-events: none;
  position: absolute;
}

.gh-command-panel > * {
  position: relative;
  z-index: 1;
}

.gh-eyebrow {
  color: #a7f3d0;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.gh-command-panel h2 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 12px;
}

.gh-command-panel p {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

.gh-command-stats {
  align-self: end;
  display: grid;
  gap: 10px;
  min-width: 230px;
}

.gh-command-stats span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: rgba(255, 255, 255, .78);
  display: grid;
  gap: 2px;
  padding: 12px;
}

.gh-command-stats strong {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.gh-health-panel {
  text-align: center;
}

.gh-dashboard-lower {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  margin-top: 16px;
}

.gh-section-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gh-section-head h2,
.gh-quick-access h2 {
  color: var(--heading);
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

.gh-feed-list {
  display: grid;
  gap: 10px;
}

.gh-feed-list a {
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 12px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
}

.gh-feed-list a:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  transform: translateY(-1px);
}

.gh-feed-list svg {
  color: var(--blue);
}

.gh-feed-list strong,
.gh-feed-list small,
.gh-feed-list em {
  display: block;
}

.gh-feed-list strong {
  color: var(--heading);
  font-size: 14px;
}

.gh-feed-list small,
.gh-feed-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.gh-quick-access {
  margin-top: 16px;
}

.gh-quick-access > div {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.gh-quick-access a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  display: grid;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 16px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gh-quick-access a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.gh-quick-access svg {
  color: var(--cyan);
  grid-row: span 2;
}

.gh-quick-access span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gh-quick-access strong {
  color: var(--heading);
  font-size: 19px;
}

.card,
.list-group-item,
.dropdown-menu,
.modal-content {
  background: var(--card);
  border-color: var(--line);
  border-radius: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.card-header,
.card-footer,
.list-group-item {
  background: color-mix(in srgb, var(--card) 88%, var(--card-2));
  border-color: var(--line);
  color: var(--heading);
}

.table {
  --bs-table-bg: var(--card);
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--soft-line);
  --bs-table-hover-bg: color-mix(in srgb, var(--blue) 8%, var(--card));
  --bs-table-hover-color: var(--ink);
  color: var(--ink);
}

.table thead,
.table-light {
  --bs-table-bg: var(--card-2);
  --bs-table-color: var(--muted);
}

.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table td {
  vertical-align: middle;
}

.form-control,
.form-select,
.form-check-input,
textarea,
select,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"] {
  background-color: var(--field);
  border-color: var(--line);
  border-radius: 10px;
  color: var(--ink);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
textarea:focus,
select:focus,
input:focus {
  background-color: var(--field);
  border-color: color-mix(in srgb, var(--blue) 56%, var(--line));
  box-shadow: var(--focus);
  color: var(--ink);
}

.form-label,
.form-check-label {
  color: var(--heading);
  font-weight: 700;
}

.text-muted {
  color: var(--muted) !important;
}

.breadcrumb,
.breadcrumb a {
  color: var(--muted);
}

.breadcrumb .active {
  color: var(--heading);
}

.btn {
  border-radius: 10px;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, #0a54c8, #08346c);
  border-color: transparent;
}

.btn-outline-primary,
.btn-outline-secondary {
  background: var(--field);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  background: color-mix(in srgb, var(--blue) 9%, var(--card));
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  color: var(--heading);
}

.alert {
  background: var(--card);
  border-color: var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.alert-success {
  border-left-color: var(--green);
}

.alert-warning {
  border-left-color: var(--orange);
}

.alert-danger,
.alert-error {
  border-left-color: var(--red);
}

.badge {
  border-radius: 999px;
  font-weight: 800;
  padding: .38rem .62rem;
}

.text-bg-light,
.bg-light {
  background-color: var(--card-2) !important;
  color: var(--ink) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1500px) {
  .gh-five,
  .gh-version-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gh-four,
  .gh-quick-access > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-detail-grid,
  .gh-dashboard-grid,
  .gh-dashboard-lower,
  .gh-version-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .gh-shell {
    grid-template-columns: 1fr;
  }

  .gh-sidebar {
    min-height: auto;
    position: relative;
  }

  .gh-topbar {
    position: relative;
  }

  .gh-topbar,
  .gh-page-head,
  .gh-topbar-actions,
  .gh-command-panel {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .gh-cycle-picker,
  .gh-user {
    width: 100%;
  }

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

@media (max-width: 720px) {
  .gh-content {
    padding: 18px;
  }

  .gh-title-row {
    align-items: start;
  }

  .gh-title-row h1 {
    font-size: 24px;
  }

  .gh-filter-bar,
  .gh-version-filters,
  .gh-four,
  .gh-five,
  .gh-version-stats,
  .gh-quick-access > div,
  .gh-lower-grid {
    grid-template-columns: 1fr;
  }

  .gh-nav {
    grid-template-columns: 1fr;
  }

  .gh-command-panel {
    padding: 22px;
  }

  .gh-command-panel h2 {
    font-size: 28px;
  }

  .gh-table-footer,
  .gh-section-head {
    align-items: start;
    display: grid;
  }
}

/* Strict video-inspired UI model: light ledger dashboard aesthetic */
:root {
  --ledger-bg: #f7fbf9;
  --ledger-sidebar: #f8fcfa;
  --ledger-card: #ffffff;
  --ledger-border: #dde7e2;
  --ledger-border-strong: #cfdcd6;
  --ledger-ink: #07110d;
  --ledger-muted: #43534c;
  --ledger-soft: #eff6f3;
  --ledger-green: #0f8f4a;
  --ledger-green-2: #12a464;
  --ledger-pink: #d86ec0;
  --ledger-pink-soft: #f7d8ef;
  --ledger-red: #c51436;
  --ledger-gold: #e4a11b;
  --ledger-blue: #338dd0;
  --ledger-teal: #159b9e;
  --ledger-radius: 18px;
  --ledger-shadow: 0 1px 2px rgba(16, 24, 20, .03);
  --surface: var(--ledger-bg);
  --card: var(--ledger-card);
  --card-2: var(--ledger-soft);
  --field: var(--ledger-card);
  --ink: var(--ledger-ink);
  --heading: var(--ledger-ink);
  --muted: var(--ledger-muted);
  --line: var(--ledger-border);
  --soft-line: #edf3f0;
  --blue: var(--ledger-green);
  --green: var(--ledger-green);
  --red: var(--ledger-red);
  --shadow: var(--ledger-shadow);
  --shadow-soft: var(--ledger-shadow);
  --focus: 0 0 0 4px rgba(15, 143, 74, .12);
}

html[data-theme="dark"] {
  --ledger-bg: #0f1513;
  --ledger-sidebar: #111a17;
  --ledger-card: #151f1b;
  --ledger-border: #2b3934;
  --ledger-border-strong: #405049;
  --ledger-ink: #eef6f2;
  --ledger-muted: #b1c2ba;
  --ledger-soft: #1b2823;
  --ledger-pink-soft: rgba(216, 110, 192, .2);
  --surface: var(--ledger-bg);
  --card: var(--ledger-card);
  --card-2: var(--ledger-soft);
  --field: var(--ledger-card);
  --ink: var(--ledger-ink);
  --heading: var(--ledger-ink);
  --muted: var(--ledger-muted);
  --line: var(--ledger-border);
  --soft-line: #23312c;
}

body,
html[data-theme="dark"] body {
  background: var(--ledger-bg);
  color: var(--ledger-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.gh-shell {
  background: var(--ledger-bg);
  grid-template-columns: 382px minmax(0, 1fr);
}

.gh-sidebar {
  background: var(--ledger-sidebar);
  background-image: none;
  border-right: 1px solid var(--ledger-border);
  color: var(--ledger-ink);
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  padding: 36px 18px 18px;
  position: sticky;
  top: 0;
}

.gh-brand {
  color: var(--ledger-ink);
  font-size: 30px;
  font-weight: 800;
  gap: 12px;
  margin: 0 16px 36px;
  padding: 0;
}

.gh-brand::after,
.gh-check::after {
  display: none;
}

.gh-map-mark {
  background: var(--ledger-green);
  border-radius: 16px;
  clip-path: none;
  height: 50px;
  margin: 0;
  width: 50px;
}

.gh-map-mark span {
  background: transparent;
  clip-path: none;
  color: #fff;
  display: grid;
  font-size: 31px;
  font-weight: 500;
  height: 100%;
  place-items: center;
  width: 100%;
}

.gh-map-mark span::before {
  content: "$";
}

.gh-brand-text,
.gh-check {
  color: var(--ledger-ink);
  text-shadow: none;
}

.gh-sidebar-heading {
  height: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.gh-nav {
  gap: 16px;
}

.gh-nav a {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #33423d;
  font-size: 23px;
  font-weight: 500;
  gap: 22px;
  grid-template-columns: 30px minmax(0, 1fr);
  line-height: 1.2;
  margin: 0;
  min-height: 56px;
  padding: 8px 18px;
  transform: none;
}

html[data-theme="dark"] .gh-nav a {
  color: #d6e3dd;
}

.gh-nav a:hover,
.gh-nav a:focus,
.gh-nav a.active {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ledger-ink);
  transform: none;
}

.gh-nav a.active span {
  font-weight: 650;
}

.gh-nav svg {
  height: 28px;
  stroke-width: 1.9;
  width: 28px;
}

.gh-nav-other {
  border-top: 1px solid var(--ledger-border);
  color: var(--ledger-muted);
  font-size: 14px;
  letter-spacing: 0;
  margin: auto 0 12px;
  padding: 22px 0 0 2px;
  text-transform: none;
}

.gh-nav-support {
  gap: 8px;
}

.gh-workspace {
  background: var(--ledger-bg);
  border-left: 0;
}

.gh-topbar {
  align-items: center;
  background: color-mix(in srgb, var(--ledger-bg) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ledger-border);
  display: flex;
  height: 146px;
  justify-content: space-between;
  min-height: 146px;
  padding: 28px 48px 14px 36px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.gh-ministry strong {
  color: var(--ledger-ink);
  font-size: 29px;
  font-weight: 750;
  letter-spacing: 0;
}

.gh-topbar-actions {
  display: flex;
  gap: 26px;
}

.gh-top-search {
  align-items: center;
  background: var(--ledger-card);
  border: 1px solid var(--ledger-border);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(220px, 1fr) auto;
  height: 54px;
  min-width: 384px;
  padding: 0 14px;
}

.gh-top-search svg {
  color: #34453f;
  height: 23px;
  width: 23px;
}

.gh-top-search input {
  background: transparent;
  border: 0;
  color: var(--ledger-ink);
  font-size: 24px;
  height: 100%;
  outline: 0;
  padding: 0;
}

.gh-top-search input::placeholder {
  color: #41504b;
}

.gh-top-search span {
  background: var(--ledger-soft);
  border: 1px solid var(--ledger-border);
  border-radius: 8px;
  color: #43534c;
  font-size: 15px;
  padding: 4px 10px;
  white-space: nowrap;
}

.gh-icon-btn {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--ledger-ink);
  height: 48px;
  width: 48px;
}

.gh-icon-btn:hover,
.gh-icon-btn:focus {
  background: var(--ledger-soft);
  box-shadow: none;
  transform: none;
}

.gh-icon-btn svg {
  height: 27px;
  stroke-width: 2;
  width: 27px;
}

.gh-user {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.gh-avatar {
  align-items: center;
  background: #d9f4e5;
  border-radius: 50%;
  color: #10854a;
  display: flex;
  font-size: 20px;
  font-weight: 650;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.gh-avatar::before {
  display: none;
}

.gh-content {
  padding: 54px 48px 40px;
}

.gh-page-head {
  margin-bottom: 28px;
}

.gh-title-row h1,
.gh-ledger-hero h1 {
  color: var(--ledger-ink);
  font-size: 36px;
  font-weight: 760;
  letter-spacing: 0;
}

.gh-title-row p,
.gh-ledger-hero p {
  color: var(--ledger-muted);
  font-size: 23px;
  margin: 6px 0 0;
}

.gh-menu-btn {
  display: none;
}

.gh-ledger-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.gh-ledger-actions,
.gh-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gh-btn,
.btn {
  background: var(--ledger-card);
  border: 1px solid var(--ledger-border);
  border-radius: 11px;
  box-shadow: none;
  color: var(--ledger-ink);
  font-size: 19px;
  font-weight: 520;
  min-height: 42px;
  padding: 8px 15px;
}

.gh-btn svg,
.btn svg {
  height: 20px;
  width: 20px;
}

.gh-btn-primary,
.btn-primary {
  background: var(--ledger-green);
  border-color: var(--ledger-green);
  color: #fff;
}

.gh-btn:hover,
.gh-btn:focus,
.btn:hover,
.btn:focus {
  box-shadow: none;
  filter: brightness(.985);
  transform: none;
}

.gh-ledger-metrics {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 46px;
}

.gh-ledger-card,
.gh-ledger-mini,
.gh-ledger-chart-card,
.gh-table-card,
.gh-panel,
.gh-side-card,
.card,
.metric-card {
  background: var(--ledger-card);
  border: 1px solid var(--ledger-border);
  border-radius: var(--ledger-radius);
  box-shadow: var(--ledger-shadow);
  color: var(--ledger-ink);
}

.gh-ledger-card {
  min-height: 280px;
  padding: 48px 25px 24px;
}

.gh-ledger-card-head {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
}

.gh-ledger-card-head span,
.gh-ledger-mini > span,
.txn-icon {
  align-items: center;
  background: var(--ledger-soft);
  border-radius: 12px;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.gh-ledger-card-head svg,
.gh-ledger-mini svg,
.txn-icon svg {
  height: 25px;
  stroke-width: 1.8;
  width: 25px;
}

.gh-ledger-card-head strong {
  color: #3f4e49;
  font-size: 19px;
  font-weight: 540;
}

.gh-ledger-card-head em,
.gh-ledger-mini em {
  border-radius: 999px;
  font-style: normal;
  font-size: 17px;
  font-weight: 700;
  padding: 4px 13px;
}

.positive {
  background: var(--ledger-pink);
  color: #078349;
}

.negative {
  background: #fae3ec;
  color: #a32943;
}

.gh-ledger-card h2 {
  color: var(--ledger-ink);
  font-size: 36px;
  font-weight: 760;
  margin: 34px 0 22px;
}

.gh-sparkline {
  height: 46px;
  position: relative;
}

.gh-sparkline::before {
  background: linear-gradient(100deg, transparent 0 4%, var(--ledger-pink) 4% 16%, transparent 16% 26%, var(--ledger-pink) 26% 40%, transparent 40% 52%, var(--ledger-pink) 52% 66%, transparent 66% 78%, var(--ledger-pink) 78% 100%);
  clip-path: polygon(0 55%, 18% 52%, 38% 53%, 55% 48%, 72% 52%, 100% 44%, 100% 50%, 72% 58%, 55% 54%, 38% 59%, 18% 57%, 0 60%);
  content: "";
  inset: 0;
  position: absolute;
}

.gh-sparkline.olive::before {
  background: #8f9419;
}

.gh-ledger-small-row {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 48px;
}

.gh-ledger-mini {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 58px 1fr auto;
  min-height: 164px;
  padding: 30px 25px;
}

.gh-ledger-mini strong {
  color: #485751;
  display: block;
  font-size: 20px;
  font-weight: 520;
}

.gh-ledger-mini b {
  color: var(--ledger-ink);
  display: block;
  font-size: 28px;
  line-height: 1.15;
}

.gh-ledger-chart-card {
  margin-bottom: 22px;
  padding: 28px 25px;
}

.gh-ledger-section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.gh-ledger-chart-card h2,
.gh-panel h2,
.gh-table-card h2 {
  color: var(--ledger-ink);
  font-size: 26px;
  font-weight: 560;
  margin: 0 0 24px;
}

.gh-ledger-toggle {
  background: var(--ledger-soft);
  border-radius: 14px;
  display: flex;
  padding: 4px;
}

.gh-ledger-toggle span {
  border-radius: 10px;
  color: var(--ledger-muted);
  font-size: 20px;
  padding: 7px 12px;
}

.gh-ledger-toggle .active {
  background: var(--ledger-card);
  box-shadow: 0 2px 10px rgba(17, 24, 20, .1);
  color: var(--ledger-ink);
}

.gh-bar-chart {
  align-items: end;
  background:
    linear-gradient(to bottom, transparent 0 calc(33% - 1px), #edf2ef calc(33% - 1px) 33%, transparent 33% calc(66% - 1px), #edf2ef calc(66% - 1px) 66%, transparent 66%),
    var(--ledger-card);
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(6, 1fr);
  height: 430px;
  margin: 8px 10px 0 90px;
  padding: 28px 10px 48px;
  position: relative;
}

.gh-bar-chart .axis {
  color: #62706a;
  font-size: 19px;
  left: -65px;
  position: absolute;
}

.gh-bar-chart .top { top: 22px; }
.gh-bar-chart .mid { top: 50%; }
.gh-bar-chart .bottom { bottom: 50px; }

.gh-bar-chart .goal {
  border-top: 3px dashed #b36d1d;
  left: 0;
  position: absolute;
  right: 0;
  top: 52%;
}

.gh-bar-chart > em {
  color: #b36d1d;
  font-size: 17px;
  font-style: normal;
  position: absolute;
  right: 20px;
  top: calc(52% + 8px);
}

.gh-bar-chart .pair {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  position: relative;
}

.gh-bar-chart b {
  align-self: end;
  background: #12a866;
  border-radius: 7px 7px 0 0;
  display: block;
  height: var(--h);
}

.gh-bar-chart b.pink {
  background: var(--ledger-pink);
}

.gh-bar-chart small {
  bottom: -33px;
  color: #62706a;
  font-size: 18px;
  grid-column: 1 / -1;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

.gh-ledger-two-col {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
}

.gh-ledger-donut-wrap {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, .9fr) 1fr;
}

.gh-ledger-donut {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--ledger-blue) 0 43%, #e03d55 43% 57%, #c154b4 57% 69%, var(--ledger-teal) 69% 77%, #16aaa0 77% 83%, #c6a006 83% 89%, #7d3dbb 89% 94%, #c81446 94% 98%, var(--ledger-green) 98% 100%);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  margin: auto;
  max-width: 280px;
  padding: 45px;
}

.gh-ledger-donut::before {
  background: var(--ledger-card);
  border-radius: 50%;
  content: "";
  grid-area: 1 / 1;
  height: 100%;
  width: 100%;
}

.gh-ledger-donut strong,
.gh-ledger-donut span {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
}

.gh-ledger-donut strong {
  align-self: center;
  color: var(--ledger-ink);
  font-size: 24px;
  margin-top: -18px;
}

.gh-ledger-donut span {
  align-self: center;
  color: var(--ledger-muted);
  font-size: 15px;
  margin-top: 36px;
}

.gh-ledger-legend {
  display: grid;
  gap: 15px;
}

.gh-ledger-legend span {
  align-items: center;
  color: var(--ledger-ink);
  display: grid;
  font-size: 22px;
  gap: 12px;
  grid-template-columns: 16px minmax(0, 1fr) 55px 92px;
}

.gh-ledger-legend i {
  border-radius: 50%;
  height: 15px;
  width: 15px;
}

.gh-ledger-legend .blue { background: var(--ledger-blue); }
.gh-ledger-legend .red { background: #e03d55; }
.gh-ledger-legend .pink { background: #c154b4; }
.gh-ledger-legend .teal { background: var(--ledger-teal); }
.gh-ledger-legend .gold { background: #c6a006; }

.gh-ledger-legend b {
  color: var(--ledger-muted);
  font-weight: 500;
  text-align: right;
}

.gh-ledger-legend strong {
  font-weight: 560;
  text-align: right;
}

.gh-budget-progress-list {
  display: grid;
  gap: 28px;
}

.gh-budget-progress-list article {
  display: grid;
  gap: 12px;
}

.gh-budget-progress-list div {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.gh-budget-progress-list strong {
  color: var(--ledger-ink);
  font-size: 24px;
  font-weight: 520;
}

.gh-budget-progress-list span {
  color: #32413c;
  font-size: 22px;
}

.gh-budget-progress-list b {
  background: var(--ledger-soft);
  border-radius: 999px;
  display: block;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.gh-budget-progress-list b::before {
  background: var(--ledger-red);
  border-radius: inherit;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: var(--w);
}

.gh-budget-progress-list b.gold::before {
  background: var(--ledger-gold);
}

.gh-budget-progress-list em {
  color: var(--ledger-red);
  font-size: 19px;
  font-style: normal;
  text-align: right;
}

.gh-ledger-table {
  border-collapse: collapse;
  width: 100%;
}

.gh-ledger-table th {
  border-bottom: 1px solid var(--ledger-border);
  color: var(--ledger-ink);
  font-size: 23px;
  font-weight: 520;
  padding: 18px 14px;
  text-align: left;
}

.gh-ledger-table td {
  border-bottom: 1px solid var(--ledger-border);
  color: var(--ledger-ink);
  font-size: 22px;
  padding: 18px 14px;
  vertical-align: middle;
}

.gh-ledger-table td:nth-child(2) {
  display: grid;
  gap: 0 14px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.gh-ledger-table td:nth-child(2) strong,
.gh-ledger-table td:nth-child(2) small {
  grid-column: 2;
}

.gh-ledger-table td:nth-child(2) .txn-icon {
  grid-row: 1 / 3;
}

.gh-ledger-table small {
  color: var(--ledger-teal);
  font-size: 15px;
}

.ledger-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 16px;
  gap: 5px;
  padding: 5px 11px;
}

.ledger-status svg {
  height: 15px;
  width: 15px;
}

.ledger-status.cleared {
  background: #ddf9ea;
  color: #12a464;
}

.ledger-status.pending {
  background: #fff3cf;
  color: #bd8020;
}

.gh-table-card,
.gh-panel,
.gh-side-card,
.gh-stat-card,
.metric-card,
.card {
  border-radius: var(--ledger-radius) !important;
  box-shadow: var(--ledger-shadow) !important;
}

.gh-data-table th,
.gh-compact-table th,
.table th {
  background: var(--ledger-card);
  color: var(--ledger-ink);
  font-size: 18px;
  font-weight: 520;
  letter-spacing: 0;
  text-transform: none;
}

.gh-data-table td,
.gh-compact-table td,
.table td {
  color: var(--ledger-ink);
  font-size: 17px;
}

.gh-status,
.badge {
  border-radius: 999px;
  font-size: 15px;
  font-weight: 520;
}

.gh-filter-bar,
.gh-version-filters {
  background: var(--ledger-card);
  border-color: var(--ledger-border);
  border-radius: var(--ledger-radius);
  box-shadow: none;
}

.form-control,
.form-select,
input,
select,
textarea {
  background: var(--ledger-card);
  border-color: var(--ledger-border);
  border-radius: 11px;
  color: var(--ledger-ink);
}

@media (max-width: 1500px) {
  .gh-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .gh-ledger-metrics,
  .gh-ledger-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-ledger-small-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .gh-shell {
    grid-template-columns: 1fr;
  }

  .gh-sidebar,
  .gh-topbar {
    min-height: auto;
    position: relative;
  }

  .gh-topbar,
  .gh-ledger-hero,
  .gh-topbar-actions {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .gh-top-search {
    min-width: 0;
    width: 100%;
  }

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

  .gh-content {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .gh-nav,
  .gh-ledger-metrics,
  .gh-ledger-two-col,
  .gh-ledger-donut-wrap {
    grid-template-columns: 1fr;
  }

  .gh-top-search input {
    font-size: 18px;
  }

  .gh-ledger-card {
    min-height: 220px;
  }

  .gh-bar-chart {
    margin-left: 50px;
    overflow-x: auto;
  }
}

/* Actual final dashboard override: keep the template-like grid at desktop recording widths. */
@media (min-width: 1201px) {
  .gh-content:has(.gh-ledger-dashboard) {
    max-width: 1450px !important;
    padding: 42px 48px 56px !important;
  }

  .gh-dashboard.gh-ledger-dashboard {
    gap: 34px !important;
  }

  .gh-ledger-dashboard .gh-ledger-hero {
    align-items: end !important;
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: minmax(420px, 1fr) minmax(620px, auto) !important;
    min-height: 78px !important;
  }

  .gh-ledger-dashboard .gh-ledger-hero h1 {
    font-size: 34px !important;
  }

  .gh-ledger-dashboard .gh-ledger-hero p {
    font-size: 16px !important;
  }

  .gh-ledger-dashboard .gh-ledger-actions {
    justify-content: flex-end !important;
  }

  .gh-ledger-dashboard .gh-ledger-metrics {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .gh-ledger-dashboard .gh-ledger-card {
    min-height: 278px !important;
    padding: 48px 26px 34px !important;
  }

  .gh-ledger-dashboard .gh-ledger-small-row {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini {
    min-height: 164px !important;
    padding: 32px 24px !important;
  }

  .gh-ledger-dashboard .gh-activity-card {
    min-height: 430px !important;
  }

  .gh-ledger-dashboard .gh-dashboard-secondary {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gh-ledger-dashboard .gh-category-card,
  .gh-ledger-dashboard .gh-progress-card {
    min-height: 540px !important;
  }
}

/* End-of-file dashboard lock: match the reference dashboard proportions. */
.gh-dashboard.gh-ledger-dashboard {
  display: grid !important;
  gap: 46px !important;
}

.gh-content:has(.gh-ledger-dashboard) {
  max-width: 1510px !important;
  padding: 52px 48px 64px !important;
}

.gh-ledger-dashboard .gh-ledger-hero {
  align-items: end !important;
  display: grid !important;
  gap: 24px !important;
  grid-template-columns: minmax(460px, 1fr) minmax(620px, auto) !important;
  margin: 0 !important;
  min-height: 82px !important;
}

.gh-ledger-dashboard .gh-ledger-hero h1 {
  font-size: 34px !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

.gh-ledger-dashboard .gh-ledger-hero p {
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin: 8px 0 0 !important;
  max-width: 760px !important;
}

.gh-ledger-dashboard .gh-ledger-actions {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: flex-end !important;
}

.gh-ledger-dashboard .gh-ledger-actions .gh-btn {
  border-radius: 12px !important;
  font-size: 14px !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
}

.gh-ledger-dashboard .gh-ledger-metrics {
  display: grid !important;
  gap: 22px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin: 0 !important;
}

.gh-ledger-dashboard .gh-ledger-card {
  border-radius: 18px !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
  min-height: 278px !important;
  padding: 48px 26px 34px !important;
}

.gh-ledger-dashboard .gh-ledger-card-head {
  align-items: center !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  margin: 0 0 24px !important;
}

.gh-ledger-dashboard .gh-ledger-card-head span {
  border-radius: 13px !important;
  height: 48px !important;
  width: 48px !important;
}

.gh-ledger-dashboard .gh-ledger-card-head strong {
  font-size: 16px !important;
  font-weight: 620 !important;
  white-space: nowrap !important;
}

.gh-ledger-dashboard .gh-ledger-card-head em {
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  max-width: 118px !important;
  padding: 5px 11px !important;
  white-space: nowrap !important;
}

.gh-ledger-dashboard .gh-ledger-card h2 {
  font-size: clamp(36px, 2.2vw, 42px) !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

.gh-ledger-dashboard .gh-sparkline {
  align-self: end !important;
  height: 58px !important;
  margin-top: 28px !important;
}

.gh-ledger-dashboard .gh-ledger-small-row {
  display: grid !important;
  gap: 22px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 0 !important;
}

.gh-ledger-dashboard .gh-ledger-mini {
  align-items: center !important;
  border-radius: 18px !important;
  display: grid !important;
  gap: 24px !important;
  grid-template-columns: 60px minmax(0, 1fr) auto !important;
  min-height: 164px !important;
  padding: 32px 24px !important;
}

.gh-ledger-dashboard .gh-ledger-mini > span {
  border-radius: 14px !important;
  height: 60px !important;
  width: 60px !important;
}

.gh-ledger-dashboard .gh-ledger-mini strong {
  display: block !important;
  font-size: 16px !important;
  font-weight: 620 !important;
  line-height: 1.2 !important;
}

.gh-ledger-dashboard .gh-ledger-mini b {
  display: block !important;
  font-size: 28px !important;
  font-weight: 760 !important;
  line-height: 1.1 !important;
  margin-top: 4px !important;
}

.gh-ledger-dashboard .gh-ledger-mini em {
  border-radius: 999px !important;
  font-size: 14px !important;
  justify-self: end !important;
  max-width: 112px !important;
  padding: 5px 11px !important;
  white-space: nowrap !important;
}

.gh-ledger-dashboard .gh-ledger-chart-card {
  border-radius: 18px !important;
  padding: 28px 26px !important;
}

.gh-ledger-dashboard .gh-activity-card {
  min-height: 430px !important;
}

.gh-ledger-dashboard .gh-ledger-section-head {
  align-items: flex-start !important;
  display: flex !important;
  justify-content: space-between !important;
  margin: 0 0 24px !important;
}

.gh-ledger-dashboard .gh-ledger-section-head h2 {
  font-size: 25px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.gh-ledger-dashboard .gh-ledger-section-head p {
  font-size: 14px !important;
  line-height: 1.45 !important;
  margin: 7px 0 0 !important;
  max-width: 640px !important;
}

.gh-ledger-dashboard .gh-bar-chart {
  gap: clamp(24px, 3.2vw, 58px) !important;
  height: auto !important;
  margin-left: 70px !important;
  min-height: 320px !important;
  padding: 20px 8px 48px 0 !important;
}

.gh-ledger-dashboard .gh-bar-chart .pair {
  min-width: 72px !important;
}

.gh-ledger-dashboard .gh-bar-chart b {
  max-width: 28px !important;
  min-width: 22px !important;
}

.gh-ledger-dashboard .gh-bar-chart small {
  bottom: -38px !important;
  font-size: 14px !important;
  max-width: 86px !important;
}

.gh-ledger-dashboard .gh-dashboard-secondary {
  display: grid !important;
  gap: 22px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gh-ledger-dashboard .gh-category-card,
.gh-ledger-dashboard .gh-progress-card {
  min-height: 540px !important;
}

.gh-ledger-dashboard .gh-ledger-donut-wrap {
  align-items: start !important;
  display: grid !important;
  gap: 28px !important;
  grid-template-columns: 1fr !important;
}

.gh-ledger-dashboard .gh-ledger-donut {
  justify-self: center !important;
  max-width: 292px !important;
  width: min(58%, 292px) !important;
}

.gh-ledger-dashboard .gh-ledger-legend span {
  display: grid !important;
  font-size: 15px !important;
  grid-template-columns: 12px minmax(0, 1fr) minmax(86px, auto) minmax(46px, auto) !important;
  min-height: 34px !important;
}

.gh-ledger-dashboard .gh-budget-progress-list {
  display: grid !important;
  gap: 27px !important;
}

.gh-ledger-dashboard .gh-budget-progress-list strong,
.gh-ledger-dashboard .gh-budget-progress-list span {
  font-size: 18px !important;
}

.gh-ledger-dashboard .gh-budget-progress-list b {
  height: 12px !important;
}

.gh-ledger-dashboard .gh-recent-card {
  min-height: 0 !important;
}

@media (max-width: 1500px) {
  .gh-content:has(.gh-ledger-dashboard) {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }

  .gh-ledger-dashboard .gh-ledger-card {
    min-height: 232px !important;
    padding-top: 34px !important;
  }
}

@media (max-width: 1280px) {
  .gh-ledger-dashboard .gh-ledger-hero {
    grid-template-columns: 1fr !important;
  }

  .gh-ledger-dashboard .gh-ledger-actions {
    justify-content: flex-start !important;
  }

  .gh-ledger-dashboard .gh-ledger-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gh-ledger-dashboard .gh-dashboard-secondary {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .gh-content:has(.gh-ledger-dashboard) {
    padding: 24px 18px 40px !important;
  }

  .gh-dashboard.gh-ledger-dashboard {
    gap: 20px !important;
  }

  .gh-ledger-dashboard .gh-ledger-metrics,
  .gh-ledger-dashboard .gh-ledger-small-row {
    grid-template-columns: 1fr !important;
  }

  .gh-ledger-dashboard .gh-ledger-card,
  .gh-ledger-dashboard .gh-ledger-mini,
  .gh-ledger-dashboard .gh-category-card,
  .gh-ledger-dashboard .gh-progress-card {
    min-height: 0 !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini {
    grid-template-columns: 60px minmax(0, 1fr) !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini em {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .gh-ledger-dashboard .gh-bar-chart {
    margin-left: 52px !important;
    min-height: 270px !important;
    overflow-x: auto !important;
  }
}

/* Strict dashboard zone match from the reference video. */
.gh-content {
  max-width: 1540px;
  padding: 34px 48px 56px;
}

.gh-ledger-dashboard {
  gap: 26px;
}

.gh-ledger-hero {
  align-items: end;
  grid-template-columns: minmax(420px, 1fr) auto;
  min-height: 86px;
}

.gh-ledger-hero h1 {
  font-size: 34px;
  line-height: 1.05;
}

.gh-ledger-hero p {
  font-size: 16px;
  line-height: 1.45;
  margin-top: 8px;
  max-width: 760px;
}

.gh-ledger-actions {
  justify-content: flex-end;
  max-width: 790px;
}

.gh-ledger-actions .gh-btn {
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 16px;
}

.gh-ledger-metrics {
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gh-ledger-card {
  border-radius: 18px !important;
  min-height: 224px;
  padding: 26px 24px 22px;
}

.gh-ledger-card-head {
  margin-bottom: 20px;
}

.gh-ledger-card-head span {
  height: 48px;
  width: 48px;
}

.gh-ledger-card-head svg {
  height: 22px;
  width: 22px;
}

.gh-ledger-card-head strong {
  font-size: 15px;
}

.gh-ledger-card-head em {
  border-radius: 999px;
  font-size: 13px;
  max-width: 128px;
  padding: 5px 10px;
}

.gh-ledger-card h2 {
  font-size: clamp(34px, 2.4vw, 44px);
}

.gh-sparkline {
  height: 58px;
  margin-top: 18px;
}

.gh-ledger-small-row {
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gh-ledger-mini {
  border-radius: 18px;
  min-height: 132px;
  padding: 24px;
}

.gh-ledger-mini > span {
  height: 52px;
  width: 52px;
}

.gh-ledger-mini strong {
  font-size: 16px;
}

.gh-ledger-mini b {
  font-size: 28px;
}

.gh-ledger-mini em {
  font-size: 13px;
  max-width: 116px;
  padding: 5px 10px;
}

.gh-activity-card {
  min-height: 430px;
}

.gh-ledger-chart-card {
  border-radius: 18px !important;
  padding: 26px;
}

.gh-ledger-section-head {
  margin-bottom: 22px;
}

.gh-ledger-section-head h2 {
  font-size: 25px;
  font-weight: 700;
}

.gh-ledger-section-head p {
  font-size: 14px;
  max-width: 640px;
}

.gh-ledger-toggle {
  border-radius: 14px;
  padding: 5px;
}

.gh-ledger-toggle span {
  border-radius: 11px;
  font-size: 14px;
  min-width: 48px;
  padding: 8px 12px;
}

.gh-bar-chart {
  gap: clamp(22px, 3vw, 56px);
  margin-left: 70px;
  min-height: 330px;
  padding-bottom: 46px;
}

.gh-bar-chart .pair {
  min-width: 72px;
}

.gh-bar-chart b {
  max-width: 28px;
  min-width: 22px;
}

.gh-bar-chart small {
  bottom: -38px;
  font-size: 14px;
  max-width: 86px;
}

.gh-bar-chart .axis {
  font-size: 14px;
  left: -58px;
}

.gh-bar-chart > em {
  font-size: 13px;
}

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

.gh-category-card,
.gh-progress-card {
  min-height: 540px;
}

.gh-ledger-donut-wrap {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.gh-ledger-donut {
  justify-self: center;
  max-width: 300px;
  width: min(56%, 300px);
}

.gh-ledger-donut::before {
  inset: 24%;
}

.gh-ledger-donut strong {
  font-size: 24px;
}

.gh-ledger-donut span {
  font-size: 14px;
}

.gh-ledger-legend {
  gap: 8px;
}

.gh-ledger-legend span {
  border-bottom: 0;
  grid-template-columns: 12px minmax(0, 1fr) minmax(84px, auto) minmax(44px, auto);
  min-height: 34px;
}

.gh-ledger-legend span,
.gh-ledger-legend b,
.gh-ledger-legend strong {
  font-size: 15px;
}

.gh-budget-progress-list {
  gap: 26px;
  justify-content: start;
}

.gh-budget-progress-list article {
  gap: 13px;
}

.gh-budget-progress-list strong {
  font-size: 18px;
}

.gh-budget-progress-list span {
  font-size: 17px;
}

.gh-budget-progress-list b {
  height: 12px;
}

.gh-budget-progress-list em {
  font-size: 15px;
}

.gh-recent-card {
  min-height: 0;
}

.gh-recent-card .gh-ledger-section-head {
  margin-bottom: 16px;
}

.gh-ledger-table th {
  font-size: 13px;
  padding: 14px 16px;
}

.gh-ledger-table td {
  font-size: 14px;
  height: 62px;
  padding: 14px 16px;
}

@media (max-width: 1600px) {
  .gh-content {
    padding-left: 34px;
    padding-right: 34px;
  }

  .gh-ledger-card {
    min-height: 204px;
  }

  .gh-bar-chart {
    gap: clamp(16px, 2vw, 34px);
  }
}

@media (max-width: 1360px) {
  .gh-ledger-hero {
    grid-template-columns: 1fr;
  }

  .gh-ledger-actions {
    justify-content: flex-start;
  }

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

  .gh-dashboard-secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .gh-content {
    padding: 24px 22px 40px;
  }

  .gh-ledger-metrics,
  .gh-ledger-small-row {
    grid-template-columns: 1fr;
  }

  .gh-ledger-card,
  .gh-ledger-mini,
  .gh-category-card,
  .gh-progress-card {
    min-height: 0;
  }

  .gh-bar-chart {
    margin-left: 52px;
    min-height: 280px;
    overflow-x: auto;
  }

  .gh-bar-chart .pair {
    min-width: 62px;
  }

  .gh-ledger-donut {
    width: min(72%, 260px);
  }
}

/* Dashboard composition refinement: section rhythm, hierarchy, and chart balance. */
.gh-ledger-dashboard {
  display: grid;
  gap: 22px;
}

.gh-ledger-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.9fr);
  margin-bottom: 0;
}

.gh-ledger-hero h1 {
  max-width: 720px;
}

.gh-ledger-hero p {
  margin-top: 10px;
  max-width: 760px;
}

.gh-ledger-actions {
  align-content: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gh-ledger-actions .gh-btn {
  min-height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
}

.gh-ledger-metrics {
  align-items: stretch;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.gh-ledger-card {
  display: grid;
  grid-template-rows: auto minmax(42px, auto) 1fr;
  min-height: 172px;
  padding: 20px;
}

.gh-ledger-card-head {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.gh-ledger-card-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-ledger-card-head em {
  max-width: 116px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-ledger-card h2 {
  align-self: end;
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1;
  margin: 0;
}

.gh-sparkline {
  align-self: end;
  height: 44px;
  margin-top: 12px;
}

.gh-ledger-small-row {
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.gh-ledger-mini {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 16px 18px;
}

.gh-ledger-mini div {
  min-width: 0;
}

.gh-ledger-mini strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-ledger-mini b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  margin-top: 5px;
}

.gh-ledger-mini em {
  justify-self: end;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-dashboard-main,
.gh-dashboard-secondary {
  display: grid;
  gap: 18px;
}

.gh-dashboard-main {
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.75fr);
}

.gh-dashboard-secondary {
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.35fr);
}

.gh-ledger-chart-card {
  min-width: 0;
  padding: 22px;
}

.gh-activity-card,
.gh-progress-card,
.gh-category-card,
.gh-recent-card {
  display: flex;
  flex-direction: column;
}

.gh-activity-card {
  min-height: 404px;
}

.gh-progress-card {
  min-height: 404px;
}

.gh-category-card,
.gh-recent-card {
  min-height: 342px;
}

.gh-ledger-section-head {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.gh-ledger-section-head h2 {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.gh-ledger-section-head p {
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
  max-width: 560px;
}

.gh-ledger-toggle {
  flex: 0 0 auto;
}

.gh-bar-chart {
  flex: 1;
  gap: clamp(12px, 1.4vw, 24px);
  height: auto;
  min-height: 300px;
  padding: 20px 8px 36px 0;
}

.gh-bar-chart .pair {
  min-width: 52px;
}

.gh-bar-chart b {
  max-width: 20px;
  min-width: 14px;
}

.gh-bar-chart small {
  bottom: -31px;
  font-size: 11px;
  line-height: 1.15;
  max-width: 58px;
  white-space: normal;
}

.gh-budget-progress-list {
  flex: 1;
  justify-content: space-between;
}

.gh-budget-progress-list article {
  gap: 10px;
}

.gh-budget-progress-list strong {
  font-size: 15px;
}

.gh-budget-progress-list span {
  font-size: 14px;
}

.gh-budget-progress-list em {
  font-size: 12px;
}

.gh-ledger-donut-wrap {
  align-items: center;
  flex: 1;
  gap: 20px;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
}

.gh-ledger-donut {
  width: min(100%, 220px);
}

.gh-ledger-legend {
  align-content: center;
  gap: 9px;
}

.gh-ledger-legend span {
  align-items: center;
  border-bottom: 1px solid rgba(15, 143, 74, 0.08);
  gap: 9px;
  grid-template-columns: 10px minmax(112px, 1fr) minmax(62px, auto) minmax(30px, auto);
  min-height: 32px;
  padding: 4px 0;
}

.gh-ledger-legend span:last-child {
  border-bottom: 0;
}

.gh-ledger-legend b,
.gh-ledger-legend strong {
  font-size: 12px;
}

.gh-recent-card .gh-table-responsive {
  flex: 1;
}

.gh-ledger-table {
  table-layout: fixed;
}

.gh-ledger-table th:nth-child(1),
.gh-ledger-table td:nth-child(1) {
  width: 82px;
}

.gh-ledger-table th:nth-child(3),
.gh-ledger-table td:nth-child(3) {
  width: 140px;
}

.gh-ledger-table th:nth-child(4),
.gh-ledger-table td:nth-child(4) {
  width: 126px;
}

.gh-ledger-table th:nth-child(5),
.gh-ledger-table td:nth-child(5) {
  width: 122px;
}

.gh-ledger-table td {
  height: 58px;
}

.gh-ledger-table td:nth-child(2) {
  align-items: center;
  gap: 0 11px;
}

.gh-ledger-table td:nth-child(2) strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-ledger-table small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .gh-ledger-hero {
    grid-template-columns: 1fr;
  }

  .gh-ledger-actions {
    justify-content: flex-start;
  }

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

  .gh-dashboard-main,
  .gh-dashboard-secondary {
    grid-template-columns: 1fr;
  }

  .gh-category-card,
  .gh-recent-card {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .gh-ledger-small-row {
    grid-template-columns: 1fr;
  }

  .gh-ledger-donut-wrap {
    grid-template-columns: 1fr;
  }

  .gh-ledger-donut {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .gh-ledger-dashboard {
    gap: 16px;
  }

  .gh-ledger-metrics {
    grid-template-columns: 1fr;
  }

  .gh-ledger-card,
  .gh-ledger-mini {
    min-height: 0;
  }

  .gh-ledger-mini {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gh-ledger-mini em {
    grid-column: 2;
    justify-self: start;
  }

  .gh-bar-chart {
    min-height: 260px;
  }

  .gh-ledger-table {
    min-width: 760px;
  }
}

/* Final polish pass: compact, balanced national budget application shell. */
:root {
  --polish-bg: #f6faf7;
  --polish-card: #ffffff;
  --polish-ink: #15231d;
  --polish-muted: #6f7f76;
  --polish-border: #dfe8e2;
  --polish-green: #10884d;
  --polish-green-soft: #e8f6ee;
  --polish-pink: #d76aba;
  --polish-blue: #2f79c9;
  --polish-gold: #f2ad2f;
  --polish-red: #d84a4a;
  --polish-radius: 18px;
  --polish-shadow: 0 16px 38px rgba(25, 45, 36, 0.08);
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 78% 4%, rgba(16, 136, 77, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfdfb 0%, var(--polish-bg) 100%);
  color: var(--polish-ink);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 78% 4%, rgba(63, 188, 125, 0.12), transparent 28%),
    linear-gradient(180deg, #0f1713 0%, #111c17 100%);
}

.gh-shell {
  grid-template-columns: 304px minmax(0, 1fr);
}

.gh-sidebar {
  background: #fbfdfb;
  border-right: 1px solid var(--polish-border);
  box-shadow: none;
  padding: 28px 18px 22px;
}

[data-theme="dark"] .gh-sidebar {
  background: #121d18;
  border-color: rgba(255, 255, 255, 0.08);
}

.gh-brand {
  align-items: center;
  color: var(--polish-ink);
  display: flex;
  gap: 13px;
  margin: 2px 8px 28px;
  min-height: 50px;
  text-decoration: none;
}

.gh-brand::after,
.gh-map-mark,
.gh-check,
.gh-brand-text {
  display: none !important;
}

.gh-brand-icon {
  align-items: center;
  background: linear-gradient(145deg, #139756 0%, #0b6d3c 100%);
  border-radius: 15px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 50px;
  font-size: 27px;
  font-weight: 800;
  height: 50px;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(16, 136, 77, 0.22);
}

.gh-brand-name {
  color: var(--polish-ink);
  font-size: 27px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

[data-theme="dark"] .gh-brand-name {
  color: #edf6f0;
}

.gh-sidebar-heading,
.gh-nav-other {
  color: var(--polish-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 18px 12px 9px;
  text-transform: uppercase;
}

.gh-nav {
  gap: 4px;
  padding: 0;
}

.gh-nav a {
  border-radius: 13px;
  color: #4a5b52;
  font-size: 14px;
  font-weight: 620;
  gap: 12px;
  min-height: 40px;
  padding: 9px 12px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gh-nav a svg {
  height: 18px;
  stroke-width: 2.15;
  width: 18px;
}

.gh-nav a:hover {
  background: #edf6f1;
  color: #0c6b3d;
  transform: translateX(2px);
}

.gh-nav a.active {
  background: var(--polish-green-soft);
  box-shadow: inset 4px 0 0 var(--polish-green);
  color: var(--polish-green);
}

[data-theme="dark"] .gh-nav a {
  color: #bdd0c4;
}

[data-theme="dark"] .gh-nav a:hover,
[data-theme="dark"] .gh-nav a.active {
  background: rgba(63, 188, 125, 0.14);
  color: #87e2ad;
}

.gh-topbar {
  background: rgba(251, 253, 251, 0.9);
  border-bottom: 1px solid var(--polish-border);
  box-shadow: none;
  min-height: 84px;
  padding: 18px 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}

[data-theme="dark"] .gh-topbar {
  background: rgba(16, 26, 21, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.gh-ministry strong {
  color: var(--polish-ink);
  font-size: 27px;
  font-weight: 760;
  letter-spacing: 0;
}

[data-theme="dark"] .gh-ministry strong {
  color: #f2f8f4;
}

.gh-topbar-actions {
  gap: 13px;
}

.gh-top-search {
  background: var(--polish-card);
  border: 1px solid var(--polish-border);
  border-radius: 999px;
  box-shadow: none;
  height: 48px;
  min-width: min(380px, 36vw);
  padding: 0 13px 0 16px;
}

.gh-top-search svg {
  color: #8fa096;
  height: 18px;
  width: 18px;
}

.gh-top-search input {
  color: var(--polish-ink);
  font-size: 14px;
  font-weight: 500;
}

.gh-top-search span {
  background: #f0f5f2;
  border: 1px solid #dce7e0;
  border-radius: 999px;
  color: #7a8a82;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}

.gh-icon-btn,
.gh-action-btn,
.btn {
  border-radius: 12px;
  font-weight: 690;
  letter-spacing: 0;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.gh-icon-btn:hover,
.gh-action-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.gh-avatar {
  background: linear-gradient(145deg, #f1c557, #d76aba);
  border: 2px solid #ffffff;
  box-shadow: 0 10px 20px rgba(25, 45, 36, 0.1);
  height: 48px;
  width: 48px;
}

.gh-content {
  max-width: 1720px;
  padding: 30px 34px 46px;
}

.gh-ledger-hero {
  align-items: center;
  margin-bottom: 24px;
}

.gh-ledger-hero h1 {
  color: var(--polish-ink);
  font-size: clamp(30px, 2.3vw, 42px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.08;
}

.gh-ledger-hero p {
  color: var(--polish-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 680px;
}

.gh-ledger-actions {
  gap: 10px;
}

.gh-ledger-metrics {
  gap: 18px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-bottom: 20px;
}

.gh-ledger-card,
.gh-table-card,
.gh-panel,
.gh-side-card,
.gh-stat-card,
.metric-card,
.card,
.gh-filter-bar,
.gh-version-filters {
  background: var(--polish-card);
  border: 1px solid var(--polish-border);
  border-radius: var(--polish-radius) !important;
  box-shadow: var(--polish-shadow) !important;
}

.gh-ledger-card {
  min-height: 186px;
  padding: 22px;
}

.gh-ledger-card h2 {
  color: var(--polish-ink);
  font-size: 32px;
  font-weight: 780;
  letter-spacing: 0;
}

.gh-ledger-card p,
.gh-ledger-card small,
.gh-side-card p,
.gh-panel p {
  color: var(--polish-muted);
}

.ledger-icon {
  border-radius: 15px;
  height: 46px;
  width: 46px;
}

.ledger-card-head {
  gap: 13px;
  margin-bottom: 18px;
}

.ledger-card-head strong {
  font-size: 14px;
  font-weight: 720;
}

.ledger-card-head span,
.ledger-card-foot {
  font-size: 13px;
}

.gh-ledger-spark svg {
  height: 58px;
}

.gh-ledger-small-row {
  gap: 18px;
  margin-bottom: 20px;
}

.gh-ledger-mini {
  border-radius: 16px;
  min-height: 100px;
  padding: 18px 20px;
}

.gh-ledger-mini strong {
  font-size: 23px;
  font-weight: 780;
}

.gh-ledger-mini span {
  font-size: 13px;
}

.gh-ledger-two-col {
  gap: 20px;
}

.gh-ledger-chart-card,
.gh-ledger-budget-card,
.gh-ledger-table-card {
  padding: 22px;
}

.gh-ledger-section-head {
  margin-bottom: 18px;
}

.gh-ledger-section-head h2 {
  color: var(--polish-ink);
  font-size: 21px;
  font-weight: 760;
}

.gh-ledger-section-head p {
  color: var(--polish-muted);
  font-size: 14px;
}

.gh-bar-chart {
  gap: 15px;
  height: 300px;
  margin-left: 62px;
}

.gh-bar-chart::before {
  color: #91a096;
  font-size: 12px;
}

.bar-group {
  gap: 7px;
}

.bar {
  border-radius: 999px 999px 7px 7px;
  min-width: 15px;
}

.bar-label {
  color: #6f7f76;
  font-size: 12px;
}

.gh-ledger-donut {
  max-width: 225px;
}

.gh-ledger-donut::before {
  inset: 25%;
}

.gh-ledger-donut::after {
  font-size: 24px;
  font-weight: 780;
}

.gh-ledger-donut-wrap {
  gap: 20px;
}

.gh-ledger-legend {
  gap: 12px;
}

.gh-ledger-legend span,
.gh-ledger-legend strong,
.gh-ledger-legend b {
  font-size: 14px;
}

.gh-budget-progress-list {
  gap: 18px;
}

.gh-budget-progress-list strong,
.gh-budget-progress-list span {
  font-size: 17px;
}

.gh-budget-progress-list em {
  font-size: 13px;
}

.gh-budget-progress-list b {
  height: 9px;
}

.table-responsive,
.gh-table-card {
  overflow: hidden;
}

.gh-ledger-table th,
.gh-data-table th,
.gh-compact-table th,
.table th {
  background: #f7faf8;
  color: #53645b;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  padding: 13px 14px;
  text-transform: none;
}

.gh-ledger-table td,
.gh-data-table td,
.gh-compact-table td,
.table td {
  border-color: var(--polish-border);
  color: var(--polish-ink);
  font-size: 14px;
  padding: 14px;
}

.gh-ledger-table td:nth-child(2) {
  grid-template-columns: 40px minmax(0, 1fr);
}

.txn-icon {
  border-radius: 12px;
  height: 40px;
  width: 40px;
}

.ledger-status,
.gh-status,
.badge {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  padding: 5px 9px;
}

.gh-toast,
.gh-notification-panel article {
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(25, 45, 36, 0.12);
}

.gh-alert-stack {
  gap: 10px;
  right: 24px;
  top: 100px;
}

.form-control,
.form-select,
input,
select,
textarea {
  border-radius: 12px;
  box-shadow: none !important;
  min-height: 42px;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(16, 136, 77, 0.55);
  box-shadow: 0 0 0 4px rgba(16, 136, 77, 0.1) !important;
}

[data-theme="dark"] .gh-ledger-card,
[data-theme="dark"] .gh-table-card,
[data-theme="dark"] .gh-panel,
[data-theme="dark"] .gh-side-card,
[data-theme="dark"] .gh-stat-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .card,
[data-theme="dark"] .gh-filter-bar,
[data-theme="dark"] .gh-version-filters,
[data-theme="dark"] .gh-top-search {
  background: #16231d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22) !important;
}

[data-theme="dark"] .gh-ledger-hero h1,
[data-theme="dark"] .gh-ledger-card h2,
[data-theme="dark"] .gh-ledger-section-head h2,
[data-theme="dark"] .gh-ledger-table td,
[data-theme="dark"] .gh-data-table td,
[data-theme="dark"] .gh-compact-table td,
[data-theme="dark"] .table td {
  color: #edf6f0;
}

[data-theme="dark"] .gh-ledger-table th,
[data-theme="dark"] .gh-data-table th,
[data-theme="dark"] .gh-compact-table th,
[data-theme="dark"] .table th {
  background: #132019;
  color: #9eb5a8;
}

[data-theme="dark"] .gh-top-search span {
  background: #1e3027;
  border-color: rgba(255, 255, 255, 0.08);
  color: #a8b9b0;
}

@media (max-width: 1500px) {
  .gh-shell {
    grid-template-columns: 286px minmax(0, 1fr);
  }

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

@media (max-width: 1100px) {
  .gh-shell {
    grid-template-columns: 1fr;
  }

  .gh-sidebar {
    padding: 22px;
  }

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

  .gh-topbar {
    padding: 16px 22px;
  }

  .gh-content {
    padding: 24px 22px 36px;
  }

  .gh-ledger-hero,
  .gh-topbar-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .gh-top-search {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .gh-nav,
  .gh-ledger-metrics,
  .gh-ledger-two-col,
  .gh-ledger-donut-wrap {
    grid-template-columns: 1fr;
  }

  .gh-brand-name {
    font-size: 23px;
  }

  .gh-ledger-card {
    min-height: 170px;
  }

  .gh-bar-chart {
    height: 250px;
    margin-left: 46px;
    overflow-x: auto;
  }
}

/* TRUE EOF dashboard lock: this must remain after all responsive polish layers. */
@media (min-width: 1201px) {
  .gh-shell {
    grid-template-columns: 304px minmax(0, 1fr) !important;
  }

  .gh-topbar {
    min-height: 96px !important;
    padding: 22px 34px !important;
  }

  .gh-ministry strong {
    font-size: 27px !important;
  }

  .gh-top-search {
    height: 56px !important;
    min-width: 384px !important;
  }

  .gh-content:has(.gh-ledger-dashboard) {
    max-width: 1410px !important;
    padding: 44px 42px 58px !important;
  }

  .gh-dashboard.gh-ledger-dashboard {
    display: grid !important;
    gap: 34px !important;
  }

  .gh-ledger-dashboard .gh-ledger-hero {
    align-items: end !important;
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: minmax(390px, 1fr) minmax(560px, auto) !important;
    margin: 0 !important;
    min-height: 70px !important;
  }

  .gh-ledger-dashboard .gh-ledger-actions {
    justify-content: flex-end !important;
  }

  .gh-ledger-dashboard .gh-ledger-hero h1 {
    font-size: 32px !important;
    font-weight: 760 !important;
    line-height: 1.05 !important;
  }

  .gh-ledger-dashboard .gh-ledger-hero p {
    font-size: 15px !important;
    line-height: 1.42 !important;
    max-width: 740px !important;
  }

  .gh-ledger-dashboard .gh-ledger-actions .gh-btn {
    font-size: 14px !important;
    min-height: 40px !important;
    padding: 8px 13px !important;
  }

  .gh-ledger-dashboard .gh-ledger-metrics {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin: 0 !important;
  }

  .gh-ledger-dashboard .gh-ledger-card {
    min-height: 238px !important;
    padding: 30px 24px 24px !important;
  }

  .gh-ledger-dashboard .gh-ledger-card-head {
    gap: 14px !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    margin-bottom: 24px !important;
  }

  .gh-ledger-dashboard .gh-ledger-card-head span {
    height: 46px !important;
    width: 46px !important;
  }

  .gh-ledger-dashboard .gh-ledger-card-head strong {
    font-size: 16px !important;
    font-weight: 620 !important;
  }

  .gh-ledger-dashboard .gh-ledger-card-head em {
    font-size: 13px !important;
    max-width: 120px !important;
    padding: 5px 10px !important;
  }

  .gh-ledger-dashboard .gh-ledger-card h2 {
    font-size: clamp(32px, 2.1vw, 40px) !important;
    font-weight: 760 !important;
  }

  .gh-ledger-dashboard .gh-sparkline {
    height: 50px !important;
    margin-top: 22px !important;
  }

  .gh-ledger-dashboard .gh-ledger-small-row {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 0 !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini {
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    min-height: 126px !important;
    padding: 24px !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini > span {
    height: 56px !important;
    width: 56px !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini strong {
    font-size: 16px !important;
    font-weight: 620 !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini b {
    font-size: 26px !important;
    font-weight: 760 !important;
  }

  .gh-ledger-dashboard .gh-ledger-mini em {
    font-size: 13px !important;
    padding: 5px 10px !important;
  }

  .gh-ledger-dashboard .gh-activity-card {
    min-height: 386px !important;
    padding: 26px 24px 28px !important;
  }

  .gh-ledger-dashboard .gh-ledger-section-head {
    margin-bottom: 22px !important;
  }

  .gh-ledger-dashboard .gh-ledger-section-head h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
  }

  .gh-ledger-dashboard .gh-ledger-section-head p {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-top: 7px !important;
  }

  .gh-ledger-dashboard .gh-bar-chart {
    gap: clamp(18px, 2.7vw, 46px) !important;
    margin-left: 64px !important;
    min-height: 272px !important;
    padding-bottom: 42px !important;
  }

  .gh-ledger-dashboard .gh-bar-chart .pair {
    min-width: 66px !important;
  }

  .gh-ledger-dashboard .gh-bar-chart b {
    max-width: 28px !important;
    min-width: 22px !important;
  }

  .gh-ledger-dashboard .gh-bar-chart small {
    bottom: -38px !important;
    font-size: 14px !important;
    max-width: 84px !important;
  }

  .gh-ledger-dashboard .gh-dashboard-secondary {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gh-ledger-dashboard .gh-category-card,
  .gh-ledger-dashboard .gh-progress-card {
    min-height: 468px !important;
    padding: 26px 24px !important;
  }

  .gh-ledger-dashboard .gh-ledger-donut-wrap {
    gap: 26px !important;
  }

  .gh-ledger-dashboard .gh-ledger-donut {
    max-width: 252px !important;
    width: min(52%, 252px) !important;
  }

  .gh-ledger-dashboard .gh-ledger-legend {
    gap: 8px !important;
  }

  .gh-ledger-dashboard .gh-ledger-legend span {
    min-height: 34px !important;
  }

  .gh-ledger-dashboard .gh-budget-progress-list {
    gap: 20px !important;
  }

  .gh-ledger-dashboard .gh-budget-progress-list strong,
  .gh-ledger-dashboard .gh-budget-progress-list span {
    font-size: 16px !important;
  }

  .gh-ledger-dashboard .gh-budget-progress-list b {
    height: 12px !important;
  }

  .gh-ledger-dashboard .gh-recent-card {
    padding: 26px !important;
  }

  .gh-ledger-dashboard .gh-ledger-table td {
    height: 60px !important;
  }
}

@media (max-width: 1200px) {
  .gh-ledger-dashboard .gh-ledger-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gh-ledger-dashboard .gh-dashboard-secondary,
  .gh-ledger-dashboard .gh-ledger-hero {
    grid-template-columns: 1fr !important;
  }

  .gh-ledger-dashboard .gh-ledger-actions {
    justify-content: flex-start !important;
  }
}

/* Application-wide polish layer: carry the dashboard feel into every module. */
:root {
  --app-bg: #f6faf7;
  --app-card: #ffffff;
  --app-ink: #12201a;
  --app-muted: #6f8077;
  --app-line: #dfe8e2;
  --app-line-soft: #edf3ef;
  --app-green: #10884d;
  --app-green-dark: #0b6d3c;
  --app-green-soft: #e8f6ee;
  --app-pink: #d76aba;
  --app-red: #d84a4a;
  --app-gold: #e3a626;
  --app-blue: #2f79c9;
  --app-radius: 18px;
  --app-radius-sm: 12px;
  --app-shadow: 0 16px 38px rgba(25, 45, 36, 0.075);
}

body {
  background:
    radial-gradient(circle at 75% 0%, rgba(16, 136, 77, 0.055), transparent 28%),
    linear-gradient(180deg, #fbfdfb 0%, var(--app-bg) 100%) !important;
}

.gh-workspace {
  background: transparent;
}

.gh-content:not(:has(.gh-ledger-dashboard)) {
  max-width: 1480px;
  padding: 36px 42px 56px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) > .d-flex:first-child,
.gh-content:not(:has(.gh-ledger-dashboard)) > .mb-4:first-child,
.gh-content:not(:has(.gh-ledger-dashboard)) > .gh-page-head:first-child {
  align-items: flex-end !important;
  border-bottom: 1px solid rgba(223, 232, 226, 0.7);
  gap: 18px !important;
  margin-bottom: 24px !important;
  padding-bottom: 18px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) h1,
.gh-content:not(:has(.gh-ledger-dashboard)) .h3 {
  color: var(--app-ink);
  font-size: clamp(28px, 2vw, 34px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.08;
}

.gh-content:not(:has(.gh-ledger-dashboard)) h2,
.gh-content:not(:has(.gh-ledger-dashboard)) .h5 {
  color: var(--app-ink);
  font-weight: 720;
  letter-spacing: 0;
}

.gh-content:not(:has(.gh-ledger-dashboard)) p,
.gh-content:not(:has(.gh-ledger-dashboard)) .text-muted,
.gh-content:not(:has(.gh-ledger-dashboard)) .form-text,
.gh-content:not(:has(.gh-ledger-dashboard)) small,
.gh-content:not(:has(.gh-ledger-dashboard)) .small {
  color: var(--app-muted) !important;
}

.metric-card,
.card,
.gh-panel,
.gh-table-card,
.gh-side-card,
.gh-stat-card,
.gh-filter-bar,
.gh-version-filters {
  background: var(--app-card) !important;
  border: 1px solid var(--app-line) !important;
  border-radius: var(--app-radius) !important;
  box-shadow: var(--app-shadow) !important;
  color: var(--app-ink);
}

.metric-card {
  padding: 22px;
}

.metric-card.p-0,
.card.p-0 {
  overflow: hidden;
}

.metric-label,
.metric-card > span:first-child {
  color: var(--app-muted);
  display: block;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: none;
}

.metric-card > strong,
.metric-card .metric-value {
  color: var(--app-ink);
  display: block;
  font-size: clamp(24px, 1.8vw, 34px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.12;
}

.row.g-3,
.row.g-4 {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

.card-header,
.card-footer {
  background: #f8fbf9 !important;
  border-color: var(--app-line) !important;
  padding: 16px 20px;
}

.card-body {
  padding: 22px;
}

.table-responsive {
  border-radius: inherit;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: #f6fbf8;
  color: var(--app-ink);
  margin-bottom: 0;
}

.table thead th,
.gh-data-table th,
.gh-compact-table th {
  background: #f8fbf9 !important;
  border-bottom: 1px solid var(--app-line) !important;
  color: #53645b !important;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  padding: 14px 16px;
  text-transform: none;
  vertical-align: middle;
}

.table tbody td,
.gh-data-table td,
.gh-compact-table td {
  border-color: var(--app-line-soft) !important;
  color: var(--app-ink);
  font-size: 14px;
  padding: 15px 16px;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table strong,
.fw-semibold {
  color: var(--app-ink);
  font-weight: 720 !important;
}

.btn,
.gh-btn,
.gh-action-btn {
  align-items: center;
  border-radius: var(--app-radius-sm) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 690;
  gap: 8px;
  letter-spacing: 0;
  min-height: 40px;
  padding: 9px 14px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover,
.gh-btn:hover,
.gh-action-btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.gh-btn-primary {
  background: var(--app-green) !important;
  border-color: var(--app-green) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(16, 136, 77, 0.18);
}

.btn-primary:hover,
.gh-btn-primary:hover {
  background: var(--app-green-dark) !important;
  border-color: var(--app-green-dark) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.gh-btn-outline {
  background: #ffffff !important;
  border-color: var(--app-line) !important;
  color: var(--app-ink) !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.gh-btn-outline:hover {
  background: var(--app-green-soft) !important;
  border-color: rgba(16, 136, 77, 0.25) !important;
  color: var(--app-green-dark) !important;
}

.btn-sm {
  border-radius: 10px !important;
  font-size: 13px;
  min-height: 34px;
  padding: 6px 11px;
}

.btn-group {
  gap: 8px;
}

.btn-group > .btn {
  border-radius: var(--app-radius-sm) !important;
}

.form-control,
.form-select,
textarea,
input,
select {
  background: #ffffff !important;
  border: 1px solid var(--app-line) !important;
  border-radius: var(--app-radius-sm) !important;
  color: var(--app-ink) !important;
  font-size: 14px;
  min-height: 42px;
}

textarea.form-control,
textarea {
  min-height: 118px;
}

.form-label {
  color: #4b5d54;
  font-size: 13px;
  font-weight: 720;
  margin-bottom: 7px;
}

.input-group {
  gap: 10px;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > .btn {
  border-radius: var(--app-radius-sm) !important;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--app-green-dark);
  font-weight: 650;
  text-decoration: none;
}

.badge,
.gh-status {
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  padding: 5px 9px;
}

.text-bg-success,
.badge.bg-success {
  background: #dff7e8 !important;
  color: #08713e !important;
}

.text-bg-warning,
.badge.bg-warning {
  background: #fff3d4 !important;
  color: #9f6b08 !important;
}

.text-bg-danger,
.badge.bg-danger {
  background: #fde4e4 !important;
  color: #b42323 !important;
}

.text-bg-info,
.badge.bg-info {
  background: #e6f1ff !important;
  color: #215a9f !important;
}

.text-bg-light,
.badge.bg-light,
.text-bg-secondary,
.badge.bg-secondary {
  background: #eef5f1 !important;
  color: #51635a !important;
}

.alert {
  border: 1px solid var(--app-line) !important;
  border-radius: var(--app-radius) !important;
  box-shadow: 0 10px 22px rgba(25, 45, 36, 0.06);
}

.list-group,
.list-group-item {
  background: transparent !important;
  border-color: var(--app-line-soft) !important;
}

.list-group-item {
  padding: 15px 18px;
}

.pagination .page-link {
  border-color: var(--app-line);
  border-radius: 10px;
  color: var(--app-ink);
  margin: 0 3px;
}

.pagination .active .page-link,
.page-item.active .page-link {
  background: var(--app-green);
  border-color: var(--app-green);
}

.gh-content:not(:has(.gh-ledger-dashboard)) .row + .metric-card,
.gh-content:not(:has(.gh-ledger-dashboard)) .metric-card + .metric-card,
.gh-content:not(:has(.gh-ledger-dashboard)) .card + .card,
.gh-content:not(:has(.gh-ledger-dashboard)) .metric-card + .card,
.gh-content:not(:has(.gh-ledger-dashboard)) .card + .metric-card {
  margin-top: 18px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) form.card,
.gh-content:not(:has(.gh-ledger-dashboard)) form.metric-card {
  padding: 0;
}

.gh-content:not(:has(.gh-ledger-dashboard)) form.card > .card-body,
.gh-content:not(:has(.gh-ledger-dashboard)) form.metric-card > .card-body {
  padding: 24px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) form p {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) form p label {
  color: #4b5d54;
  font-size: 13px;
  font-weight: 720;
}

.gh-content:not(:has(.gh-ledger-dashboard)) [class*="col-"] > .metric-card.h-100,
.gh-content:not(:has(.gh-ledger-dashboard)) [class*="col-"] > .card.h-100 {
  display: flex;
  flex-direction: column;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .py-5.text-muted,
.gh-content:not(:has(.gh-ledger-dashboard)) td.text-center.text-muted {
  color: var(--app-muted) !important;
  font-size: 14px;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 75% 0%, rgba(63, 188, 125, 0.12), transparent 28%),
    linear-gradient(180deg, #0f1713 0%, #111c17 100%) !important;
}

[data-theme="dark"] .metric-card,
[data-theme="dark"] .card,
[data-theme="dark"] .gh-panel,
[data-theme="dark"] .gh-table-card,
[data-theme="dark"] .gh-side-card,
[data-theme="dark"] .gh-stat-card,
[data-theme="dark"] .gh-filter-bar,
[data-theme="dark"] .gh-version-filters {
  background: #16231d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22) !important;
  color: #edf6f0;
}

[data-theme="dark"] .gh-content:not(:has(.gh-ledger-dashboard)) h1,
[data-theme="dark"] .gh-content:not(:has(.gh-ledger-dashboard)) .h3,
[data-theme="dark"] .gh-content:not(:has(.gh-ledger-dashboard)) h2,
[data-theme="dark"] .metric-card > strong,
[data-theme="dark"] .table strong,
[data-theme="dark"] .fw-semibold,
[data-theme="dark"] .table tbody td {
  color: #edf6f0 !important;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .table thead th {
  background: #132019 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #9eb5a8 !important;
}

[data-theme="dark"] .table tbody td,
[data-theme="dark"] .list-group-item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-outline-secondary,
[data-theme="dark"] .gh-btn-outline {
  background: #16231d !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #edf6f0 !important;
}

@media (max-width: 1100px) {
  .gh-content:not(:has(.gh-ledger-dashboard)) {
    padding: 26px 22px 42px;
  }

  .gh-content:not(:has(.gh-ledger-dashboard)) > .d-flex:first-child,
  .gh-content:not(:has(.gh-ledger-dashboard)) > .mb-4:first-child,
  .gh-content:not(:has(.gh-ledger-dashboard)) > .gh-page-head:first-child {
    align-items: flex-start !important;
    flex-direction: column;
  }
}

/* Broad cleanup pass: tidy legacy utilities, dense screens, auth, and raw template fragments. */
body.bg-light {
  background:
    radial-gradient(circle at 50% -10%, rgba(16, 136, 77, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfdfb 0%, #f6faf7 100%) !important;
}

body.bg-light main.container {
  min-height: 100vh;
  align-items: center;
  display: flex;
}

body.bg-light main.container > .row {
  width: 100%;
}

body.bg-light .card {
  border: 1px solid var(--app-line) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(25, 45, 36, 0.11) !important;
}

body.bg-light h1 {
  color: var(--app-ink);
  font-weight: 760;
  letter-spacing: 0;
}

/* GBMIS authentication */
body.gbmis-login {
  min-height: 100vh;
  margin: 0;
  background: #f3f7ff;
  color: #071a33;
  font-family: "Poppins", "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.gbmis-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  background: #f7faff;
  overflow-x: hidden;
}

.gbmis-login-visual {
  position: relative;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.gbmis-login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.gbmis-login-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(5, 24, 62, 0.95) 0%, rgba(13, 86, 179, 0.78) 48%, rgba(5, 24, 62, 0.42) 100%),
    radial-gradient(circle at 18% 20%, rgba(96, 165, 250, 0.34), transparent 31%),
    radial-gradient(circle at 84% 74%, rgba(255, 211, 64, 0.16), transparent 28%);
}

.gbmis-login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 86%);
}

.gbmis-login-visual-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 64px);
  color: #fff;
}

.gbmis-login-ministry {
  position: relative;
  display: inline-grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(100%, 560px);
  max-width: 100%;
  padding: 16px 20px 16px 18px;
  border: 1px solid rgba(219, 234, 254, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(8, 35, 85, 0.58);
  box-shadow: 0 24px 60px rgba(4, 21, 55, 0.32);
  backdrop-filter: blur(18px) saturate(1.16);
}

.gbmis-login-ministry::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #facc15, #22c55e);
}

.gbmis-login-mini-logo {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(0, 0, 0, 0.12);
}

.gbmis-login-mini-logo img {
  width: 92px;
  height: auto;
  object-fit: contain;
}

.gbmis-login-identity-text {
  min-width: 0;
}

.gbmis-login-ministry span,
.gbmis-login-copy p,
.gbmis-login-brand span,
.gbmis-login-row {
  letter-spacing: 0;
  font-family: inherit;
}

.gbmis-login-ministry span {
  display: block;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.gbmis-login-ministry strong {
  display: block;
  color: #fff;
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.gbmis-login-ministry em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.gbmis-login-ministry em i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.gbmis-login-copy {
  max-width: 680px;
}

.gbmis-login-copy p {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.18);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.gbmis-login-copy h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.gbmis-login-copy span {
  display: block;
  max-width: 560px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.gbmis-login-visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 640px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 760;
}

.gbmis-login-visual-footer strong {
  color: #fff;
  font-weight: 880;
}

.gbmis-login-panel {
  min-height: 100vh;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 58px);
  background:
    radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at 6% 92%, rgba(14, 165, 233, 0.1), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.gbmis-login-card {
  width: min(100%, 462px);
  max-width: 100%;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(15, 47, 99, 0.16);
  animation: gbmisLoginIn 420ms ease both;
}

.gbmis-login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  min-width: 0;
}

.gbmis-login-brand > div:last-child {
  min-width: 0;
}

.gbmis-logo-frame {
  display: grid;
  place-items: center;
  width: 128px;
  height: 62px;
  overflow: hidden;
  border: 1px solid #dfebfb;
  border-radius: 12px;
  background: #fff;
}

.gbmis-logo-frame img {
  width: 108px;
  max-width: 100%;
  height: auto;
}

.gbmis-login-brand span {
  display: block;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.gbmis-login-brand strong {
  display: block;
  margin-top: 3px;
  color: #071a33;
  font-size: 25px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.gbmis-login-alerts .alert,
.gbmis-login-card > .alert {
  border-radius: 10px;
  font-size: 14px;
}

.gbmis-login-form {
  display: grid;
  gap: 17px;
}

.gbmis-field label {
  display: block;
  margin-bottom: 8px;
  color: #243953;
  font-size: 13px;
  font-weight: 850;
}

.gbmis-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbdaf0;
  border-radius: 10px;
  background: #fbfdff;
  color: #071a33;
  font-size: 15px;
  font-weight: 650;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gbmis-field input::placeholder {
  color: #8899b2;
  font-weight: 600;
}

.gbmis-field input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.gbmis-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #63748c;
  font-size: 12px;
  font-weight: 760;
}

.gbmis-login-row span:last-child {
  color: #1d4ed8;
}

.gbmis-security-note {
  margin: -3px 0 0;
  padding: 12px 14px;
  border: 1px solid #dce8fa;
  border-radius: 10px;
  background: #f5f9ff;
  color: #53677f;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
}

.gbmis-login-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #0f4eb8 52%, #0b3b82 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.gbmis-login-submit:hover,
.gbmis-login-submit:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.34);
}

.gbmis-login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dfebfb;
  color: #64758d;
  font-size: 12px;
  font-weight: 760;
}

@keyframes gbmisLoginIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .gbmis-login-shell {
    grid-template-columns: 1fr;
  }

  .gbmis-login-visual,
  .gbmis-login-visual-content,
  .gbmis-login-panel {
    min-height: auto;
  }

  .gbmis-login-visual-content {
    min-height: clamp(360px, 48vh, 520px);
    gap: 44px;
    padding: 28px;
  }

  .gbmis-login-copy h1 {
    font-size: clamp(34px, 7vw, 48px);
  }

  .gbmis-login-panel {
    min-height: auto;
    padding: 24px;
  }

  .gbmis-login-card {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .gbmis-login-brand,
  .gbmis-login-row,
  .gbmis-login-visual-footer,
  .gbmis-login-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .gbmis-login-copy span {
    font-size: 15px;
  }

  .gbmis-login-visual-content {
    min-height: 360px;
    gap: 28px;
    padding: 20px;
  }

  .gbmis-login-copy p {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .gbmis-login-copy h1 {
    font-size: 29px;
    line-height: 1.08;
  }

  .gbmis-login-visual-footer {
    display: none;
  }

  .gbmis-login-panel {
    padding: 16px;
  }

  .gbmis-login-card {
    width: 100%;
    padding: 22px;
    border-radius: 12px;
  }

  .gbmis-login-ministry {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    padding: 13px 14px 13px 16px;
    border-radius: 14px;
  }

  .gbmis-login-mini-logo {
    height: 54px;
    border-radius: 11px;
  }

  .gbmis-login-mini-logo img {
    width: 74px;
  }

  .gbmis-login-ministry strong {
    font-size: 18px;
  }

  .gbmis-login-ministry em {
    display: none;
  }

  .gbmis-logo-frame {
    width: 118px;
    height: 58px;
  }

  .gbmis-login-brand strong {
    font-size: 21px;
  }
}

.gh-content:not(:has(.gh-ledger-dashboard)) > .row.justify-content-center {
  min-height: calc(100vh - 220px);
  align-items: center;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .h4,
.metric-card .h4,
.card .h4 {
  color: var(--app-ink);
  font-size: clamp(22px, 1.5vw, 28px);
  font-weight: 740;
  letter-spacing: 0;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .h5,
.metric-card h2.h5,
.card h2.h5 {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .mb-4 {
  margin-bottom: 1.35rem !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .mb-3 {
  margin-bottom: 1rem !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .gap-1 {
  gap: 0.45rem !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .gap-2 {
  gap: 0.65rem !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .gap-3 {
  gap: 1rem !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .border.rounded,
.gh-content:not(:has(.gh-ledger-dashboard)) .border.rounded-2,
.gh-content:not(:has(.gh-ledger-dashboard)) .border.rounded-3 {
  background: #f8fbf9 !important;
  border: 1px solid var(--app-line) !important;
  border-radius: 14px !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .border.rounded.p-2,
.gh-content:not(:has(.gh-ledger-dashboard)) .border.rounded.p-3 {
  padding: 13px !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .bg-light {
  background: #f8fbf9 !important;
  border: 1px solid var(--app-line-soft);
  border-radius: 14px !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .vstack.gap-2 {
  gap: 0.75rem !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .vstack a.border,
.gh-content:not(:has(.gh-ledger-dashboard)) .vstack div.border {
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .vstack a.border:hover {
  background: var(--app-green-soft) !important;
  border-color: rgba(16, 136, 77, 0.24) !important;
  transform: translateY(-1px);
}

.table-sm thead th {
  font-size: 12px;
  padding: 12px 14px;
}

.table-sm tbody td {
  font-size: 13px;
  padding: 12px 14px;
}

.table td > form.d-flex,
.table td form.d-flex,
.table td .btn-group,
.gh-content:not(:has(.gh-ledger-dashboard)) .btn-group-sm {
  align-items: center;
  flex-wrap: wrap;
}

.table td .form-control-sm,
.table td .form-select-sm {
  font-size: 13px;
  min-height: 34px;
}

.table td .form-control-sm {
  min-width: 160px;
}

.form-check {
  align-items: center;
  display: flex;
  gap: 9px;
  min-height: 42px;
  padding-left: 0;
}

.form-check-input {
  border-color: var(--app-line);
  height: 18px;
  margin: 0;
  width: 18px;
}

.form-check-input:checked {
  background-color: var(--app-green);
  border-color: var(--app-green);
}

.form-check-label {
  color: #4b5d54;
  font-size: 14px;
  font-weight: 650;
}

code,
pre {
  background: #f2f7f4;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  color: #0b6d3c;
  font-size: 12px;
}

code {
  padding: 3px 6px;
}

pre {
  padding: 14px;
  white-space: pre-wrap;
}

.invalid-feedback,
.text-danger.small {
  font-size: 12px;
  font-weight: 650;
  margin-top: 5px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .text-success {
  color: #08713e !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .text-danger {
  color: #b42323 !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .text-warning {
  color: #9f6b08 !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) a:not(.btn):not(.gh-btn):not(.list-group-item) {
  color: var(--app-green-dark);
  font-weight: 650;
  text-decoration: none;
}

.gh-content:not(:has(.gh-ledger-dashboard)) a:not(.btn):not(.gh-btn):not(.list-group-item):hover {
  color: var(--app-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .list-group-item-action:hover {
  background: #f6fbf8 !important;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .card .card {
  box-shadow: none !important;
}

.publication-section-body {
  line-height: 1.65;
  white-space: pre-wrap;
}

.gh-table-title {
  align-items: center;
  background: linear-gradient(180deg, rgba(248, 251, 249, 0.96), rgba(242, 247, 244, 0.96));
  border-bottom: 1px solid var(--app-line);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 17px 22px;
}

.gh-table-title strong {
  color: var(--app-ink);
  display: block;
  font-size: 17px;
  font-weight: 760;
}

.gh-table-title span {
  color: var(--app-muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.gh-chip {
  align-items: center;
  background: #edf7f1;
  border: 1px solid rgba(16, 136, 77, 0.16);
  border-radius: 999px;
  color: var(--app-green-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 760;
  min-height: 26px;
  padding: 4px 10px;
}

.gh-money-table .text-end {
  font-variant-numeric: tabular-nums;
}

.gh-definition-list {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  margin: 0;
}

.gh-definition-list dt {
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 720;
}

.gh-definition-list dd {
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.gh-ceiling-filter {
  grid-template-columns: minmax(280px, 1fr) minmax(200px, 260px) auto;
}

.gh-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gh-form-span,
.gh-form-actions {
  grid-column: 1 / -1;
}

.gh-form-actions {
  align-items: center;
  border-top: 1px solid var(--app-line);
  display: flex;
  gap: 10px;
  padding-top: 18px;
}

@media (max-width: 760px) {
  .gh-form-grid {
    grid-template-columns: 1fr;
  }
}

.gh-content:not(:has(.gh-ledger-dashboard)) .row > [class*="col-"] > .metric-card,
.gh-content:not(:has(.gh-ledger-dashboard)) .row > [class*="col-"] > .card {
  height: 100%;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .metric-card .row.g-2 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

.gh-content:not(:has(.gh-ledger-dashboard)) td[colspan] {
  color: var(--app-muted) !important;
  font-size: 14px;
  padding: 28px 18px !important;
  text-align: center;
}

.gh-content:not(:has(.gh-ledger-dashboard)) .table-responsive + .d-flex,
.gh-content:not(:has(.gh-ledger-dashboard)) .table-responsive + nav,
.gh-content:not(:has(.gh-ledger-dashboard)) .card > .d-flex:last-child {
  border-top: 1px solid var(--app-line);
  margin-top: 0;
  padding: 14px 18px;
}

[data-theme="dark"] .gh-content:not(:has(.gh-ledger-dashboard)) .border.rounded,
[data-theme="dark"] .gh-content:not(:has(.gh-ledger-dashboard)) .bg-light,
[data-theme="dark"] code,
[data-theme="dark"] pre {
  background: #132019 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .gh-table-title,
[data-theme="dark"] .gh-chip {
  background: #132019 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .gh-table-title strong,
[data-theme="dark"] .gh-definition-list dd {
  color: #edf6f0;
}

[data-theme="dark"] .gh-table-title span,
[data-theme="dark"] .gh-definition-list dt {
  color: #9eb5a8;
}

[data-theme="dark"] code,
[data-theme="dark"] pre {
  color: #86e0ad;
}

[data-theme="dark"] .form-check-label {
  color: #c4d5cb;
}

.gh-ceiling-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(14, 45, 71, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 252, 0.92)),
    radial-gradient(circle at 92% 18%, rgba(0, 122, 84, 0.12), transparent 34%);
  box-shadow: 0 18px 48px rgba(15, 37, 54, 0.08);
}

.gh-ceiling-hero.matrix {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 249, 252, 0.94)),
    radial-gradient(circle at 88% 14%, rgba(20, 83, 136, 0.12), transparent 32%);
}

.gh-ceiling-hero h1 {
  margin: 0;
  color: #07140f;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.gh-ceiling-hero p {
  max-width: 780px;
  margin: 5px 0 0;
  color: #486059;
  font-size: 15px;
}

.gh-ceiling-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.gh-ceiling-meta span,
.gh-ceiling-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 72, 50, 0.12);
  border-radius: 999px;
  background: rgba(236, 246, 240, 0.86);
  color: #173a2b;
  font-size: 12px;
  font-weight: 700;
}

.gh-ceiling-meta svg {
  width: 14px;
  height: 14px;
}

.gh-ceiling-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.gh-ceiling-stat,
.gh-ceiling-finance-strip section,
.gh-ceiling-panel {
  border: 1px solid rgba(15, 37, 54, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 37, 54, 0.07);
}

.gh-ceiling-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px;
}

.gh-ceiling-stat > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eaf5ef;
  color: #007a54;
}

.gh-ceiling-stat svg {
  width: 22px;
  height: 22px;
}

.gh-ceiling-stat small,
.gh-ceiling-finance-strip small {
  display: block;
  color: #52645e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gh-ceiling-stat strong,
.gh-ceiling-finance-strip strong {
  display: block;
  color: #06130f;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.1;
}

.gh-ceiling-stat em,
.gh-ceiling-finance-strip span {
  display: block;
  margin-top: 4px;
  color: #70837c;
  font-size: 12px;
  font-style: normal;
}

.gh-ceiling-finance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.gh-ceiling-finance-strip section {
  min-height: 112px;
  padding: 18px;
}

.gh-ceiling-finance-strip strong {
  margin-top: 8px;
  font-size: 24px;
}

.gh-ceiling-panel {
  margin-bottom: 22px;
  overflow: hidden;
}

.gh-ceiling-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 37, 54, 0.1);
}

.gh-ceiling-panel-head h2 {
  margin: 0;
  color: #06130f;
  font-size: 18px;
  font-weight: 800;
}

.gh-ceiling-panel-head p {
  margin: 4px 0 0;
  color: #687a74;
  font-size: 13px;
}

.gh-ceiling-version-switcher {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(15, 37, 54, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 37, 54, 0.06);
}

.gh-ceiling-version-switcher label {
  min-width: 320px;
  margin: 0;
}

.gh-ceiling-version-switcher label span {
  display: block;
  margin-bottom: 6px;
  color: #52645e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gh-ceiling-version-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.gh-ceiling-version-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(15, 72, 50, 0.14);
  border-radius: 999px;
  color: #244238;
  background: #f4faf7;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.gh-ceiling-version-pills a.active {
  border-color: #007a54;
  background: #007a54;
  color: #fff;
}

.gh-ceiling-matrix-wrap {
  width: 100%;
  max-height: 68vh;
  overflow: auto;
  background: #f8fbff;
}

.gh-ceiling-matrix-wrap.compact {
  max-height: 360px;
}

.gh-ceiling-matrix {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #06131f;
}

.gh-ceiling-matrix th,
.gh-ceiling-matrix td {
  min-width: 94px;
  height: 22px;
  padding: 3px 6px;
  border: 1px solid #ccd8e5;
  text-align: right;
  white-space: nowrap;
}

.gh-ceiling-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #eaf1f8;
  color: #00101f;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  line-height: 1.12;
}

.gh-ceiling-matrix thead tr:nth-child(2) th {
  top: 28px;
  min-width: 92px;
  height: 52px;
  background: #eef4fb;
  font-size: 10px;
  vertical-align: bottom;
}

.gh-ceiling-matrix .matrix-row-heading,
.gh-ceiling-matrix tbody th {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 365px;
  max-width: 365px;
  background: #eaf1f8;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.gh-ceiling-matrix tbody th {
  z-index: 2;
  font-weight: 500;
}

.gh-ceiling-matrix .matrix-total,
.gh-ceiling-matrix tbody td.matrix-total {
  background: #dedede;
  border-right-color: #6d7680;
  border-right-width: 2px;
}

.gh-ceiling-matrix .matrix-subtotal th,
.gh-ceiling-matrix .matrix-subtotal td {
  background: #d7d7d7;
  font-weight: 700;
}

.gh-ceiling-matrix .matrix-grand-total th,
.gh-ceiling-matrix .matrix-grand-total td {
  background: #aac4de;
  font-weight: 800;
}

[data-theme="dark"] .gh-ceiling-matrix-wrap {
  background: #0b1622;
}

[data-theme="dark"] .gh-ceiling-matrix {
  color: #e5edf7;
}

[data-theme="dark"] .gh-ceiling-matrix th,
[data-theme="dark"] .gh-ceiling-matrix td {
  border-color: rgba(148, 163, 184, 0.28);
}

[data-theme="dark"] .gh-ceiling-matrix thead th,
[data-theme="dark"] .gh-ceiling-matrix .matrix-row-heading,
[data-theme="dark"] .gh-ceiling-matrix tbody th {
  background: #162536;
  color: #f8fafc;
}

[data-theme="dark"] .gh-ceiling-matrix .matrix-total,
[data-theme="dark"] .gh-ceiling-matrix tbody td.matrix-total,
[data-theme="dark"] .gh-ceiling-matrix .matrix-subtotal th,
[data-theme="dark"] .gh-ceiling-matrix .matrix-subtotal td {
  background: #243244;
}

[data-theme="dark"] .gh-ceiling-matrix .matrix-grand-total th,
[data-theme="dark"] .gh-ceiling-matrix .matrix-grand-total td {
  background: #254864;
}

[data-theme="dark"] .gh-ceiling-hero,
[data-theme="dark"] .gh-ceiling-stat,
[data-theme="dark"] .gh-ceiling-finance-strip section,
[data-theme="dark"] .gh-ceiling-panel,
[data-theme="dark"] .gh-ceiling-version-switcher {
  background: #0f1b16;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .gh-ceiling-hero h1,
[data-theme="dark"] .gh-ceiling-stat strong,
[data-theme="dark"] .gh-ceiling-finance-strip strong,
[data-theme="dark"] .gh-ceiling-panel-head h2 {
  color: #f4fbf7;
}

[data-theme="dark"] .gh-ceiling-hero p,
[data-theme="dark"] .gh-ceiling-stat small,
[data-theme="dark"] .gh-ceiling-finance-strip small,
[data-theme="dark"] .gh-ceiling-panel-head p,
[data-theme="dark"] .gh-ceiling-stat em,
[data-theme="dark"] .gh-ceiling-finance-strip span {
  color: #a8bcb2;
}

[data-theme="dark"] .gh-ceiling-meta span,
[data-theme="dark"] .gh-ceiling-pill,
[data-theme="dark"] .gh-ceiling-version-pills a {
  background: rgba(29, 57, 44, 0.9);
  border-color: rgba(134, 224, 173, 0.18);
  color: #d8f8e6;
}

[data-theme="dark"] .gh-ceiling-version-pills a.active {
  background: #25a36f;
  color: #07140f;
}

@media (max-width: 1100px) {
  .gh-ceiling-hero,
  .gh-ceiling-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-ceiling-stat-grid,
  .gh-ceiling-finance-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-ceiling-version-switcher {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-ceiling-version-switcher label,
  .gh-ceiling-version-pills {
    min-width: 0;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .gh-ceiling-hero {
    padding: 16px;
    border-radius: 14px;
  }

  .gh-ceiling-hero h1 {
    font-size: 24px;
  }

  .gh-ceiling-stat-grid,
  .gh-ceiling-finance-strip {
    grid-template-columns: 1fr;
  }
}

.gh-ceiling-app {
  color: #0a1b3d;
}

.gh-ceiling-topline,
.gh-ceiling-page-title,
.gh-ceiling-stepper,
.gh-ceiling-distribution-stats,
.gh-ceiling-tabs {
  background: #fff;
  border: 1px solid rgba(8, 32, 70, 0.08);
  box-shadow: 0 10px 28px rgba(18, 39, 74, 0.04);
}

.gh-ceiling-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 10px 18px;
  border-radius: 10px;
}

.gh-ceiling-topline nav,
.gh-ceiling-year-select {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #48607f;
  font-size: 13px;
  font-weight: 700;
}

.gh-ceiling-topline nav a {
  color: #0054d8;
  text-decoration: none;
}

.gh-ceiling-topline svg {
  width: 15px;
  height: 15px;
}

.gh-ceiling-batch {
  margin-left: auto;
  padding: 8px 18px;
  border-radius: 5px;
  background: #008368;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.gh-ceiling-year-select select,
.gh-ceiling-parameters select,
.gh-ceiling-table-tools select {
  height: 38px;
  min-width: 118px;
  border: 1px solid #d9e2ef;
  border-radius: 5px;
  background: #fff;
  color: #0a1b3d;
  font-weight: 700;
}

.gh-ceiling-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 10px;
}

.gh-ceiling-page-title h1 {
  margin: 0;
  color: #071b46;
  font-size: 29px;
  font-weight: 850;
}

.gh-ceiling-page-title p {
  margin: 5px 0 0;
  color: #47607f;
  font-size: 14px;
}

.gh-ceiling-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 10px;
}

.gh-ceiling-stepper article {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-ceiling-stepper article:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 54px;
  right: 18px;
  top: 18px;
  height: 1px;
  background: #dce4ee;
}

.gh-ceiling-stepper b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dce4ee;
  border-radius: 50%;
  background: #fff;
  color: #0a1b3d;
  font-size: 17px;
}

.gh-ceiling-stepper .active b {
  border-color: #0058df;
  background: #0058df;
  color: #fff;
}

.gh-ceiling-stepper strong {
  display: block;
  color: #0a1b3d;
  font-size: 12px;
}

.gh-ceiling-stepper span {
  display: block;
  color: #647895;
  font-size: 10px;
}

.gh-ceiling-generator-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 355px;
  gap: 18px;
}

.gh-ceiling-parameters,
.gh-ceiling-card {
  border: 1px solid rgba(8, 32, 70, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 39, 74, 0.05);
}

.gh-ceiling-parameters {
  padding: 18px;
}

.gh-ceiling-parameters h2 {
  margin: 0 0 16px;
  color: #071b46;
  font-size: 15px;
  font-weight: 850;
}

.gh-ceiling-parameters label {
  display: block;
  margin-bottom: 14px;
}

.gh-ceiling-parameters label span,
.gh-ceiling-radio > span {
  display: block;
  margin-bottom: 6px;
  color: #334967;
  font-size: 12px;
  font-weight: 800;
}

.gh-ceiling-parameters select {
  width: 100%;
}

.gh-ceiling-radio {
  margin: 8px 0 20px;
}

.gh-ceiling-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  color: #243a5d;
  font-size: 12px;
  font-weight: 700;
}

.gh-ceiling-main-stack,
.gh-ceiling-side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.gh-ceiling-card {
  overflow: hidden;
}

.gh-ceiling-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f7;
}

.gh-ceiling-card-head h2 {
  margin: 0;
  color: #071b46;
  font-size: 15px;
  font-weight: 850;
}

.gh-ceiling-card-head h2 span,
.gh-ceiling-card-head a {
  color: #48607f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.gh-ceiling-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 10px;
}

.gh-ceiling-kpi-row article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
}

.gh-ceiling-kpi-row small {
  color: #526985;
  font-size: 11px;
  font-weight: 800;
}

.gh-ceiling-kpi-row strong {
  display: block;
  margin-top: 10px;
  color: #0a42a6;
  font-size: 21px;
  font-weight: 900;
}

.gh-ceiling-kpi-row em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: #008368;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.gh-ceiling-kpi-row em.down {
  color: #0a60d1;
}

.gh-ceiling-line-chart {
  padding: 6px 18px 16px;
}

.gh-ceiling-line-chart svg {
  width: 100%;
  height: 270px;
}

.gh-ceiling-line-chart .grid line {
  stroke: #e9eef5;
}

.gh-ceiling-line-chart polyline {
  fill: none;
  stroke-width: 3;
}

.gh-ceiling-line-chart polyline.green {
  stroke: #008368;
}

.gh-ceiling-line-chart polyline.blue {
  stroke: #0058df;
}

.gh-ceiling-line-chart polyline.dash {
  stroke: #6d48d9;
  stroke-dasharray: 5 5;
}

.gh-ceiling-line-chart .dots circle {
  r: 4;
  fill: #008368;
}

.gh-ceiling-line-chart text {
  fill: #62758f;
  font-size: 12px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #435a78;
  font-size: 11px;
  font-weight: 800;
}

.chart-legend span {
  display: inline-block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
}

.chart-legend .green {
  background: #008368;
}

.chart-legend .blue {
  background: #0058df;
}

.chart-legend .dash {
  background: repeating-linear-gradient(90deg, #6d48d9 0 6px, transparent 6px 10px);
}

.gh-ceiling-table-wrap {
  overflow: auto;
}

.gh-ceiling-modern-table {
  width: 100%;
  border-collapse: collapse;
  color: #13294b;
  font-size: 12px;
}

.gh-ceiling-modern-table th,
.gh-ceiling-modern-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: middle;
}

.gh-ceiling-modern-table th {
  color: #304968;
  font-size: 11px;
  font-weight: 900;
}

.gh-ceiling-modern-table .total td,
.gh-ceiling-modern-table tr.total {
  background: #f5f8fc;
  font-weight: 900;
}

.gh-ceiling-modern-table .positive {
  color: #008368;
  font-weight: 850;
}

.status-ok {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7f7ef;
  color: #008368;
  font-weight: 850;
}

.gh-ceiling-summary {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.gh-ceiling-donut {
  display: grid;
  place-items: center;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: conic-gradient(#0058df 0 31%, #00a870 31% 56%, #ffb020 56% 74%, #7c4dff 74% 88%, #76c7e8 88% 100%);
  position: relative;
  text-align: center;
}

.gh-ceiling-donut::after {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: #fff;
}

.gh-ceiling-donut strong,
.gh-ceiling-donut span {
  position: relative;
  z-index: 1;
}

.gh-ceiling-donut strong {
  color: #071b46;
  font-size: 15px;
  font-weight: 900;
}

.gh-ceiling-donut span {
  color: #415774;
  font-size: 10px;
  font-weight: 800;
}

.gh-ceiling-legend,
.gh-ceiling-indicators,
.gh-ceiling-action-list,
.gh-ceiling-activity-list,
.gh-ceiling-bars {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.gh-ceiling-legend span,
.gh-ceiling-indicators span,
.gh-ceiling-activity-list span {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  color: #263d5d;
  font-size: 12px;
  font-weight: 750;
}

.gh-ceiling-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0058df;
}

.gh-ceiling-legend .green i { background: #00a870; }
.gh-ceiling-legend .gold i { background: #ffb020; }
.gh-ceiling-legend .violet i { background: #7c4dff; }
.gh-ceiling-legend .cyan i { background: #76c7e8; }

.gh-ceiling-legend b,
.gh-ceiling-indicators b {
  justify-self: end;
  color: #0a1b3d;
}

.gh-ceiling-legend em {
  color: #5e718d;
  font-style: normal;
}

.gh-ceiling-indicators {
  padding-top: 4px;
}

.gh-ceiling-indicators span {
  grid-template-columns: 1fr auto;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf1f7;
}

.gh-ceiling-action-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #edf1f7;
  border-radius: 7px;
  color: #0b3f96;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.gh-ceiling-distribution-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.gh-ceiling-distribution-stats article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 122px;
  padding: 20px;
  border: 1px solid rgba(8, 32, 70, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 39, 74, 0.05);
}

.gh-ceiling-distribution-stats article > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.gh-ceiling-distribution-stats .purple { background: #f0eaff; color: #7c4dff; }
.gh-ceiling-distribution-stats .green { background: #e7f7ef; color: #008368; }
.gh-ceiling-distribution-stats .blue { background: #e9f1ff; color: #0058df; }
.gh-ceiling-distribution-stats .gold { background: #fff4db; color: #b87500; }
.gh-ceiling-distribution-stats .cyan { background: #e8f8fb; color: #087c9c; }

.gh-ceiling-distribution-stats small {
  color: #526985;
  font-size: 11px;
  font-weight: 850;
}

.gh-ceiling-distribution-stats strong {
  display: block;
  margin-top: 8px;
  color: #071b46;
  font-size: 23px;
  font-weight: 900;
}

.gh-ceiling-distribution-stats em {
  display: block;
  margin-top: 5px;
  color: #526985;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.gh-ceiling-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 0 18px;
  border-radius: 10px;
  overflow-x: auto;
}

.gh-ceiling-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  color: #10294d;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.gh-ceiling-tabs a.active {
  color: #0058df;
}

.gh-ceiling-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #0058df;
}

.gh-ceiling-distribution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.gh-ceiling-table-tools {
  display: flex;
  gap: 10px;
}

.gh-ceiling-table-tools button {
  height: 38px;
  border: 1px solid #d9e2ef;
  border-radius: 5px;
  background: #fff;
  color: #0a1b3d;
  font-weight: 850;
}

.gh-ceiling-bars {
  padding-top: 4px;
}

.gh-ceiling-bars div {
  display: grid;
  grid-template-columns: 82px 1fr 140px;
  gap: 10px;
  align-items: center;
  color: #253d5d;
  font-size: 12px;
  font-weight: 800;
}

.gh-ceiling-bars b {
  height: 10px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}

.gh-ceiling-bars i {
  display: block;
  width: var(--w);
  height: 100%;
  background: #0058df;
}

.gh-ceiling-bars em {
  color: #415774;
  font-style: normal;
  text-align: right;
}

.gh-ceiling-activity-list span {
  grid-template-columns: auto 1fr auto;
  min-height: 34px;
}

.gh-ceiling-activity-list svg {
  width: 17px;
  height: 17px;
  color: #0058df;
}

.gh-ceiling-activity-list em {
  color: #687c99;
  font-size: 11px;
  font-style: normal;
}

.gh-ceiling-table-footer {
  display: flex;
  justify-content: center;
  padding: 14px 18px 18px;
}

.gh-ceiling-summary-strip {
  margin-bottom: 18px;
  padding: 18px;
}

.gh-ceiling-summary-strip h2 {
  margin: 0 0 14px;
  color: #071b46;
  font-size: 15px;
  font-weight: 900;
}

.gh-ceiling-summary-strip > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gh-ceiling-summary-strip article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 13px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
}

.gh-ceiling-summary-strip svg {
  width: 26px;
  height: 26px;
  color: #008368;
}

.gh-ceiling-summary-strip strong {
  display: block;
  color: #071b46;
  font-size: 18px;
  font-weight: 900;
}

.gh-ceiling-summary-strip span {
  color: #526985;
  font-size: 11px;
  font-weight: 800;
}

[data-theme="dark"] .gh-ceiling-topline,
[data-theme="dark"] .gh-ceiling-page-title,
[data-theme="dark"] .gh-ceiling-stepper,
[data-theme="dark"] .gh-ceiling-parameters,
[data-theme="dark"] .gh-ceiling-card,
[data-theme="dark"] .gh-ceiling-distribution-stats article,
[data-theme="dark"] .gh-ceiling-tabs {
  background: #0f1b28;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gh-ceiling-page-title h1,
[data-theme="dark"] .gh-ceiling-card-head h2,
[data-theme="dark"] .gh-ceiling-modern-table,
[data-theme="dark"] .gh-ceiling-distribution-stats strong,
[data-theme="dark"] .gh-ceiling-summary-strip h2,
[data-theme="dark"] .gh-ceiling-summary-strip strong {
  color: #f6f9fd;
}

[data-theme="dark"] .gh-ceiling-page-title p,
[data-theme="dark"] .gh-ceiling-modern-table th,
[data-theme="dark"] .gh-ceiling-topline,
[data-theme="dark"] .gh-ceiling-tabs a,
[data-theme="dark"] .gh-ceiling-distribution-stats small,
[data-theme="dark"] .gh-ceiling-distribution-stats em {
  color: #adbed3;
}

[data-theme="dark"] .gh-ceiling-donut::after {
  background: #0f1b28;
}

@media (max-width: 1250px) {
  .gh-ceiling-generator-grid,
  .gh-ceiling-distribution-grid {
    grid-template-columns: 1fr;
  }

  .gh-ceiling-distribution-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .gh-ceiling-topline,
  .gh-ceiling-page-title {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-ceiling-stepper,
  .gh-ceiling-kpi-row,
  .gh-ceiling-summary-strip > div {
    grid-template-columns: 1fr;
  }

  .gh-ceiling-stepper article::after {
    display: none;
  }

  .gh-ceiling-distribution-stats {
    grid-template-columns: 1fr;
  }

  .gh-ceiling-summary {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gh-ceiling-bars div {
    grid-template-columns: 1fr;
  }

  .gh-ceiling-bars em {
    text-align: left;
  }
}

/* Ceiling pages: reference-style GBMIS dashboard shell and dense enterprise layout. */
body:has(.gh-ceiling-app) {
  background: #f8fafd;
}

body:has(.gh-ceiling-app) .gh-shell {
  grid-template-columns: 200px minmax(0, 1fr);
}

body:has(.gh-ceiling-app) .gh-sidebar {
  padding: 18px 14px;
  background: linear-gradient(180deg, #052c61 0%, #062550 52%, #041b3b 100%);
  border-right: 0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

body:has(.gh-ceiling-app) .gh-brand {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  padding: 0 4px;
}

body:has(.gh-ceiling-app) .gh-brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c242, #0fa36b);
  color: #062550;
  font-size: 11px;
  font-weight: 950;
}

body:has(.gh-ceiling-app) .gh-brand-name {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

body:has(.gh-ceiling-app) .gh-brand-name::after {
  content: "GHANA BUDGET MANAGEMENT INFORMATION SYSTEM";
  display: block;
  max-width: 118px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
}

body:has(.gh-ceiling-app) .gh-sidebar-heading,
body:has(.gh-ceiling-app) .gh-nav-other {
  display: none;
}

body:has(.gh-ceiling-app) .gh-nav {
  gap: 3px;
}

body:has(.gh-ceiling-app) .gh-nav a {
  min-height: 28px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 6px;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 750;
  transform: none;
}

body:has(.gh-ceiling-app) .gh-nav a:hover,
body:has(.gh-ceiling-app) .gh-nav a:focus,
body:has(.gh-ceiling-app) .gh-nav a.active {
  background: #075ff0;
  color: #fff;
  transform: none;
}

body:has(.gh-ceiling-app) .gh-nav svg {
  width: 15px;
  height: 15px;
}

body:has(.gh-ceiling-app) .gh-nav-support {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body:has(.gh-ceiling-app) .gh-topbar {
  min-height: 48px;
  padding: 7px 22px;
  border-bottom: 1px solid #e9edf3;
  background: #fff;
}

body:has(.gh-ceiling-app) .gh-ministry strong {
  color: transparent;
  font-size: 1px;
}

body:has(.gh-ceiling-app) .gh-top-search {
  display: none;
}

body:has(.gh-ceiling-app) .gh-topbar-actions {
  gap: 12px;
  margin-left: auto;
}

body:has(.gh-ceiling-app) .gh-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

body:has(.gh-ceiling-app) .gh-user {
  gap: 8px;
}

body:has(.gh-ceiling-app) .gh-avatar {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

body:has(.gh-ceiling-app) .gh-user-meta strong {
  font-size: 11px;
}

body:has(.gh-ceiling-app) .gh-user-meta span {
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-content {
  padding: 16px 22px 22px;
  background: #f8fafd;
}

body:has(.gh-ceiling-app) .gh-page {
  max-width: none;
}

body:has(.gh-ceiling-app) .gh-ceiling-app {
  --ceiling-blue: #005de8;
  --ceiling-navy: #071b46;
  --ceiling-muted: #526985;
  --ceiling-border: #e7edf5;
  font-size: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-topline,
body:has(.gh-ceiling-app) .gh-ceiling-page-title,
body:has(.gh-ceiling-app) .gh-ceiling-stepper,
body:has(.gh-ceiling-app) .gh-ceiling-parameters,
body:has(.gh-ceiling-app) .gh-ceiling-card,
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article,
body:has(.gh-ceiling-app) .gh-ceiling-tabs,
body:has(.gh-ceiling-app) .gh-ceiling-version-switcher {
  border-color: var(--ceiling-border);
  border-radius: 5px;
  box-shadow: 0 8px 22px rgba(18, 39, 74, 0.035);
}

body:has(.gh-ceiling-app) .gh-ceiling-topline {
  min-height: 34px;
  margin-bottom: 8px;
  padding: 6px 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-topline nav,
body:has(.gh-ceiling-app) .gh-ceiling-year-select {
  gap: 7px;
  font-size: 11px;
}

body:has(.gh-ceiling-app) .gh-ceiling-batch {
  padding: 7px 18px;
  border-radius: 3px;
  font-size: 11px;
}

body:has(.gh-ceiling-app) .gh-ceiling-page-title {
  min-height: 58px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body:has(.gh-ceiling-app) .gh-ceiling-page-title h1 {
  font-size: 22px;
  line-height: 1.15;
}

body:has(.gh-ceiling-app) .gh-ceiling-page-title p {
  margin-top: 3px;
  font-size: 11px;
}

body:has(.gh-ceiling-app) .gh-actions {
  gap: 8px;
}

body:has(.gh-ceiling-app) .gh-btn {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 850;
}

body:has(.gh-ceiling-app) .gh-btn svg {
  width: 14px;
  height: 14px;
}

body:has(.gh-ceiling-app) .gh-btn-primary {
  background: #005de8;
  border-color: #005de8;
  box-shadow: 0 7px 14px rgba(0, 93, 232, 0.18);
}

body:has(.gh-ceiling-app) .gh-btn-outline {
  background: #fff;
  border-color: #cfd9e8;
  color: #0a2c64;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper {
  margin-bottom: 12px;
  padding: 11px 20px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper b {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper article {
  gap: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper article:not(:last-child)::after {
  left: 44px;
  right: 14px;
  top: 16px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper strong {
  font-size: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper span {
  font-size: 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-generator-grid {
  grid-template-columns: 188px minmax(0, 1fr) 348px;
  gap: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-grid {
  grid-template-columns: minmax(0, 1.12fr) 456px;
  gap: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-main-stack,
body:has(.gh-ceiling-app) .gh-ceiling-side-stack {
  gap: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters {
  padding: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters h2,
body:has(.gh-ceiling-app) .gh-ceiling-card-head h2,
body:has(.gh-ceiling-app) .gh-ceiling-summary-strip h2 {
  font-size: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters label {
  margin-bottom: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters label span,
body:has(.gh-ceiling-app) .gh-ceiling-radio > span {
  margin-bottom: 4px;
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters select,
body:has(.gh-ceiling-app) .gh-ceiling-year-select select,
body:has(.gh-ceiling-app) .gh-ceiling-table-tools select {
  height: 28px;
  border-radius: 3px;
  font-size: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-radio {
  margin: 6px 0 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-radio label {
  margin: 7px 0;
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-card-head {
  min-height: 40px;
  padding: 9px 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-card-head h2 span,
body:has(.gh-ceiling-app) .gh-ceiling-card-head a {
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row {
  gap: 7px;
  padding: 10px 12px 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row article {
  min-height: 70px;
  padding: 10px;
  border-radius: 4px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row small {
  font-size: 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row strong {
  margin-top: 7px;
  font-size: 16px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row em {
  margin-top: 5px;
  font-size: 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-line-chart {
  padding: 3px 12px 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-line-chart svg {
  height: 236px;
}

body:has(.gh-ceiling-app) .chart-legend {
  gap: 8px;
  font-size: 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-table-wrap {
  max-height: 338px;
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table {
  font-size: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table th,
body:has(.gh-ceiling-app) .gh-ceiling-modern-table td {
  padding: 8px 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table th {
  font-size: 9px;
}

body:has(.gh-ceiling-app) .status-ok {
  padding: 3px 7px;
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-summary {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut {
  width: 118px;
  height: 118px;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut::after {
  inset: 22px;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut strong {
  font-size: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut span {
  font-size: 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-legend,
body:has(.gh-ceiling-app) .gh-ceiling-indicators,
body:has(.gh-ceiling-app) .gh-ceiling-action-list,
body:has(.gh-ceiling-app) .gh-ceiling-activity-list,
body:has(.gh-ceiling-app) .gh-ceiling-bars {
  gap: 7px;
  padding: 0 12px 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-legend span,
body:has(.gh-ceiling-app) .gh-ceiling-indicators span,
body:has(.gh-ceiling-app) .gh-ceiling-activity-list span {
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-action-list a {
  min-height: 38px;
  border-radius: 4px;
  font-size: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article {
  min-height: 104px;
  padding: 15px;
  gap: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article > span {
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats small {
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats strong {
  margin-top: 6px;
  font-size: 19px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats em {
  margin-top: 4px;
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-switcher {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 5px;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-switcher label {
  min-width: 260px;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-switcher label span {
  margin-bottom: 4px;
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-pills {
  gap: 6px;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-pills a {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-tabs {
  gap: 24px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 5px;
}

body:has(.gh-ceiling-app) .gh-ceiling-tabs a {
  min-height: 46px;
  font-size: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-table-tools {
  gap: 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-table-tools button {
  height: 28px;
  border-radius: 3px;
  font-size: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-bars div {
  grid-template-columns: 74px 1fr 114px;
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip {
  margin-bottom: 12px;
  padding: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip > div {
  gap: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip article {
  min-height: 58px;
  padding: 10px;
  border-radius: 4px;
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip svg {
  width: 22px;
  height: 22px;
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip strong {
  font-size: 15px;
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip span {
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix-wrap {
  max-height: 540px;
  border-radius: 0 0 5px 5px;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix {
  font-size: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix th,
body:has(.gh-ceiling-app) .gh-ceiling-matrix td {
  min-width: 82px;
  height: 20px;
  padding: 2px 5px;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix thead tr:nth-child(2) th {
  height: 44px;
  min-width: 82px;
  font-size: 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix .matrix-row-heading,
body:has(.gh-ceiling-app) .gh-ceiling-matrix tbody th {
  min-width: 330px;
  max-width: 330px;
}

body:has(.gh-ceiling-app) .gh-ceiling-card,
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article,
body:has(.gh-ceiling-app) .gh-ceiling-kpi-row article,
body:has(.gh-ceiling-app) .gh-ceiling-action-list a,
body:has(.gh-ceiling-app) .gh-ceiling-modern-table tr {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

body:has(.gh-ceiling-app) .gh-ceiling-card:hover,
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article:hover {
  border-color: #d6e0f0;
  box-shadow: 0 12px 28px rgba(18, 39, 74, 0.07);
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table tbody tr:hover {
  background: #f8fbff;
}

@media (max-width: 1250px) {
  body:has(.gh-ceiling-app) .gh-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  body:has(.gh-ceiling-app) .gh-ceiling-generator-grid,
  body:has(.gh-ceiling-app) .gh-ceiling-distribution-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   GBMIS ceilings module visual upgrade
   Drop-in override for the uploaded ceilings templates.
   Scope: only pages containing .gh-ceiling-app.
   ========================================================= */
body:has(.gh-ceiling-app) {
  --gf-navy: #062b55;
  --gf-navy-deep: #021e43;
  --gf-blue: #0b4df2;
  --gf-blue-2: #0f68ff;
  --gf-green: #078c68;
  --gf-teal: #19b9aa;
  --gf-purple: #6d4df6;
  --gf-gold: #f3a51b;
  --gf-cyan: #2fc3d4;
  --gf-ink: #06194a;
  --gf-text: #173467;
  --gf-muted: #667399;
  --gf-border: #e6ebf4;
  --gf-soft: #f7f9fd;
  --gf-card: #ffffff;
  --gf-shadow: 0 16px 40px rgba(7, 35, 83, .07);
  background: #fbfcff;
  color: var(--gf-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body:has(.gh-ceiling-app) .gh-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  background: #fbfcff;
}

body:has(.gh-ceiling-app) .gh-sidebar {
  background: linear-gradient(180deg, #062f61 0%, #021f43 100%);
  box-shadow: 8px 0 24px rgba(0, 19, 51, .14);
  border-right: 0;
  padding: 18px 14px 22px;
}

body:has(.gh-ceiling-app) .gh-brand {
  margin: 6px 4px 24px;
  font-size: 22px;
  letter-spacing: .01em;
}

body:has(.gh-ceiling-app) .gh-nav {
  gap: 4px;
}

body:has(.gh-ceiling-app) .gh-nav a,
body:has(.gh-ceiling-app) .gh-nav button {
  border-radius: 8px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  min-height: 34px;
  padding: 9px 12px;
}

body:has(.gh-ceiling-app) .gh-nav a.active,
body:has(.gh-ceiling-app) .gh-nav a[aria-current="page"],
body:has(.gh-ceiling-app) .gh-nav a:hover,
body:has(.gh-ceiling-app) .gh-nav button:hover {
  background: var(--gf-blue);
  color: #fff;
}

body:has(.gh-ceiling-app) .gh-main {
  background: #fbfcff;
}

body:has(.gh-ceiling-app) .gh-page {
  max-width: none;
  padding: 18px 24px 28px;
}

body:has(.gh-ceiling-app) .gh-ceiling-topline {
  align-items: center;
  border-bottom: 1px solid var(--gf-border);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto auto;
  margin: -18px -24px 0;
  min-height: 58px;
  padding: 0 24px;
}

body:has(.gh-ceiling-app) .gh-ceiling-topline nav {
  align-items: center;
  display: flex;
  gap: 11px;
  color: var(--gf-muted);
  font-size: 13px;
  font-weight: 700;
}

body:has(.gh-ceiling-app) .gh-ceiling-topline nav a,
body:has(.gh-ceiling-app) .gh-ceiling-topline nav span {
  color: var(--gf-blue);
  text-decoration: none;
}

body:has(.gh-ceiling-app) .gh-ceiling-topline nav strong {
  color: var(--gf-ink);
}

body:has(.gh-ceiling-app) .gh-ceiling-topline svg {
  height: 16px;
  width: 16px;
}

body:has(.gh-ceiling-app) .gh-ceiling-batch {
  background: linear-gradient(180deg, #09936f, #08745c);
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 10px 19px;
}

body:has(.gh-ceiling-app) .gh-ceiling-year-select {
  align-items: center;
  display: flex;
  gap: 14px;
  color: var(--gf-ink);
  font-size: 13px;
  font-weight: 700;
}

body:has(.gh-ceiling-app) select,
body:has(.gh-ceiling-app) input,
body:has(.gh-ceiling-app) textarea,
body:has(.gh-ceiling-app) .form-select,
body:has(.gh-ceiling-app) .form-control {
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 5px;
  color: var(--gf-ink);
  min-height: 37px;
  padding: 8px 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-page-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}

body:has(.gh-ceiling-app) h1,
body:has(.gh-ceiling-app) .gh-ceiling-page-title h1 {
  color: var(--gf-ink);
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 7px;
}

body:has(.gh-ceiling-app) .gh-ceiling-page-title p,
body:has(.gh-ceiling-app) .gh-page-head p,
body:has(.gh-ceiling-app) .gh-ceiling-hero p {
  color: var(--gf-muted);
  font-size: 13px;
  margin: 0;
}

body:has(.gh-ceiling-app) .gh-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body:has(.gh-ceiling-app) .gh-btn {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 9px 18px;
  text-decoration: none;
}

body:has(.gh-ceiling-app) .gh-btn-primary {
  background: var(--gf-blue);
  border-color: var(--gf-blue);
  box-shadow: 0 8px 18px rgba(11,77,242,.16);
  color: #fff;
}

body:has(.gh-ceiling-app) .gh-btn-outline {
  background: #fff;
  border: 1px solid #cfd9f3;
  color: var(--gf-blue);
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper {
  background: #fff;
  border: 1px solid var(--gf-border);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(7, 35, 83, .035);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 16px;
  padding: 18px 24px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper article {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr;
  position: relative;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper article:not(:last-child)::after {
  background: #dce3ef;
  content: "";
  height: 1px;
  left: 78%;
  position: absolute;
  right: 8%;
  top: 21px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper b {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd8e7;
  border-radius: 50%;
  color: var(--gf-ink);
  display: flex;
  font-size: 17px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper .active b {
  background: var(--gf-blue);
  border-color: var(--gf-blue);
  color: #fff;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper strong {
  color: var(--gf-ink);
  display: block;
  font-size: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-stepper span {
  color: var(--gf-muted);
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

body:has(.gh-ceiling-app) .gh-ceiling-generator-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 224px minmax(520px, 1fr) 424px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters,
body:has(.gh-ceiling-app) .gh-ceiling-card,
body:has(.gh-ceiling-app) .gh-page-head,
body:has(.gh-ceiling-app) .gh-form-grid,
body:has(.gh-ceiling-app) .gh-table-card,
body:has(.gh-ceiling-app) .gh-ceiling-hero,
body:has(.gh-ceiling-app) .gh-ceiling-version-switcher {
  background: #fff;
  border: 1px solid var(--gf-border);
  border-radius: 8px;
  box-shadow: var(--gf-shadow);
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters {
  align-self: start;
  display: grid;
  gap: 13px;
  padding: 16px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters h2,
body:has(.gh-ceiling-app) .gh-ceiling-card h2 {
  color: var(--gf-ink);
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters label {
  display: grid;
  gap: 6px;
}

body:has(.gh-ceiling-app) .gh-ceiling-parameters label span,
body:has(.gh-ceiling-app) .gh-ceiling-radio > span {
  color: var(--gf-text);
  font-size: 11px;
  font-weight: 800;
}

body:has(.gh-ceiling-app) .gh-ceiling-radio {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

body:has(.gh-ceiling-app) .gh-ceiling-radio label {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

body:has(.gh-ceiling-app) .gh-ceiling-main-stack,
body:has(.gh-ceiling-app) .gh-ceiling-side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

body:has(.gh-ceiling-app) .gh-ceiling-card {
  padding: 16px;
}

body:has(.gh-ceiling-app) .gh-ceiling-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body:has(.gh-ceiling-app) .gh-ceiling-card-head h2 span {
  color: var(--gf-muted);
  font-weight: 600;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row article,
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article {
  background: #fff;
  border: 1px solid var(--gf-border);
  border-radius: 6px;
  padding: 14px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row small,
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats small {
  color: var(--gf-text);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row strong,
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats strong {
  color: var(--gf-blue);
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

body:has(.gh-ceiling-app) .gh-ceiling-kpi-row em,
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats em {
  align-items: center;
  color: var(--gf-green);
  display: flex;
  font-size: 11px;
  font-style: normal;
  gap: 5px;
  margin-top: 9px;
}

body:has(.gh-ceiling-app) .gh-ceiling-line-chart {
  overflow: hidden;
}

body:has(.gh-ceiling-app) .chart-legend {
  align-items: center;
  color: var(--gf-text);
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 11px;
  margin: 5px 0 10px;
}

body:has(.gh-ceiling-app) .chart-legend span,
body:has(.gh-ceiling-app) .gh-ceiling-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 8px;
}

body:has(.gh-ceiling-app) .chart-legend .green { background: var(--gf-green); }
body:has(.gh-ceiling-app) .chart-legend .blue { background: var(--gf-blue); }
body:has(.gh-ceiling-app) .chart-legend .dash { background: #6655ff; }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart svg { width: 100%; height: auto; }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart .grid line { stroke: #edf1f8; }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart polyline { fill: none; stroke-width: 3; }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart polyline.green { stroke: var(--gf-green); }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart polyline.blue { stroke: var(--gf-blue); }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart polyline.dash { stroke: #6655ff; stroke-dasharray: 5 5; }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart circle { fill: var(--gf-green); r: 5; }
body:has(.gh-ceiling-app) .gh-ceiling-line-chart text { fill: var(--gf-text); font-size: 12px; font-weight: 700; }

body:has(.gh-ceiling-app) .gh-ceiling-summary {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 150px 1fr;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(#0f9083 0 16%, #2599ff 16% 31%, #21c6a8 31% 45%, #22b643 45% 57%, #5d51ff 57% 66%, #b9c5dd 66% 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 136px;
  padding: 22px;
  position: relative;
  text-align: center;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  inset: 26px;
  position: absolute;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut strong,
body:has(.gh-ceiling-app) .gh-ceiling-donut span {
  position: relative;
  z-index: 1;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut strong {
  color: var(--gf-ink);
  font-size: 18px;
  line-height: 1.1;
}

body:has(.gh-ceiling-app) .gh-ceiling-donut span {
  color: var(--gf-text);
  font-size: 11px;
  margin-top: 7px;
}

body:has(.gh-ceiling-app) .gh-ceiling-legend,
body:has(.gh-ceiling-app) .gh-ceiling-indicators,
body:has(.gh-ceiling-app) .gh-ceiling-action-list,
body:has(.gh-ceiling-app) .gh-ceiling-activity-list {
  display: grid;
  gap: 10px;
}

body:has(.gh-ceiling-app) .gh-ceiling-legend span,
body:has(.gh-ceiling-app) .gh-ceiling-indicators span,
body:has(.gh-ceiling-app) .gh-ceiling-activity-list span {
  align-items: center;
  color: var(--gf-text);
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: 10px 1fr auto auto;
}

body:has(.gh-ceiling-app) .gh-ceiling-legend b,
body:has(.gh-ceiling-app) .gh-ceiling-indicators b {
  color: var(--gf-ink);
  font-weight: 800;
}

body:has(.gh-ceiling-app) .gh-ceiling-legend em {
  color: var(--gf-text);
  font-style: normal;
}

body:has(.gh-ceiling-app) .gh-ceiling-indicators span {
  border-bottom: 1px solid var(--gf-border);
  grid-template-columns: 1fr auto;
  padding: 9px 0;
}

body:has(.gh-ceiling-app) .gh-ceiling-action-list a {
  align-items: center;
  border: 1px solid var(--gf-border);
  border-radius: 5px;
  color: var(--gf-blue);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 22px 1fr 18px;
  min-height: 45px;
  padding: 10px 12px;
  text-decoration: none;
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table,
body:has(.gh-ceiling-app) .gh-table {
  border-collapse: collapse;
  color: var(--gf-text);
  font-size: 11px;
  width: 100%;
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table th,
body:has(.gh-ceiling-app) .gh-ceiling-modern-table td,
body:has(.gh-ceiling-app) .gh-table th,
body:has(.gh-ceiling-app) .gh-table td {
  border-bottom: 1px solid var(--gf-border);
  padding: 10px 9px;
  vertical-align: middle;
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table thead th,
body:has(.gh-ceiling-app) .gh-table thead th {
  color: var(--gf-ink);
  font-size: 10px;
  font-weight: 900;
}

body:has(.gh-ceiling-app) .gh-ceiling-modern-table .total,
body:has(.gh-ceiling-app) .gh-table .total {
  background: #f6f8fc;
  color: var(--gf-ink);
  font-weight: 900;
}

body:has(.gh-ceiling-app) .positive,
body:has(.gh-ceiling-app) .status-ok { color: var(--gf-green); font-weight: 800; }

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 16px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px 1fr;
  min-height: 92px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats article > span {
  align-items: center;
  border-radius: 9px;
  display: flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats .purple { background: #f0eafe; color: var(--gf-purple); }
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats .green { background: #eaf8f1; color: var(--gf-green); }
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats .blue { background: #ecf3ff; color: var(--gf-blue); }
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats .gold { background: #fff4df; color: var(--gf-gold); }
body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats .cyan { background: #e9fbfc; color: var(--gf-cyan); }

body:has(.gh-ceiling-app) .gh-ceiling-version-switcher {
  align-items: end;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-pills {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-pills a,
body:has(.gh-ceiling-app) .gh-ceiling-tabs a {
  color: var(--gf-text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

body:has(.gh-ceiling-app) .gh-ceiling-version-pills a.active,
body:has(.gh-ceiling-app) .gh-ceiling-tabs a.active {
  color: var(--gf-blue);
}

body:has(.gh-ceiling-app) .gh-ceiling-tabs {
  align-items: center;
  border-bottom: 1px solid var(--gf-border);
  display: flex;
  gap: 34px;
  margin: 0 0 16px;
  padding: 0 8px;
}

body:has(.gh-ceiling-app) .gh-ceiling-tabs a {
  padding: 14px 0;
  position: relative;
}

body:has(.gh-ceiling-app) .gh-ceiling-tabs a.active::after {
  background: var(--gf-blue);
  border-radius: 999px;
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

body:has(.gh-ceiling-app) .gh-ceiling-distribution-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(620px, 1fr) 460px;
  margin-bottom: 16px;
}

body:has(.gh-ceiling-app) .gh-ceiling-bars {
  display: grid;
  gap: 11px;
}

body:has(.gh-ceiling-app) .gh-ceiling-bars div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 90px 1fr 130px;
  font-size: 11px;
  font-weight: 800;
}

body:has(.gh-ceiling-app) .gh-ceiling-bars b {
  background: #eef2f8;
  border-radius: 0;
  height: 12px;
  overflow: hidden;
}

body:has(.gh-ceiling-app) .gh-ceiling-bars i {
  background: var(--gf-blue);
  display: block;
  height: 100%;
  width: var(--w);
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip > div {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

body:has(.gh-ceiling-app) .gh-ceiling-summary-strip article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gf-border);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 40px 1fr;
  padding: 13px;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix-wrap {
  border: 1px solid var(--gf-border);
  border-radius: 0 0 8px 8px;
  overflow: auto;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix th,
body:has(.gh-ceiling-app) .gh-ceiling-matrix td {
  border: 1px solid #dbe3ef;
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix thead th {
  background: #eef4ff;
  color: var(--gf-ink);
}

body:has(.gh-ceiling-app) .gh-ceiling-matrix .matrix-total,
body:has(.gh-ceiling-app) .gh-ceiling-matrix tbody td.matrix-total {
  background: #f2f5fa;
}

body:has(.gh-ceiling-app).gh-ceiling-subpage,
body:has(.gh-ceiling-subpage) .gh-page-head,
body:has(.gh-ceiling-subpage) .gh-form-grid,
body:has(.gh-ceiling-subpage) .gh-table-card {
  max-width: 100%;
}

body:has(.gh-ceiling-subpage) .gh-page-head,
body:has(.gh-ceiling-subpage) .gh-ceiling-hero {
  margin-bottom: 16px;
  padding: 18px;
}

body:has(.gh-ceiling-subpage) .gh-form-grid {
  padding: 18px;
}

@media (max-width: 1400px) {
  body:has(.gh-ceiling-app) .gh-ceiling-generator-grid,
  body:has(.gh-ceiling-app) .gh-ceiling-distribution-grid { grid-template-columns: 1fr; }
  body:has(.gh-ceiling-app) .gh-ceiling-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  body:has(.gh-ceiling-app) .gh-shell { grid-template-columns: 1fr; }
  body:has(.gh-ceiling-app) .gh-sidebar { position: static; min-height: auto; }
  body:has(.gh-ceiling-app) .gh-ceiling-topline,
  body:has(.gh-ceiling-app) .gh-ceiling-page-title,
  body:has(.gh-ceiling-app) .gh-ceiling-version-switcher { display: grid; grid-template-columns: 1fr; }
  body:has(.gh-ceiling-app) .gh-ceiling-stepper,
  body:has(.gh-ceiling-app) .gh-ceiling-kpi-row,
  body:has(.gh-ceiling-app) .gh-ceiling-distribution-stats,
  body:has(.gh-ceiling-app) .gh-ceiling-summary-strip > div,
  body:has(.gh-ceiling-app) .gh-ceiling-side-stack { grid-template-columns: 1fr; }
  body:has(.gh-ceiling-app) .gh-ceiling-summary { grid-template-columns: 1fr; }
}

/* Final responsive pass: shared shell, forms, tables, login and ceiling workspaces. */
@media (max-width: 1320px) {
  .gh-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .gh-sidebar {
    padding: 24px 0;
  }

  .gh-brand {
    font-size: 30px;
    margin: 0 20px 24px;
  }

  .gh-nav a {
    font-size: 14px;
    gap: 12px;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 42px;
    padding: 8px 18px;
  }

  .gh-nav svg {
    height: 20px;
    width: 20px;
  }

  .gh-content {
    padding: 28px 24px;
  }

  .gh-topbar {
    min-height: 78px;
    padding: 14px 22px;
  }

  .gh-user strong {
    font-size: 14px;
  }

  .gh-user span {
    font-size: 12px;
  }

  .gh-avatar {
    height: 42px;
    width: 42px;
  }
}

@media (max-width: 1024px) {
  .gh-shell,
  .gh-shell.ghafmis-ceiling-shell {
    display: block;
  }

  .gh-sidebar,
  .gh-shell.ghafmis-ceiling-shell .gh-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 0 !important;
    max-height: 42vh;
    overflow: auto;
    padding: 14px 14px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .gh-brand,
  .gh-shell.ghafmis-ceiling-shell .gh-brand {
    margin: 0 0 12px !important;
    width: fit-content;
  }

  .gh-sidebar-heading,
  .gh-nav-other {
    display: none;
  }

  .gh-nav,
  .gh-shell.ghafmis-ceiling-shell .gh-nav {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .gh-nav a,
  .gh-shell.ghafmis-ceiling-shell .gh-nav a {
    flex: 0 0 auto;
    display: inline-flex !important;
    width: auto !important;
    min-height: 40px;
    padding: 9px 12px !important;
    border-radius: 10px;
    font-size: 13px !important;
    white-space: nowrap;
  }

  .gh-nav a span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gh-workspace {
    min-width: 0;
  }

  .gh-topbar,
  .gh-shell.ghafmis-ceiling-shell .gh-topbar {
    height: auto !important;
    max-height: none !important;
    min-height: 60px !important;
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible !important;
  }

  .gh-topbar-actions {
    flex: 1 1 100%;
    justify-content: space-between;
    min-width: 0;
  }

  .gh-top-search {
    flex: 1 1 260px;
    max-width: none;
  }

  .gh-user {
    min-width: 0;
  }

  .gh-user-meta {
    min-width: 0;
  }

  .gh-user-meta strong,
  .gh-user-meta span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gh-content,
  .gh-shell.ghafmis-ceiling-shell .gh-content {
    padding: 18px !important;
  }

  .gh-page-head,
  .gh-content:not(:has(.gh-ledger-dashboard)) > .d-flex:first-child,
  .gh-content:not(:has(.gh-ledger-dashboard)) > .mb-4:first-child {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 14px;
  }

  .gh-actions,
  .btn-toolbar,
  .gh-page-head .d-flex {
    flex-wrap: wrap;
  }

  .gh-form-grid,
  .row.g-3,
  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .gh-sidebar,
  .gh-shell.ghafmis-ceiling-shell .gh-sidebar {
    max-height: 36vh;
    padding: 12px;
  }

  .gh-brand-name,
  .gh-shell.ghafmis-ceiling-shell .gh-brand-name {
    font-size: 24px !important;
  }

  .gh-topbar-actions {
    display: grid !important;
    grid-template-columns: 1fr auto auto;
    width: 100%;
  }

  .gh-user {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .gh-user-meta strong,
  .gh-user-meta span {
    max-width: calc(100vw - 130px);
  }

  .gh-top-search {
    min-width: 0;
  }

  .gh-top-search span {
    display: none;
  }

  .gh-content,
  .gh-shell.ghafmis-ceiling-shell .gh-content {
    padding: 14px !important;
  }

  .gh-title-row,
  .gh-page-title,
  .gh-ceiling-page-title,
  .gh-ceiling-card-head,
  .gh-ceiling-topline {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  h1,
  .gh-title-row h1,
  .gh-ceiling-page-title h1,
  .gh-content:not(:has(.gh-ledger-dashboard)) h1 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

  h2,
  .gh-ceiling-card-head h2,
  .gh-content:not(:has(.gh-ledger-dashboard)) h2 {
    font-size: 18px !important;
  }

  .gh-btn,
  .btn,
  .gh-actions .gh-btn,
  .gh-actions .btn {
    min-height: 42px;
  }

  .gh-actions,
  .gh-ceiling-page-title .gh-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .gh-actions .gh-btn,
  .gh-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .table-responsive,
  .gh-ceiling-table-wrap,
  .gh-ceiling-matrix-wrap {
    margin-left: -2px;
    margin-right: -2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table,
  .gh-ceiling-modern-table,
  .gh-ceiling-matrix {
    min-width: 720px;
  }

  .card,
  .metric-card,
  .gh-ceiling-card,
  .gh-ceiling-parameters,
  .gh-table-card,
  .gh-form-grid {
    border-radius: 12px !important;
  }

  .gh-ceiling-version-switcher,
  .gh-ceiling-table-tools,
  .gh-ceiling-bars div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .gh-ceiling-version-pills,
  .gh-ceiling-tabs {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }

  .gh-ceiling-summary,
  .gh-ceiling-distribution-stats,
  .gh-ceiling-kpi-row,
  .gh-ceiling-summary-strip > div,
  .gh-ceiling-side-stack {
    grid-template-columns: 1fr !important;
  }

  .gh-ceiling-line-chart {
    min-height: 220px;
    overflow-x: auto;
  }

  .gh-ceiling-line-chart svg {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .gh-nav a span {
    max-width: 140px;
  }

  .gh-content,
  .gh-shell.ghafmis-ceiling-shell .gh-content {
    padding: 10px !important;
  }

  .gh-topbar {
    padding: 10px 12px !important;
  }

  .gbmis-login-copy h1 {
    font-size: 26px;
  }
}

@media (max-width: 380px) {
  .gbmis-login-visual-content {
    min-height: 330px;
    padding: 16px;
  }

  .gbmis-login-ministry {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .gbmis-login-mini-logo {
    height: 48px;
  }

  .gbmis-login-mini-logo img {
    width: 66px;
  }

  .gbmis-login-copy h1 {
    font-size: 24px;
  }

  .gbmis-login-copy span {
    font-size: 13px;
    line-height: 1.45;
  }

  .gbmis-login-panel {
    padding: 10px;
  }

  .gbmis-login-card {
    padding: 18px;
  }

  .gbmis-field input,
  .gbmis-login-submit {
    min-height: 48px;
  }
}

/* Login viewport fit: keep authentication visible without page scrolling. */
body.gbmis-login {
  height: 100dvh;
  overflow: hidden;
}

.gbmis-login-shell {
  height: 100dvh;
  min-height: 100dvh;
}

.gbmis-login-visual,
.gbmis-login-visual-content,
.gbmis-login-panel {
  min-height: 100dvh;
}

.gbmis-login-card {
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
}

@media (max-height: 780px) and (min-width: 901px) {
  .gbmis-login-visual-content {
    padding: 30px 42px;
  }

  .gbmis-login-copy h1 {
    font-size: clamp(30px, 4.1vw, 54px);
  }

  .gbmis-login-copy span {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .gbmis-login-panel {
    padding: 22px;
  }

  .gbmis-login-card {
    padding: 24px;
  }

  .gbmis-login-brand {
    margin-bottom: 18px;
  }

  .gbmis-login-form {
    gap: 12px;
  }

  .gbmis-field input,
  .gbmis-login-submit {
    min-height: 44px;
  }

  .gbmis-security-note {
    padding: 9px 12px;
  }
}

@media (max-width: 900px) {
  .gbmis-login-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
  }

  .gbmis-login-visual {
    position: absolute;
    inset: 0;
    min-height: 100dvh;
  }

  .gbmis-login-visual-content {
    min-height: 100dvh;
    padding: 18px;
  }

  .gbmis-login-ministry,
  .gbmis-login-copy,
  .gbmis-login-visual-footer {
    display: none;
  }

  .gbmis-login-panel {
    position: relative;
    z-index: 4;
    min-height: 100dvh;
    padding: 14px;
    background: linear-gradient(135deg, rgba(241, 247, 255, 0.9), rgba(219, 234, 254, 0.76));
  }

  .gbmis-login-card {
    width: min(100%, 430px);
    max-height: calc(100dvh - 28px);
    padding: 22px;
    border-color: rgba(219, 231, 247, 0.92);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(5, 24, 62, 0.28);
  }

  .gbmis-login-brand {
    align-items: center;
    flex-direction: row;
    margin-bottom: 18px;
  }

  .gbmis-logo-frame {
    flex: 0 0 auto;
    width: 108px;
    height: 52px;
  }

  .gbmis-logo-frame img {
    width: 92px;
  }

  .gbmis-login-brand strong {
    font-size: 20px;
  }

  .gbmis-login-form {
    gap: 12px;
  }

  .gbmis-field label {
    margin-bottom: 6px;
  }

  .gbmis-field input,
  .gbmis-login-submit {
    min-height: 44px;
  }

  .gbmis-security-note {
    padding: 9px 12px;
    font-size: 11px;
  }

  .gbmis-login-footer {
    margin-top: 14px;
    padding-top: 12px;
  }
}

@media (max-width: 420px), (max-height: 620px) {
  .gbmis-login-panel {
    padding: 10px;
  }

  .gbmis-login-card {
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .gbmis-login-brand {
    gap: 12px;
    margin-bottom: 14px;
  }

  .gbmis-logo-frame {
    width: 96px;
    height: 48px;
  }

  .gbmis-logo-frame img {
    width: 82px;
  }

  .gbmis-login-brand span,
  .gbmis-field label,
  .gbmis-login-row,
  .gbmis-login-footer {
    font-size: 11px;
  }

  .gbmis-login-brand strong {
    font-size: 18px;
  }

  .gbmis-field input,
  .gbmis-login-submit {
    min-height: 40px;
    font-size: 14px;
  }

  .gbmis-login-form {
    gap: 10px;
  }
}

/* GBMIS portal theme: extend the login visual language into authenticated workspaces. */
:root {
  --gbmis-blue-950: #061936;
  --gbmis-blue-900: #0b2755;
  --gbmis-blue-800: #0f3f8f;
  --gbmis-blue-700: #1557c0;
  --gbmis-blue-600: #2563eb;
  --gbmis-blue-100: #dbeafe;
  --gbmis-blue-50: #f3f7ff;
  --gbmis-ink: #071a33;
  --gbmis-muted: #60718b;
  --gbmis-line: #dbe7f7;
  --gbmis-card: rgba(255, 255, 255, 0.94);
  --gbmis-shadow: 0 22px 56px rgba(15, 47, 99, 0.12);
}

body.gbmis-super-user {
  background:
    radial-gradient(circle at 92% 2%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
  color: var(--gbmis-ink);
  font-family: "Poppins", "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

body.gbmis-super-user .gh-shell:not(.ghafmis-ceiling-shell) {
  grid-template-columns: 282px minmax(0, 1fr);
  background: transparent;
}

body.gbmis-super-user .gh-shell:not(.ghafmis-ceiling-shell) .gh-sidebar {
  background:
    linear-gradient(180deg, rgba(6, 25, 54, 0.98), rgba(11, 39, 85, 0.98)),
    radial-gradient(circle at 18% 8%, rgba(96, 165, 250, 0.22), transparent 30%);
  border-right: 1px solid rgba(219, 234, 254, 0.16);
  box-shadow: 18px 0 46px rgba(6, 25, 54, 0.12);
  padding: 24px 14px;
}

body.gbmis-super-user .gh-brand {
  gap: 12px;
  margin: 0 6px 24px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

body.gbmis-super-user .gh-brand-logo {
  display: block;
  width: 104px;
  max-width: 100%;
  height: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

body.gbmis-super-user .gh-brand-icon {
  display: none;
}

body.gbmis-super-user .gh-brand-name {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

body.gbmis-super-user .gh-brand-name::after {
  content: "Budget Management Information System";
  display: block;
  margin-top: 5px;
  color: rgba(219, 234, 254, 0.74);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.gbmis-super-user .gh-sidebar-heading,
body.gbmis-super-user .gh-nav-other {
  margin: 16px 10px 8px;
  color: rgba(219, 234, 254, 0.64);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

body.gbmis-super-user .gh-nav {
  gap: 5px;
}

body.gbmis-super-user .gh-nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 720;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
}

body.gbmis-super-user .gh-nav a:hover,
body.gbmis-super-user .gh-nav a:focus,
body.gbmis-super-user .gh-nav a.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(15, 63, 143, 0.92));
  color: #fff;
  transform: translateX(2px);
}

body.gbmis-super-user .gh-nav svg {
  width: 18px;
  height: 18px;
}

body.gbmis-super-user .gh-workspace {
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
}

body.gbmis-super-user .gh-topbar {
  min-height: 72px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--gbmis-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(15, 47, 99, 0.05);
  backdrop-filter: blur(14px);
}

body.gbmis-super-user .gh-ministry strong {
  color: var(--gbmis-ink);
  font-size: 20px;
  font-weight: 850;
}

body.gbmis-super-user .gh-top-search {
  border: 1px solid var(--gbmis-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 47, 99, 0.06);
}

body.gbmis-super-user .gh-top-search input {
  font-family: inherit;
  font-size: 13px;
}

body.gbmis-super-user .gh-icon-btn {
  border-radius: 12px;
  color: var(--gbmis-blue-800);
}

body.gbmis-super-user .gh-icon-btn:hover {
  background: var(--gbmis-blue-50);
}

body.gbmis-super-user .gh-user {
  padding: 6px 8px;
  border: 1px solid var(--gbmis-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 47, 99, 0.07);
}

body.gbmis-super-user .gh-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #0f4eb8);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

body.gbmis-super-user .gh-avatar::before {
  display: none;
}

body.gbmis-super-user .gh-user strong {
  color: var(--gbmis-ink);
  font-size: 12px;
  font-weight: 850;
}

body.gbmis-super-user .gh-user span {
  color: var(--gbmis-muted);
  font-size: 11px;
}

body.gbmis-super-user .gh-content:not(:has(.gh-ledger-dashboard)) {
  padding: 26px;
}

body.gbmis-super-user .gh-content:not(:has(.gh-ledger-dashboard)) h1,
body.gbmis-super-user .gh-content:not(:has(.gh-ledger-dashboard)) .h3 {
  color: var(--gbmis-ink);
  font-size: 26px;
  font-weight: 850;
}

body.gbmis-super-user .gh-content:not(:has(.gh-ledger-dashboard)) h2,
body.gbmis-super-user .gh-content:not(:has(.gh-ledger-dashboard)) .h5 {
  color: var(--gbmis-ink);
  font-weight: 800;
}

body.gbmis-super-user .metric-card,
body.gbmis-super-user .card,
body.gbmis-super-user .gh-stat-card,
body.gbmis-super-user .gh-table-card,
body.gbmis-super-user .gh-form-grid {
  border: 1px solid var(--gbmis-line) !important;
  border-radius: 16px !important;
  background: var(--gbmis-card) !important;
  box-shadow: var(--gbmis-shadow) !important;
}

body.gbmis-super-user .metric-label,
body.gbmis-super-user .text-muted,
body.gbmis-super-user small,
body.gbmis-super-user .small {
  color: var(--gbmis-muted) !important;
}

body.gbmis-super-user .btn-primary,
body.gbmis-super-user .gh-btn-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #2563eb, #0f4eb8 58%, #0b3b82) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

body.gbmis-super-user .btn-outline-primary,
body.gbmis-super-user .gh-btn-outline {
  border-color: #cbdaf0 !important;
  color: var(--gbmis-blue-800) !important;
  background: #fff !important;
}

body.gbmis-super-user .form-control,
body.gbmis-super-user .form-select {
  border-color: #cbdaf0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
}

body.gbmis-super-user .form-control:focus,
body.gbmis-super-user .form-select:focus {
  border-color: var(--gbmis-blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

body.gbmis-super-user .table {
  color: var(--gbmis-ink);
  font-size: 13px;
}

body.gbmis-super-user .table thead th,
body.gbmis-super-user .gh-ledger-table th {
  color: #46607d;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

body.gbmis-super-user .gh-dashboard.gh-ledger-dashboard,
body.gbmis-super-user .gh-content:has(.gh-ledger-dashboard) {
  font-family: "Poppins", "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.gbmis-super-user .gh-content:has(.gh-ledger-dashboard) {
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%) !important;
  padding: 26px !important;
}

body.gbmis-super-user .gh-ledger-hero {
  border: 1px solid var(--gbmis-line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.94)),
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.16), transparent 30%);
  box-shadow: var(--gbmis-shadow);
}

body.gbmis-super-user .gh-ledger-hero h1 {
  color: var(--gbmis-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
}

body.gbmis-super-user .gh-ledger-hero p {
  color: var(--gbmis-muted);
  font-size: 14px;
}

body.gbmis-super-user .gh-ledger-card,
body.gbmis-super-user .gh-ledger-mini,
body.gbmis-super-user .gh-ledger-chart-card {
  border: 1px solid var(--gbmis-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--gbmis-shadow);
}

body.gbmis-super-user .gh-ledger-card-head span,
body.gbmis-super-user .gh-ledger-mini > span,
body.gbmis-super-user .txn-icon {
  background: var(--gbmis-blue-50);
  color: var(--gbmis-blue-700);
}

body.gbmis-super-user .gh-ledger-card-head strong,
body.gbmis-super-user .gh-ledger-mini strong,
body.gbmis-super-user .gh-ledger-section-head h2,
body.gbmis-super-user .gh-ledger-table strong {
  color: var(--gbmis-ink);
  font-weight: 850;
}

body.gbmis-super-user .gh-ledger-card h2,
body.gbmis-super-user .gh-ledger-mini b {
  color: var(--gbmis-ink);
  font-weight: 900;
}

body.gbmis-super-user .gh-ledger-card-head em.positive,
body.gbmis-super-user .gh-ledger-mini em.positive,
body.gbmis-super-user .positive {
  color: var(--gbmis-blue-700) !important;
}

body.gbmis-super-user .gh-ledger-toggle,
body.gbmis-super-user .ledger-status {
  border-radius: 999px;
  background: var(--gbmis-blue-50);
  color: var(--gbmis-blue-800);
}

[data-theme="dark"] body.gbmis-super-user,
[data-theme="dark"] body.gbmis-super-user .gh-workspace {
  background: #071426;
  color: #eaf2ff;
}

[data-theme="dark"] body.gbmis-super-user .gh-topbar,
[data-theme="dark"] body.gbmis-super-user .metric-card,
[data-theme="dark"] body.gbmis-super-user .card,
[data-theme="dark"] body.gbmis-super-user .gh-ledger-card,
[data-theme="dark"] body.gbmis-super-user .gh-ledger-mini,
[data-theme="dark"] body.gbmis-super-user .gh-ledger-chart-card,
[data-theme="dark"] body.gbmis-super-user .gh-ledger-hero {
  border-color: rgba(148, 163, 184, 0.2) !important;
  background: rgba(15, 31, 56, 0.94) !important;
  color: #eaf2ff;
}

[data-theme="dark"] body.gbmis-super-user h1,
[data-theme="dark"] body.gbmis-super-user h2,
[data-theme="dark"] body.gbmis-super-user strong,
[data-theme="dark"] body.gbmis-super-user .gh-ledger-card h2 {
  color: #f8fbff !important;
}

/* Global administrator dashboard */
.gbmis-admin-dashboard {
  --admin-bg: #071426;
  --admin-panel: rgba(15, 31, 56, 0.94);
  --admin-panel-2: rgba(20, 42, 75, 0.92);
  --admin-line: rgba(148, 163, 184, 0.22);
  --admin-text: #eef6ff;
  --admin-muted: #9fb1c8;
  --admin-blue: #38bdf8;
  --admin-green: #4ade80;
  --admin-red: #fb7185;
  --admin-gold: #fbbf24;
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 124px);
  padding: 18px;
  border: 1px solid rgba(219, 234, 254, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.16), transparent 32%),
    linear-gradient(135deg, #071426 0%, #102746 100%);
  color: var(--admin-text);
  box-shadow: 0 30px 80px rgba(5, 24, 62, 0.18);
}

.gbmis-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--admin-line);
}

.gbmis-admin-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.gbmis-admin-hero h1 {
  margin: 6px 0 2px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.gbmis-admin-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

.gbmis-admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.gbmis-admin-hero-actions select {
  min-height: 38px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 750;
}

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

.gbmis-admin-zone {
  display: grid;
  gap: 10px;
}

.gbmis-admin-zone.wide {
  grid-column: span 2;
}

.gbmis-admin-zone.controls {
  grid-column: span 1;
}

.gbmis-admin-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gbmis-admin-zone-head h2 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.gbmis-admin-zone-head span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 750;
}

.gbmis-admin-kpis {
  display: grid;
  gap: 10px;
}

.gbmis-admin-kpis.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gbmis-admin-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--admin-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gbmis-admin-card.glow {
  background:
    radial-gradient(circle at 90% 20%, rgba(74, 222, 128, 0.18), transparent 36%),
    var(--admin-panel);
}

.gbmis-admin-card small {
  display: block;
  color: #dbeafe !important;
  font-size: 11px;
  font-weight: 850;
}

.gbmis-admin-card strong {
  display: block;
  color: #fff !important;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

.gbmis-admin-card span,
.gbmis-admin-card p,
.gbmis-admin-card em {
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
}

.gbmis-admin-card .positive {
  color: var(--admin-green);
}

.gbmis-admin-spark {
  height: 34px;
  margin-top: 8px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 8%, rgba(255, 255, 255, 0.08) 8% 12%, transparent 12% 24%, rgba(255, 255, 255, 0.08) 24% 28%, transparent 28%),
    linear-gradient(180deg, rgba(74, 222, 128, 0.34), rgba(74, 222, 128, 0.04));
}

.gbmis-admin-spark.blue { background: linear-gradient(180deg, rgba(56, 189, 248, 0.36), rgba(56, 189, 248, 0.06)); }
.gbmis-admin-spark.orange { background: linear-gradient(180deg, rgba(251, 146, 60, 0.38), rgba(251, 146, 60, 0.06)); }

.gbmis-meter {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.gbmis-meter span {
  display: flex;
  justify-content: space-between;
  color: #dbeafe;
  font-weight: 750;
}

.gbmis-meter b,
.gbmis-storage {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.gbmis-meter i,
.gbmis-storage i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
}

.gbmis-meter i.violet,
.gbmis-storage i {
  background: linear-gradient(90deg, #818cf8, #38bdf8);
}

.gbmis-storage {
  margin-top: 10px;
}

.gbmis-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 10px;
}

.gbmis-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gbmis-card-title strong {
  font-size: 13px;
}

.gbmis-card-title a,
.gbmis-card-title button {
  border: 0;
  background: transparent;
  color: var(--admin-blue);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.audit-feed {
  max-height: 250px;
  overflow: auto;
}

.audit-feed > span {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.audit-feed i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--admin-green);
}

.audit-feed b,
.gbmis-inline-event {
  color: #eaf2ff;
  font-size: 11px;
}

.audit-feed em {
  display: block;
}

.gbmis-failed-map {
  position: relative;
  height: 126px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 22% 48%, rgba(148, 163, 184, 0.36), transparent 3%),
    radial-gradient(circle at 55% 38%, rgba(148, 163, 184, 0.32), transparent 4%),
    radial-gradient(circle at 75% 48%, rgba(148, 163, 184, 0.24), transparent 4%),
    linear-gradient(135deg, rgba(15, 47, 99, 0.92), rgba(9, 24, 50, 0.92));
}

.gbmis-failed-map i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef3c7 0 18%, #fb7185 28%, rgba(251, 113, 133, 0.1) 68%);
  transform: translate(-50%, -50%);
}

.gbmis-inline-event {
  margin: 8px 0 0;
}

.ssl-card strong {
  color: var(--admin-green) !important;
}

.gbmis-block-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.gbmis-block-row span {
  color: #eaf2ff;
  font-weight: 850;
}

.gbmis-block-row b {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.14);
  color: var(--admin-red);
  font-size: 10px;
}

.gbmis-block-row b.medium {
  background: rgba(251, 191, 36, 0.14);
  color: var(--admin-gold);
}

.gbmis-block-row em {
  grid-column: 1 / -1;
}

.gbmis-rbac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.gbmis-rbac-table th,
.gbmis-rbac-table td {
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
}

.gbmis-rbac-table th {
  color: #93c5fd;
  text-transform: uppercase;
}

.gbmis-feature-list {
  display: grid;
  gap: 10px;
}

.gbmis-feature-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #eaf2ff;
  font-size: 12px;
  font-weight: 750;
}

.gbmis-feature-list input {
  display: none;
}

.gbmis-feature-list i {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
}

.gbmis-feature-list i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.gbmis-feature-list input:checked + i {
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.gbmis-feature-list input:checked + i::after {
  transform: translateX(20px);
}

.gbmis-banner-box {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.22), rgba(251, 191, 36, 0.12));
}

.gbmis-banner-box b {
  display: block;
  color: #fecdd3;
  font-size: 11px;
  text-transform: uppercase;
}

.gbmis-banner-box span {
  display: block;
  margin-top: 4px;
  color: #fff;
}

.gbmis-admin-context-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.gbmis-admin-context-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 184px;
}

.gbmis-admin-context-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.gbmis-admin-context-main > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.13);
  color: var(--admin-blue);
}

.gbmis-admin-context-main b {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.gbmis-admin-context-main em {
  display: block;
  color: var(--admin-muted);
  font-size: 11px;
  font-style: normal;
}

.gbmis-admin-context-row,
.gbmis-risk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.gbmis-admin-context-row span,
.gbmis-risk-row span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 750;
}

.gbmis-admin-context-row strong,
.gbmis-risk-row strong {
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
}

.gbmis-admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gbmis-admin-mini-grid article {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.gbmis-admin-mini-grid small {
  color: var(--admin-muted) !important;
  font-size: 10px;
  font-weight: 800;
}

.gbmis-admin-mini-grid strong {
  margin-top: 4px;
  color: #fff !important;
  font-size: 22px;
  font-weight: 900;
}

.gbmis-risk-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.gbmis-risk-row b {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--admin-green);
  font-size: 10px;
  font-weight: 900;
}

.gbmis-risk-row b.high {
  background: rgba(251, 113, 133, 0.14);
  color: var(--admin-red);
}

.gbmis-risk-row b.medium {
  background: rgba(251, 191, 36, 0.14);
  color: var(--admin-gold);
}

@media (max-width: 1500px) {
  .gbmis-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gbmis-admin-zone.wide,
  .gbmis-admin-zone.controls {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .gbmis-admin-dashboard {
    padding: 12px;
  }

  .gbmis-admin-hero,
  .gbmis-admin-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .gbmis-admin-grid,
  .gbmis-admin-context-grid,
  .gbmis-security-grid,
  .gbmis-admin-kpis.two {
    grid-template-columns: 1fr;
  }

  .gbmis-admin-hero-actions,
  .gbmis-admin-hero-actions .gh-btn,
  .gbmis-admin-hero-actions select {
    width: 100%;
  }
}

/* GBMIS global admin finishing pass */
.gbmis-admin-dashboard {
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.55) rgba(15, 31, 56, 0.45);
}

.gbmis-admin-dashboard ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.gbmis-admin-dashboard ::-webkit-scrollbar-track {
  background: rgba(15, 31, 56, 0.4);
  border-radius: 999px;
}

.gbmis-admin-dashboard ::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.55);
  border-radius: 999px;
}

.gbmis-admin-grid {
  align-items: start;
}

.gbmis-admin-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gbmis-admin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
  opacity: 0.72;
}

.gbmis-admin-card > * {
  position: relative;
  z-index: 1;
}

.gbmis-admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 22px 56px rgba(2, 8, 23, 0.24);
}

.gbmis-admin-zone-head {
  min-height: 30px;
}

.gbmis-admin-zone-head h2 {
  letter-spacing: 0.02em;
}

.gbmis-admin-kpis.two .gbmis-admin-card {
  min-height: 132px;
}

.gbmis-security-grid .gbmis-admin-card {
  min-height: 160px;
}

.gbmis-admin-card small {
  letter-spacing: 0.02em;
}

.gbmis-admin-card strong {
  letter-spacing: -0.01em;
}

.gbmis-card-title {
  min-height: 24px;
}

.gbmis-card-title a,
.gbmis-card-title button {
  border-radius: 999px;
  padding: 4px 8px;
}

.gbmis-card-title a:hover,
.gbmis-card-title button:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
}

.gbmis-admin-hero-actions .gh-btn {
  min-height: 38px;
  border-radius: 11px;
}

.gbmis-admin-hero-actions select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #bfdbfe 50%), linear-gradient(135deg, #bfdbfe 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 34px;
}

.gbmis-feature-list label {
  min-height: 28px;
}

.gbmis-admin-context-grid {
  align-items: stretch;
}

.gbmis-admin-context-card {
  min-height: 190px;
}

.gbmis-admin-mini-grid article {
  transition: border-color 180ms ease, background 180ms ease;
}

.gbmis-admin-mini-grid article:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(96, 165, 250, 0.35);
}

.gbmis-risk-row:first-of-type,
.gbmis-admin-context-row:first-of-type {
  border-top: 0;
}

/* White executive theme for the global administrator workspace */
body.gbmis-super-user .gh-content:has(.gbmis-admin-dashboard) {
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
  padding: 24px !important;
}

.gbmis-admin-dashboard {
  --admin-bg: #f7faff;
  --admin-panel: #ffffff;
  --admin-panel-2: #f8fbff;
  --admin-line: #dbe6f3;
  --admin-text: #0b1f3a;
  --admin-muted: #64748b;
  --admin-blue: #0756d8;
  --admin-green: #079669;
  --admin-red: #dc2626;
  --admin-gold: #b77900;
  gap: 18px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--admin-text);
  box-shadow: none;
  scrollbar-color: rgba(7, 86, 216, 0.38) rgba(226, 232, 240, 0.75);
}

.gbmis-admin-dashboard ::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.75);
}

.gbmis-admin-dashboard ::-webkit-scrollbar-thumb {
  background: rgba(7, 86, 216, 0.38);
}

.gbmis-admin-hero {
  padding: 18px 20px;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96)),
    radial-gradient(circle at 94% 20%, rgba(14, 165, 233, 0.18), transparent 30%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.gbmis-admin-hero span {
  color: #0756d8;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.gbmis-admin-hero h1 {
  color: #0b1f3a;
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.01em;
}

.gbmis-admin-hero p {
  max-width: 620px;
  color: #64748b;
}

.gbmis-admin-hero-actions select,
.gbmis-admin-hero-actions .gh-btn {
  border-color: #cbd8ea !important;
  background-color: #ffffff !important;
  color: #0b1f3a !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.gbmis-admin-hero-actions .gh-btn-primary {
  border-color: #0756d8 !important;
  background: linear-gradient(135deg, #0756d8, #0ea5e9) !important;
  color: #ffffff !important;
}

.gbmis-admin-hero-actions select {
  background-image: linear-gradient(45deg, transparent 50%, #0756d8 50%), linear-gradient(135deg, #0756d8 50%, transparent 50%);
}

.gbmis-admin-grid {
  grid-template-columns: 1.05fr 1.05fr 1.35fr 1fr;
  gap: 16px;
}

.gbmis-admin-zone {
  gap: 11px;
}

.gbmis-admin-zone-head {
  min-height: 26px;
}

.gbmis-admin-zone-head h2 {
  color: #0b1f3a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.gbmis-admin-zone-head span {
  color: #64748b;
}

.gbmis-admin-card {
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
}

.gbmis-admin-card::before {
  background:
    linear-gradient(135deg, rgba(7, 86, 216, 0.055), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
  opacity: 1;
}

.gbmis-admin-card:hover {
  border-color: rgba(7, 86, 216, 0.28);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.09);
}

.gbmis-admin-card.glow {
  background:
    radial-gradient(circle at 92% 18%, rgba(16, 185, 129, 0.16), transparent 36%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.gbmis-admin-card small {
  color: #53657d !important;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gbmis-admin-card strong {
  color: #081a33 !important;
  font-size: clamp(24px, 1.7vw, 32px);
  letter-spacing: -0.025em;
}

.gbmis-admin-card span,
.gbmis-admin-card p,
.gbmis-admin-card em {
  color: #64748b;
}

.gbmis-admin-card .positive,
.ssl-card strong {
  color: var(--admin-green) !important;
}

.gbmis-admin-spark {
  height: 42px;
  margin-top: 12px;
  border: 1px solid #e5edf7;
  background:
    url("data:image/svg+xml,%3Csvg width='180' height='44' viewBox='0 0 180 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 31 L24 29 L43 30 L62 27 L82 28 L101 24 L121 22 L141 19 L160 17 L177 14' fill='none' stroke='%23079669' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M3 31 L24 29 L43 30 L62 27 L82 28 L101 24 L121 22 L141 19 L160 17 L177 14 L177 44 L3 44 Z' fill='%23079669' opacity='.12'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(180deg, #ffffff, #f6fbff);
}

.gbmis-admin-spark.blue {
  background:
    url("data:image/svg+xml,%3Csvg width='180' height='44' viewBox='0 0 180 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 33 L22 29 L41 31 L60 25 L79 26 L98 20 L117 21 L136 15 L155 18 L177 10' fill='none' stroke='%230756d8' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M3 33 L22 29 L41 31 L60 25 L79 26 L98 20 L117 21 L136 15 L155 18 L177 10 L177 44 L3 44 Z' fill='%230756d8' opacity='.11'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(180deg, #ffffff, #f6fbff);
}

.gbmis-admin-spark.orange {
  background:
    url("data:image/svg+xml,%3Csvg width='180' height='44' viewBox='0 0 180 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 32 L22 33 L41 29 L60 31 L79 22 L98 28 L117 15 L136 30 L155 20 L177 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M3 32 L22 33 L41 29 L60 31 L79 22 L98 28 L117 15 L136 30 L155 20 L177 24 L177 44 L3 44 Z' fill='%23f59e0b' opacity='.12'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(180deg, #ffffff, #f6fbff);
}

.gbmis-meter span {
  color: #334155;
}

.gbmis-meter b,
.gbmis-storage {
  height: 9px;
  background: #e5edf7;
}

.gbmis-meter i,
.gbmis-storage i {
  background: linear-gradient(90deg, #0756d8, #10b981);
  box-shadow: 0 0 14px rgba(7, 86, 216, 0.18);
}

.gbmis-meter i.violet,
.gbmis-storage i {
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
}

.gbmis-security-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.gbmis-card-title strong {
  color: #0b1f3a !important;
}

.gbmis-card-title a,
.gbmis-card-title button {
  background: #eef5ff;
  color: #0756d8;
}

.gbmis-card-title a:hover,
.gbmis-card-title button:hover {
  background: #dbeafe;
  color: #073f9f;
}

.audit-feed {
  max-height: 256px;
}

.audit-feed > span {
  border-bottom-color: #e5edf7;
}

.audit-feed i {
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.11);
}

.audit-feed b,
.gbmis-inline-event {
  color: #17243a;
}

.gbmis-failed-map {
  height: 132px;
  border: 1px solid #e5edf7;
  background:
    radial-gradient(circle at 20% 42%, rgba(239, 68, 68, 0.26), transparent 5%),
    radial-gradient(circle at 56% 38%, rgba(245, 158, 11, 0.28), transparent 5%),
    radial-gradient(circle at 78% 48%, rgba(239, 68, 68, 0.18), transparent 5%),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff, #eef5ff);
  background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
}

.gbmis-failed-map i {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #fff7ed 0 18%, #ef4444 34%, rgba(239, 68, 68, 0.12) 70%);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.28);
}

.gbmis-block-row {
  border-bottom-color: #e5edf7;
}

.gbmis-block-row span {
  color: #17243a;
}

.gbmis-block-row b {
  background: #fee2e2;
  color: #b91c1c;
}

.gbmis-block-row b.medium {
  background: #fef3c7;
  color: #a16207;
}

.gbmis-rbac-table th,
.gbmis-rbac-table td {
  border-color: #e5edf7;
  color: #334155;
}

.gbmis-rbac-table th {
  background: #f6f9fd;
  color: #0756d8;
}

.gbmis-rbac-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.gbmis-feature-list label {
  color: #17243a;
}

.gbmis-feature-list i {
  background: #dbe6f3;
}

.gbmis-feature-list input:checked + i {
  background: linear-gradient(90deg, #0756d8, #10b981);
}

.gbmis-banner-box {
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.gbmis-banner-box b {
  color: #b45309;
}

.gbmis-banner-box span {
  color: #17243a;
}

.gbmis-admin-context-grid {
  gap: 16px;
}

.gbmis-admin-context-main > span {
  background: #eef5ff;
  color: #0756d8;
}

.gbmis-admin-context-main b,
.gbmis-admin-context-row strong,
.gbmis-risk-row strong,
.gbmis-admin-mini-grid strong {
  color: #081a33 !important;
}

.gbmis-admin-context-main em,
.gbmis-admin-context-row span,
.gbmis-risk-row span,
.gbmis-admin-mini-grid small {
  color: #64748b !important;
}

.gbmis-admin-context-row,
.gbmis-risk-row {
  border-top-color: #e5edf7;
}

.gbmis-admin-mini-grid article {
  border-color: #e5edf7;
  background: #f8fbff;
}

.gbmis-admin-mini-grid article:hover {
  background: #eef5ff;
  border-color: rgba(7, 86, 216, 0.22);
}

.gbmis-risk-row b {
  background: #dcfce7;
  color: #047857;
}

.gbmis-risk-row b.high {
  background: #fee2e2;
  color: #b91c1c;
}

.gbmis-risk-row b.medium {
  background: #fef3c7;
  color: #a16207;
}

[data-theme="dark"] body.gbmis-super-user .gh-content:has(.gbmis-admin-dashboard),
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-card,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-hero {
  background-color: transparent !important;
}

[data-theme="dark"] body.gbmis-super-user .gh-content:has(.gbmis-admin-dashboard) {
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
}

[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard h1,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard h2,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard strong,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard b,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard p {
  color: #0b1f3a !important;
}

[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard small,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard span,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard em {
  color: #64748b !important;
}

[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard .positive,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard .ssl-card strong {
  color: #079669 !important;
}

[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard .gbmis-admin-card,
[data-theme="dark"] body.gbmis-super-user .gbmis-admin-dashboard .gbmis-admin-hero {
  border-color: #dbe6f3 !important;
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
}

@media (max-width: 1500px) {
  .gbmis-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.gbmis-super-user .gh-content:has(.gbmis-admin-dashboard) {
    padding: 14px !important;
  }

  .gbmis-admin-hero {
    padding: 16px;
  }

  .gbmis-admin-card {
    border-radius: 14px;
  }
}
