﻿html {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

body {
    background-color: rgb(246,246,246);
    margin: 0 auto;
    font-size: 1em;
    font-family:Verdana;
}

.TopPanel
{
    background-color: rgb(46, 63, 70);
    width: 100%;
    display: flex;
    justify-content:space-between;
    align-items: center;
    margin-bottom: 10px;
/*    text-align:right;*/
}

.color1 {
    color: rgb(190, 189, 187);
}

.color2 {
    color: white;
}

.color3 {
    color: rgb(214, 92, 29);
}

.mainpage span{
    font-size: 2em;
}

.mainpage p {
    font-size: 1em;
}

.TopPanel a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

    .TopPanel a:hover {
        color: rgb(255, 73, 0);
    }

.TopPanelLeft {
/*    float: left;*/
    font-family: 'Segoe Print';
    font-weight: bold;
    font-size: 22px;
    padding: 0px 20px;
    display:inline-block;
}

.TopPanelRight {
    padding: 10px;
    display: inline-block;
}

.Hat {
/*    background-color: white;*/
    border-left: solid 10px rgb(255, 73, 0);
    color: rgb(255, 73, 0);
    font-size: xx-large;
    padding: 20px 5%;
    margin: 20px 0;
    
}

.main_wrapper {
    padding-top: 50px;
    background-color: #f9fafb;
}

.card {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb;
}

.main_row {
    align-items: stretch;
}

.content_wrapper {
    border-radius: 10px;
    background-color: #fff;
}

.sidebar {
    background-color: #1c2333;
    border-radius: 10px 0 0 10px;
    height: 100%;
}

.side_menu_header {
    color: #fff;
    font-size: 30px;
    padding: 10px 20px;
    box-sizing: border-box;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar_wrapper.col-md-1 .sidebar_title,
.sidebar_wrapper.col-md-1 .sidebar_menu {
    display: none;
}

.toggle_menu_button {
    cursor: pointer;
}

.sidebar_menu {
    padding: 10px;
}

.MenuOption {
    padding: 10px;
    padding-right: 15px;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition-duration: .1s;
    gap: 10px;
    border-radius: 8px;
}

.MenuOption:hover {
    background-color: #fff;
    color: #1c2333;
}

.main_header {
    width: 100%;
    padding: 15px 15px;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e7eb;
}

.main_inner {
    padding: 15px;
    box-sizing: border-box;
}

.MenuContent {
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    /*    background-color:aquamarine;*/
}
.MenuContentFull {
    width: 100%;
    display: flex;
    flex-direction: column;
    /*    background-color:aquamarine;*/
}

.MenuFull{
    display: inline-block;
    width: 100%;
    background-color: white;
    padding: 3% 0 3% 3%;
}

.Menu
{
    display: inline-block;
    width: 23%;
    background-color:white;
    padding: 3% 0 3% 3%;
    box-shadow:rgba(230, 230, 230, 1) 0px 0px 10px;
}

.MenuHeader {
/*    border-left: solid 5px rgb(255, 73, 0);*/
    color: rgb(255, 73, 0);
    padding: 0px 0px 1% 5%;
    font-size: x-large;
}

.Content {
    /*    margin-left: 2%;*/
    padding: 5% 3%;
    width: 75%;
    float: right;
    display: inline-block;
    background-color: white;
    box-shadow: rgba(230, 230, 230, 1) 0px 0px 10px;
}

.ContentFull {
    /*    margin-left: 2%;*/
    padding: 5% 3%;
    width: 100%;
    float: right;
    display: inline-block;
    background-color: white;
    box-shadow: rgba(230, 230, 230, 1) 0px 0px 10px;
}

.CarBlock {
    width: 95%;
    /*background-color: yellow;*/
    border-left: solid 10px rgb(255, 73, 0);
    padding-left: 5%;
    padding-bottom:2%;
    height:auto;
}

.CarBlock img {
    width: 30%;
    min-width: 30%;
    min-height: 100px;
    height: auto;
    border: dotted 1px black;
}

.CarHeader {
    color: rgb(255, 73, 0);
    font-size: xx-large;
    margin: 20px 0;
}

.CarContent {
    width:60%;
    float:right;
}

.CarContent table {
    width: 100%;
}

.OrangeButton {
    background-color: rgb(255, 73, 0);
    padding: 10px;
    color: white;
    font-size: 1em;
    font-family: Verdana;
    border:none;
}

.button{
    padding: 20px 0px;
}

.cabinetBlock div
{
    margin-top: 2%;
}
.cabinetBlock input {
    width: 50%;
}

.table_post {
    width: 100%;
    border-spacing: 0px 20px;
    margin: 10px 0px;
    
}

.table_post td {
    /*width: 70%;*/
    border: 1px solid lightgray;
}
.table_post tr {
    margin: 5px;
    background-color: rgb(246,246,246);
}

.table_post div {
    text-align: left;
    margin: 10px;
    padding: 5px 5px;
    background-color: white;
    border: 1px solid lightgray;
}

.table_post div p {
    text-wrap: initial;
    margin:10px 5px;
}

.table_post img {
    max-height:200px;
    max-width:200px;
}

.search input#input_text {
    width:100%
}

.search input#input_btn {
    width: 100px;
    height: 40px;
}

