/* ======================================================================
   UA adapter: Subscriber modal view
   Scope: api/subscriber_modal_view.php only.
   Architecture rule:
   - Colors, borders, radii, field/button/card visuals are owned by ua_program_unified.css.
   - This adapter only isolates the modal from legacy compact classes and arranges layout.
   ====================================================================== */

.ua-subscriber-modal-view.ua-modal-view-v2.ua-read-shell{
  --ua-form-control-h:34px;
  --ua-form-control-fs:13px;
  --ua-form-label-fs:12px;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:8px 10px 10px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2.ua-read-shell,
.ua-subscriber-modal-view.ua-modal-view-v2.ua-read-shell *{
  box-sizing:border-box!important;
  text-shadow:none!important;
}

/* Isolation: the modal markup no longer carries ua-compact-* classes.
   These selectors only protect the new shell from inherited container spacing. */
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-card,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-card{
  margin:0 0 12px!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-hero,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-hero{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-hero-main{min-width:0!important;}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-badges{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  flex:0 0 auto!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-section-title,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-section-title{
  margin:0 0 10px!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-grid,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px 12px!important;
  margin:0!important;
  padding:0!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-field.is-wide,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-field.is-wide{
  grid-column:span 2!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-field.is-full,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-field.is-full{
  grid-column:1/-1!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-actions,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-actions{
  position:static!important;
  bottom:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:10px 0 0!important;
  padding:0!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-grid,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-grid-single,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-grid-single{
  grid-template-columns:minmax(0,560px)!important;
  justify-content:end!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-card,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-card{
  min-width:0!important;
  overflow:hidden!important;
  border:1px solid rgba(148,163,184,.24)!important;
  border-radius:8px!important;
  background:rgba(2,6,23,.24)!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-head,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-head{
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:7px 9px!important;
  border-bottom:1px solid rgba(148,163,184,.18)!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-head strong{color:#facc15!important;font-weight:900!important;}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-head span{color:#fecaca!important;font-size:11px!important;font-weight:800!important;}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-card img,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-card img{
  width:100%!important;
  height:220px!important;
  max-height:220px!important;
  display:block!important;
  object-fit:contain!important;
  background:#020617!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-card a,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-card a{
  display:block!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-empty,
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-file,
body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 :is(.ua-read-id-empty,.ua-read-id-file){
  min-height:120px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:14px!important;
  color:rgba(226,232,240,.86)!important;
  font-weight:800!important;
  text-align:center!important;
  text-decoration:none!important;
}
.ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-file{color:#bfdbfe!important;}

@media (max-width:1100px){
  .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-grid,
  body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:680px){
  .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-grid,
  body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-grid{grid-template-columns:1fr!important;}
  .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-field.is-wide,
  body.ua-authed.ua-design-v2.ua-p-subscribers #uaFixContentBox.uaFixContentView #uaFixContentBody .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-field.is-wide{grid-column:1/-1!important;}
  .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-hero{display:block!important;}
  .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-badges{justify-content:flex-start!important;margin-top:8px!important;}
  .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-id-grid{grid-template-columns:1fr!important;}
  .ua-subscriber-modal-view.ua-modal-view-v2 .ua-read-action{width:100%!important;}
}
