:root {
  --getinge-navy: #18274a;
  --getinge-bluegray: #4f6080;
  --getinge-ink: #10203d;
  --getinge-frost: #edf3f7;
  --getinge-mist: #f7fafb;
  --getinge-line: #d7e2e8;
  --getinge-green: #7aa95c;
  --getinge-cyan: #4ba3c7;
  --warning: #c99b4b;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(24, 39, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--getinge-ink);
  font-family:
    Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(237, 243, 247, 0.96), rgba(247, 250, 251, 0.98)),
    radial-gradient(circle at 80% 10%, rgba(75, 163, 199, 0.14), transparent 32%),
    var(--getinge-mist);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.dashboard-shell {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-entry-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  color: var(--white);
  background: rgba(24, 39, 74, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(16, 32, 61, 0.24);
  font-size: 13px;
  font-weight: 760;
}

.project-entry-button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--getinge-navy);
  background: var(--white);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.project-entry-button:hover {
  background: #24375f;
}

.topbar {
  min-height: 180px;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(330px, 0.95fr) minmax(280px, 0.75fr) minmax(150px, 0.42fr);
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  color: var(--white);
  background: linear-gradient(120deg, var(--getinge-navy), #24375f 62%, #31506a);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-plate {
  width: clamp(300px, 25vw, 430px);
  height: auto;
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.42);
}

.brand-unit {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.product-visual::after {
  position: absolute;
  right: 8%;
  bottom: 14px;
  left: 16%;
  height: 18px;
  content: "";
  background: rgba(2, 10, 26, 0.28);
  filter: blur(14px);
  border-radius: 50%;
}

.product-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 300px);
  height: 160px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 24px rgba(4, 14, 34, 0.28));
}

.title-group,
.report-meta {
  min-width: 0;
}

.eyebrow,
.panel-heading p,
.map-heading p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.1;
  font-weight: 680;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

.report-meta {
  justify-self: end;
  text-align: right;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.report-meta strong {
  color: var(--white);
  font-size: 20px;
}

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

.kpi {
  min-height: 106px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--getinge-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 39, 74, 0.07);
}

.kpi span,
.kpi small {
  color: var(--getinge-bluegray);
  font-size: 13px;
}

.kpi strong {
  color: var(--getinge-navy);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
  font-weight: 720;
}

.main-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(520px, 1.55fr) minmax(260px, 0.76fr);
  gap: 18px;
}

.panel,
.side-column,
.map-stage,
.ticker-panel {
  border: 1px solid var(--getinge-line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(24, 39, 74, 0.08);
}

.panel,
.map-stage,
.ticker-panel {
  background: rgba(255, 255, 255, 0.88);
}

.side-column {
  min-width: 0;
  display: grid;
  grid-template-rows: 300px minmax(0, 1fr);
  gap: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.panel {
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.panel-heading,
.map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--getinge-line);
}

.panel-heading p,
.map-heading p {
  color: var(--getinge-bluegray);
}

.metric-chip {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--getinge-navy);
  background: #e7eef4;
  border: 1px solid #d4e1ea;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
}

.rank-no {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--getinge-navy);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 760;
}

.ranking-body {
  min-width: 0;
}

.ranking-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ranking-name {
  overflow: hidden;
  color: var(--getinge-ink);
  font-size: 14px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-province {
  flex: 0 0 auto;
  color: var(--getinge-bluegray);
  font-size: 12px;
}

.bar-shell {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  background: #e8eef2;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  width: var(--bar-width);
  background: linear-gradient(90deg, var(--getinge-cyan), var(--getinge-green));
  border-radius: inherit;
}

.ranking-value {
  color: var(--getinge-navy);
  font-size: 18px;
  font-weight: 760;
  text-align: right;
}

.trend-panel {
  display: grid;
  grid-template-rows: auto minmax(218px, 1fr);
}

.trend-chart {
  width: 100%;
  height: 100%;
  min-height: 218px;
  margin-top: 10px;
}

.map-stage {
  position: relative;
  min-height: 570px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr);
  overflow: hidden;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--getinge-bluegray);
  font-size: 12px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}

.legend-dot.latest {
  background: var(--warning);
}

.legend-dot.base {
  background: var(--getinge-cyan);
}

