/* AssetMapper app.css */

/*
fixes for tom-select.js (autocomplete component)
we have bootstrap 5.0 css, tom-select made with 5.3
these are missed variables for bs-5.3 compatibility
*/
:root,[data-bs-theme=light] {
    --bs-body-bg: #fff;
    --bs-body-color: #212529;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-width: 1px;
    --bs-secondary-bg: #e9ecef;
    --bs-tertiary-bg: #f8f9fa;
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-form-invalid-color: #dc3545;
    --bs-form-valid-color: #18d26b;
    --bs-theme-primary-success: #1dbfc1;
}
/* /tom-select end */


/* pagination fixes  */
.pagination {
    margin: 0;
}
/* public/assets/css/style.css:31455 */
.pagination li .page-link {
    /*padding: 1rem;*/
    padding: 0.375rem 0.75rem;
    min-width: 36px;
    text-align: center;
}
.page-item.disabled .page-link {
    border-color: transparent;
}
.page-item.active .page-link {
    background-color: var(--bs-theme-primary-success);
    border-color: var(--bs-theme-primary-success);
    border-radius: 2px;
}
/* /pagination fixes end */

/* for row clicks in tables */
.tr-link:hover {
    cursor: pointer;
}
.tr-link:hover td[data-tr-link-target="exclude"] {
    cursor: default;
}

/* rhythm-admin-theme sortable header styles, extracted from datatables.css */
table.with-sorting thead :where(
    th.sorting_asc, th.sorting_desc, th.sorting,
    td.sorting_asc, td.sorting_desc, td.sorting
) {
    padding-right: 30px;
}
/* make cell link 100% height */
table.with-sorting thead th {
    overflow: hidden;
}
table.with-sorting thead th a {
    display: block;
    margin: -10rem;
    padding: 10rem;
}
table.with-sorting thead :where(
    .sorting, .sorting_asc, .sorting_desc, .sorting_asc_disabled, .sorting_desc_disabled
) {
    position: relative;
}
table.with-sorting thead .sorting:before,
table.with-sorting thead .sorting:after,
table.with-sorting thead .sorting_asc:before,
table.with-sorting thead .sorting_asc:after,
table.with-sorting thead .sorting_desc:before,
table.with-sorting thead .sorting_desc:after,
table.with-sorting thead .sorting_asc_disabled:before,
table.with-sorting thead .sorting_asc_disabled:after,
table.with-sorting thead .sorting_desc_disabled:before,
table.with-sorting thead .sorting_desc_disabled:after {
    position: absolute;
    bottom: 0.9em;
    display: block;
    opacity: 0.3;
}
table.with-sorting thead :where(
    .sorting, .sorting_asc, .sorting_desc, .sorting_asc_disabled, .sorting_desc_disabled
):before {
    right: 1em;
    content: "\2191";
}
table.with-sorting thead :where(
    .sorting, .sorting_asc, .sorting_desc, .sorting_asc_disabled, .sorting_desc_disabled
):after {
    right: 0.5em;
    content: "\2193";
}
table.with-sorting thead .sorting_asc:before,
table.with-sorting thead .sorting_desc:after {
    opacity: 1;
}
table.with-sorting thead .sorting_asc_disabled:before,
table.with-sorting thead .sorting_desc_disabled:after {
    opacity: 0;
}
/* /rhythm-admin-theme sortable header end */

.text-3-lines {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of lines to show */
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* fullcalendar fixes */
/* week lists */
.fc-timeGridWeek-view .fc-timegrid-slots tr {
    height: 50px;
}
/* day list */
.fc-timeGridDay-view .fc-timegrid-slots tr {
    height: 50px;
}
.fc-event,
.fc-v-event .fc-event-main {
    color: #3e3e3e !important;
}
.fc .fc-list-event-dot {
    display: none;
}
.fc-list-event td, .fc-list-event th {
    border: none;
}
/* month view fix visibility of day number */
.fc .fc-daygrid-day-top {
    flex-direction: row;
}

.calendar-legend {
    display: flex;
    justify-content: flex-start;
}

.calendar-legend .list-item {
    padding-right: 10px;
    padding-left: 20px;
    position: relative;
    color: black;
}

.calendar-legend .list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
}

.calendar-legend .list-item:nth-child(1)::before {
    background-color: #ffd100;
}

.calendar-legend .list-item:nth-child(2)::before {
    background-color: #1dbfc1;
}

.calendar-legend .list-item:nth-child(3)::before {
    background-color: #51c141;
}
.calendar-legend .list-item:nth-child(4)::before {
    background-color: #cccccc;
}
/* /fullcalendar fixes end */


/* notifications fixes */
.main-header .navbar-nav > li.dropdown > .dropdown-menu {
    min-width: 255px;
}
.main-header .navbar-nav [data-controller="notifications"] .badge {
    position: absolute;
    bottom: 5px;
    right: 3px;
    font-size: 10px;
    padding: 2px 4px;
}
/* /notifications fixes end */

/* patient waiting status badge */
.badge.badge-live {
    background-color: #00aa00;
    color: #FFFFFF;
}

