:root {
  --bg: #f6f8f7;
  --panel: #ffffff;
  --line: #dde5e2;
  --text: #132d3a;
  --muted: #63737a;
  --green: #2f8d4e;
  --green-soft: #e8f5ed;
  --teal: #10384f;
  --blue: #2f6fb2;
  --red: #c84747;
  --orange: #d98624;
  --shadow: 0 16px 40px rgba(16, 56, 79, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(246, 248, 247, 0.82), rgba(232, 250, 247, 0.72)),
    url("./login-background.jpg") center / cover fixed;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(246, 248, 247, 0.28);
}

.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.login-card-wide {
  width: min(760px, 100%);
}

.login-choice-card {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card-form {
  width: min(520px, 100%);
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.portal-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.portal-choice {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  text-align: left;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(16, 56, 79, 0.08);
}

.portal-choice:hover {
  border-color: #9ed8c0;
  transform: translateY(-1px);
}

.portal-choice span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.portal-choice strong {
  display: block;
  font-size: 26px;
}

.portal-choice.admin {
  background: #f8fbfc;
}

.back-link {
  width: fit-content;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 800;
  padding: 0;
}

.access-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfc;
}

.access-box h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.admin-access {
  background: #f8fbfc;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 224px;
  height: 74px;
  object-fit: contain;
}

.login-title {
  margin: 28px 0 8px;
  font-size: 24px;
}

.helper {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 700;
  font-size: 14px;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
}

.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.error {
  min-height: 22px;
  color: var(--red);
  font-size: 14px;
}

.demo-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px 14px;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pharmacy-context {
  text-align: right;
}

.pharmacy-context strong {
  display: block;
  font-size: 17px;
}

.pharmacy-context span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 18px;
}

.tab {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 13px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
}

.tab.active {
  background: var(--green-soft);
  border-color: #c9e7d4;
  color: var(--green);
}

.pdf-export-btn {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  padding: 10px 13px;
  font-weight: 700;
  white-space: nowrap;
}

.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 48px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.sub-heading {
  margin-top: 34px;
}

.sub-heading h1 {
  font-size: 28px;
}

.logout-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 700;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.admin-table th {
  background: #f5f8f7;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-table code {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 6px;
  background: #edf3f1;
  color: var(--teal);
  font-weight: 800;
}

.admin-actions {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 8px;
}

.admin-actions input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.admin-objectives-panel {
  display: grid;
  gap: 16px;
}

.admin-objectives-filter,
.admin-objectives-summary,
.admin-mission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-objectives-filter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.admin-objectives-filter span,
.admin-objectives-summary span,
.admin-mission-head span,
.admin-mission-meta span,
.admin-mission-details span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-objectives-filter strong {
  display: block;
  margin-top: 7px;
  color: var(--teal);
  font-size: 24px;
  line-height: 1.15;
}

.admin-objectives-filter label {
  display: grid;
  gap: 8px;
  min-width: 320px;
}

.admin-objectives-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--text);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
}

.admin-objectives-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.admin-objectives-summary div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.admin-objectives-summary div:last-child {
  border-right: 0;
}

.admin-objectives-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 22px;
  line-height: 1.15;
}

.admin-mission-grid {
  display: grid;
  gap: 14px;
}

.admin-mission-card {
  padding: 20px;
}

.admin-mission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.admin-mission-head strong {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 22px;
  line-height: 1.15;
}

.admin-mission-meta {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.admin-mission-meta div {
  border-radius: 8px;
  background: #f7faf9;
  padding: 13px;
}

.admin-mission-meta strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.admin-mission-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-mission-details p {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.45;
}

.admin-empty-missions {
  border: 1px dashed rgba(16, 56, 79, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  display: grid;
  gap: 6px;
  padding: 22px;
}

.admin-empty-missions strong {
  color: var(--teal);
  font-size: 18px;
}

.ro-panel {
  display: grid;
  gap: 18px;
}

.ro-category {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ro-category h2 {
  margin: 0;
  padding: 16px 18px;
  font-size: 18px;
  color: var(--teal);
  background: #fbfcfc;
  border-bottom: 1px solid var(--line);
}

.ro-table-wrap {
  overflow-x: auto;
}

.ro-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.ro-table th,
.ro-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.ro-table tr:last-child td {
  border-bottom: 0;
}

.ro-table th {
  background: #f5f8f7;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.attainment {
  width: 120px;
  height: 9px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
  vertical-align: middle;
}

.attainment span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}

.attainment.pdm span {
  background: var(--blue);
}

.ro-status {
  display: inline-flex;
  justify-content: center;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 12px;
}

.ro-status.ok {
  background: #e8f5ed;
  color: var(--green);
}

.ro-status.progress {
  background: #fff4df;
  color: var(--orange);
}

.ro-status.ko {
  background: #fdecec;
  color: var(--red);
}

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

.segment-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 56, 79, 0.07);
  padding: 20px;
}

