/* Workflow RH STTE v2.2.1 - Backup recolhível. */
.backup-collapsible{padding:0;overflow:hidden}
.backup-collapsible>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;user-select:none}
.backup-collapsible>summary::-webkit-details-marker{display:none}
.backup-collapsible>summary span:first-child{display:flex;flex-direction:column;gap:3px}
.backup-collapsible>summary strong{font-size:16px;color:#0f3b63}
.backup-collapsible>summary small{font-size:12px;color:#64748b;font-weight:500}
.backup-toggle-icon{font-size:22px;line-height:1;transition:transform .18s ease;color:#475569}
.backup-collapsible[open] .backup-toggle-icon{transform:rotate(180deg)}
.backup-collapsible-body{padding:0 16px 16px;border-top:1px solid #e2e8f0}
.backup-collapsible[open]>summary{background:#f8fafc}
.backup-sistema-page{display:flex;flex-direction:column;gap:14px}
.backup-sistema-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.backup-sistema-head h2{margin:0;color:#0f172a;font-size:22px}
.backup-sistema-head p{margin:4px 0 0;color:#64748b;font-size:13px}
.backup-sistema-subtabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e2e8f0;padding-bottom:8px}
.backup-sistema-subtabs button{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:8px;padding:8px 12px;font-weight:700;cursor:pointer}
.backup-sistema-subtabs button.active{background:#0f3b63;color:#fff;border-color:#0f3b63}
.backup-sistema-status{padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#334155;font-weight:700}
.backup-sistema-status.ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.backup-sistema-status.bad{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.backup-sistema-status.warn{border-color:#fde68a;background:#fffbeb;color:#92400e}
.backup-sistema-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.backup-sistema-card{border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:6px;min-width:0}
.backup-sistema-card small{font-size:12px;color:#64748b;font-weight:700;text-transform:uppercase}
.backup-sistema-card b{font-size:15px;color:#0f172a;word-break:break-word}
.backup-sistema-card span{font-size:12px;color:#475569}
.backup-sistema-wide{margin-top:10px}
.backup-sistema-badge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:800}
.backup-sistema-badge.ok{background:#dcfce7;color:#166534}
.backup-sistema-badge.alerta{background:#fef3c7;color:#92400e}
.backup-sistema-badge.critico{background:#fee2e2;color:#991b1b}
.backup-sistema-badge.neutro{background:#e2e8f0;color:#475569}
.backup-sistema-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.backup-sistema-page button{border:1px solid #0f3b63;background:#0f3b63;color:#fff;border-radius:8px;padding:8px 12px;font-weight:800;cursor:pointer;box-shadow:none}
.backup-sistema-page button:hover:not(:disabled),.backup-sistema-page button:focus-visible:not(:disabled){background:#145083;border-color:#145083;color:#fff}
.backup-sistema-page button:active:not(:disabled){background:#0b2f50;border-color:#0b2f50;color:#fff}
.backup-sistema-page button:disabled{background:#e2e8f0;border-color:#cbd5e1;color:#64748b;cursor:not-allowed;opacity:1}
.backup-sistema-page .btn-secondary{background:#fff;color:#0f3b63;border-color:#94a3b8}
.backup-sistema-page .btn-secondary:hover:not(:disabled),.backup-sistema-page .btn-secondary:focus-visible:not(:disabled){background:#eaf4ff;color:#0f3b63;border-color:#0f3b63}
.backup-sistema-page .btn-dark{background:#0f3b63;color:#fff;border-color:#0f3b63}
.backup-sistema-checks{display:flex;flex-direction:column;gap:8px}
.backup-sistema-check{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:10px}
.backup-sistema-check p{margin:4px 0;color:#334155}
.backup-sistema-check small{color:#64748b}
.backup-sistema-check-details{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.backup-sistema-check-details>div{border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:3px}
.backup-sistema-check-details b{font-size:13px;color:#0f172a}
.backup-sistema-check-details span{font-size:12px;color:#475569;overflow-wrap:anywhere}
.backup-sistema-page code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;word-break:break-all}
.backup-sistema-overview{display:flex;flex-direction:column;gap:14px}
.backup-sistema-status-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:12px}
.backup-sistema-status-panel>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.backup-sistema-status-panel small,.backup-sistema-alerts small{font-size:12px;color:#64748b;font-weight:800;text-transform:uppercase}
.backup-sistema-status-panel b{font-size:16px;color:#0f172a;word-break:break-word}
.backup-sistema-status-panel span{font-size:12px;color:#475569}
.backup-sistema-quick-actions{display:flex;gap:8px;flex-wrap:wrap}
.backup-sistema-tech{display:grid;grid-template-columns:minmax(90px,.6fr) minmax(220px,1.4fr) minmax(220px,1.2fr);gap:10px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:10px 12px;align-items:start}
.backup-sistema-tech>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.backup-sistema-tech small{font-size:11px;color:#64748b;font-weight:800;text-transform:uppercase}
.backup-sistema-tech b{font-size:14px;color:#0f172a}
.backup-sistema-tech span{font-size:12px;color:#475569}
.backup-sistema-tech code{font-size:11px;line-height:1.35;color:#334155;white-space:normal;overflow-wrap:anywhere}
.backup-sistema-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}
.backup-sistema-section-head h3{margin:0;color:#0f172a;font-size:18px}
.backup-sistema-section-head p{margin:4px 0 0;color:#64748b;font-size:13px}
.backup-sistema-type-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-bottom:12px}
.backup-sistema-type-summary span{border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:9px 10px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.backup-sistema-type-summary b{font-size:18px;color:#0f172a}
.backup-sistema-type-summary small{font-size:11px;color:#64748b;font-weight:800;text-transform:uppercase}
.backup-sistema-table{overflow:auto}
.backup-sistema-table table{min-width:880px}
.backup-sistema-integridade-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.backup-sistema-check-group{display:flex;flex-direction:column;gap:8px}
.backup-sistema-check-group h4{margin:8px 0 0;color:#0f3b63;font-size:14px;border-bottom:1px solid #e2e8f0;padding-bottom:6px}
.backup-sistema-check.neutro{background:#f8fafc}
.backup-sistema-package{border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:14px;max-width:820px}
.backup-sistema-package .backup-sistema-status{display:flex;flex-direction:column;gap:5px;margin-top:10px;font-weight:500}
.backup-sistema-package .backup-sistema-status:empty{display:none}
.backup-sistema-package .backup-sistema-status code{font-size:11px}
.backup-sistema-error{border:1px solid #fecaca;background:#fef2f2;color:#7f1d1d;border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.backup-sistema-error h3{margin:0;font-size:16px;color:#7f1d1d}
.backup-sistema-error p{margin:0;color:#991b1b}
.backup-sistema-empty{border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:14px;color:#475569;font-weight:700}
.backup-sistema-alerts{border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:8px;padding:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:900px){.backup-sistema-tech{grid-template-columns:1fr}.backup-sistema-section-head{flex-direction:column}.backup-sistema-actions{margin-bottom:0}}
