/*
 * Theo Properties — RC1.0.15.129.7
 * Admin Global Table Empty-State Cross-Device Geometry Lock
 *
 * Presentation-only authority layer. Fixes Admin table empty states that were
 * being squeezed by responsive table/card rules, causing narrow left-aligned
 * boxes, icon/text collisions, and excessive dead space.
 */

/* --------------------------------------------------------------------------
   ALL DEVICES — one full-width, self-contained empty-state authority
   -------------------------------------------------------------------------- */
body.theo-admin #content .table-wrap:has(table.admin-table tbody > tr:only-child .admin-empty){
  padding:14px!important;
  background:#fff!important;
}

body.theo-admin #content table.admin-table:has(tbody > tr:only-child .admin-empty) thead{
  display:none!important;
}

body.theo-admin #content table.admin-table tbody > tr:has(.admin-empty) > td{
  padding:0!important;
  background:transparent!important;
}

body.theo-admin #content table.admin-table .admin-empty{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:118px!important;
  margin:0!important;
  padding:22px 24px!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:36px minmax(0,max-content)!important;
  grid-template-rows:auto auto!important;
  column-gap:14px!important;
  row-gap:3px!important;
  align-content:center!important;
  align-items:center!important;
  justify-content:center!important;
  justify-items:start!important;
  place-items:unset!important;
  border:1px dashed #cadbe2!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#fbfdfe 0%,#f8fbfc 56%,#f5f9fa 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;
  text-align:left!important;
  color:#708693!important;
}

body.theo-admin #content table.admin-table .admin-empty::before{
  content:""!important;
  position:static!important;
  inset:auto!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  margin:0!important;
  border:1px solid #d3e1e7!important;
  border-radius:10px!important;
  background-color:#f1f7f9!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315b73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V8l8-5 8 5v13M8 21v-7h8v7M3 21h18'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:17px 17px!important;
  box-shadow:none!important;
}

body.theo-admin #content table.admin-table .admin-empty strong{
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  margin:0!important;
  max-width:720px!important;
  color:#29495d!important;
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:800!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

body.theo-admin #content table.admin-table .admin-empty span{
  grid-column:2!important;
  grid-row:2!important;
  display:block!important;
  margin:0!important;
  max-width:720px!important;
  color:#82949f!important;
  font-size:9.5px!important;
  line-height:1.45!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

body.theo-admin #content table.admin-table .admin-empty:not(:has(span))::before{
  grid-row:1!important;
}
body.theo-admin #content table.admin-table .admin-empty:not(:has(span)) strong{
  align-self:center!important;
}

/* --------------------------------------------------------------------------
   TABLET / iPAD — preserve full-panel geometry and readable hierarchy
   -------------------------------------------------------------------------- */
@media (min-width:701px) and (max-width:1180px){
  body.theo-admin #content .table-wrap:has(table.admin-table tbody > tr:only-child .admin-empty){
    padding:12px!important;
  }
  body.theo-admin #content table.admin-table .admin-empty{
    min-height:108px!important;
    padding:20px!important;
    grid-template-columns:36px minmax(0,1fr)!important;
    column-gap:13px!important;
    justify-content:stretch!important;
  }
  body.theo-admin #content table.admin-table .admin-empty strong{
    max-width:none!important;
    font-size:11.5px!important;
  }
  body.theo-admin #content table.admin-table .admin-empty span{
    max-width:none!important;
    font-size:9px!important;
  }
}

/* --------------------------------------------------------------------------
   MOBILE — neutralise generic data-card TD grid for empty rows completely
   -------------------------------------------------------------------------- */
@media (max-width:700px){
  body.theo-admin #content .table-wrap:has(table.admin-table tbody > tr:only-child .admin-empty){
    padding:10px!important;
    overflow:visible!important;
  }

  body.theo-admin #content table.admin-table tbody > tr:has(.admin-empty){
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.theo-admin #content table.admin-table tbody > tr:has(.admin-empty) > td{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }

  body.theo-admin #content table.admin-table tbody > tr:has(.admin-empty) > td::before{
    content:none!important;
    display:none!important;
  }

  body.theo-admin #content table.admin-table .admin-empty{
    width:100%!important;
    min-height:92px!important;
    padding:16px!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:12px!important;
    row-gap:2px!important;
    justify-content:stretch!important;
    border-radius:13px!important;
  }

  body.theo-admin #content table.admin-table .admin-empty::before{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    border-radius:9px!important;
    background-size:16px 16px!important;
  }

  body.theo-admin #content table.admin-table .admin-empty strong{
    width:auto!important;
    max-width:none!important;
    font-size:11.5px!important;
    line-height:1.35!important;
  }

  body.theo-admin #content table.admin-table .admin-empty span{
    width:auto!important;
    max-width:none!important;
    font-size:9px!important;
    line-height:1.4!important;
  }
}

@media (max-width:380px){
  body.theo-admin #content table.admin-table .admin-empty{
    min-height:88px!important;
    padding:14px!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    column-gap:10px!important;
  }
  body.theo-admin #content table.admin-table .admin-empty::before{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    background-size:15px 15px!important;
  }
}
