@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Light theme */
:root {
    --kailo-primary: #5db4e2;
    --kailo-primary-accent: #4993ba;
    --kailo-secondary: #6274e5;
    --kailo-background: #ffffff;
    --kailo-background-accent: #e9e9e9;
    --kailo-input-background: #ffffff;
    --kailo-input-foreground: #000000;
    --kailo-success: #007f00;
    --kailo-error: #ff0000;
    --kailo-on-background: #ffffff;
    --kailo-contrast: #000000;
    --kailo-selected: #000000;
    --kailo-light-text-on-background: #8a8a8a;
    --kailo-dashboard: #ebebeb;
    --kailo-alternating-sections-a: #bababa;
    --kailo-alternating-sections-b: #e0e0e0;
    --kailo-tabbed-background: #e3e3e3;
    --kailo-selected-border: #1466c4;
    --kailo-moderate-contrast: #f7f7f7;
}

/* Dark theme */
[data-theme="dark"] {
    --kailo-primary: #1c668e;
    --kailo-primary-accent: #104765;
    --kailo-secondary: #6274e5;
    --kailo-background: #212121;
    --kailo-background-accent: #000000;
    --kailo-input-background: #3b3b3b;
    --kailo-input-foreground: #ffffff;
    --kailo-success: #00ff00;
    --kailo-error: #ff0000;
    --kailo-on-background: #c0c0c0;
    --kailo-contrast: #ffffff;
    --kailo-selected: #1c668e;
    --kailo-light-text-on-background: #8a8a8a;
    --kailo-dashboard: #303030;
    --kailo-alternating-sections-a: #636262;
    --kailo-alternating-sections-b: #2e2d2d;
    --kailo-tabbed-background: #363636;
    --kailo-selected-border: #1466c4;
    --kailo-moderate-contrast: #666666;
}

html, body {
    height: 100%;
    margin: 0;
}

#app {
    height: 100%;
    color: var(--kailo-contrast);
    background: var(--kailo-background);
    scrollbar-color: var(--kailo-background-accent) var(--kailo-input-background);
}
.k-avatar-solid-primary {
    background-color: var(--kailo-primary-accent) !important;
    border-color: var(--kailo-input-background) !important;
}

.tel-switch.k-switch-on .k-switch-track,
.tel-switch.k-switch-on:hover .k-switch-track {
    background-color: var(--kailo-primary-accent);
    border-color: var(--kailo-input-background);
}
/* OFF - focused state */
.tel-switch.k-switch-on.k-focus .k-switch-track {
    background-color: var(--kailo-primary-accent);
    border-color: var(--kailo-input-background);
}
.k-list .k-item.k-state-selected,
.k-list-optionlabel.k-state-selected {
    background-color: var(--kailo-primary-accent);
}

.clickable {
    cursor: pointer;
}
.kailo-button {
    margin: 0;
    padding: 4px 8px;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    background-repeat: repeat-x;
    background-position: 0 center;
    font: inherit;
    line-height: 1.42857143;
    text-align: center;
    text-decoration: none;
    display: -ms-inline-flexbox;
    display: inline-flex;
    overflow: hidden;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: 0;
    -webkit-appearance: none;
    position: relative;
    border-radius: 4px;
    border-color: #ccc;
    color: var(--kailo-contrast);
    background-color: var(--kailo-background);
    background-position: 50% 50%;
}
    .kailo-button:hover {
        color: var(--kailo-contrast);
        background-color: var( --kailo-primary-accent);
        border-color: #ccc;
    }
.kailo-button-icon-center {
    display: flex;
    justify-content: center;
    padding-block:25%;
}
.kailo-button-button-center {
    display: flex;
}
.kailo-button-vertical {
    display: inline-flex;
    flex-direction: column;
}

.kailo-button-icon-horizontal {
    margin-right: 3px;
    margin-right: .1875em;
    margin-left: -2px;
    margin-left: -.125em;
}
.minimal-button {
    font-size: 1.2em;
    border-style: none;
    background:none;
}
    .minimal-button:hover {
        background: none;
        color: var(--kailo-moderate-contrast);
    }
.worklist-button, .worklist-button.k-button {
    font-size: 1.2em;
    color: white;
    background: var(--kailo-primary);
    border-style: none;
}

.worklist-button.k-button:hover {
    color: white;
}

.worklist-imagereview .k-button-solid-base:hover {
    color: white;
}

.priority-flag-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.bottom-button-padding {
    padding: 16px;
}

