﻿@import url('./fonts.css');
@import url('./interface.css');
@import url('./anamnesis.css');
@import url('./modals.css');

:root {
    --white: #ffffff;
    --black: #000000;
    --mdblue: #2e6ed9;
    --waterish: #e7f1f1;
    --darkwater: #d1e7ee;
    --blue: #72b5ca;
    --red: #d9645f;
    --green: #008953;
    --orange: #f89235;
    --violet: #9400D3;
    --grey-font: #687079;
    --grey-input: #f5f6f8;
    --grey-border: #dfe1e6;
    --foot-left: #ceca58;
    --foot-right: #e58d3b;
    --shade: rgba(0,0,0,0.2);
    --header-height: 10rem;
    --text-s: 1.2rem;
    --text-m: 1.6rem;
    --text-l: 1.8rem;
    --text-xl: 2rem;
    --title: 2.4rem;
    --border-width: 2px;
    --shadows: 0 0 20px var(--shade);
    --col-xs: 3rem;
    --col-s: 8rem;
    --col-m: 12rem;
    --col-l: 18rem;
    --col-xl: 24rem;
    --col-xxl: 38rem;
}

html {
    font-size: 10px;
    height: 100%;
    overscroll-behavior: none;
}

body {
    font-size: var(--text-m);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: var(--grey-font);
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}


h2 {
    font-size: var(--title);
}

a {
    text-decoration: none;
    color: var(--grey-font)
}

.text_white {
    color: var(--white)
}

.ul_default {
    padding: 0;
    margin: 0;
}

.ul_default li {
    list-style: none;
    padding: 1rem 2rem;
}

