/*
 * Theo Properties RC1.0.15.128
 * All Authenticated Workspaces — Premium SaaS Consolidation Lock
 * Scope: Property Manager (#management) + Administration (.theo-admin)
 * Tenant and Property Owner remain governed by their previously locked role-specific layers.
 * Presentation only. No workflow/runtime authority is introduced here.
 */

/* --------------------------------------------------------------------------
   GLOBAL ROLE SAFETY
   -------------------------------------------------------------------------- */
#management [hidden],
#management .hidden,
#management [aria-hidden="true"][inert],
.theo-admin [hidden],
.theo-admin .hidden,
.theo-admin [aria-hidden="true"][inert]{display:none!important}

#management,
.theo-admin{
  --tp-navy:#123149;
  --tp-navy-2:#173f5d;
  --tp-gold:#c48a34;
  --tp-gold-soft:#fff8ed;
  --tp-blue:#4f86c6;
  --tp-blue-soft:#f2f7fd;
  --tp-teal:#3d9784;
  --tp-teal-soft:#f0faf7;
  --tp-green:#4c9871;
  --tp-green-soft:#f0f8f4;
  --tp-violet:#7468b5;
  --tp-violet-soft:#f5f3fb;
  --tp-amber:#c47b28;
  --tp-amber-soft:#fff7ee;
  --tp-danger:#b85b58;
  --tp-danger-soft:#fff2f1;
  --tp-ink:#17364d;
  --tp-muted:#748794;
  --tp-line:#dce6ea;
  --tp-line-soft:#eaf0f2;
  --tp-surface:#f7f9fa;
  --tp-card:#fff;
  --tp-shadow:0 16px 40px rgba(19,49,73,.065);
  --tp-shadow-soft:0 8px 24px rgba(19,49,73,.045);
  --tp-radius:18px;
  --tp-radius-sm:13px;
}

/* ========================================================================== 
   PROPERTY MANAGER — ALL WORKSPACES
   ========================================================================== */
#management .manager-workspace{
  width:min(100%,1500px);
  margin:0 auto;
  gap:18px!important;
}

#management .manager-head{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:8px 2px 2px;
}
#management .manager-head>div:first-child{max-width:880px}
#management .manager-head .owner-section-kicker,
#management .manager-head>div:first-child>span{
  display:block;
  margin-bottom:7px;
  color:#a26c27;
  font-size:11px;
  line-height:1;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
#management .manager-head h1{
  margin:0;
  color:var(--tp-navy);
  font-family:"Inter Tight",Inter,sans-serif;
  font-size:clamp(31px,3vw,45px);
  line-height:1.02;
  letter-spacing:-.04em;
}
#management .manager-head p{
  margin:9px 0 0;
  max-width:820px;
  color:#6e8290;
  font-size:14px;
  line-height:1.55;
}

#management .manager-scheduled-badge,
#management .manager-head>.manager-status,
#management .manager-head>[class*="badge"]{
  border:1px solid #cfe5de!important;
  background:linear-gradient(180deg,#fbfffd,#f1faf7)!important;
  color:#2b705f!important;
  box-shadow:0 8px 20px rgba(46,124,105,.05)!important;
  border-radius:13px!important;
}

