/* Admin: estrutura nova (menu lateral + topo) e visão geral em cartões. Tema claro; as cores ficam em variáveis para o escuro depois. */
.admin-app {
  --a-bg: #f3f6fb; --a-card: #ffffff; --a-line: #e6ebf3; --a-text: #17233d; --a-muted: #6b7a93; --a-accent: #1d5cff; --a-accent-soft: #e8efff;
  --a-good: #12805c; --a-good-soft: #e3f5ee; --a-bad: #c0392b; --a-bad-soft: #fdeceb; --a-warn: #b26a00; --a-warn-soft: #fff3dc; --a-radius: 16px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 0 48px; color: var(--a-text); position: relative;
}
.admin-side { position: sticky; top: 76px; align-self: start; height: calc(100vh - 92px); overflow-y: auto; padding: 18px 12px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); margin: 16px 0 0 16px; }
.admin-side__title { margin: 4px 10px 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--a-muted); }
.admin-side nav { display: grid; gap: 4px; }
.admin-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--a-text); text-decoration: none; font-weight: 600; font-size: .93rem; }
.admin-side a svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--a-muted); }
.admin-side a:hover { background: var(--a-bg); }
.admin-side a.is-active { background: var(--a-accent-soft); color: var(--a-accent); }
.admin-side a.is-active svg { color: var(--a-accent); }
.admin-main { min-width: 0; padding: 16px 16px 0 20px; }
.admin-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.admin-topbar__title { flex: 1; min-width: 0; }
.admin-topbar__title h1 { margin: 0; font-size: 1.55rem; line-height: 1.15; }
.admin-topbar__title p { margin: 4px 0 0; color: var(--a-muted); font-size: .92rem; }
.admin-topbar__right { display: flex; align-items: center; gap: 10px; }
.admin-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-card); cursor: pointer; align-items: center; justify-content: center; }
.admin-burger svg { width: 22px; height: 22px; fill: none; stroke: var(--a-text); stroke-width: 2; stroke-linecap: round; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-card); }
.admin-user__avatar { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--a-accent); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.admin-user__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admin-user b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user b { display: block; font-size: .85rem; line-height: 1.1; }
.admin-user small { color: var(--a-muted); font-size: .74rem; }
.admin-scrim { display: none; }
.admin-app .admin-card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 20px; }
.admin-content--dash { padding: 0; background: transparent; border: 0; }

