@import url('uicons-solid/css/uicons-solid-rounded.css');

@font-face {
    font-family: "BNAZANIN";
    src: url('../css/Font/BNAZANIN.TTF') format('truetype');
}

html, body {
    font-family: BNAZANIN;
    /*overflow:hidden;*/
}

:root {
    --darkgreen-color: #6BBF8A;
    --green-color: #729641;
    --red-color: #bb2d3b;
    --black-color: black;
    --white-color: white;
    --lightgray-color: #EFF1F5;
    --mobile-footer-height: 64px;
}

.container {
    min-height: 120px;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0B3589;
}

a {
    text-decoration: none;
}

.btn-primary, .form-check-input:checked {
    color: #fff;
    background-color: #729641;
    border-color: #729641;
    --bs-btn-active-bg: var(--green-color);
}

    .btn-primary:hover, .btn-primary:focus-visible {
        background-color: #2E7D5C !important;
        border-color: #2E7D5C;
    }

.btn-danger:hover .btn-danger:focus-visible {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus, .form-check-input:checked {
    /*box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;*/
    box-shadow: 0 0 0 0.25rem #A8D5BA;
    border-color: #6BBF8A;
}

.btn-danger:focus, .btn-danger:active:focus {
    box-shadow: 0 0 0 0.25rem #bb2d3b;
    border-color: #bb2d3b;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    background-color: #729641;
    border-color: #729641;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--green-color) !important;
}

.content {
    /*padding-top: 1.1rem;*/
    padding-top: 0;
}

article.content {
    height: 82%;
    /*overflow:hidden;*/
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


code {
    color: #c02d76;
}
/*RTL*/
.rtl {
    direction: rtl;
}
.form-select.rtl {
    background-position: left .75rem center;
    padding: .375rem .75rem .375rem 2.25rem;
}
.modal-header .btn-close {
    margin-left: 0;
}

.modal-footer {
    direction: rtl;
}

.modal-header, .modal-body {
    direction: rtl;
}
/*Login page*/
.lg\:border-complete {
    border: 1px solid #F0F0F1;
    padding: 20px;
}


.item-center {
    justify-content: center;
}

.register-box {
    width: 100%;
}

.input-with-button {
    position: relative;
}

    .input-with-button input {
        padding-right: 100px;
    }

    .input-with-button button {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

@media (min-width: 500px) {
    .lg\:p-8 {
        padding: 32px;
        width: 400px;
    }

    .xlg\:p-8 {
        padding: 16px;
        width: 500px;
    }

    .lg\:w-500 {
        width: 500px;
    }
}

@media (max-width: 500px) {
    .lg\:border-complete {
        width: 354px;
    }

    .sm\:w-100 {
        width: 100%;
    }
}

.inner-addon {
    position: relative;
}

    .inner-addon .glyphicon {
        position: absolute;
        padding: 12px;
        pointer-events: none;
        height: 50px;
    }

.inner-addon1 {
    height: 50px;
}

.left-addon input {
    padding-left: 40px;
}

.right-addon input {
    padding-right: 30px;
}

.button-primary {
    width: -webkit-fill-available;
}

.form-login-inputs {
    direction: ltr;
}

.text-error {
    color: red;
    text-align: right;
    direction: rtl;
}

.Text-Error {
    color: red;
    text-align: right;
    direction: rtl;
}

.hidden {
    display: none;
}
/*signuo*/
.form-sighnup-rtl {
    direction: rtl !important;
}

.select-item-rtl {
    background-position: left .75rem center;
    padding-right: 0.75rem;
}
/*Shared Css*/
.font-large {
    font-size: x-large;
}

.bold-text {
    font-weight: 300;
}

.btn-w-100px {
    width: 100px;
}

.shadow-1-bottom {
    box-shadow: 0px 2px 7px -6px rgba(0,0,0,.5);
}

.width-min-content {
    width: min-content;
}

.width-max-content {
    width: max-content;
}

.top-navbar {
    background-color: white;
    height: 70px !important;
    z-index: 5;
}

.signIn-btn {
    border: 1px solid lightgray;
    border-radius: 5px;
    justify-items: center;
    position: relative;
    width: 120px;
    height: 40px;
}

.inner-signIn {
    position: absolute;
    padding: 5px;
    pointer-events: none;
    height: 25px;
    right: 2px;
}

.signOut-btn {
    border: 1px solid lightgray;
    border-radius: 5px;
    justify-items: center;
    position: relative;
    width: 70px;
}

.bahar-e-salamat {
    color: black;
    text-decoration: none;
}

.dropdown-toggle {
    border: none;
}

dropdown-toggle:hover {
    background-color: #A8D5BA;
}

.dropdown-menu-start {
    text-align: right;
}

.opacity-7 {
    opacity: .7;
}

.active {
    background-color: lightgray;
}
.text-ellipsis {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    text-overflow: ellipsis;
}

@media only screen and (max-width: 991px) {
    .md\:btn-width {
        width: 192px;
    }

    .md\:btn-margin-right {
        margin-right: 46px;
    }
}

/*home*/
.icons-bar {
    text-decoration: none;
    color: black;
    width: 82px;
}
/*Carousel*/
.img-fluid {
    width: 100%;
}

@media only screen and (min-width: 1024px) {
    .responsive-slide {
        object-fit: cover;
        object-position: center;
        height: 61vh;
    }
}

@media only screen and (max-width: 1024px) {
    .responsive-slide {
        object-fit: cover;
    }
}
/*PlanVsts Componenet*/
.planvst-cart {
}

    .planvst-cart:hover {
        cursor: pointer;
    }

.justify-items-center {
    justify-items: center;
}

.line-height-11 {
    line-height: 11px;
}
.Icon-Tabs-size{
    width:40px;
    height:40px;
}

/*Plans of All Doctors page*/
.circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 10px;
    border: 1px solid #e0e0e2;
    background-color: white;
    color: #424750;
    transition: background-color 0.3s, color 0.3s;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.circle-btn:hover {
    /*background-color: #0d6efd;
        color: #fff;*/
}

.next-btn {
    width: 10px;
    height: 10px;
}

.doctor-border {
    border-bottom: 2px solid lightgray;
    /*border-radius: 6px;*/
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px;
    justify-items: center;
}

.flex-row-container {
    gap: 13px;
    padding: 16px;
    justify-items: center;
    overflow-x: scroll;
    scrollbar-width: none;
}

.swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}
/*Clinic Page*/
.Clinic-Container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 16px;
    justify-items: center;
}

/*modal*/
.modal-backdrop.show {
    margin-top: 0;
}
/*Loading*/
/*.loadig-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}*/
.progress-component {
    margin-bottom: 0;
    position: fixed;
    /*top: 56px;*/ /* Adjust based on the height of your header menu */
    width: 100%;
    z-index: 1030;
}

.progress-bar-component {
    background-color: #A8D5BA;
    transition: width 0.4s ease;
}

/*screen width change menu*/
@media only screen and (min-width: 1024px) {
    #DeskTop-Menu {
        visibility: visible;
    }

    #mobile-menu {
        visibility: hidden;
    }

    main {
        height: 100vh;
    }

    .lg\:w-800 {
        width: 800px;
    }
}

@media only screen and (max-width: 1024px) {
    #DeskTop-Menu {
        visibility: hidden;
        height: 0;
    }

    #mobile-menu {
        visibility: visible;
    }

    .plans-bp {
        padding-bottom: 65px;
    }

    .carousel-indicators {
        margin-bottom: 0 !important;
    }

    /*main {
        height: 93vh;
    }*/
    main {
        height: auto;
        min-height: 0;
        box-sizing: border-box;
        overflow: visible;
    }
}

@media only screen and (max-width: 768px) {
    #userDrp-signInBtn {
        visibility: hidden;
        width: 0;
    }

    .footer-padding {
        padding: 36px 0;
    }
}

@media only screen and (min-width: 768px) {
    .footer-padding {
        padding: 20px 0px;
    }
    .nav-pills{
        justify-content:center;
    }
}

@media only screen and (max-width: 408px) {
    .Footer {
        padding-bottom: 38px;
    }
}
/*bottom menu*/
.text-caption {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.17;
}

.text-neutral-500 {
    color: #81858b;
}

.text-neutral-900 {
    color: #0c0c0c;
}

.text-caption-strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.17;
}

