/* Overlook by OREAD Rx — mock. Brand colors from oreadrx.com. */

:root {
  --blue-1: #2657A7;
  --blue-2: #4054B2;
  --blue-3: #477ED7;
  --dark: #263238;
  --ink: #1b272c;
  --red: #b3272b;
  --paper: #f2f3f5;
  --card: #ffffff;
  --line: #dfe3e8;
  --line-strong: #c5ccd3;
  --muted: #5d6b73;
  --muted-2: #7a8790;
  --gold: #c4a35a;
  --banner: #2c3a42;
  --focus: #477ed7;
  --shadow: 0 1px 2px rgba(38, 50, 56, 0.06), 0 8px 24px rgba(38, 50, 56, 0.06);
  --font-ui: "Open Sans", "Segoe UI", sans-serif;
  --font-serif: "Cinzel", "Times New Roman", serif;
  --header-h: 64px;
  --banner-h: 32px;
  --nav-h: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #6b7780 #e4e8ec;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-shell::-webkit-scrollbar {
  width: 14px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.app-shell::-webkit-scrollbar-track {
  background: #e4e8ec;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.app-shell::-webkit-scrollbar-thumb {
  background: #6b7780;
  border-radius: 8px;
  border: 3px solid #e4e8ec;
}

body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------- */
/* Login                                                                      */
/* -------------------------------------------------------------------------- */

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #fff;
}

.login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(38, 87, 167, 0.18) 0%, transparent 42%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.015) 18px,
      rgba(255, 255, 255, 0.015) 19px
    );
  pointer-events: none;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 24px;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.login-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--blue-1) 0 70%, var(--red) 70% 100%);
}

.login-card-body {
  padding: 32px 36px 28px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.login-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 14px;
}

.login-wordmark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--dark);
  line-height: 1;
}

.login-wordmark span {
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.78em;
}

.login-product {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-1);
  font-weight: 600;
  font-feature-settings: "liga" 0, "swsh" 0, "cswh" 0;
}

.login-screen-label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.login-lede {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 32em;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 3px rgba(38, 87, 167, 0.15);
}

.login-error {
  min-height: 20px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary {
  width: 100%;
  background: var(--blue-1);
  color: #fff;
}

.btn-primary:hover {
  background: #1e4a90;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--blue-3);
  outline-offset: 2px;
}

.btn-ghost {
  height: 32px;
  padding: 0 10px;
  background: transparent;
  color: var(--blue-1);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #eef3fa;
  border-color: var(--blue-3);
}

.demo-accounts {
  margin-top: 22px;
  padding: 14px 14px 12px;
  background: #f6f7f9;
  border: 1px solid var(--line);
}

.demo-accounts h2 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-account {
  font-size: 12.5px;
  color: var(--ink);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.demo-account:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.demo-account strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.demo-account code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 2px;
}

.login-foot {
  position: relative;
  padding: 16px 20px 22px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* -------------------------------------------------------------------------- */
/* App shell                                                                  */
/* -------------------------------------------------------------------------- */

.app-shell {
  min-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.app-header {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-1) 0 72%, var(--red) 72% 100%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}

.brand-lockup:hover .product {
  text-decoration: underline;
}

.brand-lockup:focus-visible {
  outline: 2px solid var(--blue-3);
  outline-offset: 3px;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text .wordmark {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--dark);
}

.brand-text .product {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-1);
  font-weight: 600;
  margin-top: 2px;
  font-feature-settings: "liga" 0, "swsh" 0, "cswh" 0;
}

.header-spacer {
  flex: 1;
}

.signed-in {
  text-align: right;
  min-width: 0;
}

.signed-in .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.signed-in .firm {
  font-size: 11px;
  color: var(--muted);
}

.demo-banner {
  height: var(--banner-h);
  background: var(--banner);
  color: #f3ead4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.demo-banner .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.app-nav {
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  padding: 0 14px;
  gap: 2px;
}

.app-nav button {
  border: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
}

.app-nav button:hover {
  color: var(--blue-1);
}

.app-nav button[aria-current="page"] {
  color: var(--dark);
}

.app-nav button[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--red);
}