/*=========================*/
/*DRAWING SURFACE*/

#drawing-surface-canvas {
    border: solid 1px;
    border-color: #808080;
}

.drawing-surface-container {
    background-color: var(--kailo-background);
}

.drawing-surface-thumbnail-container {
    background-color: var(--kailo-on-background);
    max-width: 100px;
    max-height: 100px;
}

.drawing-surface-color-icon {
    width: 20px;
    height: 20px;
    border: 1px solid darkgray;
    border-radius: 10px;
}

.drawing-surface-fill-pattern-buttons {
    display: block;
}

.drawing-surface-icon path {
    stroke: var(--kailo-contrast);
}

.drawing-surface-icon-buttons ellipse, .drawing-surface-icon-buttons path {
    stroke: var(--kailo-contrast);
}

.drawing-surface-style-selector li.k-list-item {
    width: 48px;
    height: 48px;
    margin: 4px;
    padding: 0px;
}

.sonocombobox:hover {
    background: #ececec;
}

.affirmative-button, .affirmative-button.k-button {
    color: white;
    background: #1c668e;
    border-style: none;
    transition: 0.3s;
}

.neutral-button {
    color: white;
    background: #3d3938;
    border-style: none;
    transition: 0.3s;
}

.affirmative-button:hover, .affirmative-button.k-button:hover {
    color: #1c668e;
    background: white;
    border-style: none;
}

.neutral-button:hover {
    color: #3d3938;
    background: white;
    border-style: none;
}

.affirmative-button-light {
    color: #363636;
    background: #5cabd6;
    border-style: none;
    transition: 0.3s;
}

.affirmative-button-light:disabled {
    background: dimgray;
    cursor: auto;
}

.neutral-button-light {
    color: #363636;
    background: #e0dddc;
    border-style: none;
    transition: 0.3s;
}

.affirmative-button-light:hover:not(:disabled) {
    color: #4682a3;
    background: #ccc9c8;
    border-style: none;
}

.neutral-button-light:hover {
    color: #363636;
    background: #ccc9c8;
    border-style: none;
}

.sonocombobox.k-picker, .sonocombobox.k-input {
    border-color: #d6d4d4;
    border-width: 0px 0px 1px 0px !important;
    border-radius: 0px;
    background-color: var(--kailo-input-background);
}

.sonocombobox .k-input-inner {
    padding: 2px 1px;
}

.sonocombobox .k-input-button {
    padding: 1px;
    width: auto;
    color: #767676 !important;
}

.sonocombobox .k-input-value-text, .sonocombobox .k-chip-content {
    padding-left: 0px;
    font-size: 12px;
    font-family: 'Segoe UI Semibold', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sonocombobox-freetext-hint {
    color: grey;
}

.sonofetusmultigestation {
    border-style: solid;
    border-color: darkgray;
    border-width: 2px;
    margin: 3px;
    border-radius: 2px;
}

.sonosizethreeplane-separator {
    padding-left: 5px;
    padding-right: 5px;
}

.sonodatetime.k-datepicker {
    background-color: var(--kailo-input-background);
}

.sonodatetime .k-input-inner {
    font-size: 0.9em;
    padding: 0px !important;
}

.sonodatetime button.k-input-button {
    padding: 0px;
    width: 10px;
    background-color: transparent;
    border: none;
}

.sonodatetime .k-icon {
    font-size: 12px;
}

.block {
    display: block;
}

#logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

#box-kailo-text {
    /*width: 100%;*/
    margin-left: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.25em;
}

.kailo-logo {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 35px;
}

.kailo-flow-logo {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 35px;
}

.kailo-medical-logo {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 35px;
}

.login-workstation-name {
    color: gray;
    margin: 0px 10px;
}

.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin: 1rem 0rem;
    border: 1px solid transparent;
    /*border-radius: .25rem;*/
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.space-between {
    display: flex;
    justify-content: space-between;
}

/*==========================*/
/* WORKLIST */
/*html, body {
    height: 100%;
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:14px;
    background: #ededed;
    overflow: hidden;
}

body {
    margin: 1em;
}*/
.wk-patient-name {
    font-size: 1.25em;
}

.embeded {
    height: 100%;
    background: #ededed;
    padding: 1em;
}

/* this div is the telerik grid */
#patient-locator > div {
    height: 100%;
}

.header {
    height: 55px;
    margin-bottom: 0.5em;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    -webkit-appearance: none;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

#mapping-header {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
}

