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

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

/* menu do sistema */
.fm-nav { height: 60px; background: #fff; display: flex; align-items: center; border-bottom: 1px solid #EEF0F4; }
.fm-logo { width: 56px; height: 60px; background: #7AF365; display: grid; place-items: center; }
.fm-logo img { width: 30px; }
.fm-menu { display: flex; height: 60px; margin-left: 14px; }
.fm-menu span { display: flex; align-items: center; gap: 4px; padding: 0 20px; font-weight: 600; color: #14231A; position: relative; }
.fm-menu span svg { width: 11px; height: 11px; }
.fm-menu span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #02D203; }
.fm-cora { display: flex; align-items: center; gap: 4px; margin-left: 14px; height: 22px; }
.fm-cora img { height: 100%; } .fm-cora img.c { height: 19px; margin-top: 2px; }
.fm-lead { margin-left: 24px; height: 36px; padding: 0 18px; border-radius: 4px; background: #02D203; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.fm-lead svg { width: 14px; height: 14px; }
.fm-ics { margin-left: auto; display: flex; align-items: center; gap: 26px; padding-right: 22px; }
.fm-ics svg { width: 20px; height: 20px; color: #14231A; }
.fm-ics .av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #7FB4F5; background: #E9F2FE; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

.fm-page { padding: 0 16px; }
.fm-tit { display: flex; justify-content: space-between; align-items: center; height: 116px; }
.fm-tit b { font-size: 30px; font-weight: 400; }
.fm-tit span { color: #1875F0; display: flex; gap: 8px; align-items: center; }
.fm-tit span svg { width: 18px; height: 18px; }
.fm-grid { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.fm-side { background: #fff; border-radius: 6px; padding: 30px 20px; }
.fm-busca { height: 38px; border: 1px solid #D8DDE5; border-radius: 4px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #A0A4B3; }
.fm-busca svg { width: 16px; height: 16px; }
.fm-lbl { text-transform: uppercase; color: #8B8FA1; margin: 26px 0 10px; }
.fm-sel { height: 43px; border: 1px solid #D8DDE5; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #fff; }
.fm-sel svg { width: 15px; height: 15px; color: #555; }
.fm-rad { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.fm-rad i { width: 20px; height: 20px; border: 2px solid #1875F0; border-radius: 50%; position: relative; }
.fm-rad i.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #1875F0; }
.fm-chk { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.fm-chk i { width: 20px; height: 20px; border-radius: 3px; background: #1875F0; display: grid; place-items: center; }
.fm-chk i::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.fm-kpi { background: #fff; border-radius: 6px; height: 110px; display: flex; align-items: center; padding: 0 20px; }
.fm-kpi > div { padding-right: 30px; }
.fm-kpi > div + div { padding-left: 28px; border-left: 1px solid #E5E7EB; }
.fm-kpi small { display: block; text-transform: uppercase; font-size: 13px; }
.fm-kpi b { display: block; font-size: 29px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .3s; }
.fm-kpi b.flash { color: #1E7A2E; }
.fm-kpi em { font-size: 13px; color: #6B7280; }
.fm-kpi .tot { margin-left: auto; border-left: 1px solid #E5E7EB; padding-right: 0; }
.fm-bar { display: flex; align-items: center; gap: 46px; margin: 30px 0 32px; white-space: nowrap; }
.fm-bar .fm-add, .fm-bar .fm-pt { flex: none; }
.fm-bar .ex b { font-weight: 600; }
.fm-ord { width: 350px; height: 43px; border: 1px solid #E0E6EF; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.fm-ord span { color: #6B7280; } .fm-ord span b { color: #102B3F; font-weight: 400; margin-left: 6px; }
.fm-ord svg { width: 15px; height: 15px; }
.fm-pt { margin-left: auto; height: 46px; padding: 0 16px; border: 1px solid #F25555; color: #F25555; border-radius: 4px; display: flex; align-items: center; gap: 8px; }
.fm-pt svg, .fm-pagar svg { width: 17px; height: 17px; }
.fm-add { height: 46px; padding: 0 12px; background: #F55252; color: #fff; border-radius: 4px; display: flex; align-items: center; transition: transform .18s, filter .18s; }
.fm-th { display: grid; grid-template-columns: 130px 210px 73px 1fr 200px 190px; align-items: center; height: 64px; padding: 0 20px; border-top: 4px solid #E0E6EF; border-bottom: 4px solid #E0E6EF; font-weight: 600; text-transform: uppercase; }
.fm-rows { display: flex; flex-direction: column; gap: 15px; margin-top: 12px; }
.fm-row { display: grid; grid-template-columns: 130px 210px 73px 1fr 200px 190px; align-items: center; min-height: 77px; padding: 0 20px; background: #fff; border-radius: 4px; transition: background .4s; }
.fm-row.in { animation: fmIn .55s cubic-bezier(.2,.8,.2,1); background: #FBF8EF; }
@keyframes fmIn { from { opacity: 0; transform: translateY(-10px); } }
.fm-row .dt { display: flex; align-items: center; gap: 10px; }
.fm-rec { width: 24px; height: 24px; border-radius: 50%; background: #E3EEFD; color: #1875F0; display: grid; place-items: center; }
.fm-rec svg { width: 14px; height: 14px; }
.fm-row .det b { display: block; font-weight: 700; }
.fm-row .det em { color: #6B7280; }
.fm-outra { width: 40px; height: 34px; border: 1px solid #36B5A2; border-radius: 3px; color: #36B5A2; font-size: 9px; display: grid; place-items: center; }
.fm-cat { display: flex; align-items: center; gap: 6px; }
.fm-cat::before { content: ""; width: 14px; height: 10px; border: 1.5px solid #102B3F; border-radius: 2px 0 0 2px; clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%); }
.fm-row .vl { text-align: right; padding-right: 30px; font-variant-numeric: tabular-nums; }
.fm-act { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.fm-pagar { height: 46px; padding: 0 14px; border: 1px solid #F25555; color: #F25555; border-radius: 4px; display: flex; align-items: center; gap: 8px; transition: transform .18s, background .3s; }
.fm-pago { display: flex; align-items: center; gap: 6px; }
.fm-pago::before { content: ""; width: 14px; height: 7px; border: 2.5px solid #2FA84F; border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-3px); }
.fm-mais { color: #8B8FA1; display: flex; align-items: center; gap: 4px; }
.fm-mais svg { width: 13px; height: 13px; }
.press { transform: scale(.95) !important; filter: brightness(.92); }

/* janelas */
.fm-ov { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; display: grid; place-items: center; z-index: 10; }
.fm-ov.on { opacity: 1; }
.fm-mdl { background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.25); transform: translateY(14px); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fm-ov.on .fm-mdl { transform: none; }
.fm-mdl-h { display: flex; justify-content: space-between; align-items: center; padding: 26px 50px; border-bottom: 1px solid #E9ECEF; }
.fm-mdl-h b { font-size: 26px; font-weight: 400; }
.fm-mdl-h svg { width: 26px; height: 26px; color: #BBB; }
.fm-mdl-b { padding: 32px 50px 36px; }
.fm-f { display: grid; gap: 22px 30px; margin-bottom: 22px; }
.fm-f .l { color: #8B8FA1; display: block; margin-bottom: 8px; }
.fm-in { height: 40px; border: 1px solid #D8DDE5; border-radius: 4px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.fm-in.sel { justify-content: space-between; height: 43px; }
.fm-in.foco { border-color: #8FBDF7; box-shadow: 0 0 0 3px rgba(24,117,240,.15); }
.fm-in svg { width: 15px; height: 15px; color: #555; }
.fm-in .rs { color: #9A9A9A; }
.fm-in .caret { display: inline-block; width: 1.5px; height: 18px; background: #102B3F; animation: fmCaret 1s steps(1) infinite; }
@keyframes fmCaret { 50% { opacity: 0; } }
.fm-in .bk { display: flex; align-items: center; gap: 8px; }
.fm-radios { display: flex; gap: 20px; align-items: center; height: 43px; color: #8B8FA1; }
.fm-radios span { display: flex; gap: 6px; align-items: center; }
.fm-radios i { width: 20px; height: 20px; border: 2px solid #1875F0; border-radius: 50%; position: relative; }
.fm-radios i.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #1875F0; }
.fm-mdl-f { display: flex; justify-content: space-between; align-items: center; }
.fm-btn { height: 45px; padding: 0 14px; border-radius: 4px; color: #fff; display: flex; align-items: center; transition: transform .18s, filter .18s, background .3s; }
.fm-btn.verde { background: #5CB85C; } .fm-btn.azul { background: #1875F0; } .fm-btn.vermelho { background: #F55252; }
.fm-rat { border: 1px solid #C9CED6; border-radius: 4px; height: 244px; margin-top: 12px; }
.fm-rat .h, .fm-rat .r { display: grid; grid-template-columns: 290px 135px 276px 1fr; align-items: center; padding: 0 20px; }
.fm-rat .h { height: 40px; border-bottom: 1px solid #C9CED6; color: #8B8FA1; }
.fm-rat .r { height: 47px; }
.fm-rat .r:first-of-type { background: #F5F6FA; }
.fm-rat .cb { display: flex; align-items: center; gap: 10px; }
.fm-rat .cb i { width: 20px; height: 20px; border: 2px solid #1875F0; border-radius: 3px; transition: background .2s; position: relative; }
.fm-rat .cb i.on { background: #1875F0; }
.fm-rat .cb i.on::after { content: ""; position: absolute; left: 4px; top: 4px; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.fm-rat .pc { width: 104px; height: 31px; border: 1px solid #D8DDE5; border-radius: 3px; padding: 0 10px; display: flex; align-items: center; font-size: 14px; }
.fm-rat .pc.off { background: #EDEDED; }
.fm-rat .bc { width: 246px; height: 31px; border: 1px solid #D8DDE5; border-radius: 3px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; }
.fm-rat .bc.off { background: #EDEDED; color: #9A9A9A; }
.fm-rat .bc svg { width: 14px; height: 14px; }
.fm-tot { text-align: right; color: #6B7280; margin-top: 18px; }
.fm-tot em { display: block; font-size: 13px; color: #E5484D; }
.fm-toast { position: absolute; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #5CB85C; color: #fff; border-radius: 4px; padding: 16px 28px; font-size: 19px; display: flex; gap: 10px; align-items: center; opacity: 0; transition: opacity .3s, transform .3s; z-index: 12; }
.fm-toast.on { opacity: 1; transform: translate(-50%, 0); }
.fm-toast::before { content: ""; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; }
.fm-cursor { position: absolute; left: 0; top: 0; width: 24px; height: 24px; z-index: 20; transition: transform .8s cubic-bezier(.45,0,.2,1); filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.fm-cursor.click { animation: fmClick .3s ease; }
@keyframes fmClick { 50% { scale: .82; } }

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