.container-btn {
    position: absolute;
    top: 3px;
    left: calc(100% / 2 - 20px);
    text-align: center;
    vertical-align: top;
    margin: 3px auto 0px auto;
    z-index: 800;
}

.favorite-img {
    position: absolute;
    top: 3px;
    left: calc(100% / 2 + 30px);
    text-align: center;
    vertical-align: top;
    margin: 3px auto 0px auto;
    z-index: 901;
    opacity: 0.5;
}
.dot-parent {
    position: absolute;
    left: 2.8em;
    top: 0.6em;
}

.dot {
    height: 0.6em;
    width: 0.6em;
    background-color: grey;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
}
.controls {
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px;
    display: flex;
    position: absolute;
    bottom: 3px;
    left: calc(100% / 2);
    text-align: center;
    vertical-align: bottom;
    margin: 3px auto 0px auto;
    z-index: 9901;
    outline-color:white;
}

    .controls button {
        margin: 0 5px;
        padding: 0px 0px;
        font-size: 10px;
    }
    .controls input {
        margin: 0 3px;
        padding: 2px 0px;
        font-size: 10px;
    }
.video-nav {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: calc(100% / 2 - 50px);
    text-align: center;
    vertical-align: top;
    margin: 3px;
    z-index: 9901;
    opacity: 0.6;
    font-size: 10px;
}
    .video-nav .btn {
        margin: 0 1px;
        padding: 0px 0px;
        font-size: 10px;
        gap: 3px;
        color: #BFB7BF;
        font-weight: 800;
    }
    .video-nav .active {
        color: white;
    }
    .video-nav input {
        margin: 0 5px;
        padding: 0px 0px;
        font-size: 10px;
        background-color: #BFB7BF;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 20px; /* Adjust height as needed */
        border: none;
        cursor: pointer;
    }
        .video-nav .btn:hover {
            color:HighlightText;
        }
        .video-nav input:hover {
            background-color: white;
        }
    .video-nav:hover {
        opacity: 0.8;
    }

    .pat-button {
    width: 3.5em;
    height: 3.5em;
    border-radius: 0.6em;
    background-color: var(--dark);
    margin: 0.2em;
    display: flex;
    justify-content: center;
    align-items: center;
}
.top-mark {
    position: absolute;
    top: 26px;
    left: calc(100% / 2 - 10px);
    text-align: center;
    vertical-align: top;
    margin: 3px auto 0px auto;
    z-index: 100;
    opacity: 1;
}

.bottom-mark {
    position: absolute;
    bottom: 3px;
    left: calc(100% / 2 - 10px);
    text-align: center;
    vertical-align: bottom;
    margin: 3px auto 0px auto;
    z-index: 900;
    opacity: 1;
}

.left-mark {
    position: absolute;
    top: calc(100% / 2 - 10px);
    left: 5px;
    text-align: left;
    vertical-align: middle;
    margin: 3px auto 0px auto;
    z-index: 900;
    opacity: 1;
}

.right-mark {
    position: absolute;
    top: calc(100% / 2 - 10px);
    right: 23px;
    text-align: right;
    vertical-align: middle;
    margin: 3px auto 0px auto;
    z-index: 900;
    opacity: 1;
}

/*    .pat-button *{
        justify-items:center;
    }*/

    .pat-button:hover {
        background-color: var(--menu-hover)
    }

body {
    background-color: var(--dark);
    /*#102033;*/
    font-family: ExoRegular, Sans-serif;
    overflow: clip;
    height: 100%;
    margin: 0;
}

tr.table-head {
    background-color: var(--dark);
    padding-right: 1px;
    color: var(--text-idle);
    font-size: 14px;
    text-transform: uppercase;
}

.modal-content {
    background-color: var(--dark) !important;
}
.modal-content-light {
    background-color: var(--dlg-light) !important;
}
.modal-content-reg {
    background-color: #404a5a!important;
    color: white;
}
.modal-dialog-reg .btn-primary {
    background-color: #4a4a57 !important;
    border-color:white !important;
}
.modal-dialog-reg .fc-header-toolbar {
    padding-top: 5px;
}
.modal-dialog-reg .table {
    border-collapse: separate !important;
    border-spacing: 0 0.5em !important;
}

.modal-dialog-reg .table th, td {
    vertical-align: middle !important;
}

.modal-dialog-reg .fc-day-header {
    background-color: #8ea1b4 !important;
}
/*.modal-dialog-reg .fc-time {
    background-color: ##8ea1b4 !important;
}*/
.modal-dialog-reg .fc-axis {
    background-color: #8ea1b4 !important;
}
.calendar table td {
    background-color: #f0f5ff;
    /*color: #333333;*/
}
.modal-dialog-reg .table tbody tr:hover {
    background-color: red !important;
    /* color: #333333;*/
}
.calendar table thead td {
    background-color: #8C8B9D;
    color: #ffffff;
}
.calendar .fc-axis {
    background-color: #8C8B9D;
    color: #ffffff;
}

.calendar td:first-child {
    border-top-left-radius: 0em !important;
    border-bottom-left-radius: 0em !important;
}
.calendar td:last-child {
    border-top-right-radius: 0em;
    border-bottom-right-radius: 0em;
}

