/* ── Typography ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    background-color: #f5f6fa;
    color: #2d3748;
}

/* ── Page wrapper ────────────────────────────────────────────────── */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    letter-spacing: -0.01em;
}

/* ── Table card ──────────────────────────────────────────────────── */
.table-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* ── Table ───────────────────────────────────────────────────────── */
.table {
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    position: relative;
    user-select: none;
}

/* ── Column resize handle ────────────────────────────────────────── */
.col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
}

.col-resize-handle:hover,
.col-resize-handle.resizing {
    background-color: #93c5fd;
}

.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #374151;
}

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

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fafbfd;
}

.table-hover > tbody > tr:hover > * {
    background-color: #eff6ff;
    transition: background-color 0.15s ease;
}

/* ── DataTables controls ─────────────────────────────────────────── */
div.dt-container .dt-search input,
div.dt-container .dt-length select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: #374151;
    background-color: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

div.dt-container .dt-search input:focus,
div.dt-container .dt-length select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147,197,253,0.25);
}

div.dt-container .dt-info {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ── Pagination ──────────────────────────────────────────────────── */
div.dt-container .dt-paging .pagination {
    gap: 3px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
}

div.dt-container .dt-paging .page-link {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #374151;
    background-color: #fff;
    padding: 0.35rem 0.65rem;
    line-height: 1.4;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

div.dt-container .dt-paging .page-item.active .page-link {
    background-color: #64748b;
    border-color: #64748b;
    color: #fff;
    font-weight: 500;
}

div.dt-container .dt-paging .page-link:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

div.dt-container .dt-paging .page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e1;
}
