.profiles-page{overflow:auto;padding:28px;background:#f4f2ec;color:#24231f}.profiles-page h1{margin:0;font-size:28px}.profiles-page p{color:#706c62;line-height:1.5}.profiles-page .profile-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.profiles-page button{cursor:pointer;border:1px solid #d8d1c1;border-radius:9px;padding:10px 14px;background:#fff;color:#29261e;font-weight:650}.profiles-page button.gold{background:#191916;color:#eedbb0;border-color:#191916}.profiles-page button.danger{color:#a43b38}.profiles-page button:disabled{opacity:.55;cursor:default}.profiles-page .profile-search{width:min(420px,100%);padding:12px;border-radius:9px;border:1px solid #d8d1c1;margin-bottom:18px;background:white}.profiles-page .profile-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}.profiles-page .profile-card,.profiles-page .legacy-box{background:#fff;border:1px solid #e1dccf;border-radius:14px;padding:20px}.profiles-page .profile-card h2{margin:0 0 5px;font-size:18px}.profiles-page .profile-card small{color:#787266}.profiles-page .profile-badges{display:flex;flex-wrap:wrap;gap:5px;margin:16px 0}.profiles-page .profile-badges span{background:#f1ece0;border-radius:6px;font-size:11px;padding:6px}.profiles-page .profile-card.inactive{opacity:.65}.profiles-page .legacy-box{margin-top:25px}.profiles-page .legacy-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eee9df;padding:12px 0}.profiles-page .profile-message{padding:12px;background:#efe5cd;border-radius:8px;margin:16px 0}.profile-dialog{border:0;border-radius:18px;padding:0;width:min(820px,calc(100vw - 24px));max-height:90dvh;color:#24231f;background:#f8f6f0}.profile-dialog::backdrop{background:#0009}.profile-dialog .dialog-head{position:sticky;top:0;background:#f8f6f0;border-bottom:1px solid #ded8cb;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;z-index:1}.profile-dialog h2{margin:0;font-size:21px}.profile-dialog .dialog-body{padding:22px}.profile-dialog .profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-dialog .profile-field{display:grid;gap:6px}.profile-dialog .profile-field label{font-size:12px;font-weight:650;color:#71695a}.profile-dialog input:not([type=checkbox]),.profile-dialog select{width:100%;padding:11px;border:1px solid #d8d1c1;border-radius:8px;background:white;color:#29261e}.profile-dialog fieldset{border:1px solid #ded8cb;border-radius:10px;margin:19px 0 0;padding:16px}.profile-dialog legend{font-weight:700;padding:0 7px}.profile-dialog .permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-dialog .permission-grid label,.profile-dialog .check-line{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.4}.profile-dialog input[type=checkbox]{accent-color:#a48b51;width:17px;height:17px;flex:none}.profile-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.profile-dialog .password-line{display:flex;gap:6px}.profile-dialog .password-line button{flex:none}.profile-dialog .error-line{color:#a43b38;margin-top:12px;min-height:18px;font-size:13px}.profile-dialog .form-note{font-size:12px;color:#797264;line-height:1.5;margin:12px 0}.profiles-page .empty-state{padding:30px;color:#787266}.profile-dialog .module-off{opacity:.55}
@media(max-width:600px){.profiles-page{padding:18px 12px}.profiles-page .profile-toolbar{align-items:flex-start}.profiles-page h1{font-size:25px}.profile-dialog .profile-fields,.profile-dialog .permission-grid{grid-template-columns:1fr}.profile-dialog .dialog-body{padding:15px}.profile-dialog .dialog-head{padding:15px}.profiles-page .legacy-row{align-items:flex-start;flex-direction:column}}

.profile-dialog .gestao-permission-group{border-top:1px solid #e7e0d2;padding-top:14px;margin-top:16px}.profile-dialog .gestao-permission-group:first-child{border:0;margin-top:0;padding-top:0}.profile-dialog .gestao-permission-group h3{font-size:13px;margin:0 0 12px;color:#796336}