input,
textarea {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

header {
    background-color: var(--waterish);
    height: var(--header-height);
}

header > .container {
    --p_b: 1rem;
    height: calc(100% - var(--p_b));
    padding-bottom: var(--p_b);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

header .header--section {
    display: flex;
    flex: 1 1 auto;
}

header .header--right {
    justify-content: flex-end;
}

header #menu {
    margin-right: 2rem;
}

header .search-container {
    width: 70%;
    display: flex;
    justify-content: space-between;
}

header .search-input {
    flex: 1 1 calc(100% - 30px);
    width: calc(100% - 30px);
    background-color: var(--white);
}

    header .patient_search {
        position: absolute;
        margin: 0;
        padding: 0;
        top: 92px;
        z-index: 4;
        width: 54.5rem;
        height: auto;
        max-height: 50rem;
        overflow-y: scroll;
        overflow-x: hidden;
        display: none;
    }

        header .patient_search ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        header .patient_search li {
            background: var(--white);
            border-bottom: 1px solid var(--grey-font);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            margin: 0;
            padding: 8px 15px;
        }

/*
header .search-suggestions {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 92px;
    z-index: 4;
    width: 55rem;
    height: auto;
    display:none;
}

header .search-suggestions option {
    background: var(--white);
    list-style: none;
    border-bottom: 1px solid var(--grey-font);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 8px 20px;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    text-transform: capitalize;
}
*/

header .icon--search {
    flex: 0 0 40px;
    height: 40px;
    background-color: var(--grey-input);
    background-size: 30px;
    margin-left: 2px;
}

header .header--card {
    position: relative;
    background-color: var(--white);
    border: 2px solid var(--grey-border);
    border-radius: 4px;
    padding: 1rem 2rem;
    max-height: 5rem;
    margin-left: 3rem;
    width: 100%;
    overflow: auto;
}

header .header--card-info {
    min-width: 14rem;
    max-width: 16rem;
}

    header .header--card-row {
        display: flex;
        padding-bottom: 4px;
        flex-direction:row;

    }

        header .header--card-row div {
            display: inline-block;
            margin-right: 0.2rem;
            margin-top: 3px;
        }

        header .header--card-row .icon {
            display: inline-block;
            margin-right: 0.5rem;
        }

header .header--card .user_categories {
    display: inline;
    overflow-x: auto;
}

header .header--card .user_categories label {
    background-color: var(--white);
    color: var(--grey-font);
    display: none;
    padding: 0 6px;
    border: 1px solid var(--grey-font);
    border-radius: 2rem;
    min-width: 6rem;
    text-align: center;
    margin-right: 1rem;
    margin-bottom: 0;
}

header .header--card .user_categories label.active {
    display: inline-block;
    background-color: var(--grey-font);
    color: var(--white);
}

    header .header--card .user_categories div {
        display: inline-block;
    }

.scroll-y {
    overflow-y: scroll;
    overflow-x: auto;
}

.scroll {
    overflow-y: scroll;
    overflow-x: auto;
}

.no-scroll {
    overflow: hidden;
}

.hidden {
    display: none;
}

.main_form {
    height: 100%;
    max-height: 100%;
}

.content {
    height: calc(100% - var(--header-height));
    max-height: calc(100% - var(--header-height));
}

.content_edit_picture {
    height: 100%;
    max-height: 100%;
}

.section {
    padding: 2rem 0;
    height: calc(100% - 4rem);
    max-height: calc(100% - 4rem);
}

.section.main .container {
    height: 100%;
    max-height: 100%;
}

.container {
    height: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.card {
    height: calc(100% - 2rem);
    box-shadow: var(--shadows);
    margin-bottom: 2rem;
    display: none;
}

.card.home {
    /*padding: 3rem 4rem;*/
}

.card.active {
    display: block;
}

.card_header {
    display: flex;
    justify-content: space-between;
    background-color: var(--blue);
    padding: 2rem;
}

.card_header_title {
    width: 40rem;
    color: var(--white);
}

.card_header_title .icon {
    display: inline-block;
    vertical-align: middle;
}

.card_header_title span {
    display: inline-block;
    vertical-align: middle;
    font-weight: 800;
    font-size: var(--text-xl);
}

.card_header_function {
    display: flex;
    justify-content: flex-end;
    width: calc(100% - 30rem);
    align-items: center;
    /*margin-bottom: 1rem;*/
}

.table--wrapper {
    height: calc(100% - 9.5rem);
    position: relative;
    z-index: 0;
}

.table--container {
    height: 100%;
    position: relative;
}

.table--wrapper table {
    border-collapse: collapse;
}

.small_table_container {
    position: relative;
    margin: 3rem;
}

table.full_size {
    width: 100%;
    border-collapse: collapse;
}

.table--input td {
    padding: 0.2rem !important;
}

.table--input td.fix {
    padding: 1rem !important;
}

.table--input td input {
    font-size: var(--text-s);
    width: calc(100% - 24px);
}

.table--input td select {
    font-size: var(--text-s);
}

.table--wrapper td {
    padding: 1rem 1rem;
    vertical-align: top;
}

.table--wrapper.nowrap {
    white-space: nowrap;
}

.table--wrapper td .icon {
    margin: auto;
}

.table--wrapper tbody tr:nth-child(even) {
    background-color: var(--waterish);
}

.table--wrapper tbody tr:nth-child(even) .fix {
    background-color: var(--grey-border);
}

.table--wrapper tbody tr:nth-child(odd) .fix {
    background-color: var(--grey-input);
}

.table--wrapper th {
    padding: 1rem 1rem;
    color: var(--blue);
    text-align: left;
    font-weight: 800;
}

.table--wrapper th.col-xs {
    width: var(--col-xs);
    min-width: var(--col-xs);
}

.table--wrapper th.col-s {
    width: var(--col-s);
    min-width: var(--col-s);
}

.table--wrapper th.col-m {
    width: var(--col-m);
    min-width: var(--col-m);
}

.table--wrapper th.col-l {
    width: var(--col-l);
    min-width: var(--col-l);
}

.table--wrapper th.col-xl {
    width: var(--col-xl);
    min-width: var(--col-xl);
}

.table--wrapper .col-50p {
    width: 20rem;
    max-width: 20rem;
    /*min-width: var(--col-xxl);*/
}

.fix {
    position: sticky;
    z-index: 1;
    min-width: 20px;
    max-width: 20px;
    width: 20px;
}

.fix-1 {
    right: 0;
}

.fix-2 {
    right: 40px;
}

.fix-3 {
    right: 80px;
}

.fix-4 {
    right: 120px;
}

.fix-5 {
    right: 160px;
}

.fix-6 {
    right: 200px;
    min-width: 120px;
    max-width: 120px;
    width: 120px;
}

.table--wrapper thead {
    background-color: var(--waterish);
    position: sticky;
    top: 0;
    z-index: 3;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card_header_element {
    margin: 0 1rem;
}

    .card_header_element input {
        position: relative;
    }

.form_container {
    position: relative;
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
}

.form_container.medium {
    width: 30rem;
}

.form_container.big {
    width: 61rem;
}

.table_container {
    position: relative;
    margin: 2rem 0.5rem;
    display: flex;
    flex-direction: column;
}

.input-place {
    display: flex;
}

.input-place input {
    flex: 1 1 100%;
}

.input-place .input--small {
    flex: 0 0 12rem;
    margin-right: 2rem;
}

.flex_form_line {
    display: flex;
}

.user_categories label {
    display: inline-block;
    padding: 0.7rem;
    border: 1px solid var(--grey-font);
    background-color: var(--white);
    color: var(--grey-font);
    border-radius: 2rem;
    min-width: 6rem;
    text-align: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

    .user_categories label.active {
        background-color: var(--grey-font);
        color: var(--white);
    }

.user_categories .cat-hidden {
    position: absolute;
    opacity: 0;
}

.default_form {
    margin: 1em;
    padding: 1em;
    border: solid 1px var(--blue);
    width: calc(100% - 6rem);
    height: calc(100% - 14.5rem);
}

.short_form {
    margin: 1em;
    padding: 1em;
    border: solid 1px var(--blue);
    width: calc(100% - 8rem);
}

.short_form textarea {
    padding: 1rem;
    border: none;
    background-color: var(--grey-input);
    font-size: var(--text-m);
    height: 8rem;
    resize: none;
}

.full_height_form {
    margin: 1em;
    padding: 1em;
    border: solid 1px var(--blue);
    width: calc(100% - 6rem);
    height: calc(100% - 14.5rem);
}

.wrapper_form {
    margin: 1em;
    padding: 1em;
    border: solid 1px var(--blue);
    width: calc(100% - 6rem);
    height: calc(100% - 6rem);
}

.card_header_function .card_header_element {
    margin: 0 1rem;
}

.card_header_function .card_header_element input {
    color: var(--blue);
}

.card_header_function .card_header_element label {
    color: var(--white);
}

.modal_error_wrapper{
    text-align: center;
    padding: 1rem;
}

.modal_error_label{
    color: var(--red);
}

#ui-datepicker-div {
    display: none;
}

.textcolor-red {
    color: deeppink;
}

.logo {
    width: 5rem;
}

    .logo.navigation {
        margin-left: 0.5rem;
    }

    .logo.home {
        margin-right: 1rem;
    }

.container {
    width: 95%;
    max-width: 1300px;
}

.history_date {
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: var(--text-xl);
}

.history-card {
    border: 2px solid var(--grey-border);
    border-radius: 5px;
}

.history_link {
    margin-left: 2rem;
    cursor: pointer;
}

.history_no_link {
    margin-left: 2rem;
}

.history_link_block {
    display: block;
    margin-left: 2rem;
}

.history_link_title {
    display: inline;
}

.history_link_text {
    display: inline-block;
    overflow: scroll;
    max-width: 80%;
}





.subtable--wrapper {
    position: relative;
    z-index: 0;
}

.subtable--wrapper table {
    border-collapse: collapse;
}

    .subtable--wrapper td {
        padding: 1rem 1rem;
        vertical-align: top;
    }

        .subtable--wrapper td .icon {
            margin: auto;
        }

    .subtable--wrapper tbody tr:nth-child(even) {
        background-color: var(--waterish);
    }

        .subtable--wrapper tbody tr:nth-child(even) .fix {
            background-color: var(--grey-border);
        }

    .subtable--wrapper tbody tr:nth-child(odd) .fix {
        background-color: var(--grey-input);
    }

    .subtable--wrapper th {
        padding: 1rem 1rem;
        color: var(--blue);
        text-align: left;
        font-weight: 800;
    }

.subtable--wrapper thead {
    background-color: var(--waterish);
    position: sticky;
    top: 0;
    z-index: 3;
}

.editWorkEntriesTitle {
    background-color: var(--waterish);
    padding: 1rem;
    margin-bottom: 0;
    margin-top: 1rem;
}

.editWorkEntries {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    background-color: var(--waterish);
    margin-top: 0;
}

    .editWorkEntries .left {
        display: flex;
        flex-flow: row wrap;
        padding: 1rem;
    }

    .editWorkEntries .expand {
        flex: 1 1 auto;
        padding: 1rem;
    }

    .editWorkEntries .right {
        flex: 0 0 auto;
        padding: 1rem;
    }

    .editWorkEntries textarea {
        width: calc(100% - 4rem);
        padding: 1rem;
        border: none;
        background-color: var(--grey-input);
        font-size: var(--text-m);
        height: 12rem;
        resize: none;
    }

.editWorkEntries textarea:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem var(--blue);
}

    .editWorkEntries .side_buttons {
        display: flex;
        flex-flow: column nowrap;
        align-items: flex-start;
        justify-content: space-between;
    }

    .editWorkEntries .date_category {
        display: flex;
        flex-flow: column nowrap;
        align-items: flex-start;
    }

        .editWorkEntries .date_category label:nth-of-type(2) {
            margin-top: 1.5rem;
        }

    .editWorkEntries .doubleInput {
        display: flex;
        margin-left: 2rem;
        width: 27rem;
        justify-content: space-between;
    }

.process_container {
    min-height: 10rem;
}

.ownCatalog .catalog_search {
    position: absolute;
    margin-left: 0;
    padding: 0;
    top: 6rem;
    z-index: 40;
    width: 100%;
    height: auto;
    max-height: 20rem;
    overflow-y: scroll;
    overflow-x: hidden;
    display: block;
    box-shadow: 0 0 0 0.25rem var(--blue);
}

    .ownCatalog .catalog_search ul {
        list-style: none;
        padding: 0;
        margin: 0;
        cursor:pointer;
    }

.ownCatalog .catalog_search li {
    background: var(--white);
    border-bottom: 1px solid var(--grey-font);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 8px 15px;
}

    .ownCatalog .catalog_search li :first-child {
        border-top: 1px solid var(--blue);
    }

    /*
.ownCatalog .search-suggestions {
    position: absolute;
    margin-left: 0;
    padding: 0;
    top: 6rem;
    z-index: 40;
    width: calc(100% - 4rem);
    height: auto;
    display: none;
    border: none;
    border-collapse: collapse;
}

    .ownCatalog .search-suggestions option {
        background: var(--white);
        list-style: none;
        border-collapse: collapse;
        border-left: 1px solid var(--blue);
        border-right: 1px solid var(--blue);
        border-bottom: 1px solid var(--blue);
        margin: 0;
        padding: 8px 20px;
        font-size: var(--text-m);
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-weight: 400;
    }
        .ownCatalog .search-suggestions option:first-child {
            border-top: 1px solid var(--blue);
        }
        .ownCatalog .search-suggestions option:checked {
            font-weight: 800;
            background-color: var(--waterish);
        }
*/
    .processDefault {
    }

.processApproved {
    color: var(--orange);
}

.processCharged {
    color: var(--green);
}

.profileInfo {
    width: 100%;
    align-content: center;
    margin: 4rem 2rem;
}






@media (max-width: 1240px) {
    html {
        font-size: 9px;
    }

    .anam_form .lowering {
        height: 20px;
        width: 34px;
    }

    element {
    }

    .anam_form .lowering span {
        top: 1px;
        left: 17px;
    }

    .foot_image {
        max-width: 240px;
        max-height: 240px;
    }

    .screenItem img {
        max-height: 240px;
        max-width: 240px;
    }

    .fix {
        position: sticky;
        z-index: 1;
        padding: 9px;
        min-width: 18px;
        max-width: 18px;
        width: 18px;
    }

    .fix-1 {
        right: 0;
    }

    .fix-2 {
        right: 36px;
    }

    .fix-3 {
        right: 72px;
    }

    .fix-4 {
        right: 108px;
    }

    .fix-5 {
        right: 144px;
    }

    .fix-6 {
        right: 180px;
        min-width: 100px;
        max-width: 100px;
        width: 100px;
    }
}