#mapping-footer {
    float: right;
    padding: 0.5em;
}

#btn-mapping-next {
    font-size: 24px;
    background-color: #2184be;
    color: #fff;
    border: 2px solid #2184be;
}

.contain, .body-content {
    height: calc(100% - 55px);
}

.patient-locator {
    height: calc(100% - 3em);
}

.button, #btn-next {
    display: block;
    padding: 0.3em 0.3em;
    margin: 0 0.5em;
    height: 100%;
    line-height: 100%;
    color: #fff;
    font-size: calc(1em + 1vw);
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.header-image {
    position: absolute;
    left: 1em;
}

.gridImg {
    text-align: center;
}

    /*.gridImg img {
    vertical-align: middle;
}*/

    .gridImg span {
        vertical-align: middle;
    }

.float-left, .float-left-clear {
    float: left;
}

.float-right, .float-right-clear {
    float: right;
}
.control-not-clickable {
    pointer-events: none;
    color: grey !important;
}
input.control-not-clickable {
    filter: brightness(75%);
}
    .float-right-clear:after,
    .float-left-clear:after {
        clear: both;
    }

#btn-refresh {
    background: #2184be url('Images/refresh.png') no-repeat;
    background-size: 50%;
    background-position: center;
    height: 100%;
    border: none;
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#btn-settings {
    background: #2184be url('Images/settings_solid.png') no-repeat;
    background-size: 50%;
    background-position: center;
    height: 100%;
    border: none;
    margin: 0 0.5em 0 0;
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#header > span.k-widget.k-dropdown.k-header.dropdown {
    font-size: 26px;
}

.button-no-padding {
    height: 100%;
    background: #2184be;
    color: #fff;
    font-size: calc(1em + 1vw);
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#workstation-display {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 100;
    color: #ededed;
    font-size: 0.75em;
}

#bottom-bar {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    -webkit-appearance: none;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

.header > .dropdown {
    width: 350px;
}

.k-grid td {
    border-width: 0 0 1px 0; /*top right bottom left*/
    padding: .9em .9em;
}

.k-button,
.k-button.k-state-hover, .k-button:hover,
.k-button.k-state-active, .k-button:active,
.k-button.k-state-active:hover,
.k-button:focus:active,
.k-button.k-state-focused,
.k-button.k-state-focused.k-state-disabled,
.k-button:focus, .k-button:focus:hover,
.k-state-disabled .k-button.k-state-focused {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.k-button.k-state-hover, .k-button:hover {
    border-color: #e6e6e6;
    background-color: #e6e6e6;
}

.kq-priority-1 {
    background: rgb(250,128,114);
    color: white;
}

    .kq-priority-1:hover {
        background-color: rgb(240,118,104) !important;
        color: white;
    }

.kq-priority-0 {
    background: rgb(255,228,196);
}

    .kq-priority-0:hover {
        background: rgb(245,218,186) !important;
    }


.k-grid td {
    border-width: 0 0 1px 0; /*top right bottom left*/
    padding: .9em .6em;
}

.k-dropdown-wrap.k-state-default.k-state-hover,
.k-dropdown-wrap.k-state-default.k-state-focused {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 10px;
    align-items: center;
}

.grid-label {
    justify-self: end;
}

.select-image-grid {
    min-width: 40vw;
    max-height: 80vh;
}

.kq-modal-block {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kq-input {
    border-radius: 3px;
    border-color: #ccc;
    /*line-height: 1.65em;*/
    line-height: 26.4px;
    /*padding: .17857143em 0;*/
    padding: 2.85714px 0;
    /*text-indent: .571em;*/
    text-indent: 9.136px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis
}

.window-container {
    display: flex;
    flex-direction: column;
}

.kq-window-block {
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kq-search-label {
    display: inline-block;
    width: 85px;
}

#search-text {
    width: 266px;
}

.hidden {
    display: none !important;
}

#right-header {
    display: flex;
    flex-direction: column;
}

#top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: -10px;
}

#bottom-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/*==========================*/
/* COMMON */

.no-scale {
    font-size: initial;
}

/*body {
    background-color: #56B4E7;
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:14px;
    font-size: calc(1em + 1vw);
}*/

#background:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url('/Content/Images/background_large.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}

