body {
    position: relative;
}

*:focus{
    outline: 0 !important;
}

#header {
    height: 50px;
    box-sizing: border-box;
    padding: 5px 0;
    box-shadow: 0px 2px 4px 0px rgb(0 0 0 / 25%);
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 100;
}

#footer {
    height: 70px;
    box-sizing: border-box;
    padding: 5px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#footer span {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

#footer button {
    width: 70px;
}

.bottom_block {
    background: white;
    position: fixed;
    bottom: 70px;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0px -2px 4px 0px rgb(0 0 0 / 25%);
}

#body {

    padding-top: 70px;
    padding-bottom: 150px;
    min-height: calc(100vh - 220px) !important;

}

#body.game{
    padding-top: 95px;
}

.crm_input {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid;
    font-size: 16px;
    padding: 7px 0;
}

.crm_label {
    width: 100%;
    display: block;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid;
    font-size: 16px;
    line-height: 16px;
    padding: 7px 0;
}

.delimiter {
    height: 1px;
    border-bottom: 1px solid;
    padding-top: 10px;
    margin-bottom: 10px;
}

.margin_top_5 {
    margin-top: 5px;
}

.margin_top_10 {
    margin-top: 10px !important;
}

.margin_top_20 {
    margin-top: 20px !important;
}

.margin_top_30 {
    margin-top: 30px !important;
}

.margin_left_10 {
    margin-left: 10px !important;
}

.margin_right_10 {
    margin-right: 10px !important;
}

.margin_bottom_10 {
    margin-bottom: 10px !important;
}

.margin_bottom_20 {
    margin-bottom: 20px !important;
}

.margin_bottom_30 {
    margin-bottom: 30px !important;
}

.margin_h_20{
    margin-left: 20px;
    margin-right: 20px;
}

.rounded{
    border-radius: 5px;
}

.padding_10 {
    padding: 10px;
    box-sizing: border-box;
}

.padding_20 {
    padding: 20px;
    box-sizing: border-box;
}

