* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;

        }



         a {
           text-decoration: none;
           }

        .navbar-profile {
            position: relative;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            -ms-flex-align: center;
            align-items: center;
            -ms-flex-pack: justify;
            justify-content: space-between;
            padding: .5rem 1rem;
            border-bottom: 1px solid #e2e8f0;
        }

        /* Стили кнопки закрыть */
          .close-btn-title-order {
            position: absolute;
            top: -6px;
            right: 10px;
            background: #495057;
            border: none;
            border-radius: 30px;
            font-size: 1.5rem;
            font-weight: bold;
            line-height: 1;
            color: #eef2f6;
            cursor: pointer;
            transition: color 0.2s;
            padding: 1px 6px;
          }

          .close-btn-title-order:hover {
            color: red;
            opacity: 0.8;
          }

          .close-btn-title-order:active {
            color: red;
          }

          .btn-vertical-center {
            display: inline-flex !important;;
            align-items: center;
            gap: 0.5rem;
          }

        tm-navbar-profile {
            /* position: fixed; */
            width: 100%;
            z-index: 1000;
            background-color: transparent;
            transition: all 0.3s ease;
        }

        /* === ВЕРХНЯЯ ПОЛОСА (десктоп + мобильный вариант) === */
        .top-bar {
            background: #ffffff;
            backdrop-filter: blur(0px);
            border-bottom: 1px solid #e2e8f0;
            padding: 0.85rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem;
            box-shadow: 0 1px 2px rgba(0,0,0,0.02);
            margin-right: auto;
            margin-left: auto;
        }

        /* Логотип */
        .logo-area {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            font-size: 1.3rem;
            letter-spacing: -0.3px;
        }
        .logo-icon {

            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.1rem;
            color: #1e293b;
            transition: all 0.2s ease;
        }
        .logo-text {
            background: linear-gradient(135deg, #1e293b, #334155);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            font-weight: 600;
        }

        /* Десктопная навигация (кнопки) */
        .nav-links {
            display: flex;
            gap: 0.2rem;
            align-items: center;
        }
        .nav-btn {
            background: transparent;
            border: none;
            padding: 0.55rem 1.2rem;
            font-size: 1rem;
            color: #3d4347;
            cursor: pointer;
            transition: all 0.2s ease;

        }

        .nav-btn-invite {
            /* background: transparent; */
            border: none;
            padding: 0.55rem 1.2rem;
            font-size: 1rem;
            font-weight: 500;

            color: #FFF;
            background-color: #3d4347;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
            letter-spacing: -0.2px;
        }

        .nav-btn:hover {
            color: #FFF;
  background-color: #3d4347;
        }

        .nav-btn.active {
                   color: #FFF;
          background-color: #3d4347;
                }

        /* Основной контент — плавная смена дивов */
        .content-container {
            flex: 1;
            max-width: 1280px;
            margin: 2rem auto;
            padding: 0 1.5rem;
            width: 100%;
        }

        .page-panel {
            background: #ffffff;

            border-radius: 8px;


            padding: 2rem 2rem;
            transition: opacity 0.2s ease, transform 0.2s ease;
            animation: fadeSlide 0.25s ease-out;

        }

        @keyframes fadeSlide {
            from {
                opacity: 0;
                transform: translateY(6px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .page-panel h2 {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
            letter-spacing: -0.4px;
            color: #0f172a;
        }
        .page-panel p {
            color: #334155;
            margin-bottom: 1.2rem;
            line-height: 1.5;
            font-size: 1rem;
        }
        .page-panel .card-grid {
                display: flex;
                flex-wrap: wrap;
                gap: 0.8rem;
                margin-top: 0.6rem;
            }
        .mini-card {
            background: #f5f5f5;
            border-radius: 12px;
            padding: 0.5rem 0.6rem;
            flex: 1 1 180px;
            border: 1px solid #eef2f6;
            transition: all 0.2s;
        }
        .mini-card h5 {
            font-weight: 500;
            margin-bottom: 0.4rem;
            font-size: 1.1rem;
        }

        /* Мобильная навигация (нижняя панель) — по умолчанию скрыта, показываем только на мобилах */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.96);
            backdrop-filter: blur(12px);
            border-top: 1px solid #e2e8f0;
            padding: 0.30rem 0.2rem;
            justify-content: space-around;
            align-items: center;
            z-index: 20;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
        }

        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.4rem 0.8rem;

            transition: all 0.2s;
            font-family: inherit;
        }
        .mobile-nav-item .icon {
            font-size: 1.65rem;
            font-weight: 400;
            color: #3d4347;
            transition: color 0.2s;
        }
        .mobile-nav-item span:not(.icon) {
            font-size: 0.7rem;
            font-weight: 500;
            color: #3d4347;
        }
        .mobile-nav-item.active-mobile {
            background: #efefef;
        }
        .mobile-nav-item.active-mobile .icon,
        .mobile-nav-item.active-mobile span:not(.icon) {
            color: #3d4347;
        }

        /* Адаптив: планшеты и мобильные */
        @media (max-width: 992px) {
            .top-bar {
                padding: 0.7rem 1.2rem;
            }
            .nav-links {
                display: none;  /* прячем горизонтальные кнопки */
            }
            .mobile-bottom-nav {
                display: flex;
            }
            body {
                padding-bottom: 70px;
            }
            .content-container {
                margin: 1.2rem auto;
                padding: 0 1rem;
            }
            .page-panel {
                padding: 1.5rem;
                border-radius: 4px;
            }
            .page-panel h2 {
                font-size: 1.5rem;
            }
        }

        /* Для очень маленьких экранов */
        @media (max-width: 480px) {
            .page-panel {
                padding: 0.75rem;
            }
            .mini-card {
                flex: 1 1 100%;
            }
        }

        /* Акцент на кнопках и состоянии */
        button {
            cursor: pointer;
        }
        footer {

            font-size: 0.75rem;
            color: #6d7073;
            padding: 1rem;
            margin-top: 1rem;

        }
        .badge {
            display: inline-block;
            background: #eef2ff;
            padding: 0.2rem 0.8rem;
            border-radius: 30px;
            font-size: 0.8rem;
            color: #2563eb;
        }


    .status-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .status-active {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .status-inactive {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .status-pending {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeeba;
    }

    .status-blocked {
        background-color: #e2e3e5;
        color: #383d41;
        border: 1px solid #d6d8db;
    }

    .badge-profile {

    font-size: 1rem;


}

        /* Для мобильных устройств (до 768px) */
@media (max-width: 768px) {
  .w-100-mobile {
    width: 100% !important;
  }
  .mini-card {
    font-size: 14px;

  }

  .w-80-mobile {
    width: 80% !important;
  }

}

/* Для десктопов (от 768px) */
@media (min-width: 769px) {
  .w-50-desktop {
    width: 50% !important;
  }
  .w-65-desktop {
    width: 65% !important;
  }


}

}

.body_standard::after {
  content: " руб.";
  white-space: nowrap;
}

.body_pallet::after {
  content: " руб.";
  white-space: nowrap;
}

.message-box {
    background: #f2f4f5;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #484848;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #ffc107;
}

.message-box i {
    font-size: 1.2rem;
    color: #ffc107;
}


/* Подсветка зеленым бордером */
.deferred-accordion-header.highlight-green {
    border: 1px solid #2422adb8 !important;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease-out;
}

.deferred-accordion-header {
    transition: all 1s ease-out;
}


@keyframes pulse_green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ===== СТИЛИ АККОРДЕОНА ДЛЯ ОТЛОЖЕННЫХ ЗАКАЗОВ ===== */
/* Используем уникальные классы, чтобы не конфликтовать с существующим аккордеоном */

.deferred-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deferred-accordion-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.deferred-accordion-item:hover {
    border-color: #cbd5e1;
}

/* Заголовок аккордеона */
.deferred-accordion-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    user-select: none;
    background: white;
}


.deferred-accordion-header:hover {
    background: #f8fafc !important;
}

.deferred-header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: baseline;
    font-size: 14px;
}