/* support chat */
.chat-msg .cm-user {
    padding-top: 20px
}
/*.cm-msg-text {
    margin-bottom: 0;
    position: relative;
}
.cm-msg-text time {
    position: absolute;
    bottom: 3px;
    left: 0;
    font-size: 9px;
    padding: 2px 0 0 15px;
    white-space: nowrap;
}
.chat-msg.self .cm-msg-text time {
    right: 0;
    padding: 2px 15px 0 0;
    text-align: right;
    color: #cecece;
}*/
.cm-msg-text-2 {
    border-radius: 10px;
    background-color: #f3f6f9;
    padding: 10px 15px;
    color: #666;
    width: fit-content;
    max-width: 75%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 0;
    margin-top: 10px;
}
.cm-msg-text-2 time {
    font-size: 10px;
}
.chat-msg.self .cm-msg-text-2 {
    color: var(--bs-white);
    background-color: #3246d3;
    align-items: flex-end;
    margin-left: auto;

}
.chat-msg.self .cm-msg-text-2 time {
    color: #cecece;
}
/* /support chat */


/* support tickets search */
.lookup-sm .lookup-submit {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 25px;
    height: 25px;
    border-radius: 12px;
    outline: none;
    background-color: transparent;
    border: none;
}
.lookup-sm .lookup-submit:focus {
    border: 1px solid var(--bs-theme-primary-success);
}
/* /support tickets search */


/* Time Tracking widget */

.tt-widget-box {
    display:none;
    position: absolute;
    right: 0;
    top: 400px;
    background-color: #1dbfc1;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-size: 0.9rem;
    padding: 5px;
    color: #fff;
}

.tt-widget-box .item {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    border-bottom: #0cacb2 1px solid;
}

.tt-widget-box .item:last-child {
    border-bottom: none;
}

.tt-widget-box a {
    display: none;
    height: 2.1em;
    width: 2.1em;
    line-height: 2.1em;
    color: #0a3333;
}

.tt-widget-box a:hover {
    color:#fff;
}

.tt-widget-box i {
    font-size: 2.1em;
}   

.tt-widget-box .info {
    text-align: right;
}

.tt-widget-box .name {
    display: none;
    color: #154e48;
}

.tt-widget-box.active .name, 
.tt-widget-box:hover .name, 
.tt-widget-box:focus .name,
.tt-widget-box.active a,
.tt-widget-box:hover a {
    display: block;
}

.tt-widget-box.active span,
.tt-widget-box:hover span {
    display: none;
}

/* /Time Tracking widget end */


/* Patient list view */
.td-appointments-list {
    font-size: 12px;
}
.td-appointments-list p {
    margin: 0;
    padding-bottom: 5px;
}
/* /Patient list view end */

/* Patient view */
.mrn {
    text-align: right;
    font-size: 12px;
    color:#5c5c5c
}
/* /Patient view end */


/* Video call */
.meet-overlay-msg {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
}
.meet-overlay-msg div {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    background-color: #000;
    margin: 20px 25px 0 0;
}
.meet-overlay-msg.hidden {
    display: none;
}
/* /Video call end */

/* Flash messages toasts */
#flash-messages {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%
}
.toast {
    width: 100%;
    text-align: center;
    border-radius: inherit;
}
.alert-success,
.theme-success .alert-success {
    background-color: #1dbfc1 !important;
    border-color: #1dbfc1 !important;
}
.alert-danger,
.theme-success .alert-danger,
.theme-success .alert-warning {
    background-color: #ee3158 !important;
    border-color: #ee3158 !important;
}
/* /Flash messages toasts end */


/* dashboard widgets */
.dashboard-widgets-row .box {
    height: calc(100% - 1.5rem); /* make same height in one row */
}
.dashboard-widgets-row .form-select {
    width: auto;
    display: inline-block;
    padding-left: 0.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;

}
/* /dashboard widgets */


/* appointment start field in 2 inputs */
#appointment_form_start input {
    display: inline-block;
    width: auto;
}
#appointment_form_start_time {
    margin-left: 1rem;
}
/* /appointment start field in 2 inputs */


.capture-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.capture-popup .capture-container {
    background: white;
    padding: 20px;
    text-align: center;
}

.capture-popup .capture-video,
.capture-popup .capture-canvas {
    display: none;
    margin: 0 auto;
}


/* encounter observations */
.encounter-observation-items {
    list-style: none;
    padding: 0;
}
.encounter-observation-items li {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius);
}
:root {
    --grid-diagnoses-col-num: 1;
}
.grid-diagnoses {
    display: grid;
    grid-template-rows: repeat(1, auto);
    grid-template-columns: repeat(var(--grid-diagnoses-col-num), auto);
}
@media (min-width: 768px) {
    .grid-diagnoses {
        --grid-diagnoses-col-num: 2;
    }
}
@media (min-width: 1200px) {
    .grid-diagnoses {
        --grid-diagnoses-col-num: 3;
    }
}
.grid-diagnoses-item {
    grid-column-start: auto;
    grid-row-start: auto;
}
.grid-diagnoses-item .form-check {
    margin-bottom: 0.2rem;
}
.grid-diagnoses-item .diag-notes {
    display: none;
    margin: 0 1rem;
    width: calc(100% - 2rem);
}
.grid-diagnoses-item .form-check:has([type=checkbox]:checked) ~ .diag-notes {
    display: block;
}
.grid-diagnoses-item .c9map-missing {
    color: var(--bs-form-invalid-color);
    margin: 0 1rem 0 57px;
}
.grid-diagnoses-item .c9map-exist {
    color: var(--bs-form-valid-color);
    margin: 0 1rem 0 57px;
}
/* /encounter observations */


/* holder for image with width*height to fit center with aspect ratio */
.img-holder-with-ar {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
}
.img-holder-with-ar img {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}
/* /img-holder-with-ar */