@import "preorder.css";

.red {
    color: #FF0000;
}

.standard-input {
    min-height: 34px;
}

.error-text {
    position: absolute;
    bottom: -8px;
    color: #FF0000;
    font-size: 12px;
}

.label-date::after {
    top: 32px !important;
}

.registration-form__services {
    width: 100%;
    max-width:1000px;
    padding:0 24px 14px;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap
}

.label-40 {
    width: 40%;
}

.btn-add {
    width: 10%;
    padding-top: 24px
}

.registration-form__patient .error-text {
    display: block;
    width: 100%;
    font-size: 9px;
    line-height: 11px;
    color: #f25c5c;
    padding: 0 36px 0 16px;
    margin-top: 5px;
}

.label-left {
    float: left;
    width: 40%;
}

.label-right {
    float: right;
    width: 40%;
}

.nested {
    display: none;
}

.active {
    display: block;
    /*margin-left: 10px;*/
}

.caret {
    cursor: pointer;
    margin-left: 8px;
    user-select: none; /* Prevent text selection */
}

.rubricator__item span {
    font-size:14px;
    line-height:24px;
    color:#363943;
    display:block;
    padding:4px 0;
    border-bottom:1px solid #edeef3;
    transition:all .2s ease-in-out 0s
}

.rubricator__item span:hover {
    color:#fe984b
}

.error-outer {
    height: 100%;
    width: 100%;
}

.error-inner {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.error-message {
    font-size: 25px;
}

.error-buttons {
    margin: 20px;
    text-align: center;
}

.ui-datepicker .ui-datepicker-title {
    background: #f7860f;
}

.ui-datepicker .ui-datepicker-header {
    background: #f7860f;
}

.select-disabled {
    background: #eee;
    color: #888;
    pointer-events: none;
}

.container-input {
    padding: 1px 10px 1px 10px;
    line-height: 16px;
}

.dialog-closed {
    display: none;
}

.dialog-show {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 11;
    text-align: center;
}

.dialog-show::before {
    content: "";
    vertical-align: middle;
    display: inline-block;
    height: 100%;
}

.dialog-content {
    vertical-align: middle;
    position: relative;
    display: inline-block;
    min-width: 400px;
    min-height: 150px;
    max-width: 1000px;
    background-color: rgb(256,256,256);
    text-align: left;
    padding: 10px;
    border: 2px solid black;
}

.btn-code {
    width: 15%;
    padding-top: 24px;
    padding-left: 2px;
}

.btn-rubrics {
    padding-top: 24px;
    width: 5%;
}

.order-table__row {
    flex-flow: row wrap;
}

.order-table__row.selected {
    background: #f7860f;
}

.search-message {
    width: 400px;
    height: 400px;
    text-align: center;
    padding-top: 200px;
}

section.services {
    min-height: 400px;
}

.buttons {
    height: 36px;
    padding: 4px 0;
}

.directory-modal {
    height: calc(70vh - 44px);
    min-height: 400px;
}

#selected-codes {
    height: calc(20vh - 34px);
    width: 100%;
    border: solid grey 1px;
}

#new-entries {
    position: relative;
}

#selected-total {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    display: flex;
    min-width: 100px;
    font-weight: 700;
}

#selected-total > .total-count {
    margin-left: auto;
}

.directory-modal .order-table__row {
    cursor: pointer;
    transition-property: background-color;
    transition-duration: 0.5s;
}

.cont-row td {
    width: 50%;
}

.cont-row img {
    float: left;
}

.standard-table tbody td {
    min-width: 36px;
}

.autocomplete {
    width: 100%;
    position: absolute;
    max-height: 200px;
    top: 58px;
    z-index: 99;
    border: solid black 1px;
    background-color: white;
}

.autocomplete-item {
    max-height: 40px;
    font-size: 16px;
}

.autocomplete-item:hover {
    background-color: #f59734 !important;
    cursor: pointer;
}

.autocomplete-item:nth-child(odd) {
    background-color: #fff;
}
.autocomplete-item:nth-child(even) {
    background-color: #f5f6f9;
}

.autocomplete-item span {
    padding-left: 10px;
    display: inline-block;
    width: 50%;
}

#send {
    width: 125px;
    height: 34px;
}

.expand {
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: space-between;
}

.expander {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.expander hr {
    width: calc(50% - 14px);
    align-self: center;
}
.expander button {
    border: none;
    border-radius: 50%;
    background-color: #fff;
}
.expander img {
    width: 24px;
    transform: rotate(0deg);
    transition-duration: 0.5s;
    cursor: pointer;
}

.registration-form__edit {
    width: 340px;
}

.registration-form__edit img {
    cursor: pointer;
}

.message-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
}