.fc-view-agenda-view table.table-bordered tbody tr:hover {
    background-color: red;
}
/*.calendar table td {
    border-color: gray;
    border-bottom-color: gray;
}*/
.editPatient.btn-link {
    color: #ff9900;

}

.editPatient.btn-link:hover {
    color: #ca7700;
}


.calendar .fc-nonbusiness {
    /* default look for non-business-hours areas */
    /* will inherit .fc-bgevent's styles */
    background: #c2c2c2;
}
/*.calendar .fc-bootstrap3 .fc-time-grid .fc-slats table, .fc-bootstrap4 .fc-time-grid .fc-slats table, .fc-time-grid .fc-slats .ui-widget-content {

    border-color: gray;
    border-bottom-color: gray;
    border-right-color: green !important;
}*/
.calendar .fc-daygrid-day-frame {
    border-color: red !important;
    border-left: 2px solid red !important; /* Left border */
    border-right: 2px solid red !important; /* Right border */
}
/*.calendar .fc-head-container > tr > td {
    background-color: #8C8B9D;
} 
*/
/*a {
    color: #2E3533;
}*/
.layout-container {
    display: grid;
    gap: 2em;
    width: 100vw;
    height: 100vh;
    grid-template-columns: 7em auto;
    border-radius: 1em;
    margin: 0.8em;
}

.main-right {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 10em);
    /*width:100%;*/
    background-color: var(--dark);
    color: var(--text);
    font-size: 1em;
    height:98vh;
}

    .main-right.scrollable {
        overflow-y: auto;
        width:auto;
        /*width: calc(100vw - 12em);*/
        padding-right:1em;
        min-width:400px
    }


.select2-search--dropdown {
    background-color: var(--menu);
}

.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
    background-color: var(--menu-hover);
    color: var(--text);
}

.nav-item > a > svg,
.nav-item > a > .ico,
.nav-item > .dropbtn > .ico {
    overflow: auto;
    width: var(--icon-size);
    height: var(--icon-size);
    margin-left: auto;
    margin-right: auto;
}

/* Single-color nav icons: the SVG is used only as a mask shape, painted with
   currentColor, so hover/active/theme changes repaint it for free — no separate
   light/dark or active/inactive icon files needed. */
.ico {
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
    background-color: currentColor;
    -webkit-mask: var(--ico) no-repeat center / contain;
    mask: var(--ico) no-repeat center / contain;
}

.nav-item.local > a > svg,
.nav-item.local > a > .ico {
    margin-right: 1em;
    margin-left:initial;
}

.nav-item.local a {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: fixed;
    
    min-width: 160px;
    
    border-radius: 1em;
    z-index: 10000;
    left: 8.5em;
}

    .dropdown-content > div {
        display: flex;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        border-radius: 1em;
        z-index: 10000;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--menu);
        margin-left: 0.5em;
    }

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown-content a.dropbtn {
        display: none;
    }

.dropdown-content a:hover {
            background-color: var(--menu-hover)
        }

.dropdown:hover .dropdown-content
 {
    display: flex;
}

.dropdown:hover .dropbtn {
    /*background-color: #3e8e41;*/
}

.dropdown-content .nav-item {
    width: 100%;
    border-radius: 1em;
}

.dropdown-content .nav-item.active{
    background-color:var(--yellow);

}

    .dropdown-content .nav-item:hover,
    .dropdown-content .nav-item:hover a{
        background-color: var(--menu-hover);
        color: var(--yellow-text);
        border-radius: 1em;
    }

    .main-navigation-top {
        width: 8em;
        height: calc(100vh - 2em);
        flex-direction: row;
        display: inline-flex;
        overflow-x: hidden;
        overflow-y: hidden;
    }
.main-navigation-vertical {
    width: 8em;
    background-color: var(--menu);
    height: 100%;
    display: inline-flex;
    gap: 0.1em;
    border-radius: 1em;
    flex-direction: column;
}

        .main-navigation-vertical > .nav-item {
            background-color: transparent;
            width: 8em;
            min-height: 6em;
            border-radius: 1em;
            margin: 0em;
            text-align: center;
            vertical-align: central;
            font-weight: 600;
            display: flex;
            align-items: center;
        }

        .main-navigation-vertical > .nav-item.separator {
            margin-top:auto;
        }
        .main-navigation-vertical > .nav-item:hover {
            background-color: var(--menu-hover);
        }

        .main-navigation-vertical > .nav-item.active {
            background-color: var(--yellow);
        }

            .main-navigation-vertical > .nav-item a,
            .main-navigation-vertical > .nav-item > div {
                color: var(--text-idle);
                margin: auto;
            }
            .main-navigation-vertical > .nav-item.active > a,
            .main-navigation-vertical > .nav-item.active > a:hover {
                color: var(--on-accent);
            }

            .main-navigation-vertical > .nav-item > a:hover,
            .main-navigation-vertical > .nav-item:hover > a,
            .main-navigation-vertical > .nav-item > div:hover {
                color: var(--yellow-text);
                text-decoration: none;
            }


            .main-navigation-vertical > .nav-item.active >a,
            .main-navigation-vertical > .nav-item.active > div:hover {
                color: var(--on-accent);
            }

            /* Dark theme: idle icons are white (labels keep --text-idle); hover/active keep their colours. */
            :root:not([data-theme="light"]) .main-navigation-vertical > .nav-item:not(.active):not(:hover) .ico {
                background-color: #ffffff;
            }