.padding-menu {
    padding-bottom: calc(env(safe-area-inset-bottom) / 2);
}
#mobile-menu .fixed-bottom {
    height: var(--mobile-footer-height);
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1050;
}
#mobile-menu .padding-menu {
    height: 100%;
    box-sizing: border-box;
}

    #mobile-menu .padding-menu > div {
        height: 100%;
        align-items: center;
    }

        .border-complete-t {
            border-top: 1px solid #f0f0f1; /*f0f0f1*/
        }

        .flex-1 {
            flex: 1 1 0%;
        }

        .items-center {
            align-items: center;
        }

        .icon-bottom-menu {
            width: 24px;
            height: 24px;
            fill: #a1a3a8;
        }
        /*Footer*/
        .Footer {
            position: relative;
            right: 0;
            left: 0;
            background-color: #f5f5f5;
        }

        .Footer-position {
            bottom: 0px;
        }

        .wrapper {
            /*margin: 0 auto;
    max-width: 1250px;
    padding: 0 25px;*/
            width: 100%;
        }
        /*AboutUs Page*/
        .employee-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
            padding: 16px;
            justify-items: center;
            padding-bottom: 200px;
        }
        /*PleaseWaitLoading*/
        .please-wait-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--green-color);
            font-size: 1.5rem;
            z-index: 300;
            --bs-primary-rgb: 46, 125, 92;
        }
        /*Not Found Page*/
        .not-found-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            height: 100vh;
            background-color: #f8f9fa;
        }

        .not-found-Plans {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            height: 80vh;
        }

            .not-found-container > h1,
            .not-found-Plans > h1 {
                font-size: 6rem;
                font-weight: bold;
                color: #dc3545;
                margin: 0;
            }

            .not-found-container > h3,
            .not-found-Plans > h3 {
                font-size: 2rem;
                color: #343a40;
                margin-top: 10px;
            }

            .not-found-container > p,
            .not-found-Plans > p {
                font-size: 1.2rem;
                color: #6c757d;
                margin-top: 5px;
                max-width: 500px;
            }

        .home-link {
            margin-top: 20px;
            padding: 10px 20px;
            font-size: 1.2rem;
            color: #fff;
            background-color: var(--green-color);
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease-in-out;
        }

            .home-link:hover {
                background-color: var(--green-color);
            }

        .ltr {
            direction: ltr;
        }
        /*Loading in index.html*/

        .loading-image {
            width: 70%;
            height: 50%;
            margin-bottom: 15px;
        }

        .loading-content {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }

        .app-loading-container {
            width: 100%;
            height: 4px;
            background-color: #ddd;
            border-radius: 5px;
            overflow: hidden;
            margin: 0 auto;
        }

        .loading-bar {
            height: 100%;
            width: 0;
            background-color: var(--green-color);
            animation: loadAnimation 5s linear forwards;
        }

        @keyframes loadAnimation {
            0% {
                width: 0%;
            }

            50% {
                width: 50%;
            }

            80% {
                width: 80%;
            }

            100% {
                width: 100%;
            }
        }
        /*----------Form Page --------------*/
        /*Input in form*/
        .input-text {
            background: transparent;
            border: 0;
            outline: none;
            width: 80vw;
            max-width: 400px;
            transition: padding 0.3s 0.2s ease;
        }

        .checkbox-input {
            width: 23vw;
        }

        .input-score {
            width: 2vw;
        }

        .input-select-size {
            width: 10vw;
        }

        .font-size-large {
            font-size: 1.5em;
        }

        .font-size-medium {
            font-size: 1em;
        }

        .font-size-small {
            font-size: small;
        }

        .font-size-xx-large {
            font-size: xx-large;
        }

        .input-text:focus {
            padding-bottom: 5px;
        }

        .field {
            position: relative;
        }

        .line-height-0 {
            line-height: 0;
        }

        .line {
            width: 100%;
            height: 3px;
            position: absolute;
            bottom: -8px;
            background: #bdc3c7;
        }

            .line::after {
                content: " ";
                position: absolute;
                width: 100%;
                height: 3px;
                transform: scalex(0);
                transition: transform 0.3s ease;
                background: #6BBF8A;
            }

        input:focus + .line::after {
            transform: scaleX(1);
        }

        .border-darkgreen {
            border-color: var(--darkgreen-color);
        }

        .bg-darkgreen {
            background-color: var(--darkgreen-color);
        }

        .h-Max-300px {
            max-height: 300px;
        }
        /*Form style*/
        .form-box {
            box-shadow: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12);
            /*-webkit-transition: box-shadow .28scubic -bezier(.4, 0, .2, 1);
    transition: box-shadow .28scubic -bezier(.4, 0, .2, 1);*/
            border: 1px solid rgb(218, 220, 224);
            border-radius: 8px;
            padding: 30px;
            margin: 30px 60px 30px 30px;
        }

        .form-box-border {
            border-right: 4px solid transparent; /* Default state */
            transition: border-color .3s ease-in-out;
        }

            .form-box-border:focus-within {
                border-right: 4px solid #6BBF8A; /* Change to desired color */
            }

        .remove-toggle::after {
            display: none
        }

        .remove-toggle:focus {
            box-shadow: none
        }

        @media (min-width:880px) {
            .width-800 {
                width: 800px;
            }

            .width-900 {
                width: 900px;
            }
        }

        @media (max-width:768px) {
            .width-80vh {
                width: 70vh !important;
            }

            .width-100p {
                width: 100%;
            }
        }

        @media (max-width: 1000px) {
            .monitor-display {
                display: none;
            }
        }
        /*Checkbox style*/
        .checkbox-container {
            margin-top: 20px;
            display: flex;
            align-items: start;
        }

            .checkbox-container label {
                margin-right: 8px;
                font-size: 1.2em;
            }
        /*Float add btn*/
        .floating-button {
            /*position: fixed;
    top: 210px;
    right: 720px;*/
            width: 40px;
            height: 40px;
            background-color: #fff;
            color: #444;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .settings-panel {
            position: absolute;
            top: 330px;
            width: 50px;
            background-color: white;
            color: black;
            padding: 4px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            border: 1px solid rgb(218, 220, 224);
            border-radius: 8%;
            box-shadow: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12);
            /*transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;*/
        }
        /*Toggle Switch btn*/
        .material-switch > input[type="checkbox"] {
            display: none;
        }

        .material-switch > label {
            cursor: pointer;
            height: 0px;
            position: relative;
            width: 40px;
        }

            .material-switch > label::before {
                background: rgb(0, 0, 0);
                box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
                border-radius: 8px;
                content: '';
                height: 16px;
                margin-top: -8px;
                position: absolute;
                opacity: 0.3;
                transition: all 0.4s ease-in-out;
                width: 40px;
            }

            .material-switch > label::after {
                background: rgb(255, 255, 255);
                border-radius: 16px;
                box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
                content: '';
                height: 24px;
                left: -4px;
                margin-top: -8px;
                position: absolute;
                top: -4px;
                transition: all 0.3s ease-in-out;
                width: 24px;
            }

        .material-switch > input[type="checkbox"]:checked + label::before {
            background: inherit;
            opacity: 0.5;
        }

        .material-switch > input[type="checkbox"]:checked + label::after {
            background-color: seagreen;
            left: 20px;
        }
        /*Form Box Footer*/
        .divider {
            border-left: 1px solid rgb(218, 220, 224);
            height: 32px;
            margin: 0 16px;
            width: 0;
        }

        .form-box-footer {
            height: 50px;
            align-items: center;
        }
        /*-----Google Form---------*/
        .iframe-container {
            position: relative;
            width: 100%;
            padding-top: 75%; /* Aspect ratio control */
        }

            .iframe-container iframe {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }

            .iframe-container iframe {
                pointer-events: none; /* Prevent interactions if needed */
            }

        @media only screen and (max-width: 1024px) {
            .iframe-container {
                height: 1200px;
            }
        }
        /*--------Questionnaire-------*/
        /*Question Template*/
        .Question-box {
            transition: background-color .2s cubic-bezier(0,0,.2,1);
            background-color: #fff;
            /*border: 1px solid rgb(218, 220, 224);*/
            border-radius: 8px;
            margin-bottom: 12px;
            padding: 24px;
            page-break-inside: avoid;
            word-wrap: break-word;
        }

        .cursor-pointer {
            cursor: pointer;
        }

        .border-b {
            border-bottom: 1px solid var(--green-color);
        }
        /*------------- InputRangeIntegerComponent -----------------*/
        .home-price-container {
            position: relative;
            display: inline-block;
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
        }

        .display-box {
            position: relative;
            padding: 14px 16px;
            border-radius: 12px;
            border: 1px solid #e7e3ea;
            background: #fff;
            font-size: 18px;
            color: #222;
            text-align: right;
            margin: 0;
        }


        .range-input {
            -webkit-appearance: none;
            appearance: none;
            width: 93%;
            height: 2px;
            background: transparent;
            cursor: pointer;
            position: absolute;
            left: 10px;
            bottom: 0;
            transform: translateY(50%);
            position: absolute;
            top: 95px;
        }

            .range-input::-webkit-slider-runnable-track {
                height: 2px;
                border-radius: 6px;
                background: linear-gradient(90deg, #8b5cf6 var(--pct), #ececec 0);
            }

            .range-input::-webkit-slider-thumb {
                -webkit-appearance: none;
                appearance: none;
                margin-top: -8px;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                background: #fff;
                /*border: 4px solid #fff;*/
                border: 7px solid #8b5cf6;
                box-shadow: 0 2px 6px rgba(0,0,0,0.12);
            }

            .range-input::-moz-range-track {
                height: 6px;
                border-radius: 6px;
                background: linear-gradient(90deg, #8b5cf6 var(--pct), #ececec 0);
            }

            .range-input::-moz-range-thumb {
                width: 20px;
                height: 20px;
                border-radius: 50%;
                background: #8b5cf6;
                border: 4px solid #fff;
                box-shadow: 0 2px 6px rgba(0,0,0,0.12);
            }

        .lightgray-text {
            color: lightgray;
        }
        /*-------------- Tabs----------*/
        .nav-pills .nav-link {
            background: transparent;
            color: var(--black-color);
            font-size: smaller;
            /*border: 1px solid gray;*/
            padding: 7px 9px;
        }

            .nav-pills .nav-link .active {
                background-color: var(--green-color);
                color: var(--white-color) !important;
            }

        .nav-tabs .nav-link {
            border: none;
        }

            .nav-tabs .nav-link.active {
                background-color: transparent;
                border-bottom: 1px solid var(--green-color);
            }

        .nav-item {
            min-height: 40px;
            margin: 0 3px;
        }

        .ehr-card {
            border: 1px solid;
            border-color: lightgray;
            border-radius: 10px;
            padding: .5rem;
            height: 150px;
        }

        .ehr-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(150px, 1fr));
            gap: 16px;
        }

        @media (max-width: 768px) {
            .ehr-grid {
                display: grid;
                grid-template-columns: repeat(1, minmax(150px, 1fr));
                gap: 16px;
            }
        }

        .row-striped .row:nth-child(odd) {
            background-color: lightgray;
        }
        /*---------------DropDowns-------------------*/
        .desktop-only {
            display: none;
        }

        .mobile-only {
            display: block;
        }

        @media (min-width: 768px) {

            .desktop-only {
                display: block;
            }

            .mobile-only {
                display: none;
            }
        }
        /* Bottom Sheet */
        .mobile-sheet-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 2000;
        }

        .mobile-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-height: 80vh;
            background: #fff;
            border-radius: 16px 16px 0 0;
            display: flex;
            flex-direction: column;
            direction: rtl;
        }

            .mobile-sheet .sheet-header {
                padding: 0.75rem 1rem;
                border-bottom: 1px solid #ddd;
                flex-shrink: 0;
                display: flex;
                justify-content: space-between;
                padding: 12px;
                border-bottom: 1px solid #ddd;
                font-weight: 600;
            }

            .mobile-sheet .sheet-body {
                padding: 0.5rem 1rem;
                overflow-y: auto;
                max-height: 60vh;
            }

        .sheet-item {
            padding: 0.5rem;
            border-bottom: 1px solid #eee;
            cursor: pointer;
        }



            .sheet-item:hover {
                background: #f5f5f5;
            }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }

            to {
                transform: translateY(0);
            }
        }



        .filter-container {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }


        @media(max-width: 768px) {
            .filter-container {
                flex-direction: row;
            }
        }


        .background-dark {
            background-color: var(--black-color);
        }

        .hover-green:hover,
        .hover-green:focus {
            background-color: var(--green-color) !important;
        }
         