.segment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.segment-head h2 {
  margin: 0;
  color: var(--teal);
  font-size: 20px;
  font-weight: 600;
}

.segment-head p,
.segment-total span,
.segment-progress span,
.mini-donut-row small {
  color: var(--muted);
  font-size: 13px;
}

.segment-head p {
  margin: 6px 0 0;
}

.segment-total {
  text-align: right;
}

.segment-total strong {
  display: block;
  margin-top: 5px;
  color: var(--teal);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.segment-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding-top: 16px;
}

.dual-segment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
}

.segment-subpanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.segment-subpanel.pharmacy {
  background: #f8fbfc;
}

.subpanel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.subpanel-title strong {
  color: var(--teal);
  font-size: 18px;
  font-weight: 600;
}

.metric-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.metric-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf3f1;
  color: var(--muted);
  font-size: 11px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 3px solid var(--green);
}

.legend-bar {
  width: 16px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

.donut-list {
  display: grid;
  gap: 12px;
}

.mini-donut-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-donut {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--c) calc(var(--p) * 1%), #e8eeeb 0);
  flex: 0 0 auto;
}

.mini-donut span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.mini-donut-row strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.mini-donut-row small {
  display: block;
  margin-top: 3px;
}

.segment-progress {
  align-self: center;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.segment-progress strong {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.soft-progress {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
}

.soft-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8bd0c8, var(--green));
}

.progress-with-label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.progress-with-label .soft-progress {
  margin-top: 0;
}

.progress-with-label strong {
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
}

.pharmacy-dashboard .segment-card {
  background: rgba(255, 255, 255, 0.9);
}

.pharmacy-list {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.pharmacy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.pharmacy-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.pharmacy-line.compact {
  padding: 8px 0;
}

.pharmacy-line strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.pharmacy-line span {
  display: block;
  margin-top: 3px;
  color: var(--teal);
  font-size: 20px;
  font-weight: 500;
}

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

.summary-table th,
.summary-table td {
  padding: 17px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.summary-table th {
  background: #fbfcfc;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.summary-table tr:last-child td {
  border-bottom: 0;
}

.family-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.family-accent {
  width: 5px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
}

.family-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.lab-name {
  font-weight: 600;
}

.amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.evol {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.evol.up {
  color: var(--green);
}

.evol.down {
  color: var(--red);
}

.detail-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}

.data-hub-grid,
.sellin-grid {
  display: grid;
  gap: 16px;
}

.data-hub-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.data-hub-card,
.sellin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.data-hub-card:hover,
.sellin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 56, 79, 0.12);
  border-color: rgba(47, 141, 78, 0.28);
}

.data-hub-card {
  position: relative;
  min-height: 285px;
  padding: 28px;
  border-left: 0;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 56, 79, 0.1);
}

.data-hub-card.secondary {
  border-left-color: transparent;
}

.data-hub-card.summary {
  border-left-color: var(--teal);
}

.data-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 6px solid var(--green);
  pointer-events: none;
}

.data-hub-card.secondary::before {
  border-top-color: var(--blue);
}

.data-hub-card span,
.sellin-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.data-hub-card .hub-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 11px;
  font-size: 12px;
  letter-spacing: 0;
}

.data-hub-card.secondary .hub-kicker {
  background: #e9f2fb;
  color: var(--blue);
}

