/* ==========================================================================
   SearchlyFlow Dashboard — Geteilte Komponenten: Feed-Details, Analytics-Karten, Toasts, Tabellen-Toolbars, System-Status
   Aus dashboard.css (Legacy, siehe dashboard.legacy.css) herausgeloest.
   Lade-Reihenfolge in index.html beachten: Kaskade bleibt dadurch identisch.
   ========================================================================== */

.recommendation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 12px;
}

.table-wrap {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.table-wrapper,
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table:not(.theme-token-table) th,
table:not(.theme-token-table) td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
	font-weight: 500;
    color: #000 !important;
}

th {
    background: #f8fafc;
    color: #475569;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge.danger {
    background: #dc2626;
    color: white;
}

.badge.warning {
    background: #f59e0b;
    color: white;
}

.badge.success {
    background: #16a34a;
    color: white;
}

.healthy { background: #dcfce7; color: #166534; }
.warning { background: #fef9c3; color: #854d0e; }
.critical { background: #fee2e2; color: #991b1b; }
.unknown { background: #e5e7eb; color: #374151; }

.actions button {
    margin-right: 6px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.sync-btn { background: #0080ff; color: white; }
.disable-btn { background: #dc2626; color: white; }
.enable-btn { background: #22c55e; color: white; }

.small {
    font-size: 14px;
    color: #64748b;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.detail-mini-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

.detail-mini-card .label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.detail-mini-card .value {
    font-size: 18px;
    font-weight: bold;
}

.close-detail-btn {
    float: right;
    background: #e5e7eb;
    color: #111827;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.feed-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.feed-detail-kicker {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.feed-detail-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    word-break: break-all;
}

.feed-detail-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
}

.feed-detail-section h4 {
    margin: 0 0 14px;
}

.feed-detail-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px;
}

.feed-detail-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    border-radius: 10px;
    padding: 12px;
}

.feed-detail-issues {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-detail-issue {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #94a3b8;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

.feed-detail-issue.warning {
    border-left-color: #f59e0b;
}

.feed-detail-issue.critical {
    border-left-color: #dc2626;
}

.feed-detail-issue.healthy {
    border-left-color: #22c55e;
}

.feed-detail-issue-title {
    font-weight: 600;
    color: #111827;
}

.feed-detail-issue-meta {
    font-size: 13px;
    color: #64748b;
    text-transform: capitalize;
}

.feed-detail-table-wrap {
    overflow-x: auto;
}

.feed-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.feed-detail-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.feed-detail-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.feed-detail-table tbody tr:hover {
    background: #f8fafc;
}

.feed-detail-panel.compact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px;
}

.feed-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.feed-detail-topbar h3 {
    margin: 3px 0 0;
    font-size: 18px;
    color: #0f172a;
}

.feed-detail-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.feed-detail-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
    font-size: 12px;
    color: #64748b;
}

.feed-detail-subline span {
    padding: 3px 8px;
    background: #f1f5f9;
    border-radius: 999px;
}

.feed-detail-source {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 13px;
}

.feed-detail-source strong {
    color: #334155;
}

.feed-detail-source span {
    color: #64748b;
    overflow-wrap: anywhere;
}

.feed-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.feed-detail-facts div {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    font-size: 13px;
}

.feed-detail-facts strong {
    color: #64748b;
    font-weight: 600;
}

.feed-detail-facts span {
    color: #0f172a;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.feed-detail-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.feed-detail-section h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #0f172a;
}

.feed-detail-empty,
.feed-detail-error {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.feed-detail-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.feed-detail-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.feed-detail-issues {
    display: grid;
    gap: 8px;
}

.feed-detail-issue {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border-left: 4px solid #94a3b8;
    font-size: 13px;
}

.feed-detail-issue.warning {
    border-left-color: #f59e0b;
}

.feed-detail-issue.critical {
    border-left-color: #dc2626;
}

.feed-detail-table.compact th,
.feed-detail-table.compact td {
    padding: 9px 10px;
    font-size: 13px;
}
.feed-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 900px) {
    .feed-detail-info-grid {
        grid-template-columns: 1fr;
    }
}


.feed-detail-error-toggle {
    margin-top: 10px;
    padding: 6px 10px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.feed-detail-error-list {
    display: none;
    margin-top: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.feed-detail-error-list.open {
    display: grid;
    gap: 8px;
}

.feed-detail-error-item {
    padding: 9px 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}

.feed-detail-error-time {
    font-size: 12px;
    color: #9a3412;
    margin-bottom: 4px;
}

.feed-detail-error-message {
    font-size: 13px;
    color: #7c2d12;
    overflow-wrap: anywhere;
}

.plugin-status-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 170px;
}

.plugin-inline-progress {
    width: 170px;
}

.plugin-inline-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.3;
}

.plugin-inline-progress-header span {
    color: #64748b;
}

.plugin-inline-progress-header strong {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.plugin-inline-progress-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.plugin-inline-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width 0.35s ease;
}

.plugin-inline-progress-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.plugin-feed-row > td {
    height: 82px;
}

.feed-error-text {
    color: #dc2626;
}



button {
    cursor: pointer !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.12),
        0 1px 2px rgba(0,0,0,0.08) !important;
    outline: none !important;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        opacity 0.12s ease;
}

button:hover {
    cursor: pointer !important;
    transform: translateY(-1px);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.16),
        0 3px 6px rgba(0,0,0,0.10) !important;
}

button:focus,
button:active {
    transform: translateY(1px);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.10) !important;
}

.sync-btn,
.disable-btn,
.enable-btn {
    border-radius: 5px !important;
	border:	0 !important;
    cursor: pointer !important;
    padding: 5px 12px !important;
    font-size: 14px !important;
}

button.facet-order-button {
    padding: 8px 12px !important;
}

.analytics-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .analytics-preview-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (min-width: 1400px) {
    .analytics-preview-grid {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
    }
}

.analytics-preview-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.analytics-preview-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.analytics-preview-card table {
    font-size: 13px;
}

.analytics-preview-card th,
.analytics-preview-card td {
    padding: 9px 8px;
}

.preview-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 500;
    color: #0080ff;
	font-size: 14px;
    cursor: pointer;
}

.analytics-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .analytics-chart-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (min-width: 1400px) {
    .analytics-chart-grid {
        grid-template-columns: repeat(4, minmax(240px, 1fr)) !important;
    }
}

.analytics-chart-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
	cursor: pointer;
	transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.analytics-chart-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(15,23,42,0.12);
}

.analytics-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.analytics-chart-header h3 {
    margin: 0;
    font-size: 16px;
}

.analytics-chart-card canvas {
    width: 100% !important;
    height: 220px !important;
}

.severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.severity.good {
    background: #dcfce7;
    color: #166534;
}

.severity.warning {
    background: #fef9c3;
    color: #854d0e;
}

.severity.critical {
    background: #fee2e2;
    color: #991b1b;
}

#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 260px;
    max-width: 380px;

    padding: 16px 18px;
    border-radius: 14px;

    background: #0f172a;
    color: white;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);

    animation:
        toastIn 0.25s ease;
}

