/* Danxis Etapa 22 — Lista Restritiva real */
#view-restricted-list .restricted-grid.stage22-real-grid{
  grid-template-columns:minmax(280px,.72fr) minmax(330px,.85fr) minmax(460px,1.43fr);
}
#view-restricted-list .stage22-system-picker{
  display:grid;
  gap:5px;
  min-width:260px;
}
body:not(.dx-danxis-master-admin) #view-restricted-list #stage22SystemPicker,
#view-restricted-list #stage22SystemPicker[hidden]{
  display:none!important;
}
#view-restricted-list .restricted-hero-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex:0 0 auto;
}
#view-restricted-list .restricted-hero-actions #restrictedDownloadTemplate{
  min-height:40px;
  padding-inline:16px;
  white-space:nowrap;
}
#view-restricted-list .stage22-system-picker span{
  color:#425b73;
  font-size:9px;
  font-weight:800;
}
#view-restricted-list .stage22-system-picker select,
#view-restricted-list .stage22-field input,
#view-restricted-list .stage22-field textarea,
#view-restricted-list .stage22-import-mode select{
  width:100%;
  border:1px solid #d7e3ec;
  border-radius:11px;
  background:#fff;
  color:#0c2036;
  font:inherit;
  font-size:10px;
  outline:none;
  transition:border-color .18s,box-shadow .18s;
}
#view-restricted-list .stage22-system-picker select,
#view-restricted-list .stage22-field input,
#view-restricted-list .stage22-import-mode select{height:42px;padding:0 12px}
#view-restricted-list .stage22-field textarea{min-height:128px;padding:11px 12px;resize:vertical;line-height:1.55}
#view-restricted-list .stage22-system-picker select:focus,
#view-restricted-list .stage22-field input:focus,
#view-restricted-list .stage22-field textarea:focus,
#view-restricted-list .stage22-import-mode select:focus{
  border-color:#2589bd;
  box-shadow:0 0 0 3px rgba(37,137,189,.11);
}
#view-restricted-list .stage22-manual-form{display:grid;gap:14px}
#view-restricted-list .stage22-field{display:grid;gap:6px}
#view-restricted-list .stage22-field label,
#view-restricted-list .stage22-import-mode label{
  color:#253f57;
  font-size:10px;
  font-weight:800;
}
#view-restricted-list .stage22-field small{
  color:#718397;
  font-size:8px;
  line-height:1.45;
}
#view-restricted-list .stage22-manual-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#view-restricted-list .stage22-manual-actions .btn{flex:1;min-width:160px}
#view-restricted-list .stage22-import-mode{display:grid;gap:6px;margin-top:13px}
#view-restricted-list .stage22-real-status{
  display:none;
  align-items:center;
  gap:8px;
  margin-bottom:11px;
  padding:9px 11px;
  border-radius:10px;
  background:#f1f7fb;
  color:#365a74;
  font-size:9px;
  font-weight:700;
}
#view-restricted-list .stage22-real-status.show{display:flex}
#view-restricted-list .stage22-real-status.error{background:#fff1f3;color:#9f2d40}
#view-restricted-list .stage22-real-status.success{background:#eaf8f2;color:#187052}
#view-restricted-list .stage22-loading-row td{
  padding:34px 16px!important;
  text-align:center!important;
  color:#647b90!important;
}
#view-restricted-list .stage22-source{
  display:block;
  margin-top:4px;
  color:#75879a;
  font-size:8px;
}
#view-restricted-list .stage22-import-summary{
  display:none;
  margin-top:11px;
  padding:10px 11px;
  border:1px solid #dbe8ef;
  border-radius:11px;
  background:#f8fbfd;
  color:#3b5870;
  font-size:9px;
  line-height:1.5;
}
#view-restricted-list .stage22-import-summary.show{display:block}
#view-restricted-list .restricted-delete[disabled],
#view-restricted-list .btn[disabled]{opacity:.55;cursor:not-allowed}

/* O alerta fictício antigo é substituído pela barra real abaixo. */
#view-profile #dossierRestrictedAlert{display:none!important}
#view-profile .stage22-internal-restrictions{
  display:none;
  margin:-6px 0 18px;
  border:1px solid #efbcc4;
  border-left:4px solid #cf3f54;
  border-radius:13px;
  background:#fff8f9;
  box-shadow:0 7px 20px rgba(163,43,60,.07);
  overflow:hidden;
}
#view-profile .stage22-internal-restrictions.show{display:block;animation:fadeIn .2s ease}
#view-profile .stage22-restriction-bar{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  padding:11px 14px;
}
#view-profile .stage22-restriction-icon{
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;
  background:#cf3f54;color:#fff;font-size:14px;font-weight:900;
}
#view-profile .stage22-restriction-copy{min-width:0}
#view-profile .stage22-restriction-copy strong{
  display:block;color:#8e2637;font-size:11px;line-height:1.2
}
#view-profile .stage22-restriction-copy span{
  display:block;margin-top:3px;color:#342d34;font-size:10px;line-height:1.45;overflow-wrap:anywhere
}
#view-profile .stage22-restriction-meta{
  display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:#7d5660;font-size:8px;white-space:nowrap
}
#view-profile .stage22-restriction-badge{
  display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#fde8ec;color:#a42d40;font-size:8px;font-weight:800
}

@media(max-width:1280px){
  #view-restricted-list .restricted-grid.stage22-real-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #view-restricted-list .restricted-grid.stage22-real-grid .stage22-list-card{grid-column:1/-1}
}
@media(max-width:760px){
  #view-restricted-list .restricted-grid.stage22-real-grid{grid-template-columns:1fr}
  #view-restricted-list .restricted-grid.stage22-real-grid .stage22-list-card{grid-column:auto}
  #view-restricted-list .stage22-system-picker{min-width:100%;width:100%}
  #view-restricted-list .restricted-hero-actions{width:100%;justify-content:space-between;flex-wrap:wrap}
  #view-profile .stage22-restriction-bar{grid-template-columns:30px minmax(0,1fr)}
  #view-profile .stage22-restriction-meta{grid-column:2;align-items:flex-start;white-space:normal}
}
