﻿


.radius-top {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.radius-bottom {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.bg-blue {
    background: var(--color-secondary-2);
    color: var(--color-primary);
    padding: 5px;
    position: relative;
}

.menu-label {
    color: var(--color-primary);
    position: absolute;
    font-weight: 600;
    bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

.icon-circle-1 {
    background: var(--color-white);
    border-radius: 50%;
    padding: 5px;
    width: 35px;
    height: 35px;
}

.icon-menu {
    width: 53px;
    height: 53px;
    border-radius: 50%;
    box-shadow: 2px 0px 20px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.icon-svg {
    padding: 12px;
}

.img-doc {
    width: 80px;
    height: 80px;
    background-size: cover;
    border-radius: 50%;
}

.box-myapp {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.label-title {
    padding: 10px 15px 0;
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 600;
}

.label-docname {
    font-size: 16px;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label-time img {
    margin-right: 5px;
    width: 16px;
}

.box-queue {
    width: 100%;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 14px;
}

    .box-queue .label-queue-head {
        font-size: 0.8em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .box-queue .label-queue {
        font-size: 1.5em;
        font-weight: 600;
    }

.label-head {
    font-size: 1.3em;
    color: var(--color-primary);
    font-weight: 600;
}

.label-deptname {
    font-size: 14px;
    color: var(--color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label-time {
    font-size: 10px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    background: #F2F5FC;
    padding: 5px 10px;
    border-radius: 14px;
}

.label-secondary {
    font-size: 1.1em;
    color: var(--color-primary);
}

.btn-height-1 {
    height: 95px;
}

.btn-height-2 {
    height: 105px;
}

.btn-height-3 {
    height: 50px;
}

.btn-height-4 {
    height: 160px;
}

.img-menu {
    position: absolute;
    right: 0;
    bottom: 0;
}

.w-60p {
    width: 60%;
}

.w-45p {
    width: 45%;
}

.boxmenu h5 {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid lightgrey;
    line-height: 0.1em;
    margin: 10px 5px;
    color: var(--color-primary);
    font-weight: 600;
}

    .boxmenu h5 span {
        background-color: white;
        padding: 0 15px;
    }

#boxsubview {
    max-width: 380px;
    margin: auto;
}

    #boxsubview > div:not(.nobg) {
        background: #ffffff;
        padding: 15px;
        border-radius: 14px;
        margin-top: 1rem;
        box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
    }

    #boxsubview .reminder-title {
        text-align: center;
        font-size: 1.1em;
        margin-top: 10px;
    }

    #boxsubview table {
        display: contents;
    }

    #boxsubview .tbstyle-left img {
        width: auto;
    }

.btnFilter {
    background: #D9D9D9;
    border-radius: 20px;
    color: #ffffff;
    padding: 5px 20px;
}


    .btnFilter.active {
        background: var(--color-primary);
    }


#boxVisitHistory h5 {
    font-weight: 600;
    color: var(--color-primary);
}

#boxVisitHistory i {
    background: lightgray;
    color: #ffffff;
    border-radius: 50%;
    text-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
    cursor: pointer;
}



#labelDataMax {
    background: #E34017;
    border-radius: 14px;
    padding: 2px 10px;
    width: 50px;
    display: inline-block;
    text-align: center;
    font-size: 0.8em;
}

#labelDataMin {
    background: #009C41;
    border-radius: 14px;
    padding: 2px 10px;
    width: 50px;
    display: inline-block;
    text-align: center;
    font-size: 0.8em;
}

.lblqueue {
    position: absolute;
    bottom: 10px;
}

.mnu-recommend {
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 2px;
    color: var(--color-primary);
}

.mnu-recommend-text {
    line-height: 1em;
    font-size: 0.8em;
    margin-top: 10px;
}

.mnu-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #EDE8E1;
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 2px;
    margin: auto;
}

.col-mnu {
    opacity: 0.5;
}

    .col-mnu.active {
        opacity: 1;
    }

#boxfirstapp {
    position: relative;
}

.boxAllergy {
    background: #f9eff1 !important;
}

    .boxAllergy .boxAllergyHead {
        background: #f6b3bf;
        padding: 8px 10px;
        border-top-left-radius: 14px;
        font-size: 1em;
        font-weight: 600;
        color: white;
        margin: -15px -15px 10px -15px;
        border-top-right-radius: 14px;
    }

.floating-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.floating-menu {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 180px;
}

.menu-item {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #007bff;
}

    .menu-item:hover {
        background-color: #f0f0f0;
    }

.progress-container {
    position: relative;
    width: 100%;
    margin: 30px auto 20px;
}

.triangle-pointer {
    position: absolute;
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #007bff; /* สีของสามเหลี่ยม */
    z-index: 10;
    transition: left 0.2s ease-in-out; /* นุ่มนวล */
}

.progress-bar-container {
    display: flex;
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
    position: relative;
}

.progress-segment {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.progress-label {
    position: absolute;
    top: -15px;
    color: #000;
    font-size: 12px;
    z-index: 1;
    text-align: center;
    right: -10px;
}

.progress-segment:nth-child(1) {
    background-color: var(--bar-color-blue);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.progress-segment:nth-child(2) {
    background-color: var(--bar-color-green);
}

.progress-segment:nth-child(3) {
    background-color: var(--bar-color-yellow);
}

.progress-segment:nth-child(4) {
    background-color: var(--bar-color-orange);
}

.progress-segment:nth-child(5) {
    background-color: var(--bar-color-red);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.boxPersonalHistory h6 {
    color: var(--primary);
}

.bar-color-blue {
    color: var(--bar-color-blue);
}

.bar-color-green {
    color: var(--bar-color-green);
}

.bar-color-yellow {
    color: var(--bar-color-yellow);
}

.bar-color-orange {
    color: var(--bar-color-orange);
}

.bar-color-red {
    color: var(--bar-color-red);
}

.progress-round-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.progress-round-right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.progress-segment.first {
    flex: 0 0 20%;
    background-color: var(--bar-color-blue);
}

.progress-segment.second {
    flex: 1;
    background-color: var(--bar-color-green);
}

.progress-segment.last {
    flex: 0 0 20%;
    background-color: var(--bar-color-red);
}

#table-clinical {
    overflow-x: scroll !important;
    overflow-y: auto;
    white-space: nowrap;
    border-radius: 14px;
    position: relative;
    max-height: 600px;
    scrollbar-width: auto;
    scrollbar-color: var(--color-secondary-2) #f1f1f1;
}

    #table-clinical .table td,
    #table-clinical .table th {
        min-width: 120px;
        text-align: center;
    }

        #table-clinical .table td:first-child,
        #table-clinical .table th:first-child {
            position: sticky;
            left: 0;
            z-index: 1;
            background-color: white; /* ให้แน่ใจว่าไม่ถูกบดบัง */
        }

    #table-clinical .table thead th:first-child {
        background-color: var(--color-secondary-2);
    }

    #table-clinical .table thead th:first-child {
        z-index: 99;
    }

    #table-clinical .table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: var(--color-secondary-2);
        text-align: center;
    }

    #table-clinical::-webkit-scrollbar {
        height: 20px;
        width: 10px;
    }

    #table-clinical::-webkit-scrollbar-thumb {
        background: var(--color-secondary-2);
        border-radius: 10px;
    }

    #table-clinical::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

 
.btn-back {
    z-index: 99;
}


