/* ================================================================
   SRP Pesquisa de Satisfação — v10.2
   Sindicato Rural de Pindamonhangaba
   Desenvolvido por Michel Lima
================================================================ */

/* ── Reset Base ── */
#srp-app *, #srp-adm * {
    box-sizing: border-box;
}

/* ================================================================
   FORMULÁRIO PÚBLICO  (#srp-app)
================================================================ */

#srp-app {
    background: #eef3ee !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* AJUSTE: centraliza o conteúdo verticalmente na viewport */
    justify-content: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
}

/* ── Conteúdo principal — LARGURA CORRIGIDA ── */
#srp-content {
    width: 100%;
    max-width: 780px;
    /* AJUSTE: padding-top garante que o conteúdo não sobreponha o controle de zoom fixo (52px);
       padding-bottom reduzido pois o justify-content:center já cuida do espaço inferior */
    padding: 60px 20px 40px;
    margin: 0 auto;
}

/* ── Controle de Zoom ── */
.srp-zoom-ctrl {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,92,53,.92);
    color: #fff;
    border-radius: 30px;
    padding: 6px 14px;
    z-index: 1000;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    backdrop-filter: blur(4px);
}
.srp-zoom-ctrl button {
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.srp-zoom-ctrl button:hover { background: rgba(255,255,255,.32); }

/* ── Cabeçalho / Banner ── */
#srp-app .srp-cabecalho {
    background: linear-gradient(135deg, #1a5c35, #40916c) !important;
    border-radius: 14px !important;
    padding: 32px 24px 28px !important;
    /* AJUSTE: margin-top removido — o padding-top do #srp-content já afasta do zoom fixo */
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    text-align: center !important;
    width: 100%;
}
#srp-app .srp-logo {
    max-width: 110px;
    height: auto;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ── Campos de identificação ── */
.srp-campo-wrap { margin-bottom: 18px; }
#srp-app .srp-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .09em !important;
    color: #1a5c35 !important;
    margin-bottom: 7px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.srp-dica { display: block; font-size: 12px; color: #888; margin-top: 5px; }
.srp-opcoes-ident { display: flex; flex-direction: column; gap: 8px; }
#srp-app .srp-gen-btn,
#srp-app .srp-trat-btn {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 13px 16px !important;
    border: 2px solid #c8e0d0 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #1c1c1c !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
    line-height: 1.4 !important;
}
#srp-app .srp-gen-btn:hover,
#srp-app .srp-trat-btn:hover {
    border-color: #40916c !important;
    background: #f0faf3 !important;
}
#srp-app .srp-gen-btn.srp-gen-sel,
#srp-app .srp-trat-btn.srp-trat-sel {
    background: #1a5c35 !important;
    color: #fff !important;
    border-color: #1a5c35 !important;
    font-weight: 700 !important;
}
#srp-app .srp-fade-in { animation: srpFadeIn .3s ease; }
#srp-app .srp-cabecalho h1 {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 0 6px !important;
    border: none !important;
    background: none !important;
}
#srp-app .srp-cab-sub {
    color: rgba(255,255,255,.85) !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* ── Card base ── */
#srp-app .srp-card {
    background: #fff !important;
    border: 1px solid #c8e0d0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.08) !important;
    padding: 28px 28px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}