div.flexer div {
    display:inline-table;

}

div.pleft {
    width:60%;
    display:inline-block;
    margin:0;
    border:none;
}

div.pright {
    width: 30%;
    display: inline-block;
    margin: 0;
    border: none;
    text-align:right;
}
.table__wrapper {
    overflow-x: scroll;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

    .table-bordered th,
    .table-bordered td {
        border: 1px solid #dee2e6;
    }

    .table-bordered thead th,
    .table-bordered thead td {
        border-bottom-width: 2px;
    }

.text-lg-center {
    text-align: center !important;
}

.food_service_row_work {
    color: black;
    background-color: white !important;
}

.food_service_overloaded {
    color: black;
    background-color: #DDCCFF !important;
}

.food_service_row_not_work {
    color: black;
    background-color: #FFC09A !important;
}

.food_service_block_stop {
    color: #888888 !important;
    /*background-color: #FFFF66;*/
    background-color: #EEEEEE !important;
}

.sending_scheduled {
    background-color: #FFFFFF !important;
}

.sending_completed {
    background-color: #AAFFAA !important; 
}

textarea {
    width: 100%;
    box-sizing: border-box;
}

.popups {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    /*display: none;*/
}

.popup {
    position: absolute;
    margin: 10px;
    padding: 15px;
    text-align: center;
    vertical-align: central;
    width: 25%;
    background-color: white;
    top: 10%;
    left: 35%;
    /*display: none;*/
    justify-content: center;
    align-items: center;
    border: 5px solid rgb(255, 73, 0);
    border-radius: 8px;
}

.popup div{
    margin: 20px 0px;
}

@media (max-width: 1100px) {
        .MenuContent {
        display: flex;
        flex-direction: column;
    }
    .Menu {
        width: 100%;
        /*margin-bottom: 20px;*/
    }
    .Content {
        width: 100%;
    }
    .TopPanel {
        font-size: 3vw;
        display: flex;
        align-items: center;
        justify-content: space-between; 
    }

    .popup{
        width: 80%;
        margin: 10%;
        top: 70%;
        left: 0%;
    }
}

table#table_listen tr td input {
    border: none;
}

.excelTable {
    border: 1px solid gainsboro;
    border-collapse: collapse;
}

.excelTable td {
    border: 1px solid gainsboro;
}

.excelTable td input[type=number] {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    font-size: 100%;
}

    .excelTable td input[type=text] {
        width: 100%;
        height: 100%;
        padding: 0;
        font-size: 100%;
    }

.excelTable thead {
    display: table; /* to take the same width as tr */
    width: calc(100% - 17px); /* - 17px because of the scrollbar width */
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.form_main {
    text-align: center;
}

    .form_main input,
    .form_main select {
        text-align: center;
    }

.main_button_wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

    .main_button_wrapper .btn {
        width: 100%;
    }

.products_slider {
    padding-top: 30px;
    overflow-x: auto;
    display: flex;
    flex-direction: row;
}

.product {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.175);
    min-width: 320px;
}

.product_elem {
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.175);
}

    .product_elem img {
        margin: auto;
        width: 90px;
    }

.product_additional {
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.175);
    cursor: pointer;
}

.product_slider_wrapper {
    padding: 10px;
    box-sizing: border-box;
}

.product_slider {
    overflow-x: auto;
    display: flex;
    flex-direction: row;
}

.modal_inner {
    box-sizing: border-box;
    width: 450px;
    padding: 30px;
    border-radius: 5px;
    background-color: #fff;
    margin: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.175);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.myTooltip {
    position: relative; /* Устанавливаем положение относительным для span */
}

.myTooltipActions {
    display: none; /* Скрываем всплывающий блок по умолчанию */
    position: absolute; /* Фиксированное позиционирование */
    top:-710%;
    left: 50%; /* Начинаем позиционировать слева */
    transform: translateX(-50%); /* Центрируем элемент относительно левой позиции */
    white-space: nowrap;
    padding: 10px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000; /* Высокий z-index для поверхностного расположения */
    overflow-y: auto; /* Добавляем вертикальную прокрутку при необходимости */
}