/* KPI system */
#management .manager-metrics,
#management .manager-metrics-primary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:13px!important;
  margin:0!important;
}
#management .manager-metrics>div,
#management .manager-metrics-primary>div{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:0;
  min-height:118px!important;
  padding:18px 19px!important;
  border:1px solid var(--tp-line)!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,#fff 0%,#fbfdfe 100%)!important;
  box-shadow:var(--tp-shadow-soft)!important;
}
#management .manager-metrics>div::before,
#management .manager-metrics-primary>div::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 auto 0 0;
  width:4px;
  border-radius:17px 0 0 17px;
  background:var(--tp-blue);
}
#management .manager-metrics>div::after,
#management .manager-metrics-primary>div::after{
  content:"";
  position:absolute;
  z-index:-2;
  width:110px;
  height:110px;
  right:-42px;
  bottom:-54px;
  border-radius:50%;
  background:rgba(79,134,198,.055);
}
#management .manager-metrics>div:nth-child(2)::before,
#management .manager-metrics-primary>div:nth-child(2)::before{background:var(--tp-gold)}
#management .manager-metrics>div:nth-child(2)::after,
#management .manager-metrics-primary>div:nth-child(2)::after{background:rgba(196,138,52,.06)}
#management .manager-metrics>div:nth-child(3)::before,
#management .manager-metrics-primary>div:nth-child(3)::before{background:var(--tp-teal)}
#management .manager-metrics>div:nth-child(3)::after,
#management .manager-metrics-primary>div:nth-child(3)::after{background:rgba(61,151,132,.06)}
#management .manager-metrics>div:nth-child(4)::before,
#management .manager-metrics-primary>div:nth-child(4)::before{background:var(--tp-violet)}
#management .manager-metrics>div:nth-child(4)::after,
#management .manager-metrics-primary>div:nth-child(4)::after{background:rgba(116,104,181,.06)}
#management .manager-metrics span,
#management .manager-metrics-primary span{
  display:block;
  color:#7b8d98!important;
  font-size:10px!important;
  font-weight:850!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
}
#management .manager-metrics strong,
#management .manager-metrics-primary strong{
  display:block;
  margin:8px 0 5px;
  color:var(--tp-navy)!important;
  font-family:"Inter Tight",Inter,sans-serif;
  font-size:29px!important;
  line-height:1.05!important;
  letter-spacing:-.035em;
}
#management .manager-metrics small,
#management .manager-metrics-primary small{color:#80919c!important;font-size:10.5px!important;line-height:1.35!important}

/* Premium panel authority */
#management .manager-pane>.panel,
#management .manager-panel,
#management .commercial-panel,
#management .manager-activation-panel,
#management .manager-readiness-panel,
#management .manager-context-panel,
#management .manager-priority-panel,
#management .manager-finance-panel,
#management .manager-standalone-panel,
#management .manager-module-host>.panel,
#management .baf2-manager-finance{
  border:1px solid var(--tp-line)!important;
  border-radius:var(--tp-radius)!important;
  background:linear-gradient(145deg,#fff 0%,#fcfdfd 100%)!important;
  box-shadow:var(--tp-shadow)!important;
  overflow:hidden;
}
#management .section-head,
#management .manager-panel-head{
  align-items:flex-start!important;
  gap:16px!important;
  padding:18px 20px 15px!important;
  border-bottom:1px solid var(--tp-line-soft)!important;
  margin:0!important;
}
#management .section-head h2,
#management .section-head h3,
#management .manager-panel-head h2,
#management .manager-panel-head h3{
  margin:0!important;
  color:var(--tp-navy)!important;
  font-family:"Inter Tight",Inter,sans-serif!important;
  font-size:17px!important;
  line-height:1.18!important;
  letter-spacing:-.02em;
}
#management .section-head p,
#management .manager-panel-head p{
  margin:5px 0 0!important;
  color:#7b8d98!important;
  font-size:11.5px!important;
  line-height:1.5!important;
}

/* Overview composition */
#management .manager-overview-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr)!important;
  gap:14px!important;
  align-items:start!important;
}
#management .manager-priority-list,
#management .manager-readiness-list,
#management .manager-pulse-grid{gap:9px!important}

/* Lists and records */
#management .manager-row,
#management .manager-app-list>*,
#management .manager-viewing-list>*,
#management .manager-maintenance-list>*,
#management .manager-rent-list>*,
#management .manager-notification-list>*,
#management .manager-portfolio-list>*,
#management .manager-priority-list>*{
  border:1px solid #e2eaed!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 5px 18px rgba(19,49,73,.025)!important;
}
#management .manager-row{
  padding:13px 14px!important;
  min-height:64px;
}
#management .manager-row:hover,
#management .manager-app-list>*:hover,
#management .manager-viewing-list>*:hover,
#management .manager-portfolio-list>*:hover{
  border-color:#c9dbe2!important;
  box-shadow:0 9px 24px rgba(19,49,73,.055)!important;
}
#management .manager-row strong{color:#28465a!important}
#management .manager-row small,
#management .manager-row span{color:#7b8d98}