/* ── Tela boas-vindas ── */
#srp-app .srp-card-intro { text-align: center; padding-top: 36px !important; }
.srp-intro-icon { font-size: 44px; display: block; margin-bottom: 12px; }
.srp-intro-titulo { font-size: 22px; font-weight: 800; color: #1a5c35; margin: 0 0 16px; }
.srp-intro-corpo { text-align: justify; margin: 0 0 16px; }
.srp-intro-saud { font-size: 16px; color: #333; margin-bottom: 12px; text-align: left; }
.srp-intro-texto { font-size: 15px; line-height: 1.75; color: #444; margin-bottom: 12px; text-align: justify; }
.srp-intro-tempo {
    font-size: 14px; color: #1a5c35; margin-top: 14px;
    padding: 10px 14px; background: #d8f3dc; border-radius: 8px; text-align: center;
}
.srp-destaque-nome  { color: #1a5c35; font-size: 17px; font-weight: 900; }
.srp-destaque-trat  { color: #2d6a4f; font-weight: 800; font-style: italic; }
.srp-intro-desc { color: #444; font-size: 15px; line-height: 1.6; margin: 0 0 10px; }

/* ── Barra superior (timer + progresso) ── */
.srp-barra-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px 10px;
    /* AJUSTE: margin-top removido — o padding-top do #srp-content já afasta do zoom fixo */
    margin-top: 0;
}
.srp-timer-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #1a5c35;
    background: #d8f3dc;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.srp-timer-icon { font-size: 13px; }
.srp-prog-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.srp-prog-bg {
    flex: 1;
    height: 6px;
    background: #d0e8d8;
    border-radius: 10px;
    overflow: hidden;
}
.srp-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a5c35, #52b788);
    border-radius: 10px;
    transition: width .4s ease;
    width: 0%;
}
.srp-prog-txt {
    font-size: 13px;
    font-weight: 700;
    color: #1a5c35;
    white-space: nowrap;
}

/* ── Título da etapa ── */
.srp-step-titulo {
    font-size: 18px;
    font-weight: 800;
    color: #1a5c35;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d8f3dc;
}

/* ── Pergunta ── */
.srp-pergunta {
    margin-bottom: 22px;
}
.srp-perg-enunciado {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.srp-perg-num {
    background: #1a5c35;
    color: #fff;
    border-radius: 50%;
    width: 28px; height: 28px;
    min-width: 28px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.srp-perg-texto {
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1c;
    line-height: 1.5;
}
.srp-obrig { color: #c0392b; margin-left: 3px; }

/* ── Opções Radio / Checkbox ── */
.srp-opcoes { display: flex; flex-direction: column; gap: 8px; }

.srp-opcao-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    text-align: left !important;
    padding: 13px 16px !important;
    border: 2px solid #c8e0d0 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #1c1c1c !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
    line-height: 1.4 !important;
}
.srp-opcao-btn:hover {
    border-color: #40916c !important;
    background: #f0faf3 !important;
}
.srp-opcao-btn.srp-sel {
    background: #1a5c35 !important;
    color: #fff !important;
    border-color: #1a5c35 !important;
    font-weight: 700 !important;
}
.srp-opcao-ic {
    width: 20px; height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #b7d5c1;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    transition: all .15s;
    flex-shrink: 0;
}
.srp-opcao-btn.srp-sel .srp-opcao-ic {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}
/* Checkbox — quadrado */
.srp-opcao-btn[data-tipo="checkbox"] .srp-opcao-ic { border-radius: 5px; }

/* ── Inputs ── */
.srp-input-wrap { margin-top: 6px; }
#srp-app .srp-input {
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #c8e0d0 !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    background: #fff !important;
    color: #1c1c1c !important;
    outline: none !important;
    transition: border-color .15s !important;
}
#srp-app .srp-input:focus {
    border-color: #1a5c35 !important;
    box-shadow: 0 0 0 3px rgba(26,92,53,.12) !important;
}
#srp-app .srp-textarea {
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #c8e0d0 !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    background: #fff !important;
    color: #1c1c1c !important;
    outline: none !important;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    transition: border-color .15s !important;
}
#srp-app .srp-textarea:focus {
    border-color: #1a5c35 !important;
    box-shadow: 0 0 0 3px rgba(26,92,53,.12) !important;
}

/* ── Estrelas ── */
.srp-estrelas {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.srp-estrela {
    font-size: 32px;
    cursor: pointer;
    color: #d0d0d0;
    transition: color .15s, transform .12s;
    line-height: 1;
    user-select: none;
}
.srp-estrela.ativa  { color: #c9a227; }
.srp-estrela:hover  { transform: scale(1.15); }
.srp-star-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a5c35;
    margin-left: 6px;
    min-width: 80px;
}

/* ── Ranking / Ordenação ── */
.srp-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.srp-ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #c8e0d0;
    border-radius: 9px;
    padding: 11px 14px;
    cursor: grab;
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c;
    user-select: none;
    transition: border-color .15s, box-shadow .15s;
}
.srp-ranking-item:active { cursor: grabbing; }
.srp-ranking-item.sortable-ghost {
    opacity: .45;
    border-color: #40916c;
}
.srp-ranking-item.sortable-drag {
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    border-color: #1a5c35;
    background: #f0faf3;
}
.srp-rank-pos {
    background: #1a5c35;
    color: #fff;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.srp-rank-drag { color: #aaa; font-size: 18px; cursor: grab; flex-shrink: 0; }
.srp-ranking-dica {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Pergunta condicional (fade-in) ── */
.srp-cond-wrap {
    margin-top: 10px;
    padding: 14px 16px;
    background: #f0faf3;
    border-left: 3px solid #40916c;
    border-radius: 0 9px 9px 0;
    animation: srpFadeIn .25s ease;
}
@keyframes srpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Navegação entre etapas ── */
.srp-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
#srp-app .srp-btn-pri {
    flex: 1;
    display: block !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #1a5c35, #40916c) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: opacity .15s, transform .1s !important;
}
#srp-app .srp-btn-pri:hover { opacity: .9 !important; }
#srp-app .srp-btn-pri:active { transform: scale(.98) !important; }
#srp-app .srp-btn-pri:disabled {
    opacity: .6 !important;
    cursor: not-allowed !important;
}
#srp-app .srp-btn-sec {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 15px 18px !important;
    background: #fff !important;
    color: #1a5c35 !important;
    border: 2px solid #1a5c35 !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all .15s !important;
}
#srp-app .srp-btn-sec:hover {
    background: #f0faf3 !important;
}

