* {
    box-sizing: border-box;
    font-family: Montserrat, Arial, sans-serif;
}

body {
    /*font-family: 'Arial', sans-serif;*/
    /*font-size: 18px;*/
    margin: 0;
    padding: 0;
    color: #000000;
    font-size: 14px;
    font-weight: 300;
    background-color: #f4f4f4;
    line-height: 1.4;
}
body.dish-editor {
    background-color: #fff;
}
body.dish-manager {
    background-color: #fff;
}

input {
    height: 40px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

strong {
    font-weight: 500;
}

/* For WebKit browsers (Chrome, Safari, etc.) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

a {
    cursor: pointer;
}

p {
    /*font-size: 16px;*/
    margin: 0;
}

h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 400;
    color: #333;
}
h3 {
    font-weight: 500;
    font-size: 18px;
}

button {
    padding: 5px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s;
    /*min-height: 40px;*/
}
button:hover {
}

.button {
    padding: 5px 10px;
    margin: 0;

}

.invalid {
    color: #ff4d4d;
}
.w100 {
    width: 100%;
}

.flat-button {
    cursor: pointer;
    /*border: 1px solid #007bff;*/
    border: none;
    color: #007bff;
    background-color: transparent;
}

.pixel {
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    line-height: 0 !important;
    left: -1000px !important;
}

@media (max-width: 768px) {
    button {
        font-size: 12px;
    }
}

.hidden {
    display: none !important;
}
.flex {
    display: flex !important;
}

.body-container {
    display: flex;
}

.main-content {
    width: 100%;
}

/* Общие стили для sidebar */
.sidebar-header {
    margin-bottom: 40px;
}
.sidebar {
    background-color: #5e273c;
    color: white;
    width: 260px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    /*box-shadow: rgba(0, 0, 0, 0.5) 0 0 6px;*/
    flex-shrink: 0;
    margin: 20px;
    border-radius: 10px;
    height: 95%;
    position: fixed;
    z-index: 2;
    overflow-y: auto;

}
.sidebar a {
    text-decoration: none;
}
.sidebar a:hover {
    text-decoration: none;
}
.sidebar a:active {
    text-decoration: none;
}
.sidebar h2 {
    font-family: "Advent Pro", "Courgette";
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 0;
    margin-block: 0;
    margin-top: 20px;
    margin-left: 10px;
    font-size: 24px;
    /*text-transform: uppercase;*/
    color: #ffffff;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /*margin-top: 40px;*/
}
.sidebar ul li {
    padding: 10px;
}
.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}
.sidebar ul li a i {
    color: #c8b2ba;
    font-size: 16px;
}
.sidebar ul li.active a {
    font-weight: 500;
}
.sidebar ul li.active {
    background-color: #4c2a37;
    border-radius: 4px;
}
.sidebar ul li:hover {
    background-color: #9f4266;
}

.sidebar hr {
    border-bottom: 1px solid #fff;
    border-top: none;
    width: 100%;
    display: block;
}
.sidebar h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 20px 10px 5px    10px;
    text-transform: uppercase;
}

.section {
    /*margin-bottom: 20px;*/
}
.verify-phone-required {
    display: none;
    padding: 10px;
    font-size: 12px;
    border-radius: 5px;
    border: 1px solid #fff;
    background-color: #fff;
    color: #000;
    font-weight: 500;
}
.verify-phone-required img {
    margin-bottom: -4px;
}
.verify-phone-required button {
    font-size: 14px;
    margin-top: 10px;
}

.sidebar .verify-phone-required {
    display: block;
}

section.section {
    /*margin-bottom: 20px;*/
    /*margin-top: 20px;*/
}
section.section .verify-phone-required {
    background-color: #FFf7dd;
}

.lang-block {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
ul.lang-block li {
    padding: 4px;
}
ul.lang-block li a {
    font-size: 10px;
}

.lang-option {
    /*font-size: 12px;*/
    color: black;
    /*padding: 8px 8px 10px 0;*/
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.lang-option:hover {
    /*background-color: #ddd;*/
}
.lang-option img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}
.lang-option a {
    padding: 0;
    background-color: transparent;
}


.dish-editor .sidebar hr {
    border: none;
    border-bottom: 1px solid #f9f9f9;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        margin: 0;
        transition: all .3s;
        margin-left: -350px;
        bottom: 0;
        border-radius: 0;
        height: unset;
    }
    .sidebar.active {
        margin-left: 0;
    }
}


.chef-main-content {
    max-width: 1024px;
    width: 1024px;
    margin: 0 auto;
    padding: 0 20px 0 260px;
}
.chef-main-content.dish-editor {
    padding: 0 0 0 0;
    /*min-height: 100vh;*/
}
.menu-btn {
    border: none;
    background-color: transparent;
    /* width: 32px; */
    height: 32px;
    display: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.menu-btn i {
    font-size: 16px;
}

.dish-manager-header {
    background-color: #f0f0f0;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .chef-main-content {
        padding: 0;
        margin: 0;
        width: 100%;
        margin-top: 50px;
    }
    .menu-btn {
        display: block;
        font-size: 19px;
    }

    .dish-editor .chef-profile-header {
        flex-wrap: wrap;
        /*justify-content: space-between;*/
        padding-bottom: 5px;
    }
    .dish-editor .chef-profile-header h1 {
        order: 100;
        font-size: 14px;
    }

    .dish-manager .chef-main-content {
        margin-top: 33px;
    }
}

.chef-header {
    margin-bottom: 20px;
}
.chef-icon {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}
.chef-header h1 {
    font-size: 24px;
    margin: 0;
    color: #333;
}
.chef-header p {
    color: #666;
    margin: 5px 0 20px;
}
.chef-todo {
    text-align: left;
}
.chef-todo h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}
.chef-todo ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.chef-task {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}
.chef-task:hover {
    background: #f0f0f0;
}
.chef-task-icon {
    width: 40px;
    height: auto;
    margin-right: 15px;
}
.chef-task-content {
    flex-grow: 1;
}
.chef-task-content h3 {
    font-size: 16px;
    margin: 0;
    color: #333;
}
.chef-task-content p {
    margin: 5px 0 0;
    color: #666;
}
.chef-arrow {
    font-size: 24px;
    color: #ccc;
    margin-left: auto;
}