.page-heading {
    font-size: 3em;
    color: var(--text);
    display: inline-flex;
    flex-direction:row;
    border-bottom: 1px solid var(--text);
    /*width:calc(100% - 1em);*/
}

tr {
    border: none;
    width: 95%;
}

th {
    vertical-align:bottom;
    font-weight:normal;
}

td {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

table {
    border-collapse: separate;
    border-spacing: 0 0.6em !important;
}

table tbody tr {
    background-color: var(--menu);
}

/* Bootstrap 4.2 gave .table a dark text colour of its own, and .table-hover a dark one on hover;
   on this theme the text is the one of the page, as it was with 4.0. */
.table,
.table-hover > tbody > tr:hover {
    color: inherit;
}

td:first-child {
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
    padding-left:0.7em;
}

td:last-child {
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
    padding-right: 0.7em;
}

td > a {
    color: var(--yellow-text);
    font-weight:bold;
}

.card {
    background: var(--menu)
}

    .card .card-header {
        background-color: var(--menu-hover);
    }
    .card .card-header-admin {
        background-color: var(--bg-surface-alt);
    }

.patient-info {
    width: 100%;
    background-color: var(--menu);
    border-radius: 1em;
    margin: 0.2em;
    display: grid;
    /* The middle track must be flexible: as max-content it swallowed all the free width (the
       thumbnail row spans all three columns), leaving the name column at its minimum so a
       name wrapped onto two lines. Now the name column takes what its content needs. */
    grid-template-columns: auto 1fr auto;
    grid-gap: 0;
}

    .patient-info > * {
        margin: 0.5em;
    }

    .patient-info .name {
        text-align: left;
        grid-row: 1 / 3;
        align-self: center;
    }
    .patient-info .id {
        align-self: center;
        justify-self:right;
    }
.series-thumbnails > * {
    margin: 0.5em;
    min-width: 8em;
}
.series-thumbnails > .dcmSeries {
    width: 8em;
    height: 8em;
    border-radius: 1em;
    overflow:hidden;
}

    .series-thumbnails > .dcmSeries > img {
        width: 100%;
        height:100%;
    }

.series-thumbnails > .srSeries > img {
    width: 100%;
}

.series-thumbnails > .dcmSeries > dicom-overlay {
    margin: 0.4em;
}
#imageWrapper canvas,
#imageWrapper #cornerstone-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    margin: 0px;
}

/*.dataTables_length >label {
    font-weight:bold !important;
}*/
/*datatables length select*/
.dataTables_length > label > select, .dataTables_length > label > select:focus {
    background-color: var(--menu);
    border: 1px solid var(--border-control);
    color: var(--text);
}

/* Dark theme: Bootstrap's up/down arrow is dark grey (#343a40) and disappears on the dark
   select; draw it in the theme's text colour instead (a data URI cannot use var(--text)). */
:root:not([data-theme="light"]) .dataTables_length > label > select.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
}
/*datatables page navigation*/
.dataTables_paginate .pagination > li > a {
    background-color: var(--menu);
    border-color: var(--border);
    color: var(--text);
}

#searchFormFilters .form-control {
    border:0px;
}

#searchFormFilters input, #searchForm input,
#searchFormFilters .select2-selection, #searchForm .select2-selection {
    background-color: var(--menu);
    border: 0px;
    color: var(--text) !important;
}
.select2-container--bootstrap4 .select2-selection,
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice,
.select2-container--bootstrap4 .select2-selection__clear {
    color: #868e96;
}
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--dropdown-hover);
    color: var(--text);
}
.select2-container--bootstrap4 .select2-results__option {
    background-color: var(--dropdown-search);
    color: var(--text);
}
.select2-container--bootstrap4 .select2-dropdown {
    border: 1px solid var(--border);
}
.select2-container--bootstrap4 .select2-results__option[aria-selected="true"] {
    color: var(--yellow-text);
}
.select2-container--bootstrap4 .select2-selection--single {
    background-color: var(--menu);
    border: 0px;
}

/* Same fixed border AdminPanel leaves on its own select2 boxes (select2-bootstrap4.css's
   own #ced4da default) - a theme token here is too close to var(--menu) in light theme. */
.select2-theme + .select2-container--bootstrap4 .select2-selection--single {
    border: 1px solid #ced4da;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: var(--text);
}

.filter .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: var(--text);
}

/* Rows. DataTables 1.13 makes them transparent with a rule more specific than "table tbody tr" above. */
table.dataTable > tbody > tr {
    background-color: var(--menu);
}

/* The control that opens a row of a responsive table: a white caret that turns down once open.
   Responsive 2.5 calls the cell dtr-control (2.2 used the first cell, and .control for a column of
   its own) and an open row dtr-expanded (2.2: .parent), and draws a dark triangle of its own, which
   is hard to see on this background. Kept here, not in lib/datatables, so an update of the library
   does not take it away again. */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > td.control:before,
