/* Backups admin view */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.summary-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.summary-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

.age-fresh { color: #059669; }
.age-warn  { color: #d97706; }
.age-stale { color: #dc2626; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #f1f3f5);
    vertical-align: middle;
}

.data-table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .right { text-align: right; }
.data-table .sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #475569; }
.data-table code { font-size: 0.85rem; }

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    font-weight: 600;
    cursor: pointer;
}
.btn-sm:hover { background: #e5e7eb; }
.btn-sm:disabled { opacity: 0.5; cursor: not-allowed; }

.footnote {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.error {
    color: #b91c1c;
    padding: 1rem;
    background: #fee2e2;
    border-radius: 8px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-head h1 { margin: 0; }

.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.55rem 1.05rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

.run-status {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
}
.run-status.running { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.run-status.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.run-status.failed  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
