/* Data table dark theme — complements Tailwind site.css */

.dt-card {
    margin-top: 24px;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.dt-topbar,
.dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-footer {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.dt-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #818cf8;
}

.dt-subtle,
.dt-summary {
    color: #64748b;
    font-size: 12px;
}

.dt-exports {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dt-export,
.dt-page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dt-export:hover,
.dt-page-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

.dt-controls {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-search {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.dt-search__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.dt-search__field--compact {
    min-width: 100px;
    width: 100px;
    flex: 0 0 auto;
}

.dt-search__field span {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dt-search__field input,
.dt-search__field select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.5);
    color: #e2e8f0;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dt-search__field input:focus,
.dt-search__field select:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dt-table-wrap {
    overflow: auto;
}

.dt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.dt-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.95);
    color: #64748b;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.dt-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 13px;
    vertical-align: top;
}

.dt-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dt-empty {
    padding: 48px 20px;
    text-align: center;
    color: #475569;
}

.dt-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .dt-topbar,
    .dt-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .dt-meta,
    .dt-pagination {
        justify-content: flex-start;
    }

    .dt-search {
        justify-content: stretch;
    }

    .dt-search__field,
    .dt-search__field--compact {
        min-width: 100%;
        width: 100%;
    }
}