table.dataTable.dtr-column > tbody > tr > th.control:before {
    left: 15px;
    margin-top: -3px;
    width: 20px;
    position: absolute;
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.25rem;
    color: inherit;
    content: "\f0da"; /* caret-right */
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.dt-hasChild > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.dt-hasChild > th.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.dtr-expanded > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.dtr-expanded > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.dt-hasChild > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.dt-hasChild > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.dtr-expanded > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.dtr-expanded > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent td.control:before,
table.dataTable.dtr-column > tbody > tr.parent th.control:before {
    content: "\f0d7"; /* caret-down */
}

/* Remove DataTables' own sorting arrows: the sort_*.png at the left of the title is the marker.
   DataTables 1.13 draws them with "thead > tr > th.sorting:before", so these rules take the same
   path to win (this file loads after its stylesheet); "thead .sorting:before" no longer does. */
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_asc_disabled:before,
table.dataTable thead > tr > th.sorting_asc_disabled:after,
table.dataTable thead > tr > th.sorting_desc_disabled:before,
table.dataTable thead > tr > th.sorting_desc_disabled:after,
table.dataTable thead > tr > td.sorting:before,
table.dataTable thead > tr > td.sorting:after,
table.dataTable thead > tr > td.sorting_asc:before,
table.dataTable thead > tr > td.sorting_asc:after,
table.dataTable thead > tr > td.sorting_desc:before,
table.dataTable thead > tr > td.sorting_desc:after,
table.dataTable thead > tr > td.sorting_asc_disabled:before,
table.dataTable thead > tr > td.sorting_asc_disabled:after,
table.dataTable thead > tr > td.sorting_desc_disabled:before,
table.dataTable thead > tr > td.sorting_desc_disabled:after {
    display: none;
}

/* DataTables 1.13 leaves "sorting" on a sorted column as well, hence the doubled classes: the rules
   for an idle column below would win over these at equal specificity. */
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > td.sorting_asc,
table.dataTable thead > tr > td.sorting_desc,
table.dataTable thead > tr > th.sorting.sorting_asc,
table.dataTable thead > tr > th.sorting.sorting_desc,
table.dataTable thead > tr > td.sorting.sorting_asc,
table.dataTable thead > tr > td.sorting.sorting_desc {
    color: var(--text);
    font-size: 16px;
    font-style: italic;
    text-transform: uppercase;
    vertical-align: middle;
}

table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_disabled,
table.dataTable thead > tr > td.sorting {
    color: var(--text-idle);
    font-size: 16px;
    text-transform: uppercase;
    vertical-align: middle;
}


table.dataTable thead > tr > th {
    padding-left: 16px !important;
    padding-right: initial !important;
}

/* A column as narrow as its content (the 2FA column of Users). The cells of the other columns carry Bootstrap's
   col-* classes, and next to them a column with no percentage width of its own took all the width they left
   (571px of a 1747px table). DataTables' "width" option is no help: it reaches only the header, as pixels. */
table.dataTable th.col-fit,
table.dataTable td.col-fit {
    width: 1%;
    white-space: nowrap;
}


table.dataTable thead .sorting_asc,
table.dataTable thead .sorting.sorting_asc {
    background: url("../images/table/sort_asc.png") no-repeat center left;
}

table.dataTable thead .sorting_desc,
table.dataTable thead .sorting.sorting_desc {
    background: url("../images/table/sort_desc.png") no-repeat center left;
}

table.dataTable thead .sorting {
    background: url("../images/table/sort_both.png") no-repeat center left;
}

.page-item.disabled .page-link {
    background-color: var(--bg-input-disabled);
    border-color: var(--border);
    color: var(--text-idle);
}
.page-item.active .page-link {
    background-color: var(--yellow);
    border-color: var(--border);
    color: #2E3533;
}

.dataTables_filter input,
.dataTables_filter input:focus {
    background: var(--bg-input);
    border: 0px;
    color: var(--text);
}
.dataTables_wrapper {
    /*box-sizing: border-box;*/
}

.dataTables_processing {
    background: var(--bg-input-disabled);
    color: var(--text);
    border: 1px solid var(--text);
    border-radius: 5px;
    font-size: 1.1em;
    box-shadow: 0 0 20px rgba(128,128,128,0.5);
}

#table2_wrapper {
    height: 98%
}

a.white-link {
    color:white;
}
    a.white-link:hover {
        text-decoration:none;
    }



.customLook {
    --tag-bg: #0052BF;
    --tag-hover: #CE0078;
    --tag-text-color: #FFF;
    --tags-border-color: silver;
    --tag-border-radius: 25px;
    --tag-text-color--edit: #111;
    --tag-remove-bg: var(--tag-hover);
    --tag-pad: .6em 1em;
    --tag-inset-shadow-size: 1.35em;
    --tag-remove-btn-bg--hover: black;
    display: inline-block;
    min-width: 0;
    border: none;
}

    .customLook .tagify__tag {
        margin-top: 0;
    }

        /* Do not show the "remove tag" (x) button when only a single tag remains */
        .customLook .tagify__tag:only-of-type .tagify__tag__removeBtn {
            display: none;
        }

    .customLook .tagify__tag__removeBtn {
        opacity: 0;
        transform: translateX(-6px) scale(.5);
        margin-left: -3ch;
        transition: .12s;
    }

    .customLook .tagify__tag:hover .tagify__tag__removeBtn {
        transform: none;
        opacity: 1;
        margin-left: -1ch;
    }

    .customLook + button {
        color: #0052BF;
        font: bold 1.4em/1.65 Arial;
        border: 0;
        background: none;
        box-shadow: 0 0 0 2px inset currentColor;
        border-radius: 50%;
        width: 1.65em;
        height: 1.65em;
        cursor: pointer;
        outline: none;
        transition: .1s ease-out;
        margin: 0 0 0 5px;
        vertical-align: top;
    }

        .customLook + button:hover {
            box-shadow: 0 0 0 5px inset currentColor;
        }

    .customLook .tagify__input {
        display: none;
    }

