﻿.dicom {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row-reverse;
    background-color: #000;
}

.dicom-toolbar {
    width: calc(100% - 200px);
    height: 80px;
    display: flex;
    flex-direction: row-reverse;
    /*    align-items: center;*/
    justify-content: space-between;
    padding: 0px 15px;
    background-color: #202020;
    flex-direction: row;
}

.toolbar-list {
    /*    height: fit-content;
    display: flex;
    justify-content: flex-start;
    align-items: center;*/
    height: fit-content;
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    padding: 5px;
    flex-wrap: wrap;
    row-gap: 5px;
    align-self: center;
}

.toolbar-btn {
    padding: 0;
    width: 35px;
    height: 35px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #202020;
    border: none;
    border-radius: 5px;
    transition: .2s all ease-in-out
}

    .toolbar-btn svg {
        height: 100%
    }

    .toolbar-btn.active:not(.layout-container) {
        background-color: #daa520;
    }
/*    .toolbar-btn:hover:not(.layout-container) {
        border: 1px solid #fff;
        background-color: #000;
        color: #fff
    }*/
.wwwc-list {
    background-color: #202020;
    min-width: fit-content
}

.wwwc-item {
    cursor: pointer;
    color: #fff
}

    .wwwc-item:hover {
        background-color: #daa520
    }

.dicom-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: absolute;
    top: 80px;
    left: 200px;
    width: calc(100% - 200px);
    height: calc(100% - 85px);
}

.dicom-frame {
    overflow: hidden;
    border: 1px solid #c5c5c5;
    justify-content: center;
}

.loading-frame {
    overflow: hidden;
    border: 1px solid #c5c5c5;
    opacity: 0;
}

.loading-badge {
    /*  display :none ;*/
    opacity: 1;
    height: 50px;
    position: absolute;
    top: 15px;
    right: 16px;
    aspect-ratio: 1 / 1 !important;
    background-color: #000000;
    color: white;
    border-radius: 50%;
}

.loading-inner {
    height: 100%;
    width: 100%;
    position: relative;
}

.loading-spin {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    border: 5px solid #3b3b3b;
    border-top: 5px solid #daa520;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    position: absolute;
    text-align: center;
    top: 15px;
    font-size: 13px;
    width: 100%
}

.dicom-container .active {
    border: 2px solid #daa520;
}

.top-left-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 15px;
    left: 15px;
}

.PatientName {
    font-size: 25px;
}

.bottom-left-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.top-right-details {
    /*display: flex;*/
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 15px;
    right: 15px;
}

.right-details {
    position: absolute;
    right: 30px;
    top: 50%;
    z-index: 10
}

.range-slider {
    display: none;
    outline: none;
    -webkit-appearance: none;
    position: absolute;
    width: 402.5px;
    height: 2px;
    transform: translate(-50%, -50%) rotate(90deg);
    background-color: #fff;
    z-index: 10
}

    .range-slider::-webkit-slider-thumb {
        cursor: grab;
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 28px;
        border-radius: 2px;
        background-color: #daa520
    }

.bottom-right-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.bottom-center-details {
    position: absolute;
    bottom: 5px;
    transform: translateX(-160px);
    left: 50%;
    z-index: 10;
}

.dicom-wrapper:hover .cine-controls {
    opacity: 1;
}

/*برای Cine Loop*/
.cine-controls {
    /*    display: flex;*/
    display: none;
    gap: 10px;
    align-items: center;
    padding: 10px 15px;
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    opacity: 0;
    transition: all ease-out 0.75s;
}

    .cine-controls button,
    .cine-controls input {
        padding: 5px 15px;
        border: none;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
    }

        .cine-controls button:hover,
        .cine-controls input:hover {
            background: rgba(255, 255, 255, 0.5);
        }

.cine-fps-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    overflow: hidden;
}

    .cine-fps-wrapper input {
        width: 50px;
        border: none;
        outline: none;
        background: transparent;
        color: #fff;
        text-align: center;
        font-weight: bold;
        padding: 8px;
    }

