/* Support Overview Dashboard */
.lit-dash { font-family: Inter, system-ui, -apple-system, sans-serif; color: #191c1e; }
.lit-dash-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.lit-dash-title { margin: 0; font-size: 28px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
.lit-dash-subtitle { margin: 6px 0 0; font-size: 14px; color: #64748b; }
.lit-dash-export { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #0058be; color: #fff; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 88, 190, .2); transition: background .15s; }
.lit-dash-export:hover { background: #004395; color: #fff; }

.lit-dash-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.lit-metric-card { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.lit-metric-card--alert { border-color: #fecaca; background: #fffbfb; }
.lit-metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lit-metric-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.lit-metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; }
.lit-metric-icon--purple { background: #f3e8ff; color: #7c3aed; }
.lit-metric-icon--orange { background: #ffedd5; color: #ea580c; }
.lit-metric-icon--blue { background: #dbeafe; color: #2563eb; }
.lit-metric-icon--green { background: #dcfce7; color: #16a34a; }
.lit-metric-icon--red { background: #fee2e2; color: #dc2626; }
.lit-metric-value { font-size: 32px; font-weight: 700; line-height: 1.1; color: #0f172a; margin-bottom: 8px; }
.lit-metric-value--alert { color: #dc2626; }
.lit-metric-foot { font-size: 12px; color: #94a3b8; }
.lit-metric-foot--alert { color: #ef4444; }

.lit-dash-charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 24px; }
.lit-dash-panel { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.lit-dash-panel--wide { min-height: 280px; }
.lit-dash-panel--table { padding: 0; overflow: hidden; }
.lit-dash-panel-title { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #0f172a; }
.lit-dash-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.lit-dash-panel-head .lit-dash-panel-title { margin-bottom: 0; }
.lit-dash-link { font-size: 14px; font-weight: 500; color: #0058be; text-decoration: none; }
.lit-dash-link:hover { color: #004395; text-decoration: underline; }
.lit-dash-empty { margin: 48px 0; text-align: center; color: #94a3b8; font-size: 14px; }

.lit-volume-chart, .lit-dept-chart { position: relative; height: 220px; }
.lit-volume-canvas, .lit-dept-canvas { width: 100% !important; height: 220px !important; display: block; }

.lit-dash-table-wrap { overflow-x: auto; padding: 0 22px 8px; }
.lit-dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lit-dash-table thead th { text-align: left; padding: 14px 12px 12px 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.lit-dash-table tbody td { padding: 16px 12px 16px 0; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #334155; }
.lit-dash-table tbody tr:last-child td { border-bottom: none; }
.lit-dash-subject strong { display: block; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.lit-dash-meta { font-size: 12px; color: #94a3b8; }
.lit-dash-empty-cell { text-align: center; color: #94a3b8; padding: 32px 12px !important; }
.lit-dash-view { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #0058be; background: #f0f6ff; text-decoration: none; transition: background .15s; }
.lit-dash-view:hover { background: #d0e1fb; color: #004395; }

.lit-dash .lit-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.lit-dash .lit-status-open { background: #e8f0fe; color: #1557b0; }
.lit-dash .lit-status-in_progress { background: #fffbeb; color: #92400e; }
.lit-dash .lit-status-resolved, .lit-dash .lit-status-closed { background: #f0fdf4; color: #166534; }
.lit-dash .lit-status-pending, .lit-dash .lit-status-waiting { background: #f1f5f9; color: #475569; }
.lit-dash .lit-priority { font-weight: 500; color: #475569; }
.lit-dash .lit-priority-urgent { color: #dc2626; font-weight: 600; }
.lit-dash .lit-priority-high { color: #ea580c; font-weight: 600; }

/* Customer dashboard (simpler) */
.lit-dash-customer .lit-dash-metrics { grid-template-columns: repeat(2, 1fr); max-width: none; }
.lit-dash-customer-tickets { margin-top: 8px; }
.lit-dash-customer-tickets .lit-ticket-card { margin-bottom: 8px; }

/* WordPress admin overrides */
.lucrativeit-stp-admin .lit-dash { margin-top: 8px; }
.lucrativeit-stp-admin .lit-dash-title { font-size: 26px; }

@media (max-width: 1200px) {
	.lit-dash-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.lit-dash-metrics { grid-template-columns: repeat(2, 1fr); }
	.lit-dash-charts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.lit-dash-metrics { grid-template-columns: 1fr; }
	.lit-dash-header { flex-direction: column; }
}