.app-main {
  flex: 1 0 auto;
  padding: 22px 24px 40px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark);
}

.page-head .meta {
  font-size: 12.5px;
  color: var(--muted);
}

.sample-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid #d8c48a;
  color: #8a6d1f;
  background: #fbf6e8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/* Overview                                                                   */
/* -------------------------------------------------------------------------- */

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

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px 16px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
}

.kpi .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi .value {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi .hint {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.kpi.accent .value {
  color: var(--blue-1);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 12px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  min-width: 0;
  overflow: visible;
}

.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-h h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
}

.panel-h .note {
  font-size: 11.5px;
  color: var(--muted);
}

.group-search {
  height: 32px;
  width: min(220px, 100%);
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}

.group-search:focus {
  background: #fff;
  border-color: var(--blue-1);
  box-shadow: 0 0 0 3px rgba(38, 87, 167, 0.14);
}

.group-search::placeholder {
  color: var(--muted-2);
}

.isolation-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #eef3fa;
  border-left: 3px solid var(--blue-1);
  font-size: 12.5px;
  color: #31455a;
}

.model-row {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}

.model-row dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}

.model-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--dark);
}

.model-row div {
  min-width: 0;
}

.model-row div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

/* -------------------------------------------------------------------------- */
/* Tables                                                                     */
/* -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th,
table.data td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafbfc;
}

table.data tbody tr:hover td {
  background: #f7f9fc;
}

table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.data .drug {
  font-weight: 600;
  color: var(--dark);
}

table.data .sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
}

.tag-specialty {
  background: #f8eaea;
  color: var(--red);
}

.tag-brand {
  background: #eef3fa;
  color: var(--blue-1);
}

.tag-generic {
  background: #eef1f3;
  color: #4a5a62;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-end;
}

.filters .field {
  margin: 0;
  min-width: 180px;
}

.filters .field.grow {
  flex: 1;
  min-width: 220px;
}

.filters select,
.filters input[type="search"] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  outline: none;
}

.filters select:focus,
.filters input[type="search"]:focus {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 3px rgba(38, 87, 167, 0.12);
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.app-footer {
  padding: 14px 24px 20px;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .signed-in {
    display: none;
  }
  .login-card-body {
    padding: 24px 20px;
  }
  .model-row {
    flex-direction: column;
    gap: 10px;
  }
  .model-row div + div {
    padding-left: 0;
    border-left: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
}

/* -------------------------------------------------------------------------- */
/* Group links (overview + groups tables)                                     */
/* -------------------------------------------------------------------------- */

a.group-link {
  color: var(--blue-1);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

a.group-link:hover {
  text-decoration: underline;
}

a.group-link:focus-visible {
  outline: 2px solid var(--blue-3);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Group report                                                               */
/* -------------------------------------------------------------------------- */

.app-main--report {
  max-width: 1180px;
  padding: 8px 20px 48px;
  overflow: visible;
}

#page-report,
.report-canvas,
.report-doc {
  overflow: visible;
}

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin: 4px 0 18px;
}

.report-ident {
  min-width: 0;
}

.report-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-1);
  text-decoration: none;
  margin-bottom: 8px;
}

.report-back:hover {
  color: #1e4a90;
}

.report-back::before {
  content: "";
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -1px;
}

.report-ident h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark);
  line-height: 1.15;
}

.report-ident .meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.period-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 12px;
  box-shadow: var(--shadow);
  min-width: min(100%, 420px);
}

.period-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.period-fields .field {
  margin: 0;
  flex: 1 1 120px;
}

.period-fields .field label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.period-fields input[type="date"] {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  outline: none;
  width: 100%;
}

.period-fields input[type="date"]:focus {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 3px rgba(38, 87, 167, 0.14);
}