/* Toolbars and filters */
#management .manager-list-toolbar,
#management .manager-rent-toolbar,
#management .manager-toolbar{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  padding:14px!important;
  border:1px solid #e1e9ec!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fafcfd,#f7fafb)!important;
}
#management .manager-filter-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
#management .manager-filter-tabs button{
  min-height:38px!important;
  padding:0 12px!important;
  border:1px solid #d8e4e8!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#647986!important;
  font-size:11px!important;
  font-weight:800!important;
}
#management .manager-filter-tabs button.active{
  border-color:var(--tp-navy)!important;
  background:var(--tp-navy)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(18,49,73,.12)!important;
}
#management .manager-filter-selects{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:flex-end!important;
}
#management .manager-filter-selects label,
#management .manager-property-selector label{
  display:grid!important;
  gap:5px!important;
  color:#7b8c97!important;
  font-size:9px!important;
  font-weight:850!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
#management .manager-inline-select,
#management .manager-filter-selects select,
#management .manager-filter-selects input,
#management .manager-property-selector select{
  min-height:42px!important;
  border:1px solid #d5e1e6!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#29485d!important;
  padding:0 12px!important;
  outline:none!important;
}
#management .manager-inline-select:focus,
#management .manager-filter-selects select:focus,
#management .manager-filter-selects input:focus,
#management .manager-property-selector select:focus{
  border-color:#82a9c1!important;
  box-shadow:0 0 0 3px rgba(79,134,198,.10)!important;
}

/* Buttons */
#management .button,
#management button.button,
#management .primary,
#management .secondary{
  min-height:40px;
  border-radius:10px!important;
  font-weight:800!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
#management .button:not(.secondary),
#management .primary{
  background:var(--tp-navy)!important;
  border-color:var(--tp-navy)!important;
  color:#fff!important;
}
#management .button.secondary,
#management .secondary{
  border:1px solid #d6e1e6!important;
  background:#fff!important;
  color:#29485d!important;
}
#management .button:hover,
#management .primary:hover,
#management .secondary:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(19,49,73,.08)!important}

/* Empty states */
#management .manager-empty-state,
#management .manager-filter-empty,
#management .manager-authority-empty,
#management .manager-inline-host-loading{
  position:relative;
  padding:24px!important;
  border:1px dashed #cfdde3!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#fbfdfe,#f7fafb)!important;
  box-shadow:none!important;
}
#management .manager-empty-state::before,
#management .manager-filter-empty::before{
  content:"";
  display:block;
  width:34px;
  height:34px;
  margin-bottom:12px;
  border:1px solid #d4e2e7;
  border-radius:10px;
  background-color:#f0f6f8;
  background-repeat:no-repeat;
  background-position:center;
  background-size:17px 17px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343677d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V9l8-6 8 6v12'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E");
}
#management .manager-empty-state strong,
#management .manager-filter-empty strong{color:var(--tp-navy)!important;font-size:14px!important}
#management .manager-empty-state span,
#management .manager-filter-empty span{display:block;margin-top:5px;color:#7b8c97!important;font-size:11px!important;line-height:1.5!important}

/* Manager authority / readiness */
#management .manager-authority-steps>div,
#management .manager-activation-steps>div,
#management .manager-readiness-list>div,
#management .manager-authority-summary>div{
  border:1px solid #e2e9ec!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,#fff,#fafcfd)!important;
  box-shadow:0 4px 14px rgba(19,49,73,.025)!important;
}
#management .manager-readiness-list b,
#management .manager-activation-steps b,
#management .manager-authority-steps b{
  border:1px solid #d6e6e1!important;
  background:#eff8f5!important;
  color:#317966!important;
}

/* Generic form refinement inside manager workspace */
#management form,
#management .theo-form-shell,
#management .owner-form-shell{
  color:var(--tp-ink);
}
#management input:not([type="checkbox"]):not([type="radio"]),
#management select,
#management textarea{
  min-height:44px;
  border:1px solid #d4e0e5!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#26475c!important;
  padding:10px 12px!important;
  outline:none!important;
}
#management textarea{min-height:110px!important;resize:vertical}
#management input:focus,
#management select:focus,
#management textarea:focus{
  border-color:#7fa6bf!important;
  box-shadow:0 0 0 3px rgba(79,134,198,.10)!important;
}
#management label{color:#496173}

/* Finance module */
#management .baf2-manager-finance,
#management .manager-finance-panel{
  margin-top:0!important;
}
#management .manager-finance-strip,
#management .baf2-metrics{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
#management .manager-finance-strip>div,
#management .baf2-metrics>div{
  padding:14px!important;
  border:1px solid #e1e9ec!important;
  border-radius:12px!important;
  background:#fff!important;
}

