﻿/* Generic Table Styles */

/* Table Container */
.table-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table tbody tr.clickable-row {
    cursor: pointer;
}

.data-table td {
    padding: 16px;
    font-size: 0.875rem;
    color: #374151;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Text Helpers */
.text-muted {
    color: #9ca3af;
}

.text-bold {
    font-weight: 600;
}

.text-primary {
    color: #1a1a2e;
}

/* More Button */
.btn-more {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-more:hover {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* No Results */
.table-empty {
    text-align: center;
    padding: 48px 16px !important;
    color: #9ca3af;
}

.table-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.table-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.25rem;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