.deferred-accordion-header-system_notify {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    user-select: none;
    background: white;
}


.deferred-accordion-header-system_notify:hover {
    background: #f8fafc !important;
}

.deferred-header-date {
    color: #212529;
    font-size: 13px;
}

.deferred-header-order {
    font-family: monospace;
    font-size: 14px;
    font-weight: 500;
    color: #ad8c22;
}


.deferred-header-price {
    font-weight: 600;
    color: #2aa647;
    font-size: 15px;
}

.deferred-accordion-icon {
    display: inline-block;
    color: #212529;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.deferred-accordion-icon-system_notify {
    display: inline-block;
    color: #212529;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.deferred-accordion-header.active .deferred-accordion-icon {
    transform: rotate(180deg);
}

/* Тело аккордеона - скрыто по умолчанию */
.deferred-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Тело аккордеона - открыто */
.deferred-accordion-body.show {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
    display: block !important;
}

.deferred-accordion-content {
    padding: 20px;
    border-top: 1px solid #eef2f6;
    background: #fefefe;
}

/* Секции внутри аккордеона */
.deferred-section {
    margin-bottom: 20px;
}

.deferred-section:last-child {
    margin-bottom: 0;
}

.deferred-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #484848;
    margin-bottom: 12px;
}

/* Сетка информации */
.deferred-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.deferred-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deferred-info-label {
    font-size: 11px;
    color: #3d43477a;
    text-transform: uppercase;
}

