
[hidden]{display:none!important}
*{box-sizing:border-box}
:root{
  --p:#7e0c80;--p2:#a63aa8;--p3:#5d075f;
  --nav:#25132c;--nav2:#1c1326;
  --bg:#f4f5f8;--card:#fff;--text:#20263a;--muted:#7a8091;
  --line:#e5e7ed;--soft:#f8f2f8;--ok:#12a866;
  --shadow:0 6px 22px rgba(34,26,42,.07);
}
html,body{min-height:100%}
body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}
button,input{font:inherit}

/* LOGIN */
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.02fr .98fr;background:#fff}
.login-brand{
  background:linear-gradient(145deg,#32123a 0%,#25132c 55%,#1c1326 100%);
  color:#fff;padding:8vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden
}
.login-brand:before{content:"";position:absolute;width:440px;height:440px;border-radius:50%;background:#7e0c8024;right:-180px;top:-140px}
.login-brand:after{content:"";position:absolute;width:300px;height:300px;border:1px solid #ffffff12;border-radius:50%;left:-110px;bottom:-120px}
.login-logo{width:min(330px,80%);max-height:160px;object-fit:contain;object-position:left center;margin-bottom:46px;position:relative;z-index:1}
.login-brand p{font:700 34px Georgia,serif;line-height:1.15;margin:0 0 16px;max-width:520px;position:relative;z-index:1}
.login-brand small{font-size:14px;line-height:1.75;max-width:520px;color:#eadfeb;position:relative;z-index:1}
.login-card{display:grid;place-items:center;padding:40px;background:#f7f7f9}
.login-card>div{width:min(445px,100%);background:#fff;padding:42px;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px rgba(32,24,40,.08)}
.login-card h1{font-size:27px;margin:0 0 9px;letter-spacing:-.4px}
.muted{color:var(--muted);line-height:1.55}
.login-card label{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin:18px 0 7px;color:#5f6472}
.login-card input{width:100%;padding:13px 14px;border:1px solid #dfe3eb;border-radius:8px;outline:none;background:#fff}
.login-card input:focus{border-color:var(--p2);box-shadow:0 0 0 3px #7e0c8010}
.pw{display:flex;gap:8px}.pw button{border:1px solid var(--line);background:#faf8fb;border-radius:8px;padding:0 13px;color:var(--p);font-weight:800;cursor:pointer}
.primary{width:100%;border:0;border-radius:8px;padding:13px;margin-top:22px;background:linear-gradient(135deg,var(--p),var(--p2));color:#fff;font-weight:800;cursor:pointer;box-shadow:0 6px 15px #7e0c8028}
.msg{margin-top:13px}.msg.err{color:#b4233b}

/* PORTAL */
.portal{min-height:100vh;background:var(--bg)}
.side{
  position:fixed;inset:0 auto 0 0;width:238px;
  background:linear-gradient(180deg,#32123a 0%,#1c1326 100%);
  padding:20px 14px 18px;display:flex;flex-direction:column;color:#fff;
  box-shadow:4px 0 20px #1c132622;z-index:20
}
.side-brand{height:105px;padding:2px 10px 20px;display:flex;align-items:center;border-bottom:1px solid #ffffff18;margin-bottom:17px}
.side-brand img{width:174px;height:75px;object-fit:contain;object-position:left center}
.side nav{display:flex;flex-direction:column;gap:3px}
.nav,.logout{border:0;background:transparent;color:#ddd2e1;padding:12px 13px;border-radius:8px;text-align:left;font-weight:700;cursor:pointer;transition:.18s}
.nav{display:flex;gap:11px;align-items:center;min-height:44px}
.nav.active,.nav:hover{background:#fff;color:var(--p);box-shadow:0 5px 14px #0002}
.logout{margin-top:auto;border:1px solid #ffffff1f;color:#eadfeb}
.logout:hover{background:#ffffff0d}

.content{margin-left:238px;padding:0 24px 35px;min-height:100vh}
.top{
  min-height:102px;margin:0 -24px 22px;padding:17px 24px;background:#fff;
  border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;
  position:sticky;top:0;z-index:10
}
.eyebrow{font-size:9px;letter-spacing:.13em;font-weight:900;color:var(--p);text-transform:uppercase}
.top h1{margin:5px 0 3px;font-size:23px;letter-spacing:-.35px;color:#17213a}
.top p{margin:0;color:var(--muted);font-size:12px}
.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f3e5f4;color:var(--p);font-weight:900;border:1px solid #ead9eb}
.page{max-width:1280px;margin:auto}

/* DESTAQUE */
.event-card{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,#7e0c80 0%,#9c249e 100%);
  color:#fff;border-radius:12px;padding:24px 27px;display:flex;justify-content:space-between;align-items:center;
  box-shadow:0 8px 22px #7e0c8025
}
.event-card:after{content:"";position:absolute;width:190px;height:190px;border:1px solid #ffffff18;border-radius:50%;right:-55px;top:-75px}
.event-tag{font-size:9px;letter-spacing:.12em;font-weight:900;color:#f2dff3}
.event-card h2{font-size:24px;margin:8px 0 11px;letter-spacing:-.3px}
.event-meta{display:flex;gap:24px;color:#f8eefa;font-size:12px}
.event-badge{width:65px;height:65px;border:1px solid #ffffff50;border-radius:50%;display:grid;place-items:center;font:italic 700 34px Georgia;position:relative;z-index:1}

/* ATALHOS */
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:17px 0}
.quick-grid button{
  min-height:82px;display:grid;grid-template-columns:44px 1fr 20px;gap:13px;align-items:center;
  background:#fff;border:0;border-radius:10px;padding:16px 18px;text-align:left;cursor:pointer;
  box-shadow:0 2px 9px #20263812;transition:.18s
}
.quick-grid button:hover{transform:translateY(-2px);box-shadow:0 8px 22px #2026381c}
.quick-grid b{width:42px;height:42px;border-radius:9px;display:grid;place-items:center;background:#f8eff8;color:var(--p);font-size:18px}
.quick-grid span{font-weight:800;color:#252838}
.quick-grid small{display:block;color:var(--muted);font-weight:500;margin-top:5px;font-size:11px}
.quick-grid i{font-style:normal;color:var(--p);font-size:21px}
.care{background:#fff;border:0;border-radius:10px;padding:18px 19px;display:flex;gap:14px;align-items:flex-start;box-shadow:0 2px 9px #20263812}
.care-icon{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#f6e9f6;color:var(--p)}
.care b{font-size:13px}.care p{color:var(--muted);margin:5px 0 0;line-height:1.5;font-size:12px}

/* PÁGINAS INTERNAS */
.section-head{background:#fff;margin:0 0 16px;padding:18px 20px;border-radius:10px;box-shadow:0 2px 9px #20263812;border-left:4px solid var(--p)}
.section-head h2{margin:0 0 4px;font-size:20px;color:#17213a}.section-head p{margin:0;color:var(--muted);font-size:11px}
.list-card,.empty-card{background:#fff;border:0;border-radius:10px;padding:18px 20px;box-shadow:0 2px 9px #20263812}
.contract-row{display:grid;grid-template-columns:1.3fr 1fr 1fr .7fr;gap:15px;padding:14px 5px;border-bottom:1px solid #edf0f4}
.contract-row:last-child{border-bottom:0}.contract-row small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800;margin-bottom:5px}.contract-row strong{font-size:12px;color:#30384c}
.empty-card{min-height:190px;display:grid;place-items:center;text-align:center;align-content:center;gap:7px;color:var(--muted)}
.empty-card b{color:#252838;font-size:16px}.empty-card span{max-width:500px;font-size:12px}.empty-list{text-align:center;color:var(--muted);padding:32px}

@media(max-width:800px){
 .login-shell{grid-template-columns:1fr}.login-brand{padding:45px 28px}.login-logo{height:95px;margin-bottom:22px}.login-brand p{font-size:26px}
 .side{width:74px;padding:18px 8px}.side-brand{height:82px;padding:0 0 15px}.side-brand img{width:58px;height:58px}
 .nav span{display:none}.nav{justify-content:center;font-size:19px}.logout{text-align:center;font-size:0}.logout:after{content:"↪";font-size:20px}
 .content{margin-left:74px;padding:0 14px 22px}.top{margin:0 -14px 18px;padding:16px 14px;min-height:90px}.top p{display:none}.top h1{font-size:19px}
 .quick-grid{grid-template-columns:1fr}.event-card{padding:21px}.event-badge{display:none}.event-meta{flex-direction:column;gap:5px}.contract-row{grid-template-columns:1fr 1fr}
 .login-card>div{padding:29px 23px}
}


select{font:inherit}
.contract-card{margin-top:14px;background:#fff;border-radius:10px;box-shadow:var(--shadow);overflow:hidden}
.contract-title{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.contract-title h3{margin:0;font-size:16px}.status-ok{font-size:9px;font-weight:900;color:#0c8a55;background:#e9f8f1;padding:6px 9px;border-radius:20px}
.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line)}.detail{background:#fff;padding:15px 18px}.detail small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800;margin-bottom:5px}.detail strong{font-size:12px}
.service-list{padding:18px 20px}.service-list h4{margin:0 0 10px}.service-row{display:grid;grid-template-columns:1.6fr .6fr .7fr;gap:10px;padding:11px 0;border-bottom:1px solid #eef0f4}.service-row:last-child{border:0}
.action-row{display:flex;gap:9px;padding:0 20px 20px}.small-primary,.small-secondary,.danger-link{border:0;border-radius:7px;padding:10px 13px;font-weight:800;cursor:pointer}.small-primary{background:var(--p);color:#fff}.small-secondary{background:#f4edf5;color:var(--p)}.danger-link{background:#fff0f1;color:#b4233b}
.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.summary-card{background:#fff;border-radius:10px;padding:17px 18px;box-shadow:var(--shadow)}.summary-card small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800}.summary-card b{display:block;font-size:20px;margin-top:7px}.summary-card.open b{color:var(--p)}
.payment-row{display:grid;grid-template-columns:.8fr .9fr .8fr .8fr .8fr 1fr;gap:12px;align-items:center;padding:14px 5px;border-bottom:1px solid #edf0f4}.payment-row:last-child{border:0}.payment-row small{display:block;font-size:9px;color:var(--muted);text-transform:uppercase;font-weight:800;margin-bottom:4px}.pay-status{display:inline-block;padding:5px 8px;border-radius:15px;font-size:9px;font-weight:900}.pay-status.pago{background:#e9f8f1;color:#0b8a55}.pay-status.vencido{background:#fff0f1;color:#b4233b}.pay-status.aberto{background:#f7edf8;color:var(--p)}
.receipt-link{display:inline-block;margin:3px 4px 3px 0;color:var(--p);font-size:10px;font-weight:800;text-decoration:none}
.upload-card,.filter-card{background:#fff;border-radius:10px;padding:18px 20px;box-shadow:var(--shadow);margin-bottom:14px}.upload-card{display:grid;grid-template-columns:1fr 1fr;gap:14px}.upload-card label,.filter-card label{display:block;font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:800;margin-bottom:6px}.upload-card select,.filter-card select{width:100%;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff}.file-row{grid-column:1/-1;display:flex;gap:10px;align-items:center}.file-row input{flex:1}.upload-card>small{grid-column:1/-1;color:var(--muted)}
.file-item,.frame-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 4px;border-bottom:1px solid #edf0f4}.file-item:last-child,.frame-item:last-child{border:0}.file-item b,.frame-item b{display:block}.file-item small,.frame-item small{color:var(--muted)}
.frame-actions{display:flex;gap:7px;flex-wrap:wrap}.frame-comment{width:100%;margin-top:9px;padding:10px;border:1px solid var(--line);border-radius:7px;min-height:70px;resize:vertical}
.toast{position:fixed;right:25px;bottom:25px;background:#211428;color:#fff;padding:13px 16px;border-radius:9px;box-shadow:0 10px 30px #0003;z-index:1400;font-weight:700;max-width:min(560px,calc(100vw - 30px));white-space:normal;overflow-wrap:anywhere}.toast.err{background:#9d2437}
@media(max-width:900px){.detail-grid{grid-template-columns:1fr 1fr}.payment-row{grid-template-columns:1fr 1fr}.summary-grid{grid-template-columns:1fr}.upload-card{grid-template-columns:1fr}.file-row{grid-column:auto;flex-direction:column;align-items:stretch}}


/* ===== MENU PORTAL DO CLIENTE — IGUAL AO SISTEMA ETERNIZE ===== */
.side{
  width:248px !important;
  background:#ffffff !important;
  color:#31364d !important;
  padding:0 9px 14px !important;
  border-right:1px solid #e1e4ec !important;
  box-shadow:3px 0 12px rgba(32,38,56,.04) !important;
}
.side-brand{
  height:92px !important;
  margin:0 -9px 13px !important;
  padding:13px 24px !important;
  background:#2b1232 !important;
  border-bottom:0 !important;
  display:flex !important;
  align-items:center !important;
}
.side-brand img{
  width:112px !important;
  height:58px !important;
  object-fit:contain !important;
  object-position:left center !important;
}
.side nav{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  padding:0 !important;
}
.nav{
  min-height:48px !important;
  padding:11px 15px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:#34394f !important;
  font-size:13px !important;
  font-weight:500 !important;
  gap:13px !important;
  box-shadow:none !important;
  position:relative !important;
}
.nav:hover{
  background:#f8f1fa !important;
  color:#7e0c80 !important;
}
.nav.active{
  background:#f2e7f6 !important;
  color:#7e0c80 !important;
  font-weight:800 !important;
}
.nav.active:before{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  top:6px !important;
  bottom:6px !important;
  width:4px !important;
  border-radius:0 4px 4px 0 !important;
  background:#ad28b3 !important;
}
.logout{
  margin-top:auto !important;
  border:0 !important;
  border-top:1px solid #e5e7ed !important;
  border-radius:0 !important;
  background:#fff !important;
  color:#34394f !important;
  padding:14px 15px 8px !important;
  font-size:12px !important;
  font-weight:700 !important;
}
.logout:hover{color:#7e0c80 !important;background:#faf7fb !important}
.content{margin-left:248px !important}

/* Mobile: mantém a identidade do sistema sem ocupar a tela */
@media(max-width:800px){
  .side{
    width:70px !important;
    padding:0 7px 12px !important;
  }
  .side-brand{
    height:70px !important;
    margin:0 -7px 12px !important;
    padding:9px 7px !important;
    justify-content:center !important;
  }
  .side-brand img{
    width:54px !important;
    height:45px !important;
    object-position:center !important;
  }
  .nav{
    min-height:46px !important;
    padding:10px !important;
    justify-content:center !important;
    font-size:18px !important;
  }
  .nav span{display:none !important}
  .nav.active:before{top:6px !important;bottom:6px !important}
  .logout{
    text-align:center !important;
    font-size:0 !important;
    padding:11px 8px !important;
  }
  .logout:after{content:"↪";font-size:19px}
  .content{margin-left:70px !important}
}

/* ===== MINHA MOLDURA — MESMO PADRÃO DO SISTEMA ===== */
.frames-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,310px);
  gap:18px;
  align-items:stretch;
  justify-content:start;
}
.frame-card{
  width:310px;
  height:430px;
  background:#fff;
  border:1px solid #e8e3eb;
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(32,38,56,.06);
  display:flex;
  flex-direction:column;
  min-width:0;
}
.frame-preview{
  height:210px;
  flex:0 0 210px;
  padding:12px;
  background:#f5f3f6;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.frame-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.frame-pdf{
  width:100%;height:100%;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:8px;color:var(--p);text-decoration:none
}
.frame-pdf span{font-size:30px;font-weight:900}.frame-pdf b{font-size:12px}
.frame-card-body{
  padding:13px 14px 12px;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.frame-card-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:37px;
  font-size:13px;
  line-height:1.4;
  color:#283047;
  overflow-wrap:anywhere;
}
.frame-status{
  margin-top:7px;
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  text-transform:uppercase;
}
.frame-status.is-approved{color:#157347}
.frame-status.is-rejected{color:#6b7280}
.frame-status.is-change{color:#b42318}
.frame-status.is-pending{color:#7e0c80}
.frame-date{
  margin-top:4px;
  color:#7a8091;
  font-size:9px;
  line-height:1.35;
  min-height:13px;
}
.frame-note-slot{
  height:49px;
  margin-top:8px;
  overflow:hidden;
}
.frame-note{
  height:100%;
  padding:8px 9px;
  border-radius:9px;
  background:#fff4e5;
  color:#8a4b00;
  font-size:10px;
  line-height:1.35;
  display:flex;
  gap:5px;
  align-items:flex-start;
  overflow:hidden;
}
.frame-note>div{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.frame-actions{
  margin-top:auto !important;
  display:grid !important;
  grid-template-columns:72px 72px 1fr !important;
  gap:7px !important;
  align-items:stretch;
}
.frame-actions:empty{display:none !important}
.frame-card .frame-actions button{
  width:100%;
  min-height:34px;
  padding:7px 7px;
  border-radius:9px;
  font-size:10px;
  line-height:1.15;
  font-weight:800;
  cursor:pointer;
  white-space:normal;
}
.frame-card .frame-approve{border:1px solid var(--p);background:var(--p);color:#fff}
.frame-card .frame-reject{border:1px solid #cf3b4d;background:#fff;color:#bd2d40}
.frame-card .frame-change{border:1px solid var(--p);background:#fff;color:var(--p)}
.frame-card-rejected .frame-preview img{filter:grayscale(100%)}
.frame-card-rejected .frame-preview{background:#f1f1f1}
.frame-card-rejected .frame-card-title{color:#747986}

@media(max-width:1050px){
  .frames-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
  .frame-card{width:100%;}
}
@media(max-width:700px){
  .frames-grid{grid-template-columns:1fr;gap:14px}
  .frame-card{width:100%;max-width:380px;height:430px}
  .frame-preview{height:210px;flex-basis:210px}
}


/* ===== MEU CONTRATO — DETALHES ORGANIZADOS ===== */
.contract-card-detail{border:1px solid #ece9ef;border-radius:14px;box-shadow:0 4px 16px rgba(32,38,56,.06);overflow:hidden}
.contract-card-detail .contract-title{padding:18px 22px;background:#fff}
.contract-card-detail .contract-title>div{display:flex;align-items:baseline;gap:8px}
.contract-kicker{font-size:9px;font-weight:900;letter-spacing:.08em;color:var(--muted)}
.contract-card-detail .contract-title h3{font-size:18px;color:#17213a;margin:0}
.contract-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));background:#eceef3;gap:1px}
.contract-detail-grid .detail{min-height:78px;padding:16px 20px;background:#fff}
.contract-detail-grid .detail small{font-size:9px;letter-spacing:.03em;margin-bottom:7px;color:#777e90}
.contract-detail-grid .detail strong{display:block;font-size:13px;line-height:1.4;color:#1d2941;overflow-wrap:anywhere}
.contract-services{padding:20px 22px 10px;background:#fff;border-top:1px solid #eceef3}
.contract-services h4{font-size:14px;color:#17213a;margin:0 0 8px}
.contract-services .service-row{grid-template-columns:minmax(0,1.5fr) minmax(180px,.7fr);align-items:center;padding:13px 0}
.contract-services .service-row small{display:block;font-size:9px;color:#7a8091;text-transform:uppercase;font-weight:800;margin-bottom:5px}
.contract-services .service-row b{font-size:13px;color:#202a40}
.contract-services .service-meta{text-align:right}
.contract-services .service-meta span{font-size:12px;color:#30384c;font-weight:700}
.contract-signature{margin:10px 22px 22px;padding:13px 15px;border-radius:10px;display:flex;align-items:center;gap:12px}
.contract-signature small{display:block;font-size:8px;text-transform:uppercase;font-weight:900;letter-spacing:.05em;margin-bottom:3px}
.contract-signature strong{display:block;font-size:11px;letter-spacing:.02em}
.contract-signature span{display:block;font-size:10px;line-height:1.4;margin-top:3px}
.contract-signature-pending{background:#fff8e7;border:1px solid #f0dfad;color:#755500}
.contract-signature-pending small{color:#9a750e}.contract-signature-pending span{color:#8b763e}
.contract-signature-icon{width:32px;height:32px;flex:0 0 32px;border-radius:50%;display:grid;place-items:center;background:#fff0bf;font-size:14px}
.contract-signature-signed{background:#eef9f4;border:1px solid #caebdc;color:#157347;justify-content:space-between;flex-wrap:wrap}
.contract-signature-signed small{color:#418b69}
.contract-signed-download{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:8px 13px;border-radius:8px;background:var(--p);color:#fff;text-decoration:none;font-size:11px;font-weight:800}
.contract-signed-download:hover{background:var(--p3)}
@media(max-width:900px){.contract-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contract-services .service-row{grid-template-columns:1fr}.contract-services .service-meta{text-align:left;margin-top:8px}}
@media(max-width:600px){.contract-detail-grid{grid-template-columns:1fr}.contract-card-detail .contract-title{padding:16px}.contract-services{padding:17px 16px 8px}.contract-signature{margin:10px 16px 16px}.contract-signature-signed{align-items:stretch}.contract-signed-download{width:100%}}


/* =========================================================
   PORTAL DO CLIENTE — PADRÃO VISUAL ETERNIZE GESTÃO
   Referência: Área da Contabilidade
   ========================================================= */
body{background:#f6f5f8;color:#18213a}
.portal{background:#f6f5f8}

.side{
  width:256px !important;
  background:#fff !important;
  color:#222b43 !important;
  padding:0 18px 18px !important;
  border-right:1px solid #ece9f0 !important;
  box-shadow:none !important;
  display:flex !important;
  flex-direction:column !important;
}
.side-brand{
  height:126px !important;
  margin:0 -18px 20px !important;
  padding:24px 28px !important;
  background:#fff !important;
  border-bottom:0 !important;
  display:flex !important;
  align-items:center !important;
}
.side-brand img{
  width:132px !important;
  height:64px !important;
  object-fit:contain !important;
  object-position:left center !important;
  filter:none !important;
}
.side-section-title{
  margin:10px 12px 10px;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.06em;
  color:#8c8795;
}
.side nav{display:flex !important;flex-direction:column !important;gap:6px !important;padding:0 !important}
.nav{
  min-height:58px !important;
  padding:9px 13px !important;
  border:0 !important;
  border-radius:12px !important;
  background:transparent !important;
  color:#292d42 !important;
  font-size:13px !important;
  font-weight:750 !important;
  gap:12px !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  position:relative !important;
}
.nav:hover{background:#faf5fb !important;color:#7e0c80 !important}
.nav.active{background:#f3e4f4 !important;color:#7e0c80 !important;font-weight:900 !important}
.nav.active:before{display:none !important}
.nav-icon{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;
  border-radius:9px;
  background:#faf7fb;
  color:#7e0c80;
  font-size:16px;
  font-weight:900;
}
.nav.active .nav-icon{background:#fff;box-shadow:0 1px 4px rgba(44,30,53,.04)}
.side-footer{
  margin-top:auto;
  padding:18px 12px 4px;
  border-top:1px solid #ebe8ee;
  display:flex;
  flex-direction:column;
  gap:3px;
  color:#696f82;
  font-size:10px;
}
.side-footer b{color:#30384e;font-size:11px}

.content{
  margin-left:256px !important;
  padding:0 28px 36px !important;
  min-height:100vh;
  background:#f6f5f8;
}
.top{
  min-height:74px !important;
  height:74px;
  margin:0 -28px 18px !important;
  padding:0 28px 0 32px !important;
  background:#fff !important;
  border-bottom:1px solid #e9e6ed !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  position:sticky !important;
  top:0;
  z-index:20 !important;
  box-shadow:none !important;
}
.top-welcome h1{margin:0 0 3px !important;font-size:20px !important;line-height:1.15;color:#151e38 !important;letter-spacing:-.3px}
.top-welcome p{margin:0 !important;color:#697187 !important;font-size:11px !important;display:block !important}
.top-profile{display:flex;align-items:center;gap:10px}
.avatar{
  width:44px !important;height:44px !important;
  border-radius:50% !important;
  background:#f3e3f5 !important;
  color:#8f0792 !important;
  border:0 !important;
  font-size:17px !important;
  font-weight:900 !important;
}
.top-profile-text{display:flex;flex-direction:column;min-width:80px;max-width:210px}
.top-profile-text b{font-size:11px;color:#111a32;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-profile-text span{font-size:10px;color:#7a8091;margin-top:2px}
.top-logout{
  margin-left:10px;
  border:0;
  background:transparent;
  color:#8c087f;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  padding:9px 8px;
}
.top-logout:hover{color:#650662}

.page{max-width:none !important;margin:0 !important}
.section-head{
  margin:0 0 14px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:58px;
}
.section-head h2{margin:0 0 4px !important;font-size:20px !important;color:#17213a !important;letter-spacing:-.25px}
.section-head p{margin:0 !important;font-size:10.5px !important;color:#6d7488 !important}
.list-card,.empty-card,.contract-card,.upload-card,.filter-card,.summary-card,.care{
  border:1px solid #ece8ef !important;
  border-radius:14px !important;
  box-shadow:0 3px 14px rgba(38,28,46,.04) !important;
  background:#fff !important;
}
.list-card{padding:18px 20px !important}
.filter-card,.upload-card{padding:18px 20px !important}

/* Home no mesmo padrão de cartões do sistema */
.event-card{
  border-radius:14px !important;
  padding:22px 24px !important;
  box-shadow:0 3px 14px rgba(126,12,128,.12) !important;
}
.quick-grid{gap:12px !important;margin:14px 0 !important}
.quick-grid button{
  min-height:76px !important;
  border:1px solid #ece8ef !important;
  border-radius:13px !important;
  box-shadow:0 3px 12px rgba(38,28,46,.035) !important;
}

/* Formulários mais próximos do padrão da contabilidade */
.upload-card label,.filter-card label{font-size:9px !important;color:#596079 !important;font-weight:900 !important;letter-spacing:.03em}
.upload-card select,.filter-card select,.upload-card input{
  min-height:42px;
  border:1px solid #dfe2ea !important;
  border-radius:9px !important;
  background:#fff !important;
}
.small-primary,.primary{border-radius:9px !important}

/* Contratos e pagamentos */
.contract-row{padding:15px 8px !important}
.contract-row small,.detail small,.payment-row small{color:#677086 !important;font-size:9px !important;font-weight:900 !important}
.contract-row strong,.detail strong{color:#17213a !important}
.contract-card{overflow:hidden}
.contract-title{padding:16px 20px !important}
.detail-grid{background:#ece9ef !important}
.detail{padding:15px 18px !important}
.service-list{padding:18px 20px !important}
.summary-grid{gap:12px !important}
.summary-card{padding:17px 18px !important}

/* Molduras preservam o padrão já aprovado, só harmoniza bordas */
.frame-card{border-color:#e7e3ea !important;box-shadow:0 3px 12px rgba(38,28,46,.045) !important;border-radius:14px !important}
.frame-preview{background:#f7f6f8 !important}

@media(max-width:800px){
  .side{width:72px !important;padding:0 8px 12px !important}
  .side-brand{height:74px !important;margin:0 -8px 12px !important;padding:10px 8px !important;justify-content:center !important}
  .side-brand img{width:54px !important;height:46px !important;object-position:center !important}
  .side-section-title,.side-footer{display:none !important}
  .nav{min-height:50px !important;padding:8px !important;justify-content:center !important}
  .nav span{display:none !important}
  .nav-icon{width:34px;height:34px;flex-basis:34px}
  .content{margin-left:72px !important;padding:0 14px 24px !important}
  .top{margin:0 -14px 16px !important;padding:0 14px !important;height:70px;min-height:70px !important}
  .top-welcome h1{font-size:17px !important}
  .top-welcome p{font-size:9px !important}
  .top-profile-text{display:none}
  .top-logout{margin-left:0;font-size:10px}
  .avatar{width:38px !important;height:38px !important;font-size:15px !important}
}


/* ===== PAGAMENTOS ONLINE — INFINITEPAY ===== */
.payment-row-client{position:relative}
.payment-balance{color:#7e0c80;font-size:15px}
.payment-actions-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.pay-online-btn{border:0;background:#7e0c80;color:#fff;font-weight:800;border-radius:8px;padding:9px 14px;cursor:pointer;min-width:112px;box-shadow:0 3px 10px rgba(126,12,128,.15)}
.pay-online-btn:hover{background:#69096b}.pay-online-btn:disabled{opacity:.6;cursor:wait}
.payment-method-hint{font-size:9px;color:#7a8091;font-weight:700}
.payment-docs{grid-column:1/-1;padding-top:9px;border-top:1px solid #eef0f4;font-size:11px}.payment-docs small{display:inline;margin-right:8px}.payment-docs a{color:#7e0c80;font-weight:800;text-decoration:none}
@media(max-width:900px){.payment-row-client{grid-template-columns:1fr 1fr}.payment-actions-cell{align-items:stretch}.pay-online-btn{width:100%}}


/* ===== PAINEL DE PAGAMENTOS — EXPERIÊNCIA PREMIUM ===== */
#page-payments{padding-bottom:35px}
#paymentSummary.summary-grid{display:block;margin-bottom:16px}
.payment-dashboard-head{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:26px;align-items:center;background:#fff;border:1px solid #ebe7ee;border-radius:16px;padding:22px 24px;box-shadow:0 4px 16px rgba(38,28,46,.04)}
.payment-dashboard-title>span,.payment-eyebrow{display:block;font-size:9px;font-weight:900;letter-spacing:.1em;color:#7e0c80;margin-bottom:7px}
.payment-dashboard-title strong{display:block;font-size:27px;line-height:1.1;color:#18213a;letter-spacing:-.5px}.payment-dashboard-title small{display:block;margin-top:6px;color:#7a8091;font-size:10px}
.payment-progress-wrap{background:#faf8fb;border:1px solid #f0ebf2;border-radius:12px;padding:15px 17px}.payment-progress-info{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;margin-bottom:9px}.payment-progress-info span{font-weight:900;color:#7e0c80}.payment-progress-info b{color:#42495c}.payment-progress{height:9px;background:#eee9f0;border-radius:99px;overflow:hidden}.payment-progress i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#7e0c80,#a63aa8)}.payment-progress-wrap>small{display:block;margin-top:9px;color:#73798a;font-size:10px}
.payment-summary-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.payment-summary-box{background:#fff;border:1px solid #ebe7ee;border-radius:14px;padding:16px 18px;box-shadow:0 3px 12px rgba(38,28,46,.03)}.payment-summary-box small{display:block;color:#73798a;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.payment-summary-box b{display:block;margin:7px 0 4px;font-size:19px;color:#17213a}.payment-summary-box span{font-size:10px;color:#7a8091}.payment-summary-box.paid b{color:#137a51}.payment-summary-box.open b{color:#7e0c80}
.payment-panel-shell{background:#fff;border:1px solid #ebe7ee;border-radius:16px;box-shadow:0 4px 16px rgba(38,28,46,.04);overflow:hidden}.payment-panel-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 22px;border-bottom:1px solid #eeeaf0}.payment-panel-heading h3{margin:0 0 4px;font-size:17px;color:#17213a}.payment-panel-heading p{margin:0;color:#7a8091;font-size:10.5px}.payment-secure-chip{white-space:nowrap;background:#f7f2f8;color:#6e146f;border:1px solid #eaddec;padding:8px 10px;border-radius:99px;font-size:9px;font-weight:900}.payment-cards-list{padding:0 22px 8px}
.payment-card{position:relative;padding:18px 0;border-bottom:1px solid #eeeaf0}.payment-card:last-child{border-bottom:0}.payment-card-status{display:flex;align-items:center;gap:7px;margin-bottom:12px}.payment-card-status b{font-size:9px;letter-spacing:.04em;color:#7e0c80}.payment-status-dot{width:8px;height:8px;border-radius:50%;background:#7e0c80}.payment-card.paid .payment-card-status b{color:#137a51}.payment-card.paid .payment-status-dot{background:#20a06a}.payment-card.overdue .payment-card-status b{color:#b4233b}.payment-card.overdue .payment-status-dot{background:#d94456}
.payment-card-main{display:grid;grid-template-columns:1fr 1fr 1fr 1.1fr;gap:20px;align-items:end}.payment-card-main small{display:block;color:#777e91;font-size:9px;font-weight:900;text-transform:uppercase;margin-bottom:5px}.payment-card-main strong{display:block;color:#20283d;font-size:12px}.payment-card-balance{background:#faf6fb;border-radius:10px;padding:10px 12px}.payment-card-balance strong{font-size:17px;color:#7e0c80}.payment-card.paid .payment-card-balance{background:#f1faf6}.payment-card.paid .payment-card-balance strong{color:#137a51}
.payment-card-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:14px}.payment-card-note{font-size:10px;color:#747b8e;line-height:1.45}.payment-card-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.pay-online-btn,.payment-continue-btn{border:0;background:linear-gradient(135deg,#7e0c80,#9f2ba2);color:#fff;font-weight:900;border-radius:9px;padding:10px 15px;cursor:pointer;box-shadow:0 4px 12px rgba(126,12,128,.16)}.pay-online-btn:hover,.payment-continue-btn:hover{filter:brightness(.96)}.pay-online-btn:disabled,.payment-continue-btn:disabled{opacity:.6;cursor:wait}.payment-proof-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dccfdf;background:#fff;color:#7e0c80;border-radius:9px;padding:9px 12px;font-size:10px;font-weight:900;text-decoration:none}.payment-loading{padding:30px;text-align:center;color:#747b8e}
.payment-review-overlay{position:fixed;inset:0;background:rgba(30,18,34,.5);backdrop-filter:blur(3px);z-index:500;display:flex;align-items:center;justify-content:center;padding:20px}.payment-review-modal{position:relative;width:min(520px,100%);background:#fff;border-radius:18px;padding:28px;box-shadow:0 24px 70px rgba(20,10,25,.25);border:1px solid #eee8f0}.payment-review-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:#f6f2f7;color:#6b6270;font-size:21px;cursor:pointer}.payment-review-icon{width:46px;height:46px;border-radius:13px;background:#f3e8f4;color:#7e0c80;display:grid;place-items:center;font-size:22px;margin-bottom:15px}.payment-review-modal h3{font-size:29px;margin:2px 0 7px;color:#17213a}.payment-review-modal>p{margin:0 0 18px;color:#777e91;font-size:11px}.payment-review-details{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#ece8ef;border:1px solid #ece8ef;border-radius:12px;overflow:hidden}.payment-review-details>div{background:#fff;padding:13px 14px}.payment-review-details small{display:block;color:#7a8091;font-size:8px;font-weight:900;text-transform:uppercase;margin-bottom:5px}.payment-review-details b{font-size:11px;color:#252d42}.payment-security-box{display:flex;flex-direction:column;gap:5px;margin:16px 0;background:#f7f9f8;border:1px solid #e2ece7;border-radius:11px;padding:12px 14px}.payment-security-box b{font-size:10px;color:#21684b}.payment-security-box span{font-size:9.5px;line-height:1.45;color:#66746e}.payment-continue-btn{width:100%;padding:12px 15px}.payment-cancel-btn{width:100%;margin-top:8px;border:0;background:transparent;color:#6f7483;font-size:10px;font-weight:800;cursor:pointer;padding:7px}
@media(max-width:900px){.payment-dashboard-head{grid-template-columns:1fr}.payment-summary-cards{grid-template-columns:1fr}.payment-card-main{grid-template-columns:1fr 1fr}.payment-card-footer{align-items:flex-start;flex-direction:column}.payment-card-actions{width:100%}.payment-card-actions>*{flex:1}.payment-panel-heading{align-items:flex-start}.payment-secure-chip{display:none}}
@media(max-width:560px){.payment-card-main{grid-template-columns:1fr}.payment-card-balance{padding:12px}.payment-review-modal{padding:24px 18px}.payment-review-details{grid-template-columns:1fr}.payment-dashboard-title strong{font-size:24px}}

/* ===== PAGAMENTOS: PIX + CARTÃO EM BOTÕES SEPARADOS ===== */
.payment-method-actions{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.payment-method-actions.single-method{justify-content:flex-start}
.single-pay-btn{min-width:220px}
.pay-method-btn{min-width:170px;border-radius:11px;padding:10px 14px;border:1px solid #dddfe6;background:#fff;display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:8px;text-align:left;cursor:pointer;transition:.18s}
.pay-method-btn>span{grid-row:1/3;align-self:center;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:15px}
.pay-method-btn>b{font-size:12px;line-height:1.2;color:#20263a}.pay-method-btn>small{font-size:9px;color:#7a8091;margin-top:2px}
.pay-method-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px #20263814}
.pay-pix-btn{background:#7e0c80;border-color:#7e0c80}.pay-pix-btn>b,.pay-pix-btn>small{color:#fff}.pay-pix-btn>small{opacity:.82}.pay-pix-btn>span{background:#ffffff22;color:#fff}
.pay-card-btn{border-color:#7e0c80}.pay-card-btn>b{color:#7e0c80}.pay-card-btn>span{background:#f4e8f5;color:#7e0c80}
.pay-card-btn.disabled,.pay-card-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.payment-card-coming{margin:12px 0;background:#faf7fb;border:1px solid #eadfeb;border-radius:10px;padding:11px 12px;display:flex;flex-direction:column;gap:4px}.payment-card-coming b{font-size:12px}.payment-card-coming span{font-size:11px;line-height:1.45;color:#6f7483}
@media(max-width:650px){.payment-method-actions{flex-direction:column}.payment-method-actions.single-method{justify-content:stretch}.pay-method-btn,.single-pay-btn{width:100%;min-width:0}}


/* ===== RESPONSIVIDADE FINAL — DESKTOP + MOBILE ===== */
html{overflow-x:hidden}
body{overflow-x:hidden;-webkit-text-size-adjust:100%}
img,video,iframe,canvas,svg{max-width:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
.page{width:100%;max-width:1440px}

/* Desktop grande: evita conteúdo excessivamente esticado */
@media(min-width:1500px){
  .content{padding-left:32px !important;padding-right:32px !important}
  .page{max-width:1480px}
  .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .frames-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Notebook e tablet horizontal */
@media(max-width:1100px) and (min-width:801px){
  .side{width:220px !important}
  .content{margin-left:220px !important;padding-left:18px !important;padding-right:18px !important}
  .top{margin-left:-18px !important;margin-right:-18px !important;padding-left:18px !important;padding-right:18px !important}
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .frames-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .detail-grid,.contract-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .payment-dashboard-head{grid-template-columns:1fr !important}
}

/* Mobile / tablet vertical: navegação estilo app */
@media(max-width:800px){
  body{font-size:14px;padding-bottom:78px}
  .portal{padding-bottom:0}

  .side{
    position:fixed !important;
    left:0 !important;right:0 !important;top:auto !important;bottom:0 !important;
    width:100% !important;height:72px !important;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    background:#fff !important;
    border-right:0 !important;border-top:1px solid #e7e3ea !important;
    box-shadow:0 -5px 20px rgba(30,20,36,.08) !important;
    z-index:1000 !important;
    display:block !important;
  }
  .side-brand,.side-section-title,.side-footer,.logout{display:none !important}
  .side nav{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:3px !important;height:100%;align-items:stretch !important;
  }
  .nav{
    min-height:58px !important;height:58px !important;
    padding:5px 2px !important;border-radius:11px !important;
    justify-content:center !important;align-items:center !important;
    flex-direction:column !important;gap:2px !important;
    font-size:10px !important;line-height:1.05 !important;
    text-align:center !important;
  }
  .nav span{display:block !important;font-size:9px !important;white-space:nowrap !important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .nav-icon{width:29px !important;height:29px !important;flex:0 0 29px !important;font-size:15px !important;border-radius:8px !important}
  .nav.active:before{display:none !important}
  .nav.active{background:#f3e7f5 !important}

  .content{
    margin-left:0 !important;
    padding:0 12px calc(18px + env(safe-area-inset-bottom)) !important;
    width:100% !important;max-width:100% !important;
  }
  .top{
    margin:0 -12px 14px !important;
    padding:10px 12px !important;
    min-height:66px !important;height:auto !important;
    position:sticky !important;top:0 !important;
    gap:10px !important;
  }
  .top-welcome{min-width:0;flex:1}
  .top-welcome h1{font-size:17px !important;line-height:1.2 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-welcome p{font-size:9.5px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-profile{gap:6px !important;flex-shrink:0}
  .top-profile-text{display:none !important}
  .avatar{width:36px !important;height:36px !important;font-size:14px !important;flex:0 0 36px}
  .top-logout{font-size:10px !important;padding:8px 4px !important;min-height:40px}

  .page{max-width:none !important;width:100% !important;margin:0 !important}
  .section-head{padding:15px 16px !important;margin-bottom:12px !important;border-radius:12px !important}
  .section-head h2{font-size:18px !important}
  .section-head p{font-size:10.5px !important;line-height:1.45}

  .event-card{padding:18px !important;border-radius:14px !important;min-height:132px}
  .event-card h2{font-size:21px !important;line-height:1.15}
  .event-meta{font-size:11px !important;gap:7px !important;flex-direction:column !important}
  .event-badge{display:none !important}
  .quick-grid{grid-template-columns:1fr !important;gap:10px !important;margin:12px 0 !important}
  .quick-grid button{min-height:72px !important;padding:12px 14px !important;border-radius:12px !important}
  .care{padding:15px !important;border-radius:12px !important}

  .list-card,.empty-card,.contract-card,.contract-card-detail,.payment-panel-shell,.filter-card,.upload-card{border-radius:14px !important}
  .list-card{padding:14px !important}

  .detail-grid,.contract-detail-grid,.summary-grid{grid-template-columns:1fr !important}
  .detail,.contract-detail-item{padding:12px 14px !important}
  .contract-title{padding:14px 15px !important;gap:10px;align-items:flex-start !important}
  .contract-title h3{font-size:15px !important}
  .contract-services{padding:14px 15px 7px !important}
  .contract-services .service-row{grid-template-columns:1fr !important}
  .contract-signature{margin:10px 15px 15px !important;padding:12px !important}
  .contract-signed-download{width:100% !important;min-height:44px !important}

  .upload-card{grid-template-columns:1fr !important;padding:14px !important;gap:12px !important}
  .file-row{grid-column:auto !important;display:grid !important;grid-template-columns:1fr !important;gap:9px !important}
  .file-row input,.upload-card select,.filter-card select{width:100% !important;min-width:0 !important;min-height:44px}
  .file-row button{width:100% !important;min-height:44px}
  .file-item,.frame-item{align-items:flex-start !important;flex-direction:column !important;gap:9px !important}

  .frames-grid{grid-template-columns:1fr !important;gap:12px !important}
  .frame-card{width:100% !important}
  .frame-preview{height:260px !important;flex-basis:260px !important;padding:12px !important}
  .frame-card-body{padding:13px !important;min-height:0 !important}
  .frame-card-title{font-size:13px !important;min-height:0 !important}
  .frame-card .frame-actions{grid-template-columns:1fr 1fr !important;gap:8px !important}
  .frame-card .frame-change{grid-column:1/-1 !important}
  .frame-card .frame-actions button{min-height:44px !important;font-size:11px !important}

  /* Pagamentos: cards grandes e botões tocáveis */
  #page-payments{padding-bottom:10px !important}
  .payment-dashboard-head{grid-template-columns:1fr !important;gap:14px !important;padding:16px !important;border-radius:14px !important}
  .payment-dashboard-title strong{font-size:23px !important}
  .payment-progress-wrap{padding:13px !important}
  .payment-summary-cards{grid-template-columns:1fr !important;gap:9px !important}
  .payment-summary-box{padding:14px 15px !important}
  .payment-panel-heading{padding:15px !important;align-items:flex-start !important}
  .payment-panel-heading h3{font-size:16px !important}
  .payment-secure-chip{display:none !important}
  .payment-cards-list{padding:0 15px 6px !important}
  .payment-card{padding:16px 0 !important}
  .payment-card-main{grid-template-columns:1fr 1fr !important;gap:12px !important;align-items:stretch !important}
  .payment-card-main>div{min-width:0}
  .payment-card-main strong{font-size:12px !important;overflow-wrap:anywhere}
  .payment-card-balance{grid-column:1/-1;padding:12px !important}
  .payment-card-balance strong{font-size:18px !important}
  .payment-card-footer{flex-direction:column !important;align-items:stretch !important;gap:10px !important}
  .payment-card-actions,.payment-method-actions{width:100% !important;display:grid !important;grid-template-columns:1fr !important;gap:8px !important}
  .payment-card-actions>*,.pay-method-btn,.pay-online-btn,.payment-proof-btn{width:100% !important;min-width:0 !important;min-height:46px !important}
  .pay-method-btn{padding:10px 12px !important}

  /* Modal de pagamento ocupa a tela sem estourar */
  .payment-review-overlay{padding:10px !important;align-items:flex-end !important}
  .payment-review-modal{
    width:100% !important;max-width:none !important;max-height:calc(100dvh - 20px) !important;
    overflow:auto !important;border-radius:20px 20px 12px 12px !important;
    padding:22px 16px calc(18px + env(safe-area-inset-bottom)) !important;
  }
  .payment-review-modal h3{font-size:22px !important;padding-right:38px}
  .payment-review-details{grid-template-columns:1fr !important}
  .payment-continue-btn{min-height:48px !important;font-size:12px !important}
  .payment-cancel-btn{min-height:42px !important}

  .toast{left:12px !important;right:12px !important;bottom:86px !important;width:auto !important;max-width:none !important;text-align:center;font-size:11px !important}
}

/* Telefones estreitos */
@media(max-width:420px){
  .content{padding-left:10px !important;padding-right:10px !important}
  .top{margin-left:-10px !important;margin-right:-10px !important;padding-left:10px !important;padding-right:10px !important}
  .top-welcome h1{font-size:15.5px !important}
  .top-welcome p{display:none !important}
  .nav span{font-size:8px !important}
  .nav-icon{width:27px !important;height:27px !important;flex-basis:27px !important}
  .payment-card-main{grid-template-columns:1fr !important}
  .payment-card-balance{grid-column:auto}
  .frame-preview{height:235px !important;flex-basis:235px !important}
}

/* Respeita aparelhos com notch e evita zoom estranho em campos */
@supports(padding:max(0px)){
  @media(max-width:800px){
    .side{padding-bottom:max(6px,env(safe-area-inset-bottom)) !important}
  }
}
@media(max-width:800px){
  input,select,textarea{font-size:16px !important}
}

/* ===== MERCADO PAGO TRANSPARENTE ===== */
.payment-pix-modal,.payment-card-modal{max-width:620px!important}
.pix-result{margin-top:14px;text-align:center}
.pix-ready{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.pix-ready b{font-size:15px;color:#252b3e}.pix-ready span{font-size:12px;color:#767c8e}
.pix-qr-image{width:min(270px,72vw);height:auto;display:block;margin:12px auto 18px;border:1px solid #e6e7ed;border-radius:14px;padding:10px;background:#fff}
.pix-code-label{display:block;text-align:left;font-size:9px;font-weight:900;letter-spacing:.06em;color:#72788a;margin:8px 0 6px}
.pix-copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.pix-code-input{width:100%;min-width:0;padding:11px 12px;border:1px solid #dfe2e8;border-radius:9px;background:#fafbfc;font-size:11px}.pix-copy-btn{border:0;border-radius:9px;padding:0 16px;background:#7e0c80;color:#fff;font-weight:800;cursor:pointer}
.pix-waiting{margin-top:14px;border-radius:10px;background:#f8f2f9;padding:12px;display:grid;grid-template-columns:auto 1fr;gap:4px 9px;align-items:center;text-align:left}.pix-waiting small{grid-column:2;color:#777d8e}.pix-pulse{width:10px;height:10px;border-radius:50%;background:#7e0c80;box-shadow:0 0 0 0 #7e0c8066;animation:pixPulse 1.5s infinite}@keyframes pixPulse{70%{box-shadow:0 0 0 9px #7e0c8000}100%{box-shadow:0 0 0 0 #7e0c8000}}
.pix-paid-ok{color:#118155;font-size:14px}
.mp-card-form{display:grid;gap:11px;margin-top:14px}.mp-card-form label{display:grid;gap:6px;font-size:10px;font-weight:800;color:#5e6475;text-transform:uppercase;letter-spacing:.03em}.mp-card-form input,.mp-card-form select,.mp-secure-field{width:100%;min-height:43px;border:1px solid #dde1e8;border-radius:9px;background:#fff;padding:10px 11px;font:13px Inter,"Segoe UI",Arial,sans-serif;color:#252b3e}.mp-secure-field{padding:0;overflow:hidden}.mp-secure-field iframe{min-height:41px!important}.mp-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mp-card-progress{width:100%;height:5px}.mp-card-result{margin:12px 0}.mp-approved,.mp-pending{border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:4px}.mp-approved{background:#eaf8f0;color:#15734d}.mp-pending{background:#fff6df;color:#87600b}.mp-approved span,.mp-pending span{font-size:12px}
@media(max-width:600px){.payment-pix-modal,.payment-card-modal{width:calc(100vw - 20px)!important;max-height:calc(100vh - 18px)!important;overflow:auto!important;padding:18px!important}.mp-card-grid{grid-template-columns:1fr}.pix-copy-row{grid-template-columns:1fr}.pix-copy-btn{min-height:42px}.pix-qr-image{width:min(250px,78vw)}}


/* ===== PAGAMENTO — BOTÃO ÚNICO ===== */
.pay-main-btn{
  min-width:160px;
  min-height:48px;
  border:0;
  border-radius:11px;
  padding:10px 18px;
  background:linear-gradient(135deg,#7e0c80,#9f2ba2);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  cursor:pointer;
  font-weight:900;
  box-shadow:0 5px 14px rgba(126,12,128,.18);
}
.pay-main-btn span{width:28px;height:28px;border-radius:8px;background:#ffffff20;display:grid;place-items:center}
.pay-main-btn b{font-size:13px;color:#fff}
.pay-main-btn:hover{filter:brightness(.96);transform:translateY(-1px)}
.payment-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 14px}
.payment-choice-btn{border:1px solid #e2dbe5;background:#fff;border-radius:12px;padding:15px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;transition:.18s}
.payment-choice-btn:hover{border-color:#7e0c80;box-shadow:0 6px 18px rgba(126,12,128,.10);transform:translateY(-1px)}
.payment-choice-btn>span{width:38px;height:38px;border-radius:10px;background:#f4e8f5;color:#7e0c80;display:grid;place-items:center;font-size:17px;flex:0 0 38px}
.payment-choice-btn b{display:block;color:#20263a;font-size:13px}.payment-choice-btn small{display:block;color:#7a8091;font-size:10px;margin-top:3px}
@media(max-width:650px){
  .pay-main-btn{width:100%;min-width:0}
  .payment-choice-grid{grid-template-columns:1fr}
}

/* PIX — mensagens de erro dentro do modal */
.pix-inline-error{margin-top:12px;padding:11px 13px;border-radius:10px;background:#fff0f1;border:1px solid #f2c7ce;color:#a61f35;font-size:11px;line-height:1.45;font-weight:700}
.pix-inline-error[hidden]{display:none!important}


/* ===== PIX COMPACTO ===== */
.payment-review-modal.payment-pix-modal{
  width:min(470px,calc(100vw - 28px))!important;
  max-width:470px!important;
  padding:20px 22px!important;
  border-radius:16px!important;
}
.payment-pix-modal .payment-review-icon{
  width:38px!important;
  height:38px!important;
  border-radius:10px!important;
  font-size:17px!important;
  margin-bottom:10px!important;
}
.payment-pix-modal .payment-eyebrow{margin-bottom:5px!important;font-size:8px!important}
.payment-pix-modal h3{font-size:26px!important;margin:0 0 4px!important}
.payment-pix-modal>p{font-size:10px!important;margin:0 0 12px!important}
.payment-pix-modal .payment-review-details{border-radius:10px!important}
.payment-pix-modal .payment-review-details>div{padding:9px 11px!important}
.payment-pix-modal .payment-review-details small{font-size:7px!important;margin-bottom:3px!important}
.payment-pix-modal .payment-review-details b{font-size:10px!important}
.payment-pix-modal .payment-security-box{margin:11px 0!important;padding:9px 11px!important;border-radius:9px!important}
.payment-pix-modal .payment-security-box b{font-size:9px!important}
.payment-pix-modal .payment-security-box span{font-size:8.5px!important}
.payment-pix-modal .payment-continue-btn{padding:10px 12px!important;font-size:12px!important}
.payment-pix-modal .pix-result{margin-top:8px!important}
.payment-pix-modal .pix-ready{gap:2px!important;margin-bottom:6px!important}
.payment-pix-modal .pix-ready b{font-size:13px!important}
.payment-pix-modal .pix-ready span{font-size:10px!important}
.payment-pix-modal .pix-qr-image{
  width:min(205px,56vw)!important;
  margin:7px auto 10px!important;
  padding:7px!important;
  border-radius:11px!important;
}
.payment-pix-modal .pix-code-label{font-size:7.5px!important;margin:5px 0 4px!important}
.payment-pix-modal .pix-copy-row{gap:6px!important}
.payment-pix-modal .pix-code-input{padding:8px 9px!important;font-size:9px!important;border-radius:8px!important}
.payment-pix-modal .pix-copy-btn{padding:0 12px!important;font-size:11px!important;border-radius:8px!important;min-height:34px!important}
.payment-pix-modal .pix-waiting{margin-top:8px!important;padding:8px 10px!important;border-radius:9px!important;gap:2px 7px!important}
.payment-pix-modal .pix-waiting b{font-size:10px!important}
.payment-pix-modal .pix-waiting small{font-size:8.5px!important}
.payment-pix-modal .pix-pulse{width:8px!important;height:8px!important}
.payment-pix-modal .payment-cancel-btn{margin-top:5px!important;padding:5px!important;font-size:9px!important}
.payment-pix-modal .payment-review-close{width:30px!important;height:30px!important;right:10px!important;top:9px!important}

@media(max-width:600px){
  .payment-review-overlay{padding:8px!important;align-items:center!important}
  .payment-review-modal.payment-pix-modal{
    width:min(430px,calc(100vw - 16px))!important;
    max-height:calc(100vh - 16px)!important;
    padding:16px!important;
    overflow:auto!important;
  }
  .payment-pix-modal .pix-qr-image{width:min(185px,52vw)!important}
  .payment-pix-modal .pix-copy-row{grid-template-columns:minmax(0,1fr) auto!important}
  .payment-pix-modal .pix-copy-btn{min-height:34px!important}
}


/* ===== CARTÃO — MODAL ORGANIZADO ===== */
.payment-review-modal.payment-card-modal{
  width:min(760px,calc(100vw - 34px))!important;
  max-width:760px!important;
  max-height:calc(100vh - 34px)!important;
  overflow:auto!important;
  padding:22px 24px!important;
  border-radius:18px!important;
}
.payment-card-modal .payment-review-icon{
  width:40px!important;
  height:40px!important;
  border-radius:11px!important;
  font-size:18px!important;
  margin-bottom:10px!important;
}
.payment-card-modal .payment-eyebrow{font-size:8px!important;margin-bottom:5px!important}
.payment-card-modal h3{font-size:28px!important;margin:0 0 6px!important;padding-right:34px!important}
.payment-card-modal .payment-security-box{
  margin:12px 0 14px!important;
  padding:10px 12px!important;
  border-radius:10px!important;
}
.payment-card-modal .payment-security-box b{font-size:10px!important}
.payment-card-modal .payment-security-box span{font-size:9px!important;line-height:1.45!important}
.payment-card-modal .mp-card-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 14px!important;
  margin-top:0!important;
  align-items:start;
}
.payment-card-modal .mp-card-form>label,
.payment-card-modal .mp-card-form>.mp-card-grid,
.payment-card-modal .payment-continue-btn,
.payment-card-modal .mp-card-progress,
.payment-card-modal .mp-card-result,
.payment-card-modal .payment-cancel-btn{grid-column:1/-1}
.payment-card-modal .mp-card-form label{
  gap:5px!important;
  font-size:9px!important;
  letter-spacing:.05em!important;
}
.payment-card-modal .mp-card-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 14px!important;
}
.payment-card-modal .mp-card-grid label{min-width:0}
.payment-card-modal .mp-card-form input,
.payment-card-modal .mp-card-form select,
.payment-card-modal .mp-secure-field{
  width:100%!important;
  min-height:48px!important;
  height:48px!important;
  border-radius:10px!important;
  padding:0 12px!important;
  font-size:14px!important;
}
.payment-card-modal .mp-secure-field{padding:0!important;display:flex!important;align-items:center!important;overflow:hidden!important}
.payment-card-modal .mp-secure-field iframe{
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
}
.payment-card-modal #form-checkout__cardNumber{min-height:52px!important;height:52px!important}
.payment-card-modal #form-checkout__cardNumber iframe{height:50px!important;min-height:50px!important}
.payment-card-modal .payment-continue-btn{
  min-height:50px!important;
  margin-top:2px!important;
  font-size:13px!important;
}
.payment-card-modal .mp-card-progress{height:4px!important;margin-top:-2px!important}
.payment-card-modal .mp-card-result{margin:4px 0 0!important}
.payment-card-modal .payment-cancel-btn{margin-top:0!important;padding:8px!important;font-size:10px!important}
.payment-card-modal .payment-review-close{width:32px!important;height:32px!important;right:12px!important;top:10px!important}

@media(max-width:720px){
  .payment-review-overlay{padding:10px!important;align-items:center!important}
  .payment-review-modal.payment-card-modal{
    width:min(460px,calc(100vw - 16px))!important;
    max-height:calc(100vh - 16px)!important;
    padding:16px!important;
    border-radius:16px!important;
  }
  .payment-card-modal h3{font-size:24px!important}
  .payment-card-modal .mp-card-form,
  .payment-card-modal .mp-card-grid{grid-template-columns:1fr!important;gap:10px!important}
  .payment-card-modal .mp-card-form input,
  .payment-card-modal .mp-card-form select,
  .payment-card-modal .mp-secure-field{min-height:46px!important;height:46px!important}
}


/* ===== CARTÃO COMPACTO — SEM ROLAGEM NO DESKTOP ===== */
@media(min-width:721px){
  .payment-review-overlay{padding:12px!important;align-items:center!important}
  .payment-review-modal.payment-card-modal{
    width:min(760px,calc(100vw - 32px))!important;
    max-width:760px!important;
    max-height:none!important;
    overflow:visible!important;
    padding:16px 20px!important;
    border-radius:16px!important;
  }
  .payment-card-modal .payment-eyebrow{font-size:7.5px!important;margin-bottom:2px!important}
  .payment-card-modal h3{font-size:24px!important;margin:0 0 6px!important;line-height:1.05!important}
  .payment-card-modal .payment-security-box{margin:8px 0 10px!important;padding:8px 10px!important;gap:2px!important}
  .payment-card-modal .payment-security-box b{font-size:9px!important}
  .payment-card-modal .payment-security-box span{font-size:8.5px!important;line-height:1.3!important}
  .payment-card-modal .mp-card-form{gap:7px 12px!important;margin-top:0!important}
  .payment-card-modal .mp-card-grid{gap:7px 12px!important}
  .payment-card-modal .mp-card-form label{gap:3px!important;font-size:8px!important;line-height:1.1!important}
  .payment-card-modal .mp-card-form input,
  .payment-card-modal .mp-card-form select,
  .payment-card-modal .mp-secure-field{min-height:40px!important;height:40px!important;border-radius:9px!important;font-size:13px!important}
  .payment-card-modal .mp-secure-field iframe{height:38px!important;min-height:38px!important}
  .payment-card-modal #form-checkout__cardNumber{min-height:44px!important;height:44px!important}
  .payment-card-modal #form-checkout__cardNumber iframe{height:42px!important;min-height:42px!important}
  .payment-card-modal .payment-continue-btn{min-height:44px!important;padding:9px 12px!important;font-size:12px!important;margin-top:0!important}
  .payment-card-modal .mp-card-progress{height:3px!important;margin:0!important}
  .payment-card-modal .mp-card-result{margin:6px 0 0!important}
  .payment-card-modal .payment-review-close{width:30px!important;height:30px!important;right:10px!important;top:9px!important}
}
.eternize-payment-success{padding:13px 15px!important;gap:4px!important;border:1px solid #cfeedd!important}
.eternize-payment-success b{font-size:14px!important}
.eternize-payment-success span{font-size:11px!important;line-height:1.45!important}
.eternize-payment-success small{font-size:9px!important;line-height:1.4!important;opacity:.85}


/* ===== PAGAMENTOS — BOTÃO ALINHADO NA MESMA LINHA ===== */
.payment-card-main{
  grid-template-columns:1fr 1fr 1fr 1.08fr .92fr!important;
  align-items:end!important;
}
.payment-card-pay{min-width:0;align-self:end}
.payment-card-pay>small{display:block;color:#777e91;font-size:9px;font-weight:900;text-transform:uppercase;margin-bottom:5px}
.payment-card-pay .payment-card-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%}
.payment-card-pay .pay-main-btn{width:100%;min-width:125px;max-width:170px;min-height:48px}
.payment-card-footer{margin-top:12px!important}
.payment-card-footer .payment-card-note{width:100%}
@media(max-width:1100px){
  .payment-card-main{grid-template-columns:1fr 1fr 1fr!important}
  .payment-card-balance{grid-column:auto!important}
  .payment-card-pay{grid-column:auto!important}
}
@media(max-width:800px){
  .payment-card-main{grid-template-columns:1fr 1fr!important}
  .payment-card-pay{grid-column:1/-1!important}
  .payment-card-pay .payment-card-actions{display:block!important;width:100%!important}
  .payment-card-pay .pay-main-btn,.payment-card-pay .payment-proof-btn{width:100%!important;max-width:none!important}
}
@media(max-width:520px){
  .payment-card-main{grid-template-columns:1fr!important}
  .payment-card-pay,.payment-card-balance{grid-column:auto!important}
}


/* ===== PAGAMENTO PARCIAL / DIVIDIDO ===== */
.payment-card.partial .payment-card-status b{color:#a15b00}
.payment-card.partial .payment-status-dot{background:#e39a32}
.payment-card.partial .payment-card-balance{background:#fff8eb}
.payment-card.partial .payment-card-balance strong{color:#a15b00}
.split-payment-modal{width:min(520px,calc(100vw - 28px))!important;max-width:520px!important;padding:24px!important}
.split-payment-modal h3{font-size:22px!important;margin:4px 0 14px!important;padding-right:34px}
.split-balance-box{display:flex;align-items:center;justify-content:space-between;background:#faf7fb;border:1px solid #eee6f0;border-radius:11px;padding:12px 14px;margin-bottom:14px}
.split-balance-box small{font-size:9px;font-weight:900;text-transform:uppercase;color:#7a8091}.split-balance-box b{font-size:18px;color:#7e0c80}
.split-amount-label{display:block;font-size:9px;font-weight:900;text-transform:uppercase;color:#5e6475;letter-spacing:.04em}
.split-amount-wrap{display:grid;grid-template-columns:auto 1fr;align-items:center;border:1px solid #dfe2e8;border-radius:10px;margin-top:6px;overflow:hidden;background:#fff}.split-amount-wrap span{padding:0 12px;font-weight:900;color:#7e0c80}.split-amount-wrap input{border:0!important;outline:0!important;min-height:48px!important;padding:10px 12px 10px 0!important;font-size:18px!important;font-weight:800!important;color:#20263a!important}
.split-help{font-size:10px;color:#7a8091;margin:7px 0 14px;line-height:1.45}.split-methods{display:grid;gap:9px}.split-methods .payment-choice-btn{width:100%}
.split-inline-error{margin-top:10px;padding:10px 12px;background:#fff0f1;border:1px solid #f0c8ce;color:#a61f35;border-radius:9px;font-size:10px;font-weight:700;line-height:1.4}.split-inline-error[hidden]{display:none!important}
@media(max-width:600px){.split-payment-modal{width:calc(100vw - 16px)!important;padding:18px!important}.split-payment-modal h3{font-size:20px!important}}


/* ===== ESCOLHA DE PAGAMENTO — MODAL COMPACTO ===== */
.payment-review-modal.payment-choice-modal{
  width:min(520px,calc(100vw - 28px))!important;
  max-width:520px!important;
  padding:22px 24px!important;
  border-radius:18px!important;
}
.payment-choice-modal .payment-eyebrow{font-size:8px!important;margin-bottom:4px!important}
.payment-choice-modal h3{font-size:28px!important;margin:0 0 4px!important;padding-right:36px!important}
.payment-choice-modal>p{font-size:10px!important;margin:0 0 14px!important}
.payment-choice-modal .payment-choice-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin:0 0 12px!important;
}
.payment-choice-modal .choice-split{grid-column:1/-1!important}
.payment-choice-modal .payment-choice-btn{
  min-height:78px!important;
  padding:13px 14px!important;
  border-radius:12px!important;
}
.payment-choice-modal .payment-choice-btn>span{width:36px!important;height:36px!important;flex-basis:36px!important}
.payment-choice-modal .payment-choice-btn b{font-size:12px!important}
.payment-choice-modal .payment-choice-btn small{font-size:9px!important;margin-top:2px!important}
.payment-choice-modal .payment-security-box{
  margin:0!important;
  padding:9px 11px!important;
  border-radius:9px!important;
  gap:3px!important;
}
.payment-choice-modal .payment-security-box b{font-size:9px!important}
.payment-choice-modal .payment-security-box span{font-size:8.5px!important;line-height:1.4!important}
.payment-choice-modal .payment-review-close{width:31px!important;height:31px!important;right:11px!important;top:10px!important}
@media(max-width:560px){
  .payment-review-modal.payment-choice-modal{width:calc(100vw - 16px)!important;padding:18px 16px!important}
  .payment-choice-modal .payment-choice-grid{grid-template-columns:1fr!important}
  .payment-choice-modal .choice-split{grid-column:auto!important}
  .payment-choice-modal .payment-choice-btn{min-height:66px!important}
}


/* Comprovante dentro do Portal */
.receipt-viewer-overlay{position:fixed;inset:0;background:rgba(18,12,27,.62);backdrop-filter:blur(3px);z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px}
.receipt-viewer-overlay.hidden{display:none!important}
.receipt-viewer-modal{width:min(980px,96vw);height:min(860px,92vh);background:#fff;border-radius:22px;box-shadow:0 24px 70px rgba(24,10,34,.28);overflow:hidden;display:flex;flex-direction:column}
.receipt-viewer-head{min-height:72px;padding:14px 18px 14px 24px;border-bottom:1px solid #ece7ef;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff}
.receipt-viewer-head strong{display:block;font-size:18px;color:#18223a}.receipt-viewer-head span{display:block;font-size:11px;color:#7a7890;margin-top:3px}
.receipt-viewer-actions{display:flex;align-items:center;gap:8px}.receipt-viewer-actions button{border:1px solid #e0d8e6;background:#fff;color:#7e0c80;border-radius:10px;height:38px;padding:0 14px;font-weight:800;cursor:pointer}.receipt-viewer-actions .receipt-close{width:38px;padding:0;font-size:24px;line-height:1;color:#4c4355}
#receiptViewerFrame{width:100%;height:100%;border:0;background:#f5f6f9;flex:1}.modal-open{overflow:hidden}
.payment-proof-btn{cursor:pointer}
@media(max-width:640px){.receipt-viewer-overlay{padding:0}.receipt-viewer-modal{width:100vw;height:100dvh;max-height:none;border-radius:0}.receipt-viewer-head{min-height:64px;padding:10px 12px 10px 16px}.receipt-viewer-actions button:not(.receipt-close){display:none}}


/* ===== HOME PREMIUM 2026 ===== */
.home-premium{padding-bottom:28px}
.home-hero{position:relative;overflow:hidden;min-height:220px;border-radius:22px;padding:34px 38px;color:#fff;background:linear-gradient(115deg,#5f0869 0%,#820b86 42%,#a625aa 100%);box-shadow:0 16px 35px rgba(94,20,100,.20);display:flex;align-items:center;justify-content:space-between;gap:30px}
.home-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 20%,rgba(255,255,255,.12),transparent 20%),radial-gradient(circle at 100% 100%,rgba(255,255,255,.08),transparent 28%);pointer-events:none}
.home-hero:after{content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(255,255,255,.14);border-radius:50%;right:-85px;top:-115px}
.home-hero-content{position:relative;z-index:2;max-width:650px}.home-hero-content .event-tag{font-size:10px;letter-spacing:1.8px;font-weight:900;color:#fff}.home-hero-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.home-hero h2{font-size:32px;line-height:1.05;margin:10px 0 12px;letter-spacing:-.7px}.home-status-chip{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);padding:7px 11px;border-radius:999px;font-size:10px;font-weight:800}.home-status-chip i{width:7px;height:7px;border-radius:50%;background:#58e49d;box-shadow:0 0 0 4px rgba(88,228,157,.15)}.home-hero .event-meta{display:flex;gap:20px;font-size:12px;color:#fff}.home-hero-divider{height:1px;background:rgba(255,255,255,.2);margin:20px 0 14px}.home-hero-content p{margin:0;color:rgba(255,255,255,.84);font-size:12px}.home-hero-message{position:relative;z-index:2;text-align:right;margin-right:76px;color:rgba(255,255,255,.88);font-family:Georgia,serif;font-style:italic;font-size:19px;line-height:1.25}.home-hero-message b{font-size:24px;color:#fff}.premium-badge{position:absolute;right:24px;top:50%;transform:translateY(-50%);z-index:2;width:56px;height:56px;border:1px solid rgba(255,255,255,.24);border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-style:italic;font-size:28px;background:rgba(255,255,255,.08)}
.home-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0 22px}.home-overview-card{position:relative;display:flex;align-items:flex-start;gap:14px;min-height:126px;background:#fff;border:1px solid #ede8f0;border-radius:18px;padding:20px 20px;box-shadow:0 7px 18px rgba(39,26,58,.06)}.overview-icon{width:44px;height:44px;flex:0 0 44px;border-radius:14px;display:grid;place-items:center;background:#f4e7f5;color:#8e1892;font-size:19px;font-weight:900}.home-overview-card small{display:block;color:#9095a5;font-size:9px;font-weight:900;letter-spacing:.7px;margin:2px 0 6px}.home-overview-card strong{display:block;color:#17223b;font-size:17px;line-height:1.2}.home-overview-card span{display:block;color:#737b90;font-size:11px;margin-top:4px}.home-overview-card p{margin:8px 0 0;color:#9298a8;font-size:10px}.home-overview-card button{border:0;background:none;padding:0;margin-top:10px;color:#8e1892;font-size:10px;font-weight:900;cursor:pointer}.home-overview-card button i{font-style:normal}.overview-dot{position:absolute;right:18px;top:18px;width:8px;height:8px!important;border-radius:50%;background:#e3a329;margin:0!important}.overview-dot.ok{background:#19a765}.overview-progress{height:6px;background:#f0edf3;border-radius:99px;margin-top:12px;overflow:hidden}.overview-progress i{display:block;width:68%;height:100%;background:linear-gradient(90deg,#7e0c80,#b22eb3);border-radius:99px}
.home-section-head{display:flex;justify-content:space-between;align-items:end;margin:3px 2px 12px}.home-section-head h3{margin:0;color:#16213a;font-size:18px}.home-section-head p{margin:4px 0 0;color:#7b8395;font-size:11px}.premium-quick{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0 0 18px!important}.premium-quick button{position:relative;min-height:145px!important;padding:20px 18px!important;display:flex!important;align-items:flex-start!important;gap:13px!important;border-radius:18px!important;border:1px solid #ede8f0!important;background:linear-gradient(180deg,#fff 0%,#fff 72%,#fbf6fc 100%)!important;box-shadow:0 7px 18px rgba(39,26,58,.06)!important;text-align:left!important;overflow:hidden}.premium-quick button:after{content:"";position:absolute;left:-15%;right:-15%;bottom:-58px;height:90px;border-radius:50%;background:rgba(126,12,128,.035)}.premium-quick button:hover{transform:translateY(-3px)!important;box-shadow:0 12px 28px rgba(39,26,58,.10)!important}.premium-quick button>b{width:42px!important;height:42px!important;flex:0 0 42px;border-radius:13px!important;background:#f4e7f5!important}.premium-quick button>span{font-size:14px!important;line-height:1.25!important;padding-top:4px}.premium-quick button small{font-size:10px!important;line-height:1.45!important;margin-top:7px!important;font-weight:500!important;max-width:180px}.premium-quick button>i{position:absolute;right:17px;top:20px;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#faf5fb;font-size:17px!important;z-index:2}.premium-care{position:relative;min-height:90px;padding:22px 24px!important;border-radius:18px!important;border:1px solid #eee7f0!important;align-items:center!important}.premium-care .care-icon{width:44px;height:44px;flex:0 0 44px}.premium-care>div:nth-child(2){max-width:70%}.care-phrase{margin-left:auto;padding-left:28px;border-left:1px solid #ece4ef;color:#8a658d;font-family:Georgia,serif;font-style:italic;font-size:15px;line-height:1.35;text-align:right}.care-phrase b{font-size:16px!important;color:#7e0c80}
@media(max-width:1180px){.home-hero-message{display:none}.premium-quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-overview-grid{grid-template-columns:1fr 1fr}.home-overview-card.materials{grid-column:1/-1}}
@media(max-width:760px){.home-hero{min-height:auto;padding:24px 20px;border-radius:16px}.home-hero h2{font-size:25px}.home-status-chip{display:none}.premium-badge{display:none}.home-overview-grid{grid-template-columns:1fr}.home-overview-card.materials{grid-column:auto}.premium-quick{grid-template-columns:1fr!important}.premium-quick button{min-height:96px!important}.premium-care{align-items:flex-start!important}.premium-care>div:nth-child(2){max-width:none}.care-phrase{display:none}}

/* ===== HOME PREMIUM V2 — COMPACTA, ICONES LINEARES, MULTITELA ===== */
.nav-icon svg,.overview-icon svg,.premium-quick button>b svg,.care-icon svg,.event-meta svg{
  width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.nav-icon svg{width:18px;height:18px}
.event-meta span{display:inline-flex;align-items:center;gap:7px}
.event-meta svg{width:15px;height:15px;opacity:.9}
.event-meta em{font-style:normal}
.overview-icon svg{width:21px;height:21px}
.premium-quick button>b svg{width:20px;height:20px}
.care-icon svg{width:19px;height:19px}

/* Desktop: toda a home cabe com folga no viewport comum de notebook */
@media(min-width:801px){
  .home-premium{padding-bottom:10px!important;display:flex;flex-direction:column;gap:12px}
  .home-premium .home-hero{min-height:164px!important;height:164px;padding:22px 32px!important;border-radius:18px!important;box-shadow:0 10px 28px rgba(94,20,100,.16)!important}
  .home-hero-content{max-width:620px!important}
  .home-hero h2{font-size:28px!important;margin:7px 0 9px!important}
  .home-hero-divider{margin:13px 0 10px!important}
  .home-hero-content p{font-size:11px!important}
  .home-hero-message{font-size:17px!important;margin-right:72px!important}
  .home-hero-message b{font-size:21px!important}
  .premium-badge{width:50px!important;height:50px!important;font-size:25px!important}
  .home-overview-grid{gap:12px!important;margin:0!important}
  .home-overview-card{min-height:100px!important;padding:15px 16px!important;border-radius:15px!important;gap:12px!important}
  .overview-icon{width:40px!important;height:40px!important;flex-basis:40px!important;border-radius:12px!important}
  .home-overview-card small{margin:1px 0 4px!important;font-size:8px!important}
  .home-overview-card strong{font-size:15px!important}
  .home-overview-card span{font-size:10px!important;margin-top:3px!important}
  .home-overview-card p{font-size:9px!important;margin-top:5px!important}
  .home-overview-card button{margin-top:6px!important;font-size:9px!important}
  .overview-progress{margin-top:8px!important;height:5px!important}
  .home-section-head{margin:0 2px 0!important}
  .home-section-head h3{font-size:16px!important}
  .home-section-head p{font-size:10px!important;margin-top:2px!important}
  .premium-quick{gap:12px!important;margin:0!important}
  .premium-quick button{min-height:108px!important;height:108px!important;padding:15px 15px!important;border-radius:15px!important;gap:11px!important}
  .premium-quick button>b{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:11px!important}
  .premium-quick button>span{font-size:13px!important;padding-top:2px!important}
  .premium-quick button small{font-size:9px!important;line-height:1.35!important;margin-top:5px!important;max-width:170px!important}
  .premium-quick button>i{right:13px!important;top:14px!important;width:24px!important;height:24px!important;font-size:15px!important}
  .premium-care{min-height:68px!important;height:68px;padding:13px 18px!important;border-radius:15px!important}
  .premium-care .care-icon{width:38px!important;height:38px!important;flex-basis:38px!important}
  .premium-care b{font-size:12px!important}
  .premium-care p{font-size:9.5px!important;line-height:1.35!important;margin-top:3px!important}
  .care-phrase{font-size:12px!important;padding-left:20px!important}
  .care-phrase b{font-size:13px!important}
}

/* Notebook menor: mantém 4 acessos em uma linha e comprime sem perder leitura */
@media(max-width:1180px) and (min-width:801px){
  .home-hero-message{display:block!important;font-size:15px!important;margin-right:62px!important}
  .home-hero-message b{font-size:18px!important}
  .home-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .home-overview-card.materials{grid-column:auto!important}
  .premium-quick{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .premium-quick button small{font-size:8.5px!important}
}

/* Tablet */
@media(max-width:960px) and (min-width:801px){
  .home-hero-message{display:none!important}
  .premium-badge{display:grid!important}
  .home-overview-card{padding:14px!important}
  .home-overview-card strong{font-size:14px!important}
  .premium-quick button{padding:13px!important}
  .premium-quick button>span{font-size:12px!important}
  .premium-quick button small{display:none!important}
}

/* Mobile: experiência de app, legível e sem estouro horizontal */
@media(max-width:800px){
  .home-premium{display:flex;flex-direction:column;gap:11px;padding-bottom:8px!important}
  .home-hero{padding:20px 18px!important;border-radius:16px!important;min-height:170px!important;box-shadow:0 9px 24px rgba(94,20,100,.16)!important}
  .home-hero-title-row{gap:8px!important}
  .home-hero h2{font-size:23px!important;margin:7px 0 10px!important}
  .home-hero .event-meta{flex-direction:row!important;flex-wrap:wrap!important;gap:12px!important;font-size:10.5px!important}
  .home-hero-divider{margin:13px 0 10px!important}
  .home-hero-content p{font-size:10.5px!important;line-height:1.4!important}
  .home-overview-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin:0!important}
  .home-overview-card{min-height:88px!important;padding:14px!important;border-radius:14px!important;gap:12px!important;align-items:center!important}
  .overview-icon{width:40px!important;height:40px!important;flex-basis:40px!important;border-radius:12px!important}
  .home-overview-card strong{font-size:14px!important}
  .home-overview-card small{font-size:8px!important;margin-bottom:3px!important}
  .home-overview-card span{font-size:10px!important}
  .home-overview-card p{font-size:9px!important;margin-top:4px!important}
  .home-section-head{margin:1px 1px 0!important}
  .home-section-head h3{font-size:16px!important}
  .home-section-head p{font-size:10px!important;margin-top:2px!important}
  .premium-quick{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin:0!important}
  .premium-quick button{min-height:98px!important;height:auto!important;padding:13px!important;border-radius:14px!important;gap:9px!important}
  .premium-quick button>b{width:36px!important;height:36px!important;flex-basis:36px!important;border-radius:10px!important}
  .premium-quick button>span{font-size:12px!important;padding-top:2px!important;min-width:0!important}
  .premium-quick button small{display:none!important}
  .premium-quick button>i{right:10px!important;top:10px!important;width:22px!important;height:22px!important;font-size:14px!important}
  .premium-care{min-height:auto!important;padding:14px!important;border-radius:14px!important;gap:11px!important}
  .premium-care .care-icon{width:38px!important;height:38px!important;flex-basis:38px!important}
  .premium-care b{font-size:12px!important}
  .premium-care p{font-size:9.5px!important;line-height:1.4!important;margin-top:3px!important}
}

@media(max-width:430px){
  .premium-quick{grid-template-columns:1fr!important}
  .premium-quick button{min-height:76px!important;display:flex!important;align-items:center!important}
  .premium-quick button>span{font-size:12.5px!important}
  .home-hero h2{font-size:21px!important}
  .home-overview-card{min-height:82px!important}
}

/* Arquivos do evento */
.event-files-page{padding-bottom:26px}.event-files-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.event-files-head-actions{display:flex;align-items:center;gap:10px}.event-files-head-actions select{min-width:220px;padding:10px 12px;border:1px solid #e2dce5;border-radius:10px;background:#fff;color:#30384c;font-weight:700}.event-download-all{display:inline-flex;align-items:center;gap:7px;text-decoration:none;background:#7e0c80;color:#fff;border-radius:10px;padding:10px 13px;font-size:10px;font-weight:900;white-space:nowrap}.event-download-all svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.event-download-all.disabled{opacity:.45;pointer-events:none}.event-access-notice{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(135deg,#faf5fb,#fff);border:1px solid #eadfec;border-radius:14px;padding:14px 16px;margin-bottom:14px;color:#4b4050}.event-access-notice.urgent{background:#fff7ed;border-color:#f4cf9d}.event-access-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#f0e3f2;color:#7e0c80;display:grid;place-items:center;font-weight:900}.event-access-notice.urgent .event-access-icon{background:#fff0d7;color:#b76a00}.event-access-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}.event-access-notice b{display:block;font-size:11px;margin-bottom:3px;color:#2b3348}.event-access-notice span{font-size:10px;color:#777e8e;line-height:1.45}.event-files-summary{display:flex;gap:10px;margin-bottom:14px}.event-files-summary>div{min-width:120px;background:#fff;border:1px solid #eee9f0;border-radius:13px;padding:12px 15px;box-shadow:0 3px 12px rgba(35,24,45,.035)}.event-files-summary b{display:block;font-size:20px;color:#7e0c80}.event-files-summary span{font-size:9px;color:#7b8190;text-transform:uppercase;font-weight:800}.event-files-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.event-file-card{background:#fff;border:1px solid #eae5ed;border-radius:16px;overflow:hidden;box-shadow:0 5px 17px rgba(40,28,50,.055);min-width:0}.event-file-preview{width:100%;height:190px;border:0;padding:0;background:#f3f0f5;position:relative;display:block;cursor:pointer;overflow:hidden}.event-file-preview>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}.event-file-card:hover .event-file-preview>img{transform:scale(1.025)}.event-file-type{position:absolute;top:10px;left:10px;background:rgba(30,21,35,.72);color:#fff;border-radius:7px;padding:5px 7px;font-size:7px;font-weight:900;letter-spacing:.06em}.event-video-cover,.event-other-cover{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#7e0c80;background:linear-gradient(145deg,#f7eef8,#f9f7fa)}.event-video-cover svg,.event-other-cover svg,.event-empty-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.6}.event-video-cover span{font-size:10px;font-weight:900}.event-file-info{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px}.event-file-info>div:first-child{min-width:0}.event-file-info b{display:block;font-size:10.5px;color:#283047;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-file-info span{display:block;font-size:8px;color:#818795;margin-top:4px}.event-file-actions{display:flex;gap:5px;flex:0 0 auto}.event-file-actions button,.event-file-actions a{width:31px;height:31px;border-radius:9px;border:1px solid #e9e2eb;background:#fff;color:#7e0c80;display:grid;place-items:center;cursor:pointer;text-decoration:none}.event-file-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.event-files-empty{grid-column:1/-1;min-height:210px;background:#fff;border:1px dashed #dfd5e3;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#7a8090}.event-files-empty b{font-size:15px;color:#343b4e;margin:9px 0 5px}.event-files-empty span{font-size:10.5px;max-width:480px;line-height:1.55}.event-empty-icon{color:#7e0c80}.event-file-viewer{position:fixed;inset:0;z-index:1700;background:rgba(19,13,23,.72);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:22px}.event-file-viewer-card{width:min(1050px,96vw);height:min(760px,92vh);background:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 25px 80px rgba(0,0,0,.34)}.event-file-viewer-head{min-height:66px;padding:12px 16px 12px 20px;border-bottom:1px solid #ece7ee;display:flex;align-items:center;justify-content:space-between;gap:14px}.event-file-viewer-head b{display:block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2b3347;font-size:12px}.event-file-viewer-head span{display:block;font-size:8px;color:#858a98;margin-top:3px}.event-file-viewer-head>div:last-child{display:flex;align-items:center;gap:7px}.event-view-download{background:#7e0c80;color:#fff;text-decoration:none;padding:8px 11px;border-radius:9px;font-size:9px;font-weight:900}.event-view-close{width:34px;height:34px;border:0;border-radius:10px;background:#f5f1f6;color:#514857;font-size:21px;cursor:pointer}.event-file-viewer-body{flex:1;min-height:0;display:grid;place-items:center;background:#17131a;padding:12px}.event-file-viewer-body img,.event-file-viewer-body video{max-width:100%;max-height:100%;object-fit:contain}.event-file-viewer-body video{width:100%;height:100%}.event-generic-preview{color:#fff;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}.event-generic-preview svg{width:54px;height:54px;fill:none;stroke:#d8b7da;stroke-width:1.5}.event-generic-preview a{color:#fff;background:#7e0c80;text-decoration:none;padding:10px 14px;border-radius:9px;font-weight:900;font-size:10px}
@media(max-width:1100px){.event-files-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.side nav{grid-template-columns:repeat(7,minmax(0,1fr)) !important}.nav{padding:4px 1px!important}.nav span{font-size:7.5px!important}.nav-icon{width:27px!important;height:27px!important;flex-basis:27px!important}.event-files-head{align-items:flex-start;flex-direction:column}.event-files-head-actions{width:100%;display:grid;grid-template-columns:1fr auto}.event-files-head-actions select{min-width:0;width:100%}.event-files-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.event-file-preview{height:155px}.event-files-summary{overflow-x:auto;padding-bottom:2px}.event-files-summary>div{min-width:105px;padding:10px 12px}.event-access-notice{padding:12px}.event-file-info{padding:10px}.event-file-actions button,.event-file-actions a{width:29px;height:29px}.event-file-viewer{padding:0}.event-file-viewer-card{width:100vw;height:100dvh;max-height:none;border-radius:0}.event-file-viewer-head{min-height:60px;padding:9px 10px 9px 14px}.event-file-viewer-head b{max-width:52vw}.event-file-viewer-body{padding:5px}}
@media(max-width:430px){.event-files-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.event-file-preview{height:132px}.event-file-info b{font-size:9px}.event-file-info span{font-size:7px}.event-download-all{padding:9px 10px;font-size:8px}.event-files-head-actions{grid-template-columns:1fr auto}.side nav{gap:1px!important}.nav span{font-size:6.8px!important}.nav-icon{width:25px!important;height:25px!important;flex-basis:25px!important}}


/* LOGIN CLIENTE — CENTRAL, FIXO E SEM ROLAGEM */
#loginView.login-clean-shell{position:fixed!important;inset:0!important;z-index:5000!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;overscroll-behavior:none!important;background:#f7f6f9!important}
#loginView.login-clean-shell[hidden]{display:none!important}
.login-clean-card{width:min(420px,calc(100% - 16px))!important;max-height:calc(100% - 24px)!important;overflow:hidden!important;background:#fff!important;border:1px solid #ebe7ee!important;border-radius:22px!important;box-shadow:0 16px 44px rgba(43,24,52,.10)!important;padding:28px 30px 26px!important}
.login-clean-logo{display:flex!important;align-items:center!important;justify-content:center!important;height:88px!important;margin:0 0 18px!important;padding:4px 8px 17px!important;border-bottom:1px solid #eeeaf1!important;background:#fff!important;overflow:hidden!important}
.login-clean-logo img{display:block!important;width:auto!important;height:auto!important;max-width:210px!important;max-height:68px!important;object-fit:contain!important;object-position:center!important}
.login-clean-form h1{margin:0 0 20px!important;text-align:center!important;font-size:23px!important;color:#17213a!important}
.login-clean-form label{display:block!important;margin:0 0 7px!important;font-size:11px!important;font-weight:800!important;color:#5f6678!important}
.login-clean-form input{width:100%!important;min-height:50px!important;margin:0 0 14px!important;border:1px solid #dcd9e2!important;border-radius:12px!important;padding:0 14px!important;font-size:16px!important;background:#fff!important}
.login-clean-form .pw{display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;gap:8px!important;align-items:start!important}
.login-clean-form .pw input{margin-bottom:0!important}
.login-clean-form .pw button{min-height:50px!important;border:1px solid #e1dae4!important;border-radius:12px!important;background:#faf7fb!important;color:#7e0c80!important;font-weight:800!important}
.login-clean-form .primary{width:100%!important;min-height:50px!important;margin-top:14px!important;border-radius:12px!important}
@media(max-width:560px){#loginView.login-clean-shell{padding:14px!important}.login-clean-card{width:min(390px,100%)!important;padding:22px 18px 20px!important;border-radius:18px!important}.login-clean-logo{height:74px!important;margin-bottom:15px!important;padding-bottom:14px!important}.login-clean-logo img{max-width:180px!important;max-height:58px!important}.login-clean-form h1{font-size:21px!important;margin-bottom:17px!important}.login-clean-form input,.login-clean-form .pw button,.login-clean-form .primary{min-height:48px!important}}


/* D4Sign no Portal do Cliente — fluxo definitivo: visualizar antes de assinar */
.portal-sign-status{display:block;font-size:10px;font-weight:900;line-height:1.3}
.portal-sign-status.is-signed{color:#157347}
.portal-sign-status.is-waiting{color:#9a6b00}
.contract-view-sign-btn{
  border:0;border-radius:9px;background:#7e0c80;color:#fff;font:inherit;font-size:10px;font-weight:900;
  padding:9px 12px;cursor:pointer;white-space:nowrap
}
.contract-view-sign-btn:hover{filter:brightness(.96)}
.contract-signature-action{justify-content:flex-start;flex-wrap:wrap}
.contract-signature-action>div:nth-child(2){flex:1;min-width:220px}
.contract-signature-action .contract-view-sign-btn{margin-left:auto;font-size:11px;padding:11px 15px}
.portal-d4-overlay{
  position:fixed;inset:0;z-index:100000;background:rgba(18,22,33,.62);
  display:flex;align-items:center;justify-content:center;padding:18px
}
.portal-d4-overlay[hidden]{display:none}
.portal-d4-modal{
  width:min(1180px,96vw);height:min(900px,94vh);background:#fff;border-radius:16px;
  overflow:hidden;display:flex;flex-direction:column;box-shadow:0 28px 80px rgba(0,0,0,.28)
}
.portal-d4-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #ece8ef}
.portal-d4-head b{display:block;color:#182038;font-size:16px}
.portal-d4-head small{display:block;color:#72798a;font-size:11px;margin-top:2px}
.portal-d4-close{width:40px;height:40px;border:0;border-radius:10px;background:#f4f1f5;color:#4f5665;font-size:26px;cursor:pointer}
.portal-d4-body{flex:1;min-height:0;background:#f5f5f7}
.portal-d4-body iframe{width:100%;height:100%;border:0;background:#fff;display:block}
.portal-d4-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;border-top:1px solid #ece8ef;color:#626a7b;font-size:11px}
@media(max-width:700px){
 .portal-d4-overlay{padding:0}
 .portal-d4-modal{width:100%;height:100%;max-height:none;border-radius:0}
 .portal-d4-foot{flex-direction:column;align-items:stretch}
 .portal-d4-foot .small-primary{width:100%;min-height:44px}
 .contract-signature-action .contract-view-sign-btn{width:100%;margin-left:0}
}

/* ===== INDICAÇÃO PREMIADA — preservada sobre o portal original ===== */
.referral-page{padding-bottom:40px}
.referral-hero{display:flex;justify-content:space-between;gap:28px;align-items:center;padding:26px 28px;border:1px solid #eadfec;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#fbf5fc 58%,#f3e4f5 100%);margin-bottom:18px;overflow:hidden}
.referral-eyebrow,.referral-card-head span,.referral-rules-card>span,.referral-list-head span{font-size:10px;font-weight:900;letter-spacing:.16em;color:#8b168d}
.referral-hero h2{font-size:30px;margin:6px 0 8px;color:#24263a}
.referral-hero p{max-width:650px;margin:0;color:#687084;line-height:1.55}
.referral-reward{min-width:230px;padding:18px 20px;border-radius:18px;background:#7e0c80;color:#fff;display:flex;flex-direction:column;box-shadow:0 16px 34px rgba(126,12,128,.17)}
.referral-reward small{font-size:8px;letter-spacing:.12em;opacity:.82}.referral-reward strong{font-size:44px;line-height:1;margin:8px 0 5px}.referral-reward span{font-size:11px}
.referral-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.referral-summary article{padding:16px 18px;border:1px solid #e6e8ef;border-radius:16px;background:#fff}.referral-summary small{display:block;color:#7d8494;font-size:10px;margin-bottom:7px}.referral-summary b{font-size:22px;color:#272b3b}.referral-summary .is-benefit{background:#faf3fb;border-color:#e3cce7}.referral-summary .is-benefit b{color:#7e0c80}
.referral-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);gap:16px;margin-bottom:18px}
.referral-form-card,.referral-rules-card,.referral-list-card{background:#fff;border:1px solid #e6e8ef;border-radius:18px;padding:20px}
.referral-card-head,.referral-list-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.referral-card-head h3,.referral-list-head h3{font-size:19px;margin:4px 0 0;color:#292d3d}.referral-heart{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#f7eaf8;color:#7e0c80;font-size:24px}
.referral-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.referral-form label{display:flex;flex-direction:column;gap:6px}.referral-form label>span{font-size:10px;font-weight:800;color:#535b6c}.referral-form input,.referral-form select{height:42px;border:1px solid #dfe3eb;border-radius:10px;padding:0 11px;background:#fff;color:#2e3342}.referral-form label small{font-size:9px;color:#858c9c}.referral-form .span2{grid-column:1/-1}.referral-submit{height:44px;border:0;border-radius:11px;background:#7e0c80;color:#fff;font-weight:900;cursor:pointer}.referral-submit:disabled{opacity:.6}
.referral-rules-card ol{list-style:none;padding:0;margin:15px 0 0;display:grid;gap:14px;counter-reset:steps}.referral-rules-card li{position:relative;padding-left:42px;min-height:34px;counter-increment:steps}.referral-rules-card li:before{content:counter(steps);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f3e4f5;color:#7e0c80;font-weight:900}.referral-rules-card li b{display:block;font-size:12px;color:#343849}.referral-rules-card li small{display:block;margin-top:3px;color:#818899;line-height:1.4}
.referral-list-head button{border:1px solid #dddfea;background:#fff;border-radius:9px;padding:7px 10px;color:#5c6373;cursor:pointer}
.referral-item{display:grid;grid-template-columns:1.35fr .9fr .8fr;gap:15px;align-items:center;padding:14px 0;border-top:1px solid #edf0f4}.referral-item:first-child{border-top:0}.referral-person b,.referral-contract b{display:block;color:#303443;font-size:12px}.referral-person span,.referral-person small,.referral-contract small{display:block;color:#858c9c;font-size:9.5px;margin-top:4px}.referral-result{text-align:right}.referral-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900;background:#eef1f6;color:#596172}.referral-status.contact{background:#edf4ff;color:#2a6fc5}.referral-status.proposal{background:#fff3df;color:#9b6300}.referral-status.won{background:#e8f8ef;color:#177244}.referral-status.lost{background:#fdecec;color:#b13b3b}.referral-benefit-earned{display:block;margin-top:7px;color:#7e0c80;font-size:12px}.referral-result small{display:block;margin-top:6px;color:#949aaa;font-size:9px}
@media(max-width:900px){.referral-hero{align-items:flex-start;flex-direction:column}.referral-reward{width:100%}.referral-grid{grid-template-columns:1fr}.referral-summary{grid-template-columns:1fr}.referral-item{grid-template-columns:1fr;gap:8px}.referral-result{text-align:left}}
@media(max-width:600px){.referral-form{grid-template-columns:1fr}.referral-form .span2{grid-column:auto}.referral-hero{padding:20px}.referral-hero h2{font-size:25px}}

.referral-lock-notice{margin:0 0 14px;padding:13px 14px;border-radius:12px;background:#fff2f2;border:1px solid #f2caca;color:#8b3434}
.referral-lock-notice b{display:block;font-size:11px;margin-bottom:4px}
.referral-lock-notice span{display:block;font-size:9.5px;line-height:1.45}


/* ===== Transparência financeira — Indicação Premiada ===== */
.referral-summary .is-benefit span{display:block;margin-top:5px;font-size:8.5px;color:#8b7690}
.referral-financial-card{margin:0 0 18px;padding:20px;border:1px solid #dfcce4;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#fcf7fd 100%);box-shadow:0 10px 26px rgba(69,33,74,.05)}
.referral-financial-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-bottom:14px;border-bottom:1px solid #eee4f0}
.referral-financial-head>div:first-child>span{font-size:9px;letter-spacing:.15em;font-weight:900;color:#7e0c80}
.referral-financial-head h3{margin:4px 0 0;font-size:19px;color:#292d3d}
.referral-financial-contract{text-align:right}.referral-financial-contract small{display:block;font-size:8px;color:#8c93a2;text-transform:uppercase;letter-spacing:.08em}.referral-financial-contract b{display:block;margin-top:4px;font-size:13px;color:#7e0c80}
.referral-financial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}
.referral-financial-grid article{min-height:112px;padding:14px;border:1px solid #e6e8ef;border-radius:14px;background:#fff;display:flex;flex-direction:column;justify-content:center}
.referral-financial-grid article small{font-size:9px;color:#777f90}.referral-financial-grid article>b{display:block;margin:7px 0 4px;font-size:22px;color:#272c3b;line-height:1.1}.referral-financial-grid article span{font-size:8.5px;color:#9298a6;line-height:1.35}
.referral-financial-grid .commission-value{background:#7e0c80;border-color:#7e0c80}.referral-financial-grid .commission-value small,.referral-financial-grid .commission-value span{color:#f2dff3}.referral-financial-grid .commission-value>b{color:#fff;font-size:26px}.referral-financial-grid .commission-value span strong{color:#fff}
.referral-financial-grid .discount-total{background:#faf3fb;border-color:#e3cde6}.referral-financial-grid .discount-total>b{color:#7e0c80}
.referral-financial-grid .current-balance{background:#f5f7fa}.referral-financial-grid .current-balance>b{color:#222c3b}
.referral-financial-explain{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f8f1f9;color:#626979;font-size:9.5px;line-height:1.5}.referral-financial-explain b{color:#7e0c80}
@media(max-width:950px){.referral-financial-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.referral-financial-head{align-items:flex-start;flex-direction:column}.referral-financial-contract{text-align:left}.referral-financial-grid{grid-template-columns:1fr}.referral-financial-grid article{min-height:auto}.referral-financial-grid .commission-value>b{font-size:28px}}


/* =========================================================
   INDICAÇÃO PREMIADA — MOBILE FIRST FINAL
   Aplicado somente em telas de telefone. Desktop preservado.
   ========================================================= */
@media screen and (max-width: 700px){

  #page-referrals.referral-page{
    padding:0 0 92px !important;
    overflow-x:hidden !important;
  }

  /* Cabeçalho da campanha */
  #page-referrals .referral-hero{
    display:block !important;
    margin:0 0 12px !important;
    padding:18px 16px !important;
    border-radius:18px !important;
    background:linear-gradient(145deg,#fff 0%,#fbf4fc 100%) !important;
  }
  #page-referrals .referral-eyebrow{
    display:inline-flex !important;
    font-size:9px !important;
    letter-spacing:.12em !important;
    margin-bottom:5px !important;
  }
  #page-referrals .referral-hero h2{
    font-size:26px !important;
    line-height:1.08 !important;
    margin:3px 0 8px !important;
  }
  #page-referrals .referral-hero p{
    font-size:13px !important;
    line-height:1.52 !important;
    max-width:none !important;
  }
  #page-referrals .referral-reward{
    width:auto !important;
    min-width:0 !important;
    margin-top:15px !important;
    padding:14px 16px !important;
    border-radius:15px !important;
    box-shadow:none !important;
    display:grid !important;
    grid-template-columns:auto 1fr !important;
    grid-template-areas:"label label" "value text" !important;
    align-items:center !important;
    column-gap:12px !important;
  }
  #page-referrals .referral-reward small{
    grid-area:label !important;
    font-size:7.5px !important;
    margin-bottom:5px !important;
  }
  #page-referrals .referral-reward strong{
    grid-area:value !important;
    font-size:38px !important;
    margin:0 !important;
  }
  #page-referrals .referral-reward span{
    grid-area:text !important;
    font-size:10px !important;
    line-height:1.3 !important;
  }

  /* Resumo: 3 cards lado a lado sem virar lista gigante */
  #page-referrals .referral-summary{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
    margin:0 0 12px !important;
  }
  #page-referrals .referral-summary article{
    min-width:0 !important;
    padding:11px 9px !important;
    border-radius:13px !important;
  }
  #page-referrals .referral-summary small{
    font-size:7.5px !important;
    line-height:1.25 !important;
    min-height:19px !important;
    margin-bottom:5px !important;
  }
  #page-referrals .referral-summary b{
    font-size:17px !important;
    line-height:1.05 !important;
    overflow-wrap:anywhere !important;
  }
  #page-referrals .referral-summary .is-benefit span{
    font-size:7px !important;
    line-height:1.2 !important;
    margin-top:4px !important;
  }

  /* Benefício financeiro: ordem didática no telefone */
  #page-referrals .referral-financial-card{
    margin:0 0 12px !important;
    padding:15px 13px !important;
    border-radius:17px !important;
    box-shadow:none !important;
  }
  #page-referrals .referral-financial-head{
    display:block !important;
    padding-bottom:11px !important;
  }
  #page-referrals .referral-financial-head>div:first-child>span{
    font-size:8px !important;
  }
  #page-referrals .referral-financial-head h3{
    font-size:17px !important;
    line-height:1.2 !important;
    margin-top:4px !important;
  }
  #page-referrals .referral-financial-contract{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:10px !important;
    margin-top:10px !important;
    padding:8px 10px !important;
    text-align:left !important;
    border-radius:10px !important;
    background:#f8f2f9 !important;
  }
  #page-referrals .referral-financial-contract small{
    font-size:7.5px !important;
  }
  #page-referrals .referral-financial-contract b{
    margin:0 !important;
    font-size:11px !important;
    text-align:right !important;
  }
  #page-referrals .referral-financial-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    margin-top:10px !important;
  }
  #page-referrals .referral-financial-grid article{
    min-width:0 !important;
    min-height:104px !important;
    padding:12px 11px !important;
    border-radius:13px !important;
  }
  #page-referrals .referral-financial-grid article small{
    font-size:8px !important;
    line-height:1.3 !important;
  }
  #page-referrals .referral-financial-grid article>b{
    font-size:18px !important;
    margin:6px 0 4px !important;
    overflow-wrap:anywhere !important;
  }
  #page-referrals .referral-financial-grid article span{
    font-size:7.5px !important;
    line-height:1.3 !important;
  }
  #page-referrals .referral-financial-grid .commission-value>b{
    font-size:23px !important;
  }
  #page-referrals .referral-financial-explain{
    margin-top:9px !important;
    padding:9px 10px !important;
    font-size:9px !important;
    line-height:1.45 !important;
  }

  /* Cadastro */
  #page-referrals .referral-grid{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    margin-bottom:12px !important;
  }
  #page-referrals .referral-form-card,
  #page-referrals .referral-rules-card,
  #page-referrals .referral-list-card{
    width:100% !important;
    padding:15px 13px !important;
    border-radius:17px !important;
  }
  #page-referrals .referral-card-head{
    align-items:center !important;
    margin-bottom:13px !important;
  }
  #page-referrals .referral-card-head h3,
  #page-referrals .referral-list-head h3{
    font-size:17px !important;
    line-height:1.2 !important;
  }
  #page-referrals .referral-heart{
    width:34px !important;
    height:34px !important;
    border-radius:10px !important;
    font-size:20px !important;
    flex:0 0 auto !important;
  }
  #page-referrals .referral-form{
    display:block !important;
  }
  #page-referrals .referral-form label{
    display:flex !important;
    width:100% !important;
    margin-bottom:11px !important;
    gap:5px !important;
  }
  #page-referrals .referral-form label>span{
    font-size:9px !important;
  }
  #page-referrals .referral-form input,
  #page-referrals .referral-form select{
    width:100% !important;
    height:46px !important;
    min-height:46px !important;
    padding:0 12px !important;
    border-radius:11px !important;
    font-size:16px !important; /* evita zoom automático do iPhone */
    box-sizing:border-box !important;
  }
  #page-referrals .referral-form label small{
    font-size:8px !important;
    line-height:1.35 !important;
  }
  #page-referrals .referral-submit{
    position:sticky !important;
    bottom:74px !important;
    z-index:8 !important;
    width:100% !important;
    height:50px !important;
    margin-top:3px !important;
    border-radius:13px !important;
    font-size:13px !important;
    box-shadow:0 10px 24px rgba(126,12,128,.18) !important;
  }
  #page-referrals .referral-submit:disabled{
    box-shadow:none !important;
  }

  /* Trava após evento */
  #page-referrals .referral-lock-notice{
    padding:12px !important;
    margin-bottom:12px !important;
    border-radius:12px !important;
  }
  #page-referrals .referral-lock-notice b{
    font-size:10px !important;
  }
  #page-referrals .referral-lock-notice span{
    font-size:8.5px !important;
  }

  /* Como funciona: mais compacto */
  #page-referrals .referral-rules-card{
    order:2 !important;
  }
  #page-referrals .referral-rules-card ol{
    gap:11px !important;
    margin-top:12px !important;
  }
  #page-referrals .referral-rules-card li{
    min-height:30px !important;
    padding-left:38px !important;
  }
  #page-referrals .referral-rules-card li:before{
    width:28px !important;
    height:28px !important;
    font-size:10px !important;
  }
  #page-referrals .referral-rules-card li b{
    font-size:10px !important;
  }
  #page-referrals .referral-rules-card li small{
    font-size:8px !important;
    line-height:1.35 !important;
  }

  /* Histórico das indicações: card individual em vez de tabela */
  #page-referrals .referral-list-head{
    align-items:center !important;
    margin-bottom:5px !important;
  }
  #page-referrals .referral-list-head button{
    padding:8px 9px !important;
    font-size:9px !important;
    white-space:nowrap !important;
  }
  #page-referrals .referral-item{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "person status"
      "contract contract" !important;
    gap:8px 10px !important;
    padding:13px 0 !important;
    align-items:start !important;
  }
  #page-referrals .referral-person{
    grid-area:person !important;
    min-width:0 !important;
  }
  #page-referrals .referral-person b{
    font-size:11px !important;
    line-height:1.25 !important;
  }
  #page-referrals .referral-person span,
  #page-referrals .referral-person small{
    font-size:8px !important;
    line-height:1.35 !important;
  }
  #page-referrals .referral-contract{
    grid-area:contract !important;
    padding:8px 10px !important;
    border-radius:9px !important;
    background:#faf7fb !important;
  }
  #page-referrals .referral-contract small{
    font-size:7px !important;
    margin:0 !important;
  }
  #page-referrals .referral-contract b{
    font-size:9.5px !important;
    margin-top:3px !important;
  }
  #page-referrals .referral-result{
    grid-area:status !important;
    text-align:right !important;
    min-width:92px !important;
  }
  #page-referrals .referral-status{
    max-width:100% !important;
    justify-content:center !important;
    font-size:7px !important;
    padding:5px 7px !important;
    white-space:nowrap !important;
  }
  #page-referrals .referral-benefit-earned{
    font-size:10px !important;
    margin-top:5px !important;
  }
  #page-referrals .referral-result small{
    font-size:7px !important;
    line-height:1.25 !important;
  }

  /* evita qualquer estouro lateral */
  #page-referrals *,
  #page-referrals *::before,
  #page-referrals *::after{
    box-sizing:border-box !important;
  }
  #page-referrals input,
  #page-referrals select,
  #page-referrals button{
    max-width:100% !important;
  }
}

@media screen and (max-width: 390px){
  #page-referrals .referral-summary{
    grid-template-columns:1fr 1fr !important;
  }
  #page-referrals .referral-summary .is-benefit{
    grid-column:1/-1 !important;
  }
  #page-referrals .referral-financial-grid{
    grid-template-columns:1fr !important;
  }
  #page-referrals .referral-financial-grid article{
    min-height:auto !important;
  }
}

/* =========================================================
   INDICAÇÃO MOBILE — CARDS FINANCEIROS COM A MESMA REFERÊNCIA
   DO CARD "INDICAÇÕES ENVIADAS"
   SOMENTE esta área. Nenhuma outra página é alterada.
   ========================================================= */
@media screen and (max-width:700px){

  #page-referrals .referral-financial-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important; /* mesma referência do resumo */
    align-items:stretch !important;
    padding:0 !important;
  }

  #page-referrals .referral-financial-grid > article{
    width:100% !important;
    min-width:0 !important;

    /* remove as alturas grandes anteriores */
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    /* mesma proporção do card "Indicações enviadas" */
    padding:11px 9px !important;
    border-radius:13px !important;

    /* deixa o conteúdo definir a altura real */
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    gap:0 !important;
    box-sizing:border-box !important;
  }

  #page-referrals .referral-financial-grid > article > small{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:19px !important;
    margin:0 0 5px !important;

    /* mesma tipografia do card "Indicações enviadas" */
    font-size:7.5px !important;
    line-height:1.25 !important;
  }

  #page-referrals .referral-financial-grid > article > b{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;

    /* mesma escala do número do resumo */
    font-size:17px !important;
    line-height:1.05 !important;
    white-space:nowrap !important;
  }

  #page-referrals .referral-financial-grid > article > span{
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:4px 0 0 !important;

    /* mesma escala do texto auxiliar do resumo */
    font-size:7px !important;
    line-height:1.2 !important;
  }

  /* O card roxo mantém a identidade, mas usa a MESMA altura/tipografia */
  #page-referrals .referral-financial-grid .commission-value > b{
    font-size:17px !important;
  }
}

@media screen and (max-width:390px){
  #page-referrals .referral-financial-grid{
    gap:7px !important;
  }

  #page-referrals .referral-financial-grid > article{
    min-height:0 !important;
    padding:11px 9px !important;
  }

  #page-referrals .referral-financial-grid > article > b,
  #page-referrals .referral-financial-grid .commission-value > b{
    font-size:16px !important;
  }
}


/* =========================================================
   AJUSTE MOBILE GERAL — PORTAL DO CLIENTE
   Somente responsividade/encaixe. Não altera funções.
   ========================================================= */
@media screen and (max-width:800px){

  html, body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  *, *::before, *::after{
    box-sizing:border-box;
  }

  .portal,
  .content,
  .page,
  .page > *,
  section{
    max-width:100% !important;
    min-width:0 !important;
  }

  /* Menu inferior sempre dentro da tela */
  .side{
    width:100vw !important;
    max-width:100vw !important;
    overflow:hidden !important;
  }
  .side nav{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    overflow:hidden !important;
  }
  .nav{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  .nav span{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Cabeçalho e cards não empurram a página para os lados */
  .top,
  .section-head,
  .event-card,
  .list-card,
  .empty-card,
  .contract-card,
  .contract-card-detail,
  .payment-panel-shell,
  .filter-card,
  .upload-card,
  .care,
  .home-overview-card{
    max-width:100% !important;
    min-width:0 !important;
  }

  .top > *,
  .section-head > *,
  .contract-title > *,
  .payment-panel-heading > *,
  .file-item > *,
  .frame-item > *{
    min-width:0 !important;
  }

  /* Textos longos quebram sem aumentar a largura da tela */
  .content b,
  .content strong,
  .content span,
  .content p,
  .content small,
  .content a{
    overflow-wrap:anywhere;
    word-break:normal;
  }

  /* Mídias sempre limitadas à largura útil */
  .content img,
  .content video,
  .content iframe{
    max-width:100% !important;
  }

  /* Contratos e serviços em uma coluna no telefone */
  .contract-row,
  .service-row,
  .contract-services .service-row{
    grid-template-columns:1fr !important;
    min-width:0 !important;
  }
  .contract-services .service-meta{
    text-align:left !important;
  }

  /* Financeiro sem largura mínima herdada do desktop */
  .payment-row{
    grid-template-columns:1fr !important;
    min-width:0 !important;
  }

  /* Arquivos/fotos */
  .event-files-head,
  .event-files-head-actions,
  .event-files-summary,
  .event-files-gallery,
  .event-file-card,
  .event-file-preview,
  .event-file-info{
    max-width:100% !important;
    min-width:0 !important;
  }

  .event-files-head-actions{
    width:100% !important;
  }

  .event-files-gallery{
    width:100% !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  /* Visualizador: nunca pode aumentar a largura da página */
  .event-file-viewer{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    max-width:100vw !important;
    height:100dvh !important;
    overflow:hidden !important;
  }
  .event-file-viewer-card{
    width:100% !important;
    max-width:100vw !important;
    min-width:0 !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow:hidden !important;
  }
  .event-file-viewer-head,
  .event-file-viewer-body{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .event-file-viewer-body{
    overflow:hidden !important;
  }
  .event-file-viewer-body img{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:calc(100dvh - 76px) !important;
    margin:auto !important;
    object-fit:contain !important;
  }

  /* Modais */
  .payment-review-overlay{
    width:100vw !important;
    max-width:100vw !important;
    overflow:hidden !important;
  }
  .payment-review-modal,
  .payment-pix-modal,
  .payment-card-modal{
    max-width:calc(100vw - 20px) !important;
    min-width:0 !important;
  }
}

/* Telefones muito estreitos */
@media screen and (max-width:390px){
  .content{
    padding-left:9px !important;
    padding-right:9px !important;
  }
  .top{
    margin-left:-9px !important;
    margin-right:-9px !important;
    padding-left:9px !important;
    padding-right:9px !important;
  }
  .side{
    padding-left:4px !important;
    padding-right:4px !important;
  }
  .side nav{
    gap:1px !important;
  }
  .nav{
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .nav span{
    font-size:7px !important;
  }
  .nav-icon{
    width:25px !important;
    height:25px !important;
    flex-basis:25px !important;
  }
  .event-files-gallery{
    gap:7px !important;
  }
}