.radioblock-container {
    /*background-color: white;*/
    /*padding: 20px;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
    /*max-width: 500px;*/
    /*width: 100%;*/
    /*margin: auto;*/
}
.radioblock-container h2 {
    /*font-size: 24px;*/
    /*margin-bottom: 10px;*/
}
.radioblock-container p {
    /*font-size: 16px;*/
    /*color: #666;*/
    /*margin-bottom: 20px;*/
}
.radioblock-option {
    margin-bottom: 20px;
}
.radioblock-option label {
    /*font-size: 18px;*/
    display: block;
    cursor: pointer;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.radioblock-option input {
    margin-right: 10px;
    vertical-align: middle;
}
.radioblock-option span {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 5px;
    margin-left: 28px; /* Увеличенное отступление для выравнивания */
}
/* Стили для input radio */
.radioblock-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 10px;
    cursor: pointer;
}
.radioblock-option input[type="radio"]:checked::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.chef-menu {
    width: 100%;
    /*max-width: 1200px;*/
    /*margin: 0 auto;*/
    /*padding: 20px;*/
    /*background-color: #f8f8f8;*/
    /*box-sizing: border-box;*/
}
.chef-menu-filters {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.chef-menu-filters h2 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}
.chef-menu-filter-group {
    margin-bottom: 20px;
}
.chef-menu-filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}
.chef-menu-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.chef-menu-catalog {
    /*background-color: white;*/
    /*padding: 20px;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}
.chef-menu-catalog h2 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chef-menu-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ff4d4d;
    margin-bottom: 20px;
}
.chef-menu-add-dish {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 0 5px 0;

    flex-shrink: 0;
}
.chef-menu-add-dish i {
    margin-right: 5px;
}
.chef-menu-add-dish:hover {
    background-color: #e60000;
}

.chef-menu-table-header {
    display: flex;
    margin-bottom: 10px;
}
.chef-menu-table {
    width: 100%;
    border-collapse: collapse;
    gap: 20px;
    display: flex;
    flex-direction: column;
}
.chef-menu-table h4 {
    padding: 0;
    margin: 0;
}
.chef-menu-table a {
    text-decoration: none;
    display: flex;
    gap: 5px;
    align-items: baseline;
    margin: 4px 0;
}
.chef-menu-table th, .chef-menu-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}
.chef-menu-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}
.chef-menu-table-row {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.chef-menu-table-row-details {
    display: flex;
    flex-direction: column;
    width: calc(100% - 110px);
    flex-shrink: 1;
}
.chef-menu-table-row-common {
    display: flex;
    flex-direction: column;
}
.chef-menu-table-row-variants-first {
    width: 300px;
    display: flex;
    gap: 10px;
}
.chef-menu-table-row-variants {
    margin-top: 10px;
    width: 100%;
    margin-left: 110px;
}
.chef-menu-table-row-variants ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.chef-menu-table-row-variants li {
    display: flex;
    gap: 5px;
}
.chef-menu-table-row-variant-img {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.chef-menu-table-row-image {
    width: 100px;
    margin-right: 10px;
}
.chef-menu-table-row-image>div {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.chef-menu-table-row-price {
    width: 100px;
    width: 100%;

    /*text-align: right;*/
    margin-right: 10px;
}
.chef-menu-table-row-price>div {
    line-height: 30px;
    font-weight: 500;
    font-size: 10px;

}
.chef-menu-table-row-actions {
    /*width: 300px;*/
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chef-menu-table-row-actions i {
    font-size: 10px;
    color: #666;
    width: 11px;
    text-align: center;
}
.chef-menu-table-row-status {
    /*width: 120px;*/
}
.chef-menu-table-row-status .dish-status {
    display: inline-block;
    text-align: center;
}

.chef-menu-table-row-line-1 {
    display: flex;
    justify-content: space-between;
}
.chef-menu-dish-common-stats {

}
.chef-menu-dish-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.chef-menu-table-row-text {
    display: -webkit-box;        /* Flexbox для старых браузеров */
    -webkit-line-clamp: 2;       /* Ограничение количества строк */
    -webkit-box-orient: vertical;
    overflow: hidden;            /* Обрезка текста */
    text-overflow: ellipsis;     /* Добавление троеточия */
    cursor: pointer;
}


.chef-menu-placeholder {
    background-color: #f0f0f0;
    padding: 20px;
    /*border: 1px dashed #ccc;*/
    border-radius: 5px;
    color: #999;
    cursor: pointer;
}
.chef-menu-status {
    display: inline-block;
    padding: 0 10px;
    border-radius: 5px;
    background-color: #f0ad4e;
    color: white;
    height: 30px;
    line-height: 30px;
}
.chef-menu-availability {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.chef-menu-day {
    display: inline-block;
    padding: 5px;
    border: 1px solid #ff4d4d;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #ff4d4d;
}
.chef-menu-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.chef-menu-prev, .chef-menu-next {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}
.chef-menu-prev i, .chef-menu-next i {
    font-size: 16px;
}
.chef-menu-page {
    margin: 0 10px;
    font-size: 16px;
    color: #333;
}
.chef-menu-delete {
    color: #ff4d4d;
}
.chef-menu-delete:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .chef-menu {
        /*padding: 10px;*/
    }

    .chef-menu-add-dish {
        padding: 8px 16px;
        font-size: 14px;
    }

    .chef-menu-select {
        padding: 8px;
    }

    .chef-menu-table th, .chef-menu-table td {
        padding: 8px;
    }

    .chef-menu-pagination {
        flex-direction: column;
    }

    .chef-menu-page {
        margin: 5px 0;
    }
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.flex-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dish-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    min-height: 500px;
}
.dish-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /*justify-content: center;*/
    margin-bottom: 20px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
    margin-top: 20px;
    justify-content: space-between;
}
.dish-nav-item {
    text-decoration: none;
    color: #999;
    margin: 0 10px;
    cursor: pointer;
}
.dish-nav-item.active {
    font-weight: bold;
    color: #333;
}
.dish-nav span {
    color: #999;
}