.cine-fps-buttons {
    display: flex;
    flex-direction: column;
}

    .cine-fps-buttons button {
        background: rgba(255,255,255,0.1);
        border: none;
        color: #fff;
        cursor: pointer;
        font-size: 12px;
        line-height: 1;
        padding: 4px;
        transition: background 0.2s;
    }

        .cine-fps-buttons button:hover {
            background: rgba(255,255,255,0.3);
        }

.cine-fps-wrapper input::-webkit-outer-spin-button,
.cine-fps-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* برای فایرفاکس */
.cine-fps-wrapper input[type=number] {
    -moz-appearance: textfield;
}
/**/
.dicom-tumbnail {
    width: 200px;
    min-height: 100%;
    position: relative;
    background-color: #202020;
    display: flex;
    /*overflow: auto;*/
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 5px;
    overflow: hidden;
}

.tumbnail-header {
    width: 200px;
    position: fixed;
    left: 0;
    padding: 0 5px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    min-height: 55px;
    direction: rtl;
}

.chevron-down {
    transition: all .5s linear
}

.chevron-spin {
    transform: rotateZ(180deg);
    transition: all .5s linear
}

.tumbnail-logo {
    height: 45px;
    margin-left: 5px;
    width: 45px;
    object-fit: contain;
}

.tumbnail-clinicName {
    font-size: 12px;
    font-family: iransans;
    color: #fff;
    line-height: 18px;
    margin: 0;
    font-weight: 400;
    padding: 3px;
}

.tumbnail-study-list {
    position: absolute;
    font-family: Arial;
    top: 70px;
    height: calc(100% - 70px);
    width: 95%;
    overflow-y: scroll;
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

    .tumbnail-study-list ::-webkit-scrollbar {
        display: none
    }

.tumbnail-study {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: #3d3d3d;
}

.tumbnail-study-header {
    background-color: #e2e2e2;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tumbnail-study-name {
    font-size: 16px;
    text-transform: capitalize;
    margin: 0;
    font-weight: 400
}


.dicom-tumbnail .active {
    border: 1px solid #daa520
}

.dicom-tumbnail .tumbnail-study-body .active p {
    color: #daa520
}

.tumbnail-study-body {
    width: 100%;
}

.tumbnail-item {
    position: relative;
    height: 80px;
    border: 1px solid #202020;
    cursor: pointer;
    margin: 5px;
    background-color: #000;
    display: flex;
}

.tumbnail-image {
    width: 40%;
    height: 100%;
    object-fit: contain;
}

.tumbnail-item-detail {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    padding-left: 10px;
    overflow-x: hidden;
}

    .tumbnail-item-detail p {
        font-size: 10px;
        color: #fff;
        font-weight: 600;
        margin: 0;
    }

.tumbnail-serie {
    font-size: 12px !important;
}

.layout-container {
    position: relative
}

/*    .layout-container:hover .layout-selector-table {
        display: flex !important;
    }*/

.layout-selector-table {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 35px;
    left: -6px;
    z-index: 1000;
    margin: 5px;
    width: 100px;
    height: 100px;
    background-color: #202020;
    /*border : 1px solid #c3c3c3*/
}

.layout-item {
    /*    width : 10px ;
    height : 10px ;*/
    width: 25px;
    height: 25px;
    border: 1px solid #c3c3c3;
}

.hovered {
    background-color: #daa520;
    /*border-color: #367be1*/
}

.downloadDropDown {
    background: #202020;
    /*min-width: 130px;*/
    height: auto;
    z-index: 999;
    position: absolute;
    top: 45px;
    right: 0;
    display: none;
}

    .downloadDropDown .lists {
        list-style: none;
        /*        direction: rtl;*/
        padding: 0;
        margin: 0;
    }

        .downloadDropDown .lists svg {
            width: 23px;
            height: 23px;
        }

        .downloadDropDown .lists li {
            width: 180px;
            white-space: nowrap;
            padding: 7px 5px 0px 5px;
            /*            border: 1px solid lightgray;*/
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
        }

            .downloadDropDown .lists li:hover {
                background: #daa520;
            }

            .downloadDropDown .lists li span {
                width: fit-content;
                background: transparent;
                color: #fff;
                aspect-ratio: auto;
                align-items: baseline;
            }

.wwwc-group {
    width: 50px !important;
}
/*مربوط به اسکات */
#publicModal .modal-body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow: auto;
    justify-content: flex-start;
    flex: unset;
}

    #publicModal .modal-body .tumbnail-item {
        width: 45%;
    }

