/* Gestor 360 • identidade visual v0.2 • RS Inteligência Digital */
:root{--navy:#092740;--navy2:#0e3552;--text:#102b46;--muted:#72859b;--line:#e1eaf1;--blue:#107dc3;--mint:#13bfa4;--surface:#fff;--page:#f5f9fc}
*{box-sizing:border-box}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--page);color:var(--text)}
.app{min-height:100vh}
.side{width:278px;background:linear-gradient(155deg,#0d354f 0%,#0a2945 45%,#08223a 100%);display:flex;flex-direction:column;position:sticky;top:0;align-self:flex-start;height:100vh;min-height:0;overflow-y:auto;padding:20px 16px 18px;box-shadow:4px 0 18px #0a30500a}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.brand-product{width:calc(100% + 10px);height:91px;position:relative;flex:none;overflow:hidden;margin:0 -5px 29px;border:0}
.brand-product img{position:absolute;width:100%;height:auto;left:0;top:50%;transform:translateY(-50%);object-fit:contain;display:block}
/* Recolorir apenas as letras de Gestor, sem modificar o arquivo original.
   A camada branca preserva a forma; duas máscaras restituem as áreas de gradiente. */
.brand-product .brand-white{filter:brightness(0) invert(1)}
.brand-product .brand-color-icon{clip-path:inset(0 75.5% 0 0)}
.brand-product .brand-color-360{clip-path:inset(0 0 0 69%)}
.nav{display:grid;gap:9px}
.nav button{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;color:#c8d6e4;font-size:14px;font-weight:550;transition:background .18s ease,color .18s ease}
.nav button:hover{background:#194665;color:#fff}
.nav button.active{background:linear-gradient(95deg,#1169b5,#174c7d);color:white;box-shadow:0 6px 15px #061b3026}
.navicon{width:22px;display:inline-flex;justify-content:center;align-items:center;font-size:20px;flex:none}
.foot{margin-top:auto;padding:24px 0 5px;border-top:1px solid #54788a90;text-align:center;color:#b9cbd8}
.footer-caption{font-size:11px;margin-bottom:8px;letter-spacing:.2px}
.footer-brand{width:152px;height:70px;overflow:hidden;position:relative;margin:0 auto}
.footer-brand img{position:absolute;display:block;width:155px;height:155px;max-width:none;top:-43px;left:-1px;mix-blend-mode:lighten}
.main{min-width:0;background:var(--page)}
.top{height:74px;border-bottom:1px solid #e9eef3;background:#fff;padding:0 34px;gap:12px}
#breadcrumb{font-size:13px;color:#617990;font-weight:550}
.pill{background:#e8f8f2;color:#09856d;font-size:11px;letter-spacing:.15px}
.top>.pill{display:none}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:17px;height:100%}
.header-period{background:#fff;color:#2c4d68;border:1px solid #dbe6ee;border-radius:10px;padding:11px 15px;font-size:12px;font-weight:600;max-width:180px;cursor:pointer}
.profile-menu{position:relative;border-left:1px solid #e4edf2;padding-left:16px}
.profile-trigger{display:flex;gap:10px;align-items:center;border:0;background:transparent;color:#193a54;padding:7px;border-radius:10px;cursor:pointer}
.profile-trigger:hover{background:#f4f8fb}
.avatar{width:38px;height:38px;flex:none;border-radius:50%;display:grid;place-items:center;color:white;background:linear-gradient(125deg,#117bd2,#16bea3);font-size:17px;font-weight:700}
.profile-name{text-align:left;display:grid;gap:2px;min-width:78px}
.profile-name strong{font-size:13px}
.profile-name small{font-size:11px;color:#8a9bad}
.chevron{color:#7a94a6;font-size:19px;margin-left:8px}
.profile-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:900;background:white;width:258px;padding:18px;box-shadow:0 15px 55px #132f4a25;border:1px solid #dce8ef;border-radius:13px;display:flex;flex-direction:column;gap:8px}
.profile-popover[hidden]{display:none}
.profile-account{color:#183952}
.profile-email{color:#8194a5;overflow-wrap:anywhere}
.profile-config{background:#f5f9fc;border:0;padding:12px;border-radius:8px;text-align:left;color:#284b64;cursor:pointer;margin-top:10px}
.profile-popover .profile-logout{margin:0!important;width:100%;text-align:left;padding:11px 12px;border:1px solid #e0eaf0;font-size:12px}
.content{width:100%;max-width:none;margin:0;padding:32px clamp(25px,3vw,55px) 60px}
h1{font-size:31px;letter-spacing:-.85px;line-height:1.24;font-weight:780;margin:4px 0 10px}
.sub{font-size:14px;color:#7c8fa2;margin-bottom:27px}
.eyebrow{color:var(--mint);font-size:10px;letter-spacing:2px}
.grid{gap:16px}
.card{border:1px solid var(--line);box-shadow:0 5px 20px #11395707;border-radius:14px;padding:23px;background:var(--surface)}
.grid>.card{min-height:166px;position:relative;overflow:hidden;padding:23px 18px;border-radius:14px}
.grid>.card:before{display:none}
.kpi-icon{position:absolute;left:18px;top:25px;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#e5f3ff;color:#0c7fd1}
.kpi-icon svg{width:30px;height:30px}
.kpi-icon-1{background:#e0faf2;color:#0aa982}
.kpi-icon-2{background:#f0ebff;color:#8453e3}
.kpi-icon-3{background:#fff1e7;color:#ef9236}
.grid>.card>.muted,.grid>.card>.metric,.grid>.card>.green{margin-left:65px}
.grid>.card>.green{margin-left:0;margin-top:12px;white-space:normal}
.muted{color:var(--muted)}
.grid>.card .muted{font-size:12px;font-weight:550;max-width:calc(100% - 65px);min-height:34px;line-height:17px}
.metric{font-size:43px;letter-spacing:-1.7px;margin:4px 0 8px;line-height:1.1}
.green{color:#0bad87;font-weight:650;font-size:11px}
.two{gap:16px;margin-top:18px}
.title{color:#112e49;font-size:16px;letter-spacing:-.25px}
.barrow{margin:13px 0}
.track{height:10px;background:#edf3f7}
.fill{background:linear-gradient(90deg,#1d88d1,#1bcba6);border-radius:10px}
.btn{background:linear-gradient(110deg,#097fbb,#14b9a0);border-radius:9px;box-shadow:0 4px 10px #118fa01c}
.btn:hover{filter:brightness(.96)}
.btn.secondary{color:#20506d;border-color:#d8e6ef;box-shadow:none}
.field{border-color:#d7e4ed;border-radius:9px;outline-color:#1d9eb4}
.toolbar{gap:14px}
table{width:100%;border-collapse:collapse}
th{background:#f7fafc;font-weight:700;color:#768da1}
td,th{padding:15px 16px}
tbody tr:hover{background:#f8fbfd}
.tag{font-weight:650}
.notice{border-color:#d7e9f0;background:#eef7fc;color:#315d77}
.preview{background:#f7fafc;border:1px solid #e5edf1}
.modal{z-index:1001;backdrop-filter:blur(3px)}
.modal .card{box-shadow:0 24px 65px #061c3045}
/* Os campos adicionados dinamicamente pelo Gmail e as campanhas seguem o mesmo tema. */
#messages>.card,#settings .card{border-radius:14px}
#gmailConnectionStatus,#gmailSendStatus{line-height:1.5}
.monthly-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));height:355px;align-items:end;gap:14px;padding:18px 8px 0;border-bottom:1px solid #e3eaf0;background:repeating-linear-gradient(to top,transparent 0,transparent 66px,#edf2f6 67px,#edf2f6 68px)}
.monthly-col{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:0;font-size:11px;color:#7d8ea2}
.monthly-col span{padding:0 0 5px}
.monthly-value{height:15px;color:#32637f;font-weight:700;font-size:11px}
.monthly-bar-wrap{height:270px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.monthly-bar{width:min(100%,41px);min-height:2px;background:linear-gradient(180deg,#22c9ba,#118fc7);border-radius:5px 5px 0 0;transition:height .3s ease}
.sector-layout{display:flex;align-items:center;justify-content:center;gap:21px;min-height:355px}
.sector-donut{width:min(240px,46%);aspect-ratio:1;position:relative;flex:none;border-radius:50%;display:grid;place-items:center}
.sector-center{width:62%;height:62%;border-radius:50%;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}
.sector-center b{font-size:25px;line-height:1.1}
.sector-center span{color:#71869b;font-size:11px}
.sector-legend{flex:1;min-width:0;display:grid;gap:13px}
.sector-legend>div{display:flex;align-items:center;gap:8px;font-size:12px}
.sector-dot{width:10px;height:10px;border-radius:50%;flex:none}
.sector-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.sector-legend b{color:#23435e}
.action-entry{padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf2f5}
.action-entry:last-child{border-bottom:0}
.action-entry strong{display:block;color:#19354e;font-weight:650}
.action-entry small{display:block;color:#8092a4;margin-top:4px;font-size:11px}
.empty-sector{display:grid;place-items:center;min-height:355px;gap:14px;align-content:center;color:#788ba0;text-align:center}
.empty-sector:before{content:'';display:block;width:160px;height:160px;border-radius:50%;border:27px solid #e5f0f6;border-left-color:#cee7e7;border-top-color:#d1e8f4;box-shadow:0 1px 7px #082d3c07}
.recent-table{width:100%;border-collapse:collapse}
.recent-table th,.recent-table td{padding:14px 15px;text-align:left}
.recent-table th{font-size:11px;letter-spacing:.35px}
.status-chip{display:inline-block;border-radius:20px;padding:6px 11px;font-size:11px;font-weight:700;background:#e2f6ef;color:#128968}
.status-chip.pending{background:#fff2df;color:#b27e21}
.login-card{box-shadow:0 22px 65px #103b5c24!important;border:1px solid #deebf2!important;border-radius:20px!important}
.login-brand{display:block;width:100%;height:auto;margin:-18px auto -12px}
#gc-login button{background:linear-gradient(100deg,#0c87c1,#16bda1)!important}
#gc-login input:focus{outline:2px solid #1ba5ba;outline-offset:1px}
@media(max-width:1100px){.side{width:240px}.content{padding:26px 23px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-product{height:80px}.top{padding:0 22px}}
@media(max-width:760px){.app{display:block}.side{width:auto;height:auto;position:relative;top:auto;overflow:visible;min-height:0;padding:12px 15px}.brand-product{height:62px;width:242px;margin:0 auto 8px}.nav{display:flex;overflow:auto;gap:7px;padding-bottom:3px}.nav button{white-space:nowrap;font-size:12px;padding:10px 12px}.navicon{font-size:16px;width:16px}.foot{display:none}.top{height:57px}.content{padding:21px 15px 40px}.two{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid>.card{min-height:125px;padding:16px}.grid>.card:before{display:none}.metric{font-size:32px}h1{font-size:26px}.card{padding:17px}.modal{padding:12px}}
@media(max-width:760px){.monthly-chart{gap:4px;height:220px}.monthly-bar-wrap{height:150px}.monthly-col{font-size:9px}.sector-layout{gap:12px}.action-entry{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.empty-sector{min-height:190px}.empty-sector:before{width:100px;height:100px;border-width:18px}.recent-table{min-width:600px}}
@media(max-width:1100px){.kpi-icon{width:48px;height:48px;left:16px;top:24px}.kpi-icon svg{width:27px;height:27px}.grid>.card>.muted,.grid>.card>.metric{margin-left:60px}}
@media(max-width:760px){.header-period{max-width:144px;padding:9px 7px}.header-actions{gap:5px}.profile-menu{padding-left:5px}.profile-name,.chevron{display:none}.avatar{width:33px;height:33px}.top{padding:0 14px}.grid>.card{padding:14px;min-height:130px}.kpi-icon{position:static;width:39px;height:39px;margin-bottom:8px}.kpi-icon svg{width:23px;height:23px}.grid>.card>.muted,.grid>.card>.metric,.grid>.card>.green{margin-left:0}.grid>.card .muted{max-width:none}.metric{font-size:31px;margin:7px 0}}
@media(max-width:400px){.grid{grid-template-columns:1fr 1fr}.grid>.card .muted{font-size:11px}.green{font-size:11px}.nav button{padding:9px 10px}}