.dish-title-input {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid #ff4d4d;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border-radius: 0;
    padding-left: 100px;
}
.dish-title-input::placeholder {
    color: #aaa;
}
.dish-title-input:focus {
    border-color: #e60000;
}

.dish-example {
    text-align: center;
    font-size: 16px;
    color: #999;
    margin-top: 10px;
}

.dish-description {
    width: 100%;
    height: 250px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    min-width: 100%;
    max-width: 100%;
}
.dish-description-counter {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-bottom: 20px;
}
.dish-description-fill-with-ai {
    display: flex;
    background-color: #e1f0ff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #000;
    border: 1px solid #9cbcdc;
}

.dish-tips {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.dish-tip {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}
.dish-tip i {
    font-size: 24px;
    color: #333;
}
.dish-tip h2 {
    font-size: 16px;
    margin: 0 0 5px 0;
}
.dish-tip p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.dish-tip a {
    color: #007bff;
    text-decoration: none;
}
.dish-tip a:hover {
    text-decoration: underline;
}

.dish-order-limit {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.dish-order-limit p {
    /*font-size: 14px;*/
    /*color: #666;*/
    /*margin: 0 0 10px 0;*/
}
.dish-order-limit input {
    /*min-width: 100px;*/
    text-align: right;
    font-size: 18px;
    font-weight: 500;
}

.dish-ordering-rules {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dish-ordering-rules-item {
    display: flex;
    gap: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 10px;
}
.dish-ordering-rules-item p {
    font-weight: 300;
    color: #999;
}
.dish-order-limit-block {
    display: flex;
    gap: 30px;
}
.dish-order-limit-block p i {
    color: #666;
    margin-right: 5px;
}
.dish-order-limit-block>div:first-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dish-order-limit-block>div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 150px;
    flex-shrink: 0;
    align-items: baseline;
}
.dish-order-limit-preparation {
    display: flex;
    gap: 10px;
}
.dish-order-limit-preparation label {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    /* text-align: right; */
    width: 100%;
    /* flex-shrink: 0; */
}
.dish-order-limit-block input {
    width: 50px;
}


.dish-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    height: 74px;
}
.dish-progress-bar {
    width: 100%;
    background-color: #f0f0f0;
    height: 5px;
    margin: 0 0;
    position: relative;
}
.dish-progress {
    background-color: #ff4d4d;
    height: 100%;
    width: 0;
    transition: width 0.3s;
}
.dish-back-button, .dish-next-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    bottom: 10px;
}
.dish-back-button {
    left: 20px;
}
.dish-next-button {
    right: 20px;
}

.dish-back-button:hover, .dish-next-button:hover {
    background-color: #e60000;
}
.dish-tab {
    display: none;
    margin-bottom: 80px;
}
.dish-tab.active {
    display: block;
}
.compact .dish-tab {
    margin-bottom: 20px;
}

.dish-nav-header {
    display: none;
}

.dish-save-button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    bottom: 10px;
    right: 20px;
}
.dish-save-button:hover {
    background-color: #45a049;
}

