/* Price Audit Report — NWCA 2026 */
:root {
    --green: #3a7c52;
    --green-dark: #1a472a;
    --green-light: #e8f5e9;
    --red: #dc2626;
    --red-light: #fef2f2;
    --yellow: #d97706;
    --yellow-light: #fffbeb;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #1f2937;
    --text-secondary: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--green-dark);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-content { max-width: 1400px; margin: 0 auto; }
.back-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.back-link:hover { color: white; }
header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
header h1 i { font-size: 1.5rem; opacity: 0.8; }
.subtitle { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 0.25rem; }

/* Main */
main { max-width: 1400px; margin: 0 auto; padding: 1.5rem 2rem 3rem; }

/* Hero Section */
.hero-section { margin-bottom: 2rem; }
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.hero-card.hero-gap {
    background: var(--red-light);
    border-color: var(--red);
}
.hero-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); font-weight: 600; }
.hero-value { font-size: 2rem; font-weight: 700; margin: 0.25rem 0; }
.hero-gap .hero-value { color: var(--red); }
.hero-detail { font-size: 0.85rem; color: var(--text-secondary); }

/* Sections */
.section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-dark);
}
.section h2 i { font-size: 1rem; color: var(--green); }
.section-note { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.75rem; }

/* Impact Cards */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.impact-card {
    background: var(--red-light);
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-align: center;
}
.impact-card.impact-ltm {
    background: var(--yellow-light);
    border-color: #fde68a;
}
.impact-type { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.25rem; }
.impact-amount { font-size: 1.5rem; font-weight: 700; color: var(--red); }
.impact-ltm .impact-amount { color: var(--yellow); }
.impact-detail { font-size: 0.8rem; color: var(--text-secondary); }
.overcharge-note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--green-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--green-dark);
}
.overcharge-note i { margin-right: 0.25rem; }

/* Training Tips */
.tips-section { background: #f0fdf4; border-color: #86efac; }
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.tip-card {
    background: white;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.tip-header {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tip-header i { color: var(--green); }
.tip-body { font-size: 0.88rem; color: var(--text); line-height: 1.6; }

/* Tier Reference Tables */
.tier-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.tier-table h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--green-dark);
}
.tier-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.tier-table th, .tier-table td {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    text-align: left;
}
.tier-table th { background: var(--green-light); font-weight: 600; }
.tier-table tr:nth-child(even) td { background: #f9fafb; }

/* Data Tables */
.table-wrapper { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    background: var(--green-dark);
    color: white;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    user-select: none;
    position: relative;
}
.data-table th:hover { background: var(--green); }
.data-table th::after {
    content: ' \2195';
    opacity: 0.4;
    font-size: 0.7rem;
}
.data-table th.num { text-align: right; }
.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.note { white-space: normal; max-width: 200px; font-size: 0.8rem; color: var(--text-secondary); }
.data-table tbody tr:hover { background: #f0fdf4; }

/* Flag row colors */
.flag-mismatch { }
.flag-review { }
.flag-ok { }
.data-table .flag-mismatch td:first-child { border-left: 3px solid var(--red); }
.data-table .flag-review td:first-child { border-left: 3px solid var(--yellow); }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-ok { background: var(--green-light); color: var(--green-dark); }
.badge-review { background: var(--yellow-light); color: var(--yellow); }
.badge-mismatch { background: var(--red-light); color: var(--red); }

/* Negative/positive amounts */
.negative { color: var(--red); }
.positive { color: var(--green); }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Print */
@media print {
    header { background: #333 !important; -webkit-print-color-adjust: exact; }
    .hero-card.hero-gap { background: #fee !important; -webkit-print-color-adjust: exact; }
    .data-table th { background: #333 !important; color: white !important; -webkit-print-color-adjust: exact; }
    .badge { -webkit-print-color-adjust: exact; }
    .back-link { display: none; }
    body { font-size: 11px; }
    main { padding: 1rem; }
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1rem; }
    main { padding: 1rem; }
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
    .tier-tables { grid-template-columns: 1fr 1fr; }
}