/* ── Erro ── */
#srp-app .srp-erro {
    color: #c0392b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    min-height: 20px !important;
    padding: 4px 0 !important;
    background: none !important;
    margin: 8px 0 0 !important;
}

/* ── Sub-texto / dica ── */
.srp-sub {
    color: #666;
    font-size: 14px;
    margin: -12px 0 18px;
    line-height: 1.5;
}

/* ── Revisão ── */
.srp-rev-sec {
    margin-bottom: 20px;
}
.srp-rev-sec h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1a5c35;
    padding: 0 0 6px;
    border-bottom: 2px solid #d8f3dc;
    margin: 0 0 10px;
}
.srp-rev-item {
    margin-bottom: 8px;
}
.srp-rev-perg {
    font-size: 12px;
    color: #777;
    margin-bottom: 3px;
    font-weight: 600;
}
.srp-rev-resp {
    background: #d8f3dc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a5c35;
}
.srp-rev-resp.srp-rev-vazio {
    background: #f5f5f5;
    color: #aaa;
    font-weight: 400;
}

/* ─────────────────────────────────────
   OVERLAY DE SUCESSO — CENTRALIZADO
───────────────────────────────────── */
/* Overlay oculto por padrão (display controlado via JS) */
#srp-overlay-ok {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,.55) !important;
    z-index: 99999 !important;
    /* display: gerenciado pelo JS — NÃO usar !important aqui */
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    backdrop-filter: blur(3px) !important;
}

/* Card de feedback — mesma largura que o formulário */
#srp-feedback-card {
    position: relative !important;
    width: 100% !important;
    max-width: 780px !important;   /* Mesma largura do formulário */
    background: #fff !important;
    border: 1px solid #c8e0d0 !important;
    border-radius: 14px !important;
    padding: 40px 32px 32px !important;
    text-align: center !important;
    box-shadow: 0 16px 60px rgba(0,0,0,.25) !important;
    animation: srpFadeIn .35s ease !important;
    overflow: hidden !important;
}
#srp-confetti {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
.srp-ok-icon { font-size: 56px; display: block; margin-bottom: 16px; position: relative; z-index: 2; }
.srp-ok-titulo {
    font-size: 22px;
    font-weight: 800;
    color: #1a5c35;
    margin: 0 0 12px;
    position: relative; z-index: 2;
}
.srp-ok-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
    position: relative; z-index: 2;
}
.srp-tempo-final {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px;
    position: relative; z-index: 2;
}
#srp-feedback-card .srp-btn-pri {
    position: relative;
    z-index: 2;
    max-width: 360px;
    margin: 0 auto;
}
.srp-rodape {
    margin-top: 24px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
    position: relative; z-index: 2;
}

