.rtctb-wrapper {
    overflow-x: auto;
}

/* Toolbar with search aligned to top-right */
.rtctb-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.rtctb-search-input {
    max-width: 260px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

.rtctb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rtctb-table thead th {
    border-bottom: 2px solid #d9edf6;
    padding: 0.5rem;
    text-align: center;
    background: #f3f8fb;
}

.rtctb-table thead th.col-company {
    text-align: left;
}

.rtctb-table tbody td {
    border-bottom: 1px solid #eee;
    padding: 0.4rem 0.5rem;
    text-align: center;
}

.rtctb-table tbody td.company-cell {
    text-align: left;
}

.rtctb-table tbody td.symbol-cell {
    text-align: center;
}

.rtctb-table .col-numeric {
    text-align: center;
    white-space: nowrap;
}

.rtctb-table th.rtctb-sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.2rem;
}

.rtctb-table th.rtctb-sortable::after {
    content: '⇅';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: #999;
}

.rtctb-table th.rtctb-sortable.sort-asc::after {
    content: '▲';
    color: #555;
}

.rtctb-table th.rtctb-sortable.sort-desc::after {
    content: '▼';
    color: #555;
}

.rtctb-details-row {
    display: none;
}

.rtctb-details-inner {
    display: grid;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
}

.rtctb-details-inner.cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.rtctb-details-inner.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rtctb-details-inner.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rtctb-details-col.align-left {
    text-align: left;
}

.rtctb-details-col.align-center {
    text-align: center;
}

.rtctb-details-col.align-right {
    text-align: right;
}

.rtctb-details-title {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.rtctb-details-body {
    font-size: 0.85rem;
}

.company-more-info {
    border: none;
    background: none;
    padding: 0;
    margin-top: 2px;
    font-size: 0.75em;
    cursor: pointer;
    text-decoration: underline;
}

.col-price {
    white-space: nowrap;
}

.price-header-date {
    font-size: 0.75em;
    color: #777;
}

.rtctb-pagination {
    margin-top: 0.75rem;
    text-align: center;
}

.rtctb-page-btn {
    display: inline-block;
    margin: 0 2px;
    padding: 3px 8px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 0.8rem;
}

.rtctb-page-btn:hover {
    background: #eee;
}

.rtctb-page-btn.active {
    background: #d9edf6;
    border-color: #a6cbe3;
    font-weight: 600;
}