.btn-apply {
  height: 38px;
  background: var(--blue-1);
  color: #fff;
  border: 0;
  padding: 0 16px;
  font-weight: 600;
  border-radius: 9px;
}

.btn-apply:hover {
  background: #1e4a90;
}

.period-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.period-shortcuts button {
  height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
}

.period-shortcuts button:hover {
  color: var(--blue-1);
  background: #e3ebf7;
}

.period-shortcuts button[aria-pressed="true"] {
  background: var(--blue-1);
  color: #fff;
}

.period-error {
  min-height: 16px;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}

.report-canvas {
  background: transparent;
  padding: 0;
}

.report-doc {
  background: transparent;
  color: var(--ink);
  max-width: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
  font-family: var(--font-ui);
  font-size: 13px;
}

.rpt-masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 2px;
}

.rpt-masthead img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.rpt-masthead .wordmark {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-1);
  line-height: 1.1;
}

.rpt-masthead .product {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-1);
  font-feature-settings: "liga" 0, "swsh" 0, "cswh" 0;
}

.rpt-masthead .sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.rpt-top {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.rpt-card-perf {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.rpt-card-claimant {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rpt-card-claimant .rpt-card-h {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.rpt-card-claimant .rpt-card-h .note {
  white-space: normal;
}

.rpt-card-claimant table.rpt {
  width: auto;
}

.rpt-card-claimant table.rpt th,
.rpt-card-claimant table.rpt td {
  white-space: nowrap;
}

.rpt-card-perf .pmpm-pair {
  grid-template-columns: 1fr 1fr;
}

.rpt-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}

.rpt-top .rpt-card {
  margin-bottom: 0;
}

.rpt-card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.rpt-card-h h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-1);
}

.rpt-card-h .note,
.rpt-period {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.report-doc table.rpt {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  font-size: 12.5px;
}

.report-doc table.rpt th,
.report-doc table.rpt td {
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
}

.report-doc table.rpt th {
  background: var(--blue-1);
  color: #fff;
  font-weight: 700;
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 0;
}

.report-doc table.rpt th.num,
.report-doc table.rpt td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-doc table.rpt tbody tr:nth-child(even) td {
  background: #f6f8fb;
}

.report-doc table.rpt tbody tr:nth-child(odd) td {
  background: #fff;
}

.report-doc table.rpt tbody tr:hover td {
  background: #eef3fa;
}

.report-doc table.rpt td.name {
  font-weight: 650;
  text-align: left;
  color: var(--dark);
}

.report-doc table.rpt td.drug-name {
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.report-doc table.rpt tfoot td {
  background: var(--blue-1);
  color: #fff;
  font-weight: 700;
  border-bottom: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.report-doc table.rpt .na {
  color: var(--muted-2);
  font-weight: 600;
}

.report-doc table.rpt tfoot .na {
  color: rgba(255, 255, 255, 0.75);
}

.perf-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  padding: 6px 4px;
}

.perf-stat {
  display: contents;
}

.perf-stat .k,
.perf-stat .v {
  padding: 9px 18px;
  border-bottom: 1px solid #edf1f5;
}

.perf-stat .k {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.perf-stat .v {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--dark);
  font-size: 13.5px;
}

.perf-stat:last-child .k,
.perf-stat:last-child .v {
  border-bottom: 0;
}

.pmpm-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.pmpm-tile {
  background: #f4f7fb;
  padding: 14px 12px 16px;
  text-align: center;
}

.pmpm-tile.net {
  background: #eaf0f8;
}

.pmpm-tile .k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-1);
  margin-bottom: 6px;
}

.pmpm-tile .v {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.rpt-footnote {
  margin: 0;
  padding: 10px 18px 14px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  background: #fafbfc;
}

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

@media (max-width: 720px) {
  .report-doc {
    padding: 0;
  }
  .pmpm-pair {
    grid-template-columns: 1fr;
  }
  .period-form {
    min-width: 0;
    width: 100%;
  }
}

.report-doc table.rpt tr.type-group td {
  background: #e8eef8 !important;
  font-weight: 700;
  color: var(--dark);
}

.report-doc table.rpt tr.type-child td {
  background: #fff;
}

.report-doc table.rpt tr.type-child:nth-child(even) td {
  background: #f7f9fc;
}

.report-doc table.rpt td.child {
  padding-left: 32px;
  font-weight: 600;
  color: var(--muted);
}

.report-doc table.rpt td.child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  margin-bottom: 1px;
  border-left: 1.5px solid #9aa9b8;
  border-bottom: 1.5px solid #9aa9b8;
}

.rpt-top {
  display: block;
}

a.drill-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(38, 87, 167, 0.45);
}

