﻿/* Root wrapper */
.health-ui {
    --health-primary: #8cc63f;
    --health-secondary: #6fbf73;
    --health-radius: 22px;
    --health-border: #d6dee3;
    --health-text: #1f2937;
    --health-muted: #667085;
}


/* =========================
   Health RTL/LTR Input Fix
   ========================= */

.health-ui form {
    text-align: start;
    direction: inherit;
}

/* =========================
   Health Checkboxes
   ========================= */

/* Module-specific color override — base styles live in takaful.css */
.health-ui .checkbox {
    color: #475467;
}

.health-ui .checkbox a {
    color: #2f4f1f;
    text-decoration: underline;
}

.health-ui .checkbox a:hover {
    color: #1f8b4c;
}

/* =========================
   Health Radio Inline
   ========================= */

/* Module-specific color override — base styles live in takaful.css */
.health-ui .radio-inline {
    color: #475467;
}


/* =========================
   Health â€“ Network Page
   ========================= */


.health-plan-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    border: 1px solid var(--health-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.3);
    padding: 14px 12px;
    text-align: start;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: all 0.2s ease;
    filter: saturate(0.92);
}

.health-plan-card:hover {
    border-color: #b8d997;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.07);
}

.health-plan-card.active {
    border: 2px solid var(--health-primary);
    background: rgba(242, 249, 232, 0.52);
    box-shadow:
        0 0 0 3px rgba(140, 198, 63, 0.20),
        0 14px 24px rgba(27, 76, 34, 0.16),
        inset 0 0 0 1px rgba(140, 198, 63, 0.20);
    transform: translateY(-2px);
    filter: saturate(1.04);
}

.health-plan-card.active::before {
    content: "\2713";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #8cc63f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(38, 122, 46, 0.30);
    z-index: 3;
    pointer-events: none;
}

body[dir="rtl"] .health-plan-card.active::before {
    right: auto;
    left: 10px;
}

.health-plan-media {
    position: absolute;
    inset: 0;
    background-image: var(--plan-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.health-plan-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(
        to top,
        rgba(17, 24, 39, 0.48) 0%,
        rgba(17, 24, 39, 0.24) 20%,
        rgba(17, 24, 39, 0) 55%
    );
    pointer-events: none;
}

.health-plan-card:hover .health-plan-media,
.health-plan-card.active .health-plan-media {
    transform: scale(1.08);
}

.health-plan-title {
    position: relative;
    z-index: 2;
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.health-plan-card.active .health-plan-title {
    font-size: 15px;
    font-weight: 800;
}

.health-selected-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(191, 222, 168, 0.9);
    border-radius: 10px;
    background: rgba(249, 255, 244, 0.85);
}

.health-selected-amount {
    justify-content: center;
    min-height: 96px;
}

.health-amount-display {
    display: inline-block;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: 0.2px;
}

.health-change-plan {
    border: 0;
    background: transparent;
    color: #1f8b4c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

.health-change-plan:hover {
    color: #2f4f1f;
}

.network-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Hide native radio */
.network-option input {
    display: none;
}

/* Base card */
.network-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;

    padding: 18px 20px;
    border-radius: 22px;

    background: #ffffff;
    border: 2px solid #dfe8d1;
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.04);

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.network-card:hover {
    transform: translateY(-2px);
    border-color: #b9d7a0;
    box-shadow: 0 14px 26px rgba(31, 41, 55, 0.08);
}

/* Selected state */
.network-option input:checked+.network-card {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f8fdf3, #eef8f2);
    border-color: #79b131;
    box-shadow: 0 14px 30px rgba(121, 177, 49, 0.2), 0 0 0 3px rgba(140, 198, 63, 0.18);
}

.network-option input:checked+.network-card::before {
    content: "\2713";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #2f4f1f, #1f8b4c);
    box-shadow: 0 4px 10px rgba(31, 139, 76, 0.3);
}

body[dir="rtl"] .network-option input:checked+.network-card::before {
    right: auto;
    left: 12px;
}

/* Content */
.network-info {
    flex: 1 1 auto;
    min-width: 0;
}

.network-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.network-info small {
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.price {
    color: #14b114;
    font-weight: 800;
}

.amount {
    font-size: 34px;
}

.currency {
    font-size: 14px;
    margin-left: 4px;
}

.review-premium-value .amount {
    font-size: 42px;
}

.review-premium-value .currency {
    font-size: 14px;
}

.review-premium-value {
    position: relative;
    min-height: 52px;
}

.review-premium-value.is-loading .amount,
.review-premium-value.is-loading .currency {
    opacity: 0;
}

.review-premium-value.is-loading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 180px;
    max-width: 100%;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8efe3 0%, #f4f8f1 50%, #e8efe3 100%);
    background-size: 220% 100%;
    animation: healthPremiumShimmer 1.1s linear infinite;
}

.review-premium-value.is-loading::after {
    content: attr(data-loading-text);
    position: absolute;
    left: 0;
    top: 34px;
    font-size: 12px;
    font-weight: 700;
    color: #6b8a4f;
    letter-spacing: 0.02em;
    animation: healthPremiumPulse 1s ease-in-out infinite;
}

@keyframes healthPremiumShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -30% 0;
    }
}

