/* Minimal base. MainLayout injects Tailwind via CDN for layout + new pages.
   These styles are kept for legacy pages that still use them. */

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Legacy utility classes still used by Records/Map/Users/Reports/Settings/Audit */
.page {
    display: grid;
    gap: 1.25rem;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.25rem 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.panel,
.stat-card,
.table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
}

.stats-grid .stat-card {
    border: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.trend-list {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.trend-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.data-table th,
.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.map-frame {
    width: 100%;
    min-height: 320px;
    border: 1px solid #e2e8f0;
}

.error-text {
    color: #b91c1c;
}
