/* ColumnDropdown — botão e painel teletransportado */

.columns-toolbar {
    margin: 0;
    flex-shrink: 0;
}

.btn-columns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #546e7a;
    border-radius: 6px;
    background: linear-gradient(180deg, #78909c 0%, #607d8b 100%);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: var(--text-xs, 10px);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-columns:hover,
.btn-columns:focus {
    background: linear-gradient(180deg, #607d8b 0%, #546e7a 100%);
    color: #fff;
    border-color: #455a64;
    box-shadow: 0 4px 12px rgba(96, 125, 139, 0.28);
    outline: none;
}

.btn-columns .fa {
    font-size: var(--text-xs, 10px);
    opacity: 0.95;
}

.btn-columns__caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.85;
}

.columns-menu.app-dropdown__menu {
    padding: 0;
    margin: 0;
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    list-style: none;
}

.columns-menu.app-dropdown__menu--teleported.app-dropdown__menu--open {
    display: flex;
    flex-direction: column;
}

.columns-menu__shell {
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.columns-menu__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: inherit;
    min-height: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.columns-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.columns-menu__title {
    font-size: var(--text-base, 12px);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #334155;
}

.columns-menu__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: var(--text-sm, 11px);
    font-weight: 600;
    line-height: 1.4;
}

.columns-menu__search-wrap {
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.columns-menu__search {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 32px;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 10px center;
    font-size: var(--text-base, 12px);
    color: #1f2937;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.columns-menu__search:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.12);
}

.columns-menu__search::placeholder {
    color: #94a3b8;
}

.columns-menu__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 14px 12px;
    overflow-y: auto;
}

.columns-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 6px;
}

.columns-menu__item {
    margin: 0;
    list-style: none;
}

.columns-menu__label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 6px;
    color: #374151;
    font-size: var(--text-sm, 11px);
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.columns-menu__label:hover {
    background: #f3f4f6;
    color: #111827;
}

.columns-menu__checkbox {
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #4a90e2;
    cursor: pointer;
}

.columns-menu__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.columns-menu__empty {
    padding: 18px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: var(--text-base, 12px);
}

@media (max-width: 575px) {
    .columns-menu__grid {
        grid-template-columns: 1fr;
    }
}