/* =====================================================
   EHR   ElectronicHealthRecordPage   PAGE
   ===================================================== */
        .ehr-page {
            width: 100%;
            min-width: 0;
            min-height: 0;
            box-sizing: border-box;
            direction: rtl;
        }

        @media only screen and (max-width: 1024px) {
            .ehr-page {
                padding-bottom: calc( var(--mobile-footer-height) + 12px + env(safe-area-inset-bottom) );
            }
        }

        .ehr-mobile-view {
            display: flex;
            flex-direction: column;
            width: 100%;
            min-width: 0;
            min-height: 0;
            box-sizing: border-box;
        }

        .ehr-desktop-view {
            display: none;
        }
        /* =====================================================
   MOBILE MENU / CONTENT
   ===================================================== */

        .ehr-mobile-menu-container,
        .ehr-mobile-content,
        .ehr-active-content {
            width: 100%;
            min-width: 0;
            min-height: 0;
            box-sizing: border-box;
        }

        .ehr-mobile-menu-container {
            overflow: visible;
        }

.ehr-mobile-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


        .ehr-active-content {
            overflow-wrap: anywhere;
        }
.ehr-mobile-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.ehr-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0;
    min-height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #365c85;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
/*.ehr-mobile-content > .ehr-active-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}*/
        /* =====================================================
   DESKTOP EHR LAYOUT
   ===================================================== */
        @media (min-width: 768px) {

            .ehr-mobile-view {
                display: none !important;
            }

            .ehr-desktop-view {
                display: block;
                width: 100%;
                min-width: 0;
                padding: 20px;
                box-sizing: border-box;
            }

            .ehr-desktop-layout {
                display: flex;
                flex-direction: row;
                align-items: flex-start;
                gap: 20px;
                width: 100%;
                min-width: 0;
                direction: rtl;
                box-sizing: border-box;
            }

            .ehr-desktop-sidebar {
                flex: 0 0 400px;
                width: 290px;
                min-width: 0;
                box-sizing: border-box;
                padding: 12px;
                background: #ffffff;
                border: 1px solid #e3eaf1;
                border-radius: 18px;
                box-shadow: 0 4px 18px rgba(31, 55, 80, 0.055);
                overflow: hidden;
            }


                .ehr-desktop-sidebar > * {
                    width: 100%;
                    min-width: 0;
                    box-sizing: border-box;
                }
            /* محتوای سمت چپ */
            .ehr-desktop-main {
                flex: 1 1 0;
                width: 0;
                min-width: 0;
                box-sizing: border-box;
                padding: 22px;
                background: #ffffff;
                border: 1px solid #e5eaf0;
                border-radius: 18px;
                box-shadow: 0 4px 18px rgba(31, 55, 80, 0.06);
                overflow: auto;
                height: 100%;
            }

                .ehr-desktop-main .ehr-active-content {
                    width: 100%;
                    min-width: 0;
                    box-sizing: border-box;
                    height:100%;
                }

            .ehr-mobile-back {
                display: none;
            }
            /* جلوگیری از کشیده شدن منو */
            .ehr-desktop-sidebar > * {
                width: 100%;
                min-width: 0;
                box-sizing: border-box;
            }
        }
        /* =====================================================
   TABLET / SMALL DESKTOP
   ===================================================== */

        @media (min-width: 768px) and (max-width: 1100px) {

            .ehr-desktop-view {
                padding: 12px;
            }

            .ehr-desktop-layout {
                gap: 14px;
            }

            .ehr-desktop-sidebar {
                flex-basis: 250px;
                width: 250px;
                padding: 8px;
                border-radius: 15px;
            }

            .ehr-desktop-main {
                padding: 16px;
            }
        }
        /* =====================================================
   SMALL MOBILE
   ===================================================== */
        @media (max-width: 360px) {
            .ehr-mobile-back {
                padding-inline: 10px;
                font-size: 12px;
            }
        }
        /* =========================================================
           DESKTOP EHR MENU
           ========================================================= */
        .ehr-desktop-layout {
            width: 100%;
            height: calc(100dvh - 80px);
            display: flex;
            flex-direction: row;
            align-items: stretch;
            gap: 30px;
            padding: 40px;
            box-sizing: border-box;
            overflow: hidden;
        }

        .ehr-desktop-menu {
            width: 360px;
            flex-shrink: 0;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 18px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            padding: 18px;
            box-sizing: border-box;
            overflow: hidden;
        }

            .ehr-desktop-menu .ehr-mobile-menu-items {
                overflow-y: visible;
                max-height: none;
                margin-bottom: 0;
            }

        .ehr-desktop-content {
            flex: 1;
            min-width: 0;
            min-height: 0;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 18px;
            padding: 24px;
            box-sizing: border-box;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
        }
        /*---------------------------------
            Chat 
---------------------------------*/
        /*    Main Layout */
        .ehr-chat-layout {
            display: flex;
            flex-direction: row-reverse;
            width: 100%;
            height: 100%;
            min-height: 600px;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            overflow: hidden;
            direction: ltr;
        }
        /*    Doctors Panel - Right */

        .ehr-chat-doctors-panel {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            background: #fff;
            border-left: 1px solid #e5e7eb;
            direction: rtl;
        }
        /* Header */