.toast.success {
    border-left: 5px solid #22c55e;
}

.toast.warning {
    border-left: 5px solid #f59e0b;
}

.toast.error {
    border-left: 5px solid #dc2626;
}

@keyframes toastIn {

    from {
        opacity: 0;
        transform:
            translateY(-10px)
            translateX(10px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            translateX(0);
    }
}


.cluster-chip {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;
    border-radius: 999px;

    background: #eef2ff;
    color: #3730a3;

    font-size: 12px;
    font-weight: 700;
}

.ai-suggestions-table-wrapper {
    max-height: 640px;
    overflow: auto;
}

.ai-suggestions-table thead th {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
}

.ai-suggestion-row-critical {
    background: #fef2f2;
}

.ai-suggestion-row-warning {
    background: #fffbeb;
}

.ai-suggestion-row-success {
    background: #f0fdf4;
}

.ai-suggestion-main {
    font-weight: 600;
}

.ai-suggestion-message {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.8;
}

.ai-suggestion-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-suggestions-table td {
    vertical-align: top;
}
.ai-suggestion-actions button {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    min-height: auto;
    line-height: 1.2;
}
.ai-suggestions-table .ai-suggestion-actions button,
.ai-suggestions-table .ai-suggestion-actions .sync-btn,
.ai-suggestions-table .ai-suggestion-actions .enable-btn,
.ai-suggestions-table .ai-suggestion-actions .disable-btn {
    padding: 5px 12px !important;
    font-size: 14px !important;
    border-radius: 7px !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}
.ai-suggestions-table .ai-suggestion-actions {
    gap: 6px !important;
}
.ai-suggestions-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.04);
}
.ai-suggestion-filter-btn {
    opacity: 0.65;
    transform: none;
}