.floating-window {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25%;
    height: 20%;
    background: #0e151a;
    border: 1px solid #666;
    border-radius: 6px;
    z-index: 9999;
    display: none;
}

.floating-header {
    height: 40px;
    background: #1c242b;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    cursor: move;
}

.floating-body {
    /*    height: calc(100% - 40px);*/
    height: 100%;
}

.floating-header {
    cursor: move;
    user-select: none;
}

#scoutWindow {
    position: fixed; /* یا  absolute */
    right: 0px; /* مقدار اولیه */
    top: 0px; /* مقدار اولیه */
    cursor: move; /* اختیاری: نشانگر حرکت */
    z-index: 1054;
}
/*مربوط به اسکات پایان*/

@media (max-width : 992px) {
    .dicom-container {
        width: 100%;
        height: calc(100% - 135px);
        left: 0;
        top: unset !important;
        bottom: 0px !important;
    }

    .patient-info {
        font-size: 14px;
    }

    .PatientName {
        font-size: 16px;
        max-width: 210px;
        margin-bottom: 3px
    }

    .range-slider {
        width: 260px
    }

    .bottom-right-details {
        left: auto;
        right: 15px;
        bottom: 5px;
    }

    .bottom-left-details {
        bottom: 5px
    }

    .dicom-tumbnail {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 10;
        width: 0px;
        padding: 0;
        overflow: visible;
        transition: .5s all ease-in-out;
    }

    .sidenav-btn {
        position: absolute;
        right: -50px;
        top: 5px;
        width: 50px;
        height: 45px;
        border: 0;
        border-radius: 0 5px 5px 0;
        background-color: #daa520;
        color: #000;
        align-items: center;
        justify-content: center;
    }

    .tumbnail-header {
        position: static;
        padding: 5px;
        height: fit-content;
        align-items: center;
        justify-content: flex-start;
        width: calc(100% - 70px )
    }

    .tumbnail-study-name {
        white-space: nowrap
    }

    .tumbnail-item {
        width: 180px
    }

    .dicom-toolbar {
        width: 100%;
        position: fixed;
        top: 56px;
        z-index: 10;
        padding: 7px 5px;
    }

    .toolbar-list {
        height: fit-content;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin: 0 auto;
        padding: 0px 5px;
        align-content: center;
        align-self: center;
    }

    .toolbar-btn {
        height: 100%;
        /*width : 100% ;*/
        min-height: 30px;
        aspect-ratio: 1/1
    }

    .wwwc-list {
        background-color: #202020;
        min-width: fit-content
    }

    .wwwc-item {
        font-size: 13px;
        color: #fff
    }
}

/*1403/10/29  حقوردی  */
.downloadDicomLoader {
    width: 25px;
    position: absolute;
    top: 4px;
    left: 5px;
}


.downloadDropDown .lists li .serieName {
    font-size: small;
}

@media (max-width: 576px) {
    .downloadDropDown {
        position: fixed !important;
        top: 145px;
        left: 0;
        right: 0;
        width: 75%;
        border-radius: 8px 8px 0 0;
        border: 1px solid #3b3b3b;
        border-radius: 0
    }

        .downloadDropDown .lists li {
            width: 100%;
            gap: 10px;
        }

    .floating-window {
        width: 45%;
        height: 30%;
    }
}

@media (max-width: 455px) {
    .dicom-container {
        height: calc(100% - 150px);
    }

    .toolbar-list {
        width: 100%;
        justify-content: start;
        flex-wrap: wrap;
        row-gap: 5px;
        align-self: auto
    }

    .dicom-toolbar {
        height: auto;
    }
}

@media (max-height: 455px) {
    .dicom-container {
        height: calc(100% - 110px);
    }

    .toolbar-list {
        width: 100%;
        justify-content: start;
        flex-wrap: wrap;
        row-gap: 5px;
    }

    .dicom-toolbar {
        height: auto
    }
}