#content-container {
    /*max-width: 15em;*/
    -webkit-appearance: none;
    z-index: 100;
    position: absolute;
    background: #ededed;
    margin: auto;
    top: 2em;
    right: 2em;
    left: 2em;
    padding: 1.5em 2em;
    margin-bottom: 3em;
    border-radius: 0.25em;
    -webkit-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
    box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
}

#content-container-fill {
    /*max-width: 15em;*/
    -webkit-appearance: none;
    z-index: 100;
    position: absolute;
    background: #ededed;
    margin: auto;
    top: 2em;
    right: 2em;
    left: 2em;
    bottom: 2em;
    padding: 1.5em 2em;
    border-radius: 0.25em;
    -webkit-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
    box-shadow: 0px 5px 5px -0px rgba(0,0,0,0.3);
}

#back-button {
    font-size: 48px;
    width: 48px;
    height: 48px;
    line-height: 48px;
    margin: 0 8px;
    float: left;
    display: inline-block;
    color: #fff;
    background-color: #2184be;
    border-radius: 5px;
    border: 2px solid #2184be;
    text-align: center;
    text-decoration: none;
}

hr {
    margin-top: 1em;
    margin-bottom: 1em;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

#logo {
    display: block;
    margin: auto;
}

.kq-worksheet-progress-holder {
    display: flex;
    flex-direction: column;
}

.kq-worksheet-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: calc(0.75em + 1vw);
    margin-bottom: calc(1em + 0.5vw);
}

    .kq-worksheet-progress .kq-button {
        font-size: calc(1em + 0.5vw);
        margin-left: auto;
    }

    .kq-worksheet-progress .kq-worksheet-label {
        margin-left: 1em;
        margin-right: 1em;
    }

.progress-state-image > img {
    height: 2em;
    width: 2em;
}

.kq-button {
    display: inline-block;
    color: #fff;
    background-color: #2184be;
    padding: 0.3em;
    border-radius: 5px;
    border: 2px solid #2184be;
    text-align: center;
    text-decoration: none;
}

    .kq-button:hover {
        background-color: #008EE0;
        cursor: pointer;
    }

    .kq-button:disabled {
        background-color: #707070;
        border: 2px solid #707070;
    }

.kq-bottom-action-button {
    font-size: calc(1em + 1vw);
    margin-top: 0.5em;
    float: right;
}

    .kq-bottom-action-button:after {
        clear: both;
    }

#btn-home {
    margin-right: 0.5em;
}

.graph-container {
    width: fit-content;
    outline-color: lightgray;
    outline-style: solid;
    outline-width: 1px;
    padding: 4px;
    margin-bottom: 8px;
}

.graph-header {
    font-size: 16px;
    font-weight: bold;
}

.graph-header-details {
    font-size: 12px;
}

.graph-reference-source {
    font-size: 8px;
    text-align: center;
    font-style: italic;
    display: inline-block;
    width: 100%;
}

.logo-container {
    text-align: right;
}

#lbl-patient {
    font-size: 0.75em;
    color: darkgray;
}

.dob {
    line-height: 1em;
    width: 2em;
    font-size: 24px;
}

.error {
    color: red;
}

.vertical-rule {
    width: 5px;
    background: transparent;
    background: linear-gradient(180deg, transparent, darkgray, transparent);
    background-position: 50%;
    background-repeat: repeat-y;
    background-size: 1px auto;
}

div .k-overlay {
    opacity: 0.7;
}

.prompt-box-content-small {
    padding: 10px;
    min-width: 250px;
}

#worklist-displayname {
    margin: 15px;
    color: #757575;
    /*max-width: 180px;*/
}

#worklist-workflow {
    margin: 15px 5px 15px 5px;
    color: #757575;
}

.no-records {
    font-size: 1.5em;
    padding-top: 10%;
    color: darkgray;
}

.kq-notification {
    margin: 1.5em;
    display: flex;
    flex-direction: row;
    align-content: center;
}

    .kq-notification .notification-text {
        display: flex;
        flex-direction: column;
        align-content: center;
        margin-left: 1em;
    }

    .kq-notification .notification-title {
        font-weight: bold;
    }

    .kq-notification .notification-message {
        padding-top: 0.5em;
    }

    .kq-notification .notification-icon {
        font-size: 2em;
    }

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

    .dropdown-content a {
        color: black;
        padding: 10px 14px;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content > a > svg {
    padding-right: 5px;
}

#grid > div.k-grid-content.k-auto-scrollable >
table > tbody > tr > td.action-button-cell {
    overflow: visible;
}

/*==========================*/

html, body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/*app {
    position: relative;
    display: flex;
    flex-direction: column;
}*/

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

        .main .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.worklist-toggleable input, input.worklist-toggleable {
    outline-width: 1px;
    outline-style: solid;
    outline-color: var(--kailo-contrast);
}

#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;
    }