/*old styles below*/
    nav .navbar {
    margin-bottom: 1rem;
}

.viewer-left {
    width: 100%;
    float: left;
    background-color: #efeded;
    margin-bottom: 4px;
    padding: 7px 10px 0px 10px;
}

#assignmentsContainer {
    overflow-y: auto;
    overflow-x: hidden;
}


#gridSettings {
    padding-bottom: 6px;
}

.viewer-right {
    width: 100%;
    padding: 0px 5px 0px 5px;
}

.cornerstone-enabled-image {
    height: calc(100%-66px);
    color: #fc0;
    font-weight: bold;
    position: relative;
    margin: 1px;
    text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
}

.dicom-image-holder {
    border: 2px solid #aaa;
    height: 100%;
    width:100%;
}

    .dicom-image-holder:hover, .dicom-image-holder:focus {
        border: 2px solid green;
    }


.series-scroll {
    padding-left: 2px;
    padding-right: 2px;
}

@media screen and (min-width: 750px) {
    .viewer-left {
        width: 180px;
    }

    .viewer-right {
        width: calc(100% - 180px);
    }

    .cornerstone-enabled-image {
        float: left;
    }
}

.DICOMSeries {
    color: #3B4C56;
    font-size: 12px;
}

    .DICOMSeries > div {
        width: 64px;
        height: 64px;
        margin: 3px 2px 3px 2px;
        display: inline-block;
    }

        .DICOMSeries > div > img {
            cursor: copy;
        }

            .DICOMSeries > div > img.check-doc,
            .DICOMSeries > div > img.check-sr,
            .DICOMSeries > div > img.check-ecg,
            .DICOMSeries > div > img.check-mp4 {
                cursor: pointer;
            }

.selectedDiv {
    border: 0.3em solid var(--yellow-text);
    border-radius: 1em;
}

.notselectedDiv {
    border: 0px;
}

#action_btns > .btn-group {
    margin-right: 1rem;
}

    #action_btns > .btn-group > button {
        outline: none;
    }

.annotationDialog, .relabelDialog {
    z-index: 1000;
    position: absolute;
    margin: 0px;
    left: 40%;
    top: 40%;
    width: 300px;
    border: 1px black solid;
    border-radius: 5px;
}

.annotationTextInputOptions {
    padding: 5px 0px;
}

.annotationTextInput {
    margin-left: 5px;
}

.annotationDialogConfirm {
    float: right;
}

.buttons-excel, .buttons-excel:hover {
    color: green;
}

.buttons-pdf, .buttons-pdf:hover {
    color: #d00;
}

.statistics-null {
    color: #d22;
}

.admin-panel-nav {
    text-align: center;
    padding-bottom: 6px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
}
.sr-content {
    background-color: var(--dark);
}
.sr-content > small > span.under {
    display: inline;
    font-weight: bold;
}

.sr-content > span.under {
    display: block;
    color: #666;
}

.sr-content > h1 {
    border-top: 1px solid #bbb;
    border-bottom: 1px solid #ddd;
    background-color: rgba(230,230,230,0.2);
}

.sr-content > div {
    padding: 5px;
    border-top: 1px solid #ddd;
    background-color: rgba(240,240,240,0.2);
}



.required-field {
    color: #FF0000;
    font-size: 13px;
    text-align: center;
    margin-bottom: 3px;
}

#table2 > thead {
    /*background-color: #efefff*/
}

#table2 > tbody {
    /*background-color: white;*/
}

 #cornerstone-wrapper .magnifyTool {
    border: 2px #5eb75d solid;
    box-shadow: 2px 2px 10px #1e1e1e;
    /*border-radius: 50%;*/
    width: 200px;
    height: 200px;
    display: none;
    cursor: none;
}

.grid-selector {
    display: none;
    position: absolute;
    padding: 5px;
    border: 1px solid #979797;
    background-color: #f6f6f6;
    box-shadow: 0px 0px 8px #666;
    z-index: 1000;
}

    .grid-selector .grid-selector-header {
        margin-bottom: 3px;
    }

    .grid-selector .grid-interactive {
        margin-bottom: 3px;
        width: 100px;
        display: block;
    }

        .grid-selector .grid-interactive .grid-cell {
            width: 24px;
            height: 24px;
            background-color: #868e96;
            border: 1px solid #686868;
            display: inline-block;
            padding: 0px;
            margin: 0px 1px 1px 0px;
            vertical-align: middle;
        }

.filters-selector {
    display: none;
    position: absolute;
    padding: 5px;
    border: 1px solid #979797;
    background-color: #fbfbfb;
    box-shadow: 0px 0px 8px #666;
    z-index: 1000;
}

    .filters-selector label {
        display: block;
    }

#overlay_checkboxes {
    max-height: 320px;
    overflow-y: scroll;
    margin-bottom: 5px;
    padding: 0px;
    font-size: small;
}

