.gedo-command-dashboard {
  --command-navy: #0b1729;
  --command-navy-soft: #112b49;
  --command-blue: #2f6df6;
  --command-orange: #e78300;
  --command-red: #d83b48;
  --command-ink: #12243a;
  --command-muted: #708095;
  --command-line: #dbe3ed;
  max-width: 1440px;
  margin-inline: auto;
  color: var(--command-ink);
  font-variant-numeric: tabular-nums;
}

.gedo-command-dashboard button {
  cursor: pointer;
}

.gedo-command-dashboard button:focus-visible {
  outline: 3px solid rgba(47, 109, 246, 0.3);
  outline-offset: 3px;
}

.gedo-command-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 188px;
  padding: 30px 38px 35px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 8px 24px;
  color: #fff;
  background: var(--command-navy);
  box-shadow: 0 24px 52px -30px rgba(6, 18, 33, 0.88);
}

.gedo-command-hero::before,
.gedo-command-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.gedo-command-hero::before {
  width: 430px;
  height: 430px;
  top: -345px;
  right: 19%;
  background: #173c5d;
  box-shadow: 0 0 0 86px rgba(23, 60, 93, 0.2);
}

.gedo-command-hero::after {
  width: 220px;
  height: 220px;
  left: -132px;
  bottom: -150px;
  background: rgba(216, 59, 72, 0.42);
}

.gedo-command-hero-copy {
  max-width: 760px;
}

.gedo-command-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #f4a8ad;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.gedo-command-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.gedo-command-hero p {
  margin: 12px 0 0;
  color: #d3deea;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.8;
}

.gedo-command-hero-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  direction: rtl;
}

.gedo-period-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px 13px 5px 13px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.gedo-period-switch button,
.gedo-summary-print {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  color: #d1dbe6;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 900;
  transition: color 170ms ease, background 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.gedo-period-switch button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.gedo-period-switch button.active {
  color: #fff;
  background: var(--command-blue);
  box-shadow: 0 8px 18px -10px rgba(47, 109, 246, 0.9);
}

.gedo-summary-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  padding-inline: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
}

.gedo-summary-print:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.gedo-command-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "quick documents";
  gap: 16px;
  align-items: stretch;
  direction: ltr;
}

.gedo-quick-rail,
.gedo-document-panel {
  border: 1px solid var(--command-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px -30px rgba(11, 23, 41, 0.74);
}

.gedo-document-panel {
  grid-area: documents;
  padding: 28px 30px 30px;
  border-radius: 21px 21px 8px 21px;
  direction: rtl;
}

.gedo-quick-rail {
  grid-area: quick;
  padding: 21px 16px 13px;
  border-radius: 21px 21px 21px 8px;
  background: #f3f6fa;
  direction: rtl;
}

.gedo-quick-rail > header,
.gedo-document-panel-head {
  min-height: 71px;
}

.gedo-quick-rail > header {
  padding: 2px 8px 17px;
  border-bottom: 1px solid #d7dfe9;
}

.gedo-quick-rail header span,
.gedo-document-panel-head span {
  display: block;
  color: var(--command-muted);
  font-size: 0.65rem;
  font-weight: 850;
}

.gedo-quick-rail header h3,
.gedo-document-panel-head h3 {
  margin: 4px 0 0;
  color: var(--command-ink);
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.3;
}

.gedo-document-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.gedo-document-panel-head button {
  padding: 8px 0;
  border: 0;
  color: #315e84;
  background: transparent;
  font-size: 0.71rem;
  font-weight: 900;
  transition: color 170ms ease, transform 170ms ease;
}

.gedo-document-panel-head button:hover {
  color: var(--command-blue);
  transform: translateX(-3px);
}

.gedo-document-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gedo-command-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 138px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 17px 17px 18px;
  border: 1px solid #dce4ed;
  border-radius: 14px 14px 6px 14px;
  text-align: right;
  color: var(--command-ink);
  background: #fff;
  box-shadow: 0 8px 18px -17px rgba(11, 23, 41, 0.8);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.gedo-command-card:hover {
  z-index: 1;
  border-color: #b9c9dd;
  transform: translateY(-3px);
  box-shadow: 0 16px 26px -20px rgba(11, 23, 41, 0.58);
}

.gedo-command-card:active,
.gedo-quick-link:active {
  transform: translateY(1px) scale(0.985);
}

.gedo-command-card > b {
  position: absolute;
  top: 17px;
  inset-inline-start: 17px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px 11px 4px 11px;
  color: #275577;
  background: #e9f0f6;
  font-size: 1.17rem;
  font-weight: 900;
  box-shadow: 0 8px 16px -12px rgba(23, 60, 93, 0.55);
}

.gedo-command-card > span,
.gedo-command-card > small {
  display: block;
  max-width: 100%;
}

.gedo-command-card > span {
  font-size: 0.81rem;
  font-weight: 950;
}

.gedo-command-card > small {
  margin-top: 5px;
  color: var(--command-muted);
  font-size: 0.64rem;
  font-weight: 720;
}

.gedo-command-primary {
  color: #fff;
  border-color: var(--command-navy-soft);
  background: var(--command-navy-soft);
  box-shadow: 0 16px 28px -20px rgba(11, 23, 41, 0.85);
}

.gedo-command-primary:hover {
  border-color: #193d63;
  background: #153758;
}

.gedo-command-primary > b {
  color: #1854c8;
  background: #d9e5ff;
}

.gedo-command-primary > small {
  color: #bdcbda;
}

.gedo-command-purchase > b {
  color: #ae5f0c;
  background: #ffead1;
}

.gedo-command-expense > b {
  color: #b7202e;
  background: #ffe0e3;
}

.gedo-quick-links {
  display: grid;
}

.gedo-quick-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 65px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-bottom: 1px solid #d8e0e9;
  text-align: right;
  color: var(--command-ink);
  background: transparent;
  transition: background 170ms ease, transform 170ms ease;
}