.ehr-chat-header-dr {
    display: flex;
    align-items: center;
    justify-content:space-between;
    gap: 8px;
    height: 58px;
    border-bottom: 1px solid #e5e7eb;
}
.ehr-chat-doctors-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

            .ehr-chat-doctors-header i {
                color: #0d6efd;
            }
        /* Doctors List */

        .ehr-chat-doctors-list {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }
        /* Doctor Item */

        .ehr-chat-doctor {
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 64px;
            padding: 9px 10px;
            margin-bottom: 6px;
            background: #fff;
            border: 1px solid transparent;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color .2s ease, border-color .2s ease;
        }

            .ehr-chat-doctor:hover {
                background: #f8fafc;
            }

            .ehr-chat-doctor.selected {
                background: #f0f7ff;
                border-color: #0d6efd;
            }
        /*    Doctor Avatar */

        .doctor-online-avatar {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            min-width: 42px;
            border-radius: 50%;
            background: var(--green-color); /*#eef5ff;*/
            color: var(--white-color); /*#0d6efd;*/
            font-size: 16px;
        }

        .online-status {
            position: absolute;
            right: 0;
            bottom: 1px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #22c55e;
            border: 2px solid #fff;
        }
        /*    Doctor Information */

        .doctor-info {
            flex: 1;
            min-width: 0;
            margin-right: 10px;
        }

        .doctor-name {
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .doctor-caption {
            margin-top: 3px;
            font-size: 11px;
            color: #22a05a;
        }
        /* Arrow */

        .doctor-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            color: #9ca3af;
            font-size: 11px;
        }

        .ehr-chat-doctor.selected .doctor-arrow {
            color: #0d6efd;
        }
        /*    Chat Panel - Left */

        .ehr-chat-panel {
            flex: 2;
            display: flex;
            flex-direction: column;
            min-width: 0;
            direction: rtl;
        }
        /* Empty Chat */

        .ehr-chat-empty {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: #9ca3af;
            font-size: 13px;
            height: 100%;
        }

            .ehr-chat-empty i {
                font-size: 32px;
                color: #cbd5e1;
            }
        /*    Mobile  */
        .ehr-chat-back-button {
            display: none;
        }

        @media (max-width: 768px) {

            .ehr-chat-layout {
                display: flex;
                flex-direction: column;
                width: 100%;
                height: 100%;
                min-height: 0;
                border-radius: 10px;
            }

            .ehr-chat-doctors-panel {
                flex: 1;
                width: 100%;
                min-width: 0;
                min-height: 0;
                border-left: 0;
                border-bottom: 0;
            }

                .ehr-chat-doctors-panel.mobile-hidden {
                    display: none;
                }

            .ehr-chat-doctors-list {
                flex: 1;
                max-height: none;
                overflow-y: auto;
            }

            .ehr-chat-panel {
                flex: 1;
                width: 100%;
                min-width: 0;
                min-height: 0;
            }

                .ehr-chat-panel.mobile-hidden {
                    display: none;
                }

            .ehr-chat-back-button {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 34px;
                height: 34px;
                min-width: 34px;
                margin-left: 8px;
                padding: 0;
                border: 0;
                background: transparent;
                color: var(--green-color);
                font-size: 16px;
                cursor: pointer;
            }

                .ehr-chat-back-button:hover {
                    color: var(--darkgreen-color);
                }
        }
        /*ـــــــــــــــــــــــــــــــــــــــــ*/
        /* =========================================
   EHR MENU 2
   ========================================= */
        .ehr-mobile-menu {
            width: 100%;
            min-width: 0;
            min-height: 0;
            padding: 16px;
            box-sizing: border-box;
            direction: rtl;
            background: var(--white-color);
            display: flex;
            flex-direction: column;
            gap: 16px;
            /* ارتفاع را به والد تحمیل نکن */
            height: auto;
            overflow: visible;
        }
        /* =========================================
   HEADER
   ========================================= */
.ehr-reserved-plans {
    display: flex;
    /*flex-direction: row;*/
    flex: 0 0 auto;
    gap:5px;
    flex-wrap:wrap;
}

.ehr-menu-header {
    width: 47%;
    min-height: 88px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    background: var(--white-color);
    box-shadow: 0 5px 18px rgba(38, 65, 97, 0.045);
    flex: 0 0 auto;
}

       .ehr-menu-header-icon {
            width: 56px;
            height: 56px;
            flex: 0 0 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 17px;
            background: var(--green-color);
            color: #397bd5;
        }

        .ehr-menu-header-text {
            min-width: 0;
            flex: 1;
        }

        .ehr-menu-header-title {
            font-size: 17px;
            font-weight: 800;
            line-height: 1.8;
            color: var(--black-color);
        }

.ehr-menu-header-subtitle {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--black-color);
}
        /* =========================================
   CARD GRID
   ========================================= */
        .ehr-menu-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            width: 100%;
            min-width: 0;
            align-content: start;
        }


            .ehr-menu-grid::-webkit-scrollbar {
                display: none;
            }
        /* =========================================
   CARD
   ========================================= */

        .ehr-menu-card {
            position: relative;
            min-width: 0;
            min-height: 188px;
            padding: 14px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 19px;
            background: #ffffff;
            text-align: right;
            direction: rtl;
            box-shadow: 0 5px 18px rgba(38, 65, 97, 0.045);
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }

            .ehr-menu-card:active {
                transform: scale(0.98);
                box-shadow: 0 2px 8px rgba(38, 65, 97, 0.07);
            }

            .ehr-menu-card:focus-visible {
                outline: 2px solid #80aef0;
                outline-offset: 3px;
            }
        /* =====================================================
   MOBILE VIEWPORT
   ===================================================== */

        @media (max-width: 767.98px) {

            .ehr-mobile-view {
                display: flex;
                flex-direction: column;
                width: 100%;
                min-width: 0;
                height: auto;
                min-height: 0;
                overflow: visible;
            }

            .ehr-mobile-menu-container {
                width: 100%;
                min-width: 0;
                height: auto;
                min-height: 0;
                overflow: visible;
            }

            .ehr-mobile-menu {
                width: 100%;
                height: auto;
                min-height: 0;
                padding: 16px;
                padding-bottom: 16px;
                overflow: visible;
            }

            .ehr-menu-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
                overflow: visible;
            }


            .ehr-mobile-content {
                display: flex;
                flex-direction: column;
                width: 100%;
                min-width: 0;
                height: auto;
                min-height: 0;
                overflow: visible;
            }

                .ehr-mobile-content .ehr-active-content {
                    width: 100%;
                    min-width: 0;
                }
        }
        /* =========================================
   ICON
   ========================================= */

        .ehr-menu-card-icon {
            width: 46px;
            height: 46px;
            flex: 0 0 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 15px;
            margin-bottom: 10px;
        }

        .ehr-icon-blue {
            background: #dceaff;
            color: #397bd5;
        }

        .ehr-icon-green {
            background: #d9f6e9;
            color: #20835d;
        }

        .ehr-icon-red {
            background: #ffe1df;
            color: #bd5b5b;
        }

        .ehr-icon-purple {
            background: #eee2ff;
            color: #7952bc;
        }

        .ehr-icon-teal {
            background: #d5f3f5;
            color: #247d8a;
        }
        /* =========================================
   CARD TEXT
   ========================================= */

        .ehr-menu-card-title {
            width: 100%;
            margin-bottom: 4px;
            font-size: 14px;
            font-weight: 750;
            line-height: 1.8;
            color: #20344e;
            overflow-wrap: anywhere;
        }

        .ehr-menu-card-description {
            width: 100%;
            font-size: 11px;
            font-weight: 400;
            line-height: 1.8;
            color: #8190a5;
            overflow-wrap: anywhere;
        }
        /* =========================================
   CARD FOOTER
   ========================================= */

        .ehr-menu-card-footer {
            width: 100%;
            margin-top: auto;
            padding-top: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
        }

        .ehr-menu-card-count {
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .ehr-menu-count-number {
            font-size: 20px;
            font-weight: 800;
            line-height: 1.3;
            color: #1d3553;
        }

        .ehr-menu-count-label {
            font-size: 10px;
            line-height: 1.7;
            color: #8292a8;
        }

        .ehr-menu-card-arrow {
            flex: 0 0 auto;
            font-size: 13px;
            color: #8ba0bb;
        }
        /* =========================================
   FULL WIDTH CARD
   ========================================= */

        .ehr-menu-card-wide {
            grid-column: 1 / -1;
            min-height: 118px;
            display: grid;
            grid-template-columns: 46px minmax(0, 1fr) auto;
            grid-template-rows: auto auto;
            column-gap: 12px;
            align-content: center;
            align-items: center;
        }

            .ehr-menu-card-wide .ehr-menu-card-icon {
                grid-column: 1;
                grid-row: 1 / 3;
                margin: 0;
            }

            .ehr-menu-card-wide .ehr-menu-card-title {
                grid-column: 2;
                grid-row: 1;
                margin: 0;
            }

            .ehr-menu-card-wide .ehr-menu-card-description {
                grid-column: 2;
                grid-row: 2;
            }

            .ehr-menu-card-wide .ehr-menu-card-footer {
                grid-column: 3;
                grid-row: 1 / 3;
                width: auto;
                margin: 0;
                padding: 0;
                gap: 8px;
            }

            .ehr-menu-card-wide .ehr-menu-card-count {
                display: none;
            }
        /* =========================================
   DESKTOP
   ========================================= */

        @media (min-width: 768px) {

            .ehr-mobile-menu {
                padding: 8px;
                gap: 14px;
                background: transparent;
            }

            .ehr-menu-header {
                min-height: 76px;
                padding: 12px;
            }

            .ehr-menu-header-icon {
                width: 44px;
                height: 44px;
                flex-basis: 44px;
            }

            .ehr-menu-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            .ehr-menu-card {
                min-height: 155px;
                padding: 12px;
                border-radius: 14px;
            }

            .ehr-menu-card-icon {
                width: 38px;
                height: 38px;
                flex-basis: 38px;
                border-radius: 12px;
            }

            .ehr-menu-card-title {
                font-size: 13px;
            }

            .ehr-menu-card-description {
                font-size: 10px;
            }

            .ehr-menu-count-number {
                font-size: 17px;
            }
        }
        /* =========================================
   SMALL PHONES
   ========================================= */

        @media (max-width: 360px) {

            .ehr-mobile-menu {
                padding: 10px;
                gap: 10px;
            }

            .ehr-menu-grid {
                gap: 8px;
            }

            .ehr-menu-card {
                min-height: 176px;
                padding: 10px;
                border-radius: 15px;
            }

            .ehr-menu-card-title {
                font-size: 12px;
            }

            .ehr-menu-card-description {
                font-size: 10px;
            }

            .ehr-menu-header-title {
                font-size: 15px;
            }

            .ehr-menu-header-subtitle {
                font-size: 11px;
            }
        }
       
     /* =========================================
            MEDICATION PAGE
     ========================================= */

        .ehr-medication {
            
            --med-text: #243447;
            --med-muted: #7c8997;
            --med-border: #e7edf3;
            --med-surface: #ffffff;
            --med-background: #f6f8fb;
            width: 100%;
            min-width: 0;
            padding: 12px;
            box-sizing: border-box;
            color: var(--med-text);
            /*background: var(--med-background);*/
            font-family: inherit;
        }

        .medication-header {
            display: flex;
            flex-direction: column;
            gap: 18px;
            margin-bottom: 18px;
        }
.medication-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.medication-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.medication-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--gray-color);
    background: var(--lightgray-color);
}

        .medication-heading h5 {
            margin: 0 0 5px;
            font-size: 17px;
            font-weight: 800;
        }

        .medication-heading p {
            margin: 0;
            color: var(--med-muted);
            font-size: 12px;
        }

