/* Melhorias Claude 10
   - botões de confirmar em vidro líquido (nada mais em dourado/amarelo)
   - login mais moderno, sem amarelo
   - janelas "Novo lançamento" e "Gasto do mercado" em vidro, fechando sem preencher
   - Visão geral: linha de baixo (ritmo do mês e margem operacional) redesenhada
   Carregado por último. */

:root{--v3-mint:#4ddba3;--v3-mint-hi:#9ef5d1;--v3-ink:#f4faf7}

/* The drag preview lives directly under body, outside clipping scroll panels. */
html body .routine-drag-preview{border-radius:16px!important;border:1px solid rgba(127,240,193,.42)!important;background:linear-gradient(160deg,rgba(62,104,84,.98),rgba(24,52,39,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 18px 32px -12px rgba(0,0,0,.7)!important;transform-origin:center!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;will-change:transform;pointer-events:none!important;user-select:none!important}
html body .routine-drag-preview *{pointer-events:none!important;animation:none!important;transition:none!important}
html body .routine-drag-preview .task-grip{color:#4ddba3!important;opacity:1!important}
html body #ownerPortal #rotina .is-sorting .task-row{animation:none!important}

/* Reserve the entire six-month chart independently of the supplier list. */
html body #ownerPortal #fornecedores #supplierTrend{flex:none!important;height:clamp(145px,22dvh,220px);min-height:145px;margin:0!important;padding:12px 18px!important;overflow:visible!important;gap:8px}
html body #ownerPortal #fornecedores #supplierTrend .v3s-bars{min-height:0;flex:1;gap:12px}
html body #ownerPortal #fornecedores #supplierTrend .eyebrow{margin:0;flex:none}
@media(min-width:981px) and (min-height:600px){html body #ownerPortal #fornecedores.active-view{overflow:hidden!important}html body #ownerPortal #fornecedores .supplier-grid{flex:1;min-height:140px}html body #ownerPortal #fornecedores .supplier-ranking{overflow:hidden!important}html body #ownerPortal #fornecedores .supplier-ranking .panel-heading{flex:none}}
@media(max-width:980px){html body #ownerPortal #fornecedores #supplierTrend{height:190px;min-height:190px;margin-bottom:14px!important}}
@media(min-width:981px) and (min-height:600px){html body #ownerPortal #fornecedores .supplier-grid>article:not(.supplier-ranking){overflow:hidden!important}html body #ownerPortal #fornecedores .supplier-grid>article:not(.supplier-ranking) .donut-wrap{display:grid!important;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:12px;margin:0;min-height:0}html body #ownerPortal #fornecedores .supplier-donut{width:100px;height:100px}html body #ownerPortal #fornecedores .supplier-donut strong{font-size:24px}html body #ownerPortal #fornecedores .donut-legend{margin:0;gap:8px}}

/* ---------- botões de confirmar: vidro líquido com brilho verde ---------- */
html body .primary-button,
html body .presentation-primary{
  position:relative;overflow:hidden;isolation:isolate;
  color:var(--v3-ink)!important;border:1px solid rgba(255,255,255,.34)!important;border-radius:999px!important;
  background:linear-gradient(160deg,rgba(255,255,255,.24),rgba(255,255,255,.07) 46%,rgba(77,219,163,.22))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(0,0,0,.25),0 12px 30px -12px rgba(77,219,163,.55),0 2px 10px rgba(0,0,0,.25)!important;
  -webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%);
  font-weight:800!important;letter-spacing:.01em;text-shadow:0 1px 1px rgba(0,0,0,.25);
  transition:transform .35s cubic-bezier(.34,1.56,.64,1),box-shadow .3s ease,background .3s ease!important;
}
html body .primary-button::after,
html body .presentation-primary::after{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.28) 48%,transparent 66%);transform:translateX(-120%);transition:transform .8s cubic-bezier(.2,.8,.2,1);
}
html body .primary-button:hover:not(:disabled),
html body .presentation-primary:hover{
  transform:translateY(-1px);
  background:linear-gradient(160deg,rgba(255,255,255,.3),rgba(255,255,255,.1) 46%,rgba(77,219,163,.32))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 16px 34px -12px rgba(77,219,163,.7),0 0 0 1px rgba(158,245,209,.25)!important;
}
html body .primary-button:hover:not(:disabled)::after,html body .presentation-primary:hover::after{transform:translateX(120%)}
html body .primary-button:disabled{opacity:.55;cursor:progress}
html body .primary-button:focus-visible{outline:2px solid var(--v3-mint-hi);outline-offset:3px}
/* o "+" do celular continua aparecendo no botão Novo lançamento */
html body .topbar-actions .primary-button::after{background:none;transform:none;transition:none}

/* ---------- login ---------- */
html body .v2-login .eyebrow,html body #authScreen .eyebrow{color:var(--v3-mint)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html body #forgotPasswordButton,html body .v2-login .auth-link,html body #authScreen .auth-link{color:#cfeee0!important;-webkit-text-fill-color:currentColor!important}
html body #forgotPasswordButton:hover,html body .v2-login .auth-link:hover{color:#fff!important}
html body #loginForm input{transition:border-color .25s,box-shadow .25s,background .25s}
html body #loginForm input:focus{outline:none!important;border-color:rgba(158,245,209,.7)!important;box-shadow:0 0 0 4px rgba(77,219,163,.16),inset 0 1px 0 rgba(255,255,255,.08)!important;background:rgba(255,255,255,.07)!important}
html body #loginForm .primary-button{min-height:52px!important;font-size:16px!important;display:flex;align-items:center;justify-content:center;gap:10px}
html body #loginForm .primary-button::before{content:"";width:18px;height:18px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  order:2;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
html body #loginForm .primary-button:hover::before{transform:translateX(3px)}
/* cartão do login: borda com brilho que gira devagar */
@property --v3-ang{syntax:"<angle>";inherits:false;initial-value:0deg}
html body .v2-login .v2-card{isolation:isolate}
html body .v2-login .v2-card::after{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;z-index:2;
  background:conic-gradient(from var(--v3-ang),rgba(158,245,209,0) 0deg,rgba(158,245,209,.7) 50deg,rgba(255,255,255,.35) 80deg,rgba(255,255,255,0) 130deg,rgba(255,255,255,0) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  animation:v3spin 6s linear infinite;
}
@media(prefers-reduced-motion:reduce){html body .v2-login .v2-card::after{animation:none}}
@keyframes v3spin{to{--v3-ang:360deg}}

/* ---------- avatar, alertas e selos sem dourado ---------- */
html body #ownerAvatar,html body #syndicAvatar{background:linear-gradient(160deg,rgba(158,245,209,.55),rgba(77,219,163,.22))!important;color:#06231a!important;border:1px solid rgba(255,255,255,.4)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)!important}
html body #alertsButton>span{background:linear-gradient(160deg,#ff9b8a,#e2645a)!important;color:#fff!important;box-shadow:0 0 0 2px rgba(7,20,15,.85)!important}
html body .v2u-rank{background:rgba(255,255,255,.1)!important;color:var(--v3-ink)!important;border:1px solid rgba(255,255,255,.22)!important}

/* ---------- janelas de lançamento em vidro (mesmo estilo das janelas da Rotina) ---------- */
html body dialog.v3-dialog{border-radius:32px!important;padding:30px!important;border:1px solid rgba(255,255,255,.24)!important;color:#f2f8f4!important;max-width:min(560px,calc(100vw - 24px))!important;width:100%;
  background:linear-gradient(155deg,rgba(255,255,255,.17),rgba(255,255,255,.05) 38%,rgba(255,255,255,.02) 60%,rgba(77,219,163,.10)),rgba(10,26,19,.55)!important;
  -webkit-backdrop-filter:blur(30px) saturate(175%)!important;backdrop-filter:blur(30px) saturate(175%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(0,0,0,.3),0 40px 90px -20px rgba(0,0,0,.75)!important;overflow:visible}
html body dialog.v3-dialog::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 60% at 15% -10%,rgba(255,255,255,.2),transparent 55%),radial-gradient(80% 50% at 110% 110%,rgba(77,219,163,.18),transparent 60%)}
html body dialog.v3-dialog>form{position:relative;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html body dialog.v3-dialog::backdrop{background:rgba(2,12,8,.42)!important;-webkit-backdrop-filter:blur(10px) saturate(120%)!important;backdrop-filter:blur(10px) saturate(120%)!important}
html body dialog.v3-dialog[open]{animation:v3dlgIn .56s cubic-bezier(.16,1.12,.3,1) both}
html body dialog.v3-dialog[open]::backdrop{animation:v3fade .35s ease both}
html body dialog.v3-dialog.v3-closing{animation:v3dlgOut .22s cubic-bezier(.4,0,1,1) both!important}
html body dialog.v3-dialog.v3-closing::backdrop{animation:v3fadeOut .22s ease both!important}
@keyframes v3dlgIn{from{opacity:0;transform:translateY(18px) scale(.94);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@keyframes v3dlgOut{to{opacity:0;transform:translateY(10px) scale(.96);filter:blur(4px)}}
@keyframes v3fade{from{opacity:0}}@keyframes v3fadeOut{to{opacity:0}}
html body dialog.v3-dialog .eyebrow{color:var(--v3-mint)!important}
html body dialog.v3-dialog h2{font:800 26px/1.15 Manrope,system-ui!important;letter-spacing:-.02em;margin:4px 0 6px!important;color:#fff!important}
html body dialog.v3-dialog>form>p:not(.eyebrow){color:#b9cfc4!important;font-size:14px!important;line-height:1.5}
html body dialog.v3-dialog .form-grid{gap:14px!important}
html body dialog.v3-dialog label{color:#cfe2d8!important;font-size:12.5px!important;font-weight:700!important;display:grid;gap:6px}
html body dialog.v3-dialog :is(input,select){min-height:46px;border-radius:14px!important;border:1px solid rgba(255,255,255,.18)!important;background:rgba(255,255,255,.06)!important;color:#fff!important;font-size:15px!important;padding:0 14px!important;color-scheme:dark;transition:border-color .25s,box-shadow .25s,background .25s}
html body dialog.v3-dialog :is(input,select):focus{outline:none!important;border-color:rgba(158,245,209,.7)!important;box-shadow:0 0 0 4px rgba(77,219,163,.16)!important;background:rgba(255,255,255,.09)!important}
html body dialog.v3-dialog[open] .form-grid>label,html body dialog.v3-dialog[open] .dialog-actions{animation:v3rowIn .5s cubic-bezier(.2,.8,.2,1) both}
html body dialog.v3-dialog[open] .form-grid>label:nth-child(2){animation-delay:.04s}html body dialog.v3-dialog[open] .form-grid>label:nth-child(3){animation-delay:.08s}
html body dialog.v3-dialog[open] .form-grid>label:nth-child(5){animation-delay:.12s}html body dialog.v3-dialog[open] .form-grid>label:nth-child(6){animation-delay:.16s}
html body dialog.v3-dialog[open] .dialog-actions{animation-delay:.18s}
@keyframes v3rowIn{from{opacity:0;transform:translateY(8px)}}
html body dialog.v3-dialog .dialog-close{position:absolute!important;top:-6px!important;right:-6px!important;width:40px!important;height:40px!important;border-radius:50%!important;display:grid!important;place-items:center;font-size:20px!important;line-height:1!important;color:#fff!important;
  background:linear-gradient(160deg,rgba(255,255,255,.2),rgba(255,255,255,.05))!important;border:1px solid rgba(255,255,255,.28)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.45)!important;cursor:pointer;transition:transform .3s cubic-bezier(.34,1.56,.64,1),background .2s}
html body dialog.v3-dialog .dialog-close:hover{transform:rotate(90deg);background:linear-gradient(160deg,rgba(255,255,255,.3),rgba(255,255,255,.08))!important}
html body dialog.v3-dialog .dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px!important}
html body dialog.v3-dialog .dialog-actions .ghost-button{border-radius:999px!important;min-height:48px;padding:0 22px!important;color:#e7f2ec!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:none!important}
html body dialog.v3-dialog .dialog-actions .ghost-button:hover{background:rgba(255,255,255,.12)!important}
html body dialog.v3-dialog .dialog-actions .primary-button{min-height:48px;padding:0 26px!important}
@media(max-width:760px){
  html body dialog.v3-dialog{padding:24px 18px!important;border-radius:28px!important;margin:auto auto 10px!important}
  html body dialog.v3-dialog .form-grid{grid-template-columns:1fr!important}
  html body dialog.v3-dialog .dialog-close{top:-4px!important;right:-2px!important}
  html body dialog.v3-dialog .dialog-actions>*{flex:1}
}
@media(prefers-reduced-motion:reduce){html body dialog.v3-dialog,html body dialog.v3-dialog *{animation:none!important}}

/* ---------- Visão geral: linha de baixo ---------- */
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral #monthComparison>article.v3-cmp{position:relative;display:flex!important;flex-direction:column;justify-content:center;gap:4px;min-width:0;overflow:hidden}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>span{display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-width:0}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>span>em{font-style:normal;font-size:12px!important;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#a9c4b7!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>strong{display:block!important;font:800 21px/1.15 Manrope,system-ui!important;letter-spacing:-.02em;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>span>i{flex:none;font-style:normal;font-size:12px;font-weight:800;padding:3px 8px;border-radius:999px;letter-spacing:0}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>span>i.good{background:rgba(77,219,163,.16);color:#7ff0c1}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>span>i.bad{background:rgba(255,138,122,.16);color:#ffab9f}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>span>i.neutral{background:rgba(255,255,255,.1);color:#d6e5dd}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>small{font-size:12px!important;color:#b7cbc1!important;line-height:1.35;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis;display:block}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>u{display:block;height:5px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;text-decoration:none;margin-top:4px}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>u>b{display:block;height:100%;width:var(--p);border-radius:inherit;background:linear-gradient(90deg,var(--v3-mint),var(--v3-mint-hi))}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp.expense>u>b{background:linear-gradient(90deg,#f6b06b,#ffd2a1)}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center!important;gap:16px!important}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score{--p:0;--c:var(--v3-mint);position:relative;width:68px!important;height:68px!important;min-width:68px!important;padding:0!important;display:grid!important;place-items:center;border-radius:50%;
  background:conic-gradient(var(--c) calc(var(--p)*1%),rgba(255,255,255,.1) 0)!important;box-shadow:0 0 22px -6px color-mix(in srgb,var(--c) 60%,transparent)!important;transition:--p .8s}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score::before{content:"";position:absolute;inset:7px;border-radius:50%;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.12),rgba(8,24,17,.92) 70%);box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score>span{position:relative;font:800 17px/1 Manrope,system-ui!important;color:#fff!important;letter-spacing:-.02em}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score>small{position:absolute;bottom:15px;left:0;right:0;text-align:center;font-size:10px!important;color:#a9c4b7!important}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score>span{transform:translateY(-3px)}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score.neg{--c:#ff8a7a}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner .eyebrow{font-size:11.5px!important;letter-spacing:.12em;color:var(--v3-mint)!important;margin:0 0 3px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner h2{font:800 15.5px/1.3 Manrope,system-ui!important;color:#fff!important;margin:0!important}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner .text-button{white-space:nowrap;padding:9px 14px!important;border-radius:999px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.18)!important;color:#dff7ec!important;font-weight:800}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner .text-button:hover{background:rgba(255,255,255,.14)!important}
@media(min-width:1100px) and (min-height:640px){
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral #monthComparison{align-self:stretch}
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral #monthComparison>article.v3-cmp{height:100%;padding:12px 16px!important}
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner{align-self:stretch;padding:12px 18px!important}
}
@media(min-width:1100px) and (max-height:820px){
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>strong{font-size:19px!important}
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score{width:58px!important;height:58px!important;min-width:58px!important}
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score>small{bottom:12px}
}
@media(max-width:760px){
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner{grid-template-columns:auto minmax(0,1fr)!important}
  html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner .text-button{grid-column:1/-1;justify-self:start}
}

/* margem: botão redondo com seta no lugar do texto "Ver DRE" */
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner .text-button{font-size:0!important;width:42px;height:42px;padding:0!important;display:grid!important;place-items:center}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner .text-button::after{content:"→";font-size:18px;line-height:1;color:#dff7ec}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner .text-button{grid-column:auto!important;justify-self:end}html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-banner{grid-template-columns:auto minmax(0,1fr) auto!important}}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral #monthComparison{margin:0!important;padding:0!important;align-self:stretch;align-items:stretch}
/* titulo nao encosta no X; foco sem dourado */
html body dialog.v3-dialog :is(.dialog-header,header,h2){padding-right:46px}
html body dialog.v3-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
html body dialog.v3-dialog .dialog-close:is(:focus,:focus-visible){outline:none!important;box-shadow:0 0 0 3px rgba(158,245,209,.45),inset 0 1px 0 rgba(255,255,255,.25)!important;border-color:rgba(158,245,209,.6)!important}
html body dialog.v3-dialog .dialog-close:focus:not(:focus-visible){box-shadow:inset 0 1px 0 rgba(255,255,255,.25)!important;border-color:rgba(255,255,255,.22)!important}
@media(max-width:760px){html body dialog.v3-dialog h2{font-size:24px!important;line-height:1.15!important}
 html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .health-score>span{font-size:14px}}

/* ===== Melhorias Claude 11 ===== */
/* Unidades: o card sobe sem perder as bordas arredondadas (antes a foto e a faixa de cor ficavam retas no hover) */
html body #ownerPortal .v2u-card::before{inset:0;height:auto;background:none;border-top:3px solid var(--unit-color);border-radius:inherit;pointer-events:none}
html body #ownerPortal .v2u-photo{border-radius:23px 23px 0 0;clip-path:inset(0 round 23px 23px 0 0);isolation:isolate}
html body #ownerPortal .v2u-photo img{will-change:transform}
/* Rotina: o dia do calendário sobe no hover sem ser cortado em cima */
html body #ownerPortal #rotina #calendarGrid{overflow:visible!important}
/* Visão geral: cartões Despesas/Faturamento — real até hoje + previsão (tracejado) + mês anterior (tracinho) */
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>span>i{font-size:11px;padding:3px 7px}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>strong .v3-unit{display:inline;font:700 12px/1 Manrope,system-ui!important;letter-spacing:0;color:#9fb8ac!important}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>u{position:relative;height:7px;overflow:visible;margin:3px 0 1px}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>u>b{position:absolute;left:0;top:0;bottom:0;width:var(--p);transition:width .9s cubic-bezier(.2,.8,.2,1)}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>u>b.now{z-index:2}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>u>b.proj{z-index:1;background:repeating-linear-gradient(90deg,rgba(127,240,193,.42) 0 5px,transparent 5px 8px)!important}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp.expense>u>b.proj{background:repeating-linear-gradient(90deg,rgba(255,197,143,.5) 0 5px,transparent 5px 8px)!important}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>u>i{position:absolute;z-index:3;top:-3px;bottom:-3px;left:var(--p);width:2px;margin-left:-1px;border-radius:2px;background:#fff;box-shadow:0 0 0 2px rgba(8,24,17,.85)}
html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral .v3-cmp>small b{color:#fff;font-weight:800}
/* Rotina: arrastar estilo iPhone */
html body #ownerPortal #rotina .task-row{-webkit-touch-callout:none}
html body #ownerPortal #rotina .task-row.pressing{transition:transform .36s cubic-bezier(.2,.8,.2,1),background .36s!important;transform:scale(.985);background:rgba(255,255,255,.05)!important}
html body #ownerPortal #rotina .task-row.dragging{transform-origin:50% 50%;border-radius:16px!important;background:linear-gradient(160deg,rgba(62,104,84,.97),rgba(24,52,39,.97))!important;border:1px solid rgba(127,240,193,.42)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 22px 40px -14px rgba(0,0,0,.8),0 8px 16px -8px rgba(0,0,0,.5)!important;-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%)}
html body #ownerPortal #rotina .task-row.settling{box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 6px 14px -10px rgba(0,0,0,.6)!important;transition:box-shadow .45s ease,background .45s ease,border-color .45s ease!important}
html body #ownerPortal #rotina .is-sorting .task-row:not(.dragging){transition:transform .34s cubic-bezier(.25,.9,.3,1)}
html body #ownerPortal #rotina .is-sorting,html body #ownerPortal #rotina .is-sorting *{-webkit-user-select:none;user-select:none}
/* DRE: tudo cabe na tela + barrinha de quanto cada despesa pesa no faturamento + leitura visual */
html body #ownerPortal #dreRows{display:flex!important;flex-direction:column;padding:8px 14px!important}
html body #ownerPortal #dreRows>.dre-row{position:relative;flex:1 1 0;min-height:30px;align-items:center;padding:0 12px!important;isolation:isolate}
html body #ownerPortal #dreRows>.dre-row[style*="--w"]::before{content:"";position:absolute;z-index:-1;left:0;top:22%;bottom:22%;width:var(--w);min-width:3px;border-radius:0 8px 8px 0;background:linear-gradient(90deg,rgba(246,176,107,.20),rgba(246,176,107,.06));transition:width .8s cubic-bezier(.2,.8,.2,1)}
html body #ownerPortal #dreRows>.dre-row.subtotal,html body #ownerPortal #dreRows>.dre-row.result-row{min-height:40px;border-radius:12px;margin-top:4px}
html body #ownerPortal #dreInsight{display:flex!important;flex-direction:column;justify-content:flex-start!important;gap:12px;padding:22px!important;overflow:auto}
html body #ownerPortal #dreInsight>h2{font:800 22px/1.2 Manrope,system-ui!important;letter-spacing:-.02em;margin:0!important;color:#fff}
html body #ownerPortal #dreInsight .pos{color:#7ff0c1}html body #ownerPortal #dreInsight .neg{color:#ff9d8f}
html body #ownerPortal .dre-split{display:flex;gap:3px;height:16px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.06)}
html body #ownerPortal .dre-split>i{flex:var(--w) 1 0;min-width:4px;background:var(--c);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
html body #ownerPortal .dre-legend{list-style:none;margin:0;padding:0;display:grid;gap:7px}
html body #ownerPortal .dre-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:9px;font-size:13px;color:#cfdcd5}
html body #ownerPortal .dre-legend li>i{width:10px;height:10px;border-radius:3px;background:var(--c)}
html body #ownerPortal .dre-legend li>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #ownerPortal .dre-legend li>b{font-weight:800;color:#fff;font-variant-numeric:tabular-nums}
html body #ownerPortal .dre-legend li.ok>b{color:#7ff0c1}
html body #ownerPortal .dre-cmp{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto;padding-top:14px;border-top:1px solid rgba(255,255,255,.1)}
html body #ownerPortal .dre-cmp>div{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
html body #ownerPortal .dre-cmp small{display:block;font-size:11.5px;color:#a9c4b7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #ownerPortal .dre-cmp>div>b{display:block;font:800 22px/1.2 Manrope,system-ui;letter-spacing:-.02em}
html body #ownerPortal .dre-cmp>div>b.pos{color:#7ff0c1}html body #ownerPortal .dre-cmp>div>b.neg{color:#ff9d8f}
html body #ownerPortal .dre-cmp>p{grid-column:1/-1;margin:0;font-size:12.5px;line-height:1.45;color:#b7cbc1}
@media(max-height:820px) and (min-width:981px){html body #ownerPortal #dreInsight{gap:9px;padding:16px 18px!important}html body #ownerPortal #dreInsight>h2{font-size:19px!important}html body #ownerPortal .dre-legend{gap:5px}html body #ownerPortal .dre-cmp>div>b{font-size:19px}}
html body #ownerPortal #dreInsight>*{align-self:stretch!important;width:auto}
/* Sócios: total sem dourado + gráfico "Ganhos no ano" em barras que ocupam o cartão */
html body #ownerPortal .v2p-table tfoot td{color:#fff!important}
html body #ownerPortal .v2p-table tfoot td:last-child b{color:#7ff0c1}
html body #ownerPortal #partnerGainChart .v3-py{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;width:100%}
html body #ownerPortal .v3-py-tot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body #ownerPortal .v3-py-tot>span{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-size:12px;font-weight:700;color:#b7cbc1;min-width:0}
html body #ownerPortal .v3-py-tot>span>i{display:inline-block;width:8px;height:8px;border-radius:3px;background:var(--c);margin-right:6px;vertical-align:1px}
html body #ownerPortal .v3-py-tot>span>b{font:800 15px/1.2 Manrope,system-ui;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
html body #ownerPortal .v3-py-chart{flex:1;min-height:150px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;align-items:stretch;padding-top:6px;border-bottom:1px solid rgba(255,255,255,.1)}
html body #ownerPortal .v3-py-col{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;min-width:0;padding-bottom:6px;border-radius:10px;outline:none;cursor:default;transition:background .2s}
html body #ownerPortal .v3-py-col:hover,html body #ownerPortal .v3-py-col:focus-visible{background:rgba(255,255,255,.05)}
html body #ownerPortal .v3-py-col>b{font-size:10.5px;font-weight:800;color:#cfdcd5;white-space:nowrap;font-variant-numeric:tabular-nums}
html body #ownerPortal .v3-py-stack{display:flex;flex-direction:column;width:min(100%,26px);height:calc(var(--h) * .82);min-height:0;border-radius:8px 8px 3px 3px;overflow:hidden;gap:2px;transition:height .9s cubic-bezier(.2,.8,.2,1)}
html body #ownerPortal .v3-py-stack>i{display:block;flex-basis:0;min-height:2px;background:var(--c);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
html body #ownerPortal .v3-py-col>small{font-size:11px;font-weight:700;color:#8fa79b}
html body #ownerPortal .v3-py-col.partial .v3-py-stack{opacity:.55;outline:1px dashed rgba(255,255,255,.5);outline-offset:2px}
html body #ownerPortal .v3-py-col.partial>small{color:#fff}
html body #ownerPortal .v3-py-col.future>small,html body #ownerPortal .v3-py-col.empty>small{opacity:.45}
html body #ownerPortal .v3-py-note{font-size:12px;color:#9fb8ac;text-align:center}
html body #ownerPortal #partnerGainChart>.gain-legend,html body #ownerPortal #partnerGainChart>small.gain-note{display:none}
html body #ownerPortal #socios #partnerBreakdown{display:flex!important;flex-direction:column}
html body #ownerPortal #socios #partnerBreakdown .v2p-table-wrap{flex:1;min-height:0;display:flex}
html body #ownerPortal #socios #partnerBreakdown .v2p-table{height:100%;max-height:330px}
/* Fornecedores: nome à esquerda com a fatia, comparação com o mês anterior e tendência de 6 meses */
html body #ownerPortal .supplier-ranking{display:flex!important;flex-direction:column;min-height:0}
html body #ownerPortal #supplierList{flex:none}
html body #ownerPortal .supplier-row.v3s{grid-template-columns:26px minmax(120px,1.1fr) minmax(0,1.4fr) 104px 74px;gap:14px;padding:11px 0}
html body #ownerPortal .supplier-row.v3s>span{color:#7d9489;font-weight:800;font-size:12px}
html body #ownerPortal .v3s-name{min-width:0;text-align:left}
html body #ownerPortal .v3s-name>strong{display:block;text-align:left!important;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #ownerPortal .v3s-name>small{display:block;font-size:11.5px;color:#93ab9f}
html body #ownerPortal .supplier-row.v3s>strong{text-align:right;font-variant-numeric:tabular-nums}
html body #ownerPortal .supplier-row.v3s>em{justify-self:end;font-style:normal;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px;white-space:nowrap}
html body #ownerPortal .supplier-row.v3s>em.good{background:rgba(77,219,163,.16);color:#7ff0c1}
html body #ownerPortal .supplier-row.v3s>em.bad{background:rgba(255,138,122,.16);color:#ffab9f}
html body #ownerPortal .supplier-row.v3s>em.neutral{background:rgba(255,255,255,.1);color:#d6e5dd}
html body #ownerPortal .v3s-trend{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
html body #ownerPortal .v3s-trend:empty{display:none}
html body #ownerPortal .v3s-bars{flex:1;min-height:90px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:14px}
html body #ownerPortal .v3s-bars>div{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0}
html body #ownerPortal .v3s-bars b{font-size:11.5px;font-weight:800;color:#cfdcd5;white-space:nowrap}
html body #ownerPortal .v3s-bars span{display:block;width:min(100%,64px);height:calc(var(--h) * .7);min-height:3px;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,rgba(77,219,163,.45),rgba(77,219,163,.12));transition:height .9s cubic-bezier(.2,.8,.2,1)}
html body #ownerPortal .v3s-bars>div.on span{background:linear-gradient(180deg,#7ff0c1,#2fbf86);box-shadow:0 0 20px rgba(77,219,163,.3)}
html body #ownerPortal .v3s-bars>div.partial span{opacity:.6;outline:1px dashed rgba(255,255,255,.55);outline-offset:2px}
html body #ownerPortal .v3s-bars small{font-size:11.5px;font-weight:700;color:#8fa79b}
html body #ownerPortal .v3s-bars>div.on small{color:#fff}
@media(max-width:760px){html body #ownerPortal .supplier-row.v3s{grid-template-columns:22px minmax(0,1fr) 88px;gap:10px}html body #ownerPortal .supplier-row.v3s>i,html body #ownerPortal .supplier-row.v3s>em{display:none}}
html body #ownerPortal .supplier-grid>article:not(.supplier-ranking){display:flex!important;flex-direction:column}
html body #ownerPortal .supplier-grid>article:not(.supplier-ranking) .donut-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;gap:18px}
html body #ownerPortal .supplier-row.v3s{grid-template-columns:26px minmax(120px,1.1fr) minmax(0,1.3fr) 104px 92px}
@media(max-height:820px) and (min-width:981px){html body #ownerPortal .supplier-row.v3s{padding:5px 0}html body #ownerPortal .v3s-name>small{font-size:11px;line-height:1.2}
 html body #ownerPortal .v3s-trend{margin-top:8px;padding-top:8px;gap:6px}html body #ownerPortal .v3s-bars{min-height:70px}html body #ownerPortal .v3s-bars b,html body #ownerPortal .v3s-bars small{font-size:10.5px}}
html body #ownerPortal .supplier-ranking{overflow:hidden}
html body #ownerPortal #supplierList{flex:0 1 auto!important;min-height:0;overflow-y:auto;scrollbar-width:thin}
html body #ownerPortal .v3s-trend{flex:1 1 130px;min-height:112px}
@media(max-width:980px){html body #ownerPortal #supplierList{overflow:visible}html body #ownerPortal .v3s-trend{min-height:170px}}
@media(max-width:560px){
 html body #ownerPortal .v3-py-tot{gap:6px}html body #ownerPortal .v3-py-tot>span{padding:8px 9px}html body #ownerPortal .v3-py-tot>span>b{font-size:12.5px}
 html body #ownerPortal .v3-py-chart{gap:3px;min-height:170px}html body #ownerPortal .v3-py-col>b{display:none}html body #ownerPortal .v3-py-col>small{font-size:10px}
 html body #ownerPortal .v3s-bars{gap:8px}html body #ownerPortal .v3s-bars b{display:none}html body #ownerPortal .v3s-bars>div.on b{display:block}
}
/* a tarefa levantada (um pouco maior) não é mais cortada nas laterais */
html body #ownerPortal #rotina :is(#taskList,#monthlyTaskList,#routineTaskOverview){padding-inline:12px!important;margin-inline:-12px!important;padding-block:6px!important;margin-block:-6px!important;scroll-padding-block:6px}
/* Visão geral: cartões sem valor ainda (ex.: começo do mês) — texto curto, fonte menor, nada cortado */
html body #ownerPortal .metric-card.is-waiting :is(#incomeValue,#resultValue){font:800 19px/1.2 Manrope,system-ui!important;letter-spacing:-.01em;color:#cfdcd5!important;-webkit-text-fill-color:#cfdcd5;background:none!important;white-space:normal!important}
html body #ownerPortal .metric-card.is-waiting :is(#incomeValue,#resultValue)::before{content:"";display:inline-block;width:8px;height:8px;margin:0 8px 2px 0;border-radius:50%;background:#f6b06b;box-shadow:0 0 0 4px rgba(246,176,107,.18);animation:v3pulse 1.6s ease-in-out infinite}
@keyframes v3pulse{50%{box-shadow:0 0 0 7px rgba(246,176,107,0)}}
html body #ownerPortal .metric-card.is-waiting :is(#incomeNote,#resultNote){white-space:normal!important}
html body #ownerPortal .metric-card.income.is-waiting .mini-progress{opacity:.3}
html body #ownerPortal .metric-card.income.is-waiting .mini-progress i{width:6%!important}
html body #ownerPortal .recent-day-bar .v3-short{display:none}

/* ===== Melhorias Claude 11 · versão celular ===== */
@media(max-width:760px){
 /* mesmo espaço (14px) entre todos os blocos de vidro, em todas as abas */
 html body #ownerPortal .view.active-view{padding-top:14px!important}
 html body #ownerPortal .view>*{margin-top:0!important;margin-bottom:14px!important}
 html body #ownerPortal .view>*:last-child{margin-bottom:0!important}
 html body #ownerPortal :is(#monthComparison,.dashboard-grid,.partner-grid,.calendar-layout,.routine-right,.daily-expense-layout,.supplier-grid,.dre-layout,.unit-grid,#unitGrid,.camera-workspace,.lower-grid,.main-grid){gap:14px!important;row-gap:14px!important}
 html body #ownerPortal .metric-grid{gap:12px!important}
 html body #ownerPortal .section-intro{margin-bottom:12px!important}

 /* Rotina: as três opções numa linha só */
 html body #ownerPortal #rotina .routine-toolbar{gap:12px!important;margin-bottom:14px!important}
 html body #ownerPortal #rotina .routine-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));flex-wrap:nowrap!important;gap:4px!important;width:100%;padding:4px!important;border-radius:999px!important;margin:0!important}
 html body #ownerPortal #rotina .routine-tabs button{min-width:0;padding:10px 4px!important;font-size:13px!important;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:999px!important;text-align:center;justify-content:center}
 html body #ownerPortal #rotina .routine-tabs .v3-ic{display:none}
 html body #ownerPortal #rotina #newMonthlyTask{align-self:stretch!important;width:100%;justify-content:center;min-height:46px}
 html body #ownerPortal #rotina .task-row{padding-right:4px!important}

 /* Gastos: cartão de hoje alinhado com o resto */
 html body #ownerPortal .daily-expense-toolbar{padding:16px!important;gap:0!important}
 html body #ownerPortal .daily-expense-toolbar .daily-expense-total{padding:0!important;margin:0!important}
 html body #ownerPortal .daily-expense-toolbar .daily-expense-today{padding-bottom:14px!important;margin-bottom:14px!important;border-bottom:1px solid rgba(255,255,255,.1)}
 html body #ownerPortal .daily-expense-toolbar .daily-expense-total+.daily-expense-total,html body #ownerPortal .daily-expense-toolbar .daily-expense-today+.daily-expense-total{border-top:0!important}
 html body #ownerPortal .daily-days-panel .panel-heading{flex-wrap:wrap}
 html body #ownerPortal .daily-days-panel .panel-heading>*{min-width:0}
 html body #ownerPortal #dailyExpenseDays button{min-width:0;padding:7px 6px!important}
 html body #ownerPortal #dailyExpenseDays button *{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 html body #ownerPortal #dailyExpenseDays button strong,html body #ownerPortal #dailyExpenseDays button b{font-size:11.5px!important;letter-spacing:-.02em}
 html body #ownerPortal .recent-day-bar .v3-full{display:none}html body #ownerPortal .recent-day-bar .v3-short{display:inline}
 html body #ownerPortal .recent-day-bar>b{font-size:10.5px!important;white-space:nowrap;letter-spacing:-.01em}

 /* Sócios: tabela cabe inteira (antes a coluna Total ficava cortada) */
 html body #ownerPortal .v2p-table{table-layout:fixed;font-size:11.5px!important;min-width:0!important}
 html body #ownerPortal .v2p-table th,html body #ownerPortal .v2p-table td{padding:8px 3px!important;overflow:hidden;text-overflow:ellipsis}
 html body #ownerPortal .v2p-table th:first-child,html body #ownerPortal .v2p-table td:first-child{width:24%;white-space:normal;line-height:1.25}
 html body #ownerPortal .v2p-table th{font-size:9.5px!important;letter-spacing:.04em}
 html body #ownerPortal .v2p-table-wrap{overflow:visible!important}

 /* Câmeras: cartão vazio não ocupa meia tela */
 html body #ownerPortal #monitoramento .panel:has(.empty-state),html body #ownerPortal #monitoramento aside.panel{min-height:0!important}
}
@media(max-width:760px){
 html body :is(#ownerPortal.v2-one,#ownerPortal) #visao-geral #monthComparison{margin:0 0 14px!important}
 html body #ownerPortal .camera-units{gap:10px!important}
 html body #ownerPortal .camera-workspace>*+*{margin-top:14px!important}
 html body #ownerPortal .user-access-grid{gap:14px!important}
 html body #ownerPortal .camera-history-panel{min-height:0!important}
}
@media(max-width:760px){html body #ownerPortal #visao-geral .owner-welcome{margin:0 0 14px!important}}
html body .v3-m{display:none}
@media(max-width:760px){html body #ownerPortal #rotina .routine-tabs .v3-d{display:none}html body #ownerPortal #rotina .routine-tabs .v3-m{display:inline}
 html body #ownerPortal #rotina .routine-tabs button{font-size:14px!important}
 html body #ownerPortal #dailyExpenseDays button{padding:7px 5px!important}
 html body #ownerPortal #dailyExpenseDays button strong,html body #ownerPortal #dailyExpenseDays button b{font-size:10.5px!important;letter-spacing:-.03em}}
@media(max-width:560px){
 html body #ownerPortal .v2p-table,html body #ownerPortal .v2p-table thead,html body #ownerPortal .v2p-table tbody,html body #ownerPortal .v2p-table tfoot{display:block;width:100%}
 html body #ownerPortal .v2p-table tr{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:6px;padding:9px 2px;border-bottom:1px solid rgba(255,255,255,.07)}
 html body #ownerPortal .v2p-table :is(th,td){display:block;width:auto!important;padding:0!important;border:0!important;white-space:nowrap;overflow:visible;text-overflow:clip;font-size:12px!important}
 html body #ownerPortal .v2p-table :is(th,td):first-child{grid-column:1/-1;font-weight:800;font-size:13px!important;margin-bottom:4px;color:#fff}
 html body #ownerPortal .v2p-table thead tr{padding:4px 2px}
 html body #ownerPortal .v2p-table thead th:first-child{display:none}
 html body #ownerPortal .v2p-table th{font-size:10px!important}
 html body #ownerPortal .v2p-table tfoot tr{border-bottom:0}
 html body #ownerPortal .v2p-table tfoot td:first-child{color:#7ff0c1}
 html body #ownerPortal .v3-py-tot{grid-template-columns:1fr!important;gap:6px}
 html body #ownerPortal .v3-py-tot>span{flex-direction:row;align-items:center;justify-content:space-between;padding:9px 12px}
 html body #ownerPortal .v3-py-tot>span>b{font-size:14px}
}
@media(max-width:560px){html body #ownerPortal .v3-py-tot>span{justify-content:flex-start}html body #ownerPortal .v3-py-tot>span>b{margin-left:auto}}
/* Pessoal · Meu ano: no celular os 4 números do detalhe ficam em 2×2 (antes se sobrepunham) */
@media(max-width:760px){html body #ownerPortal .supplier-row.v3s{grid-template-columns:22px minmax(0,1fr) 88px}}
@media(max-width:760px){
 html body #pzYDetKpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body #pzYDetKpis>span{min-width:0;padding:9px 11px!important;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);display:flex!important;flex-direction:column;gap:2px;overflow:hidden}
 html body #pzYDetKpis>span>small{font-size:10.5px!important;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body #pzYDetKpis>span>b{font-size:15px!important;line-height:1.2;white-space:normal}
 html body #pzYDetKpis>span>b small{font-size:11px!important;text-transform:none;letter-spacing:0;font-weight:600;opacity:.75}
 html body #pzYDetTitle,html body #pzYDetSub{white-space:normal}
}
@media(max-width:760px){
 html body .pz-ysub{grid-template-columns:minmax(0,1fr) auto!important;row-gap:5px!important;padding:8px 2px!important;border-bottom:1px solid rgba(255,255,255,.06)}
 html body .pz-ysub>span{grid-column:1/-1;white-space:normal!important}
 html body .pz-ysub>i{grid-column:1/-1;order:3}
 html body .pz-ysub>b{order:1}html body .pz-ysub>small{order:2}
 html body #pzYDetTitle{display:block}
}

/* ===== Melhorias Claude 14 · Gastos diários: cada gasto sem repetir informação ===== */
html body #ownerPortal #gastos-diarios .daily-expense-table thead{display:none!important}
html body #ownerPortal #gastos-diarios .daily-expense-table table{display:block!important;min-width:0!important;width:100%!important}
html body #ownerPortal #gastos-diarios .daily-expense-table tbody{display:flex!important;flex-direction:column;gap:6px}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t a" "m c";gap:4px 12px;padding:11px 14px!important;border-radius:14px;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.08)!important}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item td{display:block!important;padding:0!important;border:0!important;min-width:0;text-align:left!important;grid-column:auto!important;grid-row:auto!important}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item .dx-title{grid-area:t;font-size:14.5px!important;font-weight:700;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item .dx-amount{grid-area:a;text-align:right!important}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item .dx-amount strong{font-size:14.5px;color:#ff9d8f!important;font-variant-numeric:tabular-nums}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item .dx-meta{grid-area:m;display:flex!important;align-items:center;gap:7px;font-size:12.5px!important;color:#b7cbc1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item .dx-meta i{width:8px;height:8px;border-radius:50%;flex:none}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item .dx-cat{grid-area:c;text-align:right!important}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-item .expense-category{font-size:10.5px;font-weight:800;letter-spacing:.04em;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.08)!important;color:#d6e5dd!important;border:0!important;text-transform:none}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-day{display:block!important;margin-top:6px}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-day:first-child{margin-top:0}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-day td{display:flex!important;justify-content:space-between;align-items:baseline;padding:2px 4px!important;border:0!important;font-size:11.5px!important;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#a9c4b7!important}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-day td b{color:#fff;letter-spacing:0;font-size:12.5px}
html body #ownerPortal #gastos-diarios:is(.v2-gd-one,.view) .daily-expense-table tbody tr.dx-day{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
/* Multi-day scheduling keeps the existing glass dialog and native controls. */
.routine-multi{display:grid;gap:12px;margin:12px 0}
#taskWeekdaysMore{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0}
#taskWeekdaysMore legend{margin-bottom:8px}
#taskWeekdaysMore label{display:flex;align-items:center;gap:5px;padding:8px;border-radius:12px;background:rgba(255,255,255,.07)}
#taskWeekdaysMore input{width:16px;height:16px}
#taskDatesPicked{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
