.hsg311-root{--hsg311:#004A99;--hsg311-secondary:#1A75D3;max-width:1300px;margin:auto;color:var(--hsg-text,#153753)}
.hsg311-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:18px}
.hsg311-eyebrow{color:var(--hsg311-secondary);letter-spacing:.09em;font-size:11px;font-weight:800}
.hsg311-head h2{font-size:clamp(22px,2.5vw,31px);margin:6px 0;color:var(--hsg-text,#143858)}.hsg311-head p,.hsg311-footnote{color:var(--hsg-muted,#64778b);line-height:1.6}
.hsg311-primary,.hsg311-secondary,.hsg311-row-actions button{cursor:pointer;border-radius:11px;padding:10px 14px;font:inherit;font-weight:650;border:1px solid #c9d8e6;transition:opacity .12s}
.hsg311-primary{color:white!important;background:linear-gradient(115deg,#004A99,#1A75D3);border:0}.hsg311-secondary,.hsg311-row-actions button{background:var(--hsg-card,#fff);color:var(--hsg-text,#1b4264)}.hsg311-primary:disabled,.hsg311-secondary:disabled{opacity:.5;cursor:not-allowed}
.hsg311-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.hsg311-summary>div{border-radius:15px;padding:16px;border:1px solid var(--hsg-border,#dce5ee);background:var(--hsg-card,#fff);box-shadow:0 3px 13px #0f4c8910}.hsg311-summary strong,.hsg311-summary span{display:block}.hsg311-summary strong{font-size:14px}.hsg311-summary span{font-size:12px;line-height:1.5;margin-top:6px;color:var(--hsg-muted,#6d7e90)}
.hsg311-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:15px}.hsg311-filters label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:190px;font-size:12px;font-weight:700}.hsg311-filters input,.hsg311-filters select{width:100%;border:1px solid var(--hsg-border,#cbd9e8);border-radius:11px;background:var(--hsg-card,#fff);color:inherit;padding:10px 12px;font-size:14px}
.hsg311-actionbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:17px 0 8px;font-size:12px}.hsg311-actionbar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hsg311-message{margin:4px 0 10px;font-size:12px;min-height:17px}.hsg311-message.error{color:#bd3b3b}.hsg311-message.warning{color:#9c6808}.hsg311-message.success{color:#098458}
.hsg311-table-wrap{overflow-x:auto;background:var(--hsg-card,#fff);border:1px solid var(--hsg-border,#dce5ee);border-radius:14px}.hsg311-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;min-width:660px}.hsg311-table th,.hsg311-table td{padding:12px 13px;border-bottom:1px solid var(--hsg-border,#e5edf4);vertical-align:middle}.hsg311-table th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;background:var(--hsg-soft,#edf4fa)}.hsg311-table td strong{font-weight:720}.hsg311-table td small{display:block;margin-top:4px;line-height:1.45;color:var(--hsg-muted,#718193)}.hsg311-row-actions{display:flex;gap:6px}.hsg311-row-actions button{padding:7px 9px;font-size:11px;white-space:nowrap}
.hsg311-status{font-size:11px;font-weight:750;border-radius:999px;padding:5px 8px;display:inline-block;background:#e8f7f3;color:#057056;white-space:nowrap}.hsg311-status.attention{background:#fff1e2;color:#98621d}.hsg311-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:13px 0 8px}.hsg311-footnote{font-size:12px}
@media(max-width:760px){.hsg311-summary{grid-template-columns:1fr}.hsg311-head button{width:100%}.hsg311-actionbar>div{width:100%;justify-content:space-between}}
/* 30.11.1 · Modal seguro para mudança de perfil por gestor municipal */
.hsg311-dialog{color:var(--hsg-text,#143858);background:var(--hsg-card,#fff);border:1px solid var(--hsg-border,#cbd9e8);border-radius:16px;padding:25px;width:min(95vw,540px);max-height:88vh;overflow:auto;box-shadow:0 24px 65px #081e3760}
.hsg311-dialog::backdrop{background:rgba(5,28,50,.58)}
.hsg311-role-form{display:grid;gap:15px}
.hsg311-role-form h3{margin:0;font-size:23px;color:var(--hsg-text,#143858)}
.hsg311-role-form>p{margin:0;font-size:13px;line-height:1.55;color:var(--hsg-muted,#64778b)}
.hsg311-role-form label{font-size:13px;font-weight:700;display:flex;flex-direction:column;gap:8px}
.hsg311-role-form label[hidden]{display:none}
.hsg311-role-form select{width:100%;padding:11px 12px;border:1px solid var(--hsg-border,#cbd9e8);border-radius:10px;background:var(--hsg-card,#fff);color:inherit;font-size:14px}
.hsg311-role-form .hsg311-note{background:var(--hsg-soft,#edf4fa);padding:12px;border-radius:10px}
.hsg311-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

/* 30.11.2 — lotação de docentes e servidores sem recadastro */
.hsg311-dialog input[type=text],.hsg311-dialog input[name=cargo],.hsg311-dialog input[name=setor]{width:100%;padding:11px 12px;border:1px solid var(--hsg-border,#cbd9e8);border-radius:10px;background:var(--hsg-card,#fff);color:inherit;font:inherit}
.hsg311-dialog .hsg311-check{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:12px}
.hsg311-register-panel{grid-column:1/-1;border:1px solid #a9c9e8;border-left:4px solid #1A75D3;padding:16px;border-radius:11px;background:var(--hsg-card,#fff);margin-top:10px}
.hsg311-register-check{display:flex;align-items:flex-start;gap:10px;margin-bottom:9px;color:var(--hsg-text,#123858)}
.hsg311-register-check input{margin-top:5px}.hsg311-register-check small{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-top:4px;color:var(--hsg-muted,#62768c)}
.hsg311-register-panel [data-municipal-fields]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hsg311-register-panel [data-municipal-fields][hidden]{display:none}
.hsg311-register-panel [data-municipal-fields] label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650}
.hsg311-register-panel input,.hsg311-register-panel select{background:var(--hsg-card,#fff);color:inherit;border:1px solid #cbd9e8;border-radius:9px;padding:10px;width:100%}
.hsg311-switch-context{position:fixed;left:20px;bottom:20px;z-index:9000;border:0;border-radius:999px;padding:12px 18px;font-weight:750;font-size:13px;cursor:pointer;color:#fff;background:#004A99;box-shadow:0 6px 24px #00295d5e;max-width:calc(100vw - 40px)}
.hsg311-switch-context:disabled{opacity:.5;cursor:wait}
@media(max-width:700px){.hsg311-register-panel [data-municipal-fields]{grid-template-columns:1fr}.hsg311-switch-context{bottom:72px;left:12px}}