@media (min-width: 1025px) {
    .ehr-mobile-back {
        display: none;
    }
}
        /* =========================================
   TABS
   ========================================= */

        .medication-tabs {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 5px;
            padding: 4px;
            border-radius: 14px;
            background: var(--lightgray-color);
        }

        .medication-tab {
            min-height: 42px;
            padding: 9px 12px;
            border: 0;
            border-radius: 11px;
            background: transparent;
            color: #526274;
            font: inherit;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: background .2s ease, color .2s ease;
        }

            .medication-tab.active {
                background: var(--green-color);
                color: #fff;
                box-shadow: 0 3px 8px rgb(39 134 237 / 15%);
            }
        /* =========================================
   PRESCRIPTION SELECTOR
   ========================================= */

        .medication-prescription-selector {
            margin-bottom: 18px;
        }

        .prescription-selector-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 9px;
            font-size: 12px;
            font-weight: 700;
        }

        .prescription-count {
            color: var(--med-muted);
            font-weight: 500;
        }
        /* =========================================
   COMMON MESSAGES
   ========================================= */

        .medication-empty,
        .medication-message {
            padding: 24px 14px;
            border: 1px dashed var(--med-border);
            border-radius: 14px;
            background: var(--med-surface);
            color: var(--med-muted);
            font-size: 13px;
            text-align: center;
        }
        /* =========================================
   RESPONSIVE
   ========================================= */

        @media (min-width: 768px) {
            .ehr-medication {
                max-width: 900px;
                margin-inline: auto;
                padding: 20px;
            }

            .medication-header {
                gap: 20px;
            }

            .medication-list {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 14px;
            }
        }

        @media (max-width: 380px) {
            .ehr-medication {
                padding: 8px;
            }

            .medication-tab {
                padding-inline: 6px;
                font-size: 12px;
            }
        }
        /* =========================================
   MEDICATION CARDS
   ========================================= */

        .medication-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .medication-card {
            min-width: 0;
            overflow: hidden;
            border: 1px solid #e7edf3;
            border-radius: 16px;
            background: #fff;
            box-shadow: 0 3px 12px rgb(30 50 75 / 4%);
            transition: box-shadow .2s ease;
        }
        /* بدون نوار رنگی در کنار کارت */

        .medication-card-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            padding: 15px 14px 12px;
        }

        .medication-card-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .medication-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0f5fa;
            color: #56718b;
        }

        .medication-card-heading {
            min-width: 0;
        }

            .medication-card-heading h6 {
                margin: 0 0 5px;
                overflow-wrap: anywhere;
                color: #243447;
                font-size: 12px;
                font-weight: 800;
                line-height: 1.7;
            }

        .medication-card-subtitle {
            color: #8491a0;
            font-size: 11px;
        }
.mozmen-status {
    display: flex;
    flex-direction: column;
    min-width: fit-content;
    gap: 5px;
}
.medication-count {
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 9px;
    background: var(--green-color);
    color: var(--lightgray-color);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

        .medication-card-body {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding: 0 14px 14px;
        }

        .medication-field {
            min-width: 0;
        }

        .medication-field-label {
            display: block;
            margin-bottom: 5px;
            color: #8995a3;
            font-size: 11px;
            font-weight: 600;
        }

        .medication-field p {
            margin: 0;
            color: #3b4a5b;
            font-size: 12px;
            line-height: 2;
            overflow-wrap: anywhere;
            white-space: pre-line;
        }

        .medication-date-row {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            padding: 12px;
            border-radius: 12px;
            background: #f7f9fc;
        }

        .medication-date-item {
            min-width: 0;
            font-size: 12px;
            overflow-wrap: anywhere;
        }

        .medication-description {
            padding-top: 2px;
        }

        .medication-card-footer {
            display: flex;
            justify-content: flex-start;
            padding: 10px 14px;
            border-top: 1px solid #f0f3f7;
        }

.medication-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--gray-color);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

    .medication-detail-link:hover {
        color: var(--green-color);
    }
        /* =========================================
   PRESCRIPTION DROPDOWN
   ========================================= */

        .prescription-dropdown {
            position: relative;
            width: 100%;
            min-width: 0;
        }

        .prescription-dropdown-trigger {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            min-height: 66px;
            padding: 12px;
            border: 1px solid #e3eaf2;
            border-radius: 14px;
            background: #fff;
            color: #33465a;
            text-align: right;
            cursor: pointer;
        }

.prescription-trigger-icon,
.prescription-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--lightgray-color);
    color: var(--gray-color);
}

        .prescription-trigger-content,
        .prescription-option-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            gap: 5px;
            min-width: 0;
        }

        .prescription-trigger-title {
            font-size: 13px;
            font-weight: 800;
        }

        .prescription-trigger-subtitle,
        .prescription-option-doctor,
        .prescription-option-code {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            color: #8491a0;
            font-size: 11px;
        }

        .prescription-tracking {
            color: #64758a;
        }

.prescription-options {
    position: absolute;
    z-index: 1050;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 320px;
    margin-top: 8px;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #e5ebf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(30 50 75 / 12%);
}
.prescription-mobile-header,
.prescription-mobile-backdrop {
    display: none;
}

.prescription-mobile-close {
    border: 0;
    background: transparent;
    color: #64758a;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

        .prescription-option {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 10px;
            border: 1px solid transparent;
            border-radius: 11px;
            background: #fff;
            color: #34485d;
            text-align: right;
            cursor: pointer;
        }

            .prescription-option:hover,
            .prescription-option.selected {
                border-color: #dcecff;
                background: #f3f8ff;
            }

        .prescription-option-date {
            font-size: 12px;
            font-weight: 800;
        }

        .prescription-option-empty,
        .prescription-dropdown-empty {
            padding: 16px;
            color: #8491a0;
            font-size: 12px;
            text-align: center;
        }

        @media (max-width: 480px) {
            .medication-card-header {
                padding: 12px 11px 10px;
            }

            .medication-card-body {
                padding-inline: 11px;
            }

            .medication-card-footer {
                padding-inline: 11px;
            }

            .medication-count {
                padding: 5px 7px;
                font-size: 10px;
            }

            .medication-icon {
                width: 35px;
                height: 35px;
            }
        }
/* =========================================
   MOBILE - BOTTOM SHEET
   ========================================= */

@media (max-width: 767.98px) {

    .prescription-mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1998;
        background: rgb(20 32 48 / 42%);
        animation: prescriptionBackdropIn 0.2s ease;
    }

    .prescription-options {
        position: fixed;
        z-index: 1999;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(75dvh, 600px);
        margin: 0;
        padding: 0 14px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 22px 22px 0 0;
        background: #fff;
        box-shadow: 0 -8px 32px rgb(30 50 75 / 16%);
        animation: prescriptionSheetIn 0.25s ease-out;
    }

    .prescription-mobile-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        margin: 0 -14px 8px;
        padding: 10px 16px;
        border-bottom: 1px solid #edf1f5;
        background: #fff;
        border-radius: 22px 22px 0 0;
        color: #33465a;
        font-size: 14px;
        font-weight: 800;
    }

    .prescription-mobile-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        /*background: #f2f5f8;*/
    }

    .prescription-option {
        min-height: 64px;
        padding: 12px 10px;
    }

        .prescription-option:last-child {
            margin-bottom: 4px;
        }
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes prescriptionSheetIn {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes prescriptionBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prescription-options,
    .prescription-mobile-backdrop {
        animation: none;
    }
}
/* =========================================
   MEDICATION - MOBILE FULL PAGE
   ========================================= */
