/*
 * Copyright (c) 2026. Agora Speakers International.  All rights reserved.
 * This file is subject to the terms and conditions defined in the  'LICENSE.txt' file which is part of this source code package.
 *
 * Author: Alexander Hristov
 */

.tabulator {
    border: 2px solid var(--agora-blue-0);
    border-radius: 0.3em;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    max-width: calc(100% - 2em);
    margin: 1em auto;
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95em;
}
.tabulator-header-contents {
    background: var(--agora-blue-0);
    color: white;
    font-size: 1.1em;
    font-variant: all-small-caps;
    font-weight: normal;
}
.tabulator .tabulator-header {
    border:none;
}
.tabulator .tabulator-header .tabulator-col {
    background: var(--agora-blue-0);
}
.tabulator-row.tabulator-row-even {
    background-color: var(--agora-blue-3);
}

/* === Club Search tabulator extensions === */

.tabulator .tabulator-cell img.club-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.btn-outline-sm {
    display: inline-block;
    padding: 0.3em 0.85em;
    border: 1px solid var(--agora-gray-7);
    border-radius: 4px;
    background: white;
    font-size: 0.82em;
    cursor: pointer;
    color: var(--agora-gray-C);
    font-family: inherit;
}

.btn-outline-sm:hover { background: var(--agora-gray-2); }

.tab-action-icons {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-top: 0.35em;
}

.tab-action-icons img {
    width: 1.3em;
    vertical-align: middle;
    opacity: 0.65;
}

.tab-action-icons img:hover { opacity: 1; }

.tabulator .multiline-cell {
    padding-left: 1em;
    font-size:0.8em;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: pre-wrap;
}

/* === Member Table tabulator extensions === */

.tabulator .tabulator-cell img.member-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: auto;
}

.tabulator-container {
    position: relative;
}
.tabulator-state-icon {
    position: absolute;
    top: 2px;
    left: 1.3em;
    z-index: 10;
    width:1.3em;
    pointer-events: none;
}
.tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-title {
    padding-left: 20px;
}