
/* v628 — painel do dono do sistema mais profissional no celular, com menu inferior fixo. */
@media (max-width: 780px){
  body.owner-shell{background:#eef4fb;}
  body.owner-shell .owner-grid-layout{display:block;min-height:100dvh;}
  body.owner-shell .owner-header{
    position:sticky;top:0;z-index:70;display:flex;align-items:center;gap:10px;
    min-height:68px;padding:10px 14px;background:linear-gradient(135deg,#062348,#0a3762);
    box-shadow:0 6px 20px rgba(5,35,61,.16);
  }
  body.owner-shell .owner-header .auth-logo,
  body.owner-shell .owner-header .brand,
  body.owner-shell .owner-header a[href="#topo"]{flex:1;min-width:0}
  body.owner-shell .owner-header .brand strong,
  body.owner-shell .owner-header .auth-logo strong{font-size:18px;letter-spacing:.2px}
  body.owner-shell #menu-toggle{
    width:40px;height:40px;border-radius:12px;flex:0 0 40px;
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);
    color:transparent;font-size:0;padding:0;position:relative;
  }
  body.owner-shell #menu-toggle::before{content:"☰";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:22px;font-weight:700}
  body.owner-shell .owner-account{margin-left:auto;display:flex;align-items:center;gap:8px}
  body.owner-shell .owner-account strong,
  body.owner-shell .owner-account small,
  body.owner-shell .owner-account #logout{display:none!important}
  body.owner-shell .owner-badge{
    width:40px;height:40px;border-radius:999px;display:grid;place-items:center;
    background:#fff;color:#1758c6;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.12)
  }
  body.owner-shell .owner-side-menu{
    position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;height:auto;z-index:80;
    padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    background:linear-gradient(180deg,#062348,#082d54);border:none;box-shadow:0 -8px 24px rgba(4,24,43,.24);
  }
  body.owner-shell .owner-side-menu nav{
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;align-items:stretch;overflow:visible
  }
  body.owner-shell .owner-side-menu nav button{
    min-width:0;padding:8px 4px 7px;border-radius:14px;background:transparent;color:#e4eefb;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    font-size:10px;line-height:1.15;font-weight:700;border:none
  }
  body.owner-shell .owner-side-menu nav button .pc508-nav-icon{display:block;font-size:18px;line-height:1}
  body.owner-shell .owner-side-menu nav button.active{background:#166df1;color:#fff;box-shadow:0 6px 16px rgba(22,109,241,.24)}
  body.owner-shell .owner-side-menu nav .mobile-logout-btn{display:none!important}
  body.owner-shell.menu-expanded .owner-side-menu{transform:none}
  body.owner-shell .owner-main{padding:14px 12px calc(96px + env(safe-area-inset-bottom));max-width:none;width:100%}
  body.owner-shell .owner-main .feedback{margin-bottom:10px}

  body.owner-shell .owner-page-title{margin:0 0 12px}
  body.owner-shell .owner-page-title h1{font-size:20px;line-height:1.15;letter-spacing:-.4px;margin:0 0 4px}
  body.owner-shell .owner-page-title p{font-size:12.5px;line-height:1.45;color:#55708f;margin:0}

  body.owner-shell .owner-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}
  body.owner-shell .owner-metrics article{
    margin:0;background:#fff;border:1px solid #dce7f4;border-radius:18px;padding:14px 14px 12px;
    box-shadow:0 3px 12px rgba(16,50,87,.06);min-height:96px;display:flex;gap:12px;align-items:flex-start
  }
  body.owner-shell .owner-metric-icon{
    width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:22px;flex:0 0 48px
  }
  body.owner-shell .owner-metrics article div{font-size:13px;color:#5b7090;font-weight:700;line-height:1.3}
  body.owner-shell .owner-metrics article strong{display:block;margin-top:6px;font-size:24px;line-height:1.05;color:#0b2a55}

  body.owner-shell .card,
  body.owner-shell .owner-client-card{
    border-radius:18px;border:1px solid #dce7f4;box-shadow:0 4px 14px rgba(15,45,80,.06);overflow:hidden
  }
  body.owner-shell .owner-card-head{display:block;padding:0 0 4px}
  body.owner-shell .owner-card-head > div:first-child{margin-bottom:10px}
  body.owner-shell .owner-card-head h2{font-size:18px;line-height:1.2;margin:0 0 4px}
  body.owner-shell .owner-card-head p{font-size:12.5px;line-height:1.4;margin:0;color:#5d7695}
  body.owner-shell .pc575-top-actions,
  body.owner-shell .owner-card-head > div:last-child{
    display:grid;grid-template-columns:1fr;gap:8px;width:100%
  }
  body.owner-shell .owner-card-head button,
  body.owner-shell .pc575-top-actions button,
  body.owner-shell #owner-new-client,
  body.owner-shell #owner-go-proprietarios,
  body.owner-shell #owner-go-finance{
    width:100%;min-height:44px;border-radius:14px;font-size:14px;font-weight:700
  }

  body.owner-shell .owner-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
  body.owner-shell .owner-filters > label:first-child{grid-column:1/-1}
  body.owner-shell .owner-filters label{font-size:12px;font-weight:700;color:#19365f;display:flex;flex-direction:column;gap:6px}
  body.owner-shell .owner-filters input,
  body.owner-shell .owner-filters select,
  body.owner-shell .owner-filter-clear{
    height:44px;border-radius:14px;font-size:14px;padding:0 14px
  }
  body.owner-shell .owner-filter-clear{grid-column:1/-1}
  body.owner-shell .pc575-filter-message,
  body.owner-shell .pc575-note{font-size:12px;line-height:1.4}

  body.owner-shell .pc575-groups-wrap{overflow:visible}
  body.owner-shell .pc575-groups-table,
  body.owner-shell .pc575-groups-table tbody,
  body.owner-shell .pc575-groups-table tr,
  body.owner-shell .pc575-groups-table td{display:block;width:100%}
  body.owner-shell .pc575-groups-table thead{display:none}
  body.owner-shell .pc575-group-row{
    background:#fff;border:1px solid #dce7f4;border-radius:18px;margin:0 0 12px;padding:14px;
    box-shadow:0 3px 12px rgba(16,50,87,.05)
  }
  body.owner-shell .pc575-group-row td{padding:7px 0;border-bottom:1px solid #edf2f8}
  body.owner-shell .pc575-group-row td:last-child{border-bottom:none;padding-bottom:0}
  body.owner-shell .pc575-group-row td::before{
    content:attr(data-label);display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;
    color:#6e86a4;font-weight:800;margin-bottom:4px
  }
  body.owner-shell .pc575-group-row td[data-label="CLIENTE / EMPRESA"]::before{display:none}
  body.owner-shell .pc575-client-cell{display:flex;align-items:flex-start;gap:12px}
  body.owner-shell .owner-avatar{
    width:44px;height:44px;border-radius:14px;flex:0 0 44px;background:#eaf1ff;color:#1758c6;
    display:grid;place-items:center;font-weight:800;font-size:20px
  }
  body.owner-shell .pc575-client-cell strong{display:block;font-size:17px;line-height:1.2;margin-bottom:4px;color:#0b2a55}
  body.owner-shell .pc575-client-cell small,
  body.owner-shell .pc575-group-row small{display:block;font-size:12px;line-height:1.35;color:#647d9b;margin-top:2px}
  body.owner-shell .pc575-patio-chips{display:flex;flex-wrap:wrap;gap:6px}
  body.owner-shell .pc575-yard-number,
  body.owner-shell .pc575-more-count{
    padding:6px 10px;border-radius:999px;background:#edf4ff;color:#1758c6;font-weight:800;font-size:12px
  }
  body.owner-shell .pc575-toggle{
    width:100%;min-height:42px;border-radius:13px;font-size:14px;font-weight:800;
    background:#fff;border:1px solid #b9d2f6;color:#185bc9
  }
  body.owner-shell .pc575-details-row{display:block;margin:-4px 0 12px}
  body.owner-shell .pc575-details-row > td{display:block;padding:0;border:none}
  body.owner-shell .pc575-yard-card{
    background:#f8fbff;border:1px solid #dce7f4;border-radius:16px;padding:12px;margin-top:8px
  }
  body.owner-shell .pc575-yard-table{display:block;width:100%;overflow:auto}
  body.owner-shell .pc575-yard-table thead th{white-space:nowrap}
  body.owner-shell .pc575-yard-table td,
  body.owner-shell .pc575-yard-table th{font-size:12px;padding:8px}

  body.owner-shell .pc492-period{display:flex;gap:6px;overflow:auto;padding-bottom:2px}
  body.owner-shell .pc492-period button{flex:0 0 auto;border-radius:12px;height:36px;padding:0 12px;font-size:12px}
  body.owner-shell .pc498-strip,
  body.owner-shell .pc498-bottom{display:grid;grid-template-columns:1fr;gap:10px}
  body.owner-shell .pc498-mini{padding:12px;border-radius:16px}
  body.owner-shell .pc498-alert-title{display:block}
  body.owner-shell .pc498-alert-title h2{margin-bottom:8px}
  body.owner-shell .pc498-alert-title button{width:100%}

  body.owner-shell .owner-plan-list,
  body.owner-shell .owner-settings-grid{display:grid;grid-template-columns:1fr;gap:10px}
}
@media (max-width: 380px){
  body.owner-shell .owner-side-menu nav{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:6px}
  body.owner-shell .owner-main{padding-bottom:calc(138px + env(safe-area-inset-bottom))}
  body.owner-shell .owner-metrics article strong{font-size:21px}
  body.owner-shell .owner-filters{grid-template-columns:1fr}
}