.day-selector {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    /*margin-top: 40px;*/
}
/*.day-selector h2 {*/
/*    font-size: 16px;*/
/*    font-weight: bold;*/
/*    margin-bottom: 5px;*/
/*}*/
.day-selector p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.day-selector-days {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.day-selector-day {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #777;
    border-radius: 50%;
    cursor: pointer;
    color: #777;
    font-weight: 400;
}
.day-selector-day.active {
    border-color: #007bff;
    background-color: #e1f0ff;
}

.dish-detail {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /*padding: 20px;*/
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    /*font-family: Arial, sans-serif;*/
}
.dish-detail h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.dish-detail h3 {
    /*font-size: 16px;*/
    /*font-weight: bold;*/
    margin-bottom: 10px;
}
.dish-detail p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.food-type-options, .spice-level-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.food-type-option, .spice-level-option {
    width: 100px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #777;
    color: #777;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    background-color: #fff;
}
.food-type-option.active, .spice-level-option.active {
    border-color: #007bff;
    background-color: #e1f0ff;
}
.food-type-option i, .spice-level-option i {
    font-size: 24px;
    margin-bottom: 5px;
}
.food-type-option span, .spice-level-option span {
    font-size: 14px;
    color: #333;
}

.spice-customizable {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dish-portion-weight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dish-content p {
    margin-bottom: 5px;
}

.dish-price {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /*padding: 20px;*/
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    /*font-family: Arial, sans-serif;*/
    margin-top: 10px;
}
.dish-price-header {
    display: flex;
    justify-content: space-between;
}
.dish-price-header button {
    flex-shrink: 0;
}
.dish-price-header button.active {
    border-color: #007bff;
    background-color: #e1f0ff;
}
.dish-price-title {
    font-size: 24px;
    margin-bottom: 20px;
}
.dish-price-base-serving-size, .dish-price-additional-servings {
    margin-bottom: 20px;
}
.dish-price-additional-servings {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
}
.dish-price-subtitle {
    margin-bottom: 20px;
    font-weight: 300;
    margin-top: 10px;
    width: 100%;
}
.dish-price-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.dish-price-serving-option {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    /* padding: 15px; */
    /* border: 2px solid #ccc; */
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    color: #333;
    flex-direction: column;
    overflow: hidden;
}
.dish-price-serving-option-base {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
}
.dish-price-serving-description {
    display: flex;
    /* flex-direction: column; */
    line-height: 40px;
    background-color: #fff;
    padding: 20px 20px;
    justify-content: space-between;
}
.dish-price-serving-description-input-block {
    display: flex;
    gap: 10px;
}
.dish-price-size {
    font-size: 16px;
    font-weight: 500;
}
.dish-price-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    /*border: none;*/
    outline: none;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.dish-price-serving-earn {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dish-price-earn {
    font-size: 14px;
    padding: 10px 20px;
    border-top: 1px solid #e0e0e0;
    font-weight: 500;
}
.dish-price-earn>span {
    color: #058270;
}
.dish-price-recommended {
    color: #00c4a7;
    font-size: 14px;
}
.dish-price-serving-count {
    background-color: #ddd;
    /* border: 1px solid #ccc; */
    border-radius: 5px;
    padding: 0 10px;
    color: #000;
    font-weight: 400;
    height: 30px;
    line-height: 30px;
}
.dish-price-serving-option i {
    cursor: pointer;
    color: #333;
    font-size: 16px;
}
.dish-price-serving-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dish-price-currency {
    font-size: 14px;
}

.dish-price-serving-option-adding {
    display: flex;
    flex-direction: row;
    align-items: center;
    /*padding-right: 20px;*/
    position: relative;
}
.dish-price-serving-option-adding > .dish-price-serving-description {
    flex-direction: column;
    width: 100%;
    padding-top: 40px;
}
.dish-price-serving-option-adding .dish-price-serving-description-input-block {
    justify-content: end;
    align-items: baseline;
}
.dish-price-serving-option-adding .dish-price-price {
    width: 120px;
    text-align: right;
}
.dish-price-serving-option-adding .dish-price-serving-count {
    position: absolute;
    left: 5px;
    top: 5px;
}
.dish-price-serving-option-adding .you-earn {
    width: 170px;
    font-size: 10px;
    text-align: right;
    display: none;
}
.dish-price-serving-option-adding .dish-price-serving-description-input-block {
    /*margin-top: 20px;*/
}

.dish-diet {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /*padding: 20px;*/
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    /*font-family: Arial, sans-serif;*/
}
.dish-diet-title {
    font-size: 24px;
    margin-bottom: 20px;
}
.dish-diet-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
}
.dish-diet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.dish-diet-description {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dish-diet-description i {
    font-size: 32px;
    width: 40px;
    color: #ff9494;
}
.dish-diet-description .material-icons {
    font-size: 24px;
    color: #333;
}
.dish-diet-description div {
    display: flex;
    flex-direction: column;
}
.dish-diet-description strong {
    /*font-size: 16px;*/
    font-weight: 500;
}
.dish-diet-description p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.dish-diet-switch {
    position: relative;
    width: 40px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}
.dish-diet-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.dish-diet-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #bbb;
    padding: 9px 0;
}
.dish-diet-switch label:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    top: 1px;
}
.dish-diet-switch input:checked + label {
    background-color: #333;
}
.dish-diet-switch input:checked + label:before {
    transform: translateX(20px);
}
.dish-diet-tips {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
}
.dish-diet-tips .material-icons {
    font-size: 24px;
    color: #333;
}
.dish-diet-tips p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.dish-ingredients {
    width: 100%;
    /*max-width: 600px;*/
    /*margin: 0 auto;*/
    /*font-family: Arial, sans-serif;*/
    color: #333;
    position: relative; /* Добавляем это для относительного позиционирования */
    margin-top: 40px;
}
.dish-ingredients p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.tag-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}
.tag .remove-tag {
    margin-left: 10px;
    cursor: pointer;
}
.tag-input {
    flex: 1;
    min-width: 80px;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 5px;
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    position: absolute; /* Добавляем это для абсолютного позиционирования */
    top: 100%; /* Помещаем под тегами */
    left: 0;
    right: 0;
    background-color: #fff; /* Фон для списка */
    z-index: 1000; /* Поверх остальных элементов */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Добавляем тень */
}
.dropdown-menu.active {
    display: block;
}
.dropdown-item {
    padding: 10px;
    cursor: pointer;
}
.dropdown-item.active {
    background-color: #f0f0f0;
}
.dropdown-item:hover {
    background-color: #f0f0f0;
}

.nutrition-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    background-color: #f0f0f0;
    padding: 20px;
}
.nutrition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    color: #000;
    /*font-family: Arial, sans-serif;*/
    font-size: 16px;
    /*font-weight: bold;*/
    border-radius: 8px;
    background-color: #fff;
}
.nutrition-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    /*flex-grow: 1;*/
    width: 100%;
}

.nutrition-portion {
    font-size: 12px;
    font-weight: 500;
}
.nutrition-percent {
    font-size: 12px;
    font-weight: 500;
}
.nutrition-title {
    margin-left: 10px;
    margin-bottom: 4px;
    font-weight: 600;
}
.nutrition-per-person i {
    font-size: 10px;
    display: none;
}
.nutrition-input {
    width: 90px;
    height: 40px;
    /*border: none;*/
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-left: 10px;
    background-color: #fff;
    position: relative;
    right: 45px;
}
.nutrition-input:focus {
    outline: none;
    border-color: currentColor;
}
.nutrition-input::-webkit-outer-spin-button,
.nutrition-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.nutrition-input[type=number] {
    -moz-appearance: textfield;
}
.nutrition-subtext {
    font-size: 12px;
}

.dish-photo {
    display: flex;
    gap: 20px;
}
.dish-photo .image-upload-preview {
    width: 200px;
    height: 200px;
}

.cuisine-type .cuisine-input {
    width: 100%;
}
.cuisine-type .dropdown ul {
    margin-top: 0;
}

.dish-status {
    display: flex;
    padding: 6px 10px;
    background-color: #f5f5f5;
    /* height: 20px; */
    border-radius: 15px;
    line-height: 16px;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #777;
    flex-shrink: 0;
}
.dish-status.active {
    background-color: #b8f3b9;
    color: #000000;
}

.hint {
    display: flex;
    background-color: #f5f5f5;
    padding: 5px 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    align-items: center;
    font-weight: 500;
    color: #333;
    justify-content: space-between;
}


.dish-adding-options .dish-adding-list .clear-button {
    display: none;
}
.dropdown-control.dish-adding-creator {
    width: unset;
    display: inline-block;
    border: 1px solid #e0e0e0;
    border-radius: 20px;

}
.dropdown-control.dish-adding-creator input {
    background: transparent;
}
.dish-adding-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.dish-adding-item {
    display: inline-flex;
    align-items: center;
    border: 1px solid #007bff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    background-color: #e1f0ff;
    color: #000;
}
.dish-adding-item button {
    background: none;
    border: none;
    width: 16px;
    font-size: 9px;
    color: #000;
    padding: 0;
}


@media (max-width: 600px) {
    .nutrition-table {
        /*max-width: 90%;*/
    }
}

