/* Sistema BIOMETRIA — mesmas cores e fontes do site cursosbiometria.com.br */
:root {
  --green: #123e32;
  --green-2: #25654a;
  --lime: #d5ef86;
  --paper: #f8f9f5;
  --ink: #203e33;
  --muted: #65746c;
  --line: #e1e7df;
  --soft: #eef3ec;
  --good: #1f6b45; --good-bg: #e3f3e8;
  --warn: #8a5a00; --warn-bg: #fff3d4;
  --bad: #b42318;  --bad-bg: #fdecea;
  --info: #1d4f91; --info-bg: #e8f0fb;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #c6d1c3; background: #fbfcf9; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--green); }
.btn.lime:hover { background: #cbe874; }
.btn.ghost { background: transparent; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: rgba(18,62,50,.07); }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.link { background: none; border: 0; padding: 0; color: var(--green-2); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--bad); }

/* ---------- formulários ---------- */
.form { display: grid; gap: 14px; }
label { display: block; font-size: 13px; font-weight: 600; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea, label > .pw { display: block; margin-top: 6px; }
.dica { display: block; margin-top: 5px; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input[type=file] { height: auto !important; padding: 8px 12px !important; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(37,101,74,.15); }
input:disabled, select:disabled { background: #f2f4f0; color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 16px; height: 16px; }
.row-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.seg label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 500; cursor: pointer; background: #fff; }
.seg label:has(input:checked) { border-color: var(--green-2); background: var(--soft); }
.form-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.pw { position: relative; }
.pw input { padding-right: 78px !important; }
.pw-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--soft); font-size: 12px; font-weight: 600; cursor: pointer; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(380px, .95fr) 1.05fr; } }
.auth-brand { background: var(--green); padding: 40px; display: grid; place-items: center; }
.auth-logo { display: block; width: clamp(148px, 18vw, 220px); height: auto; aspect-ratio: 1; object-fit: contain; padding: 22px; background: #fff; border-radius: 32px; box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-row img { width: 48px; height: 48px; border-radius: 12px; background: #fff; padding: 5px; object-fit: contain; }
.brand-row strong { display: block; font-family: var(--display); color: #fff; font-size: 17px; letter-spacing: .02em; }
.brand-row span { font-size: 12.5px; color: var(--lime); }
.eyebrow { font: 700 11.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
@media (max-width: 959px) {
  .auth { grid-template-rows: auto 1fr; }
  .auth-brand { padding: 24px 16px; }
  .auth-logo { width: 88px; padding: 10px; border-radius: 20px; }
}
.auth-main { display: grid; place-items: center; padding: 32px 16px 48px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 24px; }
.sub { margin: 4px 0 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; margin-bottom: 24px; }
.tab { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.on { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(18,62,50,.1); }
.note { padding: 11px 13px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; background: var(--good-bg); color: var(--good); }
.center-link { justify-self: center; }

/* ---------- estrutura ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: 256px; background: var(--green); color: #d9e6dd; display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease; }
.side .brand-row { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side .brand-row img { width: 40px; height: 40px; border-radius: 10px; }
.side-nav { flex: 1; overflow: auto; padding: 12px 10px; display: grid; align-content: start; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; color: #c3d4c9; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: rgba(213,239,134,.12); color: var(--lime); }
.side-nav a.on::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime); }
.count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--green); font: 700 11px/20px var(--font); text-align: center; }
.count:empty { display: none; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--green); display: grid; place-items: center; font: 800 13px var(--display); flex: none; }
.who { min-width: 0; flex: 1; }
.who strong, .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who strong { color: #fff; font-size: 13.5px; }
.who span { font-size: 12px; color: #93ad9e; }
.side .icon-btn { color: #c3d4c9; }
.side .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.main { margin-left: 256px; min-height: 100vh; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: rgba(248,249,245,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h2 { font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none !important; }
.view { padding: 28px; max-width: 1180px; margin: 0 auto; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.scrim { display: none; }
@media (max-width: 959px) {
  .side { transform: translateX(-100%); }
  .menu-aberto .side { transform: none; }
  .menu-aberto .scrim { display: block; position: fixed; inset: 0; background: rgba(10,30,24,.45); z-index: 30; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid !important; }
  .top { padding: 0 12px 0 6px; }
  .top .btn span { display: none; }
  .view { padding: 16px; }
}

/* ---------- blocos ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h3 { font-size: 16px; }
.hello h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 8px 0 4px; }
.hello .eyebrow { color: var(--green-2); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 560px) { .kpis { gap: 10px; grid-template-columns: 1fr 1fr; } .kpi { padding: 12px 14px; } .kpi strong { font-size: 22px; } }
.kpis.seis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .kpis.seis { grid-template-columns: repeat(3, 1fr); } }
.kpis.seis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .kpis.seis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 8px; text-decoration: none; }
a.kpi:hover { border-color: #b9c7b5; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-top .ic { color: var(--green-2); }
.kpi strong { font: 800 28px/1.1 var(--display); color: var(--green); font-variant-numeric: tabular-nums; }
.kpi.destaque { background: var(--green); border-color: var(--green); }
.kpi.destaque strong, .kpi.destaque .ic { color: var(--lime); }
.kpi.destaque .kpi-top { color: #cfe0d4; }
.grid-2 { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.list { display: grid; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.item:first-child { border-top: 0; }
a.item:hover strong { color: var(--green-2); }
.item-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--green-2); flex: none; }
.item-ic.t-video { background: var(--warn-bg); color: var(--warn); }
.item-ic.t-link { background: var(--info-bg); color: var(--info); }
.item-body { flex: 1; min-width: 0; }
.item-body strong { display: block; font-weight: 600; }
.item-body p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.item-body small { color: var(--muted); font-size: 12px; }
.item-act { display: flex; gap: 6px; align-items: center; flex: none; }
@media (max-width: 560px) { .item { flex-wrap: wrap; } .item-act { width: 100%; justify-content: flex-end; } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge .ic { width: 12px; height: 12px; }
.badge.lime { background: var(--lime); color: var(--green); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar select { width: auto; min-width: 180px; }
.search { position: relative; display: block; flex: 1; min-width: 200px; max-width: 380px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 38px !important; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip-n { opacity: .7; margin-left: 2px; }

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; color: var(--muted); font-size: 12px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table select { height: 34px; width: auto; }
.acts-cell { text-align: right; white-space: nowrap; }
.acts-cell .btn + .btn { margin-left: 6px; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.loading { padding: 48px; text-align: center; color: var(--muted); }

.aviso { padding: 16px 0; border-top: 1px solid var(--line); }
.aviso:first-child { border-top: 0; padding-top: 4px; }
.aviso-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.aviso-head div { display: flex; gap: 6px; flex-wrap: wrap; }
.aviso time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.aviso h4 { font-size: 15.5px; margin-bottom: 4px; }
.aviso p { white-space: pre-line; color: #3a564d; font-size: 14px; }
.acts { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.resposta { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--lime); background: #f5f9ef; border-radius: 0 8px 8px 0; font-size: 13.5px; white-space: pre-line; }

.form-card summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font: 700 15px var(--display); color: var(--green); list-style: none; }
.form-card summary::-webkit-details-marker { display: none; }
.form-card[open] summary { margin-bottom: 16px; }
.field-inline { max-width: 520px; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.dl dt { color: var(--muted); }
.dl dd { font-weight: 600; }

/* ---------- telas de estado ---------- */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.state { max-width: 460px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.state h2 { font-size: 24px; }
.state-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--lime); color: var(--green); display: grid; place-items: center; }
.state-ic .ic { width: 28px; height: 28px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- modal e toast ---------- */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(580px, calc(100vw - 24px)); color: var(--ink); box-shadow: 0 24px 60px rgba(10,30,24,.25); }
.modal::backdrop { background: rgba(10,30,24,.5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 20px; max-height: 78vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--green); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 100; box-shadow: 0 12px 30px rgba(10,30,24,.3); animation: sobe .2s ease; }
.toast.erro { background: var(--bad); }
@keyframes sobe { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.voltar { display: inline-block; margin-bottom: 18px; }

/* ---------- portal v2 ---------- */
.nav-grupo { margin: 14px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7f9a8a; }
.kpis.quatro { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .kpis.quatro { grid-template-columns: repeat(4, 1fr); } }
.tb-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.code { display: inline-block; font: 600 12px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .02em; padding: 5px 8px; border-radius: 6px; background: #f1ecfb; color: #5b3aa8; white-space: nowrap; }
.dica { font-weight: 400; color: var(--muted); font-size: 12px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.danger-t { color: var(--bad); margin-right: auto; }
.danger-t:hover { background: var(--bad-bg); border-color: var(--bad-bg); }
.aviso-txt { color: var(--warn) !important; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.acoes-rapidas { display: flex; flex-wrap: wrap; gap: 10px; }
.field-inline.mes input { width: auto; }
.nota-in { width: 90px !important; text-align: right; }
.table input:not([type=checkbox]) { height: 36px; }
.modal.largo { width: min(820px, calc(100vw - 24px)); }
.msg { white-space: pre-wrap; font: 13.5px/1.6 var(--font); background: var(--soft); border-radius: 10px; padding: 14px; margin: 0; }

.chamada { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.chamada-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--soft); font-size: 13px; }
.chamada-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 500; font-size: 14px; cursor: pointer; }
.chamada-item:has(input:not(:checked)) { background: #fdf6f5; color: var(--bad); }
.chamada-item input { width: 20px; height: 20px; }

.barras { display: grid; gap: 10px; }
.barra { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.barra-rot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.barra-trilho { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.barra-trilho i { display: block; height: 100%; border-radius: 999px; background: var(--green-2); }
.barra strong { text-align: right; font-variant-numeric: tabular-nums; }

.proxima { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--green); color: #d9e6dd; border-radius: var(--r); padding: 22px 24px; }
.proxima h3 { color: #fff; font-size: 20px; margin: 6px 0 4px; }
.proxima p { font-size: 14px; color: #b8cdbf; }
.proxima > .ic { width: 44px; height: 44px; color: var(--lime); }
.banner-indique { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--lime); color: var(--green); text-decoration: none; font-size: 14px; }
.banner-indique .ic { width: 26px; height: 26px; }
.banner-indique b { margin-left: auto; white-space: nowrap; }
.cards-turma { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.turma-card h3 { font-size: 18px; margin-bottom: 4px; }
.turma-card p + p { margin-top: 10px; }
.turma-card .form-foot { justify-content: flex-start; margin-top: 14px; }

/* ---------- financeiro ---------- */
.alerta-pag { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); border: 1px solid #f1d998; text-decoration: none; font-size: 14px; }
.alerta-pag .ic { width: 24px; height: 24px; }
.alerta-pag b { margin-left: auto; white-space: nowrap; }
.alerta-pag:hover { border-color: #e2c26c; }
.total-linha { margin-top: 12px; text-align: right; }
.toolbar select { width: auto; min-width: 180px; }
.parcelas { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; align-items: end; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.parcelas > div span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.parcelas > div strong { font: 800 19px/1.3 var(--display); color: var(--green); }
@media (max-width: 640px) { .parcelas { grid-template-columns: 1fr 1fr; } .parcelas label { grid-column: 1 / -1; order: 3; } }
.pagar { display: grid; gap: 16px; }
.pagar-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pagar-valor { display: block; font: 800 32px/1.1 var(--display); letter-spacing: -.02em; color: var(--green); margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.pagar .dl { margin-bottom: 0; }
.obs { white-space: pre-line; font-size: 13.5px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.pix { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.qr { width: 220px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.pix-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pix-info textarea { font: 12px/1.45 ui-monospace, Consolas, monospace; word-break: break-all; background: #fbfcf9; }
.pix-info .btn { justify-self: start; }
@media (max-width: 640px) { .pix { grid-template-columns: 1fr; } .qr { width: min(240px, 100%); justify-self: center; } .pix-info .btn { justify-self: stretch; } }
.boleto { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.boleto code { font: 13px/1.6 ui-monospace, Consolas, monospace; word-break: break-all; background: var(--soft); padding: 10px 12px; border-radius: 8px; }
.boleto .btn { justify-self: start; }
.pagar-form { padding: 16px; border-radius: 14px; background: #f5f9ef; border: 1px solid #dfe9cf; }
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.passos > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; color: var(--muted); }
.passos strong { color: var(--ink); }
.passos b { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--lime); font: 800 13px var(--display); }
@media (max-width: 760px) { .passos { grid-template-columns: 1fr; } }
.enviar { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: #f5f9ef; border: 1px solid #dfe9cf; }
.enviar textarea { font-size: 13.5px; line-height: 1.5; background: #fff; }
.pagar-topo { flex-wrap: wrap; }
.pagar-topo > div { flex: 1 1 220px; min-width: 0; }
.dl dd { min-width: 0; overflow-wrap: anywhere; }
.parcelas.tres { grid-template-columns: repeat(3, 1fr); align-items: start; }
.parcelas small { display: block; font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) { .parcelas.tres { grid-template-columns: 1fr; } }
.erro-txt { color: var(--bad) !important; font-weight: 600; }
.diario-form { padding: 14px 16px; border-radius: 14px; background: var(--info-bg); border: 1px solid #cfdcf1; }
.diario-form .row-2 { align-items: end; }
.diario-form .form-foot { justify-content: flex-start; }