.error-message {
    background-color: darkred;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2%;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    /*app {
        flex-direction: row;
    }*/

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.horizontal {
    display: flex;
    align-items: flex-start;
}

.fit-content {
    width: fit-content;
    height: fit-content;
}

.yesno-highlighting {
    color: red;
    font-weight: bold;
}

.sonotable-cell {
    width: fit-content;
}

.sonoreview-textbox {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #808080;
    width: 75px;
    background-color: var(--kailo-input-background);
    color: var(--kailo-input-foreground)
}

.sonoreview-textbox:hover, .sonoreview-textbox:focus-visible {
    border-bottom: 1px solid cornflowerblue;
    outline-width: 0px;
}

.sonogestationalage-textbox {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #808080;
    width: 35px;
    background-color: var(--kailo-input-background);
    color: var(--kailo-input-foreground);
    text-align: right;
}

.sonoreview-numeric {
    min-width: 35px;
}

.sonoreview-expander-button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: solid 1px lightgray;
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

.sonoreview-expander-open {
    transform: rotate(90deg);
}

.sonoreview-expander-closed {
    transform: rotate(0);
}

.sonoreview-expander-header {
    margin-left: 5px;
}

.sonoreview-expander-inner {
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

.sonoreview-expander-inner-closed {
    display: none;
}

#sonoreview-worksheetheader {
    width: 100%;
}

.sonoreview-worksheetheader-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.centered-div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#worksheet-user-name-container {
    border: 1px solid lightgray;
    border-radius: 3px;
    min-width: 150px;
    min-height: 40px;
    text-align: center;
    font-size: 12px;
}

.worksheet-user-name-row:not(:hover) .worksheet-user-name-remove {
    display: none;
}

#sonoreview-worksheetpage {
    background: var(--kailo-background);
    color: black;
    width: 100%;
    display: flex;
    justify-content: stretch;
    height: 100vh;
}

/* setting width for worksheet/report tab strips, would be better to give them their own classes */
.k-tabstrip {
    width: 40% !important;
    height: 100% !important;
}

#sonoreview-worksheetmain input[type=radio] {
    width: 20px;
    height: 1.2em;
    margin: 3px 0px;
    accent-color: var(--kailo-selected);
}

#sonoradiobutton {
    margin-left: -1px;
}

#sonoradiobutton-label {
    margin-left: -1px;
    font-size: 13px;
}

#yes-no-yes-label {
    margin-right: 6px;
}

.k-textarea.k-input.sr-commentstext {
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid #808080;
    z-index: 1;
    background: var(--kailo-input-background);
    resize: none;
    min-height: 22px;
    border-radius: 0px;
}

.k-textarea.k-input.sr-commentstext:hover, .k-textarea.k-input.sr-commentstext.sr-commentstext:focus-within {
    border: 1px solid cornflowerblue;
    outline-width: 0px;
    box-shadow: none !important;
}

.sr-commentsbutton {
    margin-left: 0;
    border: 1px solid lightgray;
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
    position: relative;
}


.kailo-split-button > button {
    margin: 0;
    padding: 4px 8px;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    background-repeat: repeat-x;
    background-position: 0 center;
    font: inherit;
    line-height: 1.42857143;
    text-align: center;
    text-decoration: none;
    display: -ms-inline-flexbox;
    display: inline-flex;
    overflow: hidden;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: 0;
    -webkit-appearance: none;
    position: relative;
    border-radius: 4px;
    border-color: #ccc;
    background-color: #fff;
    background-position: 50% 50%;
}

.kailo-split-button > button > span {
    display: flex;
    align-items: center;
    white-space: pre;
}

.kailo-split-button-open > button {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    height: 70px;
    margin-right: 0;
    padding-left: 15px;
    color: white;
    background: #1c668e;
    border-style: none;
}

.kailo-open-button {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    height: 70px;
    margin-right: 0;
    padding-left: 15px;
    color: white;
    background: var(--kailo-primary);
    border-style: none;
}

.kailo-open-button-options {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    height: 70px;
    margin-left: -5px;
    padding-left: 10px;
    color: white;
    background: var(--kailo-primary-accent);
    border-width: 0px 0px 0px 1px;
}

