html,body{
    margin:0;
    padding:0;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f0f4f8;
}

.wrapper {
    flex: 1;
    /*display: flex;*/
    flex-direction: column;
    background-color: #f0f4f8;
}

#fixed-top-container {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 999; /* чтобы было поверх контента */
 }

.content-wrapper {
    flex: 1;
    padding-top: 45px; /* зависит от высоты объединенного header */
}

.content-wrapper > .content {
    flex: 1 0 auto;
}

* {
    outline: none!important;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-top: 1px solid #7f7c7c !important;
    border-bottom: 1px solid #7f7c7c !important;
}

/* 1. Настройка общей таблицы */
.table.wrapper {
    /* Фиксированная разметка таблицы (ОБЯЗАТЕЛЬНО для задания фиксированной ширины колонкам) */
    table-layout: fixed;

    /* Убедимся, что таблица занимает 100% доступного места (если вы хотите, чтобы она была во всю ширину) */
    width: 100%;
    max-width: 100%;
}

/* 2. Фиксированная ширина для столбца "Дата" (date-time) */
.date-time {
    /* 120px достаточно для формата YYYY-MM-DD HH:MM */
    /* уменьшил до 100px чтоб перенесло время на вторую строку */
    width: 100px !important;
    min-width: 100px !important;
    white-space: normal !important;
}

/* 3. Фиксированная ширина для столбца "IP пользователя" (ip-visitor) */
.ip-visitor {
    /* 110px достаточно для IP-адреса IPv4 */
    width: 110px !important;
    min-width: 110px !important;
    white-space: normal !important;
}

/* 4. Стиль для столбца "Информация про девайс" (device-info) */
.device-info {
    /* Столбец занимает 10% от общей ширины таблицы */
    /*width: 10% !important;*/
    /*min-width: 10% !important;*/
    /*max-width: 10% !important;*/

    /* Принудительный перенос длинных строк без пробелов */
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal !important;
}

#eye{
    color:#898686;
    right:10px;
    position: absolute;
    top: 20px;
}

#eye1, #eye2{
    color:#898686;
    position: absolute;
    top: 10px;
    right: 20px;
}

.row-empty-10{
    height: 10px !important;
}

.row-empty-20{
    height: 30px !important;
}

.row-empty-30{
    height: 30px !important;
}

.row-empty-40{
    height: 40px !important;
}

.row-empty-50{
    height: 50px !important;
}

.color-orange-bold{
    font-weight: bold;
    color: #F49739;
}

.color-blue-bold{
    font-weight: bold;
    color: #323366;
}

.color-blue{
    /*font-weight: bold;*/
    color: #323366;
    /*font-size: 0.8em;*/
}

.color-vanila-green{
    color: #70b2a6;
}
.color-vanila-green-bg{
    background-color: #70b2a6;
}
.color-vanila-pink{
    color: #f2d4c9;
}
.color-vanila-pink-bg{
    background-color: #f2d4c9;
}
.color-vanila-light-brown{
    color: #c5ab9a;
}
.color-vanila-light-brown-bg{
    background-color: #c5ab9a;
}
.color-vanila-dark-brown{
    color: #918788;
}
.color-vanila-dark-brown-bg{
    background-color: #918788;
}
.color-vanila-font{
    color: #807c7d;
}
.color-vanila-font-bg{
    background-color: #807c7d;
}

.col-1, .col-2,  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12{
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    align-self: flex-end;
}

.reference-book-th{
    background-color: #ffac07 !important;
    font-size: 1.2em;
    color: #343a40
}

.users-header{
    background-color: #343a40 !important;
    color: white;
    text-align: center;
    /*font-weight: bolder;*/
}

.carservice-header{
    background-color: #343a40 !important;
    color: white;
    /*font-weight: bolder;*/
}

.services-stocks{
    font-weight: bold;
    color:blue;
}

.check {
    -webkit-appearance: none;
    height: 13px;
    width: 13px;
    transition: 0.10s;
    border: 2px solid red;
    border-radius: 3px;
    outline: none;
    text-align: center;
    font-size: 0.9em;
    font-weight: inherit;
    color: white;
}

.check:checked{
    border: 0;
    background-color: #AAAAAA;
}
.check:checked:before {
    content: "✓";
}

.ksm-info-box{
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 2;
}

.db-null{
    color: #d2d6de !important;
    text-align:right!important;
    white-space: nowrap;
}

.card-hoverable:hover {
    background-color: #e1f1fd;
    -webkit-transform: translateY(-6px);
    transform: translateY(-6px);
    -moz-box-shadow: 0 20px 20px rgba(0, 0, 0, .1);
    webkit-box-shadow: 0 0 25px -5px #9e9c9e;
    box-shadow: 0 0 25px -5px #9e9c9e;
}

.dashboard-carservice{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*максимальная длинна фиксит строку превышающую максимальную длинну колонки (значение не важно, главное не отрицательное) */
    max-width: 0;
}

.card-body-grey {
    background-color: #efefef;
}

.reference-book-overhidden {
    white-space: nowrap; /* Prevents wrapping */
    overflow: hidden; /* Hides overflowing content */
    text-overflow: ellipsis; /* Displays an ellipsis (...) to indicate overflow */
    max-width: 300px; /* Adjust this value as needed */
    vertical-align: middle; /* Aligns content vertically within the cell */
    width: 0px;
}

