body.dashboard-page .app-page-content,
body.newpatient-page .app-page-content,
body.research-page .app-page-content
{
    width: 100%;
    box-sizing: border-box;
}

body.newpatient-page .app-page-shell,
body.research-page .app-page-shell
{
    width: 100%;
    box-sizing: border-box;
    margin-top: calc(var(--nvx-nav-total-height) + var(--nvx-nav-content-gap));
}

body.dashboard-page
{
    --dashboard-toolbar-height: 68px;
}

body.dashboard-page .app-page-shell
{
    width: 100%;
    box-sizing: border-box;
    margin-top: calc(var(--nvx-nav-total-height) + var(--nvx-nav-content-gap) + var(--dashboard-toolbar-height));
}

/* ===== Dashboard converted styles ===== */
#admin-nav-link
{
    display: none;
}

.subscription-center
{
    display: flex;
    justify-content: center;
}

.subscription-block
{
    display: inline-block;
    margin: 0 auto;
    text-align: left;
}

.subscription-block .sub-row
{
    display: grid;
    grid-template-columns: 120px auto;
    column-gap: 10px;
    align-items: baseline;
    margin: 2px 0;
}

.subscription-block .sub-label
{
    text-align: right;
    font-weight: bold;
}

body.dashboard-page .toolbar
{
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

body.dashboard-page main
{
    padding: 0.3rem;
    text-align: center;
}

.dbi-001
{
    margin-right: 0;
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    vertical-align: middle;
}

.dbi-002
{
    width: 170px;
    height: 35px;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding-left: 8px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.dbi-003
{
    padding: 0.3rem;
    text-align: center;
}

.dbi-004
{
    margin-top: 10px;
    font-size: 14px;
}

.dbi-005
{
    display: inline-block;
    margin-top: 8px;
    color: #b00020;
    font-weight: bold;
}

.dbi-006
{
    width: 100%;
    border-collapse: collapse;
}

.dbi-007
{
    vertical-align: middle;
}

.dbi-008
{
    width: 100%;
}

.dbi-009
{
    display: inline-block;
    margin: 0;
}

.dbi-010
{
    background-color: #003366;
    color: white;
    width: 150px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    line-height: 14px;
}

.dbi-011
{
    border: none;
    height: 2px;
    background-color: black;
    margin: 10px 0;
}

.dbi-012
{
    width: 30%;
    text-align: right;
    padding-right: 10px;
}

.dbi-013
{
    width: 70%;
    text-align: left;
}

.dbi-014
{
    width: 50%;
}

.dbi-015
{
    text-align: right;
    padding-right: 10px;
}

.dbi-016
{
    text-align: left;
}

.dbi-017
{
    border: none;
    height: 2px;
    background-color: black;
    margin: 30px 0;
}

.dbi-018
{
    display: inline-block;
    margin-left: 10px;
}

.dbi-019
{
    text-align: center;
}

.dbi-020
{
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.dbi-021
{
    margin: 0;
}

.dbi-022
{
    margin-top: 10px;
    text-align: center;
    display: none;
}

.dbi-023
{
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

.dbi-024
{
    margin-top: 10px;
    text-align: center;
}

.dbi-025
{
    margin-bottom: 8px;
}

.dbi-026
{
    margin-left: 8px;
}

.dbi-027
{
    margin-top: 12px;
}

.dbi-028
{
    margin-top: 8px;
    font-style: italic;
}

body.dashboard-page .dx-nav-footer
{
    gap: 12px;
}

/* ===== Dashboard toolbar centering + shared nav-pill visual alignment ===== */
body.dashboard-page .toolbar-center
{
    width: 100%;
    display: flex;
    justify-content: center;
}

body.dashboard-page .analysis-toolbar.analysis-toolbar--stack
{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

body.dashboard-page .analysis-row.analysis-row--top
{
    display: flex;
    justify-content: center;
    width: 100%;
}

body.dashboard-page .patient-picker
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.dashboard-page #addPatientRow
{
    width: 100%;
    display: flex;
    justify-content: center !important;
    margin-top: 16px !important;
}

body.dashboard-page .add-patient-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    width: auto;
    max-width: calc(100vw - 40px);
    height: 34px;
    padding: 5px 12px;
    margin: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
    color: #ffffff !important;
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 6px 14px rgba(23, 37, 84, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.8);
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

body.dashboard-page .add-patient-btn:hover
{
    background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 10px 20px rgba(23, 37, 84, 0.35);
}

body.dashboard-page .dbi-002
{
    display: inline-block;
    vertical-align: middle;
    width: 170px;
    max-width: calc(100vw - 40px);
    height: 34px;
    padding: 5px 36px 5px 12px;
    margin: 0;
    border-radius: 4px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.8);
    color: #ffffff !important;
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    font-family: inherit;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    cursor: pointer;
    background-color: #1e3a8a;
    background-image:
        linear-gradient(180deg, #1e3a8a 0%, #172554 100%),
        linear-gradient(45deg, transparent 50%, #ffffff 50%),
        linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 18px) 14px,
        calc(100% - 12px) 14px;
    background-size:
        100% 100%,
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 6px 14px rgba(23, 37, 84, 0.25);
}

body.dashboard-page .dbi-002:hover
{
    background-color: #2563eb;
    background-image:
        linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%),
        linear-gradient(45deg, transparent 50%, #ffffff 50%),
        linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 18px) 14px,
        calc(100% - 12px) 14px;
    background-size:
        100% 100%,
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 10px 20px rgba(23, 37, 84, 0.35);
}

body.dashboard-page .dbi-002::-ms-expand
{
    display: none;
}

body.dashboard-page .dbi-002 option
{
    color: #0f172a;
    background: #ffffff;
    text-shadow: none;
}

body.dashboard-page .dbi-002:focus-visible,
body.dashboard-page .add-patient-btn:focus-visible
{
    outline: 3px solid rgba(22, 101, 52, 0.18);
    outline-offset: 3px;
}

@media (max-width: 768px)
{
    body.dashboard-page .patient-picker
    {
        gap: 10px;
    }
}


/* ===== Dashboard patient review controls ===== */
body.dashboard-page .patient-review-controls
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}


body.dashboard-page .dashboard-page-title
{
    margin: 0 0 18px 0;
    text-align: center;
    color: #1f3f86;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

body.dashboard-page .patient-search-row
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}

body.dashboard-page .patient-search-label
{
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    white-space: nowrap;
}

body.dashboard-page .patient-listbox
{
    width: 340px;
    max-width: 100%;
    box-sizing: border-box;
}

body.dashboard-page .patient-last-name-input
{
    width: calc(340px / 3);
    max-width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid rgba(15, 23, 42, 0.45);
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.2;
    font-family: inherit;
}

body.dashboard-page .patient-last-name-input:focus-visible,
body.dashboard-page .patient-listbox:focus-visible,
body.dashboard-page .patient-review-btn:focus-visible
{
    outline: 3px solid rgba(22, 101, 52, 0.18);
    outline-offset: 3px;
}

body.dashboard-page .patient-listbox
{
    height: auto;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.8);
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.94rem;
    line-height: 1.25;
    font-family: inherit;
    overflow-y: scroll;
}

body.dashboard-page .patient-listbox option
{
    padding: 4px 10px;
}

body.dashboard-page .patient-review-btn
{
    margin-top: 12px;
    min-width: 180px;
}

@media (max-width: 768px)
{
    body.dashboard-page .patient-search-row
    {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    body.dashboard-page .patient-search-label
    {
        text-align: center;
    }
}


/* ===== Patient list + button horizontal layout ===== */
.patient-list-row
{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.patient-list-selection-wrap
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: min(420px, 100%);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.patient-listbox
{
    width: 420px;
    max-width: 100%;
}

.patient-review-btn
{
    margin-top: 0;
    align-self: flex-start;
}


/* ===== Patient workflow button stack ===== */
.patient-action-stack
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
}

body.dashboard-page .patient-action-stack #addPatientRow
{
    width: auto;
    display: flex;
    justify-content: stretch !important;
    margin-top: 0 !important;
}

body.dashboard-page .patient-action-stack .add-patient-btn,
body.dashboard-page .patient-action-stack .patient-review-btn
{
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 24px;
    padding: 0 6px;
    box-sizing: border-box;
    text-align: center;
}

body.dashboard-page .patient-action-stack .add-patient-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ===== Physician Account Title ===== */
.physician-account-title
{
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 10px;
    margin-bottom: 6px;
}


/* ===== Dashboard physician account heading ===== */
.physician-account-heading
{
    text-align: center;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    margin: 8px 0 6px 0;
}


body.dashboard-page .edit-personal-btn.add-patient-btn
{
    min-width: 0;
    width: auto;
}


/* ===== Center physician account groups ===== */
#doctor-info-form,
#doctor-info-panel
{
    text-align: center !important;
}

#doctor-info-form .doctor-account-table,
#doctor-info-panel .doctor-account-table
{
    width: auto;
    margin: 0 auto;
}

#doctor-info-form .doctor-account-table .dbi-012,
#doctor-info-form .doctor-account-table .dbi-013,
#doctor-info-form .doctor-account-table .dbi-015,
#doctor-info-form .doctor-account-table .dbi-016,
#doctor-info-panel .doctor-account-table .dbi-015,
#doctor-info-panel .doctor-account-table .dbi-016
{
    width: auto;
}

#doctor-info-form .doctor-account-table .dbi-012,
#doctor-info-form .doctor-account-table .dbi-015,
#doctor-info-panel .doctor-account-table .dbi-015
{
    text-align: right;
    padding-right: 14px;
    white-space: nowrap;
}

#doctor-info-form .doctor-account-table .dbi-013,
#doctor-info-form .doctor-account-table .dbi-016,
#doctor-info-panel .doctor-account-table .dbi-016
{
    text-align: left;
}

#doctor-info-form .doctor-account-table .dbi-014
{
    width: 320px;
    max-width: 100%;
}

#doctor-info-form .doctor-form-actions-row td
{
    text-align: center;
    padding-top: 10px;
}

#doctor-info-form .doctor-form-actions-row .dbi-009
{
    display: inline-block;
    margin: 0 12px 0 0;
    vertical-align: middle;
}

#doctor-info-form .doctor-form-actions-row .add-patient-btn
{
    display: inline-flex;
    vertical-align: middle;
}

#doctor-info-panel .dbi-020
{
    justify-content: center;
}

/* ===== Dashboard patient review controls mobile stack fix ===== */
@media (max-width: 768px)
{
    body.dashboard-page .patient-list-row
    {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    body.dashboard-page .patient-list-selection-wrap
    {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    body.dashboard-page .patient-listbox
    {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        box-sizing: border-box;
    }

    body.dashboard-page .patient-action-stack
    {
        width: min(420px, 100%);
        max-width: 100%;
        align-items: stretch;
    }

    body.dashboard-page .patient-action-stack .patient-review-btn,
    body.dashboard-page .patient-action-stack .add-patient-btn
    {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body.dashboard-page .patient-action-stack #addPatientRow
    {
        width: 100%;
        justify-content: center !important;
    }
}

/* ===== Dashboard patient review controls: listbox shell + vertical button stack ===== */
body.dashboard-page .patient-list-row
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

body.dashboard-page .patient-listbox
{
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.dashboard-page .patient-listbox-shell
{
    --patient-listbox-visible-count: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: calc(var(--patient-listbox-visible-count) * 2.15em);
    height: calc(var(--patient-listbox-visible-count) * 2.15em);
    max-height: calc(10 * 2.15em);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.35);
    border-radius: 4px;
    text-align: left;
    -webkit-overflow-scrolling: touch;
}

body.dashboard-page .patient-listbox-item
{
    display: block;
    width: 100%;
    padding: 7px 10px;
    box-sizing: border-box;
    background: #ffffff;
    color: #0f172a;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    font: inherit;
    line-height: 1.25;
    cursor: pointer;
}

body.dashboard-page .patient-listbox-item:last-child
{
    border-bottom: none;
}

body.dashboard-page .patient-listbox-item.is-selected
{
    background: #7a7a7a;
    color: #ffffff;
}

body.dashboard-page .patient-action-stack
{
    width: min(420px, 100%);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

body.dashboard-page .patient-action-stack .patient-review-btn,
body.dashboard-page .patient-action-stack .add-patient-btn,
body.dashboard-page .patient-action-stack #addPatientRow
{
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

body.dashboard-page .patient-action-stack #addPatientRow
{
    justify-content: center !important;
    margin-top: 0 !important;
}


/* ===== Physician account edit responsiveness ===== */
#doctor-info-form .doctor-account-table .dbi-014
{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#doctor-info-form .doctor-account-table
{
    width: min(100%, 700px);
    max-width: 100%;
    table-layout: fixed;
}

#doctor-info-form .doctor-account-table .dbi-012,
#doctor-info-form .doctor-account-table .dbi-015
{
    width: 32%;
    box-sizing: border-box;
}

#doctor-info-form .doctor-account-table .dbi-013,
#doctor-info-form .doctor-account-table .dbi-016
{
    width: 68%;
    box-sizing: border-box;
}

#doctor-info-form .doctor-form-actions-row .doctor-submit-btn
{
    min-width: 160px;
}

#doctor-info-form .doctor-form-actions-row .submit-label-mobile
{
    display: none;
}

@media (max-width: 768px)
{
    #doctor-info-form
    {
        padding: 14px 12px !important;
        margin: 18px auto !important;
        width: min(100%, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box;
    }

    #doctor-info-form .doctor-account-table
    {
        width: 100%;
        max-width: 100%;
        table-layout: auto;
    }

    #doctor-info-form .doctor-account-table tr,
    #doctor-info-form .doctor-account-table td
    {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    #doctor-info-form .doctor-account-table .dbi-012,
    #doctor-info-form .doctor-account-table .dbi-015
    {
        text-align: left !important;
        padding-right: 0 !important;
        margin-bottom: 4px;
        white-space: normal;
    }

    #doctor-info-form .doctor-account-table .dbi-013,
    #doctor-info-form .doctor-account-table .dbi-016
    {
        text-align: left !important;
        margin-bottom: 10px;
    }

    #doctor-info-form .doctor-account-table .dbi-014
    {
        width: 100% !important;
        max-width: 100% !important;
    }

    #doctor-info-form .doctor-form-actions-row td
    {
        padding-top: 12px;
    }

    #doctor-info-form .doctor-form-actions-row .dbi-009
    {
        display: block;
        margin: 0 0 10px 0;
    }

    #doctor-info-form .doctor-form-actions-row .doctor-submit-btn
    {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    #doctor-info-form .doctor-form-actions-row .submit-label-desktop
    {
        display: none;
    }

    #doctor-info-form .doctor-form-actions-row .submit-label-mobile
    {
        display: inline;
    }
}


/* ===== Physician account mobile adjustment fix ===== */
@media (max-width: 768px)
{
    #doctor-info-form
    {
        padding: 14px 10px !important;
        margin: 18px auto !important;
        width: min(100%, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box;
    }

    #doctor-info-form .doctor-account-table
    {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        margin: 0 auto !important;
    }

    #doctor-info-form .doctor-account-table tr
    {
        display: table-row !important;
    }

    #doctor-info-form .doctor-account-table td
    {
        display: table-cell !important;
        vertical-align: middle !important;
        box-sizing: border-box;
    }

    #doctor-info-form .doctor-account-table .dbi-012,
    #doctor-info-form .doctor-account-table .dbi-015
    {
        width: 38% !important;
        text-align: right !important;
        padding-right: 8px !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    #doctor-info-form .doctor-account-table .dbi-013,
    #doctor-info-form .doctor-account-table .dbi-016
    {
        width: 62% !important;
        text-align: left !important;
        margin: 0 !important;
    }

    #doctor-info-form .doctor-account-table .dbi-014
    {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #doctor-info-form .doctor-form-actions-row td
    {
        display: table-cell !important;
        text-align: center !important;
        padding-top: 12px !important;
    }

    #doctor-info-form .doctor-form-actions-row .dbi-009
    {
        display: inline-block !important;
        margin: 0 10px 0 0 !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
    }

    #doctor-info-form .doctor-form-actions-row .doctor-submit-btn
    {
        width: 132px !important;
        min-width: 132px !important;
        max-width: 132px !important;
        flex: 0 0 auto !important;
    }

    #doctor-info-form .doctor-form-actions-row .submit-label-desktop
    {
        display: none !important;
    }

    #doctor-info-form .doctor-form-actions-row .submit-label-mobile
    {
        display: inline !important;
    }
}


/* ===== Physician account read-only mobile centering + containment ===== */
@media (max-width: 768px)
{
    #doctor-info-panel
    {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 8px 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        text-align: center !important;
    }

    #doctor-info-panel .doctor-account-table
    {
        display: block !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        table-layout: auto !important;
        box-sizing: border-box !important;
    }

    #doctor-info-panel .doctor-account-table tbody
    {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #doctor-info-panel .doctor-account-table tr
    {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;
        column-gap: 10px !important;
        row-gap: 2px !important;
        box-sizing: border-box !important;
    }

    #doctor-info-panel .doctor-account-table td
    {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        font-size: clamp(0.9rem, 3.65vw, 1rem);
        line-height: 1.28;
    }

    #doctor-info-panel .doctor-account-table .dbi-015,
    #doctor-info-panel .doctor-account-table .dbi-016
    {
        width: auto !important;
        text-align: center !important;
        padding-right: 0 !important;
        white-space: nowrap !important;
    }

    #doctor-info-panel .doctor-account-table td[colspan="2"]
    {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    #doctor-info-panel .doctor-account-table .dbi-011,
    #doctor-info-panel .doctor-account-table .dbi-017
    {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    #doctor-info-panel .dbi-020
    {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
        box-sizing: border-box !important;
    }

    #doctor-info-panel .dbi-021
    {
        margin: 0 !important;
        white-space: nowrap !important;
    }

    #doctor-info-panel .edit-personal-btn.add-patient-btn
    {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
    }

    #doctor-info-panel .dbi-024
    {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #doctor-info-panel .dbi-025
    {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    #doctor-info-panel .dbi-026
    {
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ===== Physician account group desktop centering fix (safe) ===== */
@media (min-width: 769px)
{
    #doctor-info-form .doctor-account-table,
    #doctor-info-panel .doctor-account-table
    {
        width: auto;
        max-width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #doctor-info-form .doctor-account-table .dbi-011,
    #doctor-info-form .doctor-account-table .dbi-017,
    #doctor-info-panel .doctor-account-table .dbi-011,
    #doctor-info-panel .doctor-account-table .dbi-017
    {
        width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #doctor-info-form .doctor-form-actions-row td,
    #doctor-info-panel .doctor-form-actions-row td
    {
        text-align: center;
    }
}

/* ===== Dashboard medical disclaimer acknowledgment ===== */
body.dashboard-page .doctor-disclaimer-box
{
    background: #f7f9fc;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    margin: 18px auto 8px auto;
    max-width: 720px;
    padding: 16px 18px;
    text-align: center;
}

body.dashboard-page .doctor-disclaimer-title
{
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

body.dashboard-page .doctor-disclaimer-box p
{
    margin: 0 0 10px 0;
}

body.dashboard-page .doctor-disclaimer-checkline
{
    align-items: flex-start;
    column-gap: 10px;
    display: grid;
    font-weight: 600;
    grid-template-columns: 16px minmax(0, 1fr);
    margin: 12px auto 0 auto;
    max-width: 620px;
    text-align: left;
}

body.dashboard-page .doctor-disclaimer-checkline input
{
    align-self: start;
    grid-column: 1;
    justify-self: start;
    margin: 4px 0 0 0;
}

body.dashboard-page .doctor-disclaimer-checkline span
{
    display: block;
    grid-column: 2;
    line-height: 1.45;
    text-align: left;
}

body.dashboard-page .doctor-submit-btn:disabled
{
    cursor: not-allowed;
    opacity: 0.55;
}

/* ===== Dashboard onboarding welcome panel ===== */
body.dashboard-page .dashboard-welcome-panel
{
    margin: 34px auto 28px auto;
    padding: 0 18px;
    width: 100%;
    max-width: 880px;
    box-sizing: border-box;
    text-align: center;
}

body.dashboard-page .dashboard-welcome-title
{
    margin: 0 0 16px 0;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

body.dashboard-page .dashboard-welcome-card
{
    margin: 0 auto;
    padding: 20px 28px 22px 28px;
    max-width: 760px;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

body.dashboard-page .dashboard-welcome-tagline
{
    margin: 0 0 10px 0;
    color: #16325c;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

body.dashboard-page .dashboard-welcome-copy
{
    margin: 0 auto;
    max-width: 680px;
    color: #1f2937;
    font-size: 0.98rem;
    line-height: 1.6;
}

body.dashboard-page .dashboard-welcome-next-step
{
    margin: 14px 0 0 0;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.45;
}

body.dashboard-page .dashboard-welcome-meta
{
    margin-top: 16px;
}

@media (max-width: 768px)
{
    body.dashboard-page .dashboard-welcome-panel
    {
        margin: 24px auto 20px auto;
        padding: 0 12px;
    }

    body.dashboard-page .dashboard-welcome-title
    {
        font-size: 1.35rem;
    }

    body.dashboard-page .dashboard-welcome-card
    {
        padding: 16px 16px 18px 16px;
        border-radius: 8px;
    }

    body.dashboard-page .dashboard-welcome-tagline
    {
        font-size: 1rem;
    }

    body.dashboard-page .dashboard-welcome-copy,
    body.dashboard-page .dashboard-welcome-next-step
    {
        font-size: 0.94rem;
    }
}

/* ===== Extensible selected-patient workflow selector ===== */
body.dashboard-page .patient-workflow-picker
{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.22);
    border-radius: 6px;
    background: #f8fafc;
}

body.dashboard-page .patient-workflow-label
{
    font-weight: 700;
    color: #0f172a;
    text-align: left;
}

body.dashboard-page .patient-workflow-select
{
    width: 100%;
    min-height: 38px;
    padding: 6px 34px 6px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.45);
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    cursor: pointer;
}

body.dashboard-page .patient-workflow-select:disabled
{
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

body.dashboard-page .patient-workflow-note
{
    min-height: 2.6em;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.3;
    text-align: left;
}

body.dashboard-page .patient-workflow-go-btn
{
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.dashboard-page .patient-workflow-go-btn:disabled
{
    opacity: 0.55;
    cursor: not-allowed !important;
}

body.dashboard-page .patient-workflow-select:focus-visible,
body.dashboard-page .patient-workflow-go-btn:focus-visible
{
    outline: 3px solid rgba(22, 101, 52, 0.18);
    outline-offset: 3px;
}

/* Add New Patient: reduce only the graphical width by 50%.
   Font size and button height remain unchanged. */
body.dashboard-page #addPatientBtn
{
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
}

/* Patient-selection instruction above the patient selector. */
body.dashboard-page .patient-selection-guidance
{
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 2px;
}

body.dashboard-page .patient-navigation-highlight
{
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: #69a8df;
    color: #ffffff;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}


/* ============================================================
   Dashboard V2 tabbed layout
   ============================================================ */

body.dashboard-page .dashboard-v2-title-wrap
{
    width: 100%;
    margin: 66px auto 8px auto;
    text-align: center;
}

body.dashboard-page .dashboard-v2-title-wrap .dashboard-page-title
{
    margin: 0;
}

body.dashboard-page .dashboard-v2-tabs-toolbar
{
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .toolbar-center
{
    max-width: 1100px;
    margin: 0 auto;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .analysis-row--tabs
{
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 10px 0;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .tabs-bar
{
    position: relative;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .tabs-bar::after
{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px;
    width: 100vw;
    border-bottom: 1px solid #9aa3b0;
    pointer-events: none;
    z-index: 0;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .tab-btn
{
    appearance: none;
    background: #d8dbe2;
    color: #475569;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    padding: 6px 18px;
    height: 32px;
    line-height: 20px;
    border: 1px solid #9aa3b0;
    border-bottom-color: #9aa3b0;
    border-radius: 4px 4px 0 0;
    margin: 0;
    position: relative;
    top: 1px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 #ffffff,
        inset -1px -1px 0 #cfd3d9;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .tab-btn:hover
{
    background: #cfd3da;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .tab-btn.active
{
    background: #ffffff;
    color: #0f172a;
    border-color: #000000;
    border-bottom: none;
    z-index: 2;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .tab-btn.active::after
{
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -1px;
    height: 2px;
    background: #ffffff;
    z-index: 3;
}

body.dashboard-page .dashboard-v2-tab-panel[hidden]
{
    display: none !important;
}

body.dashboard-page #dashboard-tab-patients
{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.dashboard-page #dashboard-tab-account
{
    width: 100%;
    min-height: 1px;
}

body.dashboard-page #dashboard-tab-patients #patientToolbar
{
    margin-top: 16px;
}

@media (max-width: 700px)
{
    body.dashboard-page .dashboard-v2-title-wrap
    {
        margin-top: 32px;
    }

    body.dashboard-page .dashboard-v2-tabs-toolbar .tab-btn
    {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* Dashboard V2 loading and spacing refinement. */
body.dashboard-page .dashboard-v2-title-wrap
{
    margin-top: 20px;
    margin-bottom: 6px;
}

body.dashboard-page #dashboard-tab-patients.dashboard-patients-loading #patientToolbar
{
    visibility: hidden;
}

body.dashboard-page #dashboard-tab-patients.dashboard-patients-loading .dashboard-patients-loading-message
{
    display: block;
}

body.dashboard-page #dashboard-tab-patients.dashboard-patients-ready .dashboard-patients-loading-message
{
    display: none;
}

body.dashboard-page .dashboard-patients-loading-message
{
    display: none;
    min-height: 118px;
    padding-top: 28px;
    box-sizing: border-box;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 700px)
{
    body.dashboard-page .dashboard-v2-title-wrap
    {
        margin-top: 12px;
    }
}

/* Refine Dashboard title spacing: move the title upward and balance
   the space above the title against the space below it before the tabs. */
body.dashboard-page .dashboard-v2-title-wrap
{
    margin-top: 8px;
    margin-bottom: 8px;
}

body.dashboard-page .dashboard-v2-title-wrap .dashboard-page-title
{
    margin: 0;
    line-height: 1.1;
}

body.dashboard-page .dashboard-v2-tabs-toolbar .analysis-row--tabs
{
    margin-bottom: 6px;
}

@media (max-width: 700px)
{
    body.dashboard-page .dashboard-v2-title-wrap
    {
        margin-top: 6px;
        margin-bottom: 6px;
    }
}

/* Dashboard title removed; keep the tabs close to the shared header. */
body.dashboard-page .dashboard-v2-tabs-toolbar
{
    margin-top: 8px;
}

/* Dashboard V2 no longer has the old dashboard toolbar above its content.
   Remove the reserved 68px toolbar offset so the tabs align like newpatient.html. */
body.dashboard-page
{
    --dashboard-toolbar-height: 0px;
}

body.dashboard-page .app-page-shell
{
    margin-top: calc(var(--nvx-nav-total-height) + var(--nvx-nav-content-gap));
}

body.dashboard-page .dashboard-v2-tabs-toolbar
{
    margin-top: 0;
}

/* Match the small separation between the shared navigation bar and tabs
   used by newpatient.html. */
body.dashboard-page .dashboard-v2-tabs-toolbar
{
    margin-top: 14px;
}
