/*
 * DrTime V68.UI7.2 — Staff Workspace Typography Hierarchy
 *
 * A presentation-only type scale for the redesigned Treatment Plans inspector
 * and Patient 360 sub-workspaces. No templates, routes, permissions, models or
 * workflow semantics are changed by this layer.
 */

/* ==========================================================================
   Shared hierarchy tokens
   ========================================================================== */

.drt-ui7-treatment,
.drt-patient-profile-v68c {
  --drt-type-primary: 1rem;
  --drt-type-section: 0.88rem;
  --drt-type-subsection: 0.78rem;
  --drt-type-body: 0.72rem;
  --drt-type-label: 0.66rem;
  --drt-type-meta: 0.62rem;
  --drt-type-line-tight: 1.38;
  --drt-type-line-body: 1.68;
}

/* ==========================================================================
   Treatment Plans — inspector hierarchy
   ========================================================================== */

[data-drt-sidebar] .drt-ui7-treatment .drt-ui7-treatment-inspector-title > strong {
  font-size: var(--drt-type-primary) !important;
  font-weight: 950 !important;
  line-height: var(--drt-type-line-tight) !important;
}

[data-drt-sidebar] .drt-ui7-treatment .drt-ui7-treatment-inspector-title > small,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-section-intro > div > span,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-detail-line__main > p,
[data-drt-sidebar] .drt-ui7-treatment .drt-v56-29-plan-message > span,
[data-drt-sidebar] .drt-ui7-treatment .drt-late-doctor-approval__title small {
  font-size: var(--drt-type-body) !important;
  line-height: var(--drt-type-line-body) !important;
  font-weight: 650 !important;
}

[data-drt-sidebar] .drt-ui7-treatment .drt-sw-section-intro > div > strong,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-detail-line__title > strong,
[data-drt-sidebar] .drt-ui7-treatment .drt-v34-section-title h3 {
  color: #183b52 !important;
  font-size: var(--drt-type-section) !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

[data-drt-sidebar] .drt-ui7-treatment .drt-v34-section-title > div > span,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-detail-line__title .badge,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-detail-line__title .drt-badge {
  font-size: var(--drt-type-label) !important;
  line-height: 1.35 !important;
}

[data-drt-sidebar] .drt-ui7-treatment .drt-late-doctor-approval__title strong,
[data-drt-sidebar] .drt-ui7-treatment .drt-v34-approval-strip strong,
[data-drt-sidebar] .drt-ui7-treatment .drt-material-usage-v38-4__head strong,
[data-drt-sidebar] .drt-ui7-treatment .drt-v34-treatment-row__title > strong,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-treatment-item-summary__identity > strong {
  font-size: var(--drt-type-subsection) !important;
  font-weight: 900 !important;
  line-height: 1.48 !important;
}

[data-drt-sidebar] .drt-ui7-treatment .drt-v34-approval-strip p,
[data-drt-sidebar] .drt-ui7-treatment .drt-v34-treatment-note,
[data-drt-sidebar] .drt-ui7-treatment .drt-v34-treatment-meta,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-treatment-item-summary__identity > small {
  font-size: var(--drt-type-label) !important;
  line-height: 1.6 !important;
}

/* Keep secondary actions visually subordinate to section headings. */
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-detail-line__actions .drt-btn,
[data-drt-sidebar] .drt-ui7-treatment .drt-sw-finance-workspace-link {
  font-size: 0.68rem !important;
  font-weight: 850 !important;
}

/* ==========================================================================
   Patient 360 — finance + loyalty hierarchy
   ========================================================================== */

.drt-patient-profile-v68c .drt-billing-card .drt-fin-eyebrow {
  font-size: var(--drt-type-label) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

.drt-patient-profile-v68c .drt-billing-card .drt-fin-title {
  font-size: var(--drt-type-primary) !important;
  font-weight: 950 !important;
  line-height: 1.42 !important;
}

.drt-patient-profile-v68c .drt-billing-card .drt-fin-subtitle,
.drt-patient-profile-v68c .drt-fin-section-head p,
.drt-patient-profile-v68c .drt-v50-capsule-note span {
  font-size: var(--drt-type-body) !important;
  line-height: var(--drt-type-line-body) !important;
  font-weight: 650 !important;
}

.drt-patient-profile-v68c .drt-fin-section-title,
.drt-patient-profile-v68c .drt-section-head h3 {
  color: #183b52 !important;
  font-size: var(--drt-type-section) !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}

.drt-patient-profile-v68c .drt-section-head p {
  margin-top: 0.16rem !important;
  color: #71869a !important;
  font-size: var(--drt-type-body) !important;
  font-weight: 650 !important;
  line-height: var(--drt-type-line-body) !important;
}

.drt-patient-profile-v68c .drt-info-title,
.drt-patient-profile-v68c .drt-v50-billing-capsule__identity > strong,
.drt-patient-profile-v68c .drt-v50-patient-ledger-grid > details > summary strong,
.drt-patient-profile-v68c .drt-info-box > summary {
  color: #253f58 !important;
  font-size: var(--drt-type-subsection) !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
}

.drt-patient-profile-v68c .drt-info-box > .text-2xl,
.drt-patient-profile-v68c .drt-info-box > .text-lg {
  font-size: 1rem !important;
  line-height: 1.35 !important;
  font-weight: 950 !important;
}

.drt-patient-profile-v68c .drt-info-box > .text-sm {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  font-weight: 900 !important;
}

.drt-patient-profile-v68c .drt-info-box .text-xs,
.drt-patient-profile-v68c .drt-v50-billing-capsule__identity > small,
.drt-patient-profile-v68c .drt-v50-patient-ledger-grid > details > summary small {
  font-size: var(--drt-type-label) !important;
  line-height: 1.55 !important;
}

.drt-patient-profile-v68c .drt-v50-plan-id,
.drt-patient-profile-v68c .drt-v50-billing-capsule__status .badge,
.drt-patient-profile-v68c .drt-section-head .badge {
  font-size: var(--drt-type-label) !important;
  font-weight: 850 !important;
}

/* Recent-history headings are tertiary, not peers of the module title. */
.drt-patient-profile-v68c .drt-section-card--billing .text-sm.font-extrabold,
.drt-patient-profile-v68c .drt-section-card--billing .text-sm.font-bold {
  font-size: var(--drt-type-subsection) !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
}

@media (max-width: 720px) {
  .drt-ui7-treatment,
  .drt-patient-profile-v68c {
    --drt-type-primary: 0.96rem;
    --drt-type-section: 0.84rem;
    --drt-type-subsection: 0.76rem;
    --drt-type-body: 0.7rem;
    --drt-type-label: 0.64rem;
  }
}
