/* ============================================================================
   DFS4ALL — Estilos do sistema de ajuda (RC9)
   Painel lateral acessível, no estilo institucional (variáveis --ms-*).
   ========================================================================== */
:root{
  --help-navy:#1B4E7A; --help-navy-deep:#123A5C; --help-blue:#1E5C9E;
  --help-border:#E6EAEF; --help-bg:#F4F6F8; --help-text:#2B3A47; --help-muted:#8A97A6;
  --help-green:#2E9E6B; --help-amber:#C98A1B; --help-red:#D6473F;
}
/* botão flutuante de Ajuda (injetado em todas as páginas) */
.dfs-help-fab{position:fixed;right:18px;bottom:18px;z-index:9990;display:inline-flex;align-items:center;gap:8px;
  background:var(--ms-navy,var(--help-navy));color:#fff;border:0;border-radius:24px;padding:10px 16px;
  font:600 14px/1 system-ui,Segoe UI,Roboto,Arial;cursor:pointer;box-shadow:0 6px 18px rgba(18,58,92,.28)}
.dfs-help-fab:hover{background:var(--ms-navy-deep,var(--help-navy-deep))}
.dfs-help-fab .q{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;
  background:rgba(255,255,255,.22);font-weight:700}
@media print{.dfs-help-fab{display:none}}
/* botão de ajuda dentro do cabeçalho institucional (herda o tom do cabeçalho) */
.dfs-help-hdr-btn{display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  background:rgba(255,255,255,.16);color:inherit;border:1px solid rgba(255,255,255,.35);
  border-radius:18px;padding:5px 12px;font:600 13px/1 inherit;white-space:nowrap;z-index:5}
.dfs-help-hdr-btn:hover{background:rgba(255,255,255,.28)}
.dfs-help-hdr-btn .q{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:rgba(255,255,255,.28);font-weight:700;font-size:11px}
@media print{.dfs-help-hdr-btn{display:none}}

/* overlay + painel lateral */
.dfs-help-overlay{position:fixed;inset:0;background:rgba(18,58,92,.38);z-index:9991;display:flex;justify-content:flex-end}
.dfs-help-panel{background:#fff;width:min(560px,96vw);height:100%;display:flex;flex-direction:column;
  box-shadow:-16px 0 44px rgba(18,58,92,.26);animation:dfs-help-in .18s ease}
@keyframes dfs-help-in{from{transform:translateX(24px);opacity:.6}to{transform:none;opacity:1}}
.dfs-help-head{padding:16px 20px;border-bottom:1px solid var(--help-border);background:var(--help-navy);color:#fff}
.dfs-help-head h2{margin:0 0 4px;font-size:18px;font-weight:700}
.dfs-help-meta{font-size:11.5px;opacity:.9;display:flex;gap:10px;flex-wrap:wrap}
.dfs-help-meta .estado{background:rgba(255,255,255,.2);border-radius:10px;padding:1px 8px}
.dfs-help-x{position:absolute;top:12px;right:14px;background:transparent;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;border-radius:6px;padding:2px 8px}
.dfs-help-x:hover{background:rgba(255,255,255,.18)}
.dfs-help-aviso{background:#FFF7ED;border-bottom:1px solid #FCD9A8;color:#8a5a12;font-size:12px;padding:8px 20px}
.dfs-help-toolbar{padding:10px 20px;border-bottom:1px solid var(--help-border);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.dfs-help-search{flex:1;min-width:160px;padding:8px 10px;border:1px solid var(--help-border);border-radius:8px;font:inherit;font-size:13.5px}
.dfs-help-search:focus{outline:none;border-color:var(--help-blue);box-shadow:0 0 0 3px rgba(30,92,158,.12)}
.dfs-help-btn{border:1px solid var(--help-border);background:#fff;border-radius:8px;padding:8px 12px;font:600 13px system-ui;cursor:pointer;color:var(--help-text)}
.dfs-help-btn:hover{background:var(--help-bg)}
.dfs-help-btn.primario{background:var(--help-navy);color:#fff;border-color:var(--help-navy)}
.dfs-help-btn.primario:hover{background:var(--help-navy-deep)}
.dfs-help-btn.perigo{color:var(--help-red);border-color:#f0c4c1}
.dfs-help-body{padding:8px 20px 24px;overflow:auto;flex:1}
.dfs-help-sec{border-bottom:1px solid var(--help-border);padding:12px 0}
.dfs-help-sec:last-child{border-bottom:0}
.dfs-help-sec h3{margin:0 0 6px;font-size:14.5px;color:var(--help-navy);font-weight:700}
.dfs-help-sec p,.dfs-help-sec li{font-size:13.5px;line-height:1.55;color:var(--help-text)}
.dfs-help-sec ul,.dfs-help-sec ol{margin:6px 0 6px 18px;padding:0}
.dfs-help-sec li{margin-bottom:3px}
.dfs-help-kv{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:13px}
.dfs-help-kv dt{font-weight:600;color:var(--help-navy-deep)}
.dfs-help-kv dd{margin:0;color:var(--help-text)}
.dfs-help-faq{margin-bottom:8px}
.dfs-help-faq b{display:block;color:var(--help-navy-deep);font-size:13.5px}
.dfs-help-chk{list-style:none;margin:6px 0 0;padding:0}
.dfs-help-chk li{display:flex;gap:8px;align-items:flex-start;margin-bottom:5px;font-size:13.5px}
.dfs-help-chk input{margin-top:2px}
.dfs-help-hi{background:#FDF3C4;border-radius:3px;padding:0 2px}
.dfs-help-nores{color:var(--help-muted);font-size:13px;font-style:italic}
.dfs-help-badge{display:inline-block;font-size:11px;font-weight:700;border-radius:10px;padding:1px 8px}
.dfs-help-badge.dev{background:#FDECEA;color:#9a3b34}
/* ajuda contextual de campo (ícone ?) */
.dfs-help-i{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;
  background:var(--help-blue);color:#fff;font:700 10px system-ui;cursor:help;margin-left:5px;vertical-align:middle;user-select:none}
.dfs-help-tip{position:fixed;z-index:9999;max-width:260px;background:var(--help-navy-deep);color:#fff;font:400 12px/1.4 system-ui;
  padding:8px 10px;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.24)}
/* formulário de reporte */
.dfs-help-form label{display:block;font-size:12.5px;font-weight:600;color:var(--help-text);margin:8px 0 3px}
.dfs-help-form input,.dfs-help-form select,.dfs-help-form textarea{width:100%;box-sizing:border-box;padding:8px 10px;
  border:1px solid var(--help-border);border-radius:8px;font:inherit;font-size:13px}
.dfs-help-form textarea{min-height:60px;resize:vertical}
.dfs-help-form .auto{background:var(--help-bg);color:var(--help-muted)}
.dfs-help-grid2{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
@media(max-width:520px){.dfs-help-grid2{grid-template-columns:1fr}}
.dfs-help-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.dfs-help-tab{border:1px solid var(--help-border);background:#fff;border-radius:16px;padding:5px 12px;font:600 12.5px system-ui;cursor:pointer;color:var(--help-text)}
.dfs-help-tab.on{background:var(--help-navy);color:#fff;border-color:var(--help-navy)}
