/* Theo Properties RC1.0.15.129.13
   Admin global page kicker + Notifications Centre rendered-form authority.
   Presentation-only except for making the existing delivery/attachment controls explicit. */

/* -------------------------------------------------------------------------
   GLOBAL ADMINISTRATION PAGE KICKER
   Fix the legacy pseudo-label/line collision above Reports & Analytics and
   every other standard Admin page. One authority across all breakpoints.
   ------------------------------------------------------------------------- */
body.theo-admin #content > .section-head::before{
  content:none!important;
  display:none!important;
}
body.theo-admin #content > .section-head{
  overflow:visible!important;
}
body.theo-admin #content > .section-head > div:first-child{
  position:relative!important;
  min-width:0!important;
  padding-top:24px!important;
}
body.theo-admin #content > .section-head > div:first-child::before{
  content:"ADMINISTRATION"!important;
  position:absolute!important;
  top:0!important;
  left:0!important;
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0!important;
  padding:0 0 0 31px!important;
  background:linear-gradient(#c58c31,#c58c31) left 51% / 22px 2px no-repeat!important;
  color:#a66d1c!important;
  font:850 10px/1.15 Inter,Arial,sans-serif!important;
  letter-spacing:.15em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  border:0!important;
  box-shadow:none!important;
}
body.theo-admin #content > .section-head h1{
  margin-top:0!important;
}

/* -------------------------------------------------------------------------
   NOTIFICATIONS CENTRE — rendered form authority
   ------------------------------------------------------------------------- */
