/* TC Books Dashboard Styles */

/* Filter Row Layout */
.tc-filters-row {
    display: flex;
    justify-content: flex-end;
    /* Align to right as requested/implied by "add button" */
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

/* Enhanced Columns Button Styling */
.tc-columns-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tc-columns-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.tc-columns-btn svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    fill: #6b7280;
}

/* Columns Dropdown Grid Styling */
.tc-columns-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 12px;
    z-index: 50;
    min-width: 200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Grid Layout for toggle items */
.tc-col-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.tc-col-option:hover {
    background-color: #f3f4f6;
}

.tc-col-option input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.tc-col-option .label-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Fix Dropdown Positioning: Ensure parent is relative */
.tc-column-toggle {
    position: relative !important;
    display: inline-block;
}

/* Adjust Dropdown Spacing */
.tc-columns-dropdown {
    margin-top: 5px;
}

/* Table Styles Enhancements */
.tc-expense-table th,
.tc-income-table th {
    font-weight: 600;
    color: #374151;
}

.tc-expense-table td,
.tc-income-table td {
    vertical-align: middle;
}

.tc-action-icon {
    width: 16px;
    height: 16px;
    fill: #6b7280;
    transition: fill 0.2s;
}

.tc-action-icon:hover {
    fill: #2563eb;
}

/* Action Column Alignment */
.kt-head-actions {
    display: flex;
    justify-content: flex-end;
}

.kt-cell-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Ensure details summary marker is hidden if desired, or styled */
.tc-column-toggle details>summary {
    list-style: none;
}

.tc-column-toggle details>summary::-webkit-details-marker {
    display: none;
}