/* UI-KIT (25.10): единообразие кнопок периода, селектов, мелких контролов */

/* === 1. Чипы периода (audit, masters, statistics — класс calx-chip) === */
.calx-chip {
    padding: 8px 16px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
    background: #fff; color: #334155; font: inherit; font-size: 13.5px; font-weight: 500;
    cursor: pointer; transition: all .15s ease;
}
.calx-chip:hover { border-color: #10b981; color: #047857; background: #f0fdf6; }
.calx-chip.on {
    background: #10b981; border-color: #10b981; color: #fff; font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .3);
}

/* === 2. Кнопка-ссылка (дашборд «Сетка») === */
.ui-link-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 9px;
    font-size: 12.5px; font-weight: 600; color: #047857; text-decoration: none;
    background: #fff; transition: all .15s ease;
}
.ui-link-btn:hover { background: #f0fdf6; border-color: #10b981; }

/* === 3. Кастомный селект (см. ui-kit.js; нативный select прячется) === */
.ui-select { position: relative; display: inline-block; }
.ui-select > select { display: none; }
.ui-select-btn {
    display: inline-flex; align-items: center; gap: 8px; width: 100%;
    padding: 9px 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
    background: #fff; color: #1e293b; font: inherit; font-size: 13.5px; cursor: pointer;
    transition: border-color .15s ease;
}
.ui-select-btn:hover, .ui-select.open .ui-select-btn { border-color: #10b981; }
.ui-select-ic { font-size: 14px; }
.ui-select-arrow { margin-left: auto; color: #94a3b8; font-size: 11px; }
.ui-select-menu {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%;
    background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .12); padding: 6px; z-index: 1000;
}
.ui-select.open .ui-select-menu { display: block; }
.ui-select-item {
    display: block; width: 100%; text-align: left; padding: 9px 14px;
    border: none; border-radius: 8px; background: #fff; color: #334155;
    font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.ui-select-item:hover { background: #f0fdf6; }
.ui-select-item.on { background: #ecfdf5; color: #047857; font-weight: 600; }
.ui-select-item.on::after { content: " ✓"; }

/* === 4. Поля даты/времени (лиды) === */
.ui-dt {
    padding: 10px 12px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
    background: #fff; color: #1e293b; font: inherit; font-size: 14px;
}
.ui-dt:focus { border-color: #10b981; outline: none; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
