/* Theo Properties — RC1.0.15.129.1
   Admin Dashboard Lower-Surface Premium Responsive Lock
   Scope: Current Properties + Platform Systems only.
   Presentation-only. No runtime/data/permission changes.
*/

body.theo-admin .lower-dashboard{
  grid-template-columns:minmax(0,1.55fr) minmax(360px,.75fr)!important;
  gap:18px!important;
  align-items:start!important;
  margin-top:2px!important;
}

body.theo-admin .lower-dashboard>.panel{
  border-color:#d8e4e9!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#ffffff 0%,#fcfefe 100%)!important;
  box-shadow:0 14px 40px rgba(18,49,72,.055)!important;
}

body.theo-admin .lower-dashboard>.panel .panel-head{
  min-height:68px!important;
  padding:18px 22px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfe 100%)!important;
}

body.theo-admin .lower-dashboard>.panel .panel-head h3{
  font-size:15px!important;
  font-weight:850!important;
  letter-spacing:-.025em!important;
}

body.theo-admin .lower-dashboard>.panel .panel-body{
  padding:18px 22px 20px!important;
}

/* Current Properties — desktop table authority */
body.theo-admin .lower-dashboard .recent-table{
  table-layout:fixed!important;
  border:1px solid #e4ecef!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:#fff!important;
}
body.theo-admin .lower-dashboard .recent-table thead th{
  height:46px!important;
  padding:0 14px!important;
  border-bottom:1px solid #dfe8ec!important;
  background:linear-gradient(180deg,#f8fafb,#f4f8f9)!important;
  color:#6e8491!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
  vertical-align:middle!important;
}
body.theo-admin .lower-dashboard .recent-table th:nth-child(1){width:36%!important}
body.theo-admin .lower-dashboard .recent-table th:nth-child(2){width:13%!important}
body.theo-admin .lower-dashboard .recent-table th:nth-child(3){width:27%!important}
body.theo-admin .lower-dashboard .recent-table th:nth-child(4){width:13%!important}
body.theo-admin .lower-dashboard .recent-table th:nth-child(5){width:11%!important}

body.theo-admin .lower-dashboard .recent-table tbody td{
  min-width:0!important;
  padding:14px!important;
  border-bottom:1px solid #e9eff2!important;
  color:#425f70!important;
  font-size:10.5px!important;
  line-height:1.45!important;
  vertical-align:middle!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
body.theo-admin .lower-dashboard .recent-table tbody tr:last-child td{border-bottom:0!important}
body.theo-admin .lower-dashboard .recent-table tbody tr{transition:background .16s ease!important}
body.theo-admin .lower-dashboard .recent-table tbody tr:hover{background:#fbfdfe!important}
body.theo-admin .lower-dashboard .recent-table td:nth-child(1) strong{
  display:block!important;
  color:#264b61!important;
  font-size:10.5px!important;
  line-height:1.45!important;
  font-weight:800!important;
}
body.theo-admin .lower-dashboard .recent-table td:nth-child(2){white-space:nowrap!important;color:#496777!important}
body.theo-admin .lower-dashboard .recent-table td:nth-child(3){color:#496777!important}
body.theo-admin .lower-dashboard .recent-table td:nth-child(4){white-space:nowrap!important;color:#264b61!important;font-weight:750!important;font-variant-numeric:tabular-nums!important}
body.theo-admin .lower-dashboard .recent-table td:nth-child(5){white-space:nowrap!important}
body.theo-admin .lower-dashboard .recent-table td:nth-child(5) .badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:68px!important;
  max-width:100%!important;
  min-height:28px!important;
  padding:5px 10px!important;
  border-radius:9px!important;
  white-space:nowrap!important;
  line-height:1!important;
  font-size:8.5px!important;
  font-weight:850!important;
}

body.theo-admin .lower-dashboard .table-btn{
  min-height:38px!important;
  padding:0 14px!important;
  border:1px solid #cfdee4!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#294b60!important;
  font-size:9.5px!important;
  font-weight:800!important;
  box-shadow:0 4px 12px rgba(18,49,72,.03)!important;
}
body.theo-admin .lower-dashboard .table-btn:hover{border-color:#aebfc7!important;background:#f8fbfc!important}

/* Platform Systems — compact system health cards */
body.theo-admin .lower-dashboard .health-list{
  display:grid!important;
  gap:9px!important;
}
body.theo-admin .lower-dashboard .health-row{
  position:relative!important;
  min-height:58px!important;
  padding:12px 14px!important;
  border:1px solid #e0e9ed!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#fff 0%,#fbfdfd 100%)!important;
  box-shadow:0 4px 14px rgba(18,49,72,.025)!important;
}
body.theo-admin .lower-dashboard .health-row::before{
  content:""!important;
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  border:1px solid #dce8e4!important;
  background:linear-gradient(135deg,#f7fcfa,#edf7f3)!important;
  grid-column:1!important;
  grid-row:1!important;
}
body.theo-admin .lower-dashboard .health-row{
  grid-template-columns:34px minmax(0,1fr) auto!important;
  column-gap:11px!important;
}
body.theo-admin .lower-dashboard .health-row strong{
  grid-column:2!important;
  color:#2d4f62!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1.25!important;
}
body.theo-admin .lower-dashboard .health-status{
  grid-column:3!important;
  display:inline-flex!important;
  min-height:28px!important;
  padding:5px 10px!important;
  border:1px solid #d9ebe3!important;
  border-radius:9px!important;
  background:#f2faf6!important;
  color:#33735b!important;
  white-space:nowrap!important;
  font-size:8.5px!important;
  font-weight:850!important;
  line-height:1!important;
}
body.theo-admin .lower-dashboard .health-status::before{
  width:6px!important;
  height:6px!important;
  flex:0 0 6px!important;
  box-shadow:0 0 0 3px rgba(85,166,125,.10)!important;
}
body.theo-admin .lower-dashboard>.panel:nth-child(2)>.panel-head>.badge.success{
  min-height:32px!important;
  padding:6px 11px!important;
  border:1px solid #d7eae2!important;
  border-radius:10px!important;
  background:#eef8f3!important;
  color:#33735b!important;
  font-size:8.5px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}

/* -------------------------------------------------------------------------
   TABLET — turn Current Properties into clean 2-column SaaS data cards.
   This avoids squeezed property types/rents and makes the dashboard readable
   in portrait and landscape tablet widths.
   ------------------------------------------------------------------------- */
@media (min-width:701px) and (max-width:1180px){
  body.theo-admin .lower-dashboard{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body.theo-admin .lower-dashboard>.panel .panel-head{
    min-height:64px!important;
    padding:16px 18px!important;
  }
  body.theo-admin .lower-dashboard>.panel .panel-body{padding:16px 18px 18px!important}

  body.theo-admin .lower-dashboard .recent-table{
    display:block!important;
    width:100%!important;
    border:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  body.theo-admin .lower-dashboard .recent-table thead{display:none!important}
  body.theo-admin .lower-dashboard .recent-table tbody{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:11px!important;
    width:100%!important;
  }
  body.theo-admin .lower-dashboard .recent-table tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    align-content:start!important;
    gap:0 12px!important;
    min-width:0!important;
    padding:14px!important;
    border:1px solid #dfe8ec!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,#fff,#fbfdfe)!important;
    box-shadow:0 6px 18px rgba(18,49,72,.03)!important;
  }
  body.theo-admin .lower-dashboard .recent-table td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    padding:8px 0!important;
    border:0!important;
    border-bottom:1px solid #eef3f5!important;
    white-space:normal!important;
  }
  body.theo-admin .lower-dashboard .recent-table td::before{
    display:block!important;
    margin-bottom:4px!important;
    color:#82939d!important;
    font-size:7px!important;
    font-weight:900!important;
    letter-spacing:.055em!important;
    text-transform:uppercase!important;
  }
  body.theo-admin .lower-dashboard .recent-table td:nth-child(1){grid-column:1/-1!important;padding-top:0!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(1)::before{content:"Property"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(2)::before{content:"Type"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(3){grid-column:1/-1!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(3)::before{content:"Location"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(4)::before{content:"Rent"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(5)::before{content:"Status"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(4),
  body.theo-admin .lower-dashboard .recent-table td:nth-child(5){border-bottom:0!important;padding-bottom:0!important}

  body.theo-admin .lower-dashboard .health-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.theo-admin .lower-dashboard .health-row{min-height:62px!important}
  body.theo-admin .lower-dashboard .health-row:last-child:nth-child(odd){grid-column:1/-1!important}
}

/* -------------------------------------------------------------------------
   MOBILE — single-column premium property cards and compact system health.
   ------------------------------------------------------------------------- */
@media (max-width:700px){
  body.theo-admin .lower-dashboard{gap:11px!important;margin-top:0!important}
  body.theo-admin .lower-dashboard>.panel{border-radius:16px!important}
  body.theo-admin .lower-dashboard>.panel .panel-head{
    min-height:58px!important;
    padding:14px!important;
  }
  body.theo-admin .lower-dashboard>.panel .panel-head h3{font-size:13px!important}
  body.theo-admin .lower-dashboard>.panel .panel-body{padding:12px!important}
  body.theo-admin .lower-dashboard .table-btn{min-height:34px!important;padding:0 11px!important;font-size:8.5px!important}

  body.theo-admin .lower-dashboard .recent-table tbody{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  body.theo-admin .lower-dashboard .recent-table tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:0 10px!important;
    padding:13px!important;
    border:1px solid #dfe8ec!important;
    border-radius:13px!important;
    background:#fff!important;
    box-shadow:0 5px 16px rgba(18,49,72,.025)!important;
  }
  body.theo-admin .lower-dashboard .recent-table td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    padding:7px 0!important;
    border:0!important;
    border-bottom:1px solid #eef3f5!important;
    white-space:normal!important;
  }
  body.theo-admin .lower-dashboard .recent-table td::before{
    display:block!important;
    margin-bottom:3px!important;
    color:#82939d!important;
    font-size:6.7px!important;
    font-weight:900!important;
    letter-spacing:.055em!important;
    text-transform:uppercase!important;
  }
  body.theo-admin .lower-dashboard .recent-table td:nth-child(1){grid-column:1/-1!important;padding-top:0!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(1)::before{content:"Property"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(2)::before{content:"Type"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(3){grid-column:1/-1!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(3)::before{content:"Location"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(4)::before{content:"Rent"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(5)::before{content:"Status"!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(4),
  body.theo-admin .lower-dashboard .recent-table td:nth-child(5){border-bottom:0!important;padding-bottom:0!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(1) strong{font-size:10px!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(5) .badge{min-width:0!important;min-height:26px!important;padding:5px 9px!important}

  body.theo-admin .lower-dashboard .health-list{grid-template-columns:1fr!important;gap:8px!important}
  body.theo-admin .lower-dashboard .health-row{
    grid-template-columns:30px minmax(0,1fr)!important;
    gap:4px 10px!important;
    min-height:58px!important;
    padding:10px 11px!important;
  }
  body.theo-admin .lower-dashboard .health-row::before{width:30px!important;height:30px!important;border-radius:9px!important;grid-row:1/3!important;align-self:center!important}
  body.theo-admin .lower-dashboard .health-row strong{grid-column:2!important;grid-row:1!important;font-size:9.5px!important}
  body.theo-admin .lower-dashboard .health-status{
    grid-column:2!important;
    grid-row:2!important;
    justify-self:start!important;
    min-height:24px!important;
    padding:4px 8px!important;
    font-size:7.5px!important;
  }
}

@media (max-width:380px){
  body.theo-admin .lower-dashboard .recent-table tr{grid-template-columns:1fr!important}
  body.theo-admin .lower-dashboard .recent-table td,
  body.theo-admin .lower-dashboard .recent-table td:nth-child(1),
  body.theo-admin .lower-dashboard .recent-table td:nth-child(3){grid-column:1!important}
  body.theo-admin .lower-dashboard .recent-table td:nth-child(4){border-bottom:1px solid #eef3f5!important;padding-bottom:7px!important}
}