.ai-suggestion-filter-btn.active {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.ai-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.ai-sortable:hover {
    background: rgba(15, 23, 42, 0.06);
}

.ai-sortable.active {
    background: rgba(37, 99, 235, 0.08);
}

.ai-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ai-suggestion-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 420px;
}

.ai-suggestion-message {
    max-width: 360px;
}

.ai-suggestion-table-small {
    font-size: 12px;
    opacity: 0.75;
}
.ai-details-row {
    display: none;
}

.ai-details-row.open {
    display: table-row;
}

.ai-details-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
}

.ai-details-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 14px;
}

.ai-details-label {
    font-weight: 700;
    color: #475569;
}
.ai-action-menu {
    position: relative;
    display: inline-flex;
}

.ai-action-menu-btn {
    padding: 5px 9px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
    min-height: 0 !important;
    line-height: 1.15 !important;
}

.ai-action-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    z-index: 30;
    overflow: hidden;
}

.ai-action-dropdown.open {
    display: block;
}

.ai-action-dropdown button {
    display: block;
    width: 100%;
    padding: 9px 12px !important;
    border: 0;
    background: #ffffff;
    color: #111827;
    text-align: left;
    font-size: 13px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.ai-action-dropdown button:hover {
    background: #f3f4f6;
}

#feedsTable input,
#feedsTable select {
    max-width: 100%;
    box-sizing: border-box;
}
.feed-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 18px 0 18px;
    flex-wrap: wrap;
}

.feed-toolbar input,
.feed-toolbar select {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-sizing: border-box !important;
}

.feed-toolbar input {
    width: 360px;
    max-width: 360px;
}

.feed-toolbar select {
    width: 190px;
    max-width: 230px;
}

#feedSortSelect {
    width: 230px;
	margin-right: 10px;
}

.feed-toolbar input:focus,
.feed-toolbar select:focus {
    outline: none !important;
    border-color: #0080ff !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15) !important;
}

@media (max-width: 768px) {
    .feed-toolbar {
        justify-content: stretch;
        align-items: stretch;
    }

    .feed-toolbar input,
    .feed-toolbar select,
    #feedSortSelect {
        width: 100%;
        max-width: none;
    }
}

.feed-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;

    margin-top: 28px;
    padding: 18px 24px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    flex-wrap: wrap;
}

.feed-pagination-info {
    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 14px;
    color: #475569;
}

.feed-page-size {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;

    font-size: 14px;
    cursor: pointer;
}

.feed-pagination-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-pagination-actions button {
    padding: 10px 18px;

    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.feed-pagination-actions button:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.feed-pagination-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.feed-pagination-actions span {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.delete-btn {
    background: #dc2626;
    color: white;
}

.delete-btn:hover {
    background: #b91c1c;
}

@media (max-width: 768px) {

    .feed-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-pagination-info,
    .feed-pagination-actions {
        justify-content: center;
    }

    .feed-pagination-actions {
        flex-wrap: wrap;
    }
}

.feed-action-btn {
    padding: 5px 12px !important;
    border: none;
    border-radius: 9px;
    background: #0784f9;
    color: #fff;
    font-size: 14px !important;
    line-height: 1.1;
    font-weight: 600;
    cursor: pointer;
}

.feed-action-btn:hover {
    background: #006ed6;
}

.feed-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
    padding: 5px 10px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.feed-state.active {
    background: #dcfce7;
    color: #166534;
}

.feed-state.paused {
    background: #fee2e2;
    color: #991b1b;
}

.feed-inline-confirm-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;

    margin-bottom: 12px;
}

.feed-inline-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.feed-inline-cancel {
    background: #f1f5f9;
    color: #334155;
}

.feed-inline-delete {
    background: #dc2626;
    color: white;
}

.feed-inline-delete:hover {
    background: #b91c1c;
}
.feed-actions-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
	position: relative;
}

.feed-inline-confirm-target {
    position: relative;
    min-height: 0;
	left: 200px;
}