.data-hub-card strong {
  display: block;
  margin-top: 18px;
  color: var(--teal);
  font-size: 30px;
  line-height: 1.15;
}

.data-hub-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.soguastat-card img {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 150px;
  max-width: 34%;
  height: auto;
  opacity: 0.92;
}

.soguastat-card strong {
  color: var(--blue);
}

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

.sellin-card {
  min-height: 142px;
  padding: 18px;
  border-top: 5px solid var(--accent);
}

.sellin-card strong {
  display: block;
  margin-top: 16px;
  color: var(--teal);
  font-size: 24px;
}

.sellin-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.placeholder-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
}

.placeholder-panel strong {
  display: block;
  color: var(--teal);
  font-size: 22px;
}

.placeholder-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.strategy-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.mission-sidebar {
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(47, 141, 78, 0.12), rgba(41, 128, 185, 0.08));
  padding: 22px;
  min-height: 100%;
}

.mission-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mission-sidebar-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mission-sidebar-head strong {
  display: block;
  margin-top: 9px;
  color: var(--teal);
  font-size: 22px;
  line-height: 1.15;
}

.mission-sidebar p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.mission-add {
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mission-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.mission-card {
  border: 1px solid rgba(16, 56, 79, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.mission-card:hover,
.mission-card.active {
  border-color: rgba(47, 141, 78, 0.34);
  background: #fff;
  box-shadow: 0 10px 22px rgba(16, 56, 79, 0.1);
  transform: translateY(-1px);
}

.mission-card.active {
  box-shadow: inset 4px 0 0 var(--green), 0 10px 22px rgba(16, 56, 79, 0.1);
}

.mission-card-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-card strong {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.2;
}

.mission-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.mission-list-empty {
  border: 1px dashed rgba(16, 56, 79, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.mission-list-empty strong {
  color: var(--teal);
  font-size: 16px;
}

.strategy-intro {
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(47, 141, 78, 0.12), rgba(41, 128, 185, 0.08));
  padding: 22px;
  min-height: 100%;
}

.strategy-intro span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.strategy-intro strong {
  display: block;
  margin-top: 12px;
  color: var(--teal);
  font-size: 24px;
  line-height: 1.15;
}

.strategy-intro p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.strategy-recap {
  margin-top: 22px;
  border-top: 1px solid rgba(16, 56, 79, 0.12);
  padding-top: 18px;
}

.strategy-empty {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.strategy-empty strong {
  margin: 0;
  color: var(--teal);
  font-size: 16px;
}

.strategy-recap-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.strategy-recap-head span,
.strategy-recap-kpis span,
.strategy-recap-text span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.strategy-recap-head strong {
  display: block;
  margin-top: 5px;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.2;
}

.strategy-pill {
  border-radius: 999px;
  background: #fff;
  color: var(--green) !important;
  padding: 6px 10px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(47, 141, 78, 0.22);
}

.strategy-recap-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.strategy-recap-kpis div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
}

.strategy-recap-kpis strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.strategy-recap-text {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.strategy-recap-text p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.42;
}

.strategy-recap em {
  color: var(--muted);
  font-style: italic;
}

.strategy-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.strategy-form-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.strategy-form-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.strategy-form-head strong {
  display: block;
  margin-top: 5px;
  color: var(--teal);
  font-size: 24px;
  line-height: 1.15;
}

.strategy-field {
  display: grid;
  gap: 8px;
}

.strategy-field.full,
.strategy-field.wide,
.strategy-actions {
  grid-column: 1 / -1;
}

.strategy-field label {
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
}

.strategy-field input,
.strategy-field select,
.strategy-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.strategy-field select {
  min-height: 47px;
}

.strategy-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

.strategy-field input:focus,
.strategy-field select:focus,
.strategy-field textarea:focus {
  border-color: rgba(47, 141, 78, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 141, 78, 0.11);
  background: #fff;
}

.strategy-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 4px;
}

.strategy-status {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.strategy-save {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  padding: 13px 18px;
  font-weight: 700;
}

.strategy-delete {
  border: 1px solid rgba(211, 59, 59, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  padding: 13px 18px;
  font-weight: 700;
  margin-right: auto;
}

.detail-page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-title {
  border-left: 5px solid var(--green);
  padding: 20px 24px;
  background: #fbfcfc;
  border-bottom: 1px solid var(--line);
}

.detail-title strong {
  display: block;
  font-size: 18px;
}

.detail-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.excel-dashboard {
  padding: 22px 24px 24px;
  border-bottom: 1px solid var(--line);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.kpi-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.kpi-box strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.visual-panel,
.objective-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visual-panel {
  padding: 18px;
}

.visual-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.visual-title h2,
.objective-panel h2 {
  margin: 0;
  font-size: 18px;
}

.visual-title span,
.objective-kicker,
.meter-head span {
  color: var(--muted);
  font-size: 13px;
}

.bar-chart,
.share-chart {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 92px;
  align-items: center;
  gap: 12px;
}

.bar-label,
.bar-value {
  font-weight: 800;
  font-size: 13px;
}

.bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bar-track,
.share-track,
.meter-track {
  height: 12px;
  background: #e8eeeb;
  border-radius: 999px;
  overflow: hidden;
}

.bar-track span,
.share-track span,
.meter-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.share-row {
  display: grid;
  gap: 7px;
}

.share-head,
.meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.share-head strong {
  font-size: 13px;
}

.share-head span,
.meter-head strong {
  font-weight: 900;
  color: var(--teal);
}

.objective-panel {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  background: #fbfcfc;
}

.objective-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.objective-meter {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.meter-head strong {
  font-size: 28px;
}

.meter-track {
  margin-top: 10px;
  height: 14px;
}

.excel-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.excel-kpi,
.family-stat,
.excel-objective-card,
.excel-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.excel-kpi {
  padding: 16px;
  min-height: 150px;
}

.excel-kpi h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--teal);
}

.excel-kpi strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
}

.kpi-period {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.kpi-evol {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 900;
  font-size: 18px;
}

.kpi-evol.up {
  color: var(--green);
}

.kpi-evol.down {
  color: var(--red);
}

.excel-kpi.global {
  background: #fbfcfc;
}

.excel-objective-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 16px;
}

.excel-objective-card h2 {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.excel-objective-card strong {
  display: block;
  margin-top: 8px;
  font-size: 48px;
  line-height: 1;
  color: var(--green);
}

.excel-objective-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.threshold-gauge {
  display: grid;
  gap: 8px;
}

.gauge-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
}

.gauge-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d98624, var(--green));
}

.gauge-target {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 26px;
  background: var(--teal);
}

.gauge-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.excel-two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pdm-circles {
  display: flex;
  justify-content: space-around;
  gap: 14px;
}

.pdm-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #fff 0 53%, transparent 54%),
    conic-gradient(var(--c) calc(var(--p) * 1%), #e8eeeb 0);
}

.pdm-circle strong {
  display: block;
  font-size: 24px;
}

.pdm-circle span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.excel-notice {
  padding: 18px;
  background: #fbfcfc;
}

.excel-notice h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.excel-notice p {
  margin: 10px 0 0;
  line-height: 1.42;
  color: var(--text);
}

.family-excel-grid {
  display: grid;
  gap: 16px;
}

.bio-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.bio-table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.bio-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bio-table th,
.bio-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.bio-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  background: #f5f8f7;
}

.bio-table th:nth-child(1),
.bio-table td:nth-child(1) {
  width: 18%;
}

.bio-table th:nth-child(2),
.bio-table td:nth-child(2),
.bio-table th:nth-child(5),
.bio-table td:nth-child(5) {
  width: 8%;
  text-align: center;
}

.bio-table th:nth-child(3),
.bio-table td:nth-child(3) {
  width: 48%;
}

.bio-table th:nth-child(4),
.bio-table td:nth-child(4) {
  width: 18%;
  text-align: center;
}

.lab-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 82px;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

.lab-pill.zentiva {
  background: var(--green);
}

.lab-pill.teva {
  background: var(--blue);
}

.cno-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.ortho-theme {
  grid-template-columns: repeat(5, 1fr);
}

.ortho-theme .excel-kpi h3,
.ortho-theme-panel .visual-title h2,
.ortho-rfa-simple .visual-title h2,
.ortho-rfa-simple .rfa-simple-list strong {
  color: #b8661d;
}

.ortho-rfa-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.ortho-rfa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ortho-rfa-card {
  overflow: hidden;
  border: 1px solid #cfd6e6;
  border-radius: 4px;
  background: #f6f7ff;
}

.ortho-rfa-card h3 {
  margin: 0;
  padding: 8px;
  text-align: center;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.ortho-rfa-card.blue h3 {
  background: #2f2caf;
}

.ortho-rfa-card.light h3 {
  background: #d7ddf4;
  color: #101d3a;
}

.ortho-rfa-card.purple h3,
.ortho-rfa-card.sigvaris h3 {
  background: #a775ed;
}

.ortho-rfa-card table,
.ortho-growth-card table {
  width: 100%;
  border-collapse: collapse;
}

.ortho-rfa-card th,
.ortho-rfa-card td,
.ortho-growth-card th,
.ortho-growth-card td {
  border: 1px solid #c8ccd8;
  padding: 5px 8px;
  font-size: 13px;
}

.ortho-rfa-card th {
  background: #eef1fb;
  color: #1b2f76;
  font-weight: 700;
}

.ortho-rfa-card td:last-child,
.ortho-growth-card td:last-child {
  text-align: center;
  color: #1f2e9a;
  font-weight: 800;
}

.thuasne-growth {
  border-top: 1px solid #c8ccd8;
  background: #eef1fb;
}

.thuasne-growth strong {
  display: block;
  padding: 6px 8px;
  background: #2f2caf;
  color: #fff;
  font-size: 13px;
}

.thuasne-growth div {
  display: grid;
  grid-template-columns: 1fr 64px;
  border-top: 1px solid #c8ccd8;
}

.thuasne-growth span,
.thuasne-growth b {
  padding: 5px 8px;
  font-size: 13px;
}

.thuasne-growth b {
  color: #1f2e9a;
  text-align: center;
}

.sigvaris-tables {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.sigvaris-mini {
  border: 1px solid #6f7480;
  background: #fff;
}

.sigvaris-mini h4 {
  margin: 0;
  padding: 6px 8px;
  color: #2763cc;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.sigvaris-mini th {
  background: #2861e3;
  color: #fff;
  font-size: 12px;
}

.sigvaris-mini td {
  background: #ededed;
  font-size: 12px;
}

.cno-stat h3 {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 15px;
}

.cno-stat.total {
  background: #fbfcfc;
}

.cno-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.cno-clean-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cno-main-panel,
.cno-pdm-panel {
  min-height: 300px;
}

.cno-bars {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.cno-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 100px;
  align-items: center;
  gap: 16px;
}

.cno-bar-row > div:first-child strong,
.rfa-list strong {
  display: block;
  color: var(--teal);
  font-size: 15px;
}

.cno-bar-row > div:first-child span {
  display: block;
  margin-top: 5px;
  font-weight: 900;
}

.cno-bar-track {
  height: 34px;
  border-radius: 8px;
  background: #e8eeeb;
  overflow: hidden;
}

.cno-bar-track span {
  display: block;
  height: 100%;
  border-radius: 8px;
}

.cno-bar-values {
  text-align: right;
}

.cno-bar-values strong {
  display: block;
  color: var(--teal);
  font-size: 17px;
}

.cno-bar-values span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cno-pdm-chart {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
}

.pdm-circle.small {
  width: 118px;
  height: 118px;
}

.cno-rfa-bottom {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.rfa-compact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  gap: 18px;
}

.rfa-compact-grid div {
  border-left: 4px solid var(--green);
  padding-left: 12px;
}

.rfa-compact-grid strong {
  display: block;
  color: var(--teal);
  font-size: 14px;
}

.rfa-compact-grid p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.gly-dashboard {
  display: grid;
  gap: 16px;
}

.gly-title {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #d8d8da, #eceef2);
  color: var(--teal);
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  padding: 8px 12px;
}

.gly-lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.gly-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 315px;
  border-right: 1px solid var(--line);
}

.gly-card:last-child {
  border-right: 0;
}

.gly-card h2 {
  margin: 0;
  padding: 8px 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.gly-card.lifescan h2,
.gly-rfa-panel.lifescan h2 {
  background: #4475c6;
}

.gly-card.roche h2,
.gly-rfa-panel.roche h2 {
  background: #c5d6ee;
  color: #0e2230;
}

.gly-card.abbott h2 {
  background: #dbe5f6;
  color: #0e2230;
}

.gly-card-body {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 18px 26px;
  text-align: center;
}

.gly-block span {
  display: block;
  color: #303843;
  font-size: 18px;
  font-weight: 700;
}

.gly-block small {
  display: block;
  margin-top: 2px;
  color: #303843;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
}

.gly-block strong,
.gly-amount {
  display: block;
  margin-top: 12px;
  color: #4475c6;
  font-size: 18px;
  font-weight: 700;
}

.gly-amount {
  color: #9dbfe5;
}

.gly-test-box {
  display: grid;
  gap: 10px;
  font-size: 18px;
}

.gly-test-box strong,
.gly-inline strong {
  color: #303843;
  font-weight: 700;
}

.gly-test-box em {
  font-style: normal;
  font-weight: 700;
}

.gly-test-box em.up {
  color: #303843;
}

.gly-inline {
  display: flex;
  justify-content: center;
  gap: 48px;
  font-size: 16px;
}

.gly-card-body.empty {
  color: #9dbfe5;
}

.gly-zero {
  color: #111;
  font-weight: 700;
}

.gly-card footer {
  padding: 6px 10px;
  color: #303843;
  font-size: 11px;
  font-style: italic;
}

.gly-rfa-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #f4f2f2;
}

.gly-rfa-panel {
  position: relative;
  min-height: 210px;
  padding: 0 28px 28px;
  background: #fff;
}

.gly-rfa-panel h2 {
  margin: 0 -28px 16px;
  padding: 7px 12px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.lifescan-rfa-table {
  display: grid;
  grid-template-columns: 110px repeat(4, 1fr);
  max-width: 560px;
  border: 1px solid #a8adb7;
  font-size: 12px;
}

.lifescan-rfa-table > div {
  min-height: 28px;
  padding: 6px 8px;
  border-right: 1px solid #a8adb7;
  border-bottom: 1px solid #a8adb7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lifescan-rfa-table .corner {
  transform: rotate(-13deg);
  background: #fff200;
  color: #111;
  font-weight: 800;
  min-height: 22px;
}

.lifescan-rfa-table .rfa-head {
  grid-column: span 4;
  background: #00c000;
  color: #fff;
  font-weight: 800;
}

.lifescan-rfa-table .rfa-head small {
  font-weight: 700;
}

.lifescan-rfa-table .rfa-label {
  justify-content: flex-start;
  background: #f7f7f7;
  font-weight: 800;
}

.lifescan-rfa-table .rfa-green {
  background: #00c000;
  color: #fff;
  font-weight: 800;
}

.lifescan-rfa-table .rfa-row:empty {
  background: #b7b7b7;
}

.fidelity-box {
  position: absolute;
  right: 18px;
  bottom: 36px;
  max-width: 220px;
  border: 4px solid #ffff00;
  background: #00c000;
  color: #fff;
  padding: 10px;
  font-size: 13px;
  font-style: italic;
  line-height: 1.25;
}

.fidelity-box strong {
  display: block;
}

.roche-condition {
  max-width: 320px;
  margin: 0 auto;
  background: #f7f7fb;
  color: #1a3454;
  text-align: center;
  padding: 24px;
}

.roche-condition span {
  display: block;
  font-size: 18px;
  margin-bottom: 18px;
}

.roche-condition strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 18px;
}

.roche-condition p {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.4;
}

.roche-condition small {
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.centrale-dashboard {
  display: grid;
  gap: 18px;
}

.centrale-ca-card,
.centrale-rfa-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.centrale-ca-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border-left: 6px solid #10384f;
  background: linear-gradient(135deg, #ffffff 0%, #f3faf8 100%);
}

.centrale-ca-main span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.centrale-ca-main h2 {
  margin: 6px 0 0;
  color: var(--teal);
  font-size: 24px;
  font-weight: 600;
}

.centrale-ca-main small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.centrale-ca-value {
  text-align: right;
}

.centrale-ca-value strong {
  display: block;
  color: var(--teal);
  font-size: 42px;
  line-height: 1;
}

.centrale-ca-value em {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  background: #e7f4ed;
  color: #2f8d4e;
  padding: 6px 10px;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.centrale-progress {
  grid-column: 1 / -1;
  height: 12px;
  border-radius: 999px;
  background: #e6eeeb;
  overflow: hidden;
}

.centrale-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10384f, #2f8d4e);
}

.centrale-ca-card p {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.centrale-rfa-card .visual-title h2 {
  color: var(--teal);
}

.centrale-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.centrale-tier {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 16px;
}

.centrale-tier span {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.centrale-tier strong {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 30px;
  font-weight: 700;
}

.centrale-tier.active {
  border-color: rgba(47, 141, 78, 0.4);
  background: #eaf6ef;
}

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

.other-contracts-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

.other-contracts-table th,
.other-contracts-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
}

.other-contracts-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  background: #f7f9f8;
}

.other-contracts-table th:nth-child(2),
.other-contracts-table td:nth-child(2),
.other-contracts-table th:nth-child(3),
.other-contracts-table td:nth-child(3) {
  text-align: right;
  width: 16%;
}

.other-contracts-table th:nth-child(4),
.other-contracts-table td:nth-child(4) {
  width: 34%;
}

.objective-box {
  display: inline-flex;
  min-width: 150px;
  border-radius: 8px;
  background: #f3f7f5;
  padding: 9px 12px;
  color: var(--teal);
  font-weight: 700;
}

.cno-focus,
.cno-pdm-graph,
.cno-rfa-simple {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.cno-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cno-lab-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfc;
}

.cno-lab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cno-lab-head strong {
  color: var(--teal);
  font-size: 17px;
}

.cno-lab-head span {
  font-weight: 900;
}

.cno-lab-ca {
  margin-top: 18px;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: var(--teal);
}

.cno-mini-track {
  height: 12px;
  border-radius: 999px;
  background: #e8eeeb;
  overflow: hidden;
}

.cno-mini-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.cno-pdm-graph {
  margin-top: 16px;
}

.cno-pdm-bars {
  display: grid;
  gap: 13px;
}

.cno-pdm-line {
  display: grid;
  grid-template-columns: 130px 1fr 54px;
  align-items: center;
  gap: 14px;
}

.cno-pdm-line strong {
  color: var(--teal);
  font-size: 14px;
}

.cno-pdm-line > span {
  text-align: right;
  color: var(--teal);
  font-weight: 900;
}

.cno-rfa-simple {
  margin-top: 16px;
}

.cno-theme .excel-kpi h3,
.cno-theme-panel h2 {
  color: #0f6868;
}

.cno-theme-panel {
  margin-bottom: 16px;
}

.rfa-simple-list {
  display: grid;
  gap: 10px;
}

.rfa-simple-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.rfa-simple-list strong {
  color: var(--teal);
  font-size: 14px;
}

.rfa-simple-list p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.family-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.family-stat {
  padding: 16px;
  min-height: 122px;
}

.stat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.stat-top + .stat-top {
  margin-top: 8px;
}

.stat-top span {
  color: var(--muted);
  font-size: 13px;
  text-transform: lowercase;
}

.stat-top strong {
  font-size: 18px;
}

.stat-total {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 900;
}

.excel-column-chart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
}

.column-item {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 100%;
  text-align: center;
}

.column-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
}

.column-shell {
  height: 190px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.column-shell span {
  width: min(54px, 80%);
  min-height: 4px;
  border-radius: 8px 8px 0 0;
}

.column-item strong {
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
}

.detail-table-wrap {
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.detail-table th,
.detail-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.detail-table th {
  background: #f5f8f7;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1.25;
}

.detail-table td {
  font-size: 14px;
  line-height: 1.35;
}

.detail-table th:nth-child(2),
.detail-table td:nth-child(2),
.detail-table th:nth-child(3),
.detail-table td:nth-child(3) {
  white-space: nowrap;
  text-align: right;
}

.detail-table th:nth-child(4),
.detail-table td:nth-child(4) {
  white-space: nowrap;
  text-align: center;
}

.detail-table th:nth-child(5),
.detail-table td:nth-child(5) {
  width: auto;
}

.detail-table th:nth-child(6),
.detail-table td:nth-child(6) {
  width: auto;
  white-space: nowrap;
}

.detail-col-lab {
  width: 12%;
}

.detail-col-ca {
  width: 10%;
}

.detail-col-evol {
  width: 13%;
}

.detail-col-objective {
  width: 30%;
}

.detail-col-rfa {
  width: 25%;
}

.condition-cell {
  max-width: none;
}

.merged-condition {
  max-width: 520px;
}

.condition-cell span {
  display: block;
}

.condition-cell span + span {
  margin-top: 3px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  line-height: 1.25;
}

.detail-table .lab-name,
.detail-table .amount {
  font-size: 15px;
}

.asterisk-note {
  margin: 0;
  padding: 12px 18px 16px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  background: #fbfcfc;
}

.notes {
  border-top: 1px solid var(--line);
  padding: 20px 24px 24px;
  background: #fbfcfc;
}

.notes h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.notes p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .topbar-row,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pharmacy-context {
    text-align: left;
  }

  .summary-panel {
    overflow-x: auto;
  }

  .login-grid,
  .portal-choice-grid,
  .admin-actions,
  .strategy-panel,
  .strategy-form,
  .admin-objectives-summary,
  .admin-mission-meta,
  .admin-mission-details {
    grid-template-columns: 1fr;
  }

  .admin-objectives-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-objectives-filter label {
    min-width: 0;
  }

  .summary-table {
    min-width: 760px;
  }

  .kpi-strip,
  .visual-grid,
  .objective-panel,
  .excel-kpi-row,
  .bio-kpi-row,
  .cno-kpi-row,
  .cno-visual-grid,
  .cno-clean-grid,
  .rfa-compact-grid,
  .cno-focus-grid,
  .adherent-dashboard,
  .segment-body,
  .dual-segment-grid,
  .excel-objective-card,
  .excel-two-cols,
  .family-stat-row {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 110px 1fr 82px;
  }

  .objective-meter {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }

  .pdm-circles {
    flex-wrap: wrap;
  }

  .cno-pdm-line {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cno-pdm-line > span {
    text-align: left;
  }

  .rfa-simple-list div {
    grid-template-columns: 1fr;
  }

  .segment-head {
    flex-direction: column;
  }

  .segment-total {
    text-align: left;
  }

  .segment-progress {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
}

@page {
  size: A4 landscape;
  margin: 8mm;
}

@media print {
  html,
  body {
    width: auto;
    min-height: 0 !important;
    background: #fff !important;
  }

  .app-shell {
    min-height: 0 !important;
  }

  .topbar,
  .logout-btn,
  .pdf-export-btn,
  .detail-btn,
  .strategy-actions,
  .mission-add,
  .admin-actions {
    display: none !important;
  }

  .content {
    width: 100%;
    max-width: 275mm;
    margin: 0 auto;
    padding: 0;
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 16px;
    break-after: avoid;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .page-heading p {
    font-size: 12px;
  }

  .summary-panel,
  .admin-panel,
  .ro-category,
  .segment-card,
  .detail-page,
  .strategy-panel,
  .admin-objectives-filter,
  .admin-objectives-summary,
  .admin-mission-card,
  .data-hub-card,
  .sellin-card {
    box-shadow: none !important;
  }

  .detail-page {
    width: 100%;
    overflow: visible !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .excel-dashboard {
    padding: 10px 12px 12px;
  }

  .detail-table-wrap,
  .ro-table-wrap,
  .admin-panel {
    overflow: visible !important;
  }

  .data-hub-grid,
  .sellin-grid,
  .strategy-panel,
  .admin-objectives-summary,
  .admin-mission-meta,
  .admin-mission-details {
    grid-template-columns: 1fr !important;
  }

  .kpi-strip,
  .excel-kpi-row,
  .bio-kpi-row,
  .cno-kpi-row,
  .excel-two-cols,
  .cno-focus-grid,
  .family-stat-row {
    break-inside: avoid;
  }
}