.select2-group-fix .select2-container--default .select2-selection--multiple {
    border-radius: 0px 4px 4px 0px;
}

.tooltipevent {
    max-width: 340px;
    padding: 4px;
    border: 1px solid #777;
    border-radius: 3px;
    font-size: small;
    background-color: rgba(250,250,250,0.8);
    position: absolute;
    z-index: 10001;
}

.scroll-lock {
    position: absolute;
    top: 3px;
    left: calc(100% / 2);
    text-align: center;
    vertical-align: top;
    margin: 3px auto 0px auto;
    z-index: 900;
    opacity: 0.5;
}

.select-contrast option:disabled {
    color: salmon;
}

.input-group-addon-select {
    background-color: white;
}

    .input-group-addon-select select {
        border-style: none;
        background-color: white;
    }

.input-group-fund {
    margin-bottom: 3px;
}

.nav-stacked {
    text-align: center;
}

.validation-message {
    color: #f33;
}
.dropdown-toggle-languege {
    color: #B7B7B7;
}
    .dropdown-toggle-languege:hover {
        color: var(--text);
        text-decoration:none;
    }
.language-nav-link {
    padding: 0.2rem 0.2rem;
}
.language-nav-item > a:after {
    color: var(--text-idle);
}
.language-dropdown-toggle {
    color: var(--text-idle);
}
.language-dropdown-menu {
    background-color: var(--menu);
    color: var(--text);
    border: 1px solid var(--border);
}
.language-dropdown-item {
    color: var(--text-idle);
}


    .language-dropdown-item:hover{
        background-color: var(--menu-hover);
    }

    .language-dropdown-item:focus {
        background-color: var(--menu-hover);
    }

/* Dark theme: the items of every .language-dropdown-menu (user menu, language menu, viewer print/download/assign)
   are white in their default state. Hover, focus, active and disabled keep the colours they had. */
:root:not([data-theme="light"]) .language-dropdown-menu .language-dropdown-item:not(:hover):not(:focus):not(:active):not(.active):not(.disabled) {
    color: var(--text);
}

/* Both themes: hovered items of those menus get the same colour as a hovered item of the main menu,
   --yellow-text (yellow in dark, dark gold in light). Focus, pressed, active and disabled keep the colours they had. */
.language-dropdown-menu .language-dropdown-item:hover:not(:active):not(.active):not(.disabled) {
    color: var(--yellow-text);
}

.study-menuItem {
    background-color: var(--menu);
    color: var(--text);
}

.study-dropdown-menu {
    background-color: var(--menu);
    color: var(--text);
}

.study-dropdown-item {
    color: var(--text-idle);
}


    .study-dropdown-item:hover {
        background-color: var(--menu-hover);
        color: var(--text);
    }

    .study-dropdown-item:focus {
        background-color: var(--menu-hover);
        color: var(--text);
    }

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        -webkit-border-radius: 0 6px 6px 6px;
        -moz-border-radius: 0 6px 6px;
        border-radius: 0 6px 6px 6px;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > a:after {
        display: block;
        content: " ";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #ccc;
        margin-top: 5px;
        margin-right: -10px;
    }

    .dropdown-submenu:hover > a:after {
        border-left-color: #fff;
    }

    .dropdown-submenu.pull-left {
        float: none;
    }

        .dropdown-submenu.pull-left > .dropdown-menu {
            left: -100%;
            margin-left: 10px;
            -webkit-border-radius: 6px 0 6px 6px;
            -moz-border-radius: 6px 0 6px 6px;
            border-radius: 6px 0 6px 6px;
        }

.col-actions {
    width: 100px;
}


.fc.fc-bootstrap4 a {
    text-decoration: none;
}

    .fc.fc-bootstrap4 a[data-goto]:hover {
        text-decoration: underline;
    }

.fc-bootstrap4 hr.fc-divider {
    border-color: inherit;
}

.fc-bootstrap4 .fc-today.alert {
    border-radius: 0;
}

.fc-bootstrap4 .fc-popover .panel-body {
    padding: 0; /* undo built-in padding */
}

.fc-bootstrap4 .fc-time-grid .fc-slats table {
    /* some themes have background color. see through to slats */
    background: none;
}

table.table-inline,
table.table-inline tr,
table.table-inline td {
    border-style: none;
}

    table.table-inline tr {
        border-bottom: 1px dashed #ddd;
    }

        table.table-inline tr:last-child {
            border-style: none;
        }

.routing-field {
    color: #0061E8;
}

.routing-condition {
    color: #06CF66;
}

.routing-value {
    color: #777;
    font-style: italic;
}

.upload-list-container {
    max-height: 28rem;
    overflow-y: scroll;
    font-size: small;
    border: 1px solid #ddd;
}

ul.upload-list {
    list-style-type: none;
    padding-left: 1rem;
}

    ul.upload-list .upload-list-filepath {
        color: #0061E8;
    }

    ul.upload-list .upload-list-filename {
        color: #06CF66;
    }

    ul.upload-list .upload-list-progress {
        color: #777
    }

    ul.upload-list .upload-list-btn-cancel {
        color: #dc3545
    }

.seriesThumbnail {
    /*for when we are dragging*/
    z-index: 10;
}