body.theo-admin.admin-page-notifications .notification-centre-grid{
  grid-template-columns:minmax(0,1.04fr) minmax(390px,.96fr)!important;
  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{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .panel-body{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:16px!important;
  padding:24px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .admin-form-row,
body.theo-admin.admin-page-notifications .notification-compose-top{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .admin-config-field{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .admin-config-field > span:first-child{
  display:block!important;
  margin:0 0 7px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card input:not([type="file"]),
body.theo-admin.admin-page-notifications .notification-compose-card select,
body.theo-admin.admin-page-notifications .notification-compose-card textarea{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  border:1px solid #cbdbe3!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#15354a!important;
  font:600 14px/1.35 Inter,Arial,sans-serif!important;
  padding:12px 14px!important;
  box-shadow:0 1px 0 rgba(16,52,74,.02)!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card select,
body.theo-admin.admin-page-notifications .notification-compose-card input:not([type="file"]){
  min-height:48px!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card textarea{
  min-height:142px!important;
  resize:vertical!important;
  line-height:1.55!important;
}
body.theo-admin.admin-page-notifications .notification-compose-card .admin-config-field > small{
  display:block!important;
  margin:7px 0 0!important;
  color:#7b909d!important;
  font-size:11px!important;
  line-height:1.45!important;
}

/* Explicit attachment surface: no native-file-input ambiguity. */
body.theo-admin.admin-page-notifications .notification-attachment-field{
  display:block!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  opacity:1!important;
}
body.theo-admin.admin-page-notifications .notification-upload-zone{
  position:relative!important;
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:13px!important;
  min-height:84px!important;
  width:100%!important;
  padding:14px 15px!important;
  border:1.5px dashed #a9c3cf!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#f8fbfc 0%,#fff 62%,#fffbf4 100%)!important;
  cursor:pointer!important;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
body.theo-admin.admin-page-notifications .notification-upload-zone:hover,
body.theo-admin.admin-page-notifications .notification-upload-zone:focus-within{
  border-color:#6e9eb5!important;
  box-shadow:0 0 0 3px rgba(77,137,166,.08)!important;
}
body.theo-admin.admin-page-notifications .notification-upload-zone.has-files{
  border-style:solid!important;
  border-color:#b8d5c9!important;
  background:#f7fbf9!important;
}
body.theo-admin.admin-page-notifications .notification-upload-icon{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  border:1px solid #d0e0e7!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#1d5571!important;
  box-shadow:0 6px 16px rgba(16,52,74,.05)!important;
}
body.theo-admin.admin-page-notifications .notification-upload-icon svg{
  width:22px!important;
  height:22px!important;
}
body.theo-admin.admin-page-notifications .notification-upload-copy{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
body.theo-admin.admin-page-notifications .notification-upload-copy strong{
  color:#163b52!important;
  font-size:13px!important;
  line-height:1.25!important;
}
body.theo-admin.admin-page-notifications .notification-upload-copy small{
  color:#7d909c!important;
  font-size:11px!important;
  line-height:1.35!important;
}
body.theo-admin.admin-page-notifications .notification-upload-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:0 13px!important;
  border:1px solid #c6d7df!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#123d55!important;
  font-size:11px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body.theo-admin.admin-page-notifications .notification-upload-zone input[type="file"]{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  opacity:0!important;
  cursor:pointer!important;
  z-index:2!important;
}
body.theo-admin.admin-page-notifications .notification-upload-limit{
  margin-top:7px!important;
}
body.theo-admin.admin-page-notifications .notification-attachment-field.is-disabled .notification-upload-zone{
  opacity:.60!important;
  cursor:not-allowed!important;
  background:#f5f7f8!important;
}
body.theo-admin.admin-page-notifications .notification-attachment-field.is-disabled .notification-upload-zone input[type="file"]{
  cursor:not-allowed!important;
}
body.theo-admin.admin-page-notifications .notification-attachment-list{
  margin-top:-4px!important;
}
body.theo-admin.admin-page-notifications .notification-delivery-note{
  margin-top:0!important;
}
body.theo-admin.admin-page-notifications .notification-compose-actions{
  margin-top:2px!important;
}

/* Larger screens: avoid a narrow old-form appearance. */
@media (min-width:1181px){
  body.theo-admin.admin-page-notifications .notification-compose-card{
    min-width:0!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-body{
    padding:24px 26px 26px!important;
  }
}

/* Tablet / iPad */
@media (max-width:1180px){
  body.theo-admin.admin-page-notifications .notification-centre-grid{
    grid-template-columns:1fr!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-body{
    padding:20px!important;
  }
}
@media (max-width:820px){
  body.theo-admin #content > .section-head > div:first-child{
    padding-top:22px!important;
  }
  body.theo-admin #content > .section-head > div:first-child::before{
    padding-left:28px!important;
    background-size:19px 2px!important;
    font-size:9px!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-head,
  body.theo-admin.admin-page-notifications .notification-inbox-card .panel-head{
    align-items:flex-start!important;
    flex-wrap:wrap!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .admin-form-row,
  body.theo-admin.admin-page-notifications .notification-compose-top{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Mobile */
@media (max-width:620px){
  body.theo-admin #content > .section-head > div:first-child{
    padding-top:20px!important;
  }
  body.theo-admin #content > .section-head > div:first-child::before{
    padding-left:26px!important;
    background-size:18px 2px!important;
    font-size:8px!important;
    letter-spacing:.14em!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .panel-body{
    gap:14px!important;
    padding:15px!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card .admin-form-row,
  body.theo-admin.admin-page-notifications .notification-compose-top{
    grid-template-columns:1fr!important;
    gap:13px!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-card textarea{
    min-height:122px!important;
  }
  body.theo-admin.admin-page-notifications .notification-upload-zone{
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:10px!important;
    min-height:94px!important;
    padding:13px!important;
  }
  body.theo-admin.admin-page-notifications .notification-upload-icon{
    width:40px!important;
    height:40px!important;
    border-radius:11px!important;
  }
  body.theo-admin.admin-page-notifications .notification-upload-action{
    grid-column:1/-1!important;
    width:100%!important;
    min-height:40px!important;
  }
  body.theo-admin.admin-page-notifications .notification-compose-actions .primary{
    width:100%!important;
  }
}