@media (max-width: 768px) {
    .verify-phone-required {
        display: block;
    }

    .dish-container {
    }

    .dish-nav {
        font-size: 16px;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        margin-left: -500px;
        margin-top: 0;
        z-index: 1;
        background-color: #fff;
        flex-direction: column;
        text-align: left;
        justify-content: left;
        justify-items: left;
        align-items: unset;
        /*padding: 10px;*/
        opacity: 0;
        transition: all .3s;
    }
    .dish-nav.active {
        margin-left: 0;
        opacity: 1;
    }
    .dish-nav span {
        display: none;
    }
    .dish-nav a {
        padding: 10px 10px;
        font-size: 18px;
    }
    .dish-nav-header {
        display: flex;
        align-items: center;
        justify-items: center;
        justify-content: center;
        margin-top: 20px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 10px;
    }
    .dish-nav-header h2 {
        text-align: center;
        width: 100%;
        justify-content: center;
        display: flex;
        flex-direction: column;
        margin: 0;
    }
    .dish-nav-close {
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
        flex-shrink: 0;
    }

    .dish-bottom {
        box-shadow: rgba(0, 0, 0, 0.1) 0 -1px 7px;
        border-top: 1px solid #e0e0e0;
    }

    .dish-description-fill-with-ai {
        flex-direction: column;
        align-items: flex-end;
    }

    .dish-title-input {
        font-size: 19px;
    }
    .dish-example {
        font-size: 14px;
    }

    .dish-price-serving-description {
        padding: 10px 10px;
        gap: 10px;
    }
    .dish-price-price {
        width: 100%;
    }
    .dish-price-size {
        font-size: 10px;
        text-wrap: nowrap;
    }
    .dish-price-serving-controls {
        font-size: 10px;
        text-wrap: nowrap;
    }

    .day-selector-day {
        width: 40px;
        height: 40px;
    }

    .dish-photo {
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hint {
        margin: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 10px 20px;
        flex-direction: column;
        align-items: end;
        font-size: 12px;
    }

    .chef-menu-table-row-variants {
        margin-left: 0;
    }

    .chef-menu-table-row-common {
        flex-wrap: wrap;
        justify-content: end;
    }
    .chef-menu-table-row-actions {
        /*order: 10;*/
    }
    .chef-menu-table-row-price {
        width: unset;
    }
    .chef-menu-table-row-variants li {
        flex-wrap: wrap;
        justify-content: end;
    }
    .chef-menu-table-row-variants-first {
        width: 100%;
    }
    .chef-menu-table-row-status {
        width: unset;
    }

    .dish-order-limit-block {
        flex-direction: column;
    }
    .dish-order-limit-block>div:last-child {
        flex-shrink: 0;
        align-items: baseline;
        flex-direction: row;
        justify-content: flex-start;
    }
    .dish-order-limit-preparation label {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dish-nav {
        /*font-size: 12px;*/
    }

    .dish-title-input {
        font-size: 19px;
    }

    .dish-example {
        font-size: 12px;
    }
}

.element-hint {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 5px;
    display: none;
    z-index: 1000;
    max-width: 200px;
    /*border: 1px solid #aaa;*/
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 5px ;
    font-size: 12px;
    line-height: 1.3;
}

.popup-info {
    cursor: pointer;
}


@media (max-width: 768px) {
    .dish-price-header button {
        font-size: 12px;
        padding: 0 5px;
        min-height: unset;
        height: 30px;
        margin: 0;
        /*width: 45%;*/
    }
    .dish-price-header h4 {
        margin: 0;
    }
    .dish-price-header {
        flex-wrap: wrap;
        line-height: 1;
        gap: 10px;
        margin-bottom: 10px;
    }
    .dish-price-serving-description-input-block {
        flex-wrap: wrap;
        gap: 3px;
    }
    .dish-price-serving-option-adding .you-earn {
        width: unset;
        margin: 0;

    }

}

#image-container-file-panels li.ghost {
    opacity: 0.4; /* Прозрачность элемента при перетаскивании */
}



/*   MAP   */

.map-settings .autocomplete-wrapper {
    position: relative;
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    align-items: center;
}
#addressInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    position: relative;
    background: none;
    z-index: 2;
    color: black;
    border: none;
    outline: none;

}
#autocompleteText {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #ccc;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}
#suggestions {
    position: absolute;
    border: 1px solid #ccc;
    background-color: #fff;
    max-height: 200px;
    width: 100%;
    overflow-y: auto;
    display: none;
    z-index: 3;
}
#suggestions div {
    padding: 10px;
    cursor: pointer;
}
#suggestions div:hover, #suggestions div.active {
    background-color: #f0f0f0;
}
#map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    position: relative;
}
#map .center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
}
#map .center-marker img {
    height: 50px;
    margin-top: -50px;
}
.map-settings .controls {
    margin-bottom: 10px;
}
.map-settings .controls label {
    margin-right: 10px;
}
.map-search-btn {
    position: relative;
    overflow: hidden;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.map-search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out;
    border-radius: 50%;
}

.map-search-btn:active::before {
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.4s ease-out;
}


.dist-tarif-table {
    display: grid;
    grid-template-columns: 50px repeat(3, 1fr) 50px;
    gap: 10px;
    padding: 10px;
    align-items: center;
}
.dist-tarif-header, .dist-tarif-row {
    display: contents;
}
.dist-tarif-header > div {
    font-weight: bold;
    text-align: center;
}
.dist-tarif-row {
    border-bottom: 1px solid #ccc;
}
.dist-tarif-checkbox,
.dist-tarif-remove {
    text-align: center;
}
.dist-tarif-remove {
    color: red;
    cursor: pointer;
}
.dist-tarif-row input[type="number"] {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    text-align: right;
}
.dist-tarif-row input[disabled] {
    background-color: #f0f0f0;
}
.dist-tarif-add-row {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
.dist-tarif-add-row button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .dist-tarif-table {
        grid-template-columns: 30px repeat(3, 1fr) 30px;
        gap: 5px;
        padding: 0px;
    }
    .dist-tarif-checkbox, .dist-tarif-remove {
        width: 29px;
    }
    .dist-tarif-row .dist-tarif-col {
        /*width: 60px;*/
    }
    .dist-tarif-row {
        /*grid-template-columns: 50px 1fr 1fr 1fr 50px;*/
    }
}