.imageControls {
    height: 100%;
    padding: 5px;
    position: absolute;
    right: 0;
    top: 0;
}

    .imageControls .scrollbar {
        height: calc(100% - 20px);
        margin-top: 5px;
        position: relative;
        width: 12px;
        z-index: 20;
    }

        .imageControls .scrollbar .imageSlider {
            height: 12px;
            left: 12px;
            padding: 0;
            position: absolute;
            top: 0;
            -webkit-appearance: none;
            background-color: rgba(0,0,0,0);
            transform: rotate(90deg);
            transform-origin: top left;
            pointer-events: auto;
        }

            .imageControls .scrollbar .imageSlider:focus {
                outline: none;
            }

            .imageControls .scrollbar .imageSlider::-moz-focus-outer {
                border: none;
            }

            .imageControls .scrollbar .imageSlider::-webkit-slider-runnable-track {
                background-color: rgba(0,0,0,0);
                border: none;
                cursor: pointer;
                height: 5px;
                z-index: 6;
            }

            .imageControls .scrollbar .imageSlider::-moz-range-track {
                background-color: rgba(0,0,0,0);
                border: none;
                cursor: pointer;
                height: 2px;
                z-index: 6;
            }

            .imageControls .scrollbar .imageSlider::-ms-track {
                animate: 0.2s;
                background: transparent;
                border: none;
                border-width: 15px 0;
                color: rgba(0,0,0,0);
                cursor: pointer;
                height: 12px;
                width: 100%;
            }

            .imageControls .scrollbar .imageSlider::-ms-fill-lower {
                background: rgba(0,0,0,0);
            }

            .imageControls .scrollbar .imageSlider::-ms-fill-upper {
                background: rgba(0,0,0,0);
            }

            .imageControls .scrollbar .imageSlider::-webkit-slider-thumb {
                -webkit-appearance: none !important;
                border: none;
                border-radius: 57px;
                cursor: -webkit-grab;
                height: 12px;
                margin-top: -4px;
                width: 39px;
                background-color: lightgrey;
            }

                .imageControls .scrollbar .imageSlider::-webkit-slider-thumb:active {
                    cursor: -webkit-grabbing;
                }

            .imageControls .scrollbar .imageSlider::-moz-range-thumb {
                border: none;
                border-radius: 57px;
                cursor: -moz-grab;
                height: 12px;
                width: 39px;
                z-index: 7;
                background-color: lightgrey;
            }

                .imageControls .scrollbar .imageSlider::-moz-range-thumb:active {
                    cursor: -moz-grabbing;
                }

            .imageControls .scrollbar .imageSlider::-ms-thumb {
                border: none;
                border-radius: 57px;
                cursor: ns-resize;
                height: 12px;
                width: 39px;
            }

            .imageControls .scrollbar .imageSlider::-ms-tooltip {
                display: none;
            }

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .imageSlider {
        left: 50px;
    }
}


.dicom-overlay {
    color: #fc0;
    font-weight: bold;
    text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
    pointer-events: none;
    z-index:4;
}

table + input.error {
    background-color: lightcoral;
}

dialog:not([open]) {
    display: none !important;
}
.nav-tabs-report {
  border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;

  .nav-item-report {
    color: sandybrown
      @include hover {
        color: $link-hover-color;
        text-decoration: $link-hover-decoration;
      }
  }

.svg-inline--fa {
    display: inline-block;
    font-size: inherit;
    height: 3em;
    overflow: visible;
    vertical-align: -1.1em;
}

.nav-link-report {
    border: 1px solid #97959e6b;
    color: #BFB7BF;
    font-weight: bold;
    padding: 0.0rem 0.8rem;
    /*        .nav-link-report:hover-focus {
            color: sandybrown;
        }*/
}

/* Hover color for nav-link-report items */
.nav-item-report .nav-link-report:hover {
    color: white; /* Change this to your desired hover color */
    font-weight: bold;
}
.nav-item-report .nav-link-report.active {
    color: black; /* Change this to your desired hover color */
}
  .nav-link-report.active,
  .nav-item-report.show .nav-link {
    color:black;
    background-color: $nav-tabs-link-active-bg;
    border-color: $nav-tabs-link-active-border-color;
  }
}

/* Light theme: match the active main-menu item's background color instead of white.
   Placed outside .nav-tabs-report - CSS nesting would otherwise turn :root into an
   unmatchable descendant of .nav-tabs-report. */
:root[data-theme="light"] .nav-item-report .nav-link-report:hover {
    color: var(--yellow);
}

/* Profile tabs (Areas/Identity/Pages/Account/Manage/_ManageNav.cshtml): the text and background colours of the
   main-menu items in every state, in both themes (the tokens switch with the theme):
   idle = --text-idle on the menu surface, hover = --yellow-text on --menu-hover, active = --on-accent on --yellow.
   Outside the nested .nav-tabs-report block above; scoped with .profile-tabs so the tabs of the other pages are untouched. */
.nav-tabs.nav-tabs-report.profile-tabs .nav-item-report .nav-link-report {
    color: var(--text-idle);
    background-color: var(--menu);
}

.nav-tabs.nav-tabs-report.profile-tabs .nav-item-report .nav-link-report:hover:not(.active) {
    color: var(--yellow-text);
    background-color: var(--menu-hover);
}

.nav-tabs.nav-tabs-report.profile-tabs .nav-item-report .nav-link-report.active {
    color: var(--on-accent);
    background-color: var(--yellow);
}