@media (max-width: 767.98px) {

    .ehr-medication {
        width: 100%;
        max-width: none;
        min-width: 0;
        /* ارتفاع بر اساس محتوای واقعی */
        height: auto;
        min-height: 100%;
        margin: 0;
        padding: 14px 12px;
        /* جلوگیری از مخفی شدن انتهای محتوا */
        padding-bottom: calc( var(--mobile-footer-height, 64px) + 24px + env(safe-area-inset-bottom) );
        box-sizing: border-box;
        overflow: visible;
        overflow-wrap: anywhere;
    }
    /* هدر دارو */
    .medication-header {
        width: 100%;
        min-width: 0;
        margin-bottom: 18px;
    }
    /* تب‌ها */
    .medication-tabs {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .medication-tab {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    /* انتخاب نسخه */
    .medication-prescription-selector {
        width: 100%;
        min-width: 0;
        margin-bottom: 16px;
    }

    .prescription-dropdown,
    .prescription-dropdown-trigger {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    /* فهرست داروها */
    .medication-list {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
    }
    /* کارت دارو */
    .medication-card {
        width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;
    }

    .medication-card-body {
        min-width: 0;
    }
    /* پیام‌ها */
    .medication-empty,
    .medication-message {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 12px;
    }
    /* نمایش جزئیات دارو */
    .ehr-medication > * {
        min-width: 0;
    }
}


/* =========================================
   MEDICATION - DESKTOP LAYOUT
   ========================================= */
@media (min-width: 768px) {

    .ehr-medication {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 100%;
        height: 100%;
        margin: 0;
        padding: 24px;
        box-sizing: border-box;
        overflow: visible;
        background: var(--med-background);
        border-radius: 18px;
    }
    /* Header */
    .medication-header {
        display: grid;
        grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
        align-items: center;
        gap: 24px;
        margin-bottom: 24px;
    }

    .medication-heading {
        min-width: 0;
    }

    .medication-heading-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .medication-heading h5 {
        font-size: 20px;
    }

    .medication-heading p {
        font-size: 13px;
        line-height: 1.9;
    }
    /* Tabs */
    .medication-tabs {
        width: 100%;
        max-width: 460px;
        justify-self: start;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 5px;
        border-radius: 14px;
    }

    .medication-tab {
        min-height: 46px;
        font-size: 14px;
    }
    /* Prescription selector */
    .medication-prescription-selector {
        width: 100%;
        max-width: 680px;
        margin-bottom: 24px;
    }

    .prescription-selector-label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .prescription-dropdown-trigger {
        min-height: 76px;
        padding: 14px 16px;
    }
    /* Medication cards */
    .medication-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 16px;
    }

    .medication-card {
        width: 100%;
        min-width: 0;
        height: 100%;
        border-radius: 17px;
    }

    .medication-card-header {
        padding: 18px 18px 14px;
    }

    .medication-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    .medication-card-heading h6 {
        font-size: 15px;
    }

    .medication-card-subtitle {
        font-size: 12px;
    }

    .medication-count {
        padding: 7px 10px;
        font-size: 12px;
    }

    .medication-card-body {
        gap: 16px;
        padding: 0 18px 18px;
    }

    .medication-field-label {
        font-size: 12px;
    }

    .medication-field p {
        font-size: 13px;
        line-height: 2;
    }

    .medication-date-row {
        gap: 14px;
        padding: 14px;
    }

    .medication-date-item {
        font-size: 13px;
    }

    .medication-card-footer {
        padding: 12px 18px;
    }

    .medication-detail-link {
        font-size: 12px;
    }
    /* Empty and loading states */
    .medication-empty,
    .medication-message {
        padding: 32px 20px;
        font-size: 14px;
    }
    /* Dropdown options */
    .prescription-options {
        max-height: 360px;
    }
}

/* =========================================
   WIDE DESKTOP
   ========================================= */

@media (min-width: 1200px) {

    .ehr-medication {
        padding: 28px;
    }

    .medication-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .medication-header {
        grid-template-columns: minmax(250px, 0.8fr) minmax(350px, 1.2fr);
        gap: 30px;
        margin-bottom: 28px;
    }

    .medication-card-header {
        padding: 18px;
    }

    .medication-card-body {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* =========================================
   DRUG DETAIL - DESKTOP WIDTH
   ========================================= */

@media (min-width: 768px) {

    .ehr-medication > * {
        min-width: 0;
    }

    .ehr-medication:has(> *) {
        box-sizing: border-box;
    }
}


/* =========================================
   LAB TEST PAGE
   ========================================= */
.ehr-labtest {
    --lab-primary: #2786ed;
    --lab-text: #26374b;
    --lab-muted: #8190a3;
    --lab-border: #e8eef5;
    --lab-surface: #ffffff;
    --lab-background: #f5f8fc;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    height: auto;
    padding: 12px;
    box-sizing: border-box;
    direction: rtl;
    color: var(--lab-text);
    /*background: var(--lightgray-color);*/

}

/* =========================================
   PRESCRIPTION SELECTOR
   ========================================= */

.ehr-labtest > .justify-items-center {
    width: 100%;
    min-width: 0;
    margin-bottom: 18px !important;
}

.ehr-labtest .dropdown {
    width: 100%;
    max-width: 100%;
}

    .ehr-labtest .dropdown > button {
        width: 100%;
        min-height: 64px;
        padding: 12px 16px;
        border: 1px solid var(--lab-border);
        border-radius: 16px;
        box-sizing: border-box;
    }

.ehr-labtest .dropdown-menu {
    z-index: 1100;
    max-width: min(600px, 90vw);
}

/* Mobile selector */
.ehr-labtest .mobile-only > button {
    min-height: 64px;
    padding: 12px;
    border: 1px solid var(--lab-border);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgb(35 65 100 / 4%);
}
.ehr-labtests-btnD {
    width:100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
/* =========================================
   RESULTS CONTAINER
   ========================================= */
.labtest-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    background: var(--lightgray-color);
    padding: 8px;
    border-radius: 14px;
    direction:ltr;
}

/* Group heading */
.labtest-group-title {
    padding: 12px 14px 6px;
    color: #52677f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    cursor: pointer;
}
.labtest-other-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* =========================================
   RESULT CARD
   ========================================= */

.labtest-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "name normal value";
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 78px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ffffff;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgb(40 65 95 / 4%);
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

    .labtest-result-row:active {
        transform: scale(0.99);
    }

.labtest-result-name {
    grid-area: name;
    min-width: 0;
    color: #26374b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    overflow-wrap: anywhere;
}

.labtest-result-normal {
    grid-area: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 44px;
    padding: 7px;
    border-radius: 12px;
    background: #f6f9fd;
    color: #52657b;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
    overflow-wrap: anywhere;
}

.labtest-field-label {
    color: #8795a7;
    font-size: 10px;
}

.labtest-result-value {
    grid-area: value;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.labtest-value-text {
    color: #164f51;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
}

/* Keep result indicators within their card */
.labtest-result-value > * {
    max-width: 100%;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767.98px) {

    .ehr-labtest {
        padding: 10px 8px;
        padding-bottom: calc( var(--mobile-footer-height, 64px) + 24px + env(safe-area-inset-bottom) );
        overflow: visible;
    }

    .labtest-results {
        gap: 10px;
    }

    .labtest-result-row {
        gap: 7px;
        min-height: 76px;
        padding: 10px 8px;
        border-radius: 15px;
    }

    .labtest-result-name {
        font-size: 14px;
    }

    .labtest-result-normal {
        padding: 5px 3px;
        font-size: 14px;
    }

    .labtest-field-label {
        font-size: 9px;
    }

    .labtest-result-value {
        font-size: 17px;
    }

    .labtest-value-text {
        font-size: 18px;
    }
}

/* =========================================
   DESKTOP - FULL WIDTH
   ========================================= */

@media (min-width: 768px) {

    .ehr-labtest {
        width: 100%;
        max-width: none;
        min-height: 100%;
        height: auto;
        padding: 24px;
        background: var(--lab-background);
        border-radius: 18px;
        overflow: visible;
    }

        .ehr-labtest > .justify-items-center {
            margin-bottom: 24px !important;
        }

        .ehr-labtest .dropdown > button {
            min-height: 74px;
            padding: 16px 20px;
            border-radius: 17px;
        }

        .ehr-labtest .mobile-only > button {
            min-height: 74px;
        }

    .labtest-results {
        gap: 12px;
    }

    .labtest-group-title {
        padding: 16px 18px 8px;
        font-size: 15px;
    }

    .labtest-result-row {
        grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) minmax(150px, 0.8fr);
        min-height: 96px;
        gap: 18px;
        padding: 18px 22px;
        border-radius: 17px;
        box-shadow: 0 4px 16px rgb(40 65 95 / 4%);
    }

    .labtest-result-name {
        font-size: 14px;
        line-height: 2;
    }

    .labtest-result-normal {
        min-height: 56px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .labtest-field-label {
        font-size: 11px;
    }

    .labtest-result-value {
        font-size: 16px;
    }

    .labtest-value-text {
        font-size: 23px;
    }

    .labtest-result-row:hover {
        box-shadow: 0 7px 22px rgb(40 65 95 / 8%);
    }
}

/* =========================================
   WIDE DESKTOP
   ========================================= */

@media (min-width: 1200px) {

    .ehr-labtest {
        padding: 30px;
    }

    .labtest-results {
        gap: 14px;
    }

    .labtest-result-row {
        min-height: 104px;
        padding: 20px 26px;
        gap: 24px;
    }

    .labtest-result-name {
        font-size: 15px;
    }

    .labtest-result-normal {
        font-size: 14px;
    }

    .labtest-value-text {
        font-size: 25px;
    }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 360px) {

    .ehr-labtest {
        padding-right: 6px;
        padding-left: 6px;
    }

    .labtest-result-row {
        gap: 5px;
        padding: 9px 6px;
    }

    .labtest-result-name {
        font-size: 10px;
    }

    .labtest-result-normal {
        font-size: 9px;
    }

    .labtest-value-text {
        font-size: 16px;
    }
}

/* =========================================
            LAB TEST HEADER
   ========================================= */

.labtest-header {
    width: 100%;
    margin-bottom: 18px;
    direction: rtl;
}

.labtest-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.labtest-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.labtest-title-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf5e6;
    color: #729641;
    font-size: 22px;
}

.labtest-title-text {
    min-width: 0;
}

    .labtest-title-text h3 {
        margin: 0 0 5px;
        color: #263528;
        font-size: 18px;
        font-weight: 700;
    }

    .labtest-title-text span {
        color: #7a847b;
        font-size: 12px;
    }

.labtest-tabs {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 5px;
    border-radius: 14px;
    background: var(--lightgray-color);
}

.labtest-tab {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #687367;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}

    .labtest-tab.active {
        background: var(--green-color);
        border-color: var(--green-color);
        color: var(--black-color);
        font-weight: 700;
        box-shadow: 0 2px 7px rgb(0 0 0 / 4%);
    }

/*.labtest-tab-count {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 20px;
    background: #e8efdf;
    color: #557c30;
    font-size: 11px;
    text-align: center;
}*/

.labtest-requests {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.labtest-request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid #e8ece4;
    border-radius: 14px;
    background: #fff;
    color: #344034;
    text-align: right;
    font-family: inherit;
    cursor: pointer;
}

.labtest-request-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #edf5e6;
    color: #729641;
    font-size: 19px;
}

.labtest-request-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

    .labtest-request-info strong {
        font-size: 14px;
    }

    .labtest-request-info span {
        color: #7a847b;
        font-size: 12px;
    }

.labtest-empty {
    padding: 30px 16px;
    border: 1px dashed #dce4d5;
    border-radius: 14px;
    color: #7a847b;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .labtest-title-row {
        gap: 8px;
    }

    .labtest-title-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 19px;
    }

    .labtest-title-text h3 {
        font-size: 16px;
    }

    .labtest-title-text span {
        font-size: 11px;
    }

    .labtest-tab {
        gap: 5px;
        padding: 11px 6px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .labtest-tab {
        gap: 4px;
        font-size: 11px;
    }

    /*.labtest-tab-count {
        min-width: 19px;
        padding: 2px 4px;
    }*/
}



/* =========================================
   LAB TEST HISTORY     LabTestGridDetailsComponent
   ========================================= */

.lab-history-page {
    --lab-green: #168747;
    --lab-green-dark: #087b3d;
    --lab-green-bg: #ddf3e5;
    --lab-green-border: #e2eee9;
    --lab-text: #192a3a;
    --lab-muted: #78879a;
    --lab-soft: #f1f4f8;
    --lab-border: #eaf0f6;
    direction: rtl;
    width: 100%;
    min-height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #f8fafc;
    color: var(--lab-text);
    font-family: inherit;
}

    .lab-history-page *,
    .lab-history-page *::before,
    .lab-history-page *::after {
        box-sizing: border-box;
    }

/* =========================================
   HEADER
   ========================================= */

.lab-history-header {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
}


.lab-page-title {
    min-width: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
    grid-column: 2;
    grid-row: 1;
}

.lab-header-spacer {
    width: 100%;
}

/* =========================================
   LATEST RESULT
   Right: date | Center: result | Left: status
   ========================================= */

.lab-latest-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
    direction: rtl;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 180px;
    padding: 24px 18px;
    border: 1px solid var(--lab-green-border);
    border-radius: 26px;
    background: linear-gradient(120deg, #f0faf5, #f7fcf9);
    box-shadow: 0 5px 18px rgba(30, 100, 65, 0.035);
}

/* Right column: date */

.lab-latest-date {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 0 10px;
    color: var(--lab-muted);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    line-height: 1.8;
}

    .lab-latest-date > span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

.lab-calendar-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #91a0b2;
    font-size: 23px;
}

/* Center column: result */

.lab-latest-value {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 12px;
    text-align: center;
    border-right: 1px solid #dcece4;
    border-left: 1px solid #dcece4;
}

.lab-section-caption {
    margin-bottom: 4px;
    color: var(--lab-muted);
    font-size: 18px;
    font-weight: 600;
}

.lab-result-number {
    max-width: 100%;
    color: var(--lab-green);
    font-size: 44px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.lab-latest-normal {
    margin-top: 7px;
    color: var(--lab-muted);
    font-size: 17px;
    direction: ltr;
    overflow-wrap: anywhere;
}

/* Left column: status */

.lab-latest-status {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
}

/* =========================================
   STATUS BADGES
   ========================================= */

.lab-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    max-width: 100%;
    padding: 9px 16px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.lab-status-normal {
    color: #118342;
    background: #ddf4e6;
}

.lab-status-high {
    color: #9a7c08;
    background: #fff6d8;
}

.lab-status-low {
    color: #2768ae;
    background: #e3f0ff;
}

.lab-status-warning {
    color: #a45c16;
    background: #fff0df;
}

/* =========================================
   HISTORY TITLE
   ========================================= */

.lab-history-title {
    width: 100%;
    margin: 36px 0 20px;
    color: #78879a;
    font-size: 23px;
    font-weight: 800;
    text-align: right;
}

.lab-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* =========================================
   HISTORY CARDS
   Right: date | Center: normal range | Left: result
   ========================================= */

.lab-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.65fr);
    direction: rtl;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 125px;
    padding: 18px 20px;
    border: 1px solid var(--lab-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(25, 54, 86, 0.025);
}

.lab-history-result {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
}

.lab-history-number {
    max-width: 100%;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.lab-history-normal {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.lab-normal-pill {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 28px;
    background: var(--lab-soft);
    color: var(--lab-muted);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
}

.lab-history-date {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    color: var(--lab-muted);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.8;
}

    .lab-history-date > span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

/* =========================================
   EMPTY STATE
   ========================================= */

.lab-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 200px;
    padding: 24px;
    border: 1px solid var(--lab-border);
    border-radius: 24px;
    background: #fff;
    color: var(--lab-muted);
    text-align: center;
    font-size: 16px;
}

.lab-empty-icon {
    font-size: 34px;
}

/* =========================================
   MOBILE - MATCH REFERENCE IMAGE
   ========================================= */

@media (max-width: 767.98px) {

    .lab-history-page {
        padding: 14px;
    }

    /* Header */

    .lab-history-header {
        grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
        position: relative;
        min-height: 54px;
        margin-bottom: 22px;
    }

    .lab-page-title {
        grid-column: 2;
        grid-row: 1;
        padding: 0 36px;
        font-size: 19px;
        line-height: 1.7;
    }

    .lab-header-spacer {
        display: none;
    }

    /* Latest result: always one row */

    .lab-latest-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
        min-height: 145px;
        padding: 18px 8px;
        border-radius: 23px;
    }

    .lab-latest-date {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column-reverse;
        gap: 5px;
        padding: 0 4px;
        font-size: 12px;
        line-height: 1.8;
    }

        .lab-latest-date .lab-calendar-icon {
            font-size: 22px;
        }

    .lab-latest-value {
        grid-column: 2;
        grid-row: 1;
        padding: 0 6px;
    }

    .lab-section-caption {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .lab-result-number {
        font-size: clamp(27px, 7vw, 36px);
        line-height: 1.35;
    }

    .lab-latest-normal {
        margin-top: 6px;
        font-size: 13px;
    }

    .lab-latest-status {
        grid-column: 3;
        grid-row: 1;
        padding: 0 3px;
    }

        .lab-latest-status .lab-status {
            min-width: 0;
            padding: 9px 12px;
            font-size: 13px;
        }

    /* History title */

    .lab-history-title {
        margin: 28px 0 17px;
        font-size: 19px;
    }

    .lab-history-list {
        gap: 12px;
    }

    /* History cards */

    .lab-history-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.7fr);
        min-height: 112px;
        padding: 15px 8px;
        gap: 5px;
        border-radius: 21px;
    }

    .lab-history-result {
        grid-column: 3;
        grid-row: 1;
        gap: 7px;
    }

    .lab-history-number {
        font-size: 29px;
    }

    .lab-history-card .lab-status {
        min-width: 0;
        padding: 7px 10px;
        font-size: 12px;
    }

    .lab-history-normal {
        grid-column: 2;
        grid-row: 1;
    }

    .lab-normal-pill {
        padding: 9px 10px;
        font-size: 12px;
        line-height: 1.6;
    }

    .lab-history-date {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        gap: 5px;
        padding: 0 2px;
        font-size: 12px;
        line-height: 1.8;
    }

        .lab-history-date .lab-calendar-icon {
            font-size: 19px;
        }
}

/* =========================================
   VERY NARROW PHONES
   ========================================= */

@media (max-width: 380px) {

    .lab-history-page {
        padding: 10px;
    }

    .lab-latest-card {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
        padding: 15px 5px;
    }

    .lab-latest-date {
        font-size: 11px;
    }

    .lab-result-number {
        font-size: 26px;
    }

    .lab-latest-status .lab-status {
        padding: 7px 8px;
        font-size: 11px;
    }

    .lab-history-card {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 0.65fr);
        padding: 13px 5px;
        gap: 4px;
    }

    .lab-history-number {
        font-size: 17px;
    }

    .lab-history-card .lab-status {
        padding: 6px 7px;
        font-size: 11px;
    }

    .lab-normal-pill {
        padding: 7px;
        font-size: 11px;
    }

    .lab-history-date {
        font-size: 13px;
    }

        .lab-history-date .lab-calendar-icon {
            font-size: 17px;
        }

    .lab-page-title {
        font-size: 17px;
    }
}


