.enforcement-header {
    background: #ffffff;
    color: #0f172a;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 28px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px -32px rgba(15, 23, 42, 0.6);
}

.enforcement-header h1 {
    margin: 0 0 8px 0;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.enforcement-subtitle {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 18px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.title-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(30, 64, 175, 0.08));
    color: #1d4ed8;
}

.title-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item.status .meta-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.section-context {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.chart-wrapper {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    min-height: 260px;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 320px !important;
}

.chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #64748b;
    font-style: italic;
}

.table-wrapper {
    margin-top: 20px;
}

.compact-table .data-table th,
.compact-table .data-table td {
    padding: 10px 12px;
}

.category-summary {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.playbook-card {
    background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 18px 36px -28px rgba(59, 130, 246, 0.7);
}

.playbook-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.playbook-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6366f1;
    font-weight: 700;
}

.playbook-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.playbook-meta {
    font-size: 0.85rem;
    color: #475569;
}

.playbook-bullets {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #1f2937;
}

.playbook-footnote {
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px dashed rgba(99, 102, 241, 0.35);
    padding-top: 10px;
}

.empty-state {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

.stat-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pattern-card {
    background: linear-gradient(140deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.5);
}

.pattern-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b;
}

.pattern-highlight {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d4ed8;
}

.pattern-footnote {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.6;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.icon-amber {
    background: rgba(251, 191, 36, 0.16);
    color: #b45309;
}

.icon-plum {
    background: rgba(99, 102, 241, 0.14);
    color: #4c1d95;
}

.icon-crimson {
    background: rgba(248, 113, 113, 0.16);
    color: #b91c1c;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.stat-label {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.change-positive {
    color: #10b981;
}

.change-negative {
    color: #ef4444;
}

.dashboard-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    color: #4338ca;
    background: #eef2ff;
    border-radius: 10px;
    padding: 6px;
}

.section-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.section-header .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
}

.button-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary .button-icon svg {
    stroke: #ffffff;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    align-items: end;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.filter-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}

.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-input[multiple] {
    min-height: 120px;
    resize: vertical;
}

.chip-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.chip-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0e7ff;
    color: #312e81;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.chip:hover {
    background: #c7d2fe;
    color: #1e1b4b;
}

.chip-remove {
    font-size: 0.9rem;
    line-height: 1;
    display: inline-block;
}

.chip-clear {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chip-clear:hover {
    color: #1f2937;
}

.chip-clear:disabled,
.chip-clear.disabled {
    color: #cbd5f5;
    cursor: not-allowed;
}

.link-button {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
}

.link-button:hover {
    text-decoration: underline;
}

.filter-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

/* Enhanced Trends Styling */
.trends-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.top-firms-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