@keyframes healthPremiumPulse {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.desc {
    font-size: 13px;
    margin-top: 6px;
    color: #6f8f2d;
}

.network-default-params {
    margin-top: 10px;
    border: 1px solid #e3f1d6;
    border-radius: 10px;
    background: rgba(249, 255, 244, 0.85);
    overflow: hidden;
}

.network-param-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    font-size: 13px;
    color: #475467;
}

.network-param-row + .network-param-row {
    border-top: 1px solid #e8efe3;
}

.network-param-row strong {
    color: #1f2937;
    font-weight: 700;
}

.network-param-row strong.price,
.network-param-row strong.review-premium-value {
    color: #14b114;
}


/* Gold plan includes */
.network-includes {
    margin-top: 14px;
    border: 1px solid #dbe9d3;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdf9 0%, #f4faf5 100%);
    overflow: hidden;
}

.network-includes-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.network-includes-toggle::-webkit-details-marker {
    display: none;
}

.network-includes-toggle:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(20, 155, 211, 0.2);
}

.network-includes-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.network-includes-label {
    color: #60725f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.network-includes-subtitle {
    color: #214137;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.network-includes-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid #cfe0c4;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(31, 41, 55, 0.08);
}

.network-includes-icon::before,
.network-includes-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1f8b4c;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.network-includes-icon::before {
    width: 10px;
    height: 2px;
}

.network-includes-icon::after {
    width: 2px;
    height: 10px;
}

.network-includes[open] .network-includes-icon::after {
    opacity: 0;
}

.network-includes-panel {
    padding: 0 14px 14px;
}

.network-includes-list {
    display: grid;
    gap: 8px;
}

.network-includes-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    color: #214137;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    background: #ffffff;
    border: 1px solid #e8efe3;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.04);
}

.network-includes-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    margin-top: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #98c829, #139bd3);
}

/* Download link */
.network-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    color: #1f8b4c;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.network-download:hover,
.network-download:focus-visible {
    color: #125e47;
    text-decoration: none;
    border-color: #c8e2c1;
    background: linear-gradient(135deg, #f4fbeb 0%, #edf9ff 100%);
    box-shadow: 0 10px 18px rgba(31, 139, 76, 0.08);
    transform: translateY(-1px);
}

.network-download:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 155, 211, 0.18), 0 10px 18px rgba(31, 139, 76, 0.08);
}

/* Badge */
.network-badge {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .network-card {
        padding: 18px;
    }

    .network-badge {
        width: 72px;
        height: 72px;
    }

    .network-includes-toggle {
        padding: 11px 12px;
    }

    .network-includes-panel {
        padding: 0 12px 12px;
    }
}

/* =========================
   Health Counter ( + / - )
   ========================= */
/* Center Adults / Children labels above counters */
.health-ui .health-counter-label,
.health-ui label.fw-medium {
    display: block;
    text-align: center;
}

.health-ui .health-counter {
    direction: ltr;
    margin-top: 6px;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    /* FORCE space for + and - */

    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--health-border);
    background: #ffffff;
    overflow: hidden;
}

.health-ui .counter-btn {
    width: 56px;
    height: 100%;

    background: #f8fafc;
    color: #333;

    border: none;

    font-size: 24px;
    font-weight: 700;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.15s ease, color 0.15s ease;
}

.health-ui .counter-btn:hover {
    background: #eef2f7;
}

/* Divider lines ONLY where needed */
.health-ui .counter-btn.minus {
    border-right: 1px solid #e5e5e5;
}

.health-ui .counter-btn.plus {
    border-left: 1px solid #e5e5e5;
}