.china-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.ticker-panel {
  min-height: 76px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  height: 100%;
  padding: 14px 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--white);
  background: var(--getinge-navy);
}

.ticker-label span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-label strong {
  font-size: 15px;
}

.ticker-window {
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--getinge-ink);
  font-size: 14px;
}

.ticker-status {
  padding: 5px 9px;
  color: var(--white);
  background: var(--getinge-green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.ticker-time {
  color: var(--getinge-bluegray);
  font-weight: 700;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 34, 0.58);
  backdrop-filter: blur(6px);
}

.project-modal__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(7, 16, 34, 0.34);
}

.project-modal__header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--white);
  background: linear-gradient(120deg, var(--getinge-navy), #2f4967);
}

.project-modal__header p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal__header h2 {
  color: var(--white);
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.project-modal__body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(320px, 0.85fr);
  gap: 0;
}

.project-form,
.project-search {
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--getinge-line);
  background: #fbfdfe;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--getinge-navy);
  background: #e7eef4;
  border: 1px solid #d4e1ea;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 760;
}

.project-form label,
.search-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.project-form label span,
.search-field span {
  color: var(--getinge-bluegray);
  font-size: 12px;
  font-weight: 760;
}

.project-form input,
.project-form select,
.search-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--getinge-ink);
  background: var(--white);
  border: 1px solid var(--getinge-line);
  border-radius: 6px;
  outline: none;
}

.project-form input:focus,
.project-form select:focus,
.search-field input:focus {
  border-color: var(--getinge-cyan);
  box-shadow: 0 0 0 3px rgba(75, 163, 199, 0.16);
}

.form-span-2 {
  grid-column: 1 / -1;
}

.project-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 760;
}

.primary-button {
  color: var(--white);
  background: var(--getinge-navy);
  border: 1px solid var(--getinge-navy);
}

.secondary-button {
  color: var(--getinge-navy);
  background: #edf3f7;
  border: 1px solid var(--getinge-line);
}

.project-search {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  background: var(--white);
}

.project-summary {
  color: var(--getinge-bluegray);
  font-size: 13px;
  font-weight: 700;
}

.project-results {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.project-result {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--getinge-ink);
  text-align: left;
  background: #f7fafb;
  border: 1px solid var(--getinge-line);
  border-radius: 6px;
}

.project-result:hover {
  border-color: #b8cfda;
  background: #edf3f7;
}

.project-result.active {
  border-color: var(--getinge-navy);
  box-shadow: inset 3px 0 0 var(--getinge-navy);
}

.project-result__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.project-result__hospital {
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-result__province {
  flex: 0 0 auto;
  color: var(--getinge-bluegray);
  font-size: 12px;
  font-weight: 760;
}

.project-result__meta {
  color: var(--getinge-bluegray);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .topbar,
  .main-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 178px;
  }

  .product-visual img {
    width: min(100%, 360px);
    height: 174px;
  }

  .report-meta {
    justify-self: start;
    text-align: left;
  }

  .main-grid {
    grid-template-areas:
      "map"
      "users"
      "right";
  }

  .ranking-panel {
    grid-area: users;
  }

  .map-stage {
    grid-area: map;
  }

  .side-column {
    grid-area: right;
    grid-template-rows: 350px auto;
  }
}

@media (max-width: 980px) {
  .project-modal__body {
    grid-template-columns: 1fr;
  }

  .project-form {
    border-right: 0;
    border-bottom: 1px solid var(--getinge-line);
  }

  .project-search {
    max-height: 320px;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    padding: 14px;
  }

  .topbar,
  .kpi,
  .panel,
  .map-stage {
    padding: 16px;
  }

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

  .ticker-panel {
    grid-template-columns: 1fr;
  }

  .ticker-label {
    min-height: 58px;
  }

  .map-stage {
    min-height: 520px;
  }

  .project-entry-button {
    top: auto;
    right: 14px;
    bottom: 14px;
  }

  .project-modal {
    padding: 12px;
  }

  .project-modal__panel {
    max-height: calc(100vh - 24px);
  }

  .project-form {
    grid-template-columns: 1fr;
  }

  .form-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-divider {
    display: none;
  }

  .logo-plate {
    width: min(100%, 310px);
  }

  .panel-heading,
  .map-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