.myTooltipNoContentActions {
    display: none; /* Скрываем всплывающий блок по умолчанию */
    position: absolute; /* Фиксированное позиционирование */
    top:-200%;
    left: 50%; /* Начинаем позиционировать слева */
    transform: translateX(-50%); /* Центрируем элемент относительно левой позиции */
    white-space: nowrap;
    padding: 10px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000; /* Высокий z-index для поверхностного расположения */
    overflow-y: auto; /* Добавляем вертикальную прокрутку при необходимости */
}

.tooltipContent {
    display: none; /* Скрываем всплывающий блок по умолчанию */
    position: absolute; /* Фиксированное позиционирование */
    top: -500%; /* Начинаем от верха экрана */
    bottom: 0; /* Заканчиваем внизу экрана */
    left: 50%; /* Начинаем позиционировать слева */
    transform: translateX(-50%); /* Центрируем элемент относительно левой позиции */
    max-width: 300px; /* Ограничиваем максимальную ширину */
    min-height: 300px;
    padding: 10px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000; /* Высокий z-index для поверхностного расположения */
    overflow-y: auto; /* Добавляем вертикальную прокрутку при необходимости */
}

    .tooltipContent span {
        white-space: nowrap;
    }

    /* Псевдокласс :hover для ссылки внутри span */
    .myTooltip:hover .tooltipContent, .tooltipContent:hover {
        display: block;
    }

.myTooltip:hover .myTooltipActions, .myTooltipActions:hover {
    display: block;
}

.myTooltip:hover .myTooltipNoContentActions, .myTooltipNoContentActions:hover {
    display: block;
}

.bannerTextBorder {
    padding: 10px;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type='number'].halfWidth {
    width: 80px;
}

.orderCartTable {
    caption-side: top;
}

.orderCartTable th,
.orderCartTable td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
}

.orderCartTable caption {
}

p.orderComment {
    border: 1px solid gray;
}

#dialogs {
    border-right: 2px solid #ccc;
    overflow-y: auto;
    height: 800px;
}

#dialogDetails {
    padding: 10px;
    overflow-y: auto;
    height: 800px;
}

#dialogList {
    list-style-type: none;
    padding: 0;
}

#dialogList li:hover {
    background-color: #f0f0f0;
}

#messageHistory {
    list-style-type: none;
    padding: 0;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.sendings_row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
/*    align-items: stretch;*/
    gap: 5px;
}

.weekly_settings {
    position: sticky !important;
    z-index: 100;
    top: 10px;
    left: 0;
}

.sendings_row_elem .card {
    min-height: 100%;
}

.weekly_settings__options_row {
    display:grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.weekly_settings__checkbox {
    margin-right: 5px;
}

.card-header_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.card_header_title_row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.message_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat_settings {
    display: flex;
    gap: 5px;
}

.input_wrapper {
    cursor: pointer;
    padding: 10px;
    box-sizing: border-box;
    color: #333;
    border-radius: 8px;
    border: 1px solid #1c2333;
}

.input_wrapper input {
    display: none;
}

.input_wrapper.active,
.input_wrapper:hover {
    background: #1c2333;
}

.input_wrapper.active span,
.input_wrapper:hover span {
    color: #fff;
}

.dialog_header {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 80% 1fr;
}

.dialogs_list,
.messages_list {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.messages_list {
    margin: 0;
    padding: 0;
    margin-top: 20px;
}

.dialog_from {
    color: #1E1E1E;
}

.dialog_date {
    font-size: 13px;
    opacity: .7;
    text-align: right;
}

.dialog_elem {
    list-style: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    border-radius: 8px;
    transition-duration: .15s;
    border: 1px solid transparent;
}

.dialog_elem:hover,
.dialog_elem.active {
    background-color: #E6F0FF;
}

.dialogs_list {
    padding: 0;
    margin: 0;
}

.message_item {
    list-style: none;
    border: 1px solid transparent;
    border-radius: 8px 8px 8px 2px;
    background: #E6F0FF;
    padding: 10px;
    box-sizing: border-box;
}

.message_date {
    color: #333;
    opacity: .7;
    display: block;
    margin-bottom: 5px;
}

.dialog_message {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 50px;
    text-overflow: ellipsis;
    width: 100%;
    color: #6B6B6B;
    margin: 10px 0;
}

.dialog_elem.unread,
.message_item.unread {
    border: 1px solid red;
}