.feed-inline-confirm {
    position: absolute;
    width: 220px;
    top: 6px;
    right: -60px;
    z-index: 1000;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.feed-inline-confirm-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.feed-inline-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.feed-inline-confirm-actions button {
    width: auto !important;
    min-width: 72px !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.feed-inline-confirm-actions button.danger,
.feed-inline-confirm-actions button.primary,
.feed-inline-confirm-actions button:last-child {
    background: #0080ff !important;
    color: #ffffff !important;
}

.feed-inline-cancel,
.feed-inline-confirm-actions button:first-child {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.feed-inline-delete {
    background: #0080ff !important;
    color: #ffffff !important;
}

.admin-floating-confirm {
    position: fixed !important;
    top: auto;
    right: auto;
    z-index: 9999;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
}

.section-header p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #64748b;
}

.system-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.system-health-card {
    padding: 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.system-health-card:hover {
    transform: translateY(-2px);
    border-color: #0080ff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.system-health-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
}

.system-health-value {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.system-health-note {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.system-health-card.critical .system-health-value {
    color: #dc2626;
}

.system-health-card.warning .system-health-value {
    color: #d97706;
}

.system-health-card.info .system-health-value {
    color: #0080ff;
}

.system-health-card.success .system-health-value {
    color: #16a34a;
}

@media (max-width: 1100px) {
    .system-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .system-health-grid {
        grid-template-columns: 1fr;
    }
}

.analytics-action-needed-section {
    margin-top: 0px;
}

.analytics-action-needed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;

    margin-top: 18px;
}

.analytics-action-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.analytics-action-card strong {
    display: block;

    font-size: 14px;
    font-weight: 600;

    color: #0f172a;

    margin-bottom: 4px;
}

.analytics-action-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #64748b;
}

.analytics-action-card.critical {
    border-color: #fecaca;
    background: #fef2f2;
}

.analytics-action-card.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.analytics-action-card.info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.analytics-action-empty {
    padding: 18px;

    border-radius: 16px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;

    color: #475569;
    font-size: 14px;
}
.analytics-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 2px 7px;
    margin-bottom: 6px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.analytics-action-badge.critical {
    background: #fee2e2;
    color: #991b1b;
}

.analytics-action-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.analytics-action-badge.info {
    background: #dbeafe;
    color: #1e40af;
}
.analytics-action-empty strong {
    display: block;

    margin-bottom: 6px;

    color: #0f172a;
    font-size: 15px;
}

.analytics-action-empty p {
    margin: 0;

    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.analytics-action-content {
    flex: 1;
    min-width: 0;
}

.analytics-action-btn {
    flex-shrink: 0;
	padding: 4px 10px !important;
    font-size: 12px !important;
}

.analytics-opportunities-section {
    margin-top: 18px;
}

.analytics-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;

    margin-top: 14px;
}

.analytics-opportunity-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    padding: 12px;

    border-radius: 12px;
    border: 1px solid #dbeafe;

    background: #eff6ff;
}

.analytics-opportunity-card strong {
    display: block;

    font-size: 13px;
    font-weight: 700;

    color: #0f172a;

    margin-bottom: 4px;
}

.analytics-opportunity-card p {
    margin: 0;

    font-size: 12px;
    line-height: 1.35;

    color: #64748b;
}
.analytics-opportunity-hint {
    margin-top: 6px !important;

    font-size: 11px !important;
    line-height: 1.35;

    color: #475569 !important;
}
.analytics-focused-row {
    background: #fff7ed !important;
    outline: 2px solid #fb923c;
    outline-offset: -2px;
}

.analytics-focused-row td {
    font-weight: 700;
}
.query-detail-panel {
    margin-top: 18px;
    margin-bottom: 18px;

    padding: 18px;

    border-radius: 16px;
    border: 1px solid #dbeafe;

    background: #eff6ff;
}

.query-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 16px;
}

.query-detail-label {
    display: inline-flex;

    margin-bottom: 6px;
    padding: 3px 8px;

    border-radius: 999px;

    background: #dbeafe;
    color: #1e40af;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.query-detail-header h3 {
    margin: 0;

    font-size: 20px;
    color: #0f172a;
}

.query-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;

    margin-bottom: 14px;
}

.query-detail-stat {
    padding: 12px;

    border-radius: 12px;

    background: #ffffff;
    border: 1px solid #dbeafe;
}