.gedo-quick-link:last-child {
  border-bottom: 0;
}

.gedo-quick-link:hover {
  border-radius: 10px;
  background: #fff;
  transform: translateX(-2px);
}

.gedo-quick-link > b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px 11px 4px 11px;
  color: #fff;
  background: var(--command-navy-soft);
  box-shadow: 0 9px 17px -13px rgba(11, 23, 41, 0.95);
  font-size: 1rem;
}

.gedo-quick-link span strong,
.gedo-quick-link span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gedo-quick-link span strong {
  font-size: 0.75rem;
  font-weight: 950;
}

.gedo-quick-link span small {
  margin-top: 3px;
  color: var(--command-muted);
  font-size: 0.6rem;
  font-weight: 750;
}

.gedo-quick-link > em {
  color: #9aa8b6;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
}

.gedo-kpi-strip {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--command-line);
  border-radius: 18px 18px 7px 18px;
  background: var(--command-line);
  box-shadow: 0 16px 34px -29px rgba(11, 23, 41, 0.7);
}

.gedo-kpi {
  position: relative;
  min-width: 0;
  min-height: 128px;
  padding: 22px 18px 24px;
  background: #fff;
}

.gedo-kpi::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #cfd8e2;
}

.gedo-kpi span,
.gedo-kpi small {
  display: block;
  color: var(--command-muted);
  font-size: 0.64rem;
  font-weight: 780;
}

.gedo-kpi strong {
  display: block;
  overflow: hidden;
  margin: 12px 0 7px;
  color: var(--command-ink);
  font-size: clamp(1rem, 1.9vw, 1.48rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
}

.gedo-kpi-primary {
  color: #fff;
  background: var(--command-navy-soft);
}

.gedo-kpi-primary span,
.gedo-kpi-primary small,
.gedo-kpi-negative span,
.gedo-kpi-negative small {
  color: #c9d5e0;
}

.gedo-kpi-primary strong,
.gedo-kpi-negative strong {
  color: #fff;
}

.gedo-kpi-primary::after {
  background: var(--command-blue);
}

.gedo-kpi-negative {
  color: #fff;
  background: #7f2330;
}

.gedo-kpi-negative::after {
  background: #f4a0a8;
}

.gedo-kpi-purchase::after {
  background: var(--command-orange);
}

.gedo-kpi-expense::after {
  background: var(--command-red);
}

.gedo-dashboard-alerts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--command-line);
  border-radius: 15px;
  background: rgba(243, 246, 250, 0.96);
}

.gedo-dashboard-alerts .owner-queue-item {
  min-height: 68px;
}

@media (max-width: 1180px) {
  .gedo-command-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .gedo-command-hero-tools {
    width: 100%;
  }

  .gedo-command-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .gedo-document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gedo-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .gedo-command-workspace {
    display: flex;
    flex-direction: column;
    direction: rtl;
  }

  .gedo-document-panel {
    order: 1;
  }

  .gedo-quick-rail {
    order: 2;
  }

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

  .gedo-quick-link:nth-child(odd) {
    border-inline-end: 1px solid #d8e0e9;
  }

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

@media (max-width: 640px) {
  .gedo-command-dashboard {
    margin: -4px;
  }

  .gedo-command-hero {
    gap: 24px;
    min-height: 0;
    padding: 25px 19px 28px;
    border-radius: 19px 19px 7px 19px;
  }

  .gedo-command-hero h2 {
    font-size: 2rem;
  }

  .gedo-command-hero p {
    font-size: 0.72rem;
  }

  .gedo-command-hero-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .gedo-period-switch {
    grid-template-columns: repeat(3, 1fr);
  }

  .gedo-period-switch button,
  .gedo-summary-print {
    min-height: 45px;
  }

  .gedo-summary-print {
    width: 100%;
  }

  .gedo-document-panel,
  .gedo-quick-rail {
    padding: 18px 13px;
    border-radius: 17px 17px 6px 17px;
  }

  .gedo-document-panel-head {
    min-height: 90px;
  }

  .gedo-document-panel-head button {
    font-size: 0.65rem;
  }

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

  .gedo-command-card {
    min-height: 128px;
    padding: 14px;
  }

  .gedo-command-card > b {
    top: 14px;
    inset-inline-start: 14px;
  }

  .gedo-command-card > span {
    font-size: 0.74rem;
  }

  .gedo-quick-links {
    grid-template-columns: 1fr;
  }

  .gedo-quick-link:nth-child(odd) {
    border-inline-end: 0;
  }

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

  .gedo-kpi {
    min-height: 116px;
    padding: 18px 13px 21px;
  }

  .gedo-kpi-primary,
  .gedo-kpi-negative {
    grid-column: 1 / -1;
  }

  .gedo-kpi:last-child {
    grid-column: 1 / -1;
  }

  .gedo-dashboard-alerts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gedo-command-dashboard *,
  .gedo-command-dashboard *::before,
  .gedo-command-dashboard *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .gedo-command-hero-tools,
  .gedo-command-workspace,
  .gedo-dashboard-alerts {
    display: none !important;
  }

  .gedo-command-hero {
    min-height: auto;
    color: #111;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .gedo-command-hero h2,
  .gedo-command-hero p,
  .gedo-command-eyebrow {
    color: #111;
  }
}
