/*
 * Plain CSS override (no build step) for a premium, non-default look.
 * Registered as a Filament asset in AdminPanelProvider::boot().
 */

:root {
    --warehouse-bg: #f8f9fa;
}

.dark {
    --warehouse-bg: #1e293b;
}

.fi-body {
    background-color: var(--warehouse-bg);
}

.fi-sidebar {
    border-inline-end-width: 1px;
    border-inline-end-color: rgba(212, 175, 55, 0.15);
}

.fi-sidebar-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.fi-topbar nav {
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.fi-badge {
    border-radius: 0.375rem;
    font-weight: 600;
}

.fi-btn {
    border-radius: 0.5rem;
}

.fi-section {
    border-radius: 0.75rem;
}

.fi-simple-layout .fi-simple-main {
    border-radius: 1rem;
    box-shadow: 0 10px 40px -10px rgba(44, 94, 80, 0.25);
}

/* ---- Business Reports page ---- */

.report-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.dark .report-filter-label {
    color: #94a3b8;
}

.report-filter-select {
    min-width: 12rem;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
}

.report-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.04);
}

.report-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.dark .report-stat-label {
    color: #94a3b8;
}

.report-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .report-stat-value {
    color: #f1f5f9;
}

.report-table-wrapper {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    border: 1px solid rgba(100, 116, 139, 0.35);
}

.dark .report-table {
    border-color: rgba(148, 163, 184, 0.35);
}

.report-table th,
.report-table td {
    padding: 0.625rem 0.75rem;
    text-align: start;
    white-space: nowrap;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.dark .report-table th,
.dark .report-table td {
    border-color: rgba(148, 163, 184, 0.25);
}

.report-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
}

.dark .report-table th {
    color: #cbd5e1;
    background: rgba(212, 175, 55, 0.08);
}

.report-table td {
    color: #1e293b;
}

.dark .report-table td {
    color: #e2e8f0;
}

.report-table tbody tr:nth-child(even) {
    background: rgba(100, 116, 139, 0.06);
}

.dark .report-table tbody tr:nth-child(even) {
    background: rgba(148, 163, 184, 0.06);
}

.report-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

.report-table .is-numeric,
.report-table th.is-numeric {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.report-table .is-positive,
.report-stat-value.is-positive {
    color: #16a34a;
}

.report-table .is-negative,
.report-stat-value.is-negative {
    color: #dc2626;
}

.dark .report-table .is-positive,
.dark .report-stat-value.is-positive {
    color: #4ade80;
}

.dark .report-table .is-negative,
.dark .report-stat-value.is-negative {
    color: #f87171;
}

.report-age-badge {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.report-age-badge.is-fresh {
    background: rgba(39, 174, 96, 0.12);
    color: #1d8a4e;
}

.dark .report-age-badge.is-fresh {
    background: rgba(39, 174, 96, 0.2);
    color: #4ade80;
}

.report-age-badge.is-stale {
    background: rgba(230, 126, 34, 0.12);
    color: #c2620f;
}

.dark .report-age-badge.is-stale {
    background: rgba(230, 126, 34, 0.2);
    color: #fdba74;
}

.report-empty {
    font-size: 0.875rem;
    color: #64748b;
}

.dark .report-empty {
    color: #94a3b8;
}