.no-interaction {
    pointer-events: none;
}

.sr-checkbox-container {
    margin: 1px;
}

.sr-checkbox {
    font-size: 16px;
    width: 14px;
}

.sr-checkbox-red {
    color: var(--kailo-error);
}

.sr-checkbox-yellow {
    color: goldenrod;
}

.sr-checkbox-green {
    color: var(--kailo-success);
}

.sr-checkbox-purple {
    color: purple;
}

.sr-checkbox-skyblue {
    color: skyblue;
}

.sr-checkbox-magenta {
    color: magenta;
}

.sr-checkbox-olivedrab {
    color: olivedrab;
}

.sr-checkbox-slategray {
    color: slategray;
}

.sr-checkbox-default {
    color: initial;
}

.unselectable {
    user-select: none;
}

#worksheet-action-bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1em;
}

#worksheet-action-top {
    margin-top: 30px;
}

#worksheet-action-bottom {
}

.worksheet-action-button {
    line-height: 2em;
    font-size: 1.5em;
    min-width: 95px;
    margin-bottom: 3px;
}

.worksheet-action-button-small {
    line-height: 1.2em;
    font-size: 1.2em;
    min-width: 95px;
    margin-bottom: 3px;
}

.dark-mode-form-input-disabled.k-input {
    color: black;
    background: darkgray;
}

.vertical-align-middle {
    vertical-align: middle;
}

#sonoreview-worksheetmain {
    max-width: 780px;
}

i.k-stop-soft {
    color: rgba(255, 165, 0, 0.5);
}

i.k-stop-hard {
    color: rgba(255, 0, 0, 0.75);
}

/*======================*/
/* THEME */

.k-pager-numbers .k-link.k-state-selected {
    color: white;
    background-color: rgba(86,180,231,0.4);
    /*#56b4e7*/
}

.k-tabstrip-items .k-item {
    color: #4490B8;
}

    .k-tabstrip-items .k-item:hover,
    .k-tabstrip-items .k-item.k-state-hover {
        color: #336C8A;
    }

.k-dialog-titlebar {
    background-color: #56b4e7;
}

td {
    vertical-align: top;
}

span, label {
    white-space: nowrap;
}

#sonoreview-worksheetmain span, #sonoreview-worksheetmain label, #sonoreview-worksheetmain sr-checkbox-holder {
    padding-right: 1px;
}

.loader {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authorizing-view {
    flex-direction: column;
}

#report-container, .report-editor-container {
    word-wrap: break-word;
}


#report-container span, .report-editor-container span {
    white-space: normal;
    color: var(--kailo-contrast) !important;
}

.text-align-right {
    text-align: right;
}

.margin-right {
    margin-right: 10px;
}

.sonoseparator {
    border-top-style: solid;
}

.sonolabel {
    white-space: normal;
}

.sonovisibilityselectorheader {
    font-weight: bold;
    padding-left: 3px;
    border: 1px solid transparent;
    border-radius: 4px;
}

    .sonovisibilityselectorheader:hover {
        border-color: black;
    }

.sonovisibilityselectorpanel {
    border: 1px solid gray;
    padding: 8px;
}

.sonomultiitemcontent {
    margin-left: 5px;
    overflow-wrap: anywhere;
}

    .sonomultiitemcontent p {
        margin-block-start: 0.1em;
        margin-block-end: 0.1em;
    }

    .sonomultiitemcontent span {
        display: inline-block;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

.multipriorsdisplayclass {
    font-style: italic;
}

.hiddenwithspace {
    visibility: hidden;
}

.sonocomments {
    background-color: var(--kailo-input-background);
}

.sonocommentsdropdownbutton.k-button {
    border-color: #989898;
    border-style: solid;
    border-width: 0px 1px 1px 0px;
    border-radius: 0px 0px 6px 0px;
    background-color: var(--kailo-input-background);
}

.laterality-header {
    font-size: 18px;
    font-weight: bold;
    margin-left: 20px;
}

.centered-over-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
}

.worksheet-list-grid .k-grid-content {
    overflow-y: auto;
}

.worksheet-list-grid .k-grid-header,
.worksheet-list-grid .k-grid-footer {
    padding-right: 0;
}

.worksheet-list-grid .k-grid-header-wrap,
.worksheet-list-grid .k-grid-footer-wrap {
    border-right-width: 0;
}

.worksheet-list-grid-row:hover {
    background-color: #1c668e !important;
}