/* ===================================================
                    
                    EhrRecordsComponent

   ================================================= */


.ehr-records-page {
    direction: rtl;
    width: 100%;
    min-height: 100%;
    padding: 12px;
    background: #f5f8fb;
    color: #263746;
    font-family: inherit;
    box-sizing: border-box;
}

.ehr-records-page *,
.ehr-records-page *::before,
.ehr-records-page *::after {
    box-sizing: border-box;
}


/* هدر پروفایل */
.ehr-profile-header {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
}

.ehr-profile-info {
    display: flex;
    direction: rtl;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.ehr-profile-avatar {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e7edf4;
}

.ehr-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf3fa;
    color: #52749b;
    font-size: 22px;
}

.ehr-profile-details {
    min-width: 0;
    text-align: right;
}

    .ehr-profile-details h2 {
        margin: 0 0 5px;
        color: #273b50;
        font-size: 16px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

.ehr-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #8190a0;
    font-size: 11px;
}

.ehr-meta-dot {
    color: #b2bdc9;
}

/* منوی زیر پروفایل */
.ehr-profile-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 5px 5px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
}

.ehr-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 5px 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--gray-color);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    width:100%;
}

    .ehr-menu-item i {
        font-size: 17px;
        color: var(--gray-color);
        line-height: 0;
    }

    .ehr-menu-item:hover {
        background: var(--lightgray-color);
    }

