/* Damasa dashboard pixel layer - functional app preserved */
:root {
  --dm-page: #f6f8fc;
  --dm-card: #ffffff;
  --dm-line: #e3e8f3;
  --dm-navy: #071a44;
  --dm-muted: #536487;
  --dm-blue: #0057d9;
  --dm-red: #ef1736;
  --dm-green: #22c55e;
  --dm-orange: #f59e0b;
  --dm-cyan: #14b8a6;
  --dm-purple: #8b5cf6;
  --dm-shadow: 0 12px 30px rgba(7, 26, 68, 0.055);
}

body {
  background: var(--dm-page);
  color: var(--dm-navy);
  font-family: Inter, Manrope, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--dm-page);
}

.sidebar {
  width: 260px;
  padding: 38px 18px 40px;
  background:
    radial-gradient(circle at 56px 70px, rgba(0, 87, 217, 0.32), transparent 92px),
    linear-gradient(180deg, #00306e 0%, #001b4e 72%, #00173f 100%);
}

.brand {
  min-height: 96px;
  padding: 0 8px;
  display: block;
}

.brand-logo {
  display: block;
  width: 174px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  margin-top: 10px;
  padding-left: 44px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.menu-tree {
  gap: 16px;
  margin-top: 12px;
}

.menu-group-title {
  height: 56px;
  min-height: 56px;
  padding: 0 14px 0 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.menu-group:first-child > .menu-group-title {
  background: var(--dm-red);
  box-shadow: 0 14px 28px rgba(239, 23, 54, 0.28);
}

.menu-branch {
  margin: 8px 0 0 52px;
  gap: 4px;
}

.menu-child {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.menu-child.active,
.menu-child:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.sync-card {
  min-height: 78px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(0, 14, 43, 0.32);
}

.status-dot {
  width: 15px;
  height: 15px;
}

.main {
  padding: 0;
  background: var(--dm-page);
}

.topbar {
  height: 88px;
  min-height: 88px;
  margin: 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 420px minmax(492px, auto);
  align-items: center;
  gap: 30px;
  border: 0;
  border-bottom: 1px solid #e9eef7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.topbar-left {
  gap: 22px;
}

.top-menu-button {
  position: relative;
  width: 28px;
  height: 28px;
  min-height: 28px;
  color: #0a2558;
}

.top-brand,
.top-brand-logo {
  width: 126px;
  height: 36px;
}

.top-brand-logo {
  object-fit: contain;
  object-position: left center;
}

.topbar h1 {
  font-size: 24px;
  font-weight: 900;
  color: var(--dm-navy);
}

.top-search {
  width: 420px;
  height: 52px;
  border: 1px solid #d9e1f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.top-search input {
  color: var(--dm-navy);
  font-size: 14px;
  font-weight: 600;
}

.top-search input::placeholder {
  color: #8290ad;
}

.top-actions {
  justify-content: flex-end;
  gap: 14px;
}

#backupBtn,
#restoreBtn {
  width: 130px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid #d9e1f2;
  border-radius: 9px;
  background: #fff;
  color: #082558;
  font-size: 15px;
  font-weight: 900;
}

.notification-button,
.admin-menu {
  height: 52px;
}

.admin-avatar {
  width: 52px;
  height: 52px;
}

.install-button {
  display: none;
}

.view.active {
  padding: 0;
}

.main > .notice.origin-warning,
.origin-warning {
  height: 78px;
  min-height: 78px;
  margin: 24px 24px 18px;
  padding: 18px 56px 16px 66px;
  border: 1px solid #bfd2ff;
  border-radius: 10px;
  background: #f3f7ff;
  box-shadow: none;
  color: #001f52;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.origin-warning[hidden] {
  display: none;
}

.dashboard-frame {
  padding: 0 24px 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card,
.dashboard-card.compact {
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--dm-line);
  border-radius: 16px;
  background: var(--dm-card);
  box-shadow: var(--dm-shadow);
}

.dashboard-card:nth-child(-n + 3) {
  height: 160px;
}

.dashboard-card:nth-child(n + 4):nth-child(-n + 6) {
  height: 145px;
}

.dashboard-card:nth-child(n + 7) {
  height: 220px;
}

.dashboard-card-head h2 {
  color: var(--dm-navy);
  font-size: 17px;
  font-weight: 900;
}

.dashboard-card-head span {
  color: var(--dm-muted);
  font-size: 14px;
  font-weight: 700;
}

.erp-icon-head {
  gap: 18px;
}

.erp-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.dashboard-card:nth-child(n + 4):nth-child(-n + 6) .erp-card-icon {
  width: 56px;
  height: 56px;
}

.erp-card-icon.blue {
  background: linear-gradient(135deg, #eef3ff, #e6edff);
  color: var(--dm-blue);
}

.erp-card-icon.purple {
  background: linear-gradient(135deg, #f3edff, #ebe2ff);
  color: var(--dm-purple);
}

.erp-card-icon.cyan {
  background: linear-gradient(135deg, #e4fbfb, #d8f6f3);
  color: #0a9fb5;
}

.erp-card-icon.green {
  background: linear-gradient(135deg, #e7fbef, #d9f8e4);
  color: #16a34a;
}

.erp-card-icon.red {
  background: linear-gradient(135deg, #ffe8ee, #ffdce5);
  color: var(--dm-red);
}

.erp-icon-head strong {
  margin-top: 18px;
  color: #020817;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-bars {
  min-height: 0;
  margin-top: 50px;
  gap: 26px;
}

.dashboard-vbar span {
  color: #061437;
  font-size: 15px;
}

.dashboard-vbar i {
  height: 5px;
  min-height: 5px;
}

.dashboard-vbar small,
.dashboard-kpi-row span,
.dashboard-split-kpi span {
  color: #33476d;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-kpi-row,
.dashboard-split-kpi {
  min-height: 70px;
  margin-top: auto;
  align-items: end;
}

.dashboard-kpi-row strong,
.dashboard-split-kpi strong {
  color: #020817;
  font-size: 30px;
  font-weight: 900;
}

.dashboard-kpi-row .danger strong {
  color: var(--dm-red);
}

.dashboard-kpi-row .warning strong {
  color: #f05a00;
}

.dashboard-donut-row {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  margin-top: 17px;
}

.dashboard-donut {
  width: 96px;
}

.dashboard-donut::after {
  inset: 26px;
}

.dashboard-donut span {
  font-size: 21px;
  color: var(--dm-navy);
}

.dashboard-legend {
  gap: 9px;
}

.dashboard-legend div {
  color: #344a75;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-legend i {
  width: 12px;
  height: 12px;
}

.horizontal-bars {
  margin-top: 36px;
  gap: 14px;
}

.horizontal-bar-row {
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  gap: 15px;
  color: var(--dm-navy);
  font-size: 14px;
  font-weight: 900;
}

.horizontal-bar-row div {
  height: 19px;
  background: #edf1f7;
}

.dashboard-list {
  margin-top: 14px;
}

.dashboard-list-item {
  min-height: 41px;
  border-bottom: 1px solid #e7edf6;
}

.dashboard-list-item strong,
.dashboard-list-item span {
  color: #173d78;
}

.number-mark {
  width: 62px;
  min-height: 30px;
  border: 1px solid #c5d8f4;
  border-radius: 7px;
  background: #f3f8ff;
  color: #0757bf;
}

.menu-icon::before,
.erp-card-icon::before {
  border: 0;
  background: currentColor;
  box-shadow: none;
  -webkit-mask: var(--dm-icon) center / contain no-repeat;
  mask: var(--dm-icon) center / contain no-repeat;
}

.menu-icon::before {
  width: 22px;
  height: 22px;
}

.erp-card-icon::before {
  width: 31px;
  height: 31px;
  content: "";
}

.menu-icon-control { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/g%3E%3C/svg%3E"); }
.menu-icon-dispatch { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17h4V5H2v12h3'/%3E%3Cpath d='M14 8h4l4 4v5h-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='2.5'/%3E%3Ccircle cx='16.5' cy='17.5' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.menu-icon-dashboard { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-9-9v9z'/%3E%3Cpath d='M12 3a9 9 0 0 1 9 9h-9z'/%3E%3C/g%3E%3C/svg%3E"); }
.menu-icon-summary { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h6'/%3E%3C/g%3E%3C/svg%3E"); }
.menu-icon-system { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06A1.65 1.65 0 0 0 15 19.4a1.65 1.65 0 0 0-1 .6V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 8 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.6 15a1.65 1.65 0 0 0-1-.6H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 8a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.6a1.65 1.65 0 0 0 1-.6V3a2 2 0 1 1 4 0v.09A1.65 1.65 0 0 0 16 4.6a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9c.24.39.6.72 1 .9H21a2 2 0 1 1 0 4h-.09A1.65 1.65 0 0 0 19.4 15z'/%3E%3C/g%3E%3C/svg%3E"); }
.menu-icon-account,
.menu-icon-personal { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.menu-icon-master { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3Cpath d='M8 7h8M8 11h8M8 15h5'/%3E%3C/g%3E%3C/svg%3E"); }
.erp-card-icon.blue { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8l9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/g%3E%3C/svg%3E"); }
.erp-card-icon.purple { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4h6'/%3E%3Cpath d='M9 9h6'/%3E%3C/g%3E%3C/svg%3E"); }
.erp-card-icon.cyan { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/g%3E%3C/svg%3E"); }
.erp-card-icon.pin { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/g%3E%3C/svg%3E"); }
.erp-card-icon.green { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8l-9-5-9 5v8l9 5 9-5z'/%3E%3Cpath d='M3.3 7.7 12 12l8.7-4.3'/%3E%3Cpath d='M12 22V12'/%3E%3C/g%3E%3C/svg%3E"); }
.erp-card-icon.red { --dm-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 17h.01'/%3E%3C/g%3E%3C/svg%3E"); }

@media (max-width: 1360px) {
  .topbar {
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 420px);
    height: auto;
    min-height: 88px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .top-actions {
    grid-column: 1 / -1;
  }
}

/* Screenshot exactness pass: compact no-scroll reference layout */
body {
  overflow: hidden;
}

.sidebar {
  padding-top: 26px;
}

.brand {
  min-height: 118px;
}

.brand-logo {
  width: 188px;
  height: 54px;
}

.menu-tree {
  gap: 12px;
}

.sync-card {
  margin-bottom: 0;
}

.topbar {
  height: 96px;
  min-height: 96px;
  padding: 0 30px;
}

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

.top-brand,
.top-brand-logo {
  width: 116px;
  height: 32px;
}

.dashboard-frame {
  padding: 0 22px 18px;
}

.main > .notice.origin-warning,
.origin-warning {
  height: 70px;
  min-height: 70px;
  margin: 22px 22px 18px;
  padding-top: 14px;
  padding-bottom: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.dashboard-grid {
  gap: 16px;
}

.dashboard-card,
.dashboard-card.compact {
  padding: 20px 24px;
}

.dashboard-card:nth-child(-n + 3) {
  height: 154px;
}

.dashboard-card:nth-child(n + 4):nth-child(-n + 6) {
  height: 146px;
}

.dashboard-card:nth-child(n + 7) {
  height: 214px;
}

.erp-card-icon {
  width: 58px;
  height: 58px;
}

.dashboard-card:nth-child(n + 4):nth-child(-n + 6) .erp-card-icon {
  width: 50px;
  height: 50px;
}

.erp-card-icon::before {
  width: 27px;
  height: 27px;
}

.dashboard-card-head h2 {
  font-size: 16px;
}

.dashboard-card-head span {
  font-size: 13px;
}

.erp-icon-head strong {
  font-size: 30px;
}

.dashboard-card:nth-child(1) .dashboard-card-head,
.dashboard-card:nth-child(2) .dashboard-card-head,
.dashboard-card:nth-child(3) .dashboard-card-head {
  min-height: 78px;
}

.dashboard-card:nth-child(1) .erp-icon-head strong {
  margin-top: 14px;
  font-size: 30px;
}

.dashboard-bars {
  gap: 24px;
}

.dashboard-vbar span {
  font-size: 13px;
}

.dashboard-vbar small,
.dashboard-kpi-row span,
.dashboard-split-kpi span {
  font-size: 12px;
}

.dashboard-kpi-row strong,
.dashboard-split-kpi strong {
  font-size: 26px;
}

.dashboard-card:nth-child(6) .dashboard-kpi-row strong {
  font-size: 26px;
}

.dashboard-card:nth-child(5) .dashboard-donut-row {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  height: 76px;
  flex-basis: 76px;
  margin-top: 8px;
}

.dashboard-card:nth-child(5) .dashboard-donut {
  width: 78px;
}

.dashboard-card:nth-child(5) .dashboard-donut::after {
  inset: 21px;
}

.dashboard-card:nth-child(5) .dashboard-donut span {
  font-size: 18px;
}

.dashboard-legend div {
  font-size: 12px;
}

.horizontal-bars {
  margin-top: 28px;
  gap: 10px;
}

.horizontal-bar-row {
  font-size: 13px;
}

.horizontal-bar-row div {
  height: 17px;
}

.dashboard-list-item {
  min-height: 37px;
}

.dashboard-list-item strong {
  font-size: 13px;
}

.dashboard-list-item span {
  font-size: 12px;
}

.number-mark {
  min-height: 28px;
  font-size: 12px;
}

/* Damasa dashboard correction pass: match visual reference without clipping */
.dashboard-card,
.dashboard-card.compact {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-card:nth-child(-n + 3) {
  height: 228px;
}

.dashboard-card:nth-child(n + 4):nth-child(-n + 6) {
  height: 212px;
}

.dashboard-card:nth-child(n + 7) {
  height: 260px;
}

.dashboard-card:nth-child(1) .dashboard-card-head,
.dashboard-card:nth-child(2) .dashboard-card-head,
.dashboard-card:nth-child(3) .dashboard-card-head {
  min-height: 86px;
}

.dashboard-card:nth-child(1) .erp-icon-head strong {
  margin-top: 16px;
  font-size: 34px;
}

.dashboard-card:nth-child(1) .dashboard-bars {
  margin-top: auto;
}

.dashboard-card:nth-child(2) .dashboard-kpi-row,
.dashboard-card:nth-child(3) .dashboard-split-kpi,
.dashboard-card:nth-child(4) .dashboard-split-kpi,
.dashboard-card:nth-child(6) .dashboard-kpi-row {
  margin-top: auto;
}

.dashboard-card:nth-child(2) .dashboard-kpi-row,
.dashboard-card:nth-child(3) .dashboard-split-kpi {
  min-height: 72px;
}

.dashboard-card:nth-child(4) .dashboard-split-kpi,
.dashboard-card:nth-child(6) .dashboard-kpi-row {
  min-height: 68px;
}

.dashboard-card:nth-child(5) .dashboard-donut-row {
  margin-top: 14px;
  min-height: 0;
  height: 92px;
  flex: 0 0 92px;
  align-items: center;
}

.dashboard-card:nth-child(5) .dashboard-donut {
  width: 92px;
}

.dashboard-card:nth-child(5) .dashboard-donut::after {
  inset: 24px;
}

.dashboard-card:nth-child(5) .dashboard-donut span {
  font-size: 20px;
}

.dashboard-card:nth-child(6) .dashboard-kpi-row strong {
  font-size: 30px;
}

.dashboard-card:nth-child(7) .horizontal-bars {
  margin-top: 36px;
}

.dashboard-card:nth-child(8) .dashboard-list {
  margin-top: auto;
}

.dashboard-card:nth-child(8) .dashboard-list-item {
  min-height: 68px;
}

.dashboard-card:nth-child(9) .dashboard-list {
  margin-top: 14px;
  gap: 0;
}

.dashboard-card:nth-child(9) .dashboard-list-item {
  min-height: 43px;
  padding: 0;
}

/* Final compact override: reference screenshot proportions */
body {
  overflow: hidden;
}

.topbar {
  height: 96px;
  min-height: 96px;
}

.origin-warning {
  height: 70px;
  min-height: 70px;
  margin: 22px 22px 18px;
  padding-top: 14px;
  padding-bottom: 12px;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.dashboard-frame {
  padding: 0 22px 18px;
}

.dashboard-grid {
  gap: 16px;
}

.dashboard-card:nth-child(-n + 3) {
  height: 154px;
}

.dashboard-card:nth-child(n + 4):nth-child(-n + 6) {
  height: 146px;
}

.dashboard-card:nth-child(n + 7) {
  height: 214px;
}

.dashboard-card,
.dashboard-card.compact {
  padding: 20px 24px;
}

.dashboard-card:nth-child(1) .dashboard-card-head,
.dashboard-card:nth-child(2) .dashboard-card-head,
.dashboard-card:nth-child(3) .dashboard-card-head {
  min-height: 78px;
}

.erp-card-icon {
  width: 58px;
  height: 58px;
}

.dashboard-card:nth-child(n + 4):nth-child(-n + 6) .erp-card-icon {
  width: 50px;
  height: 50px;
}

.dashboard-card-head h2 {
  font-size: 16px;
}

.dashboard-card-head span {
  font-size: 13px;
}

.dashboard-card:nth-child(1) .erp-icon-head strong {
  margin-top: 14px;
  font-size: 30px;
}

.dashboard-kpi-row strong,
.dashboard-split-kpi strong {
  font-size: 26px;
}

.dashboard-card:nth-child(6) .dashboard-kpi-row strong {
  font-size: 26px;
}

.dashboard-card:nth-child(5) .dashboard-donut-row {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  height: 60px;
  min-height: 0;
  flex: 0 0 60px;
  margin-top: 2px;
}

.dashboard-card:nth-child(5) .dashboard-donut {
  width: 60px;
}

.dashboard-card:nth-child(5) .dashboard-donut::after {
  inset: 17px;
}

.dashboard-card:nth-child(5) .dashboard-donut span {
  font-size: 15px;
}

.dashboard-card:nth-child(5) .dashboard-legend {
  gap: 5px;
}

.dashboard-card:nth-child(5) .dashboard-legend div {
  font-size: 11px;
}

.dashboard-card:nth-child(5) .dashboard-legend i {
  width: 9px;
  height: 9px;
}

.horizontal-bars {
  margin-top: 28px;
  gap: 10px;
}

.dashboard-list-item {
  min-height: 37px;
}

.dashboard-card:nth-child(9) .dashboard-list-item {
  min-height: 37px;
}