.health-ui .counter-input {
    width: 100%;
    height: 100%;

    border: none;
    background: transparent;

    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #000;

    pointer-events: none;
}

@media (max-width: 767px) {
    .health-ui .health-counter {
        height: 60px;
    }
}

/* Disabled family member option */
.family-member-select option.is-selected {
    color: #6c757d;
    /* muted text */
    background-color: #f1f3f5;
    font-style: italic;
}

/* Optional: cursor feedback */
.family-member-select option:disabled {
    cursor: not-allowed;
}

/* Selected chips container */
.selected-chips .remove-chip {
    cursor: pointer;
    font-weight: 600;
    opacity: 0.8;
}

.selected-chips .remove-chip:hover {
    opacity: 1;
}

/* =========================
   Health Success Page
   ========================= */

.health-success-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Main card */
.health-success-card {
    background: rgba(255, 255, 255, 0.66);
    border-radius: 28px;
    padding: 36px 28px;
    border: 1px solid rgba(191, 222, 168, 0.72);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10),
        0 2px 8px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Title */
.health-success-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

/* Divider line */
.health-success-divider {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, #7fcfd6, #8cc63f);
    border-radius: 999px;
    margin: 18px auto 22px;
}

.health-success-subtitle {
    font-size: 24px;
    color: #1f2937;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.health-success-check {
    width: 84px;
    height: 84px;
    margin: 4px auto 14px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #a8df7b 0%, #8cc63f 58%, #6cab30 100%);
    box-shadow: 0 14px 28px rgba(31, 139, 76, 0.22), 0 0 0 6px rgba(140, 198, 63, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: healthSuccessPop 0.75s ease, healthSuccessPulse 1.8s ease-in-out infinite 0.85s;
}

.health-success-check span {
    color: #ffffff;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

@keyframes healthSuccessPop {
    0% {
        transform: scale(0.65);
        opacity: 0.2;
    }
    75% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes healthSuccessPulse {
    0%, 100% {
        box-shadow: 0 14px 28px rgba(31, 139, 76, 0.22), 0 0 0 6px rgba(140, 198, 63, 0.14);
    }
    50% {
        box-shadow: 0 16px 30px rgba(31, 139, 76, 0.26), 0 0 0 10px rgba(140, 198, 63, 0.18);
    }
}

/* Message */
.health-success-message {
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
    max-width: 640px;
    margin-inline: auto;
}

/* Thank you */
.health-success-thank {
    font-size: 16px;
    font-weight: 700;
    color: #2f4f1f;
    margin-top: 12px;
}

.health-success-selection {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(191, 222, 168, 0.70);
    background: rgba(249, 255, 244, 0.62);
}

.health-success-selection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.health-success-selection-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #2f4f1f;
}

.health-success-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.health-success-selection-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(214, 222, 227, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
}

.health-success-selection-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.health-success-selection-card small {
    display: block;
    color: #667085;
    font-size: 11px;
    line-height: 1.2;
}

.health-success-selection-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

/* =========================
   Policy Number Display
   ========================= */

.health-policy-value--policy-no {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.2px;
    color: var(--color-100);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* =========================
   Mobile tweaks
   ========================= */

@media (max-width: 576px) {

    .health-success-card {
        padding: 28px 22px;
    }

    .health-success-subtitle {
        font-size: 20px;
    }

    .health-success-check {
        width: 72px;
        height: 72px;
    }

    .health-success-check span {
        font-size: 34px;
    }

    .health-success-selection-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   Health Tabs (Full Width)
   ========================= */

.health-ui .health-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    border-bottom: none;
    margin-bottom: 22px;
}

.health-ui .health-tabs .nav-item {
    margin-bottom: 0;
}

.health-ui .health-tabs .nav-link {
    width: 100%;
    height: 52px;

    border-radius: 10px;
    border: 1px solid var(--health-border);
    background: #ffffff;

    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: #475467;
    text-align: center;

    transition: all 0.25s ease;
}

/* Hover */
.health-ui .health-tabs .nav-link:hover {
    background: #f7fbf3;
    border-color: var(--health-primary);
}

/* Active tab */
.health-ui .health-tabs .nav-link.active {
    background: linear-gradient(
        90deg,
        rgba(127, 207, 214, 0.25),
        rgba(140, 198, 63, 0.25)
    );

    color: #2f4f1f; /* deep olive text */
    border-color: var(--health-primary);

    box-shadow: inset 0 0 0 1px rgba(140, 198, 63, 0.12);
}

/* Remove default bootstrap underline */
.health-ui .health-tabs .nav-link::after {
    display: none;
}

/* Mobile tweaks */
@media (max-width: 576px) {

    .health-ui .health-tabs {
        gap: 8px;
    }

    .health-ui .health-tabs .nav-link {
        font-size: 14px;
        height: 54px;
    }

    .health-amount-display {
        font-size: 30px;
    }

}

/* =========================
   Family Flow Styles
   ========================= */


.health-ui .member-details-summary {
    background: linear-gradient(135deg, #cfeedd, #e6f5da);
    color: #2f5b3d;
    border: 1px solid #b7dcc0;
    box-shadow: 0 1px 2px rgba(47, 91, 61, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    list-style: none;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.health-ui .member-details-summary::-webkit-details-marker {
    display: none;
}

.health-ui .member-details-summary::marker {
    content: '';
}

.health-ui .member-details-summary::before {
    content: none !important;
    display: none !important;
}

.health-ui .member-details-summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    color: #2f5b3d;
}

.health-ui details[open] > .member-details-summary::after {
    content: '-';
}

.health-ui .member-details-accordion {
    border: 1px solid #d4dfc7;
}

.health-ui #familyMedicalTabsRoot,
.health-ui #familyLimitsTabsRoot,
.health-ui #familyMembersTabsRoot,
.health-ui #familyDocumentsTabsRoot {
    margin-bottom: 1rem;
}

.health-ui .family-medical-tabs,
.health-ui .family-limits-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0;
    border-bottom: 1px solid #cfdac8;
    margin-bottom: 0;
}

.health-ui .family-medical-tabs::-webkit-scrollbar,
.health-ui .family-limits-tabs::-webkit-scrollbar {
    height: 6px;
}

.health-ui .family-medical-tabs::-webkit-scrollbar-thumb,
.health-ui .family-limits-tabs::-webkit-scrollbar-thumb {
    background: #c7d9bf;
    border-radius: 999px;
}

.health-ui .member-medical-tab,
.health-ui .member-limits-tab {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5b6673;
    border-radius: 0;
    padding: 0.72rem 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
    min-width: max-content;
}

.health-ui .member-medical-tab:hover,
.health-ui .member-limits-tab:hover {
    color: #2f5b3d;
    background: rgba(138, 197, 63, 0.08);
}

.health-ui .member-medical-tab.active,
.health-ui .member-limits-tab.active {
    color: #2f5b3d;
    border-bottom-color: #8ac53f;
    background: transparent;
}

.health-ui .family-medical-panel,
.health-ui .family-limits-panel {
    border: 1px solid #cfdac8;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #f7fbf5;
}

.health-ui .family-member-context-heading {
    margin: 0;
    color: #2f5b3d;
    font-size: clamp(1.28rem, 1.5vw, 1.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
}

.health-ui .family-member-context-divider {
    margin: 8px auto 14px;
}

.health-ui .member-medical-question.is-invalid {
    border: 1px solid #d86f6f;
    border-radius: 10px;
    padding: 0.75rem;
    background: #fff8f8;
}

.health-ui .member-medical-prev {
    background: #ffffff;
    color: #2f5b3d;
    border: 1px solid #8ac53f;
}

.health-ui .family-medical-actions {
    flex-wrap: nowrap !important;
}

.health-ui .family-medical-actions .btn {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .health-ui .family-medical-tabs,
    .health-ui .family-limits-tabs {
        gap: 0.4rem;
        border-bottom: 0;
        padding-bottom: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .health-ui .member-medical-tab,
    .health-ui .member-limits-tab {
        border: 1px solid #cfdac8;
        border-bottom-width: 1px;
        border-radius: 10px;
        background: #ffffff;
        color: #4f5c6a;
        padding: 0.56rem 0.8rem;
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .health-ui .member-medical-tab.active,
    .health-ui .member-limits-tab.active {
        border-color: #8ac53f;
        background: #eef8e4;
        color: #2f5b3d;
    }

    .health-ui .family-medical-panel,
    .health-ui .family-limits-panel {
        border-top: 1px solid #cfdac8;
        border-radius: 12px;
    }

    .health-ui .family-member-context-heading {
        font-size: 1.22rem !important;
        font-weight: 800 !important;
    }
}