.ehr-menu-more-wrapper {
    position: relative;
    min-width: 0;
    justify-items: center;
}

.ehr-more-dropdown {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    min-width: 130px;
    padding: 5px;
    background: #fff;
    border: 1px solid #e4ebf2;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(30, 50, 70, .12);
}

    .ehr-more-dropdown button {
        width: 100%;
        padding: 10px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #33465a;
        font-family: inherit;
        font-size: 12px;
        text-align: right;
        cursor: pointer;
    }

        .ehr-more-dropdown button:hover {
            background: #f2f6fa;
        }

/* علائم حیاتی: همیشه دقیقاً سه ستون */
.ehr-vitals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    direction: rtl;
}

.ehr-vital-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 12px 9px;
    gap: 7px;
    text-align: right;
}

    .ehr-vital-label,
    .ehr-vital-card strong,
    .ehr-vital-card small {
        width: 100%;
        text-align: right;
        overflow-wrap: anywhere;
    }

.ehr-vital-label {
    font-size: 10px;
}

.ehr-vital-card strong {
    font-size: clamp(11px, 2.8vw, 16px);
}

.ehr-vital-card small {
    font-size: 9px;
}

@media (max-width: 480px) {
    .ehr-profile-header {
        padding: 12px 9px;
        gap: 7px;
    }

    .ehr-profile-info {
        gap: 8px;
    }

    .ehr-profile-avatar {
        width: 44px;
        height: 44px;
    }

    .ehr-profile-details h2 {
        font-size: 13px;
    }

    .ehr-profile-meta {
        font-size: 9px;
        gap: 4px;
    }

    .ehr-profile-header .ehr-mobile-back {
        padding: 8px 7px;
        gap: 5px;
        font-size: 11px;
    }

    .ehr-vitals-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .ehr-vital-card {
        padding: 9px 6px;
        gap: 6px;
    }

    .ehr-vital-icon {
        width: 25px;
        height: 25px;
    }

    .ehr-vital-label {
        font-size: 9px;
        line-height: 1.7;
    }

    .ehr-vital-card small {
        font-size: 8px;
    }
}



.ehr-records-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.ehr-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #376da8;
    font-size: 14px;
    padding: 8px 4px 14px;
    cursor: pointer;
}

.ehr-record-section {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(36, 61, 86, 0.035);
    min-width: 0;
}

.ehr-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ehr-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

    .ehr-section-title h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.8;
        color: #24364a;
    }

.ehr-title-icon,
.ehr-record-icon,
.ehr-vital-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ehr-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 15px;
}

/*.ehr-count {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 12px;
    background: #edf3fa;
    color: #52749b;
    font-size: 11px;
}
*/
.ehr-view-all {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: var(--gray-color);
    font-size: 12px;
    cursor: pointer;
    padding: 5px 0;
}

.ehr-record-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-top: 1px solid #f0f3f7;
    min-width: 0;
}

.ehr-record-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 14px;
}

.ehr-record-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.ehr-record-name {
    width: 100%;
    color: #33465a;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ehr-record-detail {
    width: 100%;
    color: #8492a1;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.ehr-status {
    flex-shrink: 0;
    border-radius: 20px;
    background: #e2f5ef;
    color: #25856d;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 600;
}

    .ehr-status.risk {
        background: #fff0e6;
        color: #c36d32;
    }

.ehr-vitals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.ehr-vital-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid #edf1f6;
    border-radius: 13px;
    background: #fbfcfe;
}

.ehr-vital-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 13px;
}

.ehr-vital-label {
    color: #718094;
    font-size: 11px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.ehr-vital-card strong {
    color: #273b50;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.ehr-vital-card small {
    color: #98a3b0;
    font-size: 10px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.ehr-empty {
    border-top: 1px solid #f0f3f7;
    padding: 18px 4px 6px;
    color: #8795a5;
    font-size: 12px;
    text-align: center;
}

.blue {
    color: #347bbd;
    background: #e9f3ff;
}
.gray {
    color: var(--gray-color);
    background: var(--lightgray-color);
}
.purple {
    color: #7766c4;
    background: #f0edff;
}

.red {
    color: #d85e70;
    background: #fff0f2;
}

.green {
    color: #29977b;
    background: #e6f7f1;
}

.orange {
    color: #c67b38;
    background: #fff2e5;
}

@media (min-width: 768px) {
    .ehr-records-page {
        padding: 20px;
    }

    .ehr-record-section {
        padding: 20px;
        margin-bottom: 18px;
    }

    .ehr-section-title h3 {
        font-size: 16px;
    }

    .ehr-vitals-grid {
        gap: 14px;
    }

    .ehr-vital-card {
        padding: 16px;
    }
}

@media (max-width: 380px) {
    .ehr-records-page {
        padding: 8px;
    }

    .ehr-record-section {
        padding: 12px;
    }

    .ehr-vitals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ehr-section-title {
        gap: 6px;
    }

        .ehr-section-title h3 {
            font-size: 13px;
        }

    .ehr-status {
        padding: 4px 6px;
        font-size: 9px;
    }
}