/* Tabs of the Users, Settings and consultant's shared studies pages, drawn as sc-pacs-server's admin section nav (.admin-nav and .admin-tab in
   AdminPanel/wwwroot/Content/admin.css), with its sizes and tokens: secondary text on the surface colour,
   the hover surface under a hovered tab, accent text over a 3px accent underline on the active one.
   The bar has all four corners rounded: here no header bar sits on top of it.
   Outside the nested .nav-tabs-report block and without its classes, so the tabs of the other pages stay as they are. */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--menu);
    border-radius: 1em;
    padding: 0 0.5rem;
    margin-bottom: 0.3em;
}

/* A button at the right end of the bar (Users: "New user"); on a narrow window it wraps under the tabs. */
.admin-nav .admin-nav-action {
    margin-left: auto;
}

/* The part of a page under its tab bar that scrolls, as AdminPanel's .admin-content: the page heading and
   the tab bar stay put. .main-right is a flex column of a fixed height that does not scroll itself, and this
   takes the height left. */
.admin-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* Only the vertical scroll: the DataTables .row's -15px margins stick 7px out of a p-2 card body, and that
       empty gutter would add a horizontal scrollbar. AdminPanel pads .admin-content by 1em instead, which here
       would pull the card in from the edges of the tab bar. */
    overflow-x: hidden;
}

.admin-nav .nav {
    align-items: stretch;
}

.admin-nav .nav-link.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    padding: 0.6rem 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    border: 0;
    /* Transparent rather than absent, so the active tab does not shift the row by 3px. */
    border-bottom: 3px solid transparent;
    border-radius: 0;
}

/* :focus-visible where AdminPanel has :focus: its tabs load another page, these stay on this one,
   and a clicked tab would keep the hover surface until the next click elsewhere. */
.admin-nav .nav-link.admin-tab:hover,
.admin-nav .nav-link.admin-tab:focus-visible {
    color: var(--text);
    background-color: var(--bg-surface-hover);
    text-decoration: none;
}

.admin-nav .nav-link.admin-tab.active {
    color: var(--yellow-text);
    border-bottom-color: var(--yellow);
}

/* The count on the active tab takes the accent too: the accent fill with the text painted on it,
   as on the active main-menu item. The other tabs keep Bootstrap's grey badge. */
.admin-nav .nav-link.admin-tab.active .badge {
    color: var(--on-accent);
    background-color: var(--yellow);
}

/* The side menu's ".nav-item > a > svg" (3em high, centred by auto margins) catches these icons as well:
   back to Font Awesome's own 1em. Its fa-w-* class already wins on the width. */
.admin-nav .nav-item > a.admin-tab > svg {
    height: 1em;
    margin: 0;
    overflow: visible;
}

.nav-tabs-settings {
    border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
    .nav-item-settings

{
    color: sandybrown @include hover

{
    color: $link-hover-color;
    text-decoration: $link-hover-decoration;
}

}

.nav-link-settings {
    color: #BFB7BF;
    font-weight: bold;
    /*        .nav-link-settings:hover-focus {
            color: sandybrown;
        }*/
}

/* Hover color for nav-link-settings items */
.nav-item-settings .nav-link-settings:hover {
    color: white; /* Change this to your desired hover color */
    font-weight: bold;
}

.nav-item-settings .nav-link-settings.active {
    color: black; /* Change this to your desired hover color */
}

.nav-link-settings.active,
.nav-item-settings.show .nav-link {
    color: black;
    background-color: $nav-tabs-link-active-bg;
    border-color: $nav-tabs-link-active-border-color;
}



}

/* Bootstrap's .btn-light/.btn-outline-light (near-white) are illegible against the app's own
   light-theme surfaces. In light theme only, repaint them with Bootstrap's exact .btn-primary/
   .btn-outline-primary colors - dark theme keeps the original Bootstrap look untouched. */
:root[data-theme="light"] .btn-light {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
:root[data-theme="light"] .btn-light:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}
:root[data-theme="light"] .btn-light:focus,
:root[data-theme="light"] .btn-light.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}
:root[data-theme="light"] .btn-light.disabled,
:root[data-theme="light"] .btn-light:disabled {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
:root[data-theme="light"] .btn-light:not(:disabled):not(.disabled):active,
:root[data-theme="light"] .btn-light:not(:disabled):not(.disabled).active,
:root[data-theme="light"] .show > .btn-light.dropdown-toggle {
    color: #fff;
    background-color: #0062cc;
    border-color: #005cbf;
}

:root[data-theme="light"] .btn-outline-light {
    color: #007bff;
    background-color: transparent;
    background-image: none;
    border-color: #007bff;
}
:root[data-theme="light"] .btn-outline-light:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
:root[data-theme="light"] .btn-outline-light:focus,
:root[data-theme="light"] .btn-outline-light.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}
:root[data-theme="light"] .btn-outline-light.disabled,
:root[data-theme="light"] .btn-outline-light:disabled {
    color: #007bff;
    background-color: transparent;
}
:root[data-theme="light"] .btn-outline-light:not(:disabled):not(.disabled):active,
:root[data-theme="light"] .btn-outline-light:not(:disabled):not(.disabled).active,
:root[data-theme="light"] .show > .btn-outline-light.dropdown-toggle {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

