/* ============================================================
   MeerHeimatLiebe – Admin Leitstand
   ============================================================ */

.mhl-admin-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mhl-admin-kpi {
    min-width: 0;
    min-height: 150px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(4, 39, 53, .88);
    border: 1px solid rgba(87, 206, 229, .34);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    box-sizing: border-box;
}

.mhl-admin-kpi__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mhl-admin-kpi__icon,
.mhl-admin-quick__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(87, 206, 229, .13);
    border: 1px solid rgba(87, 206, 229, .28);
}

.mhl-admin-kpi__number {
    margin: 12px 0 4px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.mhl-admin-kpi__label {
    display: block;
    font-size: .85rem;
    font-weight: 800;
}

.mhl-admin-kpi__hint {
    display: block;
    margin-top: 4px;
    font-size: .7rem;
    opacity: .68;
}

.mhl-admin-main {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(400px, .94fr);
    gap: 18px;
    align-items: stretch;
}

.mhl-admin-panel {
    min-width: 0;
}

.mhl-admin-panel .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mhl-admin-quickgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

html body .mhl-admin-quickgrid > a.mhl-admin-quick {
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 15px !important;

    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;

    text-decoration: none !important;
    cursor: pointer !important;

    border-radius: 15px !important;
    background: rgba(3, 33, 47, .92) !important;
    border: 1px solid rgba(87, 206, 229, .30) !important;

    color: inherit !important;

    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

html body .mhl-admin-quickgrid > a.mhl-admin-quick:hover {
    transform: translateY(-2px);
    border-color: rgba(87, 206, 229, .72) !important;
    background: rgba(4, 45, 61, .97) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

html body .mhl-admin-quickgrid > a.mhl-admin-quick:focus-visible {
    outline: 2px solid rgba(87, 206, 229, .95);
    outline-offset: 2px;
}

html body .mhl-admin-quickgrid > a.mhl-admin-quick::before,
html body .mhl-admin-quickgrid > a.mhl-admin-quick::after {
    content: none !important;
    display: none !important;
}

html body .mhl-admin-quickgrid > a.mhl-admin-quick > * {
    pointer-events: none !important;
}

.mhl-admin-quick__icon {
    flex: 0 0 auto;
}

.mhl-admin-quick strong {
    display: block;
    margin-top: 9px;
    font-size: .92rem;
    font-weight: 800;
}

.mhl-admin-quick small {
    display: block;
    margin-top: 5px;
    line-height: 1.4;
    font-size: .72rem;
    opacity: .72;
}

.mhl-admin-audit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mhl-admin-audit-count {
    font-size: .74rem;
    opacity: .68;
}

.mhl-admin-audit-list {
    display: grid;
    gap: 8px;
    max-height: 445px;
    overflow-y: auto;
    padding-right: 3px;
}

.mhl-admin-audit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(3, 33, 47, .78);
    border: 1px solid rgba(87, 206, 229, .22);
}

.mhl-admin-audit-row__content {
    min-width: 0;
    overflow: hidden;
}

.mhl-admin-audit-row__action {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
}

.mhl-admin-audit-row__meta {
    display: block;
    margin-top: 3px;
    font-size: .68rem;
    opacity: .64;
}

.mhl-admin-audit-delete-form {
    flex: 0 0 auto;
    margin: 0;
}

.mhl-admin-audit-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;
    padding: 0;

    border-radius: 9px;
    border: 1px solid rgba(255, 110, 110, .42);
    background: rgba(130, 35, 35, .22);
    color: inherit;

    cursor: pointer;
}

.mhl-admin-audit-delete:hover {
    background: rgba(160, 38, 38, .42);
    border-color: rgba(255, 110, 110, .72);
}

@media (max-width: 1250px) {
    .mhl-admin-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mhl-admin-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .mhl-admin-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mhl-admin-quickgrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .mhl-admin-kpis {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ADMIN LEITSTAND – KPI CARDS AS LINKS
   ============================================================ */

html body a.mhl-admin-kpi {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;

    color: inherit !important;
    text-decoration: none !important;

    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
}

html body a.mhl-admin-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(87, 206, 229, .72);
    background: rgba(4, 45, 61, .96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

html body a.mhl-admin-kpi:focus-visible {
    outline: 2px solid rgba(87, 206, 229, .95);
    outline-offset: 2px;
}

html body a.mhl-admin-kpi * {
    pointer-events: none !important;
}

/* ============================================================
   ADMIN LEITSTAND – AUDIT CLEAR ALL
   ============================================================ */

.mhl-admin-audit-clear-form {
    display: inline-flex;
    margin: 0;
    flex: 0 0 auto;
}

.mhl-admin-audit-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 7px 13px;

    border-radius: 9px;
    border: 1px solid rgba(255, 110, 110, .58);

    background: rgba(145, 35, 35, .38);
    color: inherit;

    font: inherit;
    font-size: .72rem;
    font-weight: 800;

    cursor: pointer;
    transition:
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.mhl-admin-audit-clear:hover {
    background: rgba(170, 40, 40, .60);
    border-color: rgba(255, 125, 125, .90);
    transform: translateY(-1px);
}

.mhl-admin-audit-clear:focus-visible {
    outline: 2px solid rgba(255, 125, 125, .95);
    outline-offset: 2px;
}