a.drill-link:hover {
  color: var(--blue-1);
  border-bottom-color: var(--blue-1);
}

.report-doc table.rpt td.name a.drill-link,
.report-doc table.rpt td.drug-name a.drill-link,
.report-doc table.rpt td.child a.drill-link {
  cursor: pointer;
}

.drill-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.drill-kpis > div {
  background: #f4f7fb;
  padding: 12px 16px 14px;
}

.drill-kpis .k {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-1);
  margin-bottom: 4px;
}

.drill-kpis .v {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dark);
}

@media (max-width: 720px) {
  .drill-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: -4px 0 16px;
  padding: 4px;
  background: #e8edf3;
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}

.report-tabs a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.report-tabs a:hover {
  color: var(--blue-1);
  background: rgba(255, 255, 255, 0.7);
}

.report-tabs a[aria-current="page"] {
  background: #fff;
  color: var(--blue-1);
  box-shadow: 0 1px 2px rgba(38, 50, 56, 0.08);
}

.report-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 16px;
}

.report-tabs-row .report-tabs {
  margin: 0;
}

.btn-export {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--blue-1);
  background: #fff;
  color: var(--blue-1);
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 9px;
  letter-spacing: 0.02em;
}

.btn-export:hover {
  background: var(--blue-1);
  color: #fff;
}

.print-head {
  display: none;
}

.pdf-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  left: -9999px;
}

@media print {
  @page {
    size: letter landscape;
    margin: 0;
  }

  html, body {
    background: #fff !important;
    color: #1b272c;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  #page-report,
  #page-report * {
    visibility: visible;
  }

  #page-report {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0.45in 0.5in !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .demo-banner,
  .mock-banner,
  .app-header,
  .app-nav,
  .app-footer,
  .report-toolbar,
  .report-tabs-row,
  .rpt-masthead,
  .login-screen,
  #view-login {
    display: none !important;
    visibility: hidden !important;
  }

  .app-main,
  .app-main--report,
  .report-canvas,
  .report-doc {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .print-head {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin: 0 0 18px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid #dfe3e8;
    visibility: visible !important;
  }

  .print-head img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 6px;
  }

  .print-head h1 {
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #2657A7;
    margin: 0;
    text-transform: uppercase;
  }

  .print-head p {
    margin: 0;
    font-size: 12.5px;
    color: #5d6b73;
    font-weight: 600;
  }

  .rpt-card {
    box-shadow: none;
    border: 1px solid #dfe3e8;
    break-inside: auto;
    page-break-inside: auto;
  }

  .rpt-card-claimant,
  .rpt-card-perf {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    width: auto;
  }

  .report-doc table.rpt {
    width: 100%;
  }

  .report-doc table.rpt thead {
    display: table-header-group;
  }

  .report-doc table.rpt tr {
    break-inside: auto;
    page-break-inside: avoid;
  }

  .report-doc table.rpt th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #2657A7 !important;
    color: #fff !important;
  }

  a.drill-link {
    color: inherit !important;
    text-decoration: none !important;
  }
}

#pdf-stage {
  position: fixed;
  left: -14000px;
  top: 0;
  width: 1100px;
  background: #fff;
  padding: 36px 44px 48px;
  z-index: -1;
}

#pdf-stage .print-head {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid #dfe3e8;
}