.message-content > h2 {
    flex-grow: 1;
    display: grid;
    place-items: center;
}

.message-content > .btn {
    width: max-content;
    min-width: 100px;
}

.dialog-buttons {
    margin-top: 10px;
    position: sticky;
    bottom: 10px;
}

.search-content {
    height: 100%;
}

#new-button {
    margin-left: 10px;
}

.results.search {
    padding: 12px 12px 40px;
}

.protocol.today{
    padding: 12px 12px 48px;
    width: 100%;
    background: #fff;
}

.protocol-table {
    width: 100%;
}

.protocol-table__row {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 5px 20px 5px 5px;
    background: #f5f6f9;
}
.protocol-table__row:nth-child(2n) {
    background: #fff;
}
.protocol-table__row--head {
    padding-top: 20px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: grey;
}

.protocol-table__item:nth-child(1) {
    width: 80px;
    padding-right: 20px;
}
.protocol-table__item:nth-child(2) {
    width: calc(50% - 80px - 100px);
    padding-right: 20px;
}
.protocol-table__item:nth-child(3) {
    width: 100px;
    padding-right: 20px;
}
.protocol-table__item:nth-child(4) {
    width: calc(50% - 150px - 80px);
    padding-right: 20px;
}
.protocol-table__item:nth-child(5) {
    width: 150px;
    padding-right: 20px;
}
.protocol-table__item:nth-child(6) {
    width: 80px;
    padding-right: 20px;
}
.protocol-top {
    padding-top: 32px;
}
.protocol.controls {
    width: 100%;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}
.protocol-buttons {
}
.protocol-input {
    margin-left: auto;
}
.protocol-top__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.protocol.print {
    padding-top: 10px;
}

.label-results__header {
    width: auto;
    padding-bottom: 0;
    margin-top: 9px;
    margin-left: 10px;
}

.patient-order {
    padding-bottom: 80px;
}

.services__title {
    display: inline-block;
}

#serviceEdit {
    float: right;
    cursor: pointer;
}

#srv-btns {
    display: flex;
}

.rubrics-wrapper {
    padding-bottom: 50px;
}

.button-garbage {
    width: 100%;
    min-width: 30px;
    height: 30px;
    border: none;
    background-color: #f59734;
    mask: url("/static/images/garbage.svg") center / contain no-repeat;
    -webkit-mask: url("/static/images/garbage.svg") center / contain no-repeat;
    transition: 0.3s;
}

.button-garbage:hover,
.button-barcode:hover {
    background-color: #f7860f;
}

.button-barcode {
    width: 100%;
    min-width: 40px;
    height: 30px;
    border: none;
    background-color: #f59734;
    transition: 0.3s;
}

.button-barcode:not(.button-barcode_active) {
    mask: url("/static/images/barcode.svg") center / contain no-repeat;
    -webkit-mask: url("/static/images/barcode.svg") center / contain no-repeat;
}

.button-barcode_active {
    mask: url("/static/images/barcode_delete.svg") center / contain no-repeat;
    -webkit-mask: url("/static/images/barcode_delete.svg") center / contain no-repeat;
}

.password {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
}

.password__icon {
    position: absolute;
    right: 10px;
    display: flex;
    width: 16px;
    height: 16px;
    background: url("/static/images/eye.svg") center / contain no-repeat;
    cursor: pointer;
}

.password__icon_active {
    background-image: url("/static/images/eye_closed.svg");
}

.parameters {
    display: flex;
    min-width: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 25px 22px;
}

.parameters__groups {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.parameters__caption {
    color: #808080;
    font-size: 9px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}

.parameters__fields {
    display: grid;

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 28px 36px;
        margin-bottom: 12px;
    }
}

.parameters__fieldset {
    position: relative;

    @media (max-width: 767px) {
        margin: 16px 0;
    }
}

.parameters__fieldset > label {
    z-index: 1;
}

.parameters__fieldset::after {
    position: absolute;
    top: -6px;
    left: -16px;
    display: block;
    width: calc(100% + 16px + 16px);
    height: calc(100% + 6px + 8px);
    border: 1px solid #D1D4E3;
    content: '';
}

.parameters__subtitle {
    position: absolute;
    bottom: calc(100% - 6px);
    z-index: 1;
    padding: 0 5px;
    margin-left: -5px;
    background-color: #edeef3;
}

.parameters__textarea {
    resize: none;
    height: 58px;
}

.parameters__item {
    max-height: max-content;
    margin-bottom: auto;
}

.vich-message {
    display: block;
    max-width: 500px;
    font-weight: 400;
    text-transform: initial;
    margin-bottom: 15px;
}

.order-left__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding:0 16px;
    margin-bottom:16px;
    gap: 16px;
}

.order-left__title {
    color:grey;
}