/* Responsive manager — tablet */
@media (min-width:701px) and (max-width:1180px){
  #management .manager-workspace{gap:15px!important}
  #management .manager-head{gap:16px;padding-top:4px}
  #management .manager-head h1{font-size:34px}
  #management .manager-head p{font-size:13px}
  #management .manager-metrics,
  #management .manager-metrics-primary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #management .manager-metrics>div,
  #management .manager-metrics-primary>div{min-height:105px!important;padding:16px!important}
  #management .manager-overview-grid{grid-template-columns:1fr!important}
  #management .manager-list-toolbar,
  #management .manager-rent-toolbar,
  #management .manager-toolbar{align-items:stretch!important}
  #management .manager-filter-selects{width:100%}
  #management .manager-filter-selects>*{flex:1 1 180px}
  #management .manager-authority-steps,
  #management .manager-activation-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #management .manager-finance-strip,
  #management .baf2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Responsive manager — mobile */
@media (max-width:700px){
  #management .manager-workspace{width:100%;gap:12px!important;padding-bottom:88px}
  #management .manager-head{display:block;padding:3px 0 0}
  #management .manager-head>div:first-child{max-width:none}
  #management .manager-head h1{font-size:28px;line-height:1.04}
  #management .manager-head p{font-size:12px;line-height:1.5}
  #management .manager-head>.manager-scheduled-badge,
  #management .manager-head>[class*="badge"]{margin-top:12px;width:100%;align-items:flex-start!important}
  #management .manager-metrics,
  #management .manager-metrics-primary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #management .manager-metrics>div,
  #management .manager-metrics-primary>div{min-height:94px!important;padding:13px 12px!important;border-radius:14px!important}
  #management .manager-metrics strong,
  #management .manager-metrics-primary strong{font-size:23px!important}
  #management .manager-metrics span,
  #management .manager-metrics-primary span{font-size:8px!important}
  #management .manager-overview-grid{grid-template-columns:1fr!important;gap:10px!important}
  #management .manager-pane>.panel,
  #management .manager-panel,
  #management .commercial-panel,
  #management .manager-finance-panel,
  #management .baf2-manager-finance{border-radius:15px!important;box-shadow:0 8px 24px rgba(19,49,73,.045)!important}
  #management .section-head,
  #management .manager-panel-head{padding:15px!important}
  #management .section-head h2,
  #management .section-head h3{font-size:16px!important}
  #management .manager-list-toolbar,
  #management .manager-rent-toolbar,
  #management .manager-toolbar{display:grid!important;gap:10px!important;padding:10px!important}
  #management .manager-filter-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #management .manager-filter-tabs button{width:100%;padding:0 8px!important;font-size:10px!important}
  #management .manager-filter-selects{display:grid!important;grid-template-columns:1fr!important;width:100%}
  #management .manager-filter-selects>*{width:100%!important}
  #management .manager-row{padding:12px!important}
  #management .manager-authority-steps,
  #management .manager-activation-steps,
  #management .manager-authority-summary{grid-template-columns:1fr!important}
  #management .manager-finance-strip,
  #management .baf2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #management .button,
  #management button.button,
  #management .primary,
  #management .secondary{min-height:44px}
}
@media (max-width:380px){
  #management .manager-metrics,
  #management .manager-metrics-primary,
  #management .manager-finance-strip,
  #management .baf2-metrics{grid-template-columns:1fr!important}
}

/* ========================================================================== 
   ADMINISTRATION / SUPER ADMIN — ALL MENUS
   ========================================================================== */
.theo-admin{
  background:#f6f8f9!important;
}
.theo-admin .admin-shell{background:#f6f8f9}
.theo-admin .content{
  width:100%;
  max-width:1660px!important;
  padding:28px 30px 64px!important;
}

/* Header and sidebar polish while preserving existing admin navigation */
.theo-admin .topbar{
  box-shadow:0 1px 0 rgba(19,49,73,.03);
}
.theo-admin .marketplace-link,
.theo-admin .live-platform,
.theo-admin .admin-search,
.theo-admin .top-icon-btn{
  border-radius:10px!important;
}
.theo-admin .admin-search:focus-within{
  border-color:#92b1c4!important;
  box-shadow:0 0 0 3px rgba(79,134,198,.08)!important;
}

/* Page heading */
.theo-admin .content>.section-head,
.theo-admin .content .section-head:first-child{
  position:relative;
  margin-bottom:18px!important;
}
.theo-admin .section-head h1{
  color:var(--tp-navy)!important;
  font-family:"Inter Tight",Inter,sans-serif!important;
  font-size:clamp(27px,2.4vw,38px)!important;
  line-height:1.04!important;
  letter-spacing:-.04em!important;
}
.theo-admin .section-head p{
  max-width:850px!important;
  color:#718592!important;
  font-size:12px!important;
  line-height:1.55!important;
}
.theo-admin .eyebrow,
.theo-admin .owner-section-kicker{
  color:#a26c27!important;
  font-size:9px!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
}

/* Admin KPI system */
.theo-admin .kpis{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:16px!important;
}
.theo-admin .kpi{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:0;
  min-height:116px!important;
  padding:17px 17px 16px!important;
  border:1px solid var(--tp-line)!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fff,#fbfdfe)!important;
  box-shadow:var(--tp-shadow-soft)!important;
}
.theo-admin .kpi::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;width:4px;
  background:var(--tp-blue);
}
.theo-admin .kpi::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:105px;height:105px;
  right:-40px;bottom:-52px;
  border-radius:50%;
  background:rgba(79,134,198,.055);
}
.theo-admin .kpi:nth-child(2)::before{background:var(--tp-gold)}
.theo-admin .kpi:nth-child(2)::after{background:rgba(196,138,52,.06)}
.theo-admin .kpi:nth-child(3)::before{background:var(--tp-teal)}
.theo-admin .kpi:nth-child(3)::after{background:rgba(61,151,132,.06)}
.theo-admin .kpi:nth-child(4)::before{background:var(--tp-violet)}
.theo-admin .kpi:nth-child(4)::after{background:rgba(116,104,181,.06)}
.theo-admin .kpi:nth-child(5)::before{background:var(--tp-green)}
.theo-admin .kpi:nth-child(5)::after{background:rgba(76,152,113,.06)}
.theo-admin .kpi .label{
  color:#788b97!important;
  font-size:9px!important;
  font-weight:850!important;
  letter-spacing:.07em!important;
}
.theo-admin .kpi strong{
  color:var(--tp-navy)!important;
  font-family:"Inter Tight",Inter,sans-serif!important;
  font-size:27px!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
}
.theo-admin .kpi small{color:#80919c!important;font-size:10px!important;line-height:1.35!important}
.theo-admin .kpi.click-card:hover{transform:translateY(-2px)!important;border-color:#c8d9e0!important;box-shadow:0 14px 30px rgba(19,49,73,.08)!important}

/* Admin panels */
.theo-admin .panel,
.theo-admin .section,
.theo-admin .admin-ops-panel,
.theo-admin .admin-config-card,
.theo-admin .case-section,
.theo-admin .issue-list,
.theo-admin .baf2-admin-revenue,
.theo-admin .acq-panel{
  border:1px solid var(--tp-line)!important;
  border-radius:var(--tp-radius)!important;
  background:linear-gradient(145deg,#fff,#fcfdfd)!important;
  box-shadow:var(--tp-shadow)!important;
  overflow:hidden;
}
.theo-admin .panel-head,
.theo-admin .admin-panel-head,
.theo-admin .acq-panel-head,
.theo-admin .rent-payments-head,
.theo-admin .issue-centre-head{
  padding:17px 19px!important;
  border-bottom:1px solid var(--tp-line-soft)!important;
  background:linear-gradient(180deg,#fff,#fdfefe)!important;
}
.theo-admin .panel-head h3,
.theo-admin .admin-panel-head h3,
.theo-admin .acq-panel-head h3{
  color:var(--tp-navy)!important;
  font-size:14px!important;
  letter-spacing:-.015em;
}
.theo-admin .panel-body{padding:17px 19px!important}

/* Summary strips become individual SaaS cells */
.theo-admin .admin-summary-strip,
.theo-admin .manager-summary,
.theo-admin .financial-summary,
.theo-admin .issue-centre-summary,
.theo-admin .rent-payment-summary,
.theo-admin .rent-payment-summary-v1131{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  border:0!important;
  background:transparent!important;
}
.theo-admin .admin-summary-cell,
.theo-admin .manager-summary-item,
.theo-admin .financial-summary>*,
.theo-admin .issue-centre-summary>*,
.theo-admin .rent-payment-summary>*,
.theo-admin .rent-payment-summary-v1131>*{
  min-width:0;
  padding:13px 14px!important;
  border:1px solid #e0e9ec!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 5px 15px rgba(19,49,73,.025)!important;
}

/* Toolbars and filters */
.theo-admin .admin-toolbar,
.theo-admin .manager-toolbar,
.theo-admin .manager-list-toolbar,
.theo-admin .manager-rent-toolbar,
.theo-admin .owner-list-toolbar,
.theo-admin .owner-ops-toolbar,
.theo-admin .tenant-ledger-toolbar,
.theo-admin .tenant-list-filter,
.theo-admin .issue-list-filter{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  padding:12px!important;
  border:1px solid #e0e9ec!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#fafcfd,#f6f9fa)!important;
}
.theo-admin .manager-filter-tabs,
.theo-admin .owner-filter-tabs,
.theo-admin .tenant-filter-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
.theo-admin .manager-filter-tabs button,
.theo-admin .owner-filter-tabs button,
.theo-admin .tenant-filter-tabs button{
  min-height:37px!important;
  padding:0 11px!important;
  border:1px solid #d7e2e7!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#657986!important;
  font-size:10px!important;
  font-weight:800!important;
}
.theo-admin .manager-filter-tabs button.active,
.theo-admin .owner-filter-tabs button.active,
.theo-admin .tenant-filter-tabs button.active{
  border-color:var(--tp-navy)!important;
  background:var(--tp-navy)!important;
  color:#fff!important;
}

/* Forms / inputs */
.theo-admin .field input,
.theo-admin .field select,
.theo-admin .field textarea,
.theo-admin .admin-filter-field input,
.theo-admin .admin-filter-field select,
.theo-admin .admin-filter-search,
.theo-admin .admin-inline-select,
.theo-admin .control,
.theo-admin .theo-form-shell input:not([type="checkbox"]):not([type="radio"]),
.theo-admin .theo-form-shell select,
.theo-admin .theo-form-shell textarea,
.theo-admin .owner-form-shell input:not([type="checkbox"]):not([type="radio"]),
.theo-admin .owner-form-shell select,
.theo-admin .owner-form-shell textarea,
.theo-admin .acq-form input,
.theo-admin .acq-form select,
.theo-admin .acq-form textarea{
  min-height:42px!important;
  border:1px solid #d5e1e6!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#29485d!important;
  outline:none!important;
}
.theo-admin textarea{resize:vertical}
.theo-admin .field input:focus,
.theo-admin .field select:focus,
.theo-admin .field textarea:focus,
.theo-admin input:focus,
.theo-admin select:focus,
.theo-admin textarea:focus{
  border-color:#83a9c1!important;
  box-shadow:0 0 0 3px rgba(79,134,198,.09)!important;
}
.theo-admin .field label,
.theo-admin .admin-config-field label,
.theo-admin .acq-form label>span{
  color:#536b7a!important;
  font-weight:800!important;
}

/* Buttons */
.theo-admin .primary,
.theo-admin .secondary,
.theo-admin .table-btn,
.theo-admin button,
.theo-admin .button{
  border-radius:10px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.theo-admin .primary{
  background:var(--tp-navy)!important;
  color:#fff!important;
  box-shadow:0 7px 16px rgba(18,49,73,.10);
}
.theo-admin .secondary,
.theo-admin .table-btn{
  border-color:#d6e1e6!important;
  background:#fff!important;
  color:#29485d!important;
}
.theo-admin .primary:hover,
.theo-admin .secondary:hover,
.theo-admin .table-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(19,49,73,.07)}

/* Data tables */
.theo-admin .table-wrap,
.theo-admin .manager-table-wrap{
  border:1px solid #e1e9ec!important;
  border-radius:13px!important;
  overflow:auto!important;
  background:#fff!important;
}
.theo-admin table,
.theo-admin .admin-table,
.theo-admin .manager-table{
  background:#fff!important;
}
.theo-admin th{
  padding:11px 12px!important;
  background:#f7fafb!important;
  color:#718592!important;
  font-size:8.5px!important;
  font-weight:850!important;
  letter-spacing:.06em!important;
}
.theo-admin td{
  padding:12px!important;
  border-bottom-color:#edf2f4!important;
  color:#314f62;
}
.theo-admin tbody tr:hover td{background:#fbfcfd}

/* Row/card lists */
.theo-admin .data-list,
.theo-admin .admin-notification-list,
.theo-admin .manager-app-list,
.theo-admin .manager-maintenance-list,
.theo-admin .manager-notification-list,
.theo-admin .manager-rent-list,
.theo-admin .manager-tenancy-list,
.theo-admin .manager-viewing-list,
.theo-admin .owner-maintenance-list,
.theo-admin .owner-notification-list,
.theo-admin .owner-rent-list,
.theo-admin .tenant-renewal-list,
.theo-admin .rent-schedule-list{display:grid!important;gap:8px!important}
.theo-admin .data-row,
.theo-admin .admin-notification-row,
.theo-admin .manager-row,
.theo-admin .owner-notification-row,
.theo-admin .rent-payment-row,
.theo-admin .tenant-payment-row-v1131,
.theo-admin .snapshot-row,
.theo-admin .alert-row,
.theo-admin .health-row,
.theo-admin .audit-row{
  border:1px solid #e2eaed!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(19,49,73,.02)!important;
}
.theo-admin .data-row:hover,
.theo-admin .admin-notification-row:hover{border-color:#cadbe2!important;box-shadow:0 8px 20px rgba(19,49,73,.045)!important}

/* Status system */
.theo-admin .badge,
.theo-admin .status,
.theo-admin .admin-role-tag,
.theo-admin [class*="status-chip"]{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px!important;
  border-radius:9px!important;
  font-size:8.5px!important;
  font-weight:850!important;
  letter-spacing:.01em;
}

/* Empty/loading states */
.theo-admin .admin-empty,
.theo-admin .manager-empty,
.theo-admin .manager-empty-state,
.theo-admin .owner-empty-state,
.theo-admin .owner-filter-empty,
.theo-admin .tenant-ledger-empty,
.theo-admin .tenant-empty-support,
.theo-admin .notice,
.theo-admin .admin-route-loading,
.theo-admin .acq-empty{
  border:1px dashed #cedde3!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#fbfdfe,#f7fafb)!important;
  color:#718592!important;
}
.theo-admin .notice,
.theo-admin .admin-route-loading{padding:14px 16px!important}

/* Settings / governance cards */
.theo-admin .admin-config-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.theo-admin .admin-config-card,
.theo-admin .admin-setting-group{
  padding:16px!important;
  border:1px solid #e1e9ec!important;
  border-radius:14px!important;
  background:#fff!important;
}
.theo-admin .admin-role-row{
  border-bottom:1px solid #edf2f4!important;
  padding:11px 0!important;
}

/* External modules — commercial, acquisition, markets, referral/affiliate */
.theo-admin .baf2-metrics,
.theo-admin .acq-kpis,
.theo-admin .market-summary-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.theo-admin .baf2-metrics>div,
.theo-admin .acq-kpis>div,
.theo-admin .market-summary-card{
  min-width:0;
  padding:14px!important;
  border:1px solid #e0e9ec!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(19,49,73,.025)!important;
}
.theo-admin .markets-grid,
.theo-admin .acq-grid{
  gap:12px!important;
}
.theo-admin .market-card{
  border:1px solid #e0e9ec!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 7px 20px rgba(19,49,73,.035)!important;
}

/* Modal system */
.theo-admin .modal,
.theo-admin .manager-review-modal,
.theo-admin .ops-modal-card{
  border:1px solid #dbe5e9!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 30px 90px rgba(10,31,46,.24)!important;
}
.theo-admin .modal-actions,
.theo-admin .manager-review-dialog-actions,
.theo-admin .case-resolution-actions,
.theo-admin .case-manager-actions,
.theo-admin .case-tenant-actions,
.theo-admin .admin-inline-actions,
.theo-admin .rent-payment-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}

/* Admin responsive — tablet */
@media (min-width:701px) and (max-width:1180px){
  .theo-admin .content{padding:22px 20px 70px!important}
  .theo-admin .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .theo-admin .kpi:last-child:nth-child(odd){grid-column:span 2}
  .theo-admin .executive-grid,
  .theo-admin .grid-2{grid-template-columns:1fr!important}
  .theo-admin .admin-summary-strip,
  .theo-admin .manager-summary,
  .theo-admin .financial-summary,
  .theo-admin .issue-centre-summary,
  .theo-admin .rent-payment-summary,
  .theo-admin .rent-payment-summary-v1131,
  .theo-admin .baf2-metrics,
  .theo-admin .acq-kpis,
  .theo-admin .market-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .theo-admin .admin-config-grid{grid-template-columns:1fr!important}
  .theo-admin .top-actions{gap:7px}
  .theo-admin .admin-search{width:160px}
}

/* Admin responsive — mobile */
@media (max-width:700px){
  .theo-admin .topbar{height:68px!important;padding:0 12px!important}
  .theo-admin .top-logo{width:126px;height:auto}
  .theo-admin .top-divider,
  .theo-admin .top-context{display:none}
  .theo-admin .admin-search,
  .theo-admin .live-platform,
  .theo-admin .marketplace-link{display:none!important}
  .theo-admin .top-user{width:35px;height:35px}
  .theo-admin .content{padding:17px 12px 84px!important}
  .theo-admin .section-head h1{font-size:27px!important}
  .theo-admin .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .theo-admin .kpi,
  .theo-admin .kpi:last-child:nth-child(odd){grid-column:auto!important;min-height:94px!important;padding:13px!important;border-radius:14px!important}
  .theo-admin .kpi strong{font-size:22px!important}
  .theo-admin .kpi .label{font-size:7.5px!important}
  .theo-admin .executive-grid,
  .theo-admin .grid-2{grid-template-columns:1fr!important;gap:10px!important}
  .theo-admin .panel,
  .theo-admin .section,
  .theo-admin .admin-ops-panel,
  .theo-admin .admin-config-card,
  .theo-admin .case-section,
  .theo-admin .baf2-admin-revenue,
  .theo-admin .acq-panel{border-radius:15px!important;box-shadow:0 8px 22px rgba(19,49,73,.04)!important}
  .theo-admin .panel-head,
  .theo-admin .admin-panel-head,
  .theo-admin .acq-panel-head,
  .theo-admin .rent-payments-head,
  .theo-admin .issue-centre-head{padding:14px!important}
  .theo-admin .panel-body{padding:14px!important}
  .theo-admin .admin-summary-strip,
  .theo-admin .manager-summary,
  .theo-admin .financial-summary,
  .theo-admin .issue-centre-summary,
  .theo-admin .rent-payment-summary,
  .theo-admin .rent-payment-summary-v1131,
  .theo-admin .baf2-metrics,
  .theo-admin .acq-kpis,
  .theo-admin .market-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .theo-admin .admin-toolbar,
  .theo-admin .manager-toolbar,
  .theo-admin .manager-list-toolbar,
  .theo-admin .manager-rent-toolbar,
  .theo-admin .owner-list-toolbar,
  .theo-admin .owner-ops-toolbar,
  .theo-admin .tenant-ledger-toolbar,
  .theo-admin .tenant-list-filter,
  .theo-admin .issue-list-filter{display:grid!important;align-items:stretch!important;padding:10px!important}
  .theo-admin .manager-filter-tabs,
  .theo-admin .owner-filter-tabs,
  .theo-admin .tenant-filter-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .theo-admin .manager-filter-tabs button,
  .theo-admin .owner-filter-tabs button,
  .theo-admin .tenant-filter-tabs button{width:100%}
  .theo-admin .admin-config-grid{grid-template-columns:1fr!important}
  .theo-admin .form-grid,
  .theo-admin .theo-form-grid,
  .theo-admin .admin-form-row{grid-template-columns:1fr!important}
  .theo-admin .table-wrap,
  .theo-admin .manager-table-wrap{border:0!important;background:transparent!important;overflow:visible!important}
  .theo-admin .admin-table,
  .theo-admin .manager-table{min-width:720px}
  .theo-admin .modal,
  .theo-admin .manager-review-modal,
  .theo-admin .ops-modal-card{width:calc(100vw - 18px)!important;max-width:none!important;max-height:88vh!important;border-radius:18px 18px 0 0!important;margin:auto 9px 0!important}
}
@media (max-width:380px){
  .theo-admin .kpis,
  .theo-admin .admin-summary-strip,
  .theo-admin .manager-summary,
  .theo-admin .financial-summary,
  .theo-admin .issue-centre-summary,
  .theo-admin .rent-payment-summary,
  .theo-admin .rent-payment-summary-v1131,
  .theo-admin .baf2-metrics,
  .theo-admin .acq-kpis,
  .theo-admin .market-summary-grid{grid-template-columns:1fr!important}
}
