/* Overview / Landing-Page: einheitliche Widget-Optik fuer Tickets/Chat/Blog/Forum */

.ov-greeting {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
}
.ov-greeting h1 {
    margin: 0;
    color: var(--ci-gray-700);
    font-size: 20px;
    font-weight: 600;
}
.ov-greeting .sub { color: var(--color-text-muted); font-size: 13px; }

/* KPI-Kachel-Reihe */
.ov-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.kpi {
    background: var(--color-surface);
    border: 1px solid var(--color-border-panel);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: inherit;
    box-shadow: 0 1px 3px var(--color-shadow-weak);
}
.kpi:hover {
    background: var(--color-chip-hover);
    border-color: var(--ci-orange-300);
}
.kpi .icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--ci-gray-100);
    color: var(--ci-gray-600);
    font-size: 20px;
    flex-shrink: 0;
}
.kpi .txt { flex: 1; min-width: 0; }
.kpi .val {
    font-size: 24px; font-weight: 600;
    color: var(--color-brand-text);
    line-height: 1.1;
}
.kpi .lbl { font-size: 12px; color: var(--color-text-muted); margin-top: 3px; }
.kpi .sub { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.kpi .sub strong { color: var(--color-text-strong); font-weight: 600; }

/* Widget-Gitter (2 Spalten) */
.ov-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 1100px) { .ov-widgets { grid-template-columns: 1fr; } }
.ov-widgets.single { grid-template-columns: 1fr; }

.widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border-panel);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--color-shadow-weak);
    display: flex; flex-direction: column;
}
.widget > header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: var(--color-surface-muted);
    border-bottom: 1px solid var(--color-border-panel);
}
.widget > header h2 {
    margin: 0; font-size: 14px; font-weight: 600;
    color: var(--color-text-strong);
    display: flex; align-items: center; gap: 8px;
}
.widget > header h2 i { color: var(--ci-gray-500); }
.widget > header a.more {
    font-size: 12px; color: var(--color-text-muted); text-decoration: none;
}
.widget > header a.more:hover { color: var(--ci-orange-600); }
.widget .content { padding: 8px 0; flex: 1; }
.widget .empty { padding: 20px; text-align: center; color: var(--color-text-muted); font-size: 13px; }

.widget-row {
    display: block; padding: 10px 18px;
    text-decoration: none; color: inherit;
    border-bottom: 1px solid var(--color-border-panel);
}
.widget-row:last-child { border-bottom: 0; }
.widget-row:hover { background: var(--color-chip-hover); }
.widget-row .title {
    font-size: 13px; font-weight: 600; color: var(--color-text-strong);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 2px;
}
.widget-row .meta {
    font-size: 11px; color: var(--color-text-muted);
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
/* Hinweis: Widgets nutzen jetzt .badge.badge-status-* aus tickets.css,
   um eine einheitliche Status-Optik ueber die ganze App zu haben.
   Kein separates .badge-mini / .status-* mehr. */

.prio-LOW    { color: var(--color-priority-low); }
.prio-NORMAL { color: var(--color-priority-normal); }
.prio-HIGH   { color: var(--color-priority-high); }
.prio-URGENT { color: var(--color-priority-urgent); font-weight: 700; }

.widget-row .unread-dot {
    background: var(--ci-orange-600); color: white;
    font-size: 10px; font-weight: 700;
    padding: 1px 7px; border-radius: 10px;
    margin-left: auto;
}

.widget-row .time { margin-left: auto; font-size: 11px; color: var(--color-text-muted); }

/* Login-Modal (aus auth.css erben) */
.logout-btn { float: right; }
