:root{--navy:#062e57;--navy2:#0a4276;--gold:#efb800;--gold2:#f8d25b;--green:#08763b;--green2:#0c9450;--paper:#f5f8fb;--ink:#172433;--muted:#687789;--danger:#b42318;--orange:#c76a08;--line:#d9e2ea;--white:#fff;--soft:#edf4f9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--paper);color:var(--ink)}a{color:var(--navy2);text-decoration:none}button,input,select,textarea{font:inherit}.topbar{min-height:82px;background:linear-gradient(110deg,#04284d,#073b6c);border-bottom:3px solid var(--gold);display:flex;align-items:center;justify-content:space-between;padding:9px max(16px,calc((100vw - 1220px)/2));position:sticky;top:0;z-index:30;color:#fff}.brand{display:flex;align-items:center;gap:12px;color:#fff}.brand img{width:65px;height:65px;object-fit:contain}.brand span{display:grid}.brand strong{font-family:Georgia,serif;font-size:20px;letter-spacing:.6px}.brand small{color:var(--gold2)}nav{display:flex;align-items:center;gap:16px}nav>a{color:#fff;font-weight:700;font-size:14px}.container{max-width:1220px;margin:auto;padding:32px 18px 72px}.hero{display:grid;grid-template-columns:1.12fr .88fr;gap:42px;align-items:center;min-height:590px}.hero h1{font-family:Georgia,serif;font-size:clamp(38px,5.4vw,72px);line-height:1.02;color:var(--navy);margin:12px 0 18px}.hero .lead{font-size:20px;line-height:1.62;color:var(--muted);max-width:760px}.hero-logo{text-align:center}.hero-logo img{width:min(100%,480px);filter:drop-shadow(0 18px 26px rgba(6,46,87,.18))}.badge{display:inline-flex;align-items:center;gap:7px;border:1px solid #e7c446;background:#fff9dd;color:#6b5100;border-radius:999px;padding:8px 13px;font-weight:900;font-size:12px;letter-spacing:.03em}.actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:22px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:0;border-radius:11px;padding:13px 18px;background:var(--navy);color:#fff!important;font-weight:850;cursor:pointer;transition:.18s}.btn:hover{filter:brightness(1.06);transform:translateY(-1px)}.btn.gold{background:var(--gold);color:#17212b!important}.btn.green{background:var(--green)}.btn.danger{background:var(--danger)}.btn.orange{background:var(--orange)}.btn.outline{background:#fff;color:var(--navy)!important;border:1px solid var(--navy)}.btn.light{background:#edf4f9;color:var(--navy)!important}.btn.small{padding:9px 12px;font-size:13px}.section{margin:52px 0}.section h2,.page-title{font-family:Georgia,serif;color:var(--navy);font-size:34px;margin:0 0 8px}.section-intro{color:var(--muted);max-width:850px;line-height:1.6}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.grid.two{grid-template-columns:repeat(2,1fr)}.grid.four{grid-template-columns:repeat(4,1fr)}.grid.five{grid-template-columns:repeat(5,1fr)}.card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px}.card h3{margin:0 0 10px;color:var(--navy)}.metric{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px}.metric small{display:block;color:var(--muted);font-weight:700}.metric strong{display:block;color:var(--navy);font-size:29px;margin-top:5px}.metric .sub{font-size:12px;color:var(--muted);margin-top:3px}.price strong{font-size:31px;color:var(--navy)}.price small{display:block;color:var(--muted);margin:5px 0}.notice{padding:17px 18px;border-left:5px solid var(--gold);background:#fffdf3;border-radius:12px;line-height:1.58}.legal{background:#edf5fb;border:1px solid #c9ddeb;padding:17px;border-radius:13px;color:#274359;line-height:1.55}.success-box{background:#eaf8f0;border:1px solid #b9e6cc;color:#145b34;padding:17px;border-radius:13px}.danger-box{background:#fff0ef;border:1px solid #f0c7c3;color:#8d261f;padding:17px;border-radius:13px}.form-card{max-width:900px;margin:24px auto;background:#fff;border:1px solid var(--line);border-radius:19px;padding:26px}.form-card.wide{max-width:1120px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-weight:800;font-size:14px;color:#31485e}.field input,.field textarea,.field select{width:100%;border:1px solid #c8d4de;border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink)}.field textarea{min-height:120px;resize:vertical}.field .help{font-size:12px;color:var(--muted)}.check-row{display:flex;gap:10px;align-items:flex-start}.flash{padding:14px 16px;border-radius:11px;margin-bottom:17px}.flash.success{background:#e9f8ef;color:#135c33}.flash.error{background:#fff0ef;color:#90251d}.flash.info{background:#edf5fb;color:#234a68}.table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:15px}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:12px 13px;border-bottom:1px solid var(--line);white-space:nowrap}.table th{font-size:11px;text-transform:uppercase;color:var(--muted);letter-spacing:.05em}.table td{font-size:14px}.status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;background:#edf2f6;color:#42586b}.status.active,.status.dispatched{background:#e7f7ee;color:#12643a}.status.pending_fee,.status.draft{background:#fff2c9;color:#775a00}.status.expired{background:#ffe8e5;color:#9e2c22}.status.paid{background:#ddf5e8;color:#0c6033}.status.contested,.status.paused,.status.negotiating,.status.payment_reported{background:#fff0d8;color:#8b5500}.countdown{font-variant-numeric:tabular-nums;font-size:clamp(42px,9vw,82px);font-weight:950;color:#efb800;letter-spacing:-2px;text-align:center;margin:8px 0;text-shadow:0 1px 0 rgba(0,0,0,.2)}.countdown-label{text-align:center;color:#d8e6f2;letter-spacing:.12em;font-size:11px;font-weight:850}.payer-shell{max-width:880px;margin:auto}.payer-head{text-align:center}.payer-head img{width:128px}.amount-box{background:linear-gradient(135deg,#052d56,#084676);color:#fff;border-radius:19px;padding:24px}.amount-box strong{display:block;font-size:38px;color:#fff}.amount-box .small{color:#cfe0ee}.timer-panel{background:#042c52;color:#fff;border:2px solid var(--gold);border-radius:18px;padding:20px;margin:18px 0}.timeline{display:grid;gap:9px}.timeline .item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px}.timeline .item small{color:var(--muted)}.timeline .item b{color:var(--navy)}.wallet-balance{background:linear-gradient(135deg,#052d56,#0b497f);color:#fff;border-radius:20px;padding:25px}.wallet-balance small{color:#d4e4f0}.wallet-balance strong{display:block;font-size:44px;color:var(--gold);margin:6px 0}.package{border:2px solid #e3bd38;background:#fffdf5}.package strong{font-size:28px;color:var(--navy)}.package.recommended{outline:3px solid rgba(8,118,59,.17);border-color:var(--green)}.pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf3f9;color:#28506e;font-size:11px;font-weight:850}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.mini-flow{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.mini-flow .step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;text-align:center}.mini-flow .step b{display:block;color:var(--green);font-size:20px;margin-bottom:6px}.footer-note{color:var(--muted);font-size:12px;line-height:1.5}footer{background:var(--navy);color:#dbe8f3;padding:30px max(18px,calc((100vw - 1220px)/2));display:flex;justify-content:space-between;gap:20px}footer p{max-width:700px;color:#c9d9e6}footer a{color:#fff}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.tabs a{padding:9px 12px;border-radius:9px;background:#fff;border:1px solid var(--line);font-weight:750}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#0b1e31;color:#e4eef6;padding:12px;border-radius:10px;overflow:auto}.bar{height:10px;border-radius:999px;background:#dfe9f0;overflow:hidden}.bar>span{display:block;height:100%;background:var(--green)}.center{text-align:center}.muted{color:var(--muted)}.nowrap{white-space:nowrap}@media(max-width:980px){.grid.five,.grid.four{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr;min-height:auto}.hero-logo{order:-1}.hero-logo img{width:290px}.mini-flow{grid-template-columns:1fr 1fr}.brand span{display:none}}@media(max-width:720px){.topbar{min-height:72px}.topbar nav a:not(.btn){display:none}.grid,.grid.two,.grid.four,.grid.five{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.container{padding:22px 13px 62px}.hero h1{font-size:40px}.hero .lead{font-size:17px}.mini-flow{grid-template-columns:1fr}.amount-box strong{font-size:32px}.countdown{font-size:48px}footer{flex-direction:column}.brand img{width:54px;height:54px}}@media print{.topbar,footer,.no-print,.actions{display:none!important}.container{max-width:none;padding:0}.card,.form-card,.table-wrap{border-color:#bbb}.payer-shell{max-width:none}}
/* Calculadora ICGJ/TJMG */
.tjmg-calculator{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;margin-top:18px}.tjmg-sourcebar{display:flex;justify-content:space-between;gap:14px;align-items:center;background:linear-gradient(110deg,var(--navy),var(--navy2));color:#fff;padding:16px 18px;border-bottom:3px solid var(--gold)}.tjmg-sourcebar strong{display:block;font-family:Georgia,serif;font-size:19px}.tjmg-sourcebar span{display:block;color:#d7e7f2;font-size:12px;margin-top:3px}.tjmg-sourcebar a{color:var(--gold2);font-weight:850;font-size:13px}.tjmg-panel{border-bottom:1px solid var(--line);padding:15px 17px 18px}.tjmg-panel-title{background:#edf1f4;border-left:4px solid var(--navy);padding:8px 10px;margin:-2px 0 14px;font-size:12px;font-weight:950;letter-spacing:.035em;color:var(--navy)}.tjmg-add-row{display:grid;grid-template-columns:1.4fr .8fr .8fr auto;gap:12px;align-items:end}.tjmg-add-row .btn{margin-bottom:0;min-height:45px}.three-cols{grid-template-columns:1.15fr .8fr .7fr}.tjmg-calc-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 17px}.tjmg-summary{padding:17px;background:#f8fbfd;border-top:1px solid var(--line)}.tjmg-summary .grid.four{grid-template-columns:repeat(4,1fr)}.tjmg-summary .total-metric{border:2px solid var(--gold);background:#fffdf3}.tjmg-summary .total-metric strong{color:var(--green)}.tjmg-items-wrap{margin-top:14px}.tjmg-items .btn.small{padding:6px 9px}.tjmg-source-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e6f0f8;color:#17496e;font-size:11px;font-weight:900}.calc-origin-note{font-size:12px;color:var(--muted);line-height:1.55}.calc-result-card{border:1px solid #bfd5e5;background:#f5fbff;border-radius:14px;padding:16px}.calc-result-card strong.big{font-size:30px;color:var(--green);display:block;margin-top:4px}@media(max-width:900px){.tjmg-add-row{grid-template-columns:1fr 1fr}.tjmg-add-row .btn{grid-column:1/-1}.three-cols{grid-template-columns:1fr 1fr}.tjmg-summary .grid.four{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.tjmg-sourcebar{align-items:flex-start;flex-direction:column}.tjmg-add-row,.three-cols{grid-template-columns:1fr}.tjmg-summary .grid.four{grid-template-columns:1fr}.tjmg-panel{padding:12px}.tjmg-items th,.tjmg-items td{padding:9px 8px}}

/* V3 PRO — Calculadora ICGJ/TJMG */
.calc-mode-switch{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0 18px}.calc-mode-switch .check-row{flex:1 1 280px;border:1px solid #d7dce3;border-radius:12px;padding:12px;background:#fff}.tjmg-sourcebar code{word-break:break-all}.tjmg-panel [hidden]{display:none!important}
@media(max-width:700px){.tjmg-add-row{grid-template-columns:1fr!important}.tjmg-add-row .btn{width:100%}.tjmg-summary .grid.four{grid-template-columns:1fr 1fr}}

/* V4.1 PRO — Login unificado e recuperação segura */
.login-card{max-width:580px}.login-identifiers{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 18px}.login-identifiers span{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#f7fafc;color:var(--navy);border-radius:999px;padding:7px 10px;font-size:12px;font-weight:850}.auth-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;font-size:13px}.security-note{margin-top:18px;padding:13px 14px;border-radius:11px;background:#f5f8fb;border:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.55}.otp-input{font-size:28px!important;letter-spacing:.28em;text-align:center;font-weight:900;color:var(--navy)}

/* V4.2 PRO — múltiplos contatos por cobrança */
.contact-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin-bottom:8px}.contact-row .btn{white-space:nowrap}.contact-list{display:grid;gap:8px}.contact-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:11px;padding:10px 12px;background:#fff}.contact-chip .meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.contact-chip.inactive{opacity:.58;background:#f6f8fa}.contact-primary{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eaf8f0;color:#145b34;font-size:10px;font-weight:900}.contact-inactive{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f2f4f6;color:#687789;font-size:10px;font-weight:900}@media(max-width:620px){.contact-row{grid-template-columns:1fr}.contact-row .btn{width:100%}.contact-chip{align-items:flex-start;flex-direction:column}}

/* V4.4 - impressão e tabelas de acompanhamento */
.print-only{display:none!important}
.installment-overdue{background:#fff5f1}
.installment-paid{background:#f1f9f4}
.installment-upcoming{background:#fbfcfd}
.installment-pay-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.installment-pay-form input,.installment-pay-form select{min-width:90px;max-width:160px}
@media(max-width:720px){.installment-pay-form{display:grid;grid-template-columns:1fr}.installment-pay-form input,.installment-pay-form select{max-width:none;width:100%}}
@media print{
  @page{size:A4;margin:14mm 10mm}
  body{background:#fff!important;color:#111!important;font-size:10pt}
  header,.site-header,.sidebar,.nav,.tabs,footer,.site-footer,.no-print,.flash,.btn{display:none!important}
  main,.container,.content,.wide,.form-card,.card,.section{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;background:#fff!important}
  .print-only{display:block!important}
  .print-report-head{border-bottom:2px solid #062e57;padding:0 0 8px;margin:0 0 14px;color:#062e57}
  .grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important}
  .metric{border:1px solid #bbb!important;padding:7px!important;break-inside:avoid}
  .metric strong{font-size:12pt!important}
  .table-wrap,.print-table-wrap{overflow:visible!important;border:0!important}
  table,.table,.print-table{width:100%!important;border-collapse:collapse!important;font-size:8.5pt!important}
  th,td,.table th,.table td{border:1px solid #aaa!important;padding:5px!important;color:#111!important;background:#fff!important}
  th,.table th{font-weight:700!important;background:#eee!important}
  tr{break-inside:avoid}
  a{color:#111!important;text-decoration:none!important}
}

/* V5 PRO — painéis com múltiplos credores/filiais */
.grid.six{grid-template-columns:repeat(6,1fr)}
@media(max-width:1100px){.grid.six{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.grid.six{grid-template-columns:1fr}}

/* V5.1 consolidado — módulo de documentos jurídicos */
.legal-model-card{display:block;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}.legal-model-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(6,46,87,.10)}
.creditor-auto-box,.selected-debtor{background:#f7fafc;border:1px solid #dce6ee;border-left:4px solid #efb800;border-radius:12px;padding:13px 15px;margin:14px 0}.creditor-auto-box a{margin-left:8px}
.debtor-search-wrap{position:relative}.autocomplete-results{position:absolute;z-index:30;left:0;right:0;background:#fff;border:1px solid #d8e2ea;border-radius:12px;box-shadow:0 14px 34px rgba(14,34,52,.16);max-height:360px;overflow:auto}.autocomplete-item{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;border-bottom:1px solid #edf1f4;background:#fff;padding:12px 14px;text-align:left;cursor:pointer;color:#182433}.autocomplete-item:hover{background:#f5f9fc}.autocomplete-item span,.autocomplete-empty{font-size:12px;color:#667789}.autocomplete-empty{padding:16px}
.legal-document-text{white-space:pre-wrap;word-break:break-word;background:#fbfcfd;border:1px solid #e0e7ed;border-radius:12px;padding:18px;font-family:Georgia,serif;font-size:14px;line-height:1.72;color:#1d2b39;max-height:none;overflow:visible}
.hash-box{margin-top:14px;padding:12px;border-radius:10px;background:#f4f7f9;border:1px solid #dce4ea;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.copy-row{display:flex;gap:8px}.copy-row input{flex:1}.search-toolbar{display:flex;gap:8px;margin:16px 0}.search-toolbar input{flex:1;padding:11px 12px;border:1px solid #ccd7e0;border-radius:10px}
.timeline-item{border-left:3px solid #dce5ec;padding:5px 0 5px 12px}.timeline-item strong{display:block}.timeline-item span{display:block;font-size:12px;color:#6b7a88;margin-top:3px}.status-banner{padding:12px 14px;border-radius:11px;margin-top:12px;border:1px solid}.status-banner.success{background:#eef8f2;border-color:#c7e4d1;color:#075f31}.status-banner.warning{background:#fff8e5;border-color:#ead99b;color:#755600}.status-banner.danger{background:#fff0f0;border-color:#efc4c4;color:#8d2525}.success-card{background:#f3fbf6;border-color:#cfe7d6}.signature-card{border-top:4px solid #efb800}.public-doc-shell{max-width:980px;margin:0 auto}.actions.compact{gap:5px;flex-wrap:wrap}
@media(max-width:760px){.copy-row,.search-toolbar{flex-direction:column}.autocomplete-results{position:relative;margin-top:6px}.legal-document-text{font-size:13px;padding:14px}.creditor-auto-box a{display:block;margin:7px 0 0}.public-doc-shell{width:100%}}

/* V5.5.1 — busca automática de endereço por CEP */
.cep-auto-field .help[data-cep-status]{min-height:18px;display:block;margin-top:5px}

/* V5.5.2 - interface profissional, menu compacto, calculo de dividas e disparos */
:root{--ui-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--navy3:#031f3a;--wa:#128c4b;--wa2:#0f7a41}
body,button,input,select,textarea{font-family:var(--ui-font)}
.page-title,.hero h1,.brand strong,.tjmg-sourcebar strong{font-family:var(--ui-font)}
.page-title{font-weight:800;letter-spacing:-.025em}.section h2{letter-spacing:-.018em}.eyebrow{display:inline-block;font-size:11px;font-weight:850;letter-spacing:.11em;color:#6c7b8a;margin-bottom:5px}
.topbar{min-height:72px;padding:8px max(18px,calc((100vw - 1320px)/2));gap:20px;box-shadow:0 5px 22px rgba(3,31,58,.14);z-index:90}
.brand{gap:10px;min-width:max-content}.brand-emblem{width:52px;height:52px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:#fff;border:1px solid rgba(255,255,255,.28);box-shadow:0 4px 12px rgba(0,0,0,.16)}.brand-emblem img{width:82px;height:82px;max-width:none;object-fit:cover;object-position:center 43%;transform:translateY(-1px)}.brand-copy{display:grid;line-height:1.05}.brand-copy strong{font-size:14px;letter-spacing:.035em;font-weight:900}.brand-copy small{font-size:10.5px;color:#f5ce4d;margin-top:5px;font-weight:650;letter-spacing:.02em}
.main-nav{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0}.main-nav>a,.nav-dropdown>summary{color:#eef6fb;font-weight:700;font-size:12px;padding:10px 9px;border-radius:8px;white-space:nowrap;cursor:pointer;list-style:none;transition:background .15s ease,color .15s ease}.nav-dropdown>summary::-webkit-details-marker{display:none}.nav-dropdown>summary:after{content:"▾";font-size:9px;margin-left:5px;color:#cbdbe8}.main-nav>a:hover,.nav-dropdown>summary:hover,.main-nav>a.active,.nav-dropdown.active>summary,.nav-dropdown[open]>summary{background:rgba(255,255,255,.10);color:#fff}.nav-dropdown{position:relative}.nav-dropdown-menu{position:absolute;top:calc(100% + 9px);left:0;min-width:210px;background:#fff;border:1px solid #dbe5ed;border-radius:12px;padding:7px;box-shadow:0 18px 44px rgba(3,31,58,.22);display:grid;gap:2px;z-index:120}.nav-dropdown:not([open]) .nav-dropdown-menu{display:none}.nav-dropdown-menu a{display:block;padding:10px 11px;border-radius:8px;color:#243547;font-size:12.5px;font-weight:700}.nav-dropdown-menu a:hover{background:#eef5fa;color:var(--navy)}.nav-dropdown-right{left:auto;right:0}.nav-dropdown-menu .logout-link{color:#a8271f;border-top:1px solid #edf1f4;margin-top:3px;padding-top:11px}.nav-toggle{display:none;background:transparent;border:0;color:#fff;padding:8px;align-items:center;gap:4px;cursor:pointer}.nav-toggle span{width:20px;height:2px;background:#fff;border-radius:4px;display:block}.nav-toggle b{font-size:11px;margin-left:4px}.public-nav{display:flex;align-items:center;gap:12px}.public-nav>a:not(.btn){color:#fff;font-weight:700}
.btn.navy{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.navy:hover{background:var(--navy2)}.btn.whatsapp{background:var(--wa);color:#fff;border-color:var(--wa)}.btn.whatsapp:hover{background:var(--wa2)}
.container{max-width:1320px}.form-card.wide{max-width:1180px}.debt-entry-shell{padding-bottom:20px}.tjmg-inline-source{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(105deg,#052e56,#0b4d84);color:#fff;border-left:4px solid var(--gold);border-radius:12px;padding:13px 15px;margin:16px 0 20px}.tjmg-inline-source>div:first-child{display:grid;gap:3px}.tjmg-inline-source span{font-size:11.5px;color:#d7e8f4}.tjmg-inline-source>div:last-child{text-align:right}.tjmg-inline-source small{display:block;color:#d7e8f4;font-size:10px;margin-bottom:2px}
.party-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.party-picker{border:1px solid #dbe5ec;border-radius:14px;background:#fbfdff;padding:14px}.party-picker>label{display:block;font-size:12px;font-weight:800;color:#304557;margin-bottom:7px}.autocomplete-shell{position:relative}.party-preview{display:grid;gap:4px;background:#fff;border:1px solid #dce7ef;border-left:4px solid var(--gold);border-radius:10px;padding:11px 12px;margin-top:10px;font-size:11.5px;color:#415466;min-height:84px}.party-preview>strong{font-size:13.5px;color:var(--navy)}.party-preview>span{color:#6d7e8e}.help-link{display:inline-block;margin-top:9px;font-size:11.5px;font-weight:750}
.strong-check{padding:12px 13px;border:1px solid #c9dce9;border-radius:11px;background:#f5fbff}.strong-check span{display:grid;gap:2px}.strong-check small{font-size:10.5px;color:#647788;font-weight:500}
.calculation-section{border:1px solid #cfdee8;background:#f9fcfe;border-radius:16px;padding:18px}.calc-date-box{min-width:190px}.calc-date-box label{display:block;font-size:11px;font-weight:800;margin-bottom:5px;color:#4c6073}.calc-date-box input{width:100%}.calc-state{align-self:center;font-size:11.5px;color:#617486;font-weight:650}.calc-error{margin-top:12px;padding:11px 12px;border-radius:10px;background:#fff0f0;border:1px solid #efcaca;color:#92261e;font-size:12px}.calculation-preview{margin-top:15px}.calc-metrics .metric{background:#fff}.metric.total-highlight{border:2px solid var(--gold);background:#fffdf4}.metric.total-highlight strong{color:var(--green);font-size:21px}.calc-factor-row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 11px;border-radius:9px;background:#edf5fa;color:#496074;font-size:10.8px;font-weight:650}.sticky-form-actions{position:sticky;bottom:10px;z-index:25;display:flex;gap:9px;flex-wrap:wrap;margin-top:22px;padding:10px;border:1px solid #d8e3ea;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-radius:13px;box-shadow:0 8px 26px rgba(3,31,58,.12)}
.debt-head-metrics.grid.five{grid-template-columns:repeat(5,1fr)}.whatsapp-send-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.whatsapp-send-card>div:first-child{display:grid;gap:4px}.whatsapp-send-card span{font-size:12px;color:#607386}.charge-breakdown{display:grid;gap:2px;font-size:10.8px;min-width:145px}.updated-amount{color:var(--green);white-space:nowrap}.debt-portfolio-table .table{min-width:1240px}
@media(max-width:1120px){.brand-copy strong{font-size:12.5px}.brand-copy small{font-size:9.5px}.main-nav>a,.nav-dropdown>summary{font-size:11px;padding:9px 7px}.debt-head-metrics.grid.five{grid-template-columns:repeat(3,1fr)}}
@media(max-width:920px){.topbar{align-items:center;flex-wrap:wrap}.brand{flex:1}.nav-toggle{display:flex;flex-direction:column;align-items:flex-start}.main-nav{display:none;width:100%;order:3;background:#052b50;border-radius:12px;padding:8px;align-items:stretch;flex-direction:column;gap:3px}.main-nav.is-open{display:flex}.main-nav>a,.nav-dropdown>summary{font-size:13px;padding:11px 12px;width:100%}.nav-dropdown-menu{position:static;box-shadow:none;border:0;border-radius:8px;margin:4px 0 2px;background:#f8fbfd}.nav-dropdown-menu a{font-size:12.5px}.party-picker-grid{grid-template-columns:1fr}.whatsapp-send-card{align-items:flex-start;flex-direction:column}.tjmg-inline-source{align-items:flex-start;flex-direction:column}.tjmg-inline-source>div:last-child{text-align:left}.debt-head-metrics.grid.five{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.brand-emblem{width:46px;height:46px}.brand-emblem img{width:72px;height:72px}.brand-copy strong{font-size:11.5px}.brand-copy small{font-size:9px}.calculation-section{padding:13px}.calc-date-box{width:100%;min-width:0}.debt-head-metrics.grid.five{grid-template-columns:1fr}.sticky-form-actions{bottom:5px}.sticky-form-actions .btn{flex:1 1 100%}.calc-factor-row{flex-direction:column}}

/* V5.5.3 — Minha Conta: visual profissional e modo explícito de edição */
.account-page{max-width:1180px;margin:0 auto}.account-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:6px 0 18px}.account-hero .page-title{font-size:32px;margin-bottom:6px}.account-hero .section-intro{margin:0;max-width:760px}.account-hero-actions{display:flex;align-items:center;flex:0 0 auto}.account-statusbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#eef5fa;border:1px solid #d3e1eb;border-radius:13px;padding:11px 13px;margin-bottom:18px;color:#4a6072;font-size:12px}.account-statusbar>span:not(.account-role){padding-right:12px;border-right:1px solid #ccdae4}.account-statusbar>span:last-child{border-right:0}.account-role{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#062e57;color:#fff;font-weight:800;font-size:10.5px;text-transform:uppercase;letter-spacing:.04em}.account-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.account-panel{background:#fff;border:1px solid #d8e3eb;border-radius:16px;padding:20px;box-shadow:0 8px 28px rgba(3,31,58,.045)}.account-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:13px;border-bottom:1px solid #edf1f4;margin-bottom:14px}.account-panel-head>div{display:flex;align-items:center;gap:10px;min-width:0}.account-panel-head h2{margin:0;color:#062e57;font-size:18px;font-weight:800;letter-spacing:-.015em}.account-panel-head>a{font-size:12px;font-weight:800}.account-icon,.account-step{width:34px;height:34px;border-radius:10px;display:inline-grid;place-items:center;flex:0 0 auto;background:#edf5fa;color:#062e57;font-weight:900;font-size:12px}.account-step{background:#062e57;color:#fff}.account-data-list{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin:0}.account-data-list>div{padding:10px 0;border-bottom:1px solid #edf1f4;min-width:0}.account-data-list>div.full{grid-column:1/-1}.account-data-list>div:nth-last-child(-n+2){border-bottom-color:transparent}.account-data-list dt{font-size:10.5px;text-transform:uppercase;letter-spacing:.055em;color:#718292;font-weight:800;margin-bottom:4px}.account-data-list dd{margin:0;color:#1f3347;font-size:13px;font-weight:650;line-height:1.45}.break-word{overflow-wrap:anywhere;word-break:break-word}.account-empty{padding:18px;border-radius:12px;background:#f8fafc;color:#617486;font-size:13px;line-height:1.55}.account-empty a{font-weight:800}.security-panel p{color:#53697c;font-size:13px;line-height:1.55}.security-facts{display:grid;gap:8px}.security-facts span{position:relative;padding-left:22px;font-size:12px;color:#455b6e}.security-facts span:before{content:'✓';position:absolute;left:0;top:0;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#e3f5eb;color:#08763b;font-size:10px;font-weight:900}.account-edit-form{display:grid;gap:16px}.account-edit-section{scroll-margin-top:96px}.account-section-note{font-size:10.5px;font-weight:800;color:#6d7f90;background:#f2f6f9;border-radius:999px;padding:5px 8px;white-space:nowrap}.account-section-help{display:block;margin:-3px 0 16px;line-height:1.5}.account-grid{gap:14px 16px}.account-grid .field label{font-size:12.5px}.account-grid .field input,.account-grid .field select,.account-grid .field textarea{border-radius:9px;padding:11px 12px}.account-grid .field input:focus,.account-grid .field select:focus,.account-grid .field textarea:focus{outline:3px solid rgba(10,66,118,.10);border-color:#6f9abd}.account-info-box{border-left:4px solid #efb800;background:#fffaf0;border-radius:10px;padding:11px 13px;color:#655414;font-size:12px;line-height:1.5;margin-bottom:15px}.account-savebar{position:sticky;bottom:10px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;background:rgba(255,255,255,.97);border:1px solid #cedde8;border-radius:14px;padding:12px 14px;box-shadow:0 12px 30px rgba(3,31,58,.13);backdrop-filter:blur(8px)}.account-savebar>div:first-child{display:grid;gap:2px}.account-savebar strong{font-size:12.5px;color:#17334f}.account-savebar span{font-size:10.5px;color:#6b7d8e}.account-savebar .actions{margin:0;flex-wrap:nowrap}.account-savebar .btn{padding:10px 14px}.account-page .cep-auto-field{align-self:end}
@media(max-width:900px){.account-overview-grid{grid-template-columns:1fr}.account-hero{align-items:stretch}.account-data-list{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.account-page{width:100%}.account-hero{flex-direction:column}.account-hero-actions,.account-hero-actions .btn{width:100%}.account-statusbar{align-items:flex-start;flex-direction:column}.account-statusbar>span:not(.account-role){border-right:0;padding-right:0}.account-data-list{grid-template-columns:1fr}.account-data-list>div.full{grid-column:auto}.account-panel{padding:15px;border-radius:13px}.account-panel-head{align-items:flex-start}.account-panel-head h2{font-size:16px}.account-section-note{white-space:normal;text-align:right}.account-savebar{position:static;align-items:stretch;flex-direction:column}.account-savebar .actions{width:100%;flex-direction:column}.account-savebar .btn{width:100%}}

/* V5.5.5 — cabeçalho, créditos, dívidas e seleção de devedor */
.brand{min-width:280px;gap:12px;overflow:visible}
.brand-emblem{width:58px;height:58px;min-width:58px;border-radius:12px;overflow:visible;background:#fff;padding:5px;box-shadow:0 5px 16px rgba(0,0,0,.18)}
.brand-emblem img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;transform:none;border-radius:8px}
.brand-copy{display:flex;flex-direction:column;justify-content:center;line-height:1.08;min-width:205px}
.brand-copy strong{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;font-weight:800;letter-spacing:.01em;text-transform:none;white-space:nowrap;color:#fff}
.brand-copy small{font-size:10.5px;letter-spacing:.025em;color:#f2cd55;margin-top:5px;white-space:nowrap}
.topbar{overflow:visible}
@media(max-width:1120px){.brand{min-width:248px}.brand-copy{min-width:175px}.brand-copy strong{font-size:13px}.brand-copy small{font-size:9.5px}}
@media(max-width:620px){.brand{min-width:0}.brand-emblem{width:48px;height:48px;min-width:48px;padding:4px}.brand-copy{min-width:0}.brand-copy strong{font-size:12px}.brand-copy small{font-size:8.8px}}

.package{display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-height:178px}
.package-copy{display:flex;flex-direction:column;gap:10px}
.package-label{display:block;min-height:42px;font-size:15px;font-weight:700;line-height:1.35;color:var(--ink)}
.package-price{display:block;font-size:28px;line-height:1.1;color:var(--navy);margin:0}
.package .muted{margin:0}.package-btn{margin-top:auto;width:100%}
.consumption-grid{align-items:stretch}
.consumption-card{display:flex;flex-direction:column;justify-content:center;min-width:0}
.consumption-card b{display:block;white-space:nowrap;font-size:13px;letter-spacing:-.01em;color:#1d2e40}
.consumption-card strong{white-space:nowrap}
@media(max-width:980px){.consumption-card b{font-size:12.5px}}
@media(max-width:720px){.consumption-card b{white-space:normal;font-size:14px}}

.debt-refresh-note{margin:8px 0 18px}.charge-breakdown{gap:5px}.charge-breakdown span{display:block;white-space:nowrap}.charge-breakdown small{display:block;color:#718293;font-size:9.5px;margin-top:1px}
.debtor-master-section{margin:20px 0 24px}.debtor-master-card{border-left:4px solid var(--gold);background:#fbfdff}.debtor-master-preview{display:grid;gap:4px;margin-top:12px;padding:12px 13px;border:1px solid #dce6ee;border-radius:11px;background:#fff;color:#536779;font-size:12px}.debtor-master-preview strong{font-size:14px;color:var(--navy)}

/* V5.5.6 - TJMG obrigatório/sincronizado no módulo de dívidas */
.tjmg-locked{background:#eef7ff;border:1px solid #bfd9ee;border-radius:12px;padding:12px 14px}
.tjmg-locked input[disabled]{opacity:1;accent-color:var(--green)}
.tjmg-locked span{display:grid;gap:3px}.tjmg-locked small{color:var(--muted);font-weight:600}

/* V5.5.7 - contatos nomeados e agenda personalizada de cobrança */
.named-contact-row{grid-template-columns:minmax(150px,.85fr) minmax(180px,1fr) auto}
.inline-fields{display:grid;grid-template-columns:auto minmax(75px,110px) minmax(120px,1fr);gap:8px;align-items:center}
#agenda-cobranca .card{border-left:4px solid var(--gold)}
#agenda-cobranca .metric strong{line-height:1.25}
.debtor-contact-row{border-left:3px solid #c9ddeb}
@media(max-width:720px){.named-contact-row{grid-template-columns:1fr}.inline-fields{grid-template-columns:auto 1fr 1fr}.named-contact-row .btn{width:100%}}


/* V5.5.10 — acesso público da cobrança e responsividade mobile global */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video{max-width:100%;height:auto}
input,select,textarea,button{min-width:0}
.container{width:100%}
.public-login-btn{background:#fff!important;color:var(--navy)!important;border:1px solid rgba(255,255,255,.7)}
.public-login-btn:hover{background:#f2f7fb!important;color:var(--navy)!important}
.public-correspondence-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.09);color:#fff;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:800;white-space:nowrap}
.public-charge-access{max-width:620px;margin:18px auto;padding:24px}
.public-charge-no-login{margin:14px 0 0;padding:11px 13px;border-radius:10px;background:#f4f7fa;color:#607386;font-size:12px;line-height:1.5}
.public-charge-page .payer-shell{width:100%}
.table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}
@media(max-width:920px){
  .topbar{padding:8px 12px;gap:8px}
  .public-topbar{flex-wrap:nowrap;min-height:68px}
  .public-topbar .brand{flex:1 1 auto;min-width:0}
  .public-nav{margin-left:auto;gap:7px;flex:0 0 auto}
  .public-nav .btn{padding:10px 12px;font-size:12px;min-height:40px}
  .toolbar{align-items:flex-start}
}
@media(max-width:720px){
  .container{padding:18px 12px 56px}
  .section{margin:34px 0}
  .section h2,.page-title{font-size:clamp(26px,8vw,32px);line-height:1.08}
  .form-card,.form-card.wide{width:100%;margin:16px 0;padding:18px 14px;border-radius:14px}
  .public-charge-access{margin:12px 0;padding:18px 14px}
  .toolbar{flex-direction:column;align-items:stretch}
  .toolbar>.actions{width:100%;margin-top:4px}
  .toolbar>.actions .btn{flex:1 1 auto}
  .actions{gap:8px}
  .btn{min-height:44px;padding:11px 14px}
  .payer-head img{width:min(112px,34vw)}
  .amount-box{padding:18px 14px}
  .amount-box strong{font-size:30px}
  .card{padding:16px}
  .field input,.field textarea,.field select{font-size:16px} /* evita zoom automático no iOS */
  .auth-links{gap:10px}
}
@media(max-width:620px){
  .public-topbar .brand-copy{display:none}
  .public-topbar .brand-emblem{width:46px;height:46px;min-width:46px;padding:4px}
  .public-topbar .brand{flex:0 0 46px}
  .public-nav{gap:6px}
  .public-nav .btn{padding:9px 11px;font-size:11.5px}
  .public-correspondence-pill{font-size:11px;padding:8px 10px;margin-left:auto}
  .authenticated-page .brand-copy strong{font-size:11.5px}
  .authenticated-page .brand-copy small{font-size:8.5px}
}
@media(max-width:390px){
  .public-topbar{padding-left:8px;padding-right:8px}
  .public-nav .btn{padding:9px 9px;font-size:11px}
  .public-topbar .brand-emblem{width:42px;height:42px;min-width:42px}
  .public-topbar .brand{flex-basis:42px}
}

/* =============================================================
   V5.5.11 — MOBILE FIRST / RESPONSIVIDADE GLOBAL
   Corrige menu, formulários, cards, tabelas e telas internas em celular.
   ============================================================= */
:root{--mobile-header-h:68px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;width:100%;overflow-x:hidden}
body{width:100%;min-width:0;overflow-x:hidden}
body.nav-open{overflow:hidden}
.topbar{width:100%;max-width:100vw}
.container,.container>*{min-width:0}
img,canvas,iframe,video,svg{max-width:100%}
pre,code{max-width:100%;overflow-wrap:anywhere}

/* Header e marca */
.brand{min-width:0;max-width:min(420px,48vw);overflow:hidden}
.brand-emblem{flex:0 0 auto}
.brand-copy{min-width:0;overflow:hidden}
.brand-copy strong,.brand-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-toggle{border-radius:10px;min-width:58px;justify-content:center;align-items:center!important}
.nav-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* Corrige regra legada que escondia links do menu no celular */
@media(max-width:920px){
  .authenticated-page .topbar{min-height:var(--mobile-header-h);height:var(--mobile-header-h);flex-wrap:nowrap;position:sticky;top:0;padding:max(7px,env(safe-area-inset-top)) 12px 7px;z-index:1000}
  .authenticated-page .brand{flex:1 1 auto;max-width:calc(100vw - 90px);gap:9px}
  .authenticated-page .brand-emblem{width:48px;height:48px;min-width:48px;border-radius:12px}
  .authenticated-page .brand-emblem img{width:72px;height:72px;object-fit:cover}
  .authenticated-page .brand-copy strong{font-size:13px;line-height:1.08}
  .authenticated-page .brand-copy small{font-size:9px;margin-top:3px}
  .authenticated-page .nav-toggle{display:flex;flex-direction:column;flex:0 0 62px;height:50px;margin-left:auto;padding:6px 7px;background:rgba(255,255,255,.07)}
  .authenticated-page .nav-toggle span{width:25px;height:2px;margin:2px 0}
  .authenticated-page .nav-toggle b{font-size:11px;margin:3px 0 0;line-height:1}

  /* menu vira drawer limpo, sem ocupar toda a página */
  .authenticated-page .main-nav{display:none;position:fixed;top:calc(var(--mobile-header-h) + env(safe-area-inset-top));right:10px;left:10px;width:auto;max-height:calc(100dvh - var(--mobile-header-h) - env(safe-area-inset-top) - 18px);overflow-y:auto;overscroll-behavior:contain;order:initial;background:#052e57;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:10px;box-shadow:0 22px 60px rgba(0,0,0,.34);align-items:stretch;flex-direction:column;gap:5px;z-index:1100}
  .authenticated-page .main-nav.is-open{display:flex!important}
  .authenticated-page .topbar nav.main-nav>a:not(.btn),
  .authenticated-page .main-nav>a,
  .authenticated-page .nav-dropdown>summary{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:12px 14px;margin:0;border-radius:10px;background:rgba(255,255,255,.055);color:#fff!important;font-size:14px;font-weight:750;text-decoration:none;white-space:normal}
  .authenticated-page .main-nav>a.active,
  .authenticated-page .nav-dropdown.active>summary{background:rgba(255,255,255,.13);box-shadow:inset 3px 0 0 var(--gold)}
  .authenticated-page .nav-dropdown{width:100%}
  .authenticated-page .nav-dropdown>summary:after{margin-left:auto;font-size:11px}
  .authenticated-page .nav-dropdown-menu{position:static!important;min-width:0;width:100%;box-shadow:none;border:0;border-radius:10px;margin:5px 0 0;padding:6px;background:#f8fbfd;overflow:hidden}
  .authenticated-page .nav-dropdown-menu a{display:flex!important;align-items:center;min-height:42px;padding:10px 12px;border-bottom:1px solid #e8eef3;border-radius:7px;color:#173957!important;font-size:13px;white-space:normal}
  .authenticated-page .nav-dropdown-menu a:last-child{border-bottom:0}
  .authenticated-page .nav-dropdown-menu .logout-link{color:#9b2b23!important}
  .mobile-nav-backdrop{display:none;position:fixed;inset:var(--mobile-header-h) 0 0;background:rgba(2,20,37,.48);z-index:1050;backdrop-filter:blur(2px)}
  body.nav-open .mobile-nav-backdrop{display:block}
}

/* Public header: sempre Entrar + Cadastre-se no celular */
@media(max-width:720px){
  .public-topbar{height:auto;min-height:64px;padding:7px 9px!important;gap:6px;flex-wrap:nowrap!important}
  .public-topbar .brand{flex:0 0 44px!important;max-width:44px!important}
  .public-topbar .brand-emblem{width:44px!important;height:44px!important;min-width:44px!important;border-radius:11px}
  .public-topbar .brand-copy{display:none!important}
  .public-nav{display:flex!important;gap:6px;margin-left:auto;min-width:0}
  .public-nav .btn{display:inline-flex!important;min-height:40px;padding:9px 11px!important;font-size:11.5px!important;white-space:nowrap}
}
@media(max-width:360px){.public-nav .btn{padding:8px 8px!important;font-size:10.8px!important}}

/* Conteúdo: respiro e largura real de celular */
@media(max-width:920px){
  .container{max-width:none!important;width:100%!important;padding:22px 16px 60px!important;margin:0!important}
  .authenticated-page .container{padding-top:20px!important}
  .toolbar{width:100%;gap:10px}
  .toolbar>div{min-width:0}
  .page-title{overflow-wrap:anywhere}
  .section-intro{font-size:15px;line-height:1.55;max-width:100%}
  .form-card,.form-card.wide,.account-page,.wa-page{max-width:100%!important;width:100%!important;margin-left:0!important;margin-right:0!important}
  .form-grid,.grid,.grid.two,.grid.three,.grid.four,.grid.five,.account-overview-grid,.party-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .field.full{grid-column:1/-1!important}
}

@media(max-width:640px){
  .container{padding:18px 12px 54px!important}
  .page-title,.section h2{font-size:clamp(25px,7.4vw,31px)!important;line-height:1.12!important}
  .section{margin:30px 0!important}
  .form-grid,.grid,.grid.two,.grid.three,.grid.four,.grid.five,.account-overview-grid,.party-picker-grid{grid-template-columns:1fr!important}
  .field.full{grid-column:auto!important}
  .form-card,.form-card.wide{padding:16px 13px!important;border-radius:14px!important}
  .card,.metric,.account-panel{padding:15px!important;border-radius:14px!important}
  .metric strong{font-size:25px!important;overflow-wrap:anywhere}
  .toolbar{flex-direction:column!important;align-items:stretch!important}
  .toolbar .actions,.actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}
  .toolbar .actions .btn,.actions>.btn,.actions>form{flex:1 1 150px;max-width:100%}
  .actions>form .btn{width:100%}
  .btn{min-height:44px;white-space:normal;text-align:center;line-height:1.15}
  .field input,.field select,.field textarea{font-size:16px!important;min-height:45px}
  .field textarea{min-height:110px}
  .check-row{align-items:flex-start}
  .notice,.legal,.success-box,.danger-box,.flash{font-size:14px;line-height:1.5;padding:14px}
}

/* Tabelas: nunca quebram a página; rolagem somente dentro da tabela */
.table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.table{width:100%;max-width:none}
@media(max-width:720px){
  .table{min-width:720px}
  .table th,.table td{padding:10px 11px;font-size:12.5px}
  .table th{font-size:10px}
  .debt-portfolio-table .table{min-width:1080px!important}
  .installment-pay-form{display:flex;gap:6px;align-items:center;min-width:520px}
}

/* Componentes especiais usados nas telas do sistema */
@media(max-width:640px){
  .wallet-balance{padding:18px!important;border-radius:15px!important}
  .wallet-balance strong{font-size:34px!important}
  .package{min-height:0!important}
  .package-label{min-height:0!important;font-size:14px!important}
  .package-price{font-size:26px!important}
  .account-hero{flex-direction:column!important;gap:12px!important}
  .account-hero-actions{width:100%}
  .account-hero-actions .btn{width:100%}
  .account-statusbar{align-items:flex-start}
  .account-statusbar>span{border-right:0!important;padding-right:0!important;width:100%}
  .account-data-list{grid-template-columns:1fr!important}
  .account-data-list>div.full{grid-column:auto!important}
  .tjmg-inline-source,.whatsapp-send-card{flex-direction:column!important;align-items:stretch!important}
  .tjmg-inline-source>div:last-child{text-align:left!important}
  .sticky-form-actions{position:static!important;padding:8px!important}
  .sticky-form-actions .btn{width:100%;flex:1 1 100%!important}
  .payer-shell{width:100%!important;max-width:100%!important}
  .amount-box{border-radius:15px!important}
  footer{padding:24px 14px!important;gap:12px!important}
}

/* Telas WhatsApp/admin com classes próprias */
@media(max-width:640px){
  .wa-metrics,.wa-policy-grid,.wa-cards,.wa-new-grid,.wa-side,.wa-facts{grid-template-columns:1fr!important}
  .wa-layout{grid-template-columns:1fr!important}
  .wa-qr{grid-template-columns:1fr!important;text-align:center}
  .wa-qr img{margin:auto}
}

/* Evita elementos absolutos/inline estourando a viewport */
@media(max-width:640px){
  [style*="max-width:110px"],[style*="max-width:145px"],[style*="max-width:220px"]{max-width:none!important}
  .nowrap{white-space:normal!important}
}