/* Visão geral */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dash-card { grid-column: span 4; background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 18px; min-width: 0; box-shadow: 0 1px 2px rgba(23, 35, 61, .04); }
.dash-wide { grid-column: span 8; }
.dash-card h3 { margin: 0; font-size: 1rem; }
.dash-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dash-card__head small { color: var(--a-muted); }
.dash-link { background: none; border: 0; padding: 0; color: var(--a-accent); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; margin-left: auto; }
.dash-kpi__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dash-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--a-accent-soft); color: var(--a-accent); }
.dash-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-kpi__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dash-kpi__value { display: block; font-size: 1.85rem; line-height: 1.1; letter-spacing: -.01em; }
.dash-kpi__body p { margin: 8px 0 0; font-size: .82rem; color: var(--a-muted); }
.dash-delta { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .78rem; }
.dash-delta.is-up { background: var(--a-good-soft); color: var(--a-good); }
.dash-delta.is-down { background: var(--a-bad-soft); color: var(--a-bad); }
.dash-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; flex: 1; max-width: 150px; justify-content: flex-end; }
.dash-bars i { flex: 1; min-width: 5px; max-width: 10px; border-radius: 4px; background: #d6dff0; }
.dash-bars i.is-last { background: var(--a-accent); }
.dash-goal__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-goal dl { margin: 0; display: grid; gap: 10px; }
.dash-goal dt { font-size: .75rem; color: var(--a-muted); text-transform: uppercase; letter-spacing: .06em; }
.dash-goal dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.dash-gauge { position: relative; width: 150px; flex: none; }
.dash-gauge svg { width: 100%; display: block; }
.dash-gauge path { fill: none; stroke-width: 16; stroke-linecap: round; }
.dash-gauge__track { stroke: #e3e9f4; }
.dash-gauge__fill { stroke: var(--a-accent); }
.dash-gauge strong { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 1.35rem; }
.dash-goal__form { margin-top: 14px; display: grid; gap: 10px; }
.dash-goal__form label { display: grid; gap: 4px; font-size: .8rem; color: var(--a-muted); }
.dash-goal__form input { padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 10px; font: inherit; color: var(--a-text); }
.dash-goal__form div { display: flex; gap: 8px; justify-content: flex-end; }
.dash-form-error { margin: 0; color: var(--a-bad); font-size: .85rem; }
.dash-chart { width: 100%; height: auto; color: var(--a-accent); display: block; }
.dash-chart__grid line { stroke: var(--a-line); stroke-dasharray: 3 4; }
.dash-chart__grid text, .dash-chart__labels text { fill: var(--a-muted); font-size: 11px; }
.dash-chart__line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dash-chart__dots circle { fill: #fff; stroke: currentColor; stroke-width: 2; opacity: 0; }
.dash-chart__dots circle:hover { opacity: 1; }
.dash-heat { display: grid; gap: 6px; }
.dash-heat__row { display: grid; grid-template-columns: minmax(70px, 1.3fr) repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; }
.dash-heat__row span { font-size: .8rem; color: var(--a-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-heat__row b { font-size: .7rem; color: var(--a-muted); text-align: center; font-weight: 600; }
.dash-heat__row i { height: 22px; border-radius: 6px; background: #eef1f7; }
.dash-heat__row i.lv1 { background: #c9dafe; } .dash-heat__row i.lv2 { background: #92b4fd; } .dash-heat__row i.lv3 { background: #5b8dfb; } .dash-heat__row i.lv4 { background: var(--a-accent); }
.dash-bar { margin-bottom: 14px; }
.dash-bar__label { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; margin-bottom: 6px; }
.dash-bar__label span { color: var(--a-muted); }
.dash-bar__track { height: 12px; border-radius: 999px; background: #e9eef8; overflow: hidden; }
.dash-bar__track i { display: block; height: 100%; border-radius: 999px; background: var(--a-accent); }
.dash-bar__track.is-warn i { background: var(--a-bad); }
.dash-note { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .84rem; background: var(--a-good-soft); color: var(--a-good); }
.dash-note.is-warn { background: var(--a-warn-soft); color: var(--a-warn); }
.dash-reviews, .dash-stock { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-reviews li { padding: 12px; border-radius: 12px; background: var(--a-bg); }
.dash-reviews li div { display: flex; justify-content: space-between; gap: 8px; }
.dash-reviews p { margin: 6px 0 4px; font-size: .88rem; }
.dash-reviews small { color: var(--a-muted); }
.dash-stars { color: #f5a623; letter-spacing: 1px; }
.dash-stock li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--a-bg); }
.dash-stock small { display: block; color: var(--a-muted); }
.dash-pill { padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.dash-pill.is-low { background: var(--a-warn-soft); color: var(--a-warn); }
.dash-pill.is-out { background: var(--a-bad-soft); color: var(--a-bad); }
.dash-empty { color: var(--a-muted); padding: 12px; text-align: center; }

@media (max-width: 1100px) { .dash-card { grid-column: span 6; } .dash-wide { grid-column: span 12; } }
@media (max-width: 900px) {
  .admin-app { grid-template-columns: minmax(0, 1fr); }
  .admin-burger { display: inline-flex; }
  .admin-main { padding: 12px 12px 0; }
  .admin-side { position: fixed; z-index: 70; inset: 0 auto 0 0; width: min(290px, 84vw); height: 100%; margin: 0; border-radius: 0 var(--a-radius) var(--a-radius) 0; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 10px 40px rgba(0, 0, 0, .2); }
  .admin-app.is-menu-open .admin-side { transform: translateX(0); }
  .admin-app.is-menu-open .admin-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .45); }
  .admin-user div { display: none; }
  .admin-user { padding: 4px; }
  .admin-topbar__title h1 { font-size: 1.25rem; }
}
@media (max-width: 640px) {
  .dash { gap: 12px; }
  .dash-card, .dash-wide { grid-column: span 12; padding: 16px; }
  .dash-kpi__value { font-size: 1.6rem; }
  .dash-goal__body { flex-direction: column; align-items: stretch; }
  .dash-gauge { margin: 0 auto; }
  .admin-topbar__right .button { display: none; }
}
@media (prefers-reduced-motion: reduce) { .admin-side { transition: none; } }

/* Admin: telas internas (produtos, aprovação, tabelas) no mesmo estilo */
.admin-app .admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-app .admin-section-head h2 { margin: 0; font-size: 1.2rem; }
.admin-app .admin-section-head p { margin: 4px 0 0; color: var(--a-muted); font-size: .9rem; }
.admin-app .admin-section-count { color: var(--a-muted); font-weight: 600; }
.admin-app .admin-product-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; padding: 14px; background: var(--a-bg); border-radius: 14px; align-items: end; }
.admin-app .admin-filter { display: grid; gap: 5px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--a-muted); font-weight: 600; }
.admin-app .admin-filter--search { grid-column: span 2; }
.admin-app .admin-filter input, .admin-app .admin-filter select { padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; font: inherit; font-size: .92rem; text-transform: none; letter-spacing: 0; color: var(--a-text); min-width: 0; }
.admin-app .admin-filter input:focus, .admin-app .admin-filter select:focus { outline: 2px solid var(--a-accent); outline-offset: 0; border-color: transparent; }
.admin-app .admin-table-wrap { border: 1px solid var(--a-line); border-radius: 14px; overflow: auto; }
.admin-app .admin-table th { background: var(--a-bg); color: var(--a-muted); }
.admin-app .admin-table tbody tr:hover { background: #f8faff; }
.admin-app .admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-app .admin-table td strong { color: var(--a-text); }

.admin-app .admin-empty { padding: 28px; text-align: center; border: 1px dashed var(--a-line); border-radius: 14px; color: var(--a-muted); display: grid; gap: 4px; }
.admin-app .admin-empty strong { color: var(--a-text); }
.admin-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; background: #eef1f7; color: #4a5a75; }
.admin-chip--active { background: var(--a-good-soft); color: var(--a-good); }
.admin-chip--draft { background: #eef1f7; color: #4a5a75; }
.admin-chip--archived { background: #f1e9ea; color: #8a5a60; }
.admin-chip--pending { background: var(--a-warn-soft); color: var(--a-warn); }
.admin-product-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-thumb { width: 48px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: #e9eef8; display: block; }
.admin-thumb--empty { border: 1px dashed var(--a-line); }
.admin-review-list { display: grid; gap: 14px; }
.admin-review-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--a-line); border-radius: 16px; background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.admin-review-card:hover { border-color: #cdd9f3; box-shadow: 0 6px 20px rgba(29, 92, 255, .08); }
.admin-review-card__cover { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e9eef8; display: grid; place-items: center; color: var(--a-muted); font-size: .8rem; }
.admin-review-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-review-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.admin-review-card__head strong { display: block; font-size: 1.05rem; }
.admin-review-card__head small { color: var(--a-muted); word-break: break-all; }
.admin-review-card dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; }
.admin-review-card dt { font-size: .72rem; color: var(--a-muted); text-transform: uppercase; letter-spacing: .06em; }
.admin-review-card dd { margin: 2px 0 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.admin-review-card dl > div { min-width: 0; }
.admin-app .admin-approval-detail { margin-top: 22px; padding: 20px; border: 1px solid var(--a-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(23, 35, 61, .08); }
.admin-app .admin-approval-detail__grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; margin-bottom: 16px; }
.admin-app .admin-approval-detail__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.admin-app .admin-approval-detail__facts p { margin: 0; display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--a-bg); }
.admin-app .admin-approval-detail__facts strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); }
.admin-app .admin-approval-detail__copy { padding: 14px; border-radius: 12px; background: var(--a-bg); margin-bottom: 16px; }
.admin-app .admin-approval-detail__copy p { margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; }
.admin-app .admin-approval-history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-app .admin-approval-history li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--a-bg); font-size: .88rem; }
.admin-app .admin-approval-action-form { margin-top: 16px; display: grid; gap: 12px; }
.admin-app .admin-approval-action-form textarea { width: 100%; padding: 12px; border: 1px solid var(--a-line); border-radius: 12px; font: inherit; resize: vertical; }
.admin-app .admin-approval-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-app .admin-approval-actions .button--primary { background: var(--a-good); border-color: var(--a-good); }
.admin-app .button--danger { background: var(--a-bad); border-color: var(--a-bad); color: #fff; }
.admin-app .admin-cover-preview { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #e9eef8; display: grid; place-items: center; color: var(--a-muted); }
.admin-app .admin-cover-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .admin-review-card { grid-template-columns: 110px minmax(0, 1fr); }
  .admin-review-card__action { grid-column: 1 / -1; }
  .admin-review-card__action .button { flex: 1; }
  .admin-app .admin-approval-detail__grid { grid-template-columns: 1fr; }
  .admin-app .admin-filter--search { grid-column: auto; }
}
@media (max-width: 720px) {
  .admin-app .admin-card { padding: 14px; }
  .admin-app .admin-section-head { flex-direction: column; }
  .admin-app .admin-table-wrap { border: 0; overflow: visible; }
  .admin-app .admin-table { min-width: 0; }
  .admin-app .admin-table thead { display: none; }
  .admin-app .admin-table, .admin-app .admin-table tbody, .admin-app .admin-table tr, .admin-app .admin-table td { display: block; width: 100%; }
  .admin-app .admin-table tr { border: 1px solid var(--a-line); border-radius: 14px; padding: 8px 12px; margin-bottom: 12px; background: #fff; }
  .admin-app .admin-table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--a-line); text-align: right; }
  .admin-app .admin-table td:last-child { border-bottom: 0; }
  .admin-app .admin-table td::before { content: attr(data-label); color: var(--a-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; flex: none; }
  .admin-app .admin-table td > small { text-align: right; }
  .admin-app .admin-table td .button { white-space: nowrap; }
  .admin-app .admin-approval-detail__facts { grid-template-columns: 1fr; }
  .admin-app .admin-approval-actions .button { flex: 1 1 100%; }
}
/* Botões de ação, aprovação rápida e atualização silenciosa */
.admin-actions { display: grid; gap: 6px; min-width: 104px; }
.admin-actions .button { width: 100%; justify-content: center; text-align: center; margin: 0; }
.admin-review-card__action { display: flex; gap: 8px; align-items: center; }
.admin-app .button--approve { background: var(--a-good); border: 1px solid var(--a-good); color: #fff; }
.admin-app .button--approve:hover { filter: brightness(1.06); }
.admin-app .button--approve.is-armed { background: #b45309; border-color: #b45309; animation: adminArmed .5s ease; }
@keyframes adminArmed { 0% { transform: scale(.96); } 100% { transform: scale(1); } }
.admin-review-card { transition: opacity .25s ease, transform .25s ease, box-shadow .15s ease, border-color .15s ease; }
.admin-review-card.is-leaving { opacity: 0; transform: scale(.98) translateX(12px); pointer-events: none; }
.admin-app [data-admin-content] { transition: opacity .15s ease; }
.admin-app [data-admin-content].is-busy { opacity: .82; }
.admin-toasts { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.admin-toast { padding: 12px 16px; border-radius: 12px; background: #12805c; color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); transition: opacity .4s ease, transform .4s ease; }
.admin-toast--error { background: #c0392b; }
.admin-toast.is-out { opacity: 0; transform: translateY(8px); }
@media (max-width: 720px) { .admin-actions { grid-template-columns: 1fr 1fr; min-width: 0; width: 100%; } .admin-toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
/* Menu: grupo "Mais" recolhido */
.admin-side__more { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--a-line); }
.admin-side__more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; cursor: pointer; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--a-muted); border-radius: 10px; }
.admin-side__more summary::-webkit-details-marker { display: none; }
.admin-side__more summary::after { content: "▾"; font-size: .9rem; transition: transform .15s ease; }
.admin-side__more:not([open]) summary::after { transform: rotate(-90deg); }
.admin-side__more summary:hover { background: var(--a-bg); }
.admin-side__more nav { margin-top: 4px; }
/* Visão geral: dicas ao passar o mouse e animações de entrada */
.dash-bars i { position: relative; cursor: pointer; transition: background .15s ease; outline: none; }
.dash-bars i::before { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; top: -400%; }
.dash-bars i:hover, .dash-bars i:focus-visible { background: #9db6f5; }
.dash-bars i.is-last:hover, .dash-bars i.is-last:focus-visible { background: #0f45d6; }
.dash-chart-wrap { position: relative; }
.dash-hit { fill: transparent; cursor: crosshair; }
.dash-guide { stroke: var(--a-accent); stroke-opacity: .4; stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.dash-focus { fill: #fff; stroke: var(--a-accent); stroke-width: 3; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.dash-guide.is-on, .dash-focus.is-on { opacity: 1; }
.dash-tip { position: fixed; z-index: 95; transform: translate(-50%, -100%); display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; background: #0f1b33; color: #fff; font-size: .82rem; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 28px rgba(15, 27, 51, .3); }
.dash-tip[hidden] { display: none; }
.dash-tip b { font-size: .72rem; font-weight: 600; opacity: .75; text-transform: capitalize; }
.dash-tip span { font-size: .98rem; font-weight: 700; }
.dash-tip small { opacity: .7; }
@keyframes dashReveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dashBar { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes dashGauge { from { stroke-dasharray: 0 100; } }
@keyframes dashRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Velocidade da animação de entrada: --dash-t multiplica todos os tempos (1 = rápido, 2.2 = calmo, 3 = bem lento). */
.dash--animate { --dash-t: 2.2; }
.dash--animate .dash-reveal { transform-box: fill-box; transform-origin: 0 50%; animation: dashReveal calc(1.5s * var(--dash-t)) cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(.15s * var(--dash-t)); }
.dash--animate .dash-bars i { transform-origin: bottom; animation: dashBar calc(.55s * var(--dash-t)) cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(var(--i) * 50ms * var(--dash-t)); }
.dash--animate .dash-gauge__fill { animation: dashGauge calc(1.2s * var(--dash-t)) cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(.2s * var(--dash-t)); }
.dash--animate .dash-card { animation: dashRise calc(.45s * var(--dash-t)) ease both; }
.dash--animate .dash-card:nth-child(2) { animation-delay: calc(.06s * var(--dash-t)); }
.dash--animate .dash-card:nth-child(3) { animation-delay: calc(.12s * var(--dash-t)); }
.dash--animate .dash-card:nth-child(n+4) { animation-delay: calc(.18s * var(--dash-t)); }
@media (prefers-reduced-motion: reduce) { .dash--animate *, .dash--animate .dash-card { animation: none !important; } }
/* Listas de opções e calendário de período */
.pselect { position: relative; min-width: 0; }
.pselect__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pselect__btn, .range-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; font: inherit; font-size: .92rem; color: var(--a-text); text-transform: none; letter-spacing: 0; text-align: left; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.pselect__btn:hover, .range-btn:hover { border-color: #c4d2ee; }
.pselect__btn:focus-visible, .range-btn:focus-visible, .pselect.is-open .pselect__btn, .range-btn[aria-expanded="true"] { outline: none; border-color: var(--a-accent); box-shadow: 0 0 0 3px rgba(29, 92, 255, .15); }
.pselect__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pselect__btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--a-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.pselect.is-open .pselect__btn svg { transform: rotate(180deg); }
.pselect__list { position: absolute; z-index: 60; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: min(360px, 86vw); max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--a-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 27, 51, .18); text-transform: none; letter-spacing: 0; animation: pselectIn .12s ease; }
.pselect.is-up .pselect__list { top: auto; bottom: calc(100% + 6px); }
.pselect__list[hidden] { display: none; }
.pselect__list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 9px; font-size: .92rem; font-weight: 500; color: var(--a-text); cursor: pointer; white-space: nowrap; }
.pselect__list li.is-active { background: var(--a-accent-soft); }
.pselect__list li.is-selected { color: var(--a-accent); font-weight: 700; }
.pselect__list li.is-selected::after { content: "✓"; font-weight: 700; }
.pselect__list li.is-disabled { opacity: .45; cursor: default; }
@keyframes pselectIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.range-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--a-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; order: -1; }
.range-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.admin-app .admin-filter--range { min-width: 190px; }
.rangepop { position: fixed; z-index: 96; width: 320px; max-width: calc(100vw - 20px); padding: 14px; background: #fff; border: 1px solid var(--a-line, #e6ebf3); border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 27, 51, .22); color: #17233d; font-family: inherit; animation: pselectIn .14s ease; }
.rangepop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rangepop__head strong { font-size: 1rem; }
.rangepop__nav { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f3f6fb; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #17233d; }
.rangepop__nav:hover { background: #e8efff; color: #1d5cff; }
.rangepop__week, .rangepop__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.rangepop__week span { text-align: center; font-size: .72rem; font-weight: 700; color: #6b7a93; padding: 6px 0; }
.rangepop__grid { row-gap: 2px; }
.rangepop__day { position: relative; height: 38px; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; font-size: .9rem; color: #17233d; }
.rangepop__day span { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; }
.rangepop__day:hover span { background: #e8efff; }
.rangepop__day.is-other { color: #aab4c6; }
.rangepop__day.is-today span { box-shadow: inset 0 0 0 1.5px #1d5cff; }
.rangepop__day.is-in { background: #e8efff; }
.rangepop__day.is-start { border-radius: 19px 0 0 19px; }
.rangepop__day.is-end { border-radius: 0 19px 19px 0; }
.rangepop__day.is-single { border-radius: 19px; background: transparent; }
.rangepop__day.is-start span, .rangepop__day.is-end span { background: #1d5cff; color: #fff; font-weight: 700; }
.rangepop__hint { min-height: 1.3em; margin: 10px 2px 8px; font-size: .82rem; color: #6b7a93; }
.rangepop__foot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid #edf0f5; }
.rangepop__foot button { padding: 6px 12px; border: 1px solid #e1e8f5; border-radius: 999px; background: #fff; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: #17233d; }
.rangepop__foot button:hover { border-color: #1d5cff; color: #1d5cff; }
.rangepop__foot .is-clear { margin-left: auto; color: #c0392b; }
@media (max-width: 520px) { .rangepop { left: 10px !important; right: 10px; width: auto; } }
/* Pedidos/usuários/saúde: etiquetas, paginação e cartões */
.admin-chip--paid { background: var(--a-good-soft); color: var(--a-good); }
.admin-chip--bad { background: var(--a-bad-soft); color: var(--a-bad); }
.admin-app .admin-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; background: var(--a-bg); border-radius: 14px; font-size: .88rem; color: var(--a-muted); }
.admin-app .admin-pagination label { display: flex; align-items: center; gap: 8px; }
.admin-app .admin-pagination .pselect { min-width: 84px; }
.admin-app .admin-pagination__actions { display: flex; align-items: center; gap: 10px; }
.admin-app .admin-pagination__actions strong { color: var(--a-text); font-size: .86rem; white-space: nowrap; }
.admin-app .admin-health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.admin-health-card { padding: 16px; border: 1px solid var(--a-line); border-radius: 16px; background: #fff; display: grid; gap: 8px; align-content: start; }
.admin-health-card.is-warn { border-color: #f1d9a8; background: #fffaf0; }
.admin-health-card.is-ok { border-color: #cdeadf; background: #f5fcf9; }
.admin-health-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-health-card h3 { margin: 0; font-size: .98rem; }
.admin-health-card__top strong { font-size: 1.9rem; line-height: 1; }
.admin-health-card.is-warn .admin-health-card__top strong { color: var(--a-warn); }
.admin-health-card.is-ok .admin-health-card__top strong { color: var(--a-good); }
.admin-health-card p { margin: 0; color: var(--a-muted); font-size: .86rem; }
.admin-health-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.admin-health-card li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(0, 0, 0, .05); font-size: .88rem; font-weight: 600; }
.admin-health-card li small { display: block; color: var(--a-warn); font-weight: 600; }
.admin-health-more { color: var(--a-muted); font-weight: 500 !important; }
.admin-health-ok { color: var(--a-good); font-weight: 700; font-size: .9rem; }
@media (max-width: 720px) { .admin-app .admin-pagination { flex-direction: column; align-items: stretch; } .admin-app .admin-pagination__actions { justify-content: space-between; } }
/* Ajustes de responsividade (360px até monitores grandes) */
.admin-review-card__head { flex-wrap: wrap; }
.admin-review-card__head > div { min-width: 0; flex: 1 1 150px; }
.admin-review-card__body { min-width: 0; }
.admin-review-card__head strong { overflow-wrap: anywhere; }
.dash-kpi__body { flex-wrap: wrap; }
.dash-kpi__body > div { min-width: 0; }
.dash-kpi__body p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dash-kpi__body p small { white-space: nowrap; }
.dash-bars { min-width: 84px; }
.dash-card__head { flex-wrap: wrap; }
.dash-card__head small { text-align: right; }
.dash-kpi__value { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .admin-review-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .admin-review-card__cover { aspect-ratio: 16 / 9; }
  .admin-review-card__action .button { padding-left: 10px; padding-right: 10px; }
  .dash-card__head small { text-align: left; }
  .admin-topbar { gap: 10px; }
  .admin-topbar__right { gap: 6px; }
}
@media (min-width: 721px) and (max-width: 1180px) {
  .admin-app .admin-table { font-size: .88rem; min-width: 0; }
  .admin-app .admin-table th, .admin-app .admin-table td { padding: 10px 8px; }
  .admin-app .admin-table th { font-size: .7rem; letter-spacing: .05em; }
}
/* Esqueleto de carregamento */
.dash-skel-lines { display: grid; gap: 12px; padding: 6px 2px; }
.dash-skel-lines i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eef1f7 25%, #f8f9fc 45%, #eef1f7 65%); background-size: 220% 100%; animation: dashShimmer 1.3s ease-in-out infinite; }
.dash-skel-lines i:nth-child(1) { width: 55%; height: 18px; }
.dash-skel-lines i:nth-child(2) { width: 85%; }
.dash-skel-lines i:nth-child(3) { width: 40%; }
.dash-skel { min-height: 130px; }
.dash-skel--tall { min-height: 260px; }
@keyframes dashShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .dash-skel-lines i { animation: none; } }
/* Parte societária (rodapé da visão geral) */
.dash-full { grid-column: 1 / -1; }
.ptn-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.ptn-flow { display: grid; gap: 2px; }
.ptn-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--a-line); align-items: baseline; }
.ptn-row span { display: grid; gap: 2px; }
.ptn-row small, .ptn-list small, .ptn-person small { color: var(--a-muted); font-size: .78rem; font-weight: 400; }
.ptn-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptn-row.is-minus b { color: var(--a-muted); }
.ptn-row.is-sum { font-weight: 700; }
.ptn-row.is-total { border-bottom: 0; padding-top: 12px; font-size: 1.05rem; font-weight: 800; }
.ptn-row.is-total b { color: var(--a-good); }
.ptn-rate { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; }
.ptn-rate label, .ptn-cost input { font-size: .85rem; }
.ptn-rate label { display: grid; gap: 4px; color: var(--a-muted); }
.ptn-rate input, .ptn-cost input, .ptn-cost select { border: 1px solid var(--a-line); border-radius: 10px; padding: 8px 10px; background: var(--a-card); color: inherit; font: inherit; min-width: 0; }
.ptn-rate input { width: 110px; }
.ptn-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ptn-person { border: 1px solid var(--a-line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.ptn-person h4 { margin: 0; font-size: .9rem; color: var(--a-muted); }
.ptn-person strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.ptn-person dl { margin: 8px 0 0; display: grid; gap: 2px; font-size: .82rem; }
.ptn-person dt { color: var(--a-muted); }
.ptn-person dd { margin: 0 0 4px; font-weight: 600; }
.ptn-lists { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 18px; }
.ptn-lists h4 { margin: 0 0 8px; font-size: .9rem; }
.ptn-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ptn-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--a-line); }
.ptn-list li > span { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ptn-list li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptn-x { border: 0; background: none; color: var(--a-muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.ptn-x:hover { color: var(--a-bad); background: var(--a-bad-soft); }
.ptn-cost { display: grid; grid-template-columns: 1fr 100px; gap: 8px; margin-top: 12px; }
.ptn-cost select { grid-column: auto; }
.ptn-add { grid-column: 1 / -1; border: 0; border-radius: 10px; padding: 9px 14px; background: var(--a-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ptn-add:disabled { opacity: .6; cursor: default; }
.ptn-cost .dash-form-error { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .ptn-grid, .ptn-lists { grid-template-columns: 1fr; }
  .dash-card:has(.ptn-grid) { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .ptn-people { grid-template-columns: 1fr; } .ptn-cost { grid-template-columns: 1fr; } }