/* subscribers_history adapter v2
   Layout-only: no colors, no visual borders, no radii, no shadows.
   The visual contract lives in ua_program_unified.css under
   .ua-history-contract-page. */
.content-wrapper.ua-history-contract-page{
  min-height:100%;
  padding:0;
  direction:rtl;
}
.content-wrapper.ua-history-contract-page .ua-history-content{
  padding:0;
}
.content-wrapper.ua-history-contract-page .ua-history-shell{
  display:grid;
  gap:12px;
  width:100%;
  margin:0;
  padding:12px;
}
.content-wrapper.ua-history-contract-page .ua-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  text-align:right;
}
.content-wrapper.ua-history-contract-page .ua-history-titlebox{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  text-align:right;
}
.content-wrapper.ua-history-contract-page .ua-history-titleline-main{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
  min-width:0;
}
.content-wrapper.ua-history-contract-page .ua-history-note{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  flex-direction:row;
  gap:7px;
  max-width:100%;
}
.content-wrapper.ua-history-contract-page .ua-history-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  flex:0 0 auto;
}
.content-wrapper.ua-history-contract-page .ua-history-card-head{
  padding:12px 14px 10px;
}
.content-wrapper.ua-history-contract-page .ua-history-card-body{
  padding:12px 14px;
}
.content-wrapper.ua-history-contract-page .ua-history-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px 18px;
}
.content-wrapper.ua-history-contract-page .ua-history-two-col{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
.content-wrapper.ua-history-contract-page .ua-history-table-wrap{
  direction:ltr;
}
.content-wrapper.ua-history-contract-page .ua-history-table{
  direction:rtl;
}
.content-wrapper.ua-history-contract-page .ua-history-table-wrap-tall{
  max-height:360px;
}
@media (max-width:1100px){
  .content-wrapper.ua-history-contract-page .ua-history-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:820px){
  .content-wrapper.ua-history-contract-page .ua-history-head{
    flex-direction:column;
    align-items:stretch;
  }
  .content-wrapper.ua-history-contract-page .ua-history-actions{justify-content:flex-start;}
  .content-wrapper.ua-history-contract-page .ua-history-two-col{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .content-wrapper.ua-history-contract-page .ua-history-shell{padding:8px;}
  .content-wrapper.ua-history-contract-page .ua-history-metric-grid{grid-template-columns:1fr;}
}

/* subscribers_history adapter v3: keep table vertical scrollbar on the right. */
.content-wrapper.ua-history-contract-page .ua-history-table-wrap{
  direction:ltr!important;
  overflow:auto;
}
.content-wrapper.ua-history-contract-page .ua-history-table{
  direction:rtl!important;
}
.content-wrapper.ua-history-contract-page .ua-history-events-table{
  table-layout:fixed;
}
.content-wrapper.ua-history-contract-page .ua-history-events-table .ua-history-event-date{
  width:24%;
}
.content-wrapper.ua-history-contract-page .ua-history-events-table .ua-history-event-action{
  width:16%;
}
.content-wrapper.ua-history-contract-page .ua-history-events-table .ua-history-event-details{
  width:60%;
}
.content-wrapper.ua-history-contract-page .ua-history-events-table :is(th,td){
  text-align:center!important;
  vertical-align:middle!important;
}
.content-wrapper.ua-history-contract-page .ua-history-events-table td:nth-child(1),
.content-wrapper.ua-history-contract-page .ua-history-events-table td:nth-child(2){
  white-space:nowrap;
}
.content-wrapper.ua-history-contract-page .ua-history-events-table td:nth-child(3){
  white-space:normal;
}
