/* Theo Properties RC1.0.15.129.21 — Notifications card composition + recipient directory UI lock. */
body.theo-admin.admin-page-notifications{
  --ntf21-line:#d9e5ea;
  --ntf21-navy:#15384d;
  --ntf21-muted:#788d99;
  --ntf21-soft:#f8fbfc;
  --ntf21-gold:#c99235;
}

/* KPI cards — restore breathing room and predictable hierarchy. */
body.theo-admin.admin-page-notifications .admin-summary-strip{
  gap:16px!important;
  margin-bottom:22px!important;
}
body.theo-admin.admin-page-notifications .admin-summary-cell{
  min-height:126px!important;
  padding:22px 24px 20px!important;
  border-radius:18px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:0!important;
}
body.theo-admin.admin-page-notifications .admin-summary-cell>span{
  font-size:10px!important;
  line-height:1.2!important;
  letter-spacing:.105em!important;
}
body.theo-admin.admin-page-notifications .admin-summary-cell>strong{
  margin:10px 0 7px!important;
  font-size:30px!important;
  line-height:1!important;
}
body.theo-admin.admin-page-notifications .admin-summary-cell>small{
  font-size:11.5px!important;
  line-height:1.45!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Main notification cards. */
body.theo-admin.admin-page-notifications .notification-centre-grid{
  gap:22px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card,
body.theo-admin.admin-page-notifications .notification-inbox-card{
  border-radius:20px!important;
  border-color:var(--ntf21-line)!important;
  box-shadow:0 16px 38px rgba(19,50,70,.055)!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .panel-head,
body.theo-admin.admin-page-notifications .notification-inbox-card .panel-head{
  min-height:88px!important;
  padding:22px 26px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .panel-head>div,
body.theo-admin.admin-page-notifications .notification-inbox-card .panel-head>div{
  min-width:0!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .panel-body,
body.theo-admin.admin-page-notifications .notification-inbox-card .panel-body{
  padding:26px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .panel-body{
  gap:20px!important;
}

/* Recipient card — less cramped, clean separation between mode/search/results. */
body.theo-admin.admin-page-notifications .notification-recipient-section{
  gap:18px!important;
  padding:20px!important;
  border-radius:17px!important;
  border-color:#d7e4e9!important;
  background:linear-gradient(135deg,#f8fbfc 0%,#fff 72%,#fffaf3 100%)!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-section-head{
  gap:16px!important;
  padding-bottom:2px!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-section-head strong{
  font-size:15px!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-section-head span:not(.notification-recipient-summary){
  margin-top:4px!important;
  font-size:11.5px!important;
  line-height:1.5!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-summary{
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:10px!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-controls,
body.theo-admin.admin-page-notifications .notification-compose-top{
  gap:16px!important;
}
body.theo-admin.admin-page-notifications .notification-specific-recipient-field{
  gap:14px!important;
  margin-top:2px!important;
  padding:16px!important;
  border:1px solid #dbe6eb!important;
  border-radius:15px!important;
  background:#fff!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-list{
  gap:9px!important;
  max-height:330px!important;
  padding:8px!important;
  border:1px solid #dbe5ea!important;
  border-radius:14px!important;
  background:#fbfcfd!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-option{
  grid-template-columns:20px 40px minmax(0,1fr) 26px!important;
  gap:11px!important;
  min-height:62px!important;
  padding:11px 12px!important;
  border:1px solid #e0e9ed!important;
  border-radius:12px!important;
  background:#fff!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-option:hover{
  border-color:#c7d9e1!important;
  box-shadow:0 5px 14px rgba(18,55,76,.04)!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-option:has(input:checked){
  border-color:#b8d8ca!important;
  background:#f5fbf8!important;
  box-shadow:0 0 0 2px rgba(47,154,120,.07)!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-avatar{
  width:40px!important;
  height:40px!important;
  border-radius:11px!important;
  font-size:11px!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-copy{
  gap:4px!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-copy strong{
  font-size:12.5px!important;
  line-height:1.25!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-copy small{
  font-size:10.5px!important;
  line-height:1.35!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-loading,
body.theo-admin.admin-page-notifications .notification-recipient-empty,
body.theo-admin.admin-page-notifications .notification-recipient-error{
  display:grid!important;
  gap:6px!important;
  place-items:center!important;
  min-height:128px!important;
  padding:22px 18px!important;
  border:1px dashed #cedde4!important;
  border-radius:12px!important;
  background:#fff!important;
  text-align:center!important;
  color:#758995!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-loading strong,
body.theo-admin.admin-page-notifications .notification-recipient-empty strong,
body.theo-admin.admin-page-notifications .notification-recipient-error strong{
  color:#25495e!important;
  font-size:12px!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-loading span,
body.theo-admin.admin-page-notifications .notification-recipient-empty span,
body.theo-admin.admin-page-notifications .notification-recipient-error span{
  max-width:420px!important;
  font-size:10.5px!important;
  line-height:1.45!important;
}
body.theo-admin.admin-page-notifications .notification-recipient-error{
  border-color:#ead4ca!important;
  background:#fffaf8!important;
}
body.theo-admin.admin-page-notifications [data-notification-recipient-retry]{
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid #cbdbe3!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#173d54!important;
  font:800 10.5px/1 Inter,Arial,sans-serif!important;
  cursor:pointer!important;
}

/* Form rhythm. */
body.theo-admin.admin-page-notifications .notification-compose-card .admin-config-field>span:first-child{
  margin-bottom:8px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card input:not([type=file]),
body.theo-admin.admin-page-notifications .notification-compose-card select{
  min-height:50px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card textarea{
  min-height:150px!important;
}
body.theo-admin.admin-page-notifications .notification-delivery-note{
  padding:13px 15px!important;
  border-radius:11px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-actions{
  padding-top:19px!important;
}

@media (max-width:1180px){
  body.theo-admin.admin-page-notifications .notification-centre-grid{gap:18px!important}
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-head,
  body.theo-admin.admin-page-notifications .notification-inbox-card .panel-head{padding:20px 22px!important}
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-body,
  body.theo-admin.admin-page-notifications .notification-inbox-card .panel-body{padding:22px!important}
  body.theo-admin.admin-page-notifications .notification-recipient-section{padding:18px!important}
  body.theo-admin.admin-page-notifications .notification-recipient-list{max-height:300px!important}
}

@media (max-width:820px){
  body.theo-admin.admin-page-notifications .admin-summary-strip{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.theo-admin.admin-page-notifications .admin-summary-cell{
    min-height:112px!important;
    padding:18px 19px!important;
  }
  body.theo-admin.admin-page-notifications .admin-summary-cell:nth-child(3){grid-column:1/-1!important}
  body.theo-admin.admin-page-notifications .notification-recipient-section-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
  }
  body.theo-admin.admin-page-notifications .notification-specific-recipient-field{padding:14px!important}
}

@media (max-width:700px){
  body.theo-admin.admin-page-notifications .admin-summary-strip{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-bottom:16px!important;
  }
  body.theo-admin.admin-page-notifications .admin-summary-cell,
  body.theo-admin.admin-page-notifications .admin-summary-cell:nth-child(3){
    grid-column:auto!important;
    min-height:102px!important;
    padding:16px 18px!important;
    border-radius:15px!important;
  }
  body.theo-admin.admin-page-notifications .admin-summary-cell>strong{
    margin:7px 0 5px!important;
    font-size:25px!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card,
  body.theo-admin.admin-page-notifications .notification-inbox-card{border-radius:17px!important}
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-head,
  body.theo-admin.admin-page-notifications .notification-inbox-card .panel-head{
    min-height:auto!important;
    padding:17px!important;
    gap:12px!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-body,
  body.theo-admin.admin-page-notifications .notification-inbox-card .panel-body{
    padding:17px!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-body{gap:17px!important}
  body.theo-admin.admin-page-notifications .notification-recipient-section{
    gap:15px!important;
    padding:16px!important;
    border-radius:15px!important;
  }
  body.theo-admin.admin-page-notifications .notification-recipient-section-head{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  body.theo-admin.admin-page-notifications .notification-recipient-summary{justify-self:start!important}
  body.theo-admin.admin-page-notifications .notification-specific-recipient-field{
    gap:12px!important;
    padding:12px!important;
    border-radius:13px!important;
  }
  body.theo-admin.admin-page-notifications .notification-recipient-list{
    max-height:280px!important;
    gap:8px!important;
    padding:6px!important;
  }
  body.theo-admin.admin-page-notifications .notification-recipient-option{
    grid-template-columns:20px 38px minmax(0,1fr)!important;
    min-height:60px!important;
    padding:10px!important;
  }
  body.theo-admin.admin-page-notifications .notification-recipient-check{display:none!important}
  body.theo-admin.admin-page-notifications .notification-compose-card textarea{min-height:132px!important}
}

@media (max-width:390px){
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-head,
  body.theo-admin.admin-page-notifications .notification-inbox-card .panel-head,
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-body,
  body.theo-admin.admin-page-notifications .notification-inbox-card .panel-body{padding-left:15px!important;padding-right:15px!important}
  body.theo-admin.admin-page-notifications .notification-recipient-section{padding:14px!important}
  body.theo-admin.admin-page-notifications .notification-recipient-option{grid-template-columns:19px 36px minmax(0,1fr)!important;gap:9px!important}
}