/* ── Responsividade ── */
@media (max-width: 600px) {
    /* AJUSTE: padding-top reduzido levemente no mobile, mas ainda garante espaço para o zoom */
    #srp-content { padding: 56px 12px 40px; }
    #srp-app .srp-card { padding: 20px 16px !important; }
    #srp-feedback-card { padding: 28px 20px 24px !important; }
    .srp-estrela { font-size: 28px; }
    .srp-barra-topo { flex-direction: column; align-items: stretch; }
}


/* ================================================================
   PAINEL ADMINISTRATIVO  (#srp-adm)
================================================================ */

#srp-adm {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #1c1c1c;
    background: #f0f4f0;
    min-height: 100vh;
}

/* ── Login ── */
.adm-tela { min-height: 100vh; }
#adm-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #eef3ee;
}
.adm-login-card {
    background: #fff;
    border: 1px solid #c8e0d0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}
.adm-login-logo {
    background: linear-gradient(135deg, #1a5c35, #40916c);
    padding: 28px 20px 22px;
    text-align: center;
    color: #fff;
}
.adm-login-logo h2 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #fff !important;
    border: none !important;
}
.adm-login-logo p { font-size: 13px; color: rgba(255,255,255,.8); margin: 0; }
.adm-login-corpo { padding: 24px; }
.adm-login-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #1a5c35;
    margin-bottom: 6px;
    margin-top: 14px;
}
.adm-login-label:first-child { margin-top: 0; }
.adm-login-inp {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #c8e0d0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.adm-login-inp:focus { border-color: #1a5c35; box-shadow: 0 0 0 3px rgba(26,92,53,.1); }
.adm-pw-wrap { position: relative; }
.adm-pw-tgl {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; font-size: 16px; padding: 2px;
}
.adm-erro {
    color: #c0392b;
    font-size: 13px;
    font-weight: 700;
    min-height: 18px;
    margin: 8px 0 0;
}

/* ── Botões admin ── */
.adm-btn-pri {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a5c35, #40916c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.adm-btn-pri:hover { opacity: .88; }
.adm-btn-pri:disabled { opacity: .55; cursor: not-allowed; }
.adm-btn-sec {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    background: #fff;
    color: #1a5c35;
    border: 2px solid #1a5c35;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.adm-btn-sec:hover { background: #f0faf3; }
.adm-btn-csv {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #2d6a4f;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}
.adm-btn-csv:hover { opacity: .85; }
.adm-btn-sair {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #fff;
    color: #c0392b;
    border: 2px solid #c0392b;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.adm-btn-sair:hover { background: #fff5f5; }
.adm-btn-new {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #1a5c35;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: opacity .15s;
}
.adm-btn-new:hover { opacity: .85; }
.adm-btn-del-sel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.adm-btn-del-sel:hover { opacity: .85; }
#adm-login .adm-btn-pri { width: 100%; margin-top: 16px; padding: 14px; font-size: 15px; }

/* ── Topo do painel ── */
.adm-topo {
    background: #1a5c35;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.adm-topo-esq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-topo-titulo { font-size: 15px; font-weight: 800; color: #fff; }
.adm-saudacao { font-size: 13px; color: rgba(255,255,255,.7); }
.adm-topo-dir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-zoom-ctrl {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.adm-zoom-ctrl button {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 22px; height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}

/* ── Toast ── */
.adm-toast {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 10000;
    max-width: 360px;
    background: #fff;
    border: 1px solid #c8e0d0;
    border-left: 4px solid #1a5c35;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    transform: translateX(120%);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.adm-toast.adm-toast-show { transform: translateX(0); }
.adm-toast-inner { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; }
.adm-toast-titulo { font-size: 14px; font-weight: 800; color: #1a5c35; margin-bottom: 3px; }
.adm-toast-msg { font-size: 13px; color: #555; }
.adm-toast-x {
    background: none; border: none; cursor: pointer;
    font-size: 14px; color: #999; padding: 2px 4px;
    flex-shrink: 0; margin-left: auto;
}

/* ── Zona com zoom ── */
#adm-inner { padding: 0 16px 40px; }

/* ── Abas ── */
.adm-abas {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #c8e0d0;
    padding: 16px 0 0;
    flex-wrap: wrap;
}
.adm-aba {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color .15s;
}
.adm-aba:hover { color: #1a5c35; }
.adm-aba.adm-aba-on {
    color: #1a5c35;
    border-bottom-color: #1a5c35;
}

/* ── Panel ── */
.adm-panel { padding: 16px 0; }

/* ── Toolbar ── */
.adm-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.adm-busca-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 2px solid #c8e0d0;
    border-radius: 8px;
    padding: 6px 12px;
    flex: 1;
    min-width: 180px;
}
.adm-busca {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    background: transparent;
}
.adm-badge {
    background: #1a5c35;
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* ── Tabelas ── */
.adm-table-wrap { overflow-x: auto; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.adm-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}
.adm-table thead tr {
    background: #1a5c35;
    color: #846e43;
}
.adm-table th {
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    text-align: left;
    white-space: nowrap;
}
.adm-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eef3ee;
    font-size: 13px;
    vertical-align: middle;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adm-table tbody tr:hover { background: #f5faf6; }
.adm-table tbody tr.adm-row-checked { background: #e8f5e9; }
.adm-th-check { width: 40px; }

.adm-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-acoes button {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.adm-btn-ver { background: #d8f3dc; color: #1a5c35; }
.adm-btn-edt { background: #fef3c7; color: #92400e; }
.adm-btn-del { background: #fee2e2; color: #991b1b; }
.adm-acoes button:hover { opacity: .75; }

/* ── Stats / gráficos ── */
.adm-stats-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.adm-stat {
    background: #fff;
    border: 1px solid #c8e0d0;
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 130px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.adm-stat-n { font-size: 28px; font-weight: 900; color: #1a5c35; }
.adm-stat-l { font-size: 12px; color: #777; font-weight: 600; margin-top: 2px; }

.adm-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.adm-chart-box {
    background: #fff;
    border: 1px solid #c8e0d0;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.adm-chart-full { grid-column: 1 / -1; }
.adm-chart-box h3 {
    font-size: 13px;
    font-weight: 800;
    color: #1a5c35;
    margin: 0 0 12px;
    border-bottom: 2px solid #d8f3dc;
    padding-bottom: 8px;
}
.adm-chart-h { height: 220px; }

/* ── Modais ── */
.adm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 50000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.adm-modal.adm-modal-aberto {
    display: flex;
}
.adm-modal-caixa {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 60px rgba(0,0,0,.25);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: srpFadeIn .25s ease;
}
.adm-modal-novo-caixa { max-width: 700px; }
.adm-modal-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid #d8f3dc;
    flex-shrink: 0;
}
.adm-modal-cab h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1a5c35;
    margin: 0;
}
.adm-modal-x {
    background: #fee2e2;
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 14px;
    cursor: pointer;
    color: #991b1b;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.adm-modal-x:hover { background: #fca5a5; }
.adm-modal-corpo {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}
.adm-modal-rod {
    padding: 14px 20px;
    border-top: 2px solid #d8f3dc;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}
.adm-modal-campo {
    margin-bottom: 14px;
}
.adm-modal-campo label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #777;
    margin-bottom: 4px;
}
.adm-modal-val {
    background: #f0faf3;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1c1c1c;
    min-height: 36px;
    word-break: break-word;
    white-space: pre-wrap;
}
.adm-modal-val.adm-val-vazio { color: #bbb; font-style: italic; }
.adm-modal-inp, .adm-modal-ta {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 2px solid #c8e0d0;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    resize: vertical;
}
.adm-modal-inp:focus, .adm-modal-ta:focus {
    border-color: #1a5c35;
    box-shadow: 0 0 0 2px rgba(26,92,53,.1);
}
.adm-modal-sep {
    border: none;
    border-top: 2px solid #d8f3dc;
    margin: 14px 0;
}
.adm-novo-info {
    font-size: 13px;
    color: #777;
    margin: 0 0 14px;
}
.adm-novo-perg {
    margin-bottom: 12px;
}
.adm-novo-perg label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 4px;
}
.adm-modal-sec {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1a5c35;
    background: #d8f3dc;
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 10px;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .adm-charts-grid { grid-template-columns: 1fr; }
    .adm-modal-caixa { max-height: 95vh; }
}