.dish-editor .lang-dropdown {
    position: absolute;
}

@media (max-width: 768px) {
    .dish-editor .lang-dropdown span {
        display: none;
        padding-left: 38px;
    }
}




.category-selector-container {
    width: 100%;
    /*max-height: 500px;*/
    max-height: 75vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
}
.category-selector-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-selector-menu li {
    padding: 10px;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #eee;
}
.category-selector-toggle {
    /* margin-right: 10px; */
    cursor: pointer;
    float: right;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.category-selector-menu li.open .category-selector-toggle {
    transform: rotate(180deg);
}
.category-selector-label {
    font-weight: normal;
    cursor: pointer;
    margin-left: 8px;
}
.category-selector-label.selected {
    font-weight: bold;
}
.category-selector-checkbox {
    margin-right: 10px;
    cursor: pointer;
}
.category-selector-label-container {
    display: flex;
    align-items: center;
}
.category-selector-menu li ul {
    list-style: none;
    padding-left: 20px;
    display: none;
    margin: 0;
    transition: all 0.3s ease;
}
.category-selector-menu li.open > ul {
    display: block;
}


.category-search-input {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}



.chef-menu-category-page-actions {
    justify-content: left;
    flex-direction: row;
}
.chef-menu-category {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}
.chef-menu-category h4 {
    padding: 0;
    margin: 8px 0px;
}
.chef-menu-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}
.chef-menu-category-header h3 {
    margin: 0;
    width: 100%;
}
.chef-menu-category-header h3[contenteditable=true] {
    padding: 10px;
    background-color: #ffffff;
}
.chef-menu-category-header .category-selector-toggle {
    width: 40px; /* Height of header */
    height: 40px; /* Height of header */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
}
.chef-menu-category-body {
    display: none;
    margin-top: 10px;
}
.chef-menu-category-body-header {
    display: flex;
}
.chef-menu-category-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    background-color: #fff;
    height: 150px;
}
.chef-menu-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chef-menu-category-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /*gap: 5px;*/
}
.chef-menu-dish {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
    cursor: move; /* Indicate draggable items */
}
.chef-menu-dish img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}
.chef-menu-dish-price {
    font-weight: 500;
}
.chef-menu-dish-title {
    flex: 1;
    margin-right: 20px;
}
.chef-menu-dish-actions {
    display: flex;
    gap: 10px;
}
.chef-menu-dish-actions a {
    text-decoration: none;
    color: #007bff;
    cursor: pointer;
}
.chef-menu-dish-actions a:hover {
    text-decoration: underline;
}
.chef-menu-dish-details {
    display: flex;
    width: 100%;
    align-items: center;
}


@media (max-width: 768px) {
    .chef-menu-category-body-header {
        flex-direction: column;
    }
    .chef-menu-dish-details {
        flex-wrap: wrap;
        align-items: center;
    }
    .chef-menu-dish img {
        margin-right: 0;
    }
    .dish-title-input {
        padding-left: 40px;
        text-align: left;
    }
    .dish-price-serving-controls {
        display: none;
    }
}

.dish-main {
    margin-top: 20px;
}
.dish-editor.compact .chef-profile-header {
    gap: 0;
}
.dish-editor.compact .flat-button {
    padding: 5px;
}
.dish-editor.compact .dish-tab {
    display: block;
}
.dish-editor.compact #priceForDish,
.dish-editor.compact #priceForAdding {
    /*display: none;*/
}

.dish-editor.compact .dish-price-earn {
    display: none;
}



.chef-table-list {
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.chef-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
    gap: 10px;
}
.chef-table-header-num {
    width: 100%;
}
.chef-table-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex-wrap: wrap;
}
.chef-table-row input[type="checkbox"] {
    margin-right: 10px;
    width: unset;
}
.chef-table-row input[type="text"],
.chef-table-row input[type="time"] {
    margin: 0 5px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100px;
    text-align: right;
}
.chef-table-add-btn {
    margin-bottom: 15px;
    padding: 8px 15px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.chef-table-add-btn:hover {
    background-color: #218838;
}
.chef-table-qr {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #333;
    /* margin-left: auto; */
    width: 100px;
    text-align: left;
}

@media (max-width: 768px) {
    .chef-table-row {
        /*flex-direction: column;*/
        align-items: flex-start;
    }

    .chef-table-row > * {
        margin-bottom: 5px;
    }

    .chef-table-header {
        /*display: none; !* Скрываем шапку на мобильных *!*/
    }

    .chef-profile-header {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        background-color: #ffffff;
        z-index: 1;
    }
    .chef-profile-section {
        /*margin-top: 70px;*/
    }
}



.chef-table-qr-section {
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}
.chef-table-qr-section input[type="number"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100px;
    margin-right: 10px;
}
.chef-table-qr-section button {
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}
.chef-table-qr-section button:hover {
    background-color: #0056b3;
}
.chef-table-qr-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.chef-table-qr {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #fff;
    text-align: center;
}
.chef-table-qr img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 5px;
}
.chef-table-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
    font-size: 20px;
}

@media (max-width: 768px) {
    .chef-table-qr {
        width: 120px;
        height: 120px;
    }
    .chef-table-qr img {
        width: 80px;
        height: 80px;
    }
}