#pdf-stage .print-head img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 8px;
}

#pdf-stage .print-head h1 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-1);
  margin: 0;
  text-transform: uppercase;
}

#pdf-stage .print-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

#pdf-stage .rpt-masthead {
  display: none;
}

#pdf-stage .rpt-card {
  box-shadow: none;
}

#pdf-stage .rpt-card-claimant,
#pdf-stage .rpt-card-perf {
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/* Access agreement                                                           */
/* -------------------------------------------------------------------------- */

.agree-card {
  max-width: 640px;
}

.agree-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.agree-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.agree-brand .login-wordmark {
  font-size: 18px;
}

.agree-brand .login-product {
  margin-top: 4px;
  font-size: 18px;
}

.agree-sample {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: #fff6e8;
  border: 1px solid #e6d3b0;
  color: #6a4b12;
  font-size: 12px;
  font-weight: 600;
}

.agree-org {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #f4f7fb;
  border-left: 4px solid var(--blue-1);
  font-size: 13px;
  line-height: 1.45;
}

.agree-org strong {
  display: block;
  color: var(--blue-1);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.agree-h {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--dark);
}

.agree-lede {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.agree-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.agree-check input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.agree-decline {
  width: 100%;
  margin-top: 8px;
  height: 40px;
}


.agree-radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fafbfc;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.agree-radio:hover,
.agree-radio:has(input:checked) {
  border-color: var(--blue-1);
  background: #f4f7fb;
}

.agree-radio input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.org-panel {
  margin: 12px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.org-panel select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

#org-simulate {
  margin-bottom: 8px;
}

#view-org .login-main {
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 16px;
}

#view-org .agree-card {
  max-width: 740px;
}

.baa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.baa-toolbar-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
}

.baa-toolbar .btn {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.baa-toolbar-preview {
  justify-content: flex-end;
  margin: 0 0 8px;
}

.baa-scroll {
  height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fbfaf6;
  border: 1px solid var(--line-strong);
  padding: 14px 16px 18px;
  color: var(--ink);
  -webkit-overflow-scrolling: touch;
}

.baa-doc {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--dark);
}
.baa-doc .baa-kicker {
  margin: 0 0 10px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-family: var(--font-ui);
}
.baa-doc .baa-word,
.baa-doc .baa-product {
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.baa-doc .baa-word {
  font-size: 16px;
  color: var(--dark);
}
.baa-doc .baa-product {
  font-size: 14px;
  color: var(--blue-1);
  margin-bottom: 10px;
}
.baa-sigblock {
  margin: 14px 0 8px;
}
.baa-sigblock h4 {
  margin: 0 0 2px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--dark);
}
.baa-fill {
  margin: 8px 0 0;
  border-bottom: 1px solid var(--dark);
  min-height: 22px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
}
.baa-fill span {
  display: inline-block;
  padding-bottom: 2px;
}

.baa-banner {
  margin: 0 0 12px;
  padding: 6px 8px;
  background: #fff6e8;
  border: 1px solid #e6d3b0;
  color: #6a4b12;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.baa-doc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.baa-doc-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.baa-doc-brand .wm {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--dark);
  line-height: 1.1;
}

.baa-doc-brand .pr {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-1);
  font-weight: 600;
  margin-top: 3px;
}

.baa-doc h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dark);
}

.baa-doc .baa-sub {
  margin: 0 0 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.baa-doc h4 {
  margin: 12px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-1);
}

.baa-doc p {
  margin: 0 0 8px;
}

.baa-doc ol {
  margin: 0 0 8px;
  padding-left: 1.3em;
}

.baa-doc li {
  margin: 0 0 6px;
}

.baa-note {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.baa-sigs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.baa-sig h4 {
  margin-top: 0;
}

.baa-sig-line {
  min-height: 26px;
  margin: 6px 0 4px;
  border-bottom: 1px solid var(--dark);
  font-size: 11px;
  font-style: italic;
  color: var(--muted-2);
}

.baa-sig-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
}