.worksheet-list-grid-row-admin {
    background: goldenrod;
}

.worksheet-list-grid-row-admin:hover {
    background-color: #1c668e !important;
}

.exportable-container .sonolabel {
    color: var(--kailo-contrast) !important;
}


.cursor-pointer {
    cursor: pointer;
}

.document-panel-buttons-bar {
    display: flex;
    justify-content: space-between;
}

.document-panel-header {
    font-weight: bold;
    font-size: 14pt;
}

.multiple-worksheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.multiple-worksheet-header-text {
    font-weight: bold;
    font-size: 14pt;
}

.worksheet-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawing-pen-size-one span {
    font-size: 8px;
}

.drawing-pen-size-two span {
    font-size: 14px;
}

.drawing-pen-size-four span {
    font-size: 18px;
}

.drawing-pen-size-ten span {
    font-size: 28px;
}

.drawing-surface-pen-style-icon.k-svg-icon {
    width: 48px;
    height: 48px;
}

legend .k-dropdownlist {
    border-style: none;
}

.drawing-pen-colour-black span {
    color: black;
}

.drawing-pen-colour-red span {
    color: red;
}

.drawing-pen-colour-green span {
    color: green;
}

.drawing-pen-colour-blue span {
    color: blue;
}

.drawing-pen-colour-white span {
    color: white;
    text-shadow: black 0px 0px 2px;
}

.full-height {
    height: 100%;
}

.tile-with-overflow.k-card {
    background-color: var(--kailo-background);
}


.tile-with-overflow .k-tilelayout-item-body {
    overflow-x: hidden;
    overflow-y: auto;
}

.worksheet-drawer {
    background: white;
}

#worksheet-action-bar {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}

.worksheet-finish-button.k-button-group, .worksheet-finish-button.k-button {
    border-width: 1px;
    border-color: var(--kailo-primary);
    border-style: solid;
    font-size: 20px;
    background: white;
}