.chef-rest-manage-container {
    padding: 20px;
}
.chef-rest-manage-add-email {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.chef-rest-manage-input {
    flex: 1;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
input[type="checkbox"] {
    /*width: unset !important;*/
}
.chef-rest-manage-button {
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.chef-rest-manage-button:hover {
    background-color: #0056b3;
}
.chef-rest-manage-waiters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chef-rest-manage-waiter {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    position: relative;
    gap: 10px;
}
.chef-rest-manage-email {
    flex: 1;
    font-size: 14px;
    color: #666;
    margin-right: 10px;
    font-weight: 500;
}
.chef-rest-manage-container input {
    margin: 0;
}
.chef-rest-manage-role {
    width: 100px;
    margin-right: 10px;
}
.chef-rest-manage-delete {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 16px;
}
.chef-rest-manage-qr-section {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 10px;
}
.chef-rest-manage-qr-section>div {
    width: calc(50% - 10px);

}
.chef-rest-manage-qr-code {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}
.chef-rest-manage-link {
    display: block;
    color: #007bff;
    text-decoration: none;
    margin-top: 5px;
    text-align: center;
}
.chef-rest-manage-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .chef-rest-manage-waiter {
        /*flex-direction: column;*/
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    .chef-rest-manage-email {
        width: 100%;
        flex-shrink: 0;
    }
    .chef-rest-manage-role {
        width: 50%;
        margin-left: 40px;
    }
    .chef-rest-manage-button {
        padding: 6px 10px;
    }
    .chef-rest-manage-delete {
        font-size: 14px;
        position: absolute;
        right: 0;
    }

    .chef-rest-manage-qr-section {
        display: block;
    }
    .chef-rest-manage-qr-section>div {
        width: 100%;
    }
}

.chef-rest-manage-console {
    margin: auto;
    max-width: 1024px;
}
.chef-rest-manage-console-header {
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}
.chef-rest-manage-console-header button {
    font-size: 12px;
    color: #eee;
    border: 1px solid #888;
    background-color: #333;
}

.chef-rest-manage-console-body {
    background-color: #111;
}
.chef-rest-manage-console {
    background-color: #111;
    padding: 20px;
    color: #fff;
}
.chef-rest-manage-console h1,
.chef-rest-manage-console h2,
.chef-rest-manage-console h3,
.chef-rest-manage-console h4 {
    color: #ffffff;
}

.chef-rest-manage-qr-section {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    align-items: flex-start;
}
.chef-rest-manage-qr-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.chef-rest-manage-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chef-rest-manage-qr {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}
.chef-rest-manage-button {
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.chef-rest-manage-button:hover {
    background-color: #0056b3;
}
.chef-rest-manage-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.chef-rest-manage-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
}
.chef-rest-manage-dialog-content {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    /*max-width: 400px;*/
    overflow-y: auto; /* Автоскролл для рабочего пространства */
    /*max-height: 80%;*/
}
.chef-rest-manage-actions {
    margin-top: 20px;
}
.chef-rest-manage-action-button {
    margin: 5px;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 5px;
    cursor: pointer;
}
.chef-rest-manage-action-button:hover {
    background-color: #555;
}
.chef-rest-manage-dialog-body {
    max-height: 50vh; /* Ограничение высоты для включения автоскролла */
    overflow-y: auto; /* Автоскролл при необходимости */
    padding: 10px;
    text-align: left;
    max-width: 800px;
    margin: auto;
}

/* Базовый стиль стола */
.chef-rest-manage-table {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(145deg, #4e342e, #260e04); /* Темно-коричневый градиент */
    cursor: pointer;
    text-align: center;
    transition: all .3s ; /* Плавный переход фона */
}
/* Серый градиент для занятого стола */
.chef-rest-manage-table.taken {
    background: linear-gradient(145deg, #757575, #424242); /* Серый градиент */
}
/* Зеленый градиент для стола с заказом */
.chef-rest-manage-table.order {
    background: linear-gradient(145deg, #388e3c, #1b5e20); /* Зеленый градиент */
}
/* Красный градиент для стола с запросом */
.chef-rest-manage-table.request {
    background: linear-gradient(145deg, #d32f2f, #b71c1c); /* Красный градиент */
}
/* Анимация плавного перехода фона для активного стола */
.chef-rest-manage-table.active {
    animation: smoothColorChange .5s linear infinite alternate; /* Плавная анимация между ключевыми кадрами */
}
/* Определение анимации для плавного перехода */
@keyframes smoothColorChange {
    0% {
        background: linear-gradient(145deg, #4e342e, #260e04); /* Начальный цвет (темно-коричневый) */
        /*opacity: 0.5;*/
    }
    100% {
        background: linear-gradient(145deg, var(--active-color-start), var(--active-color-end)); /* Цвет для текущего статуса */
        /*opacity: 1;*/
    }
}
/* Цвета активного стола для каждого статуса */
.chef-rest-manage-table.taken.active {
    --active-color-start: #757575;
    --active-color-end: #424242;
}
.chef-rest-manage-table.order.active {
    --active-color-start: #388e3c;
    --active-color-end: #1b5e20;
}
.chef-rest-manage-table.request.active {
    --active-color-start: #d32f2f;
    --active-color-end: #b71c1c;
}

.chef-rest-table-cart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.chef-rest-table-cart {
    /*padding: 10px;*/
    margin-bottom: 20px;
    border-radius: 15px;
    border: 2px solid #8a8782;
    overflow: hidden;
}
.chef-rest-table-cart-serviced {
    background-color: #333;
    color: #aaaaaa;
}
.chef-rest-table-cart-unserviced {
    background-color: #000;
}
.chef-rest-table-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
}
.chef-rest-table-cart-item img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}
.chef-rest-table-cart-item-description {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /*color: #fff;*/
    width: 100% ;
}
.chef-rest-table-cart-separator {
    /*border-top: 2px solid #fff;*/
    margin: 20px 0;
}

@media (max-width: 768px) {
    .chef-rest-manage-dialog {
        padding-top: 10px
    }
    .chef-rest-manage-tables {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    .chef-rest-manage-table {
        width: 30%;
        height: 100px;
    }

    .chef-rest-manage-dialog-content {
        width: 100%;
        max-width: unset;
        padding: 0;
        max-height: unset;
        height: 100%;
    }

    .chef-rest-manage-dialog-body {
        max-height: unset;
    }
}




.chef-rest-manage-queue-console-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}

.chef-rest-queue-manage-console {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    flex-direction: column;
    gap: 30px;
}
.chef-rest-queue-manage-console h3 {
    text-transform: uppercase;
    font-size: 12px;
    color: #999;
    font-weight: 800;
    text-align: right;
    margin: 4px 0;
}
.chef-rest-queue-manage-carts-created,
.chef-rest-queue-manage-carts-paid,
.chef-rest-queue-manage-carts-ready {
    width: 100%;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    gap: 10px;
}
.cart-sticker {
    /*width: calc(100% / 3 - 20px);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #007bff;
    background-color: #ffffff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.cart-sticker:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.cart-sticker .queue-number {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.cart-sticker .order-price {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}



.image-container-file-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-panel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    margin: 5px;
    padding: 5px;
    position: relative;
}

.image-panel-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.remove-image-button {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #ff4c4c;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 12px;
}

.sortable-ghost {
    opacity: 0.4;
}

.image-panel-item.dragging {
    opacity: 0.5;
}



.dish-manager-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dish-manager-row {
    display: flex;
    justify-content: space-between;
}
.dish-manager-row-center {
    display: flex;
    justify-content: center;
}
.dish-manager-stat-graph {
    height: 40vh;
}
.dashboard-stat-graph {
    margin-top: 20px;
}


.dish-manager-promote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемнение фона */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.dish-manager-promote-dialog {
    background-color: white;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    padding: 20px;
}
.dish-manager-promote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}
.dish-manager-promote-close {
    background: none;
    border: none;
    font-size: 32px;
    color: black;
    cursor: pointer;
}
.dish-manager-promote-content .promote-option {
    background-color: #f0f0f0;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}
.promote-option h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
.promote-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}
.dish-manager-promote-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}
.dish-manager-promote-payment-button {
    background-color: var(--color1-4);
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.dish-manager-promote-payment-button[disabled] {
    background-color: #eeeeee;
    border-color: #aaaaaa;
    color: #777777;
}

.dish-manager-promote-period-options {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    gap: 10px;
}

.dish-manager-promote-period-button {
    background-color: #fff;
    border: 2px solid #ffa500; /* Оранжевая рамка */
    border-radius: 25px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #ffa500;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
}

.dish-manager-promote-period-button:hover {
    background-color: #ffa500; /* Оранжевый фон */
    color: #fff; /* Белый текст */
}

.dish-manager-promote-period-button.active {
    background-color: #ffa500; /* Оранжевый фон для выбранной кнопки */
    color: #fff; /* Белый текст */
}

.promotion-item {
    border-radius: 5px;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    padding: 7px 12px;
    display: flex;
    gap: 5px;
}
.promotion-item.C {
    color: #aaaaaa;
}
.promotion-item.E {
    background-color: #ccf1cd;
}
.promotion-item.A {
    background-color: #eff6fa;
}
.promotion-item h4 {
    margin: 0;
}
.promotion-item-data {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.promotion-item-icon {
    width: 50px;
}
.promotion-item-icon img {
    width: 100%;
}
.dish-manager-promotion-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /*background-color: #f0f0f0;*/
    padding: 5px;
    border-radius: 5px;
    /*border: 1px solid #ccc;*/
}

.promocode-item {
    border-radius: 10px;
    background-color: var(--color1-1);
    padding: 7px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--color1-3);
}
.promocode-item h4 {
    margin: 0;
}
.promocode-item i {
    color: var(--color1-4);
}
.dish-manager-promocodes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dish-manager-promocodes-list ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.promocode-hint {
    font-size: 11px;
    color: var(--color1-4);
    font-weight: 600;
}
.has-promocode-for-free.promote-price {
    text-decoration: line-through;
}


.payment-submit-form {
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* DISCOUNT ACTIVITIES */

.chef-discount-activity-container h1 {
    font-size: 22px;
    font-weight: 500;
    width: calc(100% - 36px);
}
.chef-discount-activity-list {
    margin-top: 20px;
}
.chef-discount-activity-panel {
    color: unset;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #FFFFFF;
}
.chef-discount-activity-name {
    width: 100%;
    font-size: 18px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}
.chef-discount-activity-name input {
    width: 100%;
}
.chef-discount-activity-percent {
    font-size: 24px;
    /*color: #007bff;*/
    font-weight: bold;
}
.chef-discount-activity-actions {
    display: flex;
    gap: 10px;
}
.chef-discount-activity-actions button {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.chef-discount-activity-stop {
    /*background-color: #ffc107;*/
    color: #000000;
}
.chef-discount-activity-delete {
    /*background-color: #dc3545;*/
    color: #000000;
}
.chef-discount-activity-resume {
    background-color: var(--color4-5);
    color: #fff;
}
.chef-discount-activity-empty {
    text-align: center;
    font-size: 16px;
    color: #999;
}

.chef-discount-activity-container {
    padding: 20px;
}
.chef-discount-activity-header {
    color: unset;
    text-decoration: none;

    display: flex;
    gap: 10px;
    /*justify-content: space-between;*/
    align-items: center;
    margin-bottom: 20px;

}
.chef-discount-activity-discount {
    margin-bottom: 20px;
}
.chef-discount-activity-discount input {
    width: 100%;
    padding: 10px;
    /*margin-top: 10px;*/
        font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.discount-buttons {
    margin-top: 10px;
    display: flex;
    /*gap: 10px;*/
}
.discount-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background-color: #FFFFFF;
    font-size: 14px;
}
.discount-buttons button:hover {
    background-color: #ddd;
}
.chef-discount-activity-products {
    /*margin-top: 20px;*/
}
.product-row {
    display: flex;
    flex-direction: column;
}
.product-row-column {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.product-row-column-price {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: 10px;
    text-align: right;
}
.product-row img {
    border-radius: 4px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    width: 55px;
    height: 55px;
}
.product-title {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
}
.product-price {
    font-size: 14px;
    color: #999;
    display: flex;
    flex-direction: column;
}
.product-price s {
    margin-right: 5px;
    color: #999;
}
.product-price .discounted-price {
    color: #28a745;
    font-weight: bold;
}
.product-checkbox {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .chef-discount-activity-header {
        flex-wrap: wrap;

    }

    .discount-activity .chef-main-content,
    .discount-activities .chef-main-content {
        margin-top: 0;
    }
}

.chef-discount-activity-ad {
    background-color: var(--color3-1);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: block;
    text-decoration: unset;
    color: unset;
}
.chef-discount-activity-ad h2 {
    font-weight: 600;
}
.chef-discount-activity-ad p {
    font-size: 16px;
}



.leaflet-control-attribution {
    display: none !important;
}
