:root{--navy:#111634;--ink:#1e284c;--muted:#687491;--purple:#795eeb;--blue:#6486e9;--border:#e7e9f2;--bg:#f5f7fc;--white:#fff;--success:#18795d;--font:Inter,'Segoe UI',Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{font-family:var(--font);-webkit-font-smoothing:antialiased}body{margin:0;color:var(--ink);background:var(--bg);font-size:15px}a{text-decoration:none;color:#6155cb}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,2.8vw,38px);letter-spacing:-.045em;line-height:1.13;margin-bottom:14px}h2{font-size:20px;letter-spacing:-.025em;margin-bottom:14px}small{font-size:12px}.muted{color:var(--muted);line-height:1.65}.hint{font-size:12px;color:var(--muted);line-height:1.6;margin:16px 0 0}.eyebrow{color:#7063ce;font-weight:850;font-size:11px;letter-spacing:.15em;margin-bottom:14px}.shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:264px;flex:none;background:linear-gradient(170deg,#111634,#202252);color:#fff;padding:28px 17px 20px;display:flex;flex-direction:column;box-shadow:8px 0 26px rgba(33,41,90,.08);z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 37px;color:#fff}.brand img{width:48px;height:48px;border-radius:13px}.brand strong{font-size:19px;letter-spacing:-.05em;display:block}.brand small{display:block;font-size:9px;letter-spacing:.13em;font-weight:700;color:#b3abf6}.nav-title{font-size:10px;letter-spacing:.13em;font-weight:800;color:#969dc7;padding:12px 14px;margin-bottom:6px}.sidebar nav{display:grid;gap:4px}.sidebar nav a,.sidebar-bottom a,.sidebar-bottom button{width:100%;font-size:14px;font-weight:650;color:#ced4ef;display:block;padding:13px 14px;border-radius:10px;transition:background .15s,color .15s}.sidebar nav a:hover,.sidebar-bottom a:hover,.sidebar-bottom button:hover{background:rgba(151,145,254,.15);color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(214,214,255,.16);padding-top:13px}.sidebar-bottom form{margin:0}.sidebar-bottom .plain{text-align:left;background:transparent;border:0}.content{min-width:0;flex:1}.topbar{height:88px;padding:16px clamp(22px,3.2vw,53px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:white}.breadcrumb{color:#5b6385;font-size:13px;font-weight:650}.breadcrumb b{color:#c2c7db;margin:0 10px}.user-pill{display:flex;align-items:center;gap:11px;font-weight:730;color:var(--ink);font-size:13px}.user-pill small{display:block;color:#8991ab;font-weight:500;margin-top:4px}.avatar{height:38px;width:38px;display:grid;place-items:center;border-radius:13px;background:#ece8ff;color:#6d5bd1;font-weight:850}.mobile-nav{display:none;border:0;background:#f0edff;color:#5f55be;border-radius:9px;padding:9px 12px}.main{max-width:1660px;margin:0 auto;padding:clamp(24px,3.2vw,48px)}.page-intro{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:30px}.page-intro p{color:var(--muted);font-size:15px;line-height:1.65;margin:0;max-width:730px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:780;padding:13px 18px;min-height:45px;line-height:1.25;border-radius:11px;border:1px solid transparent;white-space:normal;text-align:center;transition:filter .17s,transform .17s}.btn:hover{filter:brightness(1.045);transform:translateY(-1px)}.btn:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b6aafd;outline-offset:2px}.btn:disabled{opacity:.6;cursor:wait}.btn.primary{color:#fff;background:linear-gradient(111deg,#5a7ce9,#8463e7);box-shadow:0 9px 20px rgba(99,94,217,.13)}.btn.outline{background:#fff;color:#58588b;border-color:#d9ddf0}.btn.small{padding:8px 12px;min-height:34px;font-size:12px}.btn.whatsapp{color:white;background:#1c9b6d;width:100%;margin-top:14px;padding:16px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:27px}.stat{min-height:162px;background:white;border:1px solid var(--border);border-radius:18px;padding:20px;box-shadow:0 10px 28px rgba(30,41,94,.03)}.stat-icon{height:36px;width:36px;display:grid;place-items:center;border-radius:11px;color:#7160db;background:#f0edff;font-size:18px;margin-bottom:13px}.stat small{display:block;color:var(--muted);font-weight:570}.stat strong{display:block;font-weight:800;font-size:30px;letter-spacing:-.04em;margin-top:7px;color:#20254a}.surface{background:white;border:1px solid var(--border);border-radius:20px;padding:clamp(20px,2.1vw,30px);box-shadow:0 8px 30px rgba(25,36,82,.035);margin-bottom:20px}.surface-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}.surface-head h2{margin:0}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:550px}th{text-align:left;font-size:12px;letter-spacing:.02em;color:#79839e;background:#fafbfe}td,th{padding:15px 12px;border-bottom:1px solid #eceef6}td{font-size:13px}tr:last-child td{border-bottom:0}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.column{min-width:0}.stack{display:grid;gap:17px}.stack label,.filters label,.surface>label{display:grid;gap:8px;font-size:13px;color:#384260;font-weight:700}input:not([type=checkbox]):not([type=file]):not([type=radio]),textarea,select{width:100%;border:1px solid #dce0ee;border-radius:10px;background:#fff;padding:12px 13px;color:#233050;min-height:47px;outline:none}textarea{min-height:125px;resize:vertical;line-height:1.6}input[type=file]{width:100%;background:#f7f8fc;padding:13px;border:1px dashed #c9c9e4;border-radius:10px;font-size:13px}label.check{display:flex;gap:12px;align-items:flex-start;cursor:pointer;color:#535b79;font-weight:550;line-height:1.5}label.check input{accent-color:#765de0;flex:none;width:18px;height:18px;margin-top:4px}label.check small{display:block;color:#8189a5;margin-top:3px}.notice{padding:15px 18px;background:#e8f6ef;border:1px solid #c5e8d7;border-radius:12px;color:#1f7756;line-height:1.5;margin:0 0 20px}.notice.danger{background:#fff0f0;color:#94363d;border-color:#f0cdd0}.badge{font-size:11px;font-weight:800;line-height:1.1;display:inline-flex;border-radius:30px;padding:8px 11px;background:#ecf1ff;color:#6270bb;white-space:nowrap}.badge.good{background:#e7f7f0;color:#148460}.badge.warn{background:#fff3d9;color:#9e7015}.badge.muted{background:#edf0f5;color:#737b90}.badge.neutral{background:#edebff;color:#7059c6}.badge.large{font-size:13px;padding:11px 15px}.partner-line{border-bottom:1px solid var(--border);padding:14px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.partner-line:last-child{border:0}.partner-line>div:first-child{flex:1;min-width:190px}.partner-line strong,.partner-line small{display:block}.partner-line small{color:var(--muted);margin-top:7px}.actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.actions form{margin:0}.total-counter{border:1px solid #e3e1f7;background:#efedff;padding:12px 15px;border-radius:13px;color:#645cc9;font-size:13px;font-weight:780;white-space:nowrap}.filter-grid{display:grid;grid-template-columns:1.4fr 1fr .55fr 1fr .7fr auto auto;gap:11px;align-items:end}.filter-grid label{font-size:12px}.filter-grid input,.filter-grid select{min-height:44px;padding:10px 11px}.client-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.client-card{min-width:0;background:white;border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:0 9px 22px rgba(32,37,80,.025);display:flex;flex-direction:column}.client-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.client-head small{font-size:11px;color:#949bb0}.client-card h2{font-size:18px;min-height:42px;margin:18px 0 15px;line-height:1.25;overflow-wrap:anywhere}.client-data{display:grid;gap:10px;margin-bottom:18px}.client-data span{display:flex;gap:7px;justify-content:space-between;align-items:baseline;color:#868fa9;font-size:12px}.client-data strong{color:#404965;font-size:12px;text-align:right;overflow-wrap:anywhere}.card-actions{margin-top:auto}.card-actions .btn{width:100%}.pagination{display:flex;justify-content:center;align-items:center;gap:22px;padding:15px}.pagination span{font-size:13px;color:#75819c}.back-link{display:inline-block;font-size:13px;font-weight:750;margin-bottom:27px}.details{display:grid;gap:0}.details>div{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:1.5}.details>div:last-child{border-bottom:0}.details span{color:#8a94ab;min-width:90px}.details strong{text-align:right;font-weight:750;overflow-wrap:anywhere}.accent{background:linear-gradient(155deg,#fcfbff,#f4f2ff);border-color:#e1dafb}.accent>p{color:#6d7394;line-height:1.6}.timeline{border-left:2px solid #dfddf5;margin-left:7px;padding-left:20px}.event{position:relative;margin:0 0 21px}.event:before{content:"";position:absolute;left:-26px;top:4px;background:#8b7bdf;width:10px;height:10px;border-radius:50%;border:2px solid white}.event small{color:#8a92ac}.event p{margin:7px 0;color:#46516f;line-height:1.5;font-size:13px;overflow-wrap:anywhere}.progress-track{height:13px;border-radius:100px;background:#e9ebf6;overflow:hidden;margin:24px 0 17px}.progress-fill{height:100%;width:0;background:linear-gradient(90deg,#5a84ee,#8765e6);transition:width .25s}.import-line{display:grid;gap:7px;padding:13px 0;border-bottom:1px solid var(--border);color:#3b4569}.import-line span,.import-line small{color:#8e96ad}.import-line:last-child{border:0}.empty{padding:35px;text-align:center}.auth-screen{min-height:100vh;background:linear-gradient(130deg,#111632,#24255d 65%,#3a2e85);display:grid;place-items:center;padding:25px}.auth-box{width:min(100%,485px);border:1px solid rgba(255,255,255,.45);background:#fff;border-radius:24px;padding:clamp(27px,4vw,49px);box-shadow:0 35px 100px rgba(5,5,25,.28)}.auth-box h1{font-size:35px;margin:15px 0}.auth-box p{font-size:14px}.auth-box .btn{width:100%;margin-top:7px;min-height:52px}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:35px}.auth-brand img{width:53px;height:53px;border-radius:14px}.auth-brand strong{font-size:24px;letter-spacing:-.055em}dialog{border:1px solid #daddec;border-radius:17px;max-width:420px;width:calc(100% - 30px);padding:28px;box-shadow:0 20px 80px rgba(0,0,0,.15)}dialog::backdrop{background:rgba(8,10,30,.45)}
@media(max-width:1450px){.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr)) auto auto}.client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.sidebar{width:224px;padding:23px 12px}.main{padding:24px}.topbar{padding:16px 23px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-intro{align-items:flex-start}.page-intro .btn{margin-top:10px}}
@media(max-width:850px){.sidebar{position:fixed;top:0;left:0;transform:translateX(-105%);transition:transform .2s;width:270px;box-shadow:0 10px 40px rgba(0,0,0,.25)}body.nav-open .sidebar{transform:translateX(0)}.mobile-nav{display:block}.topbar{height:71px}.topbar .breadcrumb{margin-right:auto;margin-left:15px}.split{grid-template-columns:1fr}.main{padding:22px}.client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid .btn{height:45px}.user-pill>span:last-child{display:none}}
@media(max-width:600px){.main{padding:18px 14px}.page-intro{flex-direction:column;gap:16px}.page-intro h1{font-size:30px}.page-intro .btn{width:100%;margin-top:0}.page-intro p{font-size:14px}.stats{gap:10px}.stat{min-height:135px;padding:14px}.stat strong{font-size:26px}.stat-icon{height:30px;width:30px;margin-bottom:9px}.stat small{font-size:11px}.surface{padding:19px 16px;border-radius:16px}.filter-grid{grid-template-columns:1fr 1fr}.filter-grid label:first-child,.filter-grid label:nth-child(2){grid-column:span 2}.client-grid{grid-template-columns:1fr;gap:11px}.client-card{padding:19px}.client-card h2{min-height:0}.topbar{padding:12px 16px}.brand strong{font-size:18px}.details>div{gap:8px}.details strong{max-width:66%}.actions{gap:6px}.pagination{gap:7px}.pagination .btn{padding:10px}.auth-screen{padding:12px}.auth-box{padding:28px 22px}.auth-box h1{font-size:30px}}
/* V2 - relatório de conferência antes da importação */
.preview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0 28px}
.preview-kpis>div{padding:17px 14px;border:1px solid #e3e5f4;border-radius:14px;background:#f7f8ff}
.preview-kpis small{display:block;color:#6e7898;font-weight:700;margin-bottom:8px;font-size:12px}
.preview-kpis strong{font-size:26px;color:#15244b}
.preview-overflow{overflow-x:auto;border-radius:13px;border:1px solid #e4e6f4;margin-top:15px;margin-bottom:19px}
.preview-table{width:100%;border-collapse:collapse;min-width:690px;font-size:13px}
.preview-table th{background:#151b40;color:white;padding:13px 12px;text-align:left}
.preview-table td{padding:11px 12px;border-bottom:1px solid #edf0f9;color:#28345d}
.preview-table tbody tr:nth-child(even){background:#f7f8ff}
.preview-table td:first-child{font-weight:700}
.preview-present{color:#176e58;font-weight:700}
.preview-missing{color:#b44719;font-weight:700}
.preview-alerts{padding:14px 19px;background:#f4f3ff;border-radius:12px;margin-bottom:22px;color:#465274;font-size:13px}
.preview-alerts p{line-height:1.55}
.preview-confirm-form{display:grid;gap:14px;margin:22px 0 11px}
@media(max-width:800px){.preview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.preview-kpis strong{font-size:22px}}
/* V3: listas por parceiro e trabalho em lotes */
.mode-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.mode-tab{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;color:#596186;background:white;border:1px solid #dde0f2;border-radius:12px;font-size:14px;font-weight:800}
.mode-tab.active{background:linear-gradient(115deg,#5c7ee9,#8062e6);color:white;border-color:transparent}
.batch-filters{display:grid;grid-template-columns:1fr 1.3fr .6fr 1fr .8fr auto auto;gap:11px;align-items:end}
.batch-filters label,.cpf-filters label,.list-filter label{display:grid;gap:7px;color:#364063;font-size:12px;font-weight:750}
.batch-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;padding:8px 3px;font-size:13px;color:#6c7690}
.batch-summary strong{font-size:18px;color:#242e51}
.batch-navigation{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin:22px 0 32px}
.cpf-filters{display:flex;align-items:end;max-width:650px;gap:12px}.cpf-filters label{flex:1}
.list-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.list-filter label{min-width:270px;flex:1}
.list-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.list-card{margin-bottom:0;min-width:0}.list-card-top{display:flex;align-items:start;justify-content:space-between;gap:10px}.list-card-top h2{margin:10px 0 8px;overflow-wrap:anywhere}.list-card-top p{margin-bottom:15px;font-size:12px}
.list-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 21px}
.list-counters span{display:grid;gap:3px;padding:12px;border:1px solid #ebecf6;border-radius:12px;background:#f9faff}
.list-counters strong{font-size:24px;color:#1d2b56}.list-counters small{color:#7784a0;line-height:1.3}
.btn.danger{background:#9e3248;color:white;border-color:#9e3248}
@media(max-width:1400px){.batch-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.list-cards{grid-template-columns:1fr}.batch-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mode-tabs{display:grid;grid-template-columns:1fr}.mode-tab{width:100%}.batch-filters{grid-template-columns:1fr 1fr}.batch-filters label:nth-child(2),.batch-filters label:nth-child(4),.batch-filters button,.batch-filters a{grid-column:span 2}.cpf-filters{display:grid;grid-template-columns:1fr}.batch-summary{flex-direction:column;align-items:flex-start}.list-card-top{flex-direction:column}.list-counters strong{font-size:19px}.list-counters small{font-size:10px}}
/* V4 - consultas por telefone, CPF de parceiros, comunicados de ciencia */
.cpf-filters{max-width:860px;display:grid;grid-template-columns:minmax(145px,.5fr) minmax(210px,1.6fr) auto;align-items:end;gap:12px}
.notice-body{white-space:normal;overflow-wrap:anywhere;background:#f8f8ff;border:1px solid #e2e2f4;border-left:4px solid #7968df;border-radius:12px;padding:24px 22px;color:#243155;font-size:15px;line-height:1.85;margin:22px 0 26px;max-height:70vh;overflow:auto}
.notice-heading{font-size:clamp(22px,2.2vw,30px);margin-top:20px}
[data-partner-target].is-hidden{display:none}
@media(max-width:800px){.cpf-filters{grid-template-columns:1fr 1fr}.cpf-filters button{grid-column:span 2}}
@media(max-width:600px){.cpf-filters{grid-template-columns:1fr}.cpf-filters button{grid-column:auto}.notice-body{padding:17px}}

/* V4.1: modelos editáveis, retirada de comunicados e anúncios no painel */
.commission-panel{border:1px solid #dbd7fa;background:#f7f6ff;border-radius:14px;padding:18px;display:grid;gap:13px}
.commission-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.commission-inputs label{font-size:12px;font-weight:750;color:#3c4770;display:grid;gap:7px;min-width:0}
.notice-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:7px}
.notice-actions form{margin:0}
.btn.notice-delete{color:#a33c4b;border-color:#eacbd0;background:#fffafb}
.announcements-surface{border-top:3px solid #8470df}
.announcement-row{display:grid;gap:7px;padding:14px 0;border-bottom:1px solid #eeeef6}
.announcement-row:last-child{border-bottom:0;padding-bottom:0}
.announcement-row strong{color:#252f57;font-size:15px}
.announcement-row small{color:#858ca5;font-size:12px}
.announcement-row p{color:#57617e;font-size:13px;margin:0;line-height:1.6}
.announcement-row a{font-size:13px;font-weight:750}
@media(max-width:600px){.commission-inputs{grid-template-columns:1fr}.announcements-surface .surface-head{align-items:flex-start;flex-wrap:wrap}}
.commission-panel.is-hidden{display:none}


/* V5.1 — Corrige opções do mapeamento do arquivo no formulário de importação.
   Os radios não devem herdar o tamanho dos campos de texto. */
.import-mode{
  min-width:0;
  width:100%;
  max-width:100%;
  margin:0;
  padding:12px 15px 15px;
  display:grid;
  gap:10px;
  border:1px solid #dedff0;
  border-radius:13px;
  background:#fafaff;
}
.import-mode legend{
  padding:0 8px;
  max-width:100%;
  font-size:13px;
  font-weight:750;
  color:#253357;
}
.import-mode label.check{
  min-width:0;
  width:100%;
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:12px;
  margin:0;
  padding:12px;
  border-radius:10px;
  border:1px solid #e7e6f6;
  background:#fff;
  cursor:pointer;
}
.import-mode label.check input[type=radio]{
  width:18px;
  height:18px;
  min-width:18px;
  min-height:0;
  flex:0 0 18px;
  display:block;
  margin:2px 0 0;
  padding:0;
  border:0;
  accent-color:#765de0;
}
.import-mode label.check span{
  flex:1 1 auto;
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}
.import-mode label.check strong{
  display:block;
  line-height:1.4;
  color:#283358;
}
.import-mode label.check small{
  display:block;
  font-size:12px;
  font-weight:450;
  line-height:1.55;
  margin-top:5px;
  color:#697594;
}
@media(max-width:600px){
  .import-mode{padding:11px 10px 12px}
  .import-mode label.check{padding:11px 9px}
}