.deferred-info-value {
    font-size: 14px;
    color: #1e293b;
}

/* Таблицы внутри аккордеона */
.deferred-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.deferred-table th,
.deferred-table td {
    padding: 8px 8px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
}

.deferred-table th {
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
}

.deferred-table td {
    color: #334155;
}

.deferred-table-current {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.deferred-table-current th,
.deferred-table-current td {
    padding: 8px 8px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
}

.deferred-table-current th {
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
}

.deferred-table-current td {
    color: #334155;
}

/* Бейдж статуса */
.deferred-badge-new {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Блок итого */
.deferred-total-box {
    background: #f8fafc;
    padding: 12px 16px;
    margin-top: 16px;
    text-align: right;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #eef2f6;
}

.deferred-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2aa647;
    margin-left: 8px;
}

/* Кнопка оплаты */
.deferred-pay-button {
    width: 100%;
    background: #2aa647;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.deferred-pay-button:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* Пустое состояние */
.deferred-empty-state {
    text-align: center;
    padding: 48px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #94a3b8;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .deferred-accordion-header {
        padding: 12px 16px;
    }
    .deferred-accordion-header-system_notify {
        padding: 12px 16px;
    }

    .small_button {
        zoom: 92%;
    }

    .small_button_d {
        zoom: 85%;
    }

    .deferred-header-info {
        gap: 3px;
        font-size: 12px;
    }

    .deferred-header-order {
        font-size: 12px;
    }

    .deferred-header-price {
        font-size: 11px;
        width: 55px;
    }

    .deferred-header-ttl {
        font-size: 11px;
        width: 45px;
    }

    .deferred-accordion-content {
        padding: 16px;
    }

    .deferred-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .deferred-table {
        font-size: 12px;
    }

    .deferred-table th,
    .deferred-table td {
        padding: 6px 4px;
    }
}

/* CSS для Grid */
.deferred-grid {
    width: 100%;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    overflow: hidden;
}

.grid-header,
.grid-row {
    display: grid;
    grid-template-columns: 30% 15% 25% 30%; /* Одинаковая ширина для всех */
    gap: 0;
}

.grid-header {
    background: #f8fafc;
    font-weight: 500;
    color: #3d4347;
    font-size: 14px;
    border-bottom: 1px solid #eef2f6;
}

.grid-header > div,
.grid-row > div {
    padding: 10px 8px;
    border-right: 1px solid #eef2f6;
}

.grid-header > div:last-child,
.grid-row > div:last-child {
    border-right: none;
}

.grid-row {
    border-bottom: 1px solid #eef2f6;
    font-size: 14px;
}

.grid-row:last-child {
    border-bottom: none;
}

.grid-row:hover {
    background: #fafafa;
}

/* Кнопка удаления */
.deferred-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #94a3b8;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 6px;
}

.deferred-delete-btn:hover {
    color: #ef4444;
    background-color: #fef2f2;
    transform: scale(1.05);
}

.deferred-delete-btn:active {
    transform: scale(0.95);
}

/* Если используете иконку без кнопки */
.deferred-delete-icon {
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
    font-size: 14px;
}

.deferred-delete-icon:hover {
    color: #ef4444;
    transform: scale(1.1);
}

/* Разделитель между иконками */
.deferred-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deferred-header-ttl {
    color: #94a3b8;
    font-size: 11px;
}

/* Модальное окно */
.deferred-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.deferred-modal-content {
    background-color: white;
    margin: 15% auto;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.deferred-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.deferred-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.deferred-modal-body {
    padding: 20px 24px;
}

.deferred-modal-body p {
    color: #475569;
    margin: 0;
    font-size: 14px;
}

.deferred-modal-warning {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 12px !important;
}

.deferred-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.deferred-modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.deferred-modal-cancel {
    background: #f1f5f9;
    color: #475569;
}

.deferred-modal-cancel:hover {
    background: #e2e8f0;
}

.deferred-modal-confirm {
    background: #ef4444;
    color: white;
}

.deferred-modal-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Для мобильных */
@media (max-width: 640px) {
    .deferred-modal-content {
        margin: 70% auto;
        width: 95%;
    }
}

#payments-block {
    padding: 20px;
    border-top: 1px solid #eef2f6;
    border: 1px solid #e2e8f0;
    background: #fefefe;
    border-radius: 12px;
}