:root {
    --brand-primary: #405189; 
    --brand-success: #0ab39c;
    --brand-danger: #f06548;
    --brand-info: #299cdb;
}

.btn-brand-export {
    font-weight: 500;
    transition: all 0.3s ease;
    border: none !important;
}

.btn-brand-copy {
    background-color: rgba(64, 81, 137, 0.1) !important;
    color: var(--brand-primary) !important;
}

.btn-brand-copy:hover {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}

.btn-brand-excel {
    background-color: rgba(10, 179, 156, 0.1) !important;
    color: var(--brand-success) !important;
}

.btn-brand-excel:hover {
    background-color: var(--brand-success) !important;
    color: #fff !important;
}

.btn-brand-pdf {
    background-color: rgba(240, 101, 72, 0.1) !important;
    color: var(--brand-danger) !important;
}

.btn-brand-pdf:hover {
    background-color: var(--brand-danger) !important;
    color: #fff !important;
}

.btn-brand-print {
    background-color: rgba(41, 156, 219, 0.1) !important;
    color: var(--brand-info) !important;
}

.btn-brand-print:hover {
    background-color: var(--brand-info) !important;
    color: #fff !important;
}

.dataTables_wrapper .row:first-child {
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
}

.dataTables_wrapper .dt-buttons {
    float: none !important;
    display: inline-flex !important;
    gap: 8px;
}

.dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: right;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
    border: 1px solid #e9ebec;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    outline: none;
}

table.dataTable thead th.no-sort::before,
table.dataTable thead th.no-sort::after {
    display: none !important;
    content: none !important;
}

table.dataTable thead th.no-sort {
    pointer-events: none;
    padding-right: 8px !important; 
}

.tbl-grid {
    border-collapse: collapse !important;
    border: none !important;
    width: 100% !important;
}

.tbl-grid thead th {
    background-color: #f3f6f9 !important; 
    border-bottom: 1px solid #e9ebec !important;
    border-top: none !important;
    color: #878a99 !important;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    padding: 12px 15px !important;
}

.tbl-grid tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f6f9 !important;
}

.tbl-grid tbody tr:hover {
    background-color: #f9fafb !important;
}

.tbl-grid tbody td {
    padding: 12px 15px !important;
    vertical-align: middle;
}

.badge-outline {
    border: 1px solid currentColor;
    background: transparent !important;
    font-weight: 600;
    padding: 0.35em 0.65em;
    text-transform: uppercase;
    font-size: 10px;
}

.icon-container-tint {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.pagination-separated .page-item.active .page-link {
    background-color: var(--brand-primary); 
    border-color: var(--brand-primary);
    color: #fff;
}

.formula-editor {
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: #1e1e1e;
    color: #d4d4d4;
    line-height: 1.5;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #333;
    resize: vertical;
    tab-size: 4;
}

.formula-editor:focus {
    background-color: #1e1e1e;
    color: #fff;
    border-color: #405189; 
    box-shadow: 0 0 0 0.2rem rgba(64, 81, 137, 0.25);
}

.formula-editor::placeholder {
    color: #666;
}

.formula-hint {
    font-size: 0.8rem;
    color: #8792b0;
    margin-top: 5px;
}