.reference-book-overhidden .row {
    display: flex;
}
.reference-book-overhidden .col-3 {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.scroll-to-top-button{
    background: #666 url(/img/go_to_up.png) center center no-repeat;
    width: 60px;
    height: 60px;
    color: #fff;
    font-family: verdana;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    cursor: pointer;
    padding: 15px;
    margin: 20px;
}
.padding-finances-profile{
    padding-top: 5px;
}

.popover.popover-x_template {
    display: none;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.auto-height-textarea {
    min-height: 115px;
    line-height: 1.5;
}

.auto-height-textarea {
    height: auto;
}

.auto-height-textarea:focus {
    height: auto;
}

.ellipsis-table .col-3,
.ellipsis-table .col-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agreement-log{
    background-color: #eeeeee;
    font-size: 0.9em;
    padding: 5px;
}

.phone-call-link{
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.phone-call-img{
    width: 30px;
    height: 30px;
}

.phone-call-carservice-names{
    color: #0077d3;
    font-weight: bold;
}

.next-call{
    /*display: block;*/
    /*background-color: rgb(242, 242, 242);*/
    background-color: rgb(193, 233, 242);
    padding: 10px;
}

.active-phone-call-block{
    border: 1px solid gray;
    background-color: #faf6e0;
    /*font-weight: bold;*/
    color: #200943;
}

.agreement-description{
    white-space: initial !important;
    /*text-overflow: ellipsis;*/
    /*max-width: 0;*/
}

/*.lead-table{*/
/*    text-overflow: ellipsis;*/
/*    align-self: flex-end;*/
/*    max-width: 0;*/
/*}*/

.dotted-list::before {
    content: "• "; /* Unicode bullet character with a space */
    color: black; /* You can change the color if needed */
}

a .not-link {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.bg-phonecall-plane{
    background-color: #3300FF;
    color: #FFFFFF;
}

.bg-phonecall-ok-plane-next{
    background-color: #008000;
    color: #FFFFFF;
}

.bg-phonecall-ok-stop{
    background-color: #83D1D7;
    color: #000000;
}

.bg-phonecall-error-plane-next{
    background-color: #D697D6;
    color: #000000;
}

.bg-phonecall-error-stop{
    background-color: #000000;
    color: #FFFFFF;
}


.service-info {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-emails {
    white-space: nowrap;
    /*скрыл 2024-08-29 - при большом кол-ве почтовых ящиков ломает таблицу*/
    /*overflow: hidden;*/
    text-overflow: ellipsis;
}

.text-center-call {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center-call input[type="date"] {
    flex: 2;
    margin: 0 5px;
}

.text-center-call input[type="time"] {
    flex: 1;
    margin: 0 5px;
}

.text-center-call input[type="checkbox"] {
    margin-left: 5px;
}
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.eot);
    src: url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regulard41d.eot?#iefix) format('embedded-opentype'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.woff2) format('woff2'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.woff) format('woff'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.ttf) format('truetype'),
    url(static/dist/plugins/datatables/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg');
}

.sorting-disabled:after, .sort-asc:after, .sort-desc:after {
    position: absolute;
    bottom: 20px;
    right: 8px;
    display: block;
    font-family: 'Glyphicons Halflings';
    opacity: 0.5;
}

.sorting-disabled::after {
    content: "\e150";
}

.sort-asc::after {
    content: "\e155";
}

.sort-desc::after {
    content: "\e156";
}

th .sorting-disabled, th .sort-asc, th .sort-desc {
    cursor: pointer;
}

.fc-button:active,
.fc-button.pressed {
    transform: translateY(2px); /* Moves the button down slightly */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Reduces shadow to simulate pressing */
}

.hidden-row {
    display: none;
}

.text-graph-1 {
    color: #A020F0 !important
}

.text-graph-2 {
    color: #00A36C !important
}

.text-graph-3 {
    color: #0000FF !important
}

.text-graph-4 {
    color: #FFA500 !important
}

.text-graph-5 {
    color: #FF0000 !important
}

.fc-button {
    cursor: pointer;
}

.info-box-graph {
    display: block;
    min-height: 90px;
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    border-radius: 5px;
    margin-bottom: 30px;
    padding: 15px 5px;
    transition: .5s;
}

.custom-popover {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
    z-index: 1000; /* To ensure it's above other elements */
}

.custom-popover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.full-height-row {
    display: flex;
    height: 60vh;
    overflow: hidden;
    margin: 0;
}

.telegram-chat-container {
    border: 1px solid grey;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 0;
}

.left-column, .middle-column, .right-column, .middle-and-right-column {
    height: 100%;
    /*border: 1px solid grey;*/
    padding: 10px;
}

.left-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-y: auto;
}

.users-chat-list {
    overflow-y: auto;
    overflow-x: hidden;
    height: 80%;
}

.left-column a{
    color: black;
}

.middle-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.right-column {
    padding: 15px;
    background-color: #f9f9f9;
    color: #333;
    flex: 1;
    word-break: break-word;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.right-column h4 {
    font-size: 18px;
    color: #444;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.right-column h4 i {
    margin-right: 8px;
    color: #007bff;
}

.right-column-scrollable {
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    padding-right: 10px;
    margin-top: 10px;
}

.right-column p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.right-column p strong {
    color: #555;
}

.left-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.left-column ul li {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s, box-shadow 0.3s;
}

.left-column ul li:hover {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/*.left-column-selected li:hover {*/
/*    background: linear-gradient(90deg, #D5FFFF, #e6f7ff);*/
/*    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);*/
/*    cursor: pointer;*/
/*}*/

.chat-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    flex-grow: 1;
    border-radius: 5px;
    overflow-y: auto;
    height: 90%;
    position: relative;
}

.chat-spacer {
    flex-grow: 1;
}

.message {
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.user-message {
    background-color: #e0e0e0;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.bot-message {
    background-color: #a0e0ff;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 2px solid #f1f1f1;
    background-color: #f9f9f9;
}

.input-field {
    flex-grow: 1;
    padding: 10px 0;
    border: 2px solid #ccc;
    border-right: none;
    border-left: none;
    border-radius: 0 0 0 0;
    box-sizing: border-box;
    resize: none;
    font-size: 1rem;
    color: #333;
    background-color: #ffffff;
}

/*.input-container {*/
/*    position: relative;*/
/*    width: 100%;*/
/*}*/

.add-file-button {
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
}

.file-menu {
    display: none;
    position: absolute;
    width: 175px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
}

#fileInput {
    display: none;
}

label[for="fileInput"] {
    cursor: pointer;
    margin-top: 10px;
}

label[for="fileInput"]:hover {
    text-decoration: underline;
}

#fileName {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
    max-height: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
}

.file-name:hover {
    text-decoration: underline;
}

.file-menu .close-button {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.file-menu .close-button:hover {
    color: #333;
}

.file-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.remove-file {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s ease;
}

.remove-file:hover {
    color: #333;
}

.file-link {
    transition: color 0.3s ease;
}

.file-link.error {
    color: red;
    text-decoration: underline;
}

.popover {
    max-width: 200px;
    text-align: center;
}

.emoji-button {
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
}

.emoji-button:hover {
    /*transform: translateY(-50%) scale(1.1);*/
}

.send-button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.send-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}


.middle-and-right-column {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.select-chat-message {
    background-color: #ffffff;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #6c757d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}


.message p{
    margin: 0;
}

.message-timestamp{
    font-size: 0.6rem;
    text-align: right;
}

.message-date-container {
    text-align: center;
    padding: 10px;
}

.message-date {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 6px;
    border-radius: 20px;
    display: inline-block;
}

.left-column-selected {
    background: linear-gradient(90deg, #D5FFFF, #e6f7ff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.left-column-user-message {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}


.status-closed, .status-open {
    float: right;
    right: 0;
    padding: 0 2px;
    font-size: 0.6em;
    font-weight: bold;
}

.status-closed {
    color: green;
}

.status-open {
    color: red;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    font-weight: bold;
    gap: 10px;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.close-chat-btn, .open-chat-btn {
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.close-chat-btn {
    background-color: #28a745;
}

.open-chat-btn {
    background-color: #dc3545;
}

.close-chat-btn:hover {
    background-color: #ff4c4c;
    transform: scale(1.05);
}

.open-chat-btn:hover {
    background-color: #20c997;
    transform: scale(1.05);
}

.notify-new-chat {
    display: inline-block;
    position: relative;
    right: -8px;
    top: -16px;
    float: right
}
.notify-new-chat .heartbit {
    animation: 1s ease-out 0s normal none infinite running heartbit;
    border: 5px solid #f00000;
    border-radius: 70px;
    height: 25px;
    position: absolute;
    right: 3px;
    top: -20px;
    width: 24px;
    z-index: 10;
}
.notify-new-chat .point {
    background-color: #f00000;
    border-radius: 30px;
    height: 6px;
    position: absolute;
    right: 12px;
    top: -10px;
    width: 6px;
}

.menu-top-unread-messages {
    display: inline-block;
    position: relative;
    right: -8px;
    top: -16px;
    float: right
}
.menu-top-unread-messages .heartbit {
    animation: 1s ease-out 0s normal none infinite running heartbit;
    border: 5px solid #f00000;
    border-radius: 70px;
    height: 36px;
    position: absolute;
    left: -18px;
    top: -6px;
    width: 36px;
    z-index: 10;
}
.menu-top-unread-messages .point {
    text-align: center;
    font-weight: bold;
    background-color: #f00000;
    border-radius: 30px;
    height: 24px;
    position: absolute;
    left: -12px;
    width: 24px;
}

.chat-status-buttons {
    display: flex;
    gap: 5px;
    width: 100%;
}

.btn-chat-status {
    flex: 1;
    padding: 2px 0 !important;
    font-size: 0.9rem;
}

.badge-over-button {
    position: absolute;
    display: none;
    top: 31px;
    left: calc(30%);
    z-index: 2;
}

.badge-red{
    color:#fff;
    background-color:#f00000
}

.status-btn {
    position: relative;
    border-radius: 5px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid transparent;
    font-size: 14px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.status-btn:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.status-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: transparent;
    bottom: -5px;
    left: 0;
}

.btn-open-chats-clicked::before,
.btn-closed-chats-clicked::before,
.btn-all-chats-clicked::before {
    background-color: grey;
}

.btn-open-chats {
    background-color: #dd4b39;
    border-color: #d73925;
    color: #FFF;
    border-bottom: 1px grey;
}
.btn-open-chats-clicked {
    background-color: #bf4030;
    border-color: #bf4030;
    color: #fff;
    text-decoration: underline;
    border-top: 1px grey;
    border-right: 1px grey;
}

.btn-closed-chats {
    background-color: #00a65a;
    border-color: #008d4c;
    color: #FFF;
    border-bottom: 1px grey;
}
.btn-closed-chats-clicked {
    background-color: #008045;
    border-color: #008d4c;
    color: #fff;
    text-decoration: underline;
}

.btn-all-chats {
    background-color: #868e96;
    color: #FFF;
}
.btn-all-chats-clicked {
    background-color: #666c73;
    color: #FFF;
    text-decoration: underline;
}

.user-chat-list-loader {
    position: absolute;
    position-area: center;
    top: 5%;
    width: 40px;
    height: 40px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid grey;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.add-client-form{
    margin-bottom: 10px;
}

.glow-red {
    border: 2px solid red;
    box-shadow: 0 0 10px red;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.field_line{
    width: 100%;
}

.field_label{
    width: 100%;
    font-size: 0.6em;
    text-align: left;
    /*color: #8b89a6;*/
    color: #a87652;
    font-weight: bold;
}

.field_data{
    width: 100%;
    font-size: 0.8em;
    /*height: 25px;*/
    min-height: 25px;
    overflow: hidden;
    text-align: left;
}

.green-border {
    border: 1px solid green;
    box-shadow: 0 0 6px 1px green;
}

.orange-border {
    border: 1px solid orange;
    box-shadow: 0 0 6px 1px orange;
}

.red-border {
    border: 1px solid red;
    box-shadow: 0 0 6px 1px red;
}

.cake-photo-img {
    margin: 0 auto;
    /*width: 400px;*/
    padding: 3px;
    border: 3px solid #d2d6de
}

.datetime-local{
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px; /* Удобная ширина */
    color: #495057;
    /*box-sizing: border-box;*/
    /*margin-bottom: 10px;*/
}

/* Глобальные стили для меток полей форм */
.form-group label.font-weight-bold {
    font-size: 0.8em;
    color: #803220 !important;
}

/* Убираем отступы для поля "Дополнительная информация" и кнопки "Сохранить клиента" */
.form-group:has(textarea[name="customer_info"]) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.form-group:has(textarea[name="customer_info"]) .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Убираем отступы для кнопки "Сохранить клиента" */
.form-group:has(button[id="checkForm"]) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.form-group:has(button[id="checkForm"]) .col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Стиль для надписи "Отображать на сайте" */
.checkbox-display-label {
    font-size: 0.9em;
    color: #4D4D4D;
}

/* Стили для иконок контактов */
.form-group label i {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Дополнительные стили для иконок контактов */
.form-group label i.fa-phone {
    color: #007bff !important;
}

.form-group label i.fa-comments {
    color: #665CAC !important; /* Фиолетовый цвет Viber */
}

.form-group label i.fa-paper-plane {
    color: #17a2b8 !important;
}

.form-group label i.fa-envelope {
    color: #ffc107 !important;
}

.form-group label i.fa-skype {
    color: #007bff !important;
}

/* Класс для фиолетового цвета */
.text-purple {
    color: #665CAC !important;
}

/* Стили для показателей клиента */
.customer-stats-card {
    margin-bottom: 15px;
}

.customer-stats-card .card-body {
    padding: 15px;
    display: flex;
    align-items: center;
}

.customer-stats-card .info-box-icon {
    margin-right: 15px;
}

.customer-stats-card .info-box-content {
    flex: 1;
}

.customer-stats-card .info-box-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.customer-stats-card .info-box-text {
    font-size: 0.9em;
    color: #666;
}

/* Стили для таблиц на странице клиента */
.customer .compact-orders-table,
.customer .compact-cakes-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    margin: 0;
    background: white;
    border-collapse: collapse;
}

.customer .compact-orders-table thead,
.customer .compact-cakes-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.customer .compact-orders-table thead th,
.customer .compact-cakes-table thead th {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

.customer .compact-orders-table tbody tr,
.customer .compact-cakes-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.customer .compact-orders-table tbody tr:hover,
.customer .compact-cakes-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.customer .compact-orders-table tbody td,
.customer .compact-cakes-table tbody td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    text-align: center;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Фиксированная ширина колонок для таблицы заказов на странице клиента */
.customer .compact-orders-table th:nth-child(1) { width: 7%; }   /* № + Действия */
.customer .compact-orders-table th:nth-child(2) { width: 7%; }   /* Дата */
.customer .compact-orders-table th:nth-child(3) { width: 5%; }   /* Вес */
.customer .compact-orders-table th:nth-child(4) { width: 8%; }   /* Предварительная цена */
.customer .compact-orders-table th:nth-child(5) { width: 7%; }   /* Доставка */
.customer .compact-orders-table th:nth-child(6) { width: 10%; }  /* Статус */
.customer .compact-orders-table th:nth-child(7) { width: 10%; }  /* Начинка */
.customer .compact-orders-table th:nth-child(8) { width: 15%; }  /* Доп. информация */
.customer .compact-orders-table th:nth-child(9) { width: 7%; }   /* Финальная стоимость заказа */
.customer .compact-orders-table th:nth-child(10) { width: 6%; }  /* Торт */
.customer .compact-orders-table th:nth-child(11) { width: 5%; }  /* Фото */

/* Фиксированная ширина колонок для таблицы тортов на странице клиента */
.customer .compact-cakes-table th:nth-child(1) { width: 6%; }   /* № */
.customer .compact-cakes-table th:nth-child(2) { width: 5%; }   /* Отображается */
.customer .compact-cakes-table th:nth-child(3) { width: 10%; }  /* Фото */
.customer .compact-cakes-table th:nth-child(4) { width: 14%; }  /* Название */
.customer .compact-cakes-table th:nth-child(5) { width: 6%; }   /* Заказ */
.customer .compact-cakes-table th:nth-child(6) { width: 9%; }   /* Дата готовности */
.customer .compact-cakes-table th:nth-child(7) { width: 5%; }   /* грн/кг */
.customer .compact-cakes-table th:nth-child(8) { width: 5%; }   /* Вес */
.customer .compact-cakes-table th:nth-child(9) { width: 7%; }   /* Стоимость */
.customer .compact-cakes-table th:nth-child(10) { width: 12%; } /* Начинка */
.customer .compact-cakes-table th:nth-child(11) { width: 10%; } /* Категория */
.customer .compact-cakes-table th:nth-child(12) { width: 11%; } /* KeyWords */

/* ======================================================================================= */
/* === СОВРЕМЕННЫЕ СТИЛИ ТАБЛИЦ АДМИН-ПАНЕЛИ (добавлено 20.10.2025) === */
/* ======================================================================================= */

/* ===================================================================
   ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ ТАБЛИЦ
   ================================================================= */

/* Анимация zoomIn для lightbox */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================================================
   1. ТАБЛИЦА ЗАКАЗОВ (orders.ftl)
   ================================================================= */

/* Контейнер таблицы */
.orders-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

/* Таблица с фиксированными колонками */
.compact-orders-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-orders-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-orders-table thead th {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

/* Фиксированная ширина колонок */
.compact-orders-table th:nth-child(1) { width: 7%; }   /* № + Действия */
.compact-orders-table th:nth-child(2) { width: 7%; }   /* Дата */
.compact-orders-table th:nth-child(3) { width: 5%; }   /* Вес */
.compact-orders-table th:nth-child(4) { width: 7%; }   /* Предварительная цена */
.compact-orders-table th:nth-child(5) { width: 6%; }   /* Доставка */
.compact-orders-table th:nth-child(6) { width: 9%; }   /* Статус */
.compact-orders-table th:nth-child(7) { width: 10%; }  /* Начинка */
.compact-orders-table th:nth-child(8) { width: 11%; }  /* Доп. информация */
.compact-orders-table th:nth-child(9) { width: 10%; }  /* Клиент */
.compact-orders-table th:nth-child(10) { width: 7%; }  /* Финальная стоимость заказа */
.compact-orders-table th:nth-child(11) { width: 6%; }  /* Торт */
.compact-orders-table th:nth-child(12) { width: 8%; }  /* Фото */

/* Строки */
.compact-orders-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.compact-orders-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-orders-table tbody td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    text-align: center;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Компактные статусы */
.status-indicator {
    display: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: 95px;
    min-width: 70px;
    word-wrap: break-word;
    word-break: break-word;
}

.status-1 { background: #95a5a6; color: white; }
.status-2 { background: #3498db; color: white; }
.status-3 { background: #2ecc71; color: white; }
.status-4 { background: #e74c3c; color: white; }

/* Компактные кнопки-иконки */
.icon-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin: 0 2px;
}

.icon-btn-view {
    background: #ecf0f1;
    color: #2c3e50;
}

.icon-btn-view:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.icon-btn-add {
    background: #ecf0f1;
    color: #27ae60;
}

.icon-btn-add:hover {
    background: #2ecc71;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

/* Кнопки действий в один ряд */
.order-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

/* Кнопка ID заказа */
.btn-order-id {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-order-id:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Компактное отображение начинки */
.ingredients-compact {
    font-size: 0.7rem;
    line-height: 1.3;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Дополнительная информация */
.order-info-text {
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: left;
    padding: 0.2rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ссылка-обертка для фото */
.photo-link {
    display: inline-block;
    line-height: 0;
}

/* Миниатюры фото */
.photo-mini {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: block;
}

.photo-link:hover .photo-mini {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Ссылки на клиентов */
.customer-compact {
    color: #3498db;
    font-size: 0.75rem;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-compact:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Компактные числовые значения */
.value-number {
    font-weight: 600;
    color: #2c3e50;
}

.value-price {
    color: #27ae60;
    font-weight: 600;
}

.value-cakes-total {
    color: #8B0000;
    font-weight: 700;
    font-size: 0.85rem;
}

.cakes-total-link {
    color: #8B0000;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.cakes-total-link:hover {
    color: white;
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.3);
}

.final-total-order-price {
    color: #8B0000;
    font-weight: 700;
    font-size: 0.9rem;
}

.cakes-total-link .final-total-order-price {
    color: #8B0000;
    font-weight: 700;
}

.cakes-total-link:hover .final-total-order-price {
    color: white;
}

.value-date {
    color: #7f8c8d;
    font-size: 0.75rem;
}

/* Lightbox для предпросмотра фото */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: 100;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* ===================================================================
   2. ТАБЛИЦА ТОРТОВ (cakes.ftl)
   ================================================================= */

/* Контейнер таблицы */
.cakes-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

/* Таблица с фиксированными колонками */
.compact-cakes-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-cakes-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-cakes-table thead th {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

/* Фиксированная ширина колонок */
.compact-cakes-table th:nth-child(1) { width: 5%; }   /* № */
.compact-cakes-table th:nth-child(2) { width: 4%; }   /* Отображается */
.compact-cakes-table th:nth-child(3) { width: 9%; }   /* Фото */
.compact-cakes-table th:nth-child(4) { width: 13%; }  /* Название */
.compact-cakes-table th:nth-child(5) { width: 5%; }   /* Заказ */
.compact-cakes-table th:nth-child(6) { width: 8%; }   /* Дата готовности */
.compact-cakes-table th:nth-child(7) { width: 5%; }   /* грн/кг */
.compact-cakes-table th:nth-child(8) { width: 5%; }   /* Вес */
.compact-cakes-table th:nth-child(9) { width: 7%; }   /* Стоимость */
.compact-cakes-table th:nth-child(10) { width: 11%; } /* Начинка */
.compact-cakes-table th:nth-child(11) { width: 9%; }  /* Категория */
.compact-cakes-table th:nth-child(12) { width: 9%; }  /* Заказчик */
.compact-cakes-table th:nth-child(13) { width: 10%; } /* KeyWords */

/* Строки */
.compact-cakes-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.compact-cakes-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-cakes-table tbody td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    text-align: center;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Кнопка ID торта */
.btn-cake-id {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-cake-id:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Вертикальное размещение кнопок ID тортов в заказе */
.cake-ids-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cake-ids-vertical .btn-cake-id {
    margin: 2px 0;
}

/* Чекбокс отображения */
.visibility-check {
    width: 20px;
    height: 20px;
    cursor: default;
}

/* Ссылка-обертка для фото торта */
.cake-photo-link {
    display: inline-block;
    line-height: 0;
}

/* Фото торта в таблице */
.cake-photo-table {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    display: block;
}

.cake-photo-link:hover .cake-photo-table {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}



/* Название торта */
.cake-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    word-wrap: break-word;
    white-space: normal;
}

/* Числовые значения */
.cake-value-number {
    font-weight: 600;
    color: #2c3e50;
}

.cake-value-price {
    color: #27ae60;
    font-weight: 600;
}

.cake-value-total {
    color: #8B0000;
    font-weight: 700;
    font-size: 0.9rem;
}

.cake-value-date {
    color: #7f8c8d;
    font-size: 0.75rem;
}

/* Начинка и категории */
.cake-tags {
    font-size: 0.7rem;
    line-height: 1.3;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    white-space: normal;
}

/* Ключевые слова */
.cake-keywords {
    font-size: 0.7rem;
    color: #7f8c8d;
    word-wrap: break-word;
    white-space: normal;
}

/* Ссылка на клиента */
.cake-customer-link {
    color: #3498db;
    font-size: 0.75rem;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cake-customer-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ===================================================================
   3. ТАБЛИЦА КЛИЕНТОВ (customers.ftl)
   ================================================================= */

/* Контейнер таблицы */
.customers-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

/* Таблица с фиксированными колонками */
.compact-customers-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-customers-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-customers-table thead th {
    padding: 0.4rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: none;
    vertical-align: middle;
    line-height: 1.2;
}

/* Поля поиска в заголовках */
.search-input {
    width: 100%;
    padding: 4px 6px;
    font-size: 0.7rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    color: white;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input:focus {
    background: white;
    color: #2c3e50;
    border-color: #3498db;
    outline: none;
}

/* Фиксированная ширина колонок */
.compact-customers-table th:nth-child(1) { width: 7%; }   /* № */
.compact-customers-table th:nth-child(2) { width: 4%; }   /* Действия */
.compact-customers-table th:nth-child(3) { width: 10%; }  /* Фамилия */
.compact-customers-table th:nth-child(4) { width: 9%; }   /* Имя */
.compact-customers-table th:nth-child(5) { width: 10%; }  /* Отчество */
.compact-customers-table th:nth-child(6) { width: 14%; }  /* Контакты */
.compact-customers-table th:nth-child(7) { width: 7%; }   /* Заказов */
.compact-customers-table th:nth-child(8) { width: 7%; }   /* Тортов */
.compact-customers-table th:nth-child(9) { width: 20%; }  /* Информация */
.compact-customers-table th:nth-child(10) { width: 10%; } /* Дата */

/* Строки */
.compact-customers-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.compact-customers-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-customers-table tbody td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    text-align: center;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Кнопка ID клиента */
.btn-customer-id {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-customer-id:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Кнопка добавления заказа */
.icon-btn-add-order {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    background: #ecf0f1;
    color: #27ae60;
}

.icon-btn-add-order:hover {
    background: #2ecc71;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

/* ФИО клиента */
.customer-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.8rem;
}

/* Контакты */
.customer-contacts {
    font-size: 0.75rem;
    color: #3498db;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
}

.customer-contacts br {
    display: block;
    content: "";
    margin: 2px 0;
}

/* Информация о клиенте */
.customer-info-text {
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: left;
    padding: 0.2rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Счетчики заказов/тортов */
.count-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.count-badge:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Дата */
.customer-date {
    color: #7f8c8d;
    font-size: 0.75rem;
}

/* ===================================================================
   4. ТАБЛИЦА НАЧИНОК (cake_insides.ftl)
   ================================================================= */

/* Контейнер таблицы */
.insides-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

/* Таблица с фиксированными колонками */
.compact-insides-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-insides-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-insides-table thead th {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

/* Фиксированная ширина колонок */
.compact-insides-table th:nth-child(1) { width: 7%; }   /* № */
.compact-insides-table th:nth-child(2) { width: 12%; }  /* Фото */
.compact-insides-table th:nth-child(3) { width: 12%; }  /* Категория */
.compact-insides-table th:nth-child(4) { width: 15%; }  /* Название */
.compact-insides-table th:nth-child(5) { width: 10%; }  /* Стоимость */
.compact-insides-table th:nth-child(6) { width: 8%; }   /* Отображается */
.compact-insides-table th:nth-child(7) { width: 36%; }  /* Описание */

/* Строки */
.compact-insides-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.compact-insides-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-insides-table tbody td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    text-align: center;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Кнопка ID начинки */
.btn-inside-id {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-inside-id:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Фото начинки */
.inside-photo-link {
    display: inline-block;
    line-height: 0;
}

.inside-photo-table {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    display: block;
}

.inside-photo-link:hover .inside-photo-table {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Название и категория */
.inside-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
}

.inside-category {
    color: #7f8c8d;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Цена */
.inside-price {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Чекбокс отображения */
.visibility-check-inside {
    width: 20px;
    height: 20px;
    cursor: default;
}

/* Описание */
.inside-description {
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
    padding: 0.2rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===================================================================
   5. ТАБЛИЦА КАТЕГОРИЙ ТОРТОВ (cake_types.ftl)
   ================================================================= */

/* Контейнер для центрирования */
.cake-types-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Контейнер таблицы */
.cake-types-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
    max-width: 600px;
    width: 100%;
}

/* Таблица с фиксированными колонками */
.compact-types-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.85rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-types-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-types-table thead th {
    padding: 0.8rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

/* Фиксированная ширина колонок */
.compact-types-table th:nth-child(1) { width: 20%; }  /* № */
.compact-types-table th:nth-child(2) { width: 50%; }  /* Название */
.compact-types-table th:nth-child(3) { width: 30%; }  /* Кол-во тортов */

/* Строки */
.compact-types-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.compact-types-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-types-table tbody td {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
    text-align: center;
    border: none;
}

/* Кнопка ID категории */
.btn-type-id {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-type-id:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Название категории */
.type-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-align: left;
}

/* Счетчик тортов */
.type-count-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-count-badge:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* ===================================================================
   6. ТАБЛИЦА ДИНАМИЧЕСКИХ ДАННЫХ (site_dynamic_datas.ftl)
   ================================================================= */

/* Контейнер для центрирования */
.dynamic-data-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Контейнер таблицы */
.dynamic-data-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
    max-width: 700px;
    width: 100%;
}

/* Таблица с фиксированными колонками */
.compact-dynamic-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.85rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-dynamic-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-dynamic-table thead th {
    padding: 0.8rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

/* Фиксированная ширина колонок */
.compact-dynamic-table th:nth-child(1) { width: 35%; }  /* ID - ключ */
.compact-dynamic-table th:nth-child(2) { width: 40%; }  /* Описание */
.compact-dynamic-table th:nth-child(3) { width: 25%; }  /* Стоимость */

/* Строки */
.compact-dynamic-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.compact-dynamic-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-dynamic-table tbody td {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
    text-align: center;
    border: none;
}

/* Кнопка ключа */
.btn-data-key {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
    text-align: left;
    width: 100%;
}

.btn-data-key:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Описание */
.data-description {
    font-size: 0.85rem;
    color: #2c3e50;
    text-align: left;
}

/* Цена */
.data-price {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===================================================================
   7. ТАБЛИЦА ОТЗЫВОВ (feedbacks.ftl)
   ================================================================= */

/* Контейнер таблицы */
.feedbacks-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

/* Таблица с фиксированными колонками */
.compact-feedbacks-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-feedbacks-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-feedbacks-table thead th {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

/* Фиксированная ширина колонок */
.compact-feedbacks-table th:nth-child(1) { width: 5%; }   /* ID */
.compact-feedbacks-table th:nth-child(2) { width: 9%; }   /* Дата */
.compact-feedbacks-table th:nth-child(3) { width: 10%; }  /* Имя */
.compact-feedbacks-table th:nth-child(4) { width: 16%; }  /* Контакт */
.compact-feedbacks-table th:nth-child(5) { width: 30%; }  /* Отзыв */
.compact-feedbacks-table th:nth-child(6) { width: 30%; }  /* Ответ */

/* Строки */
.compact-feedbacks-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.compact-feedbacks-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-feedbacks-table tbody td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    text-align: center;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Кнопка ID отзыва */
.btn-feedback-id {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-feedback-id:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Дата */
.feedback-date {
    color: #7f8c8d;
    font-size: 0.75rem;
}

/* Имя клиента */
.feedback-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.8rem;
}

/* Контакты */
.feedback-contacts {
    font-size: 0.7rem;
    color: #3498db;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
}

.feedback-contacts i {
    margin-right: 3px;
}

.contact-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Текст отзыва */
.feedback-text {
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #2c3e50;
}

/* Ответ кондитера */
.konditer-response {
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #27ae60;
}

.no-response {
    color: #e67e22;
    font-style: italic;
    font-size: 0.7rem;
}

/* ===================================================================
   8. ТАБЛИЦА СОТРУДНИКОВ (employees.ftl)
   ================================================================= */

/* Контейнер таблицы */
.employees-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

/* Таблица с фиксированными колонками */
.compact-employees-table {
    width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
    margin: 0;
    background: white;
}

/* Sticky заголовок */
.compact-employees-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-employees-table thead th {
    padding: 0.6rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border: none;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

/* Фиксированная ширина колонок */
.compact-employees-table th:nth-child(1) { width: 8%; }   /* ID */
.compact-employees-table th:nth-child(2) { width: 25%; }  /* ПІБ + фото */
.compact-employees-table th:nth-child(3) { width: 15%; }  /* username */
.compact-employees-table th:nth-child(4) { width: 15%; }  /* Роль */
.compact-employees-table th:nth-child(5) { width: 15%; }  /* Статус */
.compact-employees-table th:nth-child(6) { width: 10%; }  /* Активний */
.compact-employees-table th:nth-child(7) { width: 12%; }  /* Дата */

/* Строки */
.compact-employees-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.compact-employees-table tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.compact-employees-table tbody td {
    padding: 0.5rem 0.3rem;
    vertical-align: middle;
    text-align: center;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Кнопка ID сотрудника */
.btn-employee-id {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-employee-id:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* ФИО с фото */
.employee-info {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.employee-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ecf0f1;
    flex-shrink: 0;
}

.employee-name-link {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.employee-name-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Username */
.employee-username {
    color: #7f8c8d;
    font-size: 0.75rem;
    font-family: monospace;
}

/* Роль и статус */
.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #3498db;
    color: white;
}

.status-badge-emp {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #2ecc71;
    color: white;
}

/* Активность */
.active-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71;
}

.inactive-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c;
}

/* Дата */
.employee-date {
    color: #7f8c8d;
    font-size: 0.75rem;
}

/* ===================================================================
   АДАПТИВНОСТЬ ДЛЯ ВСЕХ ТАБЛИЦ
   ================================================================= */

@media (max-width: 1400px) {
    .compact-orders-table,
    .compact-cakes-table,
    .compact-customers-table,
    .compact-insides-table,
    .compact-feedbacks-table,
    .compact-employees-table {
        font-size: 0.75rem;
    }

    .compact-orders-table thead th,
    .compact-cakes-table thead th,
    .compact-customers-table thead th,
    .compact-insides-table thead th,
    .compact-feedbacks-table thead th,
    .compact-employees-table thead th {
        padding: 0.5rem 0.2rem;
        font-size: 0.65rem;
    }

    .compact-orders-table tbody td,
    .compact-cakes-table tbody td,
    .compact-customers-table tbody td,
    .compact-insides-table tbody td,
    .compact-feedbacks-table tbody td,
    .compact-employees-table tbody td {
        padding: 0.4rem 0.2rem;
    }

    .search-input {
        font-size: 0.65rem;
        padding: 3px 4px;
    }

    .employee-photo {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .cake-types-wrapper,
    .dynamic-data-wrapper {
        max-width: 100%;
    }

    .compact-types-table,
    .compact-dynamic-table {
        font-size: 0.75rem;
    }

    .compact-types-table thead th,
    .compact-dynamic-table thead th {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
    }

    .compact-types-table tbody td,
    .compact-dynamic-table tbody td {
        padding: 0.5rem 0.3rem;
    }
}

/* ======================================================================================= */
/* === ОБЪЕДИНЕННЫЙ HEADER И MENU (добавлено 20.10.2025) === */
/* ======================================================================================= */

/* Основной контейнер объединенного header */
.main-header-unified {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 45px;
    background-color: #70b2a6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Контейнер содержимого header */
.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Логотип */
.header-logo {
    flex-shrink: 0;
    margin-right: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-lg {
    height: 40px;
    width: auto;
}

/* Меню */
.header-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Объединенное меню */
.ace-responsive-menu-unified {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    float: left;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ace-responsive-menu-unified li {
    list-style: none;
    position: relative;
}

.ace-responsive-menu-unified li ul {
    display: none;
}

.ace-responsive-menu-unified > li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0px;
    float: left;
}

.ace-responsive-menu-unified li a {
    color: #ece9e9;
    text-decoration: none;
}

.ace-responsive-menu-unified > li > a {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    border: 0px;
    padding: 18px 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 45px;
    box-sizing: border-box;
}

.ace-responsive-menu-unified li a i {
    padding-right: 4px;
    color: #fff;
    font-size: 13px;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

.ace-responsive-menu-unified > li > a i {
    font-size: 13px;
    text-shadow: none;
    color: #fff;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

.ace-responsive-menu-unified li:hover > a {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.ace-responsive-menu-unified li.menu-active > a {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff;
}

/* Стили для активного пункта меню */
.ace-responsive-menu-unified li.current-page > a {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff;
}

/* Стили для серверного активного пункта меню */
.ace-responsive-menu-unified li.active-page > a {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff;
    margin: 0 !important;
    padding: 18px 15px 18px 10px !important;
    height: 45px !important;
    box-sizing: border-box !important;
}

/* Стили для родительского пункта, когда активен дочерний */
.ace-responsive-menu-unified li.has-active-child > a {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #fff;
}

/* Стили для активного пункта в подменю */
.ace-responsive-menu-unified li ul.sub-menu li.current-page > a {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff;
}

/* Подменю */
.ace-responsive-menu-unified > li > ul.sub-menu {
    display: none;
    list-style: none;
    clear: both;
    margin: 0;
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #70b2a6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
}

.ace-responsive-menu-unified li ul.sub-menu > li {
    width: 100%;
}

.ace-responsive-menu-unified li ul.sub-menu li a {
    display: block;
    margin: 0px 0px;
    padding: 12px 20px;
    height: 45px;
    line-height: 21px;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
    background: none;
    color: #ece9e9;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ace-responsive-menu-unified li ul.sub-menu li a:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Стрелки для подменю */
.ace-responsive-menu-unified > li > a > .arrow:before {
    margin-left: 6px;
    display: inline-block;
    font-size: 10px;
    font-family: FontAwesome;
    height: auto;
    content: "\f107";
    font-weight: 300;
    text-shadow: none;
    width: 8px;
    vertical-align: baseline;
    line-height: 1;
    margin-top: 2px;
}

/* Пользователь */
.header-user {
    flex-shrink: 0;
    margin-left: 20px;
}

.header-user .nav {
    margin: 0;
}

.header-user .user-image {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-user .color-vanila-font {
    color: #fff !important;
}

/* Стили::after для стрелки в пользовательском меню - скрываем стрелку */
.header-user .dropdown-toggle::after {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
    }

    .header-logo {
        margin-right: 0;
    }

    .header-menu {
        flex: 1;
    }

    .ace-responsive-menu-unified > li > a {
        padding: 18px 6px;
        font-size: 12px;
    }

    .ace-responsive-menu-unified li a i {
        font-size: 12px;
    }

    .header-user {
        margin-left: 10px;
    }

    .header-user .dropdown-toggle {
        padding: 15px 10px 10px 10px !important;
    }

    .header-user .user-image {
        width: 30px !important;
        height: 30px !important;
    }
}

@media (max-width: 480px) {
    .main-header-unified {
        height: 50px;
    }

    .ace-responsive-menu-unified > li > a {
        padding: 15px 4px;
        font-size: 11px;
    }

    .ace-responsive-menu-unified li a i {
        font-size: 11px;
        padding-right: 2px;
    }

    .logo-lg {
        height: 35px;
    }
}

/* ======================================================================================= */
/* === СТИЛИ ДЛЯ ФОРМЫ СОЗДАНИЯ ЗАКАЗА (order_add_new.ftl) === */
/* ======================================================================================= */

/* Стили для статусов заказа */
.order-add-new-order-status-select {
    font-weight: bold;
}

.order-add-new-order-status-1 {
    background-color: #e0e0e0 !important; /* светло-серый */
    color: #000000 !important;
}

.order-add-new-order-status-2 {
    background-color: #b3d9ff !important; /* светло-синий */
    color: #000000 !important;
}

.order-add-new-order-status-3 {
    background-color: #b3ffb3 !important; /* светло-зеленый */
    color: #000000 !important;
}

.order-add-new-order-status-4 {
    background-color: #ffb3b3 !important; /* светло-красный */
    color: #000000 !important;
}

/* Стили для кастомного select клиентов */
.order-add-new-custom-select-container {
    position: relative;
    width: 100%;
}

.order-add-new-custom-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    overflow: hidden;
    white-space: nowrap;
}

#orderAddNewSelectText {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-add-new-custom-select:hover {
    border-color: #999;
}

.order-add-new-custom-select-arrow {
    transition: transform 0.3s;
}

.order-add-new-custom-select.open .order-add-new-custom-select-arrow {
    transform: rotate(180deg);
}

.order-add-new-custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 400px;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.order-add-new-custom-select-options {
    max-height: 250px;
    overflow-y: auto;
    flex: 1;
}

.order-add-new-custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.order-add-new-custom-select-option:hover {
    background-color: #f5f5f5;
}

.order-add-new-custom-select-option.selected {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
    font-weight: bold;
}

.order-add-new-custom-select-option.selected:hover {
    background-color: #ffeaa7 !important;
}

.order-add-new-search-fields {
    background-color: #f8f9fa;
}

.order-add-new-search-fields input {
    font-size: 12px;
}

#orderAddNewLoadMoreButton {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa !important;
    flex-shrink: 0;
}

#orderAddNewLoadMoreButton button {
    border: none;
    background: transparent;
    color: #007bff;
    font-size: 12px;
    padding: 4px 8px;
}

#orderAddNewLoadMoreButton button:hover {
    background-color: #e9ecef;
    border-radius: 3px;
}

#orderAddNewLoadMoreButton button:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.order-add-new-custom-select.disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.order-add-new-custom-select.disabled:hover {
    border-color: #dee2e6;
}

.order-add-new-custom-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ======================================================================================= */
/* === СТИЛИ ДЛЯ СТРАНИЦЫ РЕДАКТИРОВАНИЯ ЗАКАЗА (order.ftl) === */
/* ======================================================================================= */

/* Стили для статусов заказа */
.order-order-status-select {
    font-weight: bold;
}

.order-order-status-1 {
    background-color: #e0e0e0 !important; /* светло-серый */
    color: #000000 !important;
}

.order-order-status-2 {
    background-color: #b3d9ff !important; /* светло-синий */
    color: #000000 !important;
}

.order-order-status-3 {
    background-color: #b3ffb3 !important; /* светло-зеленый */
    color: #000000 !important;
}

.order-order-status-4 {
    background-color: #ffb3b3 !important; /* светло-красный */
    color: #000000 !important;
}

/* Стили для кастомного select клиентов */
.order-custom-select-container {
    position: relative;
    width: 100%;
}

.order-custom-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    overflow: hidden;
    white-space: nowrap;
}

#orderSelectText {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-custom-select:hover {
    border-color: #999;
}

.order-custom-select-arrow {
    transition: transform 0.3s;
}

.order-custom-select.open .order-custom-select-arrow {
    transform: rotate(180deg);
}

.order-custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 400px;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.order-custom-select-options {
    max-height: 250px;
    overflow-y: auto;
    flex: 1;
}

.order-custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.order-custom-select-option:hover {
    background-color: #f5f5f5;
}

.order-custom-select-option.selected {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
    font-weight: bold;
}

.order-custom-select-option.selected:hover {
    background-color: #ffeaa7 !important;
}

.order-search-fields {
    background-color: #f8f9fa;
}

.order-search-fields input {
    font-size: 12px;
}

#orderLoadMoreButton {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa !important;
    flex-shrink: 0;
}

#orderLoadMoreButton button {
    border: none;
    background: transparent;
    color: #007bff;
    font-size: 12px;
    padding: 4px 8px;
}

#orderLoadMoreButton button:hover {
    background-color: #e9ecef;
    border-radius: 3px;
}

#orderLoadMoreButton button:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.order-custom-select.disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.order-custom-select.disabled:hover {
    border-color: #dee2e6;
}

/* Lightbox для предпросмотра фото */
.order-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.order-lightbox-overlay.show {
    display: flex;
}

.order-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.order-lightbox-close:hover {
    color: #ccc;
}

.order-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ======================================================================================= */
/* === СТИЛИ ДЛЯ СТРАНИЦЫ РЕДАКТИРОВАНИЯ ТОРТА (cake.ftl) === */
/* ======================================================================================= */

#cakeCustomer, #cakeOrder {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cake-custom-select-container {
    position: relative;
    width: 100%;
}

.cake-custom-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    overflow: hidden;
    white-space: nowrap;
}

.cake-custom-select.disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.cake-custom-select.disabled:hover {
    border-color: #dee2e6;
}

#cakeSelectText {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cake-custom-select:hover {
    border-color: #999;
}

.cake-custom-select-arrow {
    transition: transform 0.3s;
}

.cake-custom-select.open .cake-custom-select-arrow {
    transform: rotate(180deg);
}

.cake-custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cake-custom-select-options {
    max-height: 150px;
    overflow-y: auto;
    flex: 1;
}

.cake-custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.cake-custom-select-option:hover {
    background-color: #f5f5f5;
}

.cake-custom-select-option.selected {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
    font-weight: bold;
}

.cake-custom-select-option.selected:hover {
    background-color: #ffeaa7 !important;
}

#cakeLoadMoreButton {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa !important;
    flex-shrink: 0;
}

#cakeLoadMoreButton button {
    border: none;
    background: transparent;
    color: #007bff;
    font-size: 12px;
    padding: 4px 8px;
}

#cakeLoadMoreButton button:hover {
    background-color: #e9ecef;
    border-radius: 3px;
}

#cakeLoadMoreButton button:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* ======================================================================================= */
/* === СТИЛИ ДЛЯ СТРАНИЦЫ СОЗДАНИЯ ТОРТА (cake_add_new.ftl) === */
/* ======================================================================================= */

.cake-add-new-custom-select-container {
    position: relative;
    width: 100%;
}

.cake-add-new-custom-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    overflow: hidden;
    white-space: nowrap;
}

#cakeAddNewSelectText {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cake-add-new-custom-select:hover {
    border-color: #999;
}

.cake-add-new-custom-select-arrow {
    transition: transform 0.3s;
}

.cake-add-new-custom-select.open .cake-add-new-custom-select-arrow {
    transform: rotate(180deg);
}

.cake-add-new-custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cake-add-new-custom-select-options {
    max-height: 150px;
    overflow-y: auto;
    flex: 1;
}

.cake-add-new-custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.cake-add-new-custom-select-option:hover {
    background-color: #f5f5f5;
}

.cake-add-new-custom-select-option.selected {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
    font-weight: bold;
}

.cake-add-new-custom-select-option.selected:hover {
    background-color: #ffeaa7 !important;
}

#cakeAddNewCustomer, #cakeAddNewOrder {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#cakeAddNewLoadMoreButton {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa !important;
    flex-shrink: 0;
}

#cakeAddNewLoadMoreButton button {
    border: none;
    background: transparent;
    color: #007bff;
    font-size: 12px;
    padding: 4px 8px;
}

#cakeAddNewLoadMoreButton button:hover {
    background-color: #e9ecef;
    border-radius: 3px;
}

#cakeAddNewLoadMoreButton button:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

.cake-add-new-custom-select.disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.cake-add-new-custom-select.disabled:hover {
    border-color: #dee2e6;
}

/* ======================================================================================= */
/* === СТИЛИ ДЛЯ СТРАНИЦЫ ОТЗЫВОВ (feedback.ftl) === */
/* ======================================================================================= */

.feedback-emoji-picker {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    width: 100%;
    font-size: 0.8em !important;
}

.feedback-emoji-btn {
    font-size: 1.5em;
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #dee2e6;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-emoji-btn:hover {
    transform: scale(1.2);
    background-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feedback-emoji-btn:active {
    transform: scale(1.1);
}

/* ======================================================================================= */
/* === СТИЛИ ДЛЯ СТРАНИЦЫ ДОКУМЕНТАЦИИ АНАЛИТИКИ (analytics-documentation.ftl) === */
/* ======================================================================================= */

.analytics-documentation-doc-section {
    margin-bottom: 30px;
}

.analytics-documentation-doc-section h3 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.analytics-documentation-doc-section h4 {
    color: #28a745;
    margin-top: 20px;
}

.analytics-documentation-code-block {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    margin: 10px 0;
    font-family: monospace;
    font-size: 0.9em;
}

.analytics-documentation-feature-list {
    list-style: none;
    padding-left: 0;
}

.analytics-documentation-feature-list li {
    padding: 5px 0;
}

.analytics-documentation-feature-list li:before {
    content: "✅ ";
    color: #28a745;
}

.analytics-documentation-example-box {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin: 10px 0;
}

.analytics-documentation-info-box {
    background: #d1ecf1;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
    margin: 10px 0;
}

/* ======================================================================================= */
/* === ОБЩИЕ СТИЛИ ДЛЯ LIGHTBOX (используется в orders.ftl, cakes.ftl, customer.ftl, cake_insides.ftl) === */
/* ======================================================================================= */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ======================================================================================= */
/* === СТИЛИ ДЛЯ СТРАНИЦЫ КЛИЕНТА (customer.ftl) === */
/* ======================================================================================= */

.customer-stats-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.customer-stats-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.customer-stats-card-link:hover .customer-stats-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.customer-stats-card-link .customer-stats-card {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

/* Плавная прокрутка к секциям */
html {
    scroll-behavior: smooth;
}

/* ======================================================================================= */
/* === ОБЩИЕ СТИЛИ ДЛЯ HEADER (используется глобально) === */
/* ======================================================================================= */

.main-header-unified {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 45px;
    background-color: #70b2a6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-wrapper {
    padding-top: 45px;
}

.ace-responsive-menu-unified > li > a {
    height: 45px;
    box-sizing: border-box;
}

.ace-responsive-menu-unified li.active-page > a {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff;
    margin: 0 !important;
    padding: 18px 15px 18px 10px !important;
    height: 45px !important;
    box-sizing: border-box !important;
}

.main-footer {
    margin-top: auto;
}