#msj-empresas-section{margin:20px 0;padding:22px;background:#fff;border:1px solid #e4eaf2;border-radius:14px;color:#182944}#msj-empresas-section[hidden],#msj-emp-detail[hidden]{display:none!important}.msj-empresas-heading,.msj-emp-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.msj-empresas-heading h2{margin:0 0 6px;font-size:20px}.msj-empresas-heading p{margin:0 0 15px;color:#728098}.msj-empresas-tools{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.msj-empresas-tools label{display:grid;gap:5px;font-size:12px;color:#52627c;flex:1 1 160px}.msj-empresas-tools input,.msj-empresas-tools select{border:1px solid #dce4ef;border-radius:9px;padding:10px;background:#fff;color:#172b49;min-width:0}.msj-empresas-heading button,.msj-emp-open,.msj-emp-detail-head button{border:1px solid #dce4ef;background:#f5f8fc;color:#17428a;border-radius:8px;padding:8px 12px;cursor:pointer}#msj-empresas-message{margin:12px 0;font-size:13px;color:#536782}.msj-empresas-table{overflow-x:auto}.msj-empresas-table table{width:100%;border-collapse:collapse;min-width:740px}.msj-empresas-table th,.msj-empresas-table td{text-align:left;padding:12px 10px;border-bottom:1px solid #e4eaf2;font-size:13px}.msj-empresas-table th{background:#f5f7fb;color:#52627c}.msj-emp-ok{color:#16804c;font-weight:700}.msj-emp-off{color:#aa5b26;font-weight:700}.msj-emp-detail{border:1px solid #dce4ef;background:#f8faff;border-radius:12px;padding:18px;margin-top:18px}.msj-emp-detail h3{margin:0}.msj-emp-detail dl{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:10px;margin:18px 0}.msj-emp-detail dt{color:#64748b}.msj-emp-detail dd{margin:0;font-weight:600;overflow-wrap:anywhere}.msj-emp-detail p{font-size:12px;color:#64748b}@media(max-width:600px){#msj-empresas-section{padding:14px}.msj-empresas-heading{align-items:flex-start}.msj-empresas-tools{gap:8px}}
.msj-gestao-form{display:grid;gap:12px;border-top:1px solid #dce4ef;padding-top:16px}.msj-gestao-form h4{margin:0}.msj-gestao-form label{display:grid;gap:5px;font-size:13px;color:#52627c}.msj-gestao-form input:not([type=checkbox]),.msj-gestao-form textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #dce4ef;border-radius:8px;background:#fff;color:#182944}.msj-gestao-form .msj-g-check{display:flex;align-items:center;gap:8px}.msj-gestao-form button{width:max-content;border:0;border-radius:8px;background:#2563eb;color:white;padding:10px 16px;cursor:pointer}#msj-g-msg{font-size:13px;color:#2563eb}
/* V3.1: ficha compacta e checkbox acessivel */
#msj-empresas-section .msj-gestao-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
#msj-empresas-section .msj-gestao-form h4,#msj-empresas-section .msj-gestao-form label:has(textarea),#msj-empresas-section .msj-gestao-form .msj-g-check,#msj-empresas-section .msj-gestao-form p,#msj-empresas-section #msj-g-msg{grid-column:1/-1}
#msj-empresas-section .msj-gestao-form .msj-g-check{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:fit-content!important;max-width:100%;font-weight:600;cursor:pointer}
#msj-empresas-section .msj-gestao-form .msj-g-check input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;position:static!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;padding:0!important;vertical-align:middle!important}
#msj-empresas-section .msj-emp-detail dl{grid-template-columns:minmax(110px,180px) minmax(0,1fr);gap:6px 14px;margin:12px 0}
#msj-empresas-section .msj-emp-detail{padding:16px}
@media(max-width:650px){#msj-empresas-section .msj-gestao-form{grid-template-columns:1fr}#msj-empresas-section .msj-emp-detail dl{grid-template-columns:minmax(90px,120px) minmax(0,1fr)}#msj-empresas-section .msj-gestao-form .msj-g-check{width:100%!important}}

#msj-empresas-section .msj-audit{grid-column:1/-1;border-top:1px solid #dce4ef;padding-top:12px;margin-top:4px}#msj-empresas-section .msj-audit h4{margin:0 0 8px}#msj-empresas-section .msj-audit ul{padding-left:18px;margin:8px 0;max-height:220px;overflow:auto}#msj-empresas-section .msj-audit li{font-size:12px;padding:5px 0;color:#475569}#msj-empresas-section .msj-audit p{margin:0}
