/* ============================================================
   inicio.css — a Início (Painel V3). 25/08: igual ao modelo 01 "Obsidiana"
   da galeria "Vinte Inícios" (posições, tamanhos e proporções do mock),
   só com tokens do admin.css — o tema escolhido (temas.css) veste tudo.
   ============================================================ */

.in { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---- pílulas de período ---- */
.in-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.in-bar__sp { flex: 1; }
/* ações rápidas (de volta a pedido do dono): ícone + palavra, sem cartão */
.in-atalhos { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.in-atalho { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 5px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.in-atalho:hover { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.in-atalho__ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.in-atalho__ico svg { width: 14px; height: 14px; }
.in-custom { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.in-custom.is-on { display: flex; }
.in-custom label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.in-custom input { height: 30px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; color-scheme: dark; }
html[data-tema="porcelana"] .in-custom input { color-scheme: light; }

/* ---- cartão (vidro, como no mock) ---- */
.in-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--elev-a), var(--elev-b)); box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 14px 16px; overflow: hidden; color: inherit; }
.in-lab { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-weight: 700; margin-bottom: 6px; }

/* ---- herói ---- */
.in-hero { display: grid; grid-template-columns: minmax(260px, 1fr) 1.6fr; gap: 12px; }
.in-livre { --glow: var(--tema-glow, var(--accent-soft)); box-shadow: 0 0 0 1px var(--border), 0 20px 70px -20px var(--glow); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.in-livre__copy { min-width: 0; position: relative; z-index: 1; }
.in-livre::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; height: 120%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .9; pointer-events: none; }
/* o valor a sacar em verde brilhante (pedido do dono): acento do tema + brilho */
.in-big { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1; color: var(--accent); text-shadow: 0 0 22px var(--glow), 0 0 2px var(--accent-soft); font-variant-numeric: tabular-nums; margin: 2px 0 0; position: relative; z-index: 1; }
.in-big.is-espera { color: var(--text-3); }
.in-btn { position: relative; z-index: 1; flex-shrink: 0; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: calc(var(--radius-lg) - 4px); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 12.5px; transition: filter .12s ease; }
.in-btn:hover { filter: brightness(1.06); color: var(--on-accent); }

.in-trio { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; }
.in-trio > div { padding: 2px 14px 0 0; margin-right: 14px; border-right: 1px solid var(--border); min-width: 0; }
.in-trio > div:last-child { border: 0; margin: 0; padding-right: 0; }
.in-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; line-height: 1.1; color: var(--money); font-variant-numeric: tabular-nums; }
.in-d { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.in-d--up { color: var(--accent); background: var(--accent-soft); }
.in-d--dn { color: var(--gold); background: var(--gold-soft); }
.in-d--eq { color: var(--text-3); background: var(--surface-2); }

/* ---- meio: curva + ladrilhos ---- */
.in-mid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.in-chart svg { display: block; width: 100%; height: 120px; margin-top: 4px; overflow: visible; }
.in-chart .area { fill: url(#in-grad); }
.in-chart .line { fill: none; stroke: var(--accent); stroke-width: 1.6px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.in-chart .dot { fill: var(--accent); }
.in-chart .hover-line { stroke: var(--border-strong); stroke-dasharray: 3 3; display: none; }
.in-chart__tip { position: absolute; pointer-events: none; display: none; padding: 6px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); font-size: 12px; white-space: nowrap; z-index: 3; }
.in-chart__tip b { color: var(--money); font-family: var(--font-display); }
.in-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.in-tile { padding: 12px 14px; }
.in-tile .in-num { font-size: 22px; }
.in-tile--warn .in-num { color: var(--gold); }
.in-tile--warn .in-num.is-zero { color: var(--money); }
a.in-tile:hover { border-color: var(--border-strong); }

/* ---- listas com barras ---- */
.in-low { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
/* Por tipo | Por bot | Por revenda (à direita, mais larga) — card sempre no HTML. */
.in-low--revenda { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr); }
.in-revenda { min-width: 0; }
.in-row__k a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--border-strong); }
.in-row__k a:hover { color: var(--accent); }
.in--so-revenda .in-low,
.in--so-revenda .in-low--revenda { grid-template-columns: minmax(0, 1fr); }
.in--so-revenda .in-livre { box-shadow: 0 0 0 1px var(--border); }
.in--so-revenda .in-livre::after { display: none; }
.in--so-revenda .in-big { color: var(--text-3); text-shadow: none; }
.in-row { display: grid; grid-template-columns: fit-content(160px) 1fr 70px; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; font-size: 12px; }
.in-row__k { display: flex; min-width: 90px; align-items: center; gap: 7px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-row__bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.in-row__bar b { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s ease; }
.in-row__v { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--money); font-variant-numeric: tabular-nums; }
.in-row--bot { cursor: pointer; border-radius: 8px; padding: 6px 6px; margin: 0 -6px; }
.in-row--bot:hover { background: var(--surface-2); }
.in-row--bot.is-off .in-row__k { color: var(--text-2); }
.in-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.in-dot--off { background: var(--gold); }
.in-dot--erro { background: var(--rose); }

/* últimas vendas (um bot só) */
.in-ult { display: grid; grid-template-columns: 52px 1fr 60px 78px; gap: 10px; align-items: center; padding: 6px 0; font-size: 12px; }
.in-ult__q { color: var(--text-3); font-variant-numeric: tabular-nums; }
.in-ult__c { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-ult__c small { color: var(--text-3); font-weight: 500; }
.in-ult__t { color: var(--text-2); text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; }
.in-ult__v { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--money); font-variant-numeric: tabular-nums; }

/* últimas movimentações (recarga + Clouds + 99 + eSIM, com a fatia de quem olha) */
.in-mov__row { display: grid; grid-template-columns: 52px minmax(0, .8fr) minmax(0, 1.2fr) 92px 108px; grid-template-areas: "q b c v p"; gap: 10px; align-items: center; padding: 6px 0; font-size: 12px; }
.in-mov__row + .in-mov__row { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.in-mov__head { padding-bottom: 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 700; border-bottom: 1px solid var(--border); }
.in-mov__head + .in-mov__row { border-top: 0; }
.in-mov__q { grid-area: q; color: var(--text-3); font-variant-numeric: tabular-nums; }
.in-mov__b { grid-area: b; color: var(--text-2); font-weight: 600; min-width: 0; overflow: hidden; }
.in-mov__tipo { display: block; font-size: 10px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-mov__c { grid-area: c; color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-mov__v { grid-area: v; text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--money); font-variant-numeric: tabular-nums; }
.in-mov__p { grid-area: p; text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.in-mov__p b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.in-mov__p small { font-size: 10.5px; }
.in-mov__head .in-mov__v, .in-mov__head .in-mov__p { color: var(--text-3); font-family: inherit; font-weight: 700; }
/* Linha marcada pelo servidor: valor e "sua parte" em vermelho, pílula. */
.in-mov__row--oculta .in-mov__v, .in-mov__row--oculta .in-mov__p b { color: var(--danger-text); }
.in-mov__pill { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; line-height: 16px; vertical-align: 1px; color: var(--danger-text); border: 1px solid color-mix(in srgb, var(--danger-text) 55%, transparent); background: color-mix(in srgb, var(--danger-text) 12%, transparent); font-variant-numeric: tabular-nums; }
.in-mov-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:34px; padding-top:4px; }
.in-mov-footer .in-card-note { display:block; margin:0; }
.in-mov-footer__actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.in-mov-more { font-weight:700; }

/* ---- estados ---- */
.in-vazio { color: var(--text-3); font-size: 12px; padding: 8px 0; }
.in.is-ocupado .in-card { opacity: .8; transition: opacity .15s ease; }
.in-fonte { color: var(--text-3); font-size: 11.5px; padding: 0 4px; }
.in-fonte details { display: inline; }
.in-fonte summary { display: inline; cursor: pointer; color: var(--text-3); text-decoration: underline dotted; text-underline-offset: 3px; list-style: none; }
.in-fonte summary::-webkit-details-marker { display: none; }
.in-fonte summary:hover { color: var(--text-2); }
.in-fonte dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); max-width: 720px; }
.in-fonte dt { color: var(--text); font-weight: 600; }
.in-fonte dd { color: var(--text-2); margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .in-row__bar b { transition: none; }
  .in.is-ocupado .in-card { transition: none; }
  .in-atalho, .in-btn { transition: none; }
}

/* ---- responsivo (regra do painel: <720 · 720–1100 · ≥1100) ---- */
@media (max-width: 1099px) { .in-hero { grid-template-columns: 1fr; } }
@media (min-width: 720px) and (max-width: 1099px) {
  .in-mid { grid-template-columns: 1fr; }
  .in-low { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .in-low--revenda { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .in-low--revenda .in-revenda { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .in-mid, .in-low, .in-low--revenda { grid-template-columns: 1fr; }
  .in-low--revenda .in-revenda { grid-column: auto; }
  .in-trio { grid-template-columns: 1fr; }
  .in-trio > div { border: 0; margin: 0; padding: 6px 0; }
  .in-big { font-size: 34px; }
  .in-row { grid-template-columns: fit-content(120px) 1fr 64px; }
  .in-fonte dl { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .in-ult { grid-template-columns: 48px 1fr 70px; } .in-ult__t { display: none; } }
/* estreito: a linha vira duas — hora/usuário/recarga em cima, bot/sua parte
   embaixo. Nenhuma coluna some (todas foram pedidas). */
@media (max-width: 719px) {
  .in-mov__row { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "q c v" ". b p"; row-gap: 2px; }
  .in-mov__p b { display: inline; }
  .in-mov__p small { margin-left: 5px; }
}
@media (pointer: coarse) {
  .in-atalho, .in-pills .seg__btn, .in-btn, .in-custom .btn-sm, .in-custom input {
    min-height: 44px;
  }
}

/* ---- notificações (04/09) ---- */
.in-notif__head { display: flex; align-items: center; gap: 10px; }
.in-notif__head .in-lab { margin-bottom: 0; display: inline-flex; align-items: center; gap: 8px; }
.in-notif__sp { flex: 1; }
.in-notif__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 0; }
.in-notif__lidas { border: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.in-notif__lidas:hover { color: var(--text); background: var(--surface-2); }
.in-notif__lidas:disabled { opacity: .5; cursor: default; }
#in-notif { margin-top: 6px; }
/* 05/09 — o ⋯ do canto (só aparece quando há mais de 5) e a mini janela */
.in-notif__mais { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; padding: 0; transition: background .12s ease, color .12s ease; }
.in-notif__mais svg { width: 16px; height: 16px; }
.in-notif__mais:hover, .in-notif__mais[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.in-notif__mais:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.in-ntpop { position: fixed; z-index: 70; width: min(400px, calc(100vw - 24px)); max-height: min(72vh, 640px); display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--elev-a), var(--elev-b)), var(--surface); background-color: var(--surface); box-shadow: var(--shadow-pop); animation: loja-pop .18s cubic-bezier(.16, 1, .3, 1) both; }
.in-ntpop[hidden] { display: none; }
.in-ntpop__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px 16px; border-bottom: 1px solid var(--border); flex: none; }
.in-ntpop__head .in-lab { margin-bottom: 0; display: inline-flex; align-items: center; gap: 8px; }
.in-ntpop__x { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; padding: 0; }
.in-ntpop__x svg { width: 14px; height: 14px; }
.in-ntpop__x:hover { color: var(--text); background: var(--surface-2); }
.in-ntpop__body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 10px 10px; min-height: 80px; }
.in-ntpop__body .in-nt { margin: 0; padding: 8px 6px; }
.in-ntpop__body .in-nt + .in-nt { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.in-ntpop__dia { position: sticky; top: 0; z-index: 1; padding: 8px 6px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-3); background: linear-gradient(var(--surface), color-mix(in srgb, var(--surface) 92%, transparent)); }
.in-ntpop__dia + .in-nt { border-top: 0 !important; }
.in-ntpop__fim { padding: 10px 6px 2px; font-size: 11px; color: var(--text-3); text-align: center; }
@keyframes in-ntpop-sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .in-ntpop { animation: none; } }
.in-nt { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 6px; margin: 0 -6px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 12.5px; }
.in-nt + .in-nt { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
a.in-nt:hover { background: var(--surface-2); }
.in-nt__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.in-nt--ok .in-nt__dot { background: var(--accent); }
.in-nt--money .in-nt__dot { background: var(--money); box-shadow: 0 0 0 3px color-mix(in srgb, var(--money) 22%, transparent); }
.in-nt--warn .in-nt__dot { background: var(--gold); }
.in-nt--bad .in-nt__dot { background: var(--rose); }
.in-nt__c { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.in-nt__t { font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-nt.is-nova .in-nt__t { color: var(--text); font-weight: 700; }
.in-nt__x { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-nt__q { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.in-nt__go { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.in-nt:not(.is-acao) .in-nt__go { display: none; }
.in-nt.is-acao { grid-template-columns: 8px minmax(0, 1fr) auto auto; }
@media (max-width: 560px) {
  .in-nt__t, .in-nt__x { white-space: normal; }
}

/* Dashboard compacto: indicadores, gráfico, produtos, bots e movimentos juntos. */
body:has(#in) .content { position:relative; max-width:1200px; padding:12px 20px 20px; }
body:has(#in) .content:not(:has(.secnav)) { padding-top:60px; }
body:has(#in) .secnav { margin:0 0 4px; width:max-content; max-width:calc(100% - 110px); }
.in { gap:10px; font-family:"Onest",var(--font); }
.in [hidden] { display:none !important; }
.in-welcome, .in-head-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.in-welcome { position:absolute; top:12px; right:20px; min-height:40px; }
.in-welcome h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; }
.in-refresh, .in-bell { display:inline-flex; align-items:center; gap:7px; min-height:32px; }
.in-refresh svg, .in-bell svg { width:16px; height:16px; }
.in-bar { gap:6px; padding:0; border:0; background:none; }
.in-pills .seg__btn { min-height:32px; padding-inline:10px; font-size:11px; }
.in-atalhos { display:flex; gap:2px; }
.in-atalho { height:32px; padding:0 5px; gap:5px; font-size:11px; }
.in-atalho__ico { width:22px; height:22px; border-radius:6px; }
.in .in-card { border:1px solid var(--border); border-radius:9px; padding:10px 12px; background:var(--surface); box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.in-lab { margin-bottom:5px; font-size:11px; text-transform:none; letter-spacing:0; color:var(--text-2); font-weight:500; }
.in-card-note { display:none; }
.in-inline-note { font-size:10px; color:var(--text-3); }
.in-hero { display:grid; grid-template-columns:1.1fr 2.6fr; gap:10px; }
.in .in-livre { gap:12px; border-color:color-mix(in srgb,var(--accent) 30%,var(--border)); }
.in-livre::after { display:none; }
.in-big { font:500 27px "Outfit",var(--font-display); letter-spacing:-.035em; color:var(--accent); text-shadow:none; }
.in-btn { min-height:32px; height:32px; padding:0 12px; gap:8px; border-radius:6px; font-size:11px; }
.in .in-trio { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:1px solid var(--border); border-radius:9px; background:var(--surface); padding:10px 0; }
.in-trio > div, .in-trio > div:last-child { padding:0 14px; margin:0; }
.in-trio .in-num { display:inline-block; font:500 26px "Outfit",var(--font-display); color:var(--text); overflow-wrap:anywhere; }
.in-d { font-size:9px; margin:0 0 0 6px; padding:2px 4px; vertical-align:4px; }
.in-mid { display:grid; grid-template-columns:minmax(0,1fr) 220px; grid-template-rows:auto auto; gap:8px 10px; }
.in .in-chart { grid-row:1 / 3; }
.in-section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.in-section-title { margin:0; font-size:12px; font-weight:600; }
.in-chart-controls { display:flex; gap:2px; }
.in-chart-controls button { background:none; border:0; color:var(--text-2); padding:5px 8px; font:inherit; font-size:10px; border-radius:5px; cursor:pointer; min-height:28px; }
.in-chart-controls button[aria-pressed="true"] { color:var(--accent); background:var(--accent-soft); }
.in-chart-summary { display:flex; align-items:baseline; gap:7px; margin:2px 0; }
.in-chart-summary strong { font-size:13px; font-weight:500; color:var(--text); }
.in-chart-summary > span { display:none; }
.in-chart svg { width:100%; height:100px; margin:0; }
.in-chart .line { stroke-width:2; }
.in-chart .chart-grid { stroke:var(--border); stroke-dasharray:3 5; }
.in-chart text { fill:var(--text-3); font:10px "Onest",sans-serif; }
.in-chart .chart-point { fill:var(--accent); stroke:var(--surface); stroke-width:2; }
.in-chart-footer { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:10px; color:var(--text-3); min-height:24px; }
.in-text-btn { color:var(--accent); background:none; border:0; font:inherit; font-size:11px; min-height:28px; cursor:pointer; flex-shrink:0; }
.in-tiles { display:flex; flex-direction:column; gap:0; border:1px solid var(--border); border-radius:9px; background:var(--surface); padding:2px 12px; }
.in .in-tile { display:flex; align-items:center; justify-content:space-between; gap:8px; border:0; border-radius:0; padding:8px 0; background:none; }
.in-tile + .in-tile { border-top:1px solid var(--border); }
.in-tile .in-lab { margin:0; }
.in-tile .in-num { font:500 20px "Outfit",var(--font-display); color:var(--text); }
.in-task { grid-column:1 / -1; display:flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--text-2); font-size:10px; }
.in-task__copy { flex:1; min-width:0; }
.in-task .in-lab { display:none; }
.in-task__count { font-size:13px; font-weight:600; color:var(--gold); }
.in-task__count.is-zero { display:none; }
.in-task:hover { border-color:var(--border-strong); }
.in-low, .in-low--revenda { align-items:start; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.in-low .in-card { min-width:0; }
.in-row { grid-template-columns:minmax(0,1.15fr) minmax(20px,.65fr) minmax(60px,auto); gap:10px; padding:5px 0; font-size:11px; min-height:26px; }
.in-row--bot { margin:0; padding:5px 0; }
.in-row__k { min-width:0; }
.in-row__qty { color:var(--text-3); font:400 10px var(--font); margin-left:auto; padding-left:4px; }
.in-row__bar { height:4px; }
.in-row__v { white-space:nowrap; }
.in .in-low #in-bots, .in .in-low #in-tipos, .in .in-low #in-revenda { max-height:none; overflow:visible; }
.in-mov-heading { display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.in-mov-heading > .in-lab { flex:1; margin:0; }
.in-limit select { border:0; background:var(--surface); color:var(--text-2); font:inherit; font-size:11px; padding:4px; min-height:28px; }
.in-mov-tools { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.in-search { flex:1; min-width:160px; }
.in-mov-tools input, .in-mov-tools select { width:100%; min-height:36px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); padding:0 8px; font:inherit; font-size:11px; }
.in-mov__row { padding:6px 0; font-size:11px; }
.in-mov__head { font-size:9px; letter-spacing:.04em; }
.in-mov__p b { display:inline; }
.in-mov__p small { margin-left:6px; font-size:9px; }
.in-data-table table { width:100%; border-collapse:collapse; font-size:11px; }
.in-data-table th, .in-data-table td { padding:6px; border-bottom:1px solid var(--border); text-align:right; }
.in-data-table th:first-child, .in-data-table td:first-child { text-align:left; }
.in-data-table caption { text-align:left; padding:8px 0; color:var(--text-3); }
.in-alert { padding:8px 10px; background:var(--gold-soft); border:1px solid var(--gold-border); border-radius:8px; font-size:12px; }
.in-vazio { padding:10px 0; font-size:11px; }
.in-fonte { font-size:10px; }
.in-ntpop { bottom:auto; border-radius:10px; background:var(--surface); }
.in-ntpop__head { padding:8px 10px; gap:6px; }
.in-ntpop__x, .in-notif__lidas { min-height:32px; }
.in-ntpop__body { overscroll-behavior:contain; }
.in-nt__t, .in-nt__x { white-space:normal; }
.in :is(a,button,input,select,[tabindex]):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.in button:disabled { opacity:.5; cursor:wait; }
html[data-tema="porcelana"] .in { --accent:#3949bf; --gold:#8c3f08; --text-2:#505b70; --text-3:#515e74; }
@media (min-width:1000px) {
  .in { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:10px; }
  .in > * { grid-column:1 / -1; }
  .in-bar { grid-row:1; }
  .in-hero { grid-row:2; }
  .in-alert { grid-row:3; }
  .in-mov { grid-row:4; }
  .in-fonte { grid-row:5; }
  .in:has(.in-alert:not([hidden])) > .in-mov { grid-row:5; }
  .in:has(.in-alert:not([hidden])) > .in-fonte { grid-row:6; }
  .in > .in-mid { grid-column:1; display:flex; flex-direction:column; gap:6px; }
  .in > .in-low { grid-column:2; grid-row:3; align-self:start; align-items:stretch; }
  .in > .in-mid { align-self:stretch; }
  .in .in-chart { flex:1; display:flex; flex-direction:column; min-width:0; }
  .in #in-chart { flex:1; position:relative; min-height:100px; }
  .in #in-chart svg { position:absolute; inset:0; height:100%; width:100%; }
  .in.in--so-revenda > .in-low { grid-column:1 / -1; }
  .in > .in-mid { grid-row:3; }
  .in:has(.in-alert:not([hidden])) > .in-mid, .in:has(.in-alert:not([hidden])) > .in-low { grid-row:4; }
  .in .in-task { min-height:32px; }
  .in .in-task .in-lab { display:none; }
  .in-row { grid-template-columns:minmax(0,1fr) minmax(15px,.3fr) auto; gap:7px; }
}
@media (max-width:1050px) { .in-bar__sp { display:none; } .in-atalhos { margin-left:auto; } .in-atalho { font-size:10px; } .in-pills .seg__btn { padding-inline:7px; } }
@media (max-width:760px) {
  body:has(#in) .content { padding:8px 12px 18px; }
  body:has(#in) .secnav { margin-bottom:6px; }
  .in { gap:8px; }
  .in-welcome { top:8px; right:12px; }
  .in-refresh, .in-bell { min-height:44px; min-width:44px; justify-content:center; }
  .in-refresh span, .in-bell > span { display:none; }
  .in-pills { width:100%; display:flex; }
  .in-pills .seg__btn { flex:1; min-height:44px; padding-inline:6px; }
  .in-atalhos { width:100%; margin:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; }
  .in-atalho { min-height:48px; height:auto; padding:3px 1px; font-size:10px; line-height:1.2; flex-direction:column; gap:4px; text-align:center; justify-content:flex-start; border-radius:6px; }
  .in-atalho__ico { background:none; height:18px; }
  .in-custom { width:100%; }
  .in-hero { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .in .in-trio { display:contents; }
  .in-trio > div, .in-trio > div:last-child { border:1px solid var(--border); border-radius:9px; background:var(--surface); padding:10px; margin:0; }
  .in .in-livre { position:relative; display:block; padding:10px; }
  .in-livre .in-btn { position:absolute; right:4px; top:0; padding:0 5px; height:44px; min-height:44px; font-size:10px; background:none; color:var(--accent); }
  .in-livre .in-btn span { display:none; }
  .in-livre .in-lab { font-size:10px; padding-right:28px; }
  .in-big, .in-trio .in-num { font:500 25px "Outfit",var(--font-display); }
  .in-d { vertical-align:3px; margin-left:3px; font-size:8px; }
  .in-inline-note { display:none; }
  .in-mid { display:flex; flex-direction:column; gap:6px; }
  .in .in-chart { padding:8px 10px; }
  .in-section-title { font-size:11px; }
  .in-chart-controls button { min-height:44px; padding:5px 6px; }
  .in-chart svg { height:105px; }
  .in-chart-summary { margin:-3px 0 0; }
  .in-chart-footer { font-size:9px; }
  .in-chart-footer .in-text-btn { min-height:32px; }
  .in-tiles { flex-direction:row; gap:8px; padding:8px 10px; }
  .in .in-tile { flex:1; flex-direction:column; align-items:flex-start; gap:4px; padding:0; border:0; }
  .in-tile .in-lab { font-size:10px; }
  .in-tile .in-num { font-size:18px; }
  .in-task { min-height:44px; }
  .in-task .in-lab { display:none; }
  .in-low, .in-low--revenda { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .in .in-low .in-card { padding:8px; }
  .in-row { grid-template-columns:minmax(0,1fr) auto; gap:4px; min-height:30px; font-size:10px; padding:4px 0; }
  .in-row__bar { display:none; }
  .in-row__k { gap:3px; white-space:normal; overflow-wrap:anywhere; }
  .in-row__qty { font-size:9px; padding-left:0; }
  .in-dot { width:4px; height:4px; }
  .in-row--bot { min-height:44px; }
  .in-ult { grid-template-columns:1fr auto; gap:3px; }
  .in-ult__q { display:none; }
  .in-text-btn, .in-limit select { min-height:44px; }
  .in-mov-heading { gap:5px; }
  .in-mov-heading .in-lab, .in-limit select { font-size:10px; }
  .in-mov-tools .in-search { flex-basis:100%; }
  .in-mov-tools label:not(.in-search) { flex:1; min-width:0; }
  .in-mov-tools input, .in-mov-tools select { min-height:44px; }
  .in-mov__row { padding:7px 0; font-size:10px; }
  .in-mov-footer { align-items:flex-start; }
  .in-mov-footer__actions { gap:2px; }
  .in-ntpop { bottom:auto; width:min(400px,calc(100vw - 24px)); }
  .in-ntpop__x, .in-notif__lidas { min-height:44px; }
  .in-ntpop__x { min-width:44px; }
}
/* Métricas sob os produtos: cada rótulo fica junto do seu valor. */
.in .in-products .in-tiles { display:flex; flex-direction:column; margin-top:8px; gap:0; padding:5px 0 0; border:0; border-top:1px solid var(--border); border-radius:0; background:none; }
.in .in-products .in-tile { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:10px; padding:5px 0; border:0; min-width:0; }
.in .in-products .in-tile + .in-tile { border-top:1px solid var(--border); }
.in .in-products .in-tile .in-lab { font-size:11px; margin:0; }
.in .in-products .in-tile .in-num { font-size:18px; white-space:nowrap; }
.in #in-support-card .in-task__count { color:var(--accent); }
@media (max-width:760px) {
  .in .in-products .in-tile { gap:5px; padding:10px 0; flex-wrap:wrap; }
  .in .in-products .in-tile .in-lab { font-size:10px; }
  .in .in-products .in-tile .in-num { font-size:16px; }
}
@media (max-width:400px) {
  body:has(#in) .topbar--nav { gap:4px; padding-inline:8px; }
  body:has(#in) .topbar--nav .bot-hero { min-width:0; padding-inline:6px; }
  body:has(#in) .topbar--nav .bot-hero select { max-width:92px; min-width:0; }
  .in-trio .in-num { font-size:23px; }
}
@media (prefers-reduced-motion:reduce) { .in *, .in *::after { animation:none !important; transition:none !important; } }

/* in25 — mais presença no PC. Escopo #in: outras telas também usam inicio.css. */
body:has(#in) .content {
  max-width: 1460px;
}
#in {
  --in-edge: color-mix(in srgb, var(--accent) 16%, var(--border));
  --in-surface: linear-gradient(155deg, var(--surface-2), var(--surface) 64%);
}
#in .in-card:not(.in-tile),
#in .in-trio {
  border-radius: 14px;
  background: var(--in-surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent),
              0 8px 24px -18px rgb(0 0 0 / .45);
}
#in .in-livre {
  isolation: isolate;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background:
    radial-gradient(ellipse at 6% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%),
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 22%, transparent),
              0 12px 36px -24px color-mix(in srgb, var(--accent) 50%, transparent);
}
/* Arcos gravados e reflexo de entrada; só decoração, sem interceptar o toque. */
#in .in-livre::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -100% -55%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 36%, color-mix(in srgb, var(--accent) 10%, transparent) 48%, transparent 60%);
  animation: in-balance-light 1.4s cubic-bezier(.22, 1, .36, 1) both;
}
#in .in-livre::after {
  display: block;
  inset: auto -80px -160px auto;
  width: 300px;
  height: 300px;
  opacity: .7;
  z-index: -1;
  background: repeating-radial-gradient(circle, transparent 0 31px, color-mix(in srgb, var(--accent) 13%, transparent) 32px 33px, transparent 34px 58px);
}
#in .in-livre__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
#in .in-livre__icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}
#in .in-big {
  overflow-wrap: anywhere;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--accent) 15%, transparent);
}
#in .in-big.is-espera { color: var(--text-3); text-shadow: none; }
#in .in-btn {
  box-shadow: 0 4px 16px -6px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
#in .in-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
#in .in-row__bar b {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--surface)), var(--accent));
}
#in .in-row--bot { transition: background .16s ease; }
#in .in-task {
  border-color: var(--in-edge);
  background: linear-gradient(100deg, var(--accent-soft), var(--surface) 65%);
  border-radius: 12px;
}
@keyframes in-balance-light {
  from { opacity: 0; transform: translateX(-22%); }
  to { opacity: 1; transform: translateX(0); }
}
@media (min-width: 761px) {
  body:has(#in) .content { padding: 16px 28px 28px; }
  body:has(#in) .secnav { margin-bottom: 8px; }
  #in { gap: 14px; }
  #in .in-welcome { top: 16px; right: 28px; }
  #in .in-refresh, #in .in-bell { min-height: 38px; }
  #in .in-bar { gap: 10px; }
  #in .in-pills .seg__btn { min-height: 38px; padding-inline: 12px; font-size: 12px; }
  #in .in-atalhos { gap: 4px; }
  #in .in-atalho { height: 38px; padding-inline: 6px; gap: 7px; font-size: 12px; }
  #in .in-atalho__ico { width: 28px; height: 28px; border-radius: 8px; }
  #in .in-atalho__ico svg { width: 16px; height: 16px; }
  #in .in-card:not(.in-tile) { padding: 12px 16px; }
  #in .in-lab { font-size: 12px; margin-bottom: 8px; }
  #in .in-hero { grid-template-columns: 1.15fr 2.55fr; gap: 14px; }
  #in .in-livre { min-height: 96px; gap: 16px; }
  #in .in-livre__label { margin-bottom: 12px; }
  #in .in-big { font-size: 36px; line-height: 1.05; }
  #in .in-btn { min-height: 42px; padding-inline: 16px; font-size: 12px; border-radius: 9px; }
  #in .in-trio { padding-block: 18px; align-items: center; }
  #in .in-trio > div { padding-inline: 20px; }
  #in .in-trio .in-num { font-size: 32px; line-height: 1.1; }
  #in .in-d { font-size: 10px; padding: 3px 5px; }
  #in .in-low { gap: 14px; }
  #in .in-section-title { font-size: 14px; }
  #in .in-chart-controls button { min-height: 34px; font-size: 11px; padding-inline: 10px; border-radius: 7px; }
  #in .in-chart-summary { margin: 6px 0 10px; }
  #in .in-chart-summary strong { font-size: 17px; }
  #in .in-chart text { font-size: 11px; }
  #in .in-chart-footer { min-height: 30px; font-size: 11px; }
  #in .in-text-btn, #in .in-limit select { min-height: 34px; font-size: 12px; }
  #in .in-row { min-height: 30px; padding-block: 6px; font-size: 12px; gap: 8px; }
  #in .in-row__qty { font-size: 11px; }
  #in .in-row__bar { height: 5px; }
  #in .in-products .in-tiles { margin-top: 10px; padding-top: 4px; }
  #in .in-products .in-tile { min-height: 32px; padding-block: 5px; }
  #in .in-products .in-tile .in-lab { font-size: 12px; margin: 0; }
  #in .in-products .in-tile .in-num { font-size: 20px; }
  #in .in-task { min-height: 40px; padding: 10px 14px; font-size: 12px; gap: 10px; }
  #in .in-task__count { font-size: 15px; }
  #in .in-mov-heading { margin-bottom: 8px; }
  #in .in-mov-heading > .in-lab { margin: 0; }
  #in .in-mov__row { padding-block: 8px; font-size: 12px; gap: 14px; }
  #in .in-mov__head { padding-block: 7px; font-size: 10px; }
  #in .in-mov__p small { font-size: 10px; }
  #in .in-fonte { font-size: 11px; }
}
@media (min-width: 1000px) {
  #in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  #in #in-chart { min-height: 120px; }
}
@media (min-width: 1440px) {
  body:has(#in) .content { padding-top: 24px; }
  body:has(#in) .secnav { margin-bottom: 12px; }
  #in { gap: 16px; }
  #in .in-welcome { top: 24px; }
  #in .in-hero, #in .in-low { gap: 16px; }
  #in .in-card:not(.in-tile) { padding: 16px 20px; }
  #in .in-livre { min-height: 108px; }
  #in .in-big { font-size: 40px; }
  #in .in-trio .in-num { font-size: 36px; }
  #in .in-trio > div { padding-inline: 24px; }
  #in .in-lab, #in .in-atalho { font-size: 13px; }
  #in .in-row { min-height: 32px; font-size: 13px; }
  #in .in-products .in-tile { min-height: 36px; }
  #in .in-products .in-tile .in-lab { font-size: 13px; }
  #in .in-mov__row { padding-block: 9px; font-size: 13px; }
  #in .in-mov__head { padding-block: 8px; font-size: 10px; }
}
@media (min-width: 761px) and (max-width: 1099px) {
  #in .in-bar__sp { display: none; }
  #in .in-atalhos { margin-left: 0; }
  #in .in-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); }
  #in .in-livre { flex-wrap: wrap; gap: 10px; }
  #in .in-trio > div { padding-inline: 12px; }
  #in .in-trio .in-num { font-size: 28px; }
}
@media (max-width: 760px) {
  #in .in-livre__label { gap: 4px; min-height: 30px; }
  #in .in-livre__icon { width: 13px; height: 13px; }
  #in .in-livre .in-btn { box-shadow: none; }
  #in .in-livre::after { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
  #in *, #in *::before, #in *::after { animation: none !important; transition: none !important; }
}

/* Detalhes: alvos visíveis por mouse, toque e teclado, sem alterar a composição. */
#in [data-in-detail] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#in [data-in-detail]:hover { background-color: var(--accent-soft); }
#in [data-in-detail]:focus-visible, #in .in-client-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 5px; }
#in .in-client-link { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
#in .in-client-link:hover { color: var(--accent); text-decoration-color: currentColor; }
#in .in-mov__v { border: 0; background: none; padding: 0; cursor: pointer; font-size: inherit; }
#in .in-chart-summary > button { color: inherit; text-align: left; }
#in a.in-livre:hover { border-color: var(--accent); }
#in a.in-livre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.in-detail-open { overflow: hidden; }
.in-detail { position: fixed; inset: 0; margin: auto; width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--border-strong); border-radius: 18px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-pop); font: 400 13px "Onest", var(--font); overflow-y: auto; overscroll-behavior: contain; }
.in-detail::backdrop { background: rgb(0 0 0 / .7); }
.in-detail-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.in-detail-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.in-detail-head p { margin: 6px 0 0; color: var(--text-2); font-size: 12px; }
#in-detail-close { width: 44px; height: 44px; flex: none; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 25px; cursor: pointer; }
#in-detail-body { padding: 20px 24px 24px; }
.in-detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.in-detail-stats > div { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.in-detail-stats > div:only-child { grid-column: 1 / -1; }
.in-detail-stats dt { color: var(--text-2); font-size: 12px; }
.in-detail-stats dd { margin: 6px 0 0; font: 500 29px/1.2 "Outfit", var(--font-display); color: var(--accent); overflow-wrap: anywhere; }
.in-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.in-detail-row > div { min-width: 0; }
.in-detail-row > div:last-child { text-align: right; }
.in-detail-row strong, .in-detail-row b { font-weight: 600; }
.in-detail-row small { display: block; margin-top: 5px; font-size: 11px; color: var(--text-2); }
.in-detail-row .in-detail-link { display: block; margin: 3px 0 0; padding: 8px 0; font-size: 11px; }
.in-detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 12px 16px 0 0; color: var(--accent); font: 500 12px "Onest", var(--font); cursor: pointer; }
.in-detail .in-client-link { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; }
.in-detail-note { color: var(--text-2); line-height: 1.6; margin: 12px 0; }
.in-detail-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.in-detail-table caption { text-align: left; color: var(--text-2); padding-bottom: 12px; }
.in-detail-table :is(td, th) { padding: 10px 4px; border-bottom: 1px solid var(--border); text-align: right; overflow-wrap: anywhere; }
.in-detail-table :is(td, th):first-child { text-align: left; }
.in-detail :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  #in .in-mov__c .in-client-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  #in .in-mov__v, #in .in-row[data-in-detail], #in .in-products .in-tile[data-in-detail] { min-height: 44px; }
  .in-detail { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .in-detail-head { padding: 14px; gap: 8px; }
  .in-detail-head h2 { font-size: 18px; }
  #in-detail-body { padding: 14px; }
  .in-detail-row { gap: 10px; font-size: 12px; }
  .in-detail-stats > div { padding: 12px; }
  .in-detail-stats dd { font-size: 24px; }
}
#in .in-ult__v { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
#in .in-mov-heading > [data-in-detail] { text-align: left; color: var(--text-2); }
@media (max-width: 760px) { #in .in-ult__v { min-height: 44px; } }
