.mainmenu-item.mainmenu-preview.has-nolabel {
    display: none !important;
}

.col-narrow {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

/* Увеличение ширины tooltip'ов в два раза */
.tooltip .tooltip-inner {
    max-width: 400px;
    min-width: 200px;
}

/* Стили для комментария SW */
.sw-comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #721c24;
    font-size: 12px;
    cursor: help;
    transition: all 0.2s ease;
}

.sw-comment-badge:hover {
    background-color: #f5c2c7;
    border-color: #bb2d3b;
}

.sw-comment-badge .oc-icon-comment {
    font-size: 14px;
    opacity: 0.8;
}

.sw-comment-badge .sw-comment-text {
    font-weight: 500;
}

/* Стили для очереди заказов */
.queue-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 30px;
    color: #664d03;
    font-size: 13px;
    margin-left: 15px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.queue-stats-badge:hover {
    background-color: #ffecb5;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.queue-stats-badge .oc-icon-clock-o {
    font-size: 16px;
    color: #856404;
}

.queue-stats-badge strong {
    font-weight: 600;
    color: #533f03;
}

/* Счётчик неоплаченных счетов в боковом меню */
li.mainmenu-item.has-counter a span.counter[data-menu-id="app/invoices"],
li.mainmenu-item a span.counter[data-menu-id="app/invoices"] {
    --invoice-badge-red: #c62828;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background-color: #fff5f5 !important;
    color: var(--invoice-badge-red) !important;
    border: 1.5px solid var(--invoice-badge-red) !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    box-shadow: 0 1px 3px rgba(198, 40, 40, 0.18) !important;
    position: relative !important;
    top: 0 !important;
    margin-left: 4px !important;
}

/* Статусы заявок на изменение цен */
.price-change-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.price-change-status-badge.status-pending {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.price-change-status-badge.status-approved {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.price-change-status-badge.status-rejected {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* Ссылки в списке заявок на изменение цен (заказ, компания) */
.app-list-cell-link {
    text-decoration: underline;
    cursor: pointer;
}

/* Светлая тема */
[data-bs-theme="light"] .app-list-cell-link {
    color: #0066cc !important;
}

[data-bs-theme="light"] .app-list-cell-link:hover {
    color: #004499 !important;
}

/* Тёмная тема */
[data-bs-theme="dark"] .app-list-cell-link {
    color: #6ea8fe !important;
}

[data-bs-theme="dark"] .app-list-cell-link:hover {
    color: #9ec5fe !important;
}

.telegram-chat-id-prompt {
    margin: 0 0 20px;
    border: 1px solid #b9d7ff;
    border-radius: 10px;
    background: linear-gradient(135deg, #f4f9ff 0%, #eef6ff 100%);
    box-shadow: 0 8px 20px rgba(19, 84, 122, 0.08);
}

.telegram-chat-id-prompt--success {
    border-color: #b7ebc6;
    background: linear-gradient(135deg, #f2fff6 0%, #ecfbf1 100%);
}

.telegram-chat-id-prompt__content {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 24px;
}

.telegram-chat-id-prompt__text {
    max-width: 760px;
}

.telegram-chat-id-prompt__title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    color: #17324d;
}

.telegram-chat-id-prompt__description {
    margin: 0;
    color: #35506b;
    font-size: 14px;
    line-height: 1.6;
}

.telegram-chat-id-prompt__description a {
    font-weight: 600;
}

.telegram-chat-id-prompt__actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    min-width: 360px;
}

.telegram-chat-id-prompt__field {
    flex: 1;
}

.telegram-chat-id-prompt__hint {
    margin-top: 6px;
    font-size: 12px;
    color: #5c7288;
}

.telegram-chat-id-prompt__error {
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
    color: #b42318;
}

.telegram-chat-id-prompt__button {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .telegram-chat-id-prompt__content,
    .telegram-chat-id-prompt__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .telegram-chat-id-prompt__actions {
        min-width: 0;
    }
}
