.medical-visit-page .alert-warning,
.data-page .alert-warning { border-color: #f59e0b; }

.health-dashboard {
    --health-text: #152238;
    --health-muted: #7890ae;
    --health-border: #dde6f0;
    --health-bg: #f2f6fb;
    color: var(--health-text);
    font-size: .875rem;
    padding: 1.25rem 1.35rem 2.5rem;
}

.health-dashboard::before {
    background: var(--health-bg);
    content: "";
    inset: 0;
    position: fixed;
    z-index: -1;
}

.health-dashboard h1 { color: #132037; font-size: clamp(1.55rem, 2vw, 2rem); font-weight: 750; letter-spacing: -.035em; }
.health-dashboard > header p strong { color: #0b9f92; }
.health-breadcrumb { color: #6e819b; font-size: .82rem; }
.health-breadcrumb iconify-icon { color: #13b7aa; font-size: 1.15rem; }
.health-breadcrumb i { color: #b5c1d0; }
.health-breadcrumb strong { color: #2c3a50; }
.health-btn { align-items: center; border-radius: .75rem; display: inline-flex; font-size: .82rem; font-weight: 650; gap: .45rem; min-height: 2.55rem; padding-inline: 1rem; }
.health-btn.btn-primary { background: #2764e7; border-color: #2764e7; box-shadow: 0 .25rem .75rem rgba(39,100,231,.18); }

.health-kpi.card,
.health-panel.card { border: 1px solid var(--health-border); box-shadow: 0 2px 5px rgba(25,45,75,.045); }
.health-kpi { border-radius: .95rem; min-height: 7.6rem; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.health-kpi:hover { box-shadow: 0 .6rem 1.2rem rgba(25,45,75,.09); transform: translateY(-2px); }
.health-kpi__value { display: block; font-size: 1.7rem; line-height: 1; margin-bottom: .45rem; }
.health-kpi__label { color: #72849d; display: block; font-size: .74rem; }
.health-icon, .health-panel__icon { align-items: center; background: color-mix(in srgb, currentColor 10%, white); border-radius: .65rem; display: inline-flex; flex: 0 0 auto; height: 2.15rem; justify-content: center; width: 2.15rem; }
.health-icon iconify-icon, .health-panel__icon iconify-icon { font-size: 1.15rem; }
.health-pill, .health-count { background: color-mix(in srgb, currentColor 9%, white); border-radius: 999px; color: inherit; font-size: .66rem; font-weight: 700; padding: .22rem .5rem; white-space: nowrap; }

.health-tone-orange { color: #ff7518 !important; }
.health-tone-amber { color: #e98516 !important; }
.health-tone-blue { color: #377cf5 !important; }
.health-tone-red { color: #ef3d4d !important; }
.health-tone-purple { color: #a94bea !important; }
.health-tone-teal { color: #0ca99a !important; }
.health-tone-slate { color: #647892 !important; }
.health-kpi.health-tone-red { border-color: #ffd8dc; }
.health-kpi.health-tone-amber { border-color: #ffe3c4; }
.health-kpi.health-tone-red .health-kpi__value { color: #e93444; }

.health-panel { border-radius: 1rem; overflow: hidden; }
.health-panel .card-header { border-bottom: 1px solid #edf1f6; min-height: 4.15rem; padding: .9rem 1rem; }
.health-panel .card-header h2, .health-confidentiality h2 { font-size: .83rem; font-weight: 750; margin: 0 0 .12rem; }
.health-panel .card-header p { color: #8aa0bb; font-size: .7rem; margin: 0; }
.health-link { color: #2764e7; font-size: .7rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.health-link:hover { color: #184fca; text-decoration: underline; }
.health-filter { border: 0; color: #71839c; font-size: .7rem; padding-right: 1.75rem; width: auto; }

.health-table { --bs-table-bg: transparent; min-width: 720px; }
.health-table thead th { background: #f8fafc; border-bottom: 1px solid #eef2f6; color: #6e829e; font-size: .64rem; font-weight: 750; letter-spacing: .02em; padding: .72rem 1rem; text-transform: uppercase; }
.health-table tbody td { border-color: #eef2f6; color: #53657e; font-size: .74rem; padding: .78rem 1rem; }
.health-table tbody tr { transition: background .15s ease; }
.health-table tbody tr:hover { background: #fbfcfe; }
.health-table td strong { color: #26354b; display: block; font-size: .76rem; }
.health-table td small, .health-list small, .health-document small { color: #8da1bc; display: block; font-size: .65rem; }
.health-table .btn-sm { align-items: center; border-radius: .55rem; display: inline-flex; font-size: .68rem; font-weight: 650; gap: .3rem; padding: .4rem .65rem; }

.health-avatar { align-items: center; background: linear-gradient(135deg, #dceafe, #c8f2ed); background-position: center; background-size: cover; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dce4ed; color: #27706b; display: inline-flex; flex: 0 0 auto; font-size: .58rem; font-weight: 750; height: 1.8rem; justify-content: center; width: 1.8rem; }
.health-avatar--sm { height: 1.65rem; width: 1.65rem; }
.health-type { align-items: center; background: #f0f5ff; border: 1px solid #d8e5ff; border-radius: 999px; color: #3975e7; display: inline-flex; font-size: .66rem; font-weight: 650; gap: .25rem; padding: .28rem .5rem; white-space: nowrap; }
.health-type iconify-icon { font-size: .85rem; }
.health-status, .health-priority, .health-mini-pill { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-size: .65rem; font-weight: 700; gap: .3rem; padding: .27rem .55rem; white-space: nowrap; }
.health-status i { background: currentColor; border-radius: 50%; height: .35rem; width: .35rem; }
.health-status--warning, .health-priority--warning, .health-mini-pill.is-warning { background: #fff6e9; border-color: #ffe3bd; color: #f07816; }
.health-status--success, .health-mini-pill.is-success { background: #eafbf1; border-color: #cff2dc; color: #269853; }
.health-status--danger, .health-priority--danger { background: #fff0f1; border-color: #ffd4d8; color: #e73343; }
.health-status--info { background: #eef7ff; border-color: #d9ebff; color: #3278d9; }
.health-status--purple { background: #f8efff; border-color: #ecd8ff; color: #9846d8; }
.health-status--secondary, .health-priority--normal { background: #f1f4f8; border-color: #e2e8ef; color: #71839b; }
.health-admin-type { background: #f1f4f8; border-radius: .35rem; color: #5c6e86; display: inline-flex; font-size: .66rem; font-weight: 650; padding: .28rem .45rem; }
.health-admin-type.is-extension { background: #fff4e8; border: 1px solid #ffe0bd; color: #de6d19; }
.health-empty { color: #8da1ba !important; padding: 1.5rem !important; text-align: center; }

.health-confidentiality { background: linear-gradient(135deg, #eff8ff, #edfffb); border: 1px solid #b9ddff; border-radius: 1rem; display: flex; gap: .8rem; padding: 1rem; }
.health-confidentiality h2 { color: #2454ad; font-size: .82rem; }
.health-confidentiality p { color: #2865bf; font-size: .7rem; line-height: 1.55; margin: .35rem 0 .65rem; }
.health-confidentiality small { color: #2d6ddd; font-size: .66rem; font-weight: 650; }
.health-count { align-items: center; border: 1px solid color-mix(in srgb, currentColor 18%, white); display: inline-flex; height: 1.5rem; justify-content: center; min-width: 1.5rem; }

.health-list__item { border-bottom: 1px solid #edf1f5; padding: .85rem 1rem; }
.health-list__item:last-child { border-bottom: 0; }
.health-list strong { color: #2d3b50; display: block; font-size: .74rem; }
.health-mini-pill { font-size: .6rem; max-width: 75%; overflow: hidden; text-overflow: ellipsis; }
.health-documents .health-document { align-items: center; border-bottom: 1px solid #edf1f5; color: inherit; display: grid; gap: .65rem; grid-template-columns: auto 1fr auto; padding: .75rem 1rem; text-decoration: none; }
.health-document:hover { background: #fbfcfe; }
.health-document > span:nth-child(2) { min-width: 0; }
.health-document strong { color: #344156; display: block; font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-document > b { font-size: .64rem; }
.health-panel .card-footer { border-color: #edf1f5; padding: .75rem; }

.health-activity .card-body { min-height: 14rem; padding: 1rem; }
.health-timeline { position: relative; }
.health-timeline::before { background: #dfe7f0; content: ""; left: 1rem; position: absolute; top: 1rem; bottom: 1rem; width: 1px; }
.health-timeline article { align-items: start; display: grid; gap: .8rem; grid-template-columns: 2rem 1fr auto; min-height: 3.5rem; padding: .45rem 0; position: relative; }
.health-timeline__icon { align-items: center; background: color-mix(in srgb, currentColor 10%, white); border: 1px solid color-mix(in srgb, currentColor 20%, white); border-radius: 50%; display: inline-flex; height: 2rem; justify-content: center; width: 2rem; z-index: 1; }
.health-timeline article strong { color: #2c394d; display: block; font-size: .72rem; }
.health-timeline article p { color: #71859f; font-size: .67rem; margin: .12rem 0; }
.health-timeline article small { color: #9aabc0; font-size: .62rem; }
.health-timeline time { color: #8ca0ba; font-size: .62rem; white-space: nowrap; }

@media (max-width: 1199.98px) {
    .health-dashboard { padding: 1rem .5rem 2rem; }
}

@media (max-width: 575.98px) {
    .health-dashboard > header .health-btn { flex: 1 1 auto; justify-content: center; }
    .health-kpis > div { min-width: 50%; }
    .health-kpi__value { font-size: 1.45rem; }
    .health-timeline article { grid-template-columns: 2rem 1fr; }
    .health-timeline time { grid-column: 2; }
}

/* Medical visit creation form */
.medical-form-page {
    --medical-border: #dfe7f1;
    --medical-muted: #8498b2;
    color: #1b2940;
    padding: 1rem 1.25rem 2.5rem;
}

.medical-form-page::before { background: #f2f6fb; content: ""; inset: 0; position: fixed; z-index: -1; }
.medical-form-heading h1 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 760; letter-spacing: -.035em; }
.medical-form-heading > div > div > p { color: #788ba4; font-size: .78rem; }
.medical-form-heading > div > div > p strong { color: #0a9e90; }
.medical-back { align-items: center; border-radius: .65rem; color: #647892; display: inline-flex; height: 2.4rem; justify-content: center; padding: 0; width: 2.4rem; }
.medical-draft-badge { align-items: center; background: #f1f4f8; border: 1px solid #dfe6ee; border-radius: 999px; color: #8394a9; display: inline-flex; font-size: .66rem; font-weight: 650; gap: .35rem; padding: .3rem .65rem; white-space: nowrap; }
.medical-draft-badge i { background: #b7c3d1; border-radius: 50%; height: .4rem; width: .4rem; }

.medical-privacy-banner { background: linear-gradient(100deg, #2864eb, #0c9e91); border-radius: .85rem; box-shadow: 0 .45rem 1rem rgba(39,100,231,.13); color: white; padding: .8rem 1rem; }
.medical-privacy-banner .medical-section-icon { background: rgba(255,255,255,.18); color: white; }
.medical-privacy-banner strong { display: block; font-size: .76rem; margin: .08rem 0; }
.medical-privacy-banner p { color: #dceeff; font-size: .65rem; line-height: 1.45; margin: 0; }
.medical-privacy-banner p b { color: white; }
.medical-privacy-label { align-items: center; background: rgba(255,255,255,.18); border-radius: 999px; font-size: .64rem; font-weight: 650; gap: .3rem; padding: .35rem .65rem; white-space: nowrap; }

.medical-visit-form > .row { --bs-gutter-x: 1.25rem; }
.medical-form-card, .medical-summary, .medical-actions { border: 1px solid var(--medical-border); border-radius: .9rem; box-shadow: 0 2px 5px rgba(30,48,75,.045); overflow: hidden; }
.medical-form-card .card-header, .medical-summary .card-header { background: #fbfcfe; border-bottom: 1px solid #edf1f6; min-height: 3.8rem; padding: .75rem 1rem; }
.medical-form-card .card-header h2, .medical-summary .card-header h2 { font-size: .76rem; font-weight: 750; margin: 0 0 .1rem; }
.medical-form-card .card-header p { color: #8da0b9; font-size: .65rem; margin: 0; }
.medical-form-card .card-body { padding: 1rem; }
.medical-section-icon { align-items: center; background: #eef2f7; border-radius: .55rem; color: #71849c; display: inline-flex; flex: 0 0 auto; height: 2rem; justify-content: center; width: 2rem; }
.medical-section-icon iconify-icon, .medical-section-icon > i { font-size: 1rem; }
.medical-section-icon.is-blue { background: #eaf2ff; color: #3176ed; }
.medical-section-icon.is-teal { background: #e7fbf7; color: #08a696; }
.medical-section-icon.is-orange { background: #fff2e4; color: #f47a18; }
.medical-section-icon.is-purple { background: #f6ebff; color: #a148de; }
.medical-section-icon.is-slate { background: #eef2f7; color: #71849c; }
.medical-required { background: #fff0f1; border: 1px solid #ffd8dc; border-radius: 999px; color: #ef4654; font-size: .62rem; font-weight: 650; padding: .22rem .5rem; }

.medical-visit-form .form-label { color: #53667f; font-size: .64rem; font-weight: 750; letter-spacing: .025em; margin-bottom: .4rem; text-transform: uppercase; }
.medical-visit-form .form-label b { color: #ef3e4e; }
.medical-visit-form .form-label span { color: #94a4b7; font-weight: 500; letter-spacing: 0; text-transform: none; }
.medical-visit-form .form-control, .medical-visit-form .form-select { background-color: #f8fafc; border-color: #dfe6ef; border-radius: .7rem; color: #34445a; font-size: .73rem; min-height: 2.45rem; padding: .55rem .75rem; }
.medical-visit-form textarea.form-control { line-height: 1.5; min-height: 6.8rem; resize: vertical; }
.medical-visit-form .form-control:focus, .medical-visit-form .form-select:focus { background-color: #fff; border-color: #6e9df8; box-shadow: 0 0 0 .18rem rgba(55,114,255,.1); }
.medical-visit-form .form-control[readonly] { color: #53647a; }
.medical-input-icon { position: relative; }
.medical-input-icon > i { color: #93a5bb; font-size: .8rem; left: .75rem; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.medical-input-icon .form-control { padding-left: 2.1rem; }
.medical-help { color: #91a4bc; display: block; font-size: .61rem; margin-top: .35rem; }
.medical-employee-field { position: relative; }

.medical-employee-results { background: white; border: 1px solid #dfe7ef; border-radius: .7rem; box-shadow: 0 .75rem 1.5rem rgba(29,45,70,.13); margin-top: .3rem; max-height: 17rem; overflow-y: auto; padding: .3rem; position: absolute; width: calc(100% - 2rem); z-index: 20; }
.medical-employee-result { align-items: center; background: transparent; border: 0; border-radius: .55rem; display: flex; gap: .6rem; padding: .5rem; text-align: left; width: 100%; }
.medical-employee-result:hover { background: #f1f7ff; }
.medical-employee-result > span:last-child { min-width: 0; }
.medical-employee-result strong { color: #344156; display: block; font-size: .7rem; }
.medical-employee-result small { color: #8b9db3; display: block; font-size: .61rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.medical-employee-result.is-empty { color: #8b9db3; display: block; font-size: .68rem; padding: .75rem; text-align: center; }
.medical-selected-employee { align-items: center; background: #ecfcf9; border: 1px solid #c4f0e8; border-radius: .7rem; display: flex; gap: .65rem; margin-top: .55rem; padding: .55rem .65rem; }
.medical-selected-employee strong { color: #314056; display: block; font-size: .72rem; }
.medical-selected-employee small { color: #71869f; display: block; font-size: .62rem; }
.medical-selected-employee .btn { color: #8fa2b8; padding: .2rem; }
.medical-employee-avatar { align-items: center; background: linear-gradient(135deg,#d9eaff,#c4f2ea); background-position: center; background-size: cover; border: 2px solid #b6e9e0; border-radius: 50%; color: #19796e; display: inline-flex; flex: 0 0 auto; font-size: .58rem; font-weight: 750; height: 2rem; justify-content: center; width: 2rem; }

.medical-type-option { cursor: pointer; display: block; }
.medical-type-option input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.medical-type-option > span { align-items: center; background: #f8fafc; border: 1.5px solid #dce5ef; border-radius: .65rem; display: flex; gap: .55rem; min-height: 2.85rem; padding: .45rem .6rem; position: relative; transition: .15s ease; }
.medical-type-option:hover > span { border-color: #b8c7d9; }
.medical-type-option input:checked + span { background: #effcf9; border-color: #10b6a5; box-shadow: inset 0 0 0 .5px #10b6a5; }
.medical-type-option span > b { color: #495a70; font-size: .64rem; line-height: 1.2; }
.medical-type-icon { align-items: center; background: #edf2f7; border-radius: .48rem; color: #647892; display: inline-flex; flex: 0 0 auto; height: 1.65rem; justify-content: center; width: 1.65rem; }
.medical-type-icon.is-teal, .medical-type-icon.is-green { background: #dff9f4; color: #08a595; }
.medical-type-icon.is-orange { background: #fff0df; color: #ef7819; }
.medical-type-icon.is-blue { background: #e9f2ff; color: #3478e9; }
.medical-type-icon.is-purple { background: #f5eaff; color: #a249de; }
.medical-type-check { color: #0caf9f; display: none; margin-left: auto; }
.medical-type-option input:checked + span .medical-type-check { display: inline; }

.medical-switch { align-items: center; background: #f8fafc; border: 1px solid #dfe6ef; border-radius: .65rem; cursor: pointer; display: flex; gap: .65rem; min-height: 3.35rem; padding: .6rem .7rem; }
.medical-switch .form-check-input { cursor: pointer; flex: 0 0 auto; height: 1.15rem; margin: 0; width: 2.1rem; }
.medical-switch span { flex-grow: 1; }
.medical-switch b { color: #485970; display: block; font-size: .68rem; }
.medical-switch small { color: #8b9db4; display: block; font-size: .58rem; }
.medical-switch > i { color: #8da0b8; }
.medical-inline-warning { align-items: center; background: #fff9e9; border: 1px solid #f6dc91; border-radius: .6rem; color: #c77908; display: flex; font-size: .64rem; font-weight: 650; gap: .5rem; padding: .65rem .75rem; }

.medical-form-aside { position: sticky; top: 5.7rem; }
.medical-summary .card-header { background: linear-gradient(90deg,#effcf9,#f0f8ff); }
.medical-summary .card-body { padding: .5rem 1rem; }
.medical-summary-row { align-items: flex-start; border-bottom: 1px solid #edf1f5; display: flex; gap: .7rem; padding: .8rem 0; }
.medical-summary-row:last-child { border-bottom: 0; }
.medical-summary-row .medical-section-icon { height: 1.7rem; width: 1.7rem; }
.medical-summary-row > div { min-width: 0; }
.medical-summary-row small { color: #91a3b9; display: block; font-size: .58rem; font-weight: 650; letter-spacing: .025em; text-transform: uppercase; }
.medical-summary-row strong { color: #334157; display: block; font-size: .7rem; margin-top: .12rem; }
.medical-summary-row p { color: #7d90a8; font-size: .61rem; margin: .08rem 0 0; }
.medical-summary-pill { background: #eafbf7; border: 1px solid #c9f0e8; border-radius: 999px; color: #07978a !important; display: inline-flex !important; padding: .2rem .45rem; }
.medical-actions .card-body { display: grid; gap: .55rem; padding: 1rem; }
.medical-actions h2, .medical-form-help h2 { color: #5d7089; font-size: .64rem; font-weight: 750; letter-spacing: .04em; margin: 0 0 .15rem; text-transform: uppercase; }
.medical-actions .btn { align-items: center; border-radius: .65rem; display: inline-flex; font-size: .7rem; font-weight: 700; gap: .4rem; justify-content: center; min-height: 2.55rem; }
.medical-actions .btn-primary { background: #2864eb; border-color: #2864eb; }
.medical-actions p { border-top: 1px solid #edf1f5; color: #91a2b7; font-size: .59rem; margin: .15rem 0 0; padding-top: .65rem; text-align: center; }
.medical-form-help { background: linear-gradient(135deg,#f8fbff,#eef6ff); border: 1px solid #d9e8fb; border-radius: .85rem; padding: 1rem; }
.medical-form-help h2 { color: #52667e; margin-bottom: .75rem; }
.medical-form-help p { color: #5e7189; display: flex; font-size: .62rem; gap: .5rem; line-height: 1.45; margin: 0 0 .55rem; }
.medical-form-help p:last-child { margin-bottom: 0; }

@media (max-width: 1199.98px) {
    .medical-form-page { padding: .75rem .25rem 2rem; }
    .medical-form-aside { position: static; }
}

@media (max-width: 575.98px) {
    .medical-form-heading { align-items: flex-start !important; }
    .medical-form-heading .health-breadcrumb { display: none !important; }
    .medical-form-heading h1 { font-size: 1.25rem; }
    .medical-form-heading > .medical-draft-badge { display: none; }
    .medical-privacy-banner { align-items: flex-start !important; }
    .medical-form-card .card-body { padding: .85rem; }
}
/* Medical visit settings and providers */
.mv-settings{--mv-navy:#111c32;--mv-muted:#71829d;--mv-border:#dfe7f1;--mv-bg:#f2f7fc;color:var(--mv-navy);font-size:.9rem}.mv-settings h1{font-size:1.7rem;font-weight:800;margin:0}.mv-settings h2{font-size:1rem;font-weight:750;margin:0}.mv-settings p{color:var(--mv-muted);margin:.2rem 0 0}.mv-settings-breadcrumb{color:#74849d;font-size:.82rem}.mv-settings-breadcrumb i{margin:0 .3rem}.mv-settings-title-icon,.mv-settings-icon{align-items:center;background:#e6fbf7;border-radius:10px;color:#11ae9e;display:inline-flex;flex:0 0 auto;height:40px;justify-content:center;width:40px}.mv-settings-title-icon{background:linear-gradient(135deg,#23bea9,#347ff2);color:#fff;font-size:1.25rem}.mv-settings-title-icon.is-purple,.mv-settings-icon.is-purple{background:#f3e9ff;color:#9638e9}.mv-settings-icon.is-blue{background:#e8f1ff;color:#2f75ed}.mv-settings-icon.is-teal{background:#e6fbf7;color:#11ae9e}.mv-settings-icon.is-orange{background:#fff1e4;color:#f4771c}.mv-settings-icon.is-green{background:#e9faef;color:#16ae5b}.mv-settings-icon.is-muted{background:#eef2f6;color:#a9b5c4}.mv-settings-privacy{background:linear-gradient(105deg,#edf5ff,#e9fcf8);border:1px solid #aed5ff;border-radius:14px;color:#2161d8;padding:16px}.mv-settings-privacy p{color:#2161d8;font-size:.8rem}.mv-settings-rgpd{align-items:center;background:#dbeaff;border-radius:20px;font-weight:700;gap:.35rem;padding:8px 12px;white-space:nowrap}.mv-settings-nav{background:#fff;border:1px solid var(--mv-border);border-radius:14px;box-shadow:0 2px 4px #1e3d6710;padding:5px}.mv-settings-nav a{align-items:center;border-radius:9px;color:#6c7d97;display:flex;font-weight:700;gap:.45rem;padding:10px 16px;text-decoration:none}.mv-settings-nav a.active{background:#e9fbf8;color:#099989}.mv-settings-nav a.active.is-purple{background:#f3e9ff;color:#8b2bdf}.mv-settings-nav a.active.is-blue{background:#e8f1ff;color:#2867dc}.mv-setting-card,.mv-settings-panel,.mv-settings-table,.mv-form-section,.mv-preview,.mv-provider-card,.mv-provider-filter{background:#fff;border:1px solid var(--mv-border);border-radius:15px;box-shadow:0 2px 5px #233a5d0b;overflow:hidden}.mv-setting-card{display:flex;flex-direction:column;height:100%;padding:18px}.mv-setting-card h2{font-size:1.05rem;margin-top:18px}.mv-setting-card>p{min-height:42px}.mv-chip{background:#e9fbf8;border-radius:15px;color:#0ba28f;font-size:.75rem;font-weight:700;height:max-content;padding:5px 9px}.mv-setting-card.is-blue .mv-chip{background:#e9f1ff;color:#2769e5}.mv-setting-card.is-purple .mv-chip{background:#f5ebff;color:#9638e9}.mv-setting-card.is-orange .mv-chip{background:#fff2e6;color:#f17017}.mv-setting-card.is-green .mv-chip{background:#eafbee;color:#119a4c}.mv-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.mv-tags span,.mv-card-lines span{background:#f6f8fb;border:1px solid #edf1f6;border-radius:7px;padding:6px 9px}.mv-card-lines{display:grid;gap:5px;margin-top:12px}.mv-card-lines span{display:flex;justify-content:space-between}.mv-card-lines b{color:#1a8e57}.mv-setting-card footer{align-items:center;border-top:1px solid #edf1f6;display:flex;justify-content:space-between;margin:16px -18px -18px;padding:12px 18px}.mv-setting-card footer small{color:#8b9bb2}.mv-btn-purple{background:#9433e7;border-color:#9433e7;color:#fff}.mv-btn-purple:hover{background:#7d25cc;color:#fff}.mv-settings-panel>header,.mv-preview>header{align-items:center;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;padding:15px 18px}.mv-settings-panel>header p{font-size:.78rem}.mv-activity article{align-items:center;border-bottom:1px solid #edf1f6;display:flex;gap:14px;padding:15px 18px}.mv-activity article:last-child{border:0}.mv-activity article>div{flex:1}.mv-activity article p,.mv-activity article time{font-size:.78rem}.mv-progress-row{align-items:center;display:grid;gap:8px;grid-template-columns:110px 1fr 55px;margin-bottom:12px}.mv-progress-row .progress{height:6px}.mv-progress-row b{color:#15a493;font-size:.75rem;text-align:right}.mv-quick{background:#f6f8fb;border:1px solid #edf1f6;border-radius:9px;color:#51617a;padding:10px;text-decoration:none}.mv-settings-table .card-header{padding:16px 18px}.mv-search{max-width:340px}.mv-settings-table thead th{background:#f7f9fc;color:#596b84;font-size:.72rem;padding:14px;text-transform:uppercase}.mv-settings-table td{border-color:#edf1f6;padding:16px 14px}.mv-settings-table td strong,.mv-settings-table td small{display:block}.mv-settings-table td small{color:#8797ae;max-width:250px}.mv-settings-table code,.mv-preview code,.mv-existing code{background:#eff3f7;border-radius:6px;color:#526177;display:inline-block;padding:3px 7px}.mv-settings-table>footer{color:#8394ab;padding:14px 18px}.mv-check{align-items:center;border-radius:50%;display:inline-flex;height:27px;justify-content:center;width:27px}.mv-check.yes{background:#dbf9e7;color:#12a452}.mv-check.no{background:#eff3f7;color:#9cabbc}.mv-duration{background:#f1f5f9;border:1px solid #dfe7ef;border-radius:18px;display:inline-flex;gap:5px;padding:6px 10px}.mv-status{align-items:center;background:#e8faef;border:1px solid #c9f1d7;border-radius:16px;color:#15984b;display:inline-flex;font-size:.75rem;font-weight:700;gap:6px;padding:5px 9px;white-space:nowrap}.mv-status i{background:currentColor;border-radius:50%;height:6px;width:6px}.mv-status.inactive{background:#f0f3f7;border-color:#e3e8ee;color:#8997a9}.mv-empty{color:#8291a7;padding:30px;text-align:center}.mv-form-section>header{align-items:center;border-bottom:1px solid #edf1f6;display:flex;gap:12px;padding:14px 18px}.mv-form-section>header>div{flex:1}.mv-form-section>header p{font-size:.78rem}.mv-form-section .card-body{padding:18px}.mv-form-section .form-label{color:#53637b;font-size:.75rem;font-weight:800;text-transform:uppercase}.mv-form-section .form-label b{color:#ef4444}.mv-form-section .form-control,.mv-form-section .input-group-text{background:#f9fbfd;border-color:#dce5ef;min-height:42px}.mv-form-section small{color:#8999ae}.mv-step-chip{background:#e7faf6;border-radius:15px;color:#0ca893;font-size:.72rem;font-weight:700;padding:5px 9px}.mv-step-chip.is-purple{background:#f3e9ff;color:#9638e9}.mv-step-chip.is-blue{background:#e7f0ff;color:#2d72e8}.mv-toggle-row{align-items:center;background:#f7f9fc;border:1px solid #edf1f6;border-radius:10px;display:flex;gap:10px;min-height:58px;padding:10px 12px}.mv-toggle-row strong,.mv-toggle-row small{display:block}.mv-toggle-row .form-check-input{height:22px;width:40px}.mv-form-actions{align-items:center;background:#fff;border:1px solid var(--mv-border);border-radius:14px;display:flex;justify-content:space-between;padding:14px 18px}.mv-preview.sticky-xl-top{top:85px}.mv-preview>header strong{color:#9132e3}.mv-preview-lines{display:grid;gap:10px}.mv-preview-lines span{display:flex;justify-content:space-between}.mv-preview-lines b{color:#169f56}.mv-existing>div{align-items:center;display:flex;gap:10px;margin-bottom:12px}.mv-existing>div>span:nth-child(2){flex:1}.mv-existing strong,.mv-existing code{display:block}.mv-steps{gap:12px}.mv-steps span{align-items:center;color:#9aa8ba;display:flex;gap:6px}.mv-steps b,.mv-provider-steps b{align-items:center;background:#e7edf4;border-radius:50%;display:inline-flex;height:25px;justify-content:center;width:25px}.mv-steps span.active{color:#0ca893}.mv-steps span.active b,.mv-provider-steps .active b{background:#11b5a4;color:#fff}.mv-provider-kpi{align-items:center;background:#fff;border:1px solid var(--mv-border);border-radius:14px;display:grid;grid-template-columns:45px 1fr;padding:16px}.mv-provider-kpi .mv-settings-icon{grid-row:span 2}.mv-provider-kpi strong{font-size:1.5rem}.mv-provider-kpi small{color:#71829b}.mv-provider-card h2{font-size:1.05rem}.mv-provider-card p{font-size:.8rem}.mv-provider-contact{display:grid;gap:8px;margin-top:18px}.mv-provider-contact a,.mv-provider-contact span{color:#566780;text-decoration:none}.mv-provider-contact i{color:#8ea0b7;margin-right:8px}.mv-provider-card footer{align-items:center;background:#fbfcfe;border-top:1px solid #edf1f6;display:flex;justify-content:space-between;padding:12px 16px}.mv-provider-card footer small{color:#8a9ab0}.mv-empty-card{align-items:center;background:#fff;border:2px dashed #dce5ef;border-radius:15px;display:flex;flex-direction:column;justify-content:center;min-height:260px;padding:30px;text-align:center}.mv-quality{text-align:center}.mv-quality>strong{display:block;font-size:2rem}.mv-quality .progress{height:8px;margin:18px 0}.mv-quality p{font-size:.78rem;text-align:left}.mv-provider-steps{background:#fff;border:1px solid var(--mv-border);border-radius:14px;padding:12px}.mv-provider-steps span{align-items:center;display:grid;flex:1;gap:0 8px;grid-template-columns:30px 1fr}.mv-provider-steps b{grid-row:span 2}.mv-provider-steps small{color:#8a9ab0}.mv-provider-steps span:not(:last-child){border-right:1px solid #e6ebf1}.mv-validation-grid{display:grid;gap:10px;grid-template-columns:repeat(3,1fr)}.mv-validation-grid span{background:#effbf4;border-radius:9px;color:#198a4c;padding:12px}.mv-progress-purple{background:linear-gradient(90deg,#9b37eb,#15b8ae)}
@media(max-width:767px){.mv-settings h1{font-size:1.35rem}.mv-settings-nav a{flex:1 1 45%;padding:9px}.mv-form-actions,.mv-provider-card footer{align-items:stretch;flex-direction:column}.mv-validation-grid{grid-template-columns:1fr}.mv-progress-row{grid-template-columns:90px 1fr 48px}.mv-settings-table td{white-space:nowrap}}

/* Medical visit administrative file */
.mv-detail{--mvd-text:#142039;--mvd-muted:#7788a2;--mvd-border:#dde6f0;color:var(--mvd-text);font-size:.88rem}.mv-detail h1{font-size:1.65rem;font-weight:800;margin:0}.mv-detail h2{font-size:.98rem;font-weight:750}.mv-detail h3{font-size:.9rem;font-weight:750;margin:0}.mv-detail p{color:var(--mvd-muted);margin:.15rem 0}.mv-detail-breadcrumb,.mv-detail-back{color:#75869f;font-size:.8rem}.mv-detail-back{text-decoration:none}.mv-detail header code{color:#92a2b7}.mv-detail-icon{align-items:center;background:#e6fbf7;border-radius:10px;color:#10a99a;display:inline-flex;flex:0 0 auto;height:38px;justify-content:center;width:38px}.mv-detail-icon.is-blue{background:#e8f1ff;color:#2d72e8}.mv-detail-icon.is-teal,.mv-detail-icon.is-green{background:#e5fbf4;color:#0ba78d}.mv-detail-icon.is-orange{background:#fff1e3;color:#f27921}.mv-detail-icon.is-red{background:#ffe9ea;color:#ed4d55}.mv-detail-icon.is-purple{background:#f3e9ff;color:#9239df}.mv-detail-icon.is-slate{background:#eef2f6;color:#8292a7}.mv-visit-synthesis,.mv-detail-workspace{border:1px solid var(--mvd-border);border-radius:15px;box-shadow:0 2px 5px #2038580c;overflow:hidden}.mv-visit-synthesis>header{align-items:center;background:linear-gradient(90deg,#f1fffc,#f7fbff);display:flex;gap:12px;padding:14px 18px}.mv-visit-synthesis>header>div{flex:1}.mv-visit-synthesis>header p{font-size:.75rem}.mv-detail-status,.mv-detail-chip{align-items:center;background:#eef3f8;border-radius:16px;color:#708097;display:inline-flex;font-size:.73rem;font-weight:700;gap:5px;padding:5px 9px}.mv-detail-status i{background:currentColor;border-radius:50%;height:6px;width:6px}.mv-detail-status.is-primary{background:#e8f1ff;color:#286ee8}.mv-detail-status.is-success,.mv-detail-chip.is-green{background:#e5f9eb;color:#13974b}.mv-detail-status.is-warning,.mv-detail-chip.is-orange{background:#fff0e3;color:#ed711a}.mv-detail-status.is-danger,.mv-detail-chip.is-red{background:#ffe9e9;color:#dc3945}.mv-detail-chip.is-purple{background:#f3e9ff;color:#963be4}.mv-detail-chip.is-blue{background:#e8f1ff;color:#2f72e5}.mv-detail-chip.is-teal{background:#e4faf6;color:#0b9e8c}.mv-synthesis-grid{display:grid;grid-template-columns:repeat(8,1fr)}.mv-synthesis-grid>div{border-right:1px solid #edf1f6;display:flex;flex-direction:column;justify-content:center;min-height:78px;padding:12px 14px}.mv-synthesis-grid>div:last-child{border:0}.mv-synthesis-grid small,.mv-synthesis-grid span{color:#8292aa}.mv-synthesis-grid strong{margin-top:3px}.mv-synthesis-grid a{color:#256ee8;font-weight:700;text-decoration:none}.mv-detail-tabs{border-bottom:1px solid var(--mvd-border);display:flex;gap:4px;padding:12px 18px 0}.mv-detail-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:#687a94;font-weight:700;padding:11px 14px}.mv-detail-tabs button.active{border-color:#276ff0;color:#276ff0}.mv-detail-tabs button span,.mv-count{background:#edf2f7;border-radius:13px;color:#687a94;font-size:.7rem;margin-left:5px;padding:3px 7px}.mv-detail-pane{padding:24px}.mv-detail-panel,.mv-confidentiality{border:1px solid var(--mvd-border);border-radius:13px;overflow:hidden}.mv-detail-panel>header,.mv-confidentiality>header{align-items:center;border-bottom:1px solid var(--mvd-border);display:flex;gap:10px;padding:14px 16px}.mv-detail-panel>header p{font-size:.74rem}.mv-detail-panel>.card-body,.mv-confidentiality>.card-body{padding:18px}.mv-employee{align-items:center;display:flex;gap:12px}.mv-avatar{align-items:center;background:linear-gradient(135deg,#27b8a5,#3479ee);border-radius:50%;color:#fff;display:flex;font-weight:800;height:48px;justify-content:center;width:48px}.mv-employee span,.mv-employee b{display:block}.mv-employee b{color:#169b4e}.mv-key-values{border-top:1px solid #edf1f6;display:grid;gap:12px;margin-top:16px;padding-top:16px}.mv-key-values span{color:#788aa3;display:flex;justify-content:space-between}.mv-key-values b{color:#344157;text-align:right}.mv-planning{display:grid;gap:12px}.mv-planning article{align-items:flex-start;border:1px solid #e4eaf1;border-radius:9px;display:flex;gap:10px;padding:12px}.mv-planning article i{font-size:1.15rem}.mv-planning article span{color:#75869e;display:flex;flex-direction:column}.mv-planning article strong{color:#1d2940;font-size:.95rem;margin-top:3px}.mv-confidentiality{background:linear-gradient(140deg,#eaf4ff,#ebfcf8);border-color:#a9d2ff;color:#205dc9}.mv-confidentiality h3{font-size:1rem}.mv-confidentiality p{color:#2869d5;margin-top:12px}.mv-confidentiality-rules{display:grid;gap:8px;margin:18px 0}.mv-confidentiality-rules span{background:#ffffff80;border:1px solid #cae1f4;border-radius:8px;color:#53647b;padding:9px}.mv-confidentiality-rules i{color:#f16167}.mv-confidentiality footer{border-top:1px solid #cbe2f2;font-weight:700;padding-top:14px}.mv-protected-banner{align-items:center;background:linear-gradient(100deg,#ecf4ff,#ebfcf8);border:1px solid #abd4ff;border-radius:12px;color:#1d5ed3;display:flex;gap:12px;padding:14px 16px}.mv-protected-banner>div{flex:1}.mv-protected-banner p{color:#2566d5;font-size:.78rem}.mv-doc-kpi{align-items:center;background:#f8fafc;border:1px solid #e4eaf1;border-radius:11px;display:grid;grid-template-columns:42px 1fr;padding:13px}.mv-doc-kpi .mv-detail-icon{grid-row:span 2}.mv-doc-kpi strong{font-size:1.25rem}.mv-doc-kpi small{color:#7e8ea4}.mv-detail-search{width:230px}.mv-inline-form{align-items:center;background:#f7f9fc;border:1px dashed #cbd8e7;border-radius:11px;display:flex;gap:12px;padding:14px}.mv-inline-form>div{min-width:200px}.mv-document-list{display:grid;gap:12px}.mv-document-list>article{align-items:flex-start;border:1px solid #dfe7f0;border-radius:12px;display:flex;gap:14px;padding:16px}.mv-document-list h3{margin:0}.mv-document-list p{font-size:.75rem}.mv-document-note{background:#eef6ff;border:1px solid #d2e4f8;border-radius:7px;color:#316bd0;font-size:.75rem;margin-top:10px;padding:7px}.mv-result-grid{display:grid;gap:10px;grid-template-columns:1fr 1fr}.mv-result-option{align-items:center;background:#f8fafc;border:2px solid transparent;border-radius:10px;cursor:pointer;display:flex;gap:12px;padding:12px}.mv-result-option.selected{background:#f3f7ff;border-color:#7da9f7}.mv-result-option span:nth-child(2){flex:1}.mv-result-option strong,.mv-result-option small{display:block}.mv-result-option small{color:#8191a7}.mv-result-option input{height:17px;width:17px}.mv-result-option:last-child{grid-column:1/-1}.mv-selected-result{align-items:center;background:#f1f5f9;border:1px solid #dfe7f0;border-radius:10px;display:flex;gap:12px;padding:13px}.mv-selected-result strong,.mv-selected-result small{display:block}.mv-selected-result small{color:#8191a7}.mv-result-help{background:#eafbf8;border:1px solid #8ee5d8;border-radius:12px;color:#167767;padding:16px}.mv-result-help ol{display:grid;gap:10px;margin:14px 0 0;padding-left:28px}.mv-action-progress{background:#f7f9fc;border:1px solid #e3e9f1;border-radius:10px;padding:13px 16px}.mv-action-progress>div:first-child{display:flex;justify-content:space-between}.mv-action-progress .progress{height:7px;margin-top:8px}.mv-actions{display:grid;gap:14px}.mv-actions article{border:1px solid #b9d8ff;border-radius:12px;overflow:hidden}.mv-actions article.is-orange{border-color:#f6c58f}.mv-actions article.is-green,.mv-actions article.is-teal{border-color:#8de2d2}.mv-actions article>header{align-items:center;background:#f7faff;border-bottom:1px solid #dfe8f4;display:flex;gap:11px;padding:13px 16px}.mv-actions article>header>div{flex:1}.mv-action-meta{display:grid;gap:15px;grid-template-columns:repeat(4,1fr)}.mv-action-meta span{color:#8191a7;display:flex;flex-direction:column}.mv-action-meta b{color:#344157;margin-top:4px}.mv-action-description{background:#f7f9fc;border-radius:9px;margin-top:14px;padding:12px}.mv-action-description small{color:#8191a7;display:block;margin-bottom:5px}.mv-actions article>footer{border-top:1px solid #edf1f6;padding:11px 16px}.mv-timeline{border-left:2px solid #dce6f1;margin-left:16px;padding-left:24px}.mv-timeline article{margin-bottom:16px;position:relative}.mv-timeline article>div{border:1px solid #c4dafe;border-radius:11px;overflow:hidden}.mv-timeline article.is-green>div{border-color:#9ee5b8}.mv-timeline article.is-orange>div{border-color:#f8ca98}.mv-timeline article.is-teal>div{border-color:#8de2d4}.mv-timeline article.is-purple>div{border-color:#d8bbf7}.mv-timeline-icon{align-items:center;background:#e9f1ff;border:3px solid #fff;border-radius:50%;color:#2b72ea;display:flex;height:32px;justify-content:center;left:-41px;position:absolute;top:10px;width:32px}.mv-timeline-icon.is-green{background:#dcf8e6;color:#12a14e}.mv-timeline-icon.is-orange{background:#fff0df;color:#ef771d}.mv-timeline-icon.is-teal{background:#ddfaf5;color:#08a28f}.mv-timeline-icon.is-purple{background:#f2e5ff;color:#9138df}.mv-timeline article header{align-items:center;background:#f9fbfd;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;padding:11px 14px}.mv-timeline article p{padding:12px 14px}.mv-timeline article footer{border-top:1px solid #edf1f6;color:#7e8fa6;padding:9px 14px}.mv-empty{color:#8090a6;padding:30px;text-align:center}
@media(max-width:1199px){.mv-synthesis-grid{grid-template-columns:repeat(4,1fr)}.mv-synthesis-grid>div{border-bottom:1px solid #edf1f6}.mv-detail-tabs{overflow-x:auto}.mv-detail-tabs button{white-space:nowrap}}@media(max-width:767px){.mv-detail h1{font-size:1.3rem}.mv-synthesis-grid{grid-template-columns:1fr 1fr}.mv-detail-pane{padding:15px}.mv-inline-form{align-items:stretch;flex-direction:column}.mv-inline-form>div{min-width:0}.mv-result-grid{grid-template-columns:1fr}.mv-result-option:last-child{grid-column:auto}.mv-action-meta{grid-template-columns:1fr 1fr}.mv-document-list>article{flex-wrap:wrap}.mv-detail-search{width:100%}}