.padding_h_10{
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.padding_h_20{
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.padding_v_10{
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
}

.crm_select {
    border: 1px solid;
    border-radius: 5px;
    padding: 5px 0;
    text-align: left;
    font-size: 14px;
}

.height_30 {
    height: 30px;
}

.crm_button {
    padding: 6px 15px;
    border: 0;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 1px 2px 2px #dfdfdf;
    background-color: transparent;
    box-sizing: border-box;
}

.crm_button img {
    vertical-align: middle;
    margin-right: 10px;
}

.crm_button span {
    font-size: 18px;
    line-height: 18px;
    vertical-align: middle;
}

.crm_button.small {
    padding: 4px 15px;
}

.crm_button.small span {
    font-size: 14px;
    line-height: 14px;
}

.crm_button.small img {
    margin-right: 7px;
    height: 16px;
}

.crm_textarea {
    border: 1px solid;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.bordered {
    border-style: solid !important;
    border-width: 1px;
}

.crm_button img {
    height: 21px;
    width: auto;
}

.button_icon {
    border: 0;
    background: transparent;
    padding: 5px;
    margin: 0;
    display: inline-block;
    text-align: center;
}

.font_size_18 {
    font-size: 18px;
}

.font_size_16 {
    font-size: 14px;
}

.font_size_14 {
    font-size: 14px;
}

.font_size_12 {
    font-size: 12px;
}

.save_block_button_placeholder {
    width: 50px;
}

.crm_item_input {
    font-size: 16px;
    display: inline-block;
    width: 50px;
    padding: 5px;
    text-align: right;
    border-radius: 5px;
    border: 1px solid;
    margin-left: 10px;
    line-height: 16px;
}

.crm_item_currency {
    font-size: 12px;
    padding-left: 10px;
    display: inline-block;
    width: 24px;
    text-align: left;
    text-transform: uppercase;
}

.crm_item_currency_small {
    font-size: 10px;
    padding-left: 4px;
    display: inline-block;
    width: 15px;
    text-align: left;
    text-transform: uppercase;
}

.crm_text_currency {
    font-size: 12px;
    display: inline-block;
    text-align: left;
    text-transform: uppercase;
}

.green_table {}

.green_table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 5px 5px 0 0;
}

.green_table td {
    padding: 5px;
    font-size: 14px;
    border: 1px solid;
}

.green_table_center {
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px solid white !important;
    border-right: 1px solid white !important;
}

.green_table_right {
    border: 0 !important;
    border-radius: 0 5px 0 0;
}

.green_table_left {
    border: 0 !important;
    border-radius: 5px 0 0 0;
}

.crm_date_input {
    border: 0;
    color: grey;
    font-size: 14px;
    width: 65px;
    display: inline-block;
}

.crm_modal_wrapper {
    background: #000000c7;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.crm_modal_block {
    background: white;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 10px;
    padding: 10px 10px 30px 10px;
}

.crm_modal_button_close {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

.crm_modal_content {
    overflow-y: auto;
    height: calc(100vh - 100px);
}

.z_100 {
    z-index: 100;
}

.z_200 {
    z-index: 200;
}

.z_300 {
    z-index: 300;
}

.loader {
    position: fixed;
    top: 50vh;
    background: white;
    padding: 30px;
    left: 50%;
    margin-left: -75px;
    margin-top: -75px;
    border-radius: 75px;
    z-index: 9999;
    box-shadow: 0 0 28px #00000042;
    border: 1px solid #d6d6d6;
}

.task_header_row {
    margin-bottom: 10px;
}

.date_picker .datepicker-inline .datepicker {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.modal_header {
    font-family: "Neucha", sans-serif;
    text-align: center;
    text-transform: uppercase;
    font-size: 18px;
}

.footer_side_button {
    width: 22%;
    margin: 0 10px;
}

.footer_side_button img {
    height: 28px;
    width: auto;
}

.input-sizer {
  display: inline-grid;
    vertical-align: top;
    align-items: center;
    position: relative;
    border: lightgrey solid 1px;
    padding: 0.25em 0.5em;
    min-width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}
.input-sizer.stacked {
  padding: 0.5em;
  align-items: stretch;
}
.input-sizer.stacked::after,
.input-sizer.stacked input,
.input-sizer.stacked textarea {
  grid-area: 2/1;
}
.input-sizer::after,
.input-sizer input,
.input-sizer textarea {
  width: auto;
  min-width: 1em;
  grid-area: 1/2;
  font: inherit;
  padding: 0.25em;
  margin: 0;
  resize: none;
  background: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;

}
.input-sizer span {
  padding: 0.25em;
}
.input-sizer::after {
  content: attr(data-value) " ";
  visibility: hidden;
  white-space: pre-wrap;
}
.input-sizer:focus-within {
  outline: none;
  box-shadow: none;
}
.input-sizer:focus-within > span {
  color: blue;
}
.input-sizer:focus-within textarea:focus,
.input-sizer:focus-within input:focus {
  outline: none;
}

.input-sizer {
  box-shadow: none;
}
.input-sizer > span {
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: bold;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.orders_qty{
    width: 17px;
    display: block;
    position: absolute;
    font-size: 13px;
    line-height: 13px;
    padding: 2px 0;
    top: 0;
    border-radius: 11px;
    right: 0;
}

#chat{
    position: absolute;
    border: 0;
    padding: 0;
    margin: 0;
    width: 48px !important;
    height: 48px;
    background: transparent;
    right: 10px;
}

#chat img{
    width: 48px;
}

.clear_input{
    position: absolute;
    background: #a7a7a7;
    margin: 0 -18px;
    border-radius: 5px 0 0 5px;
    padding: 1px;
}


#ios_helper{
    background: #7dc4bd;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.ios_top{
    background: url('/background/ios_pwa_top.png') top left no-repeat;
    background-size: contain;
    width: 100%;
    height: 50vh;
    position: absolute;
    top: 0;
    left:0;
}

.ios_bottom{
    background: url('/background/ios_pwa_bottom.png') bottom left no-repeat;
    background-size: contain;
    width: 100%;
    height: 50vh;
    position: absolute;
    bottom: 0;
    left:0;
}

.header_uid{
    position: absolute;
    right: -6px;
    transform: rotate(-90deg);
    top: 14px;
    font-size: 11px;
}


.bottom_block.saved:after{
    content: "Сохранено";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 20px);
    background: white;
    z-index: 1000;
    text-align: center;
    padding-top: 20px;
    color: #e48998;
    text-transform: uppercase;
    font-family: 'Neucha',sans-serif;
}

.game_wrapper{
    background: #f3f3f3;
    padding: 5px 10px;
    margin-top: 5px;
    position: relative;
}

.game_menu{
    position: absolute;
    width: 100%;
    left: 0;
    top: 32px;
}

.game_menu_wrapper{
    background: white;
    margin: 0 10px;
    padding: 20px 10px;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px #e1e1e1;
}

.g_content{
    padding: 0 10px;
}

.g_row{
    margin-top: 10px !important;
}

.gt_step{
    margin-right: 9px;
}


.present_h{
    font-size: 12px;
}

.present_i{
    height: 56px;
    margin-bottom: 10px;
}
@media (min-width: 600px) {

    .bottom_block {
        background: white;
        position: fixed;
        bottom: 70px;
        width: 600px;
        padding: 10px 0;
        box-shadow: 0px -2px 4px 0px rgb(0 0 0 / 25%);
    }

    .crm_modal_block {
            background: white;
            border-radius: 5px;
            box-sizing: border-box;
            margin: 10px auto;
            padding: 10px 10px 30px 10px;
            width: 600px;
    }

    .main_modules{

    }

    .center_item {
        width: auto !important;
        text-align: center;
    }

}