.baa-version {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
}

.baa-ack {
  margin: 10px 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.baa-preview {
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fafbfc;
}

.baa-preview summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--blue-1);
  list-style: none;
}

.baa-preview summary::-webkit-details-marker {
  display: none;
}

.baa-preview summary::before {
  content: "▸ ";
  color: var(--muted);
  font-weight: 400;
}

.baa-preview[open] summary::before {
  content: "▾ ";
}

.baa-preview[open] summary {
  margin-bottom: 6px;
}

.baa-preview-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

#baa-pdf-stage {
  position: fixed;
  left: -14000px;
  top: 0;
  width: 720px;
  background: #fff;
  padding: 36px 44px 48px;
  z-index: -1;
  color: #1b272c;
  font-family: "Open Sans", "Segoe UI", sans-serif;
}

#baa-pdf-stage .baa-pdf-watermark {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-28deg);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 92px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(179, 39, 43, 0.09);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

#baa-pdf-stage .baa-pdf-inner {
  position: relative;
  z-index: 1;
}

#baa-pdf-stage .baa-pdf-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid #dfe3e8;
}

#baa-pdf-stage .baa-pdf-head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 6px;
}

#baa-pdf-stage .baa-pdf-head .wm {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #263238;
}

#baa-pdf-stage .baa-pdf-head .pr {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2657A7;
}

#baa-pdf-stage .baa-scroll {
  height: auto;
  overflow: visible;
  background: #fff;
  border: none;
  padding: 0;
}

#baa-pdf-stage .baa-doc-brand {
  display: none;
}

@media (max-width: 800px) {
  .baa-sigs {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Sortable table headers                                                     */
/* -------------------------------------------------------------------------- */

table.data th.sortable {
  padding: 0;
}

button.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  cursor: pointer;
}

table.data th.num button.th-sort {
  justify-content: flex-end;
}

table.data button.th-sort:hover {
  color: var(--blue-1);
}

button.th-sort .caret {
  font-size: 9px;
  opacity: 0.38;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

table.data th[aria-sort="ascending"] .caret,
table.data th[aria-sort="descending"] .caret {
  opacity: 1;
  color: var(--blue-1);
}

table.data th[aria-sort="ascending"] button.th-sort,
table.data th[aria-sort="descending"] button.th-sort {
  color: var(--blue-1);
}

.report-doc table.rpt th.sortable {
  padding: 0;
}

.report-doc table.rpt button.th-sort {
  padding: 9px 14px;
  color: #fff;
}

.report-doc table.rpt th.num button.th-sort {
  justify-content: flex-end;
}

.report-doc table.rpt button.th-sort:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.report-doc table.rpt button.th-sort .caret {
  opacity: 0.55;
  color: #fff;
}

.report-doc table.rpt th[aria-sort="ascending"] .caret,
.report-doc table.rpt th[aria-sort="descending"] .caret {
  opacity: 1;
  color: #fff;
}

.overview-head {
  align-items: flex-start;
  gap: 18px 28px;
  margin-bottom: 18px;
}

.overview-head .period-form {
  min-width: min(100%, 400px);
}

.pmpm-note {
  margin: 0;
  padding: 8px 16px 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.chart-wrap {
  padding: 10px 14px 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 8px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.chart-legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.chart-stage {
  position: relative;
  height: 248px;
  overflow: hidden;
}

.chart-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
}

.chart-tip {
  position: absolute;
  z-index: 3;
  min-width: 160px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
  color: var(--ink);
}

.chart-tip.hidden {
  display: none;
}

.chart-tip .tip-month {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.chart-tip .tip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 0;
}

.chart-tip .tip-row b {
  font-weight: 600;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--muted-2);
  font-size: 11px;
  font-family: var(--font-ui);
}

.chart-line {
  fill: none;
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-dot {
  stroke: #fff;
  stroke-width: 1.25;
}

.chart-guide {
  stroke: var(--line-strong);
  stroke-dasharray: 3 3;
  stroke-width: 1;
}

#page-overview .split .panel:first-child .table-wrap {
  overflow: visible;
}

#overview-groups td:first-child {
  white-space: normal;
}

#overview-groups th,
#overview-groups td {
  padding: 7px 10px;
}

