/* ==========================================================================
   Mockup animado do Dashboard do Scal (fiel ao app.sistemascal.com.br/dashboard)
   <div class="dm" data-dashboard-mockup role="img" aria-label="..."></div>
   + assets/mockups/dashboard-mockup.css e dashboard-mockup.js (defer)
   Dados fictícios. Prints de referência em assets/mockups/originais/dashboard/.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

.dm { position: relative; width: 100%; overflow: hidden; contain: layout paint; border-radius: 14px; }
.dm-app {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  background: #F5F6FA; color: #204561;
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif; font-size: 16px; line-height: 1.25;
  -webkit-font-smoothing: antialiased; user-select: none; pointer-events: none;
  padding: 26px 28px 0; box-sizing: border-box;
}
.dm-app * { box-sizing: border-box; }
.dm-app p { margin: 0; color: inherit; }

/* topo */
.dm-top { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #DDE1E8; }
.dm-top h3 { all: unset; font-size: 30px; color: #102B3F; }
.dm-beta { background: #E0E6EF; color: #204561; font-size: 13px; font-weight: 600; border-radius: 4px; padding: 1px 7px; }
.dm-units { display: flex; margin-left: 12px; }
.dm-units i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #1875F0; margin-left: -7px; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #204561; transition: opacity .35s, transform .35s; }
.dm-units i:first-child { margin-left: 0; }
.dm-units i.off { opacity: .35; transform: scale(.9); }
.dm-units i.mais { background: #8B8FA1; border-color: #8B8FA1; color: #fff; }
.dm-upd { margin-left: auto; font-size: 12px; color: #6B7280; }
.dm-flt { width: 30px; height: 30px; border-radius: 50%; background: #E0E6EF; display: grid; place-items: center; }
.dm-flt::before { content: ""; width: 12px; height: 9px; border-top: 2px solid #1875F0; border-bottom: 2px solid #1875F0; }

.dm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 20px; }
.dm-sec-h { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 8px; margin-bottom: 14px; }
.dm-sec-h b { font-size: 22px; font-weight: 500; }
.dm-tog { display: flex; background: #fff; border-radius: 999px; padding: 3px; font-size: 13px; text-transform: uppercase; color: #8B8FA1; }
.dm-tog span { padding: 3px 9px; border-radius: 999px; transition: background .3s, color .3s; }
.dm-tog span.on { background: #1875F0; color: #fff; }

.dm-ag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dm-col { display: flex; flex-direction: column; gap: 10px; }
.dm-card { background: #fff; border-radius: 6px; height: 133px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.dm-card small { text-transform: uppercase; color: #8B8FA1; font-weight: 600; font-size: 15px; padding: 0 10px; }
.dm-card b { font-size: 30px; font-weight: 600; color: #204561; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dm-card .pt { position: absolute; left: 12px; top: 12px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px #EEF0F4; }
.dm-card.big { height: 276px; background: linear-gradient(160deg, #F1F1F1, #D7D7D7); }
.dm-card.big b { font-size: 46px; font-weight: 400; margin: 0; }
.dm-card.big p { font-weight: 600; font-size: 17px; max-width: 150px; }
.dm-card .btn { margin-top: 14px; background: #fff; color: #000; border-radius: 5px; padding: 9px 40px; font-size: 16px; position: relative; z-index: 2; }
.dm-card.big b, .dm-card.big p { position: relative; z-index: 2; }
/* ilustrações em CSS, no lugar das imagens 3D do sistema */
.dm-clock { position: absolute; left: -22px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #8CD2FF, #2E8BEA 70%); box-shadow: 0 0 0 10px #B69CF7, inset 0 0 0 14px #EAF6FF; }
.dm-clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 4px; background: #1D4E89; transform-origin: 0 50%; transform: rotate(-40deg); border-radius: 2px; }
.dm-conf { position: absolute; right: 12px; top: 10px; width: 64px; height: 64px; }
.dm-conf i { position: absolute; border-radius: 50%; }
.dm-conf i:nth-child(1) { width: 18px; height: 18px; background: radial-gradient(circle at 35% 35%, #D9B8FF, #8A4DEB); left: 8px; top: 34px; }
.dm-conf i:nth-child(2) { width: 9px; height: 9px; background: #F7B84B; left: 30px; top: 22px; }
.dm-conf i:nth-child(3) { width: 7px; height: 7px; background: #E5484D; left: 46px; top: 40px; }
.dm-conf i:nth-child(4) { width: 34px; height: 34px; border: 7px solid #B69CF7; border-left-color: transparent; border-bottom-color: transparent; background: none; left: 30px; top: -8px; transform: rotate(20deg); }
.dm-card.aniv { height: 276px; background: linear-gradient(160deg, #EDEDED, #D2D2D2); }
.dm-card.aniv b { font-size: 46px; font-weight: 400; margin: 0; }
.dm-card.aniv p { font-weight: 600; font-size: 17px; }
.dm-card.aniv b, .dm-card.aniv p { position: relative; z-index: 2; }
.dm-star { position: absolute; width: 90px; height: 90px; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 60%, 81% 97%, 50% 76%, 19% 97%, 29% 60%, 0 38%, 37% 35%); }
.dm-star.y { left: -24px; top: 66px; background: linear-gradient(135deg, #FFE27A, #F2B71F); transform: rotate(-14deg); }
.dm-star.t { right: -26px; top: -14px; background: linear-gradient(135deg, #8EF0E4, #3CC1B6); transform: rotate(18deg); }
.dm-pop { font-size: 44px; line-height: 1; margin-bottom: -8px; position: relative; z-index: 2; }

.dm-cli { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dm-donut { background: #fff; border-radius: 6px; height: 248px; padding: 14px; position: relative; }
.dm-donut small { font-size: 13px; text-transform: uppercase; color: #8B8FA1; }
.dm-ring { width: 150px; height: 150px; margin: 8px auto 0; position: relative; }
.dm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dm-ring circle { fill: none; stroke-width: 18; }
.dm-ring .arc { transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.dm-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dm-ring b { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-ring span { color: #8B8FA1; }
.dm-donut .pc { text-align: center; color: #8B8FA1; margin-top: 4px; }
.dm-idade { background: #fff; border-radius: 6px; margin-top: 10px; height: 294px; padding: 22px 16px 10px 30px; position: relative; }
.dm-idade-h { display: flex; justify-content: space-between; align-items: center; }
.dm-idade-h b { font-size: 22px; font-weight: 500; }
.dm-leg { display: flex; gap: 12px; font-size: 13px; color: #6B7280; }
.dm-leg span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: #A8F0B4; }
.dm-leg span.f::before { background: #F9B2D5; }
.dm-chart { position: absolute; left: 50px; right: 16px; bottom: 34px; top: 92px; border-bottom: 1px solid #E5E7EB; display: flex; justify-content: space-around; align-items: flex-end; }
.dm-chart::before { content: "100%"; position: absolute; left: -38px; top: 0; font-size: 12px; color: #8B8FA1; }
.dm-chart::after { content: "50%"; position: absolute; left: -32px; top: 50%; font-size: 12px; color: #8B8FA1; }
.dm-grp { display: flex; gap: 2px; align-items: flex-end; height: 100%; position: relative; }
.dm-grp i { width: 8px; border-radius: 4px 4px 0 0; background: #A8F0B4; height: 0; transition: height 1.1s cubic-bezier(.2,.8,.2,1); }
.dm-grp i.f { background: #F9B2D5; }
.dm-grp em { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12px; color: #6B7280; }

@media (prefers-reduced-motion: reduce) {
  .dm-app *, .dm-app *::before, .dm-app *::after { transition: none !important; animation: none !important; }
}
