/* Tailwind подключается с CDN; здесь только дополнения. */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Скрытый текст для screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Мобильные вкладки: одна панель на весь экран под меню */
@media (max-width: 767.98px) {
    #crmRoot #leftPanel,
    #crmRoot #chatColumn,
    #crmRoot #rightPanel {
        display: none !important;
    }

    #crmRoot[data-mobile-panel="clients"] #leftPanel {
        display: flex !important;
        flex-direction: column;
    }

    #crmRoot[data-mobile-panel="chat"] #chatColumn {
        display: flex !important;
        flex-direction: column;
    }

    #crmRoot[data-mobile-panel="card"] #rightPanel {
        display: flex !important;
        flex-direction: column;
    }
}

.client-item {
    position: relative;
    overflow: hidden;
}

.client-debounce-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        rgba(14, 165, 233, 0.32) 0%,
        rgba(56, 189, 248, 0.14) 100%
    );
    transition: width 0.85s linear;
}

.client-item-inner {
    position: relative;
    z-index: 1;
}

#crmMenuBar.crm-menu-offline {
    border-bottom-color: rgb(220 38 38);
    background-color: rgba(69, 10, 10, 0.65);
    box-shadow:
        inset 0 3px 0 0 rgb(185 28 28),
        0 0 0 1px rgba(248, 113, 113, 0.35);
}
