.ttt-smart-table-toolbar {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.ttt-smart-table-toolbar .form-label { margin-bottom: .35rem; font-size: inherit; }
.ttt-sortable-column { cursor: pointer; user-select: none; white-space: nowrap; }
.ttt-sortable-column::after { content: "↕"; display: inline-block; margin-right: .4rem; opacity: .35; font-size: .85em; }
.ttt-sortable-column.ttt-sort-asc::after { content: "▲"; opacity: .85; }
.ttt-sortable-column.ttt-sort-desc::after { content: "▼"; opacity: .85; }
.ttt-smart-table-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-top:1rem; }
.ttt-smart-table-pager { display:flex; align-items:center; gap:.65rem; }
.ttt-smart-table-page,.ttt-smart-table-status { font-size:inherit; }
.ttt-smart-table-empty td { text-align:center; padding:1.5rem!important; }
.ttt-column-manager { position:relative; }
.ttt-column-manager-panel {
    display:none; position:absolute; z-index:50; top:calc(100% + 5px); right:0; min-width:220px; max-height:320px;
    overflow:auto; padding:.75rem; background:#fff; border:1px solid rgba(0,0,0,.12); border-radius:.5rem;
    box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.ttt-column-manager-panel.show { display:block; }
.ttt-column-option { display:block; padding:.3rem .15rem; white-space:nowrap; cursor:pointer; }
.ttt-sticky-header-table thead th { position:sticky; top:0; z-index:2; }
.ttt-row-danger td { background-color:rgba(220,53,69,.045)!important; }
.ttt-row-warning td { background-color:rgba(255,193,7,.055)!important; }
.ttt-row-success td { background-color:rgba(25,135,84,.035)!important; }
@media print {
    .ttt-smart-table-toolbar,.ttt-smart-table-footer { display:none!important; }
    table[data-smart-table="true"] tbody tr { display:table-row!important; }
    table[data-smart-table="true"] th,table[data-smart-table="true"] td { display:table-cell!important; }
}

/* TTT Smart Grid core enhancements: layout only, inherits existing project theme */
.ttt-smart-grid-tools { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; }
.ttt-smart-grid-table { table-layout:auto; }
.ttt-smart-grid-table th { position:relative; }
.ttt-column-resizer {
    position:absolute; top:0; left:-3px; width:7px; height:100%; cursor:col-resize;
    z-index:5; user-select:none; touch-action:none;
}
.ttt-column-resizer:hover { background:rgba(0,0,0,.08); }
body.ttt-column-resizing, body.ttt-column-resizing * { cursor:col-resize!important; user-select:none!important; }
.ttt-reorderable-column { cursor:grab; }
.ttt-reorderable-column:active { cursor:grabbing; }
.ttt-column-dragging { opacity:.55; }
.ttt-column-drop-target { outline:2px dashed rgba(0,0,0,.25); outline-offset:-3px; }
.ttt-freeze-first-column .ttt-frozen-cell {
    position:sticky!important;
    right:0;
    z-index:3;
    background:inherit;
    box-shadow:-1px 0 0 rgba(0,0,0,.08);
}
.ttt-freeze-first-column thead .ttt-frozen-cell { z-index:5; }
@media (max-width: 767.98px) {
    .ttt-smart-grid-tools .btn { flex:1 1 auto; }
}
@media print {
    .ttt-smart-grid-tools { display:none!important; }
    .ttt-column-resizer { display:none!important; }
    .ttt-freeze-first-column .ttt-frozen-cell { position:static!important; box-shadow:none!important; }
    table.ttt-print-filtered tbody tr { display:none!important; }
    table.ttt-print-filtered tbody tr:not([style*="display: none"]) { display:table-row!important; }
}
