/* Backup dashboard (templates/backup/*): the Hyper Backup log of the NAS */
.bk-upload-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 6px; }
.bk-upload-form label { flex: 1 1 280px; }
.bk-filter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 4px 0 14px; }
.bk-filter label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.bk-filter select, .bk-filter input { width: auto; min-width: 140px; }
.bk-banner { border-radius: var(--radius-card, 12px); padding: 12px 16px; margin: 0 0 14px; border: 1px solid; font-size: .95rem; }
.bk-ok { background: #dcfce7; border-color: #86efac; color: #14532d; }
.bk-warn { background: #fef3c7; border-color: #fcd34d; color: #78350f; }
.bk-bad { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }
html.dark .bk-ok { background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .4); color: #bbf7d0; }
html.dark .bk-warn { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); color: #fde68a; }
html.dark .bk-bad { background: rgba(248, 113, 113, .13); border-color: rgba(248, 113, 113, .45); color: #fecaca; }
.stat-n.bk-small { font-size: 1.15rem; line-height: 1.5; }

/* the calendar: one square per day, a column per week (Monday on top) */
.bk-cal { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 6px; }
.bk-week { display: grid; grid-template-rows: repeat(7, 13px); gap: 3px; }
.bk-day { display: block; width: 13px; height: 13px; border-radius: 3px; }
i.bk-day { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.bk-off { background: transparent; }
.bk-s-ok { background: #16a34a; }
.bk-s-partial { background: #f59e0b; }
.bk-s-failed, .bk-s-not_started { background: #dc2626; }
.bk-s-suspended { background: #94a3b8; }
.bk-s-none { background: #e2e8f0; box-shadow: inset 0 0 0 1px #cbd5e1; }
html.dark .bk-s-none { background: #334155; box-shadow: none; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); margin: 8px 0 0; }

/* the charts (inline SVG made by app/backup.py) */
.bk-chart { width: 100%; height: auto; max-height: 190px; display: block; }
.bk-axis { stroke: var(--border, #cbd5e1); stroke-width: 1; }
.bk-lbl { fill: var(--muted, #64748b); font-size: 10px; }
.bk-bar { fill: #059669; }
.bk-bar2 { fill: #2563eb; }
.bk-bar:hover { opacity: .75; }
.bk-line { stroke: #059669; stroke-width: 2; stroke-linejoin: round; }
.bk-dot { fill: #059669; }
html.dark .bk-bar, html.dark .bk-dot { fill: #34d399; }
html.dark .bk-line { stroke: #34d399; }
html.dark .bk-bar2 { fill: #60a5fa; }

.bk-b-ok { background: #dcfce7; color: #166534; }
.bk-b-partial { background: #fef3c7; color: #92400e; }
.bk-b-failed, .bk-b-not_started { background: #fee2e2; color: #991b1b; }
.bk-b-suspended, .bk-b-none { background: #f1f5f9; color: #475569; }
html.dark .bk-b-ok { background: rgba(74, 222, 128, .16); color: #86efac; }
html.dark .bk-b-partial { background: rgba(251, 191, 36, .16); color: #fcd34d; }
html.dark .bk-b-failed, html.dark .bk-b-not_started { background: rgba(248, 113, 113, .18); color: #fca5a5; }
html.dark .bk-b-suspended, html.dark .bk-b-none { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
.bk-issues td { vertical-align: top; }
.nowrap { white-space: nowrap; }