.worksheet-panel-toggle-button {
    width: 100%;
    height: 50px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.worksheet-panel-toggle-button-icon {
    font-size: 1.6em;
}

.worksheet-panel-container {
    min-width: 780px;
    width: 100%;
    height: 100%;
}

.worksheet-panel-restricted-width {
    max-width: 780px;
}

.shimmer-wrapper {
    display: grid;
}

.shimmer-overlay, .shimmer-content {
    grid-area: 1 / 1;
}

.shimmer-overlay {
    background: linear-gradient(-45deg, #eeeeee00 40%, #dadada 50%, #eeeeee00 60%);
    background-size: 400%;
    background-position-x: 150%;
    animation: shimmer 2s infinite linear;
    z-index: 10;
}

@keyframes shimmer {
    to {
        background-position-x: 00%
    }
}

.worksheet-panel-container-auto-height {
    min-width: 780px;
    width: 100%;
}

.exportable-container {
    background: var(--kailo-background);
}

.space-between {
    display: flex;
    justify-content: space-between;
}

.k-tilelayout-item-header.k-card-header {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 16px;
    padding-right: 16px;
    min-height: 38px;
}

.icon-button.k-button {
    border-width: 1px;
    border-color: lightgray;
    color: inherit;
    background: none;
    box-shadow: none;
}

/* textbox/input resizing */

.input-resize {
    display: inline-grid;
    vertical-align: top;
    align-items: center;
    position: relative;
}

    .input-resize::after,
    .input-resize input,
    .input-resize textarea {
        width: auto;
        /*min-width: 1em;*/
        grid-area: 1/2;
        font: inherit;
        resize: none;
        padding-left: 2px;
        padding-right: 2px;
    }

    .input-resize::after {
        content: attr(data-value) " ";
        visibility: hidden;
        white-space: pre-wrap;
    }

.outline-none {
    outline: none;
}

/* ---------------------------------- */

/******** KQ STYLES *********/


.worksheet-KailoQuestionnaire {
    font-size: 1.5rem;
}

/* yesno */

input[type="radio"].kq-radio,
input[type="checkbox"].kq-radio {
    display: none;
}

input[type="radio"]:checked.kq-radio + label,
input[type="checkbox"]:checked.kq-radio + label {
    color: #fff;
    background-color: var(--kq-control-blue);
}

input[type="radio"].kq-radio + label,
input[type="checkbox"].kq-radio + label {
    color: #aaa;
    background-color: #eee;
    padding: 6px !important;
}

.kq-yes-no {
    width: 5rem;
}

/* checkbox */

.kq-checkbox-container {
}

    .kq-checkbox-container > i {
        display: none;
    }

/* table */

table.kq-table {
    width: 100%;
}

tr.kq-table {
    display: flex;
}

td.kq-table:first-child {
    flex-grow: 1;
}

td.kq-table {
    display: flex;
    padding: 2px 0 2px 0;
    align-items: center;
}

/* textbox */

input.kq-textbox {
    border-radius: 5px;
    border: 1px solid var(--kq-light-grey);
    line-height: 36px;
    font-size: 16px;
}

/* drawingpanel */

.kq-drawingpanel-container {
    border: 1px solid var(--kq-light-grey);
    border-radius: 5px;
    margin: 5px 10px 5px 10px;
}

    .kq-drawingpanel-container > fieldset {
        border: none;
    }

/* misc */

:root {
    --kq-light-grey: #bbbbbb;
    --kq-control-blue: #2184be;
}

div.centered {
    text-align: center;
    justify-content: center;
}

.kq-button, .kq-button.k-button {
    color: #fff;
    background-color: var(--kq-control-blue);
    border-radius: 5px;
    border: 2px solid var(--kq-control-blue);
    text-align: center;
    text-decoration: none;
    margin-right: 10px;
    margin-top: 4px;
    /*font-size: 20px;*/
}

.kq-study-details {
    text-align: right;
    margin-right: 20px;
}

/****************************/
.report-editor-container {
    border: 1px gray solid;
    border-radius: 10px;
    padding: 2px;
}

.report-editor.k-editor {
    border-color: transparent;
}

.report-editor div.k-editor-content {
    height: 600px;
}

.worksheet-panel-container:has(.overflow-hidden) {
    overflow: hidden;
}

.is-sending .hide-on-send {
    display: none;
}

.is-sending .k-chip-actions, .is-sending .k-clear-value {
    display: none;
}

.k-hierarchy-cell .k-svg-icon.k-svg-i-minus svg path {
    d: path("M256 352 128 160h256L256 352z");
}

.k-hierarchy-cell .k-svg-icon.k-svg-i-plus svg path {
    d: path("M352 256 160 384V128l192 128z");
}

@media screen and (min-width: 1200px) {
    #content-container {
        max-width: 1200px;
        top: 3em;
        right: 2em;
        left: 2em;
        padding: 1.5em;
        margin-bottom: 1em;
    }

    #worklist-displayname {
        margin: 15px;
        /*color: darkgray;*/
        color: #757575;
        max-width: unset;
    }

    #content-container-fill {
        max-width: 1200px;
        top: 3em;
        right: 2em;
        left: 2em;
        bottom: 2em;
        padding: 1.5em;
    }

    hr {
        margin-top: 0.75em;
        margin-bottom: 1em;
    }

    .kq-worksheet-progress {
        font-size: 24px;
    }

        .kq-worksheet-progress .kq-button {
            font-size: 32px;
        }

    .kq-bottom-action-button {
        font-size: 36px;
    }
}

.drawing-surface-style-selector.k-animation-container.telerik-blazor {
    width: 220px !important;
}

.drawing-surface-style-selector ul {
    display: grid;
    grid-template-columns: repeat(4, 48px);
}

@media screen and (max-width: 780px) {
    .worksheet-panel-container {
        min-width: unset;
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .worksheet-KailoQuestionnaire {
        font-size: 1rem;
    }

    .kq-yes-no {
        width: 4rem;
    }
}

@media screen and (max-width: 425px) {
    .kq-worksheet-progress {
        font-size: calc(0.75em + 1vw);
    }

        .kq-worksheet-progress .kq-button {
            font-size: calc(1em + 1vw);
        }

    #content-container {
        max-width: initial;
        max-height: initial;
        margin: auto;
        top: initial;
        right: 1em;
        bottom: initial;
        left: 1em;
        padding: 1em;
    }

    #content-container-fill {
        max-width: initial;
        max-height: initial;
        margin: auto;
        top: initial;
        right: 1em;
        bottom: initial;
        left: 1em;
        padding: 1em;
    }

    .logo-container {
        text-align: center;
    }

        .logo-container > img {
            max-width: 100%;
        }

    .kq-bottom-action-button {
        font-size: calc(1.5em + 1vw);
        margin-top: 0.5em;
        width: 100%;
        float: initial;
    }
}
