/* Theo Properties RC1.0.15.117 — iPad / Tablet Tenant SaaS Card Visual Polish
   Visual-only overlay for the authenticated Tenant dashboard at 701px–1180px.
   No HTML structure, JavaScript, routing, Supabase, data, workflow or breakpoint authority changes. */

@media (min-width:701px) and (max-width:1180px){
  /* ---------- KPI summary cards ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi{
    --card-accent:#5f83ad;
    --card-accent-rgb:95,131,173;
    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;
    border:1px solid rgba(var(--card-accent-rgb),.24)!important;
    background:
      linear-gradient(145deg,rgba(var(--card-accent-rgb),.095) 0%,rgba(255,255,255,.97) 54%,#fff 100%)!important;
    box-shadow:
      0 16px 38px rgba(19,45,67,.065),
      0 2px 7px rgba(19,45,67,.025)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(1){
    --card-accent:#4f80b8;
    --card-accent-rgb:79,128,184;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(2){
    --card-accent:#b9812f;
    --card-accent-rgb:185,129,47;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(3){
    --card-accent:#3c8d7b;
    --card-accent-rgb:60,141,123;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(4){
    --card-accent:#756daf;
    --card-accent-rgb:117,109,175;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi::before{
    content:""!important;
    position:absolute!important;
    z-index:0!important;
    inset:0 auto 0 0!important;
    width:4px!important;
    background:linear-gradient(180deg,var(--card-accent),rgba(var(--card-accent-rgb),.42))!important;
    border-radius:13px 0 0 13px!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi::after{
    content:""!important;
    position:absolute!important;
    z-index:0!important;
    width:86px!important;
    height:86px!important;
    top:-38px!important;
    right:-24px!important;
    border-radius:50%!important;
    background:radial-gradient(circle,rgba(var(--card-accent-rgb),.17) 0%,rgba(var(--card-accent-rgb),.06) 48%,transparent 72%)!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>span,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>strong,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>small{
    position:relative!important;
    z-index:1!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>span{
    color:var(--card-accent)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi strong{
    color:#14334a!important;
    text-shadow:0 1px 0 rgba(255,255,255,.72)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi small{
    color:#738795!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi.attention{
    --card-accent:#b5762a!important;
    --card-accent-rgb:181,118,42!important;
  }

  /* ---------- Principal dashboard panels ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel{
    --panel-accent:#547ca4;
    --panel-accent-rgb:84,124,164;
    position:relative!important;
    isolation:isolate!important;
    border:1px solid rgba(var(--panel-accent-rgb),.19)!important;
    background:linear-gradient(180deg,rgba(var(--panel-accent-rgb),.055) 0%,#fff 33%,#fff 100%)!important;
    box-shadow:
      0 17px 42px rgba(19,45,67,.06),
      0 2px 8px rgba(19,45,67,.025)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-exec-grid>.ws30-panel:nth-child(1){
    --panel-accent:#4d7eae;
    --panel-accent-rgb:77,126,174;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-exec-grid>.ws30-panel:nth-child(2){
    --panel-accent:#b48135;
    --panel-accent-rgb:180,129,53;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-exec-grid>.ws30-panel:nth-child(3){
    --panel-accent:#438a7b;
    --panel-accent-rgb:67,138,123;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel::before{
    content:""!important;
    position:absolute!important;
    z-index:2!important;
    top:0!important;
    left:18px!important;
    right:18px!important;
    height:3px!important;
    border-radius:0 0 999px 999px!important;
    background:linear-gradient(90deg,var(--panel-accent),rgba(var(--panel-accent-rgb),.18))!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head{
    position:relative!important;
    z-index:1!important;
    border-bottom:1px solid rgba(var(--panel-accent-rgb),.14)!important;
    background:linear-gradient(180deg,rgba(var(--panel-accent-rgb),.065),rgba(255,255,255,.18))!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head h3{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head h3::before{
    content:""!important;
    flex:0 0 auto!important;
    width:7px!important;
    height:7px!important;
    border-radius:50%!important;
    background:var(--panel-accent)!important;
    box-shadow:0 0 0 4px rgba(var(--panel-accent-rgb),.10)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head span{
    color:#7a8d99!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-body{
    position:relative!important;
    z-index:1!important;
  }

  /* ---------- SaaS-style action cards ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a{
    --action-accent:#597e9d;
    --action-accent-rgb:89,126,157;
    position:relative!important;
    overflow:hidden!important;
    border:1px solid rgba(var(--action-accent-rgb),.22)!important;
    background:linear-gradient(135deg,rgba(var(--action-accent-rgb),.095),rgba(255,255,255,.98) 62%)!important;
    color:#17364d!important;
    box-shadow:0 7px 18px rgba(19,45,67,.04)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(1){
    --action-accent:#274e70;
    --action-accent-rgb:39,78,112;
    border-color:#274e70!important;
    background:linear-gradient(135deg,#17364d 0%,#244d6a 72%,#315f7f 100%)!important;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(23,54,77,.16)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(2){
    --action-accent:#b17e34;
    --action-accent-rgb:177,126,52;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a:nth-child(3),
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a:last-child{
    --action-accent:#448679;
    --action-accent-rgb:68,134,121;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button::after,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a::after{
    content:""!important;
    position:absolute!important;
    top:9px!important;
    right:10px!important;
    width:7px!important;
    height:7px!important;
    border-radius:50%!important;
    background:var(--action-accent)!important;
    box-shadow:0 0 0 4px rgba(var(--action-accent-rgb),.10)!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(1)::after{
    background:#d4a65d!important;
    box-shadow:0 0 0 4px rgba(212,166,93,.14)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button small,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a small{
    color:#7d8f9b!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(1) small{
    color:rgba(255,255,255,.74)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-active-actions>button:first-child{
    border-color:rgba(79,128,184,.24)!important;
    background:linear-gradient(135deg,rgba(79,128,184,.095),rgba(255,255,255,.98) 62%)!important;
    color:#17364d!important;
    box-shadow:0 7px 18px rgba(19,45,67,.04)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-active-actions>button:first-child::after{
    background:#4f80b8!important;
    box-shadow:0 0 0 4px rgba(79,128,184,.10)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-active-actions>button:first-child small{
    color:#7d8f9b!important;
  }

  /* ---------- Rental journey ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage b{
    border-color:#dbe4e8!important;
    background:linear-gradient(180deg,#fff,#f8fafb)!important;
    box-shadow:0 4px 10px rgba(19,45,67,.035)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage.done b{
    border-color:#dec18e!important;
    background:linear-gradient(180deg,#fffaf1,#fff5e5)!important;
    color:#9b6925!important;
    box-shadow:0 5px 12px rgba(180,129,53,.085)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage.current b{
    box-shadow:0 0 0 4px rgba(180,129,53,.10),0 5px 12px rgba(180,129,53,.08)!important;
  }

  /* ---------- Today's context / current tenancy cells ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context{
    border-color:#e1e9ec!important;
    box-shadow:0 7px 18px rgba(19,45,67,.025)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div{
    position:relative!important;
    background:linear-gradient(145deg,rgba(79,128,184,.055),#fff 62%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div:nth-child(2),
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(2){
    background:linear-gradient(145deg,rgba(60,141,123,.055),#fff 62%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(3){
    background:linear-gradient(145deg,rgba(185,129,47,.055),#fff 62%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(4){
    background:linear-gradient(145deg,rgba(117,109,175,.052),#fff 62%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div::before,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div::before{
    content:""!important;
    position:absolute!important;
    top:13px!important;
    right:13px!important;
    width:6px!important;
    height:6px!important;
    border-radius:50%!important;
    background:#5b84aa!important;
    opacity:.72!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div:nth-child(2)::before,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(2)::before{background:#438a7b!important}
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(3)::before{background:#b48135!important}
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(4)::before{background:#756daf!important}

  /* Keep the status badge consistent with the more dimensional card system. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-status{
    box-shadow:0 7px 18px rgba(19,45,67,.045)!important;
    backdrop-filter:saturate(115%) blur(4px)!important;
    -webkit-backdrop-filter:saturate(115%) blur(4px)!important;
  }
}

/* Respect users who prefer reduced motion; this release adds no required animation. */
@media (prefers-reduced-motion:reduce){
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a{transition:none!important}
}