.chart-live {
  stroke: #7a8790;
  stroke-width: 1.25;
  stroke-dasharray: 4 3;
}

.chart-live-label {
  fill: #5d6b73;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-ui);
}

.chart-tip .tip-live span,
.chart-tip .tip-live b {
  color: #5d6b73;
}

.chart-legend .legend-live i {
  width: 16px;
  height: 0;
  border-top: 2px dashed #7a8790;
  background: transparent;
  border-radius: 0;
}

button.signed-in {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 2px;
}

button.signed-in:hover {
  background: rgba(38, 87, 167, 0.08);
}

button.signed-in:hover .name {
  color: var(--blue-1);
}

.account-block {
  margin: 0 0 12px;
  padding: 0;
}

.account-block .panel-h {
  align-items: flex-start;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  padding: 16px;
}

.account-profile-grid .k {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.account-profile-grid .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.account-form {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
}

.account-form .field {
  margin-bottom: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-form .field input:not([type="checkbox"]),
.account-form .field select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 40px;
  box-sizing: border-box;
}

.account-form .field select {
  padding-right: 28px;
}

.account-form .field input:not([type="checkbox"]):focus,
.account-form .field select:focus {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 3px rgba(38, 87, 167, 0.15);
  outline: none;
}

.account-form .field.grow,
.account-form #acct-user-groups-wrap,
.account-form #acct-org-groups-wrap {
  grid-column: 1 / -1;
  min-width: 0;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  border-radius: 99px;
  background: #e8eef8;
  color: var(--blue-1);
}

.group-picker {
  min-width: 0;
}

.group-picker-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.group-picker-bar .k {
  margin: 0;
}

.group-picker-search {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 280px;
  height: 30px;
  padding: 4px 10px;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.group-picker-search:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.group-picker-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-left: auto;
  white-space: nowrap;
}

.group-checks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 2px 8px;
}

.group-checks label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 5px;
  margin: 0;
  padding: 8px 6px 9px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.group-checks label:hover {
  border-color: var(--blue-3);
  background: #eef3fb;
}

.group-checks label.is-on {
  border-color: var(--blue-1);
  background: #e8eef8;
  color: var(--blue-1);
}

.group-checks label[hidden] {
  display: none !important;
}

.account-form .group-checks input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  min-width: 12px;
  max-width: 12px;
  min-height: 12px;
  max-height: 12px;
  margin: 0;
  padding: 0;
  line-height: 1;
  flex: 0 0 12px;
  align-self: center;
  border: 1.5px solid #7a8790;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.account-form .group-checks input[type="checkbox"]:checked {
  background-color: var(--blue-1);
  border-color: var(--blue-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M2.2 6.2l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E");
  background-size: 8px 8px;
  background-position: center;
  background-repeat: no-repeat;
}

.account-form .group-checks input[type="checkbox"]:focus {
  box-shadow: none;
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.group-checks .g-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.group-picker-none {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.group-picker-empty {
  grid-column: 1 / -1;
}

.invite-status {
  font-size: 12px;
  color: var(--muted);
  padding: 0 16px 12px;
}

.account-note {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 16px 16px;
  margin: 0;
}

#page-account .table-wrap {
  overflow: visible;
}

#page-account table.data th,
#page-account table.data td {
  white-space: normal;
  vertical-align: top;
}

#page-account table.data .col-edit {
  width: 56px;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 4px;
}

#page-account table.data .col-edit .btn {
  padding: 2px 8px;
  font-size: 12px;
}

.groups-count-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--blue-1);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.groups-count-btn:hover {
  color: var(--blue-2);
}

.group-checks label.is-locked {
  cursor: default;
}
