/* HealthLink web dashboards: the same teal, navy and light-blue system as the patient app, laid out for a desktop screen. */
.hl-web { --teal: #087E8B; --teal-dark: #066670; --navy: #0B2545; --tint: #DCEBFF; --bg: #F2F7FF; --line: #D3E2F5; --edge: #6F8CAD; --muted: #4A5F7A; --ok: #0B6B5C; --amber: #8a4b00; --amber-tint: #fdf1dc;
  color: var(--navy); color-scheme: light; font: 400 15px/1.45 Inter, system-ui, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.hl-web *, .hl-web *::before, .hl-web *::after { box-sizing: border-box; }
.hl-web h3, .hl-web h4, .hl-web p, .hl-web ul { margin: 0; padding: 0; }
.hl-web button, .hl-web select, .hl-web textarea { font: inherit; color: inherit; }
.hl-web button { cursor: pointer; }
.hl-web :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hw-roles { display: inline-grid; grid-auto-flow: column; gap: 6px; margin-bottom: 16px; }
.hw-roles button, .hw-seg button { min-height: 44px; padding: 0 18px; border: 1px solid #6F8CAD; border-radius: 12px; background: #fff; font-weight: 700; color: var(--navy); }
.hw-roles button[aria-pressed="true"], .hw-seg button[aria-pressed="true"] { background: #DCEBFF; border-color: var(--teal); color: var(--teal-dark); }
.hw-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }

.hw-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 560px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden; }
.hw-side { display: flex; flex-direction: column; gap: 20px; padding: 20px 14px; background: var(--navy); color: #fff; }
.hw-brand { display: grid; padding: 0 8px; }
.hw-brand span { font-size: 18px; font-weight: 700; }
.hw-brand small, .hw-who small { color: rgba(255, 255, 255, .72); font-size: 13px; }
.hw-side nav { display: grid; gap: 4px; }
.hw-side nav button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .85); text-align: left; font-weight: 600; }
.hw-side nav button:hover { background: rgba(255, 255, 255, .1); }
.hw-side nav button[aria-current="page"] { background: var(--teal); color: #fff; }
.hw-side :focus-visible { outline-color: #fff; }
.hw-who { margin-top: auto; display: grid; padding: 0 8px; }

.hw-main { padding: 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.hw-main h3 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.hw-main h3:focus { outline: none; }
.hw-main h4 { font-size: 17px; }
.hw-sub { color: var(--muted); font-size: 14px; }
.hw-split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .hw-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }

.hw-list { list-style: none; display: grid; gap: 8px; }
.hw-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; background: #fff; text-align: left; }
.hw-item > span:first-child:not(.hw-time) { grid-column: 1 / 3; }
.hw-item:hover { background: var(--tint); }
.hw-item[aria-pressed="true"] { border-color: var(--teal); background: #fff; }
.hw-item b, .hw-item small { display: block; }
.hw-item small { color: var(--muted); font-size: 13px; }
.hw-time { font-weight: 700; font-size: 13px; min-width: 58px; color: var(--teal-dark); }
.hw-none { padding: 12px 14px; color: var(--muted); }
.hw-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--tint); color: var(--teal-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hw-tag.ok { background: #E1F6F2; color: #0B6B5C; }
.hw-tag.warn { background: var(--amber-tint); color: var(--amber); }
.hw-tag.now { background: var(--teal); color: #fff; }

.hw-panel { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; align-content: start; }
.hw-block { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.hw-plain { list-style: none; display: grid; gap: 2px; }
.hw-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.hw-field textarea, .hw-field select { padding: 10px 12px; border: 1px solid #6F8CAD; border-radius: 12px; background: #fff; color: var(--navy); }
.hw-field select { min-height: 44px; }
.hw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-btn { min-height: 44px; padding: 0 18px; border: 1px solid #6F8CAD; border-radius: 12px; background: #fff; color: var(--teal-dark); font-weight: 700; }
.hw-btn:hover { background: var(--tint); }
.hw-btn.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.hw-btn.primary:hover { background: var(--teal-dark); }
.hw-btn:disabled { border-color: var(--line); background: transparent; color: var(--muted); cursor: default; }
.hw-note { padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; }
.hw-warn { padding: 10px 12px; border-radius: 12px; background: var(--amber-tint); color: #4d2a00; font-size: 14px; }

.hw-scroll { overflow-x: auto; border-radius: 12px; background: #fff; }
.hw-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.hw-table th, .hw-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.hw-table thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.hw-table tbody th { font-weight: 700; }
.hw-table small { display: block; color: var(--muted); font-size: 12px; }
.hw-checks { display: grid; gap: 2px; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.hw-checks legend { padding: 0; font-weight: 700; margin-bottom: 4px; }
.hw-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.hw-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); flex: none; }
.hw-rules { list-style: none; display: grid; gap: 8px; }
.hw-rule { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; }
.hw-rule small { color: var(--muted); }
.hw-rule > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 760px) { .hw-rule { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

@media (max-width: 760px) {
  .hw-app { grid-template-columns: 1fr; }
  .hw-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px; }
  .hw-who { display: none; }
  .hw-side nav { grid-auto-flow: column; overflow-x: auto; }
  .hw-side nav button { white-space: nowrap; }
  .hw-main { padding: 16px; }
  .hw-roles { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .hw-roles button { padding: 0 6px; }
}

/* Typography: Inter only. See the style guide. */
.hl-web .hw-main h4 { font-weight: 600; }
.hl-web .hw-btn, .hl-web .hw-roles button, .hl-web .hw-seg button { font-weight: 600; }
.hl-web .hw-side nav button { font-weight: 500; }
.hl-web .hw-table td, .hl-web .hw-time { font-weight: 500; }
.hl-web .hw-item b { font-weight: 600; }
@media (max-width: 760px) { .hw-main h3 { font-size: 24px; } }

/* Corner radius: every button and input is at least 30px. */
.hl-web :is(.hw-btn, .hw-roles button, .hw-seg button, .hw-side nav button, .hw-field select, .hw-field textarea) { border-radius: 30px; }
.hl-web .hw-field :is(select, textarea) { padding-left: 18px; padding-right: 18px; }

/* Button height: 40px. */
.hl-web :is(.hw-btn, .hw-roles button, .hw-seg button) { height: 40px; min-height: 40px; padding-top: 0; padding-bottom: 0; }

/* Button labels: 15px. */
.hl-web :is(.hw-btn, .hw-roles button, .hw-seg button) { font-size: 15px; }
