﻿/* Стили для TableElement */

/* Заголовок — липкий, белый фон */
.b2-table .ant-table-thead {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* FillHeight: контейнер растягивается на всю высоту */
.b2-table .ant-table-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.b2-table .ant-table-header {
    flex-shrink: 0;
}

.b2-table .ant-table-body {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Ячейки с дропдауном */
.b2-table .dropdown-cell {
    overflow: visible !important;
    position: relative;
    padding: 0 !important;
}

.b2-table .dropdown-cell .ant-dropdown-trigger {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.b2-table .dropdown-cell .ant-btn {
    width: 100% !important;
    height: 100% !important;
}

/* Запрет выделения текста */
.b2-table .unselectable {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

/* Большая иконка */
.b2-big-icon-btn .anticon {
    font-size: 20px;
}

/* Компактные строки */
.b2-table.ant-table-small .ant-table-thead > tr > th,
.b2-table.ant-table-small .ant-table-tbody > tr > td {
    padding: 2px 6px !important;
}