:root{--green-950:#053629;--green-900:#07513b;--green-800:#0a6548;--green-700:#0f7a56;--green-600:#159a6b;--green-100:#dff6eb;--green-50:#f0fbf5;--gold:#d8b35b;--bg:#f4f7f5;--surface:#fff;--surface-2:#f8fbf9;--text:#1d2b26;--muted:#6b7b73;--line:#dce6e1;--danger:#b42318;--warning:#b54708;--shadow:0 10px 30px rgba(6,72,50,.08);--sidebar:282px}
html[data-theme=dark]{--bg:#0d1713;--surface:#14211b;--surface-2:#192820;--text:#edf6f1;--muted:#9eb1a7;--line:#294138;--green-100:#183c2d;--green-50:#112a20;--shadow:0 10px 30px rgba(0,0,0,.24)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at 100% 0,rgba(29,178,125,.08),transparent 28rem),var(--bg)}a{color:inherit}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:var(--sidebar) 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow:auto;padding:22px 16px;color:#fff;background:linear-gradient(180deg,var(--green-950),var(--green-900));z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 20px;border-bottom:1px solid rgba(255,255,255,.12);text-decoration:none}.brand-logo{display:grid;place-items:center;width:54px;height:54px;overflow:hidden;border-radius:15px;background:#fff;flex:0 0 auto}.brand-logo img{width:90%;height:90%;object-fit:contain}.brand-copy strong,.brand-copy small{display:block}.brand-copy strong{letter-spacing:.07em}.brand-copy small{margin-top:3px;color:rgba(255,255,255,.7);font-size:10px;line-height:1.4}.profile-badge{margin:18px 8px 10px;padding:11px 12px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.08)}.profile-badge strong,.profile-badge span{display:block}.profile-badge strong{font-size:10px;text-transform:uppercase;letter-spacing:.08em}.profile-badge span{margin-top:3px;color:rgba(255,255,255,.66);font-size:9px}.nav-label{margin:18px 12px 8px;color:rgba(255,255,255,.43);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.14em}.nav{display:grid;gap:6px}.nav-main{margin-top:18px}.nav-link{position:relative;display:flex;align-items:center;gap:11px;min-height:45px;padding:0 12px;border-radius:12px;color:rgba(255,255,255,.76);text-decoration:none;font-size:12px;font-weight:720;transition:.18s}.nav-link:hover,.nav-link.active{color:#fff;background:rgba(255,255,255,.12);transform:translateX(2px)}.nav-link.active:before{content:"";position:absolute;left:0;width:4px;height:21px;border-radius:99px;background:var(--gold)}.sidebar-footer{margin-top:auto;padding:17px 10px 2px;border-top:1px solid rgba(255,255,255,.1)}.sidebar-footer strong,.sidebar-footer span{display:block}.sidebar-user strong{font-size:11px}.sidebar-user span{margin-top:3px;color:rgba(255,255,255,.6);font-size:9px}.system-version{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:13px;padding-top:11px;border-top:1px dashed rgba(255,255,255,.1)}.system-version span{margin:0;color:rgba(255,255,255,.42);font-size:8px;line-height:1.3}.system-version strong{flex:0 0 auto;color:rgba(255,255,255,.78);font-size:9px;letter-spacing:.04em}.main{min-width:0}.topbar{position:sticky;top:0;z-index:15;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px clamp(18px,3vw,42px);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(16px)}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:11px}.topbar h1{margin:0;font-size:clamp(19px,2vw,24px)}.topbar p{margin:4px 0 0;color:var(--muted);font-size:11px}.icon-button{display:grid;place-items:center;width:41px;height:41px;border:1px solid var(--line);border-radius:11px;color:var(--text);background:var(--surface);cursor:pointer}.mobile-menu{display:none}.user-chip{display:flex;align-items:center;gap:9px;padding:6px 9px;border:1px solid var(--line);border-radius:13px;color:var(--text);background:var(--surface);cursor:pointer}.user-chip .avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--green-800);background:var(--green-100);font-weight:850}.user-chip strong,.user-chip small{display:block;text-align:left}.user-chip strong{font-size:10px}.user-chip small{margin-top:2px;color:var(--muted);font-size:8px}.content{width:min(1500px,100%);margin:auto;padding:28px clamp(18px,3vw,42px) 60px}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}.page-intro h2{margin:0;font-size:21px}.page-intro p{max-width:800px;margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:0 15px;border:1px solid transparent;border-radius:10px;text-decoration:none;font-size:10px;font-weight:850;cursor:pointer}.btn-primary{color:#fff;background:linear-gradient(180deg,var(--green-700),var(--green-900));box-shadow:0 8px 18px rgba(11,107,75,.18)}.btn-secondary{color:var(--green-800);border-color:var(--line);background:var(--surface)}.btn-block{width:100%}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.kpi-grid.five{grid-template-columns:repeat(5,1fr)}.kpi{position:relative;min-height:136px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.kpi:after{content:"";position:absolute;right:-25px;top:-28px;width:94px;height:94px;border-radius:50%;background:var(--green-50)}.kpi span,.kpi strong,.kpi small{position:relative;z-index:1;display:block}.kpi span{color:var(--muted);font-size:10px;font-weight:780}.kpi strong{margin-top:13px;font-size:29px;line-height:1}.kpi small{margin-top:13px;color:var(--green-700);font-size:9px;font-weight:750}.dashboard-grid{display:grid;grid-template-columns:1.45fr .95fr;gap:18px}.panel{border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line)}.panel-header h3{margin:0;font-size:14px}.panel-header p{margin:4px 0 0;color:var(--muted);font-size:9px}.text-link{color:var(--green-700);font-size:10px;font-weight:850;text-decoration:none}.chart-bars{display:flex;align-items:flex-end;justify-content:space-around;gap:12px;height:285px;padding:28px 24px 19px}.bar-item{height:100%;min-width:38px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;color:var(--muted);font-size:9px}.bar-track{height:210px;width:30px;display:flex;align-items:flex-end;border-radius:8px;background:var(--surface-2);overflow:hidden}.bar{width:100%;min-height:3px;border-radius:8px;background:linear-gradient(180deg,var(--green-600),var(--green-800))}.bar-value{color:var(--text);font-weight:800}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:13px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:10px;white-space:nowrap}th{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.05em}tbody tr:hover{background:var(--surface-2)}.tag{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:850}.tag.success{color:var(--green-800);background:var(--green-50)}.tag.warning{color:var(--warning);background:#fff5df}.toolbar{display:flex;align-items:center;gap:9px;padding:15px 18px;border-bottom:1px solid var(--line);background:var(--surface-2)}.toolbar input{flex:1}.toolbar input,.toolbar select,input,select,textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;outline:none;color:var(--text);background:var(--surface)}input:focus,select:focus,textarea:focus{border-color:var(--green-600);box-shadow:0 0 0 4px rgba(21,154,107,.1)}select[data-colored-select]{font-weight:800}.form-panel{overflow:visible}.form-section{padding:22px 24px}.form-section+.form-section{border-top:1px dashed var(--line)}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px}.section-icon,.module-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:var(--green-800);background:var(--green-100);font-weight:850}.section-heading h3{margin:0;font-size:14px}.section-heading p{margin:3px 0 0;color:var(--muted);font-size:9px}.form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:15px}#id_profissional{width:100%}.field{min-width:0}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-8{grid-column:span 8}.span-12{grid-column:span 12}.field label{display:flex;gap:4px;margin-bottom:6px;color:var(--text);font-size:10px;font-weight:800}.required,.field-error{color:var(--danger)}.field-error,.help-text{display:block;margin-top:4px;font-size:8px}.input-wrap{position:relative}.input-wrap input,.input-wrap select,.input-wrap textarea,.simple-form input,.simple-form select,.simple-form textarea{width:100%}.suffix{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:9px}.input-wrap:has(.suffix) input{padding-right:42px}.form-note{margin-top:17px;padding:12px 14px;border:1px solid #f2dfb7;border-radius:11px;color:#6e430f;background:#fff9ed;font-size:10px}.form-footer{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(12px)}.form-footer>div{display:flex;gap:8px}.form-global-error{margin:18px;padding:12px;border-radius:10px;color:var(--danger);background:#fff0ef}.detail-panel{padding:0 24px}.detail-section{padding:22px 0}.detail-section+.detail-section{border-top:1px dashed var(--line)}.detail-section h3{margin:0 0 16px;font-size:14px}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.detail-grid span,.detail-grid strong{display:block}.detail-grid span{color:var(--muted);font-size:9px;text-transform:uppercase}.detail-grid strong{margin-top:5px;font-size:11px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.module-card{min-height:205px;display:flex;flex-direction:column;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.module-card h3{margin:15px 0 0;font-size:13px}.module-card p{color:var(--muted);font-size:10px;line-height:1.55}.module-card .btn{margin-top:auto}.module-stats{display:flex;gap:7px;margin:8px 0}.module-stats span{padding:5px 7px;border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:8px}.audit-list{padding:8px 20px}.audit-item{display:flex;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.audit-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--green-800);background:var(--green-100)}.audit-item strong,.audit-item small{display:block}.audit-item strong{font-size:10px}.audit-item small{margin-top:3px;color:var(--muted);font-size:8px}.simple-form{max-width:760px;padding:22px}.simple-form .field{margin-bottom:15px}.simple-form .form-footer{position:static;margin:20px -22px -22px}.empty-module{display:grid;place-items:center;min-height:420px;padding:40px;text-align:center;border:1px dashed var(--line);border-radius:18px;background:var(--surface)}.empty-module>span{font-size:45px;color:var(--green-600)}.empty-module h2{margin:10px 0 0}.empty-module p{max-width:650px;color:var(--muted);font-size:11px}.messages{display:grid;gap:8px;margin-bottom:15px}.message{padding:11px 13px;border-radius:10px;color:var(--green-800);background:var(--green-50);font-size:10px}.message.error{color:var(--danger);background:#fff0ef}.overlay{display:none}.login-body{display:grid;place-items:center;min-height:100vh;padding:24px}.login-card{width:min(960px,100%);min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border-radius:24px;background:var(--surface);box-shadow:0 28px 80px rgba(5,54,41,.18)}.login-brand{display:flex;flex-direction:column;justify-content:center;padding:54px;color:#fff;background:linear-gradient(145deg,var(--green-950),var(--green-700))}.login-brand img{width:105px;height:105px;object-fit:contain;padding:5px;border-radius:25px;background:#fff}.login-brand .eyebrow{margin-top:24px;color:#dff6eb;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.1em}.login-brand h1{margin:10px 0 0;font-size:34px;line-height:1.12}.login-brand p{max-width:450px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.6}.login-form-wrap{display:flex;flex-direction:column;justify-content:center;padding:54px}.login-form-wrap h2{margin:0;font-size:24px}.login-form-wrap>p{margin:6px 0 25px;color:var(--muted);font-size:11px}.login-form-wrap .field input{width:100%}.login-input{width:100%}.form-stack{display:grid;gap:16px}.security-note{display:block;margin-top:20px;color:var(--muted);font-size:9px;line-height:1.5}.empty-state{padding:20px;color:var(--muted);font-size:10px}
@media(max-width:1220px){.kpi-grid.five{grid-template-columns:repeat(3,1fr)}.module-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;width:min(86vw,310px);transform:translateX(-105%);transition:.24s}.sidebar.open{transform:translateX(0)}.overlay{position:fixed;inset:0;z-index:19;background:rgba(3,33,23,.48)}.overlay.show{display:block}.mobile-menu{display:grid}.dashboard-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.user-chip>span:last-child{display:none}.page-intro{align-items:stretch;flex-direction:column}.form-grid{grid-template-columns:1fr}.span-2,.span-3,.span-4,.span-5,.span-6,.span-8,.span-12{grid-column:auto}.form-footer{align-items:stretch;flex-direction:column}.form-footer>div{display:grid;grid-template-columns:1fr 1fr}.module-grid,.kpi-grid,.kpi-grid.five{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.detail-grid{grid-template-columns:1fr}.login-card{grid-template-columns:1fr}.login-brand{display:none}.login-form-wrap{padding:38px 26px}}
.report-filter{margin-bottom:18px;padding:18px}.report-filter-grid{display:grid;grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) auto auto;align-items:end;gap:12px}.report-filter .btn{min-width:125px}.report-grid .module-card{min-height:230px}.report-grid .module-card .btn{width:100%}@media(max-width:760px){.report-filter-grid{grid-template-columns:1fr}.report-filter .btn{width:100%}}
.future-status{font-size:21px!important}.future-module-panel{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:22px;padding:27px}.future-module-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:22px;color:var(--green-800);background:var(--green-100);font-size:34px;font-weight:900}.future-module-panel h3{margin:9px 0 0;font-size:18px}.future-module-panel p{max-width:850px;margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.65}.future-badge{display:inline-flex;padding:6px 9px;border-radius:999px;color:#7a5312;background:#fff6df;font-size:8px;font-weight:900;letter-spacing:.06em}.future-actions{display:flex;gap:9px;margin-top:18px}@media(max-width:760px){.future-module-panel{grid-template-columns:1fr}.future-module-icon{width:62px;height:62px}.future-actions{flex-direction:column}}


/* Direção da maternidade e relatórios gerenciais */
.kpi-grid.director-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.management-wide{grid-column:1/-1}
.director-monthly{height:300px;overflow-x:auto;justify-content:flex-start}
.director-monthly .bar-item{flex:1;min-width:54px}
.horizontal-chart{display:grid;gap:14px;padding:18px 20px 22px}
.hbar-row{display:grid;gap:6px}
.hbar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px}
.hbar-heading span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-weight:760}
.hbar-heading strong{flex:0 0 auto;color:var(--green-700);font-size:10px}
.hbar-heading small{color:var(--muted);font-size:8px;font-weight:650}
.hbar-track{height:9px;overflow:hidden;border-radius:99px;background:var(--surface-2)}
.hbar-track span{display:block;min-width:3px;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--green-600),var(--green-800))}
.manager-filter{margin-bottom:18px;padding:20px}
.manager-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:14px}
.manager-filter-actions{display:flex;gap:8px;align-items:end}
.manager-filter-actions .btn{flex:1}
.filter-summary{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:18px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.filter-summary strong{font-size:9px;text-transform:uppercase;color:var(--green-800)}
.filter-summary span{padding:5px 8px;border-radius:999px;color:var(--muted);background:var(--surface-2);font-size:8px}
.report-preview{margin-top:18px}
.report-kpis{margin-top:2px}
.director-report-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
.director-report-cards .module-card{min-height:255px}
@media(max-width:1350px){.director-report-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.kpi-grid.director-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.management-grid{grid-template-columns:1fr}.management-wide{grid-column:auto}.manager-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.kpi-grid.director-kpis,.manager-filter-grid,.director-report-cards{grid-template-columns:1fr}.manager-filter-actions{flex-direction:column}.manager-filter-actions .btn{width:100%}.director-monthly{height:270px}}

.kpi-grid.admin-six{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:1300px){.kpi-grid.admin-six{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.kpi-grid.admin-six{grid-template-columns:1fr}}


/* Mapa territorial de Roraima */
.territorial-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}
.territorial-stat{position:relative;padding:17px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.territorial-stat:after{content:"";position:absolute;right:-24px;top:-30px;width:88px;height:88px;border-radius:50%;background:var(--green-50)}
.territorial-stat span,.territorial-stat strong,.territorial-stat small{position:relative;z-index:1;display:block}
.territorial-stat span{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.territorial-stat strong{margin-top:8px;color:var(--green-800);font-size:27px}
.territorial-stat small{margin-top:6px;color:var(--muted);font-size:8px}
.territorial-panel{overflow:visible}
.territorial-toolbar{display:grid;grid-template-columns:1.2fr .75fr .9fr .8fr auto;align-items:end;gap:12px;padding:17px 18px;border-bottom:1px solid var(--line);background:var(--surface-2);border-radius:17px 17px 0 0}
.territorial-toolbar .field label{margin-bottom:5px}
.territorial-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:650px}
.territorial-map-wrap{position:relative;min-width:0;min-height:650px;border-right:1px solid var(--line);background:#e7eee9}
.territorial-map{position:absolute;inset:0;z-index:1}
.territorial-map-loading{position:absolute;inset:0;z-index:4;display:grid;place-items:center;padding:30px;color:var(--green-800);background:var(--surface);font-size:11px;font-weight:800;text-align:center}
.territorial-map-loading.error{color:var(--danger)}
.territorial-legend{position:absolute;left:13px;bottom:23px;z-index:500;display:grid;gap:7px;min-width:145px;padding:11px 12px;border:1px solid rgba(5,54,41,.14);border-radius:12px;background:rgba(255,255,255,.93);box-shadow:0 8px 22px rgba(0,0,0,.13);backdrop-filter:blur(8px)}
.territorial-legend strong{color:#173229;font-size:9px;text-transform:uppercase;letter-spacing:.06em}
.territorial-legend span{display:flex;align-items:center;gap:7px;color:#52665d;font-size:9px}
.legend-dot{display:inline-block;width:10px;height:10px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.legend-dot.municipality{background:#0a6548}.legend-dot.neighborhood{background:#2563eb}.legend-dot.community{background:#d97706}
.territorial-list-panel{display:flex;min-width:0;flex-direction:column;background:var(--surface)}
.territorial-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px;border-bottom:1px solid var(--line)}
.territorial-list-heading strong,.territorial-list-heading span{display:block}
.territorial-list-heading strong{font-size:11px}.territorial-list-heading span{margin-top:3px;color:var(--muted);font-size:8px}
.territorial-list-heading .btn{min-height:34px;padding:0 10px}
.territorial-list{flex:1;max-height:590px;overflow:auto;padding:7px}
.territorial-list-item{display:grid;width:100%;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 9px;border:0;border-bottom:1px solid var(--line);border-radius:9px;color:var(--text);background:transparent;text-align:left;cursor:pointer}
.territorial-list-item:hover{background:var(--surface-2)}
.territorial-list-item i{width:9px;height:9px;border-radius:50%;background:var(--locality-color)}
.territorial-list-item strong,.territorial-list-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.territorial-list-item strong{font-size:10px}.territorial-list-item small{margin-top:3px;color:var(--muted);font-size:8px}.territorial-list-item b{color:var(--green-700);font-size:18px}
.territorial-empty{padding:32px 15px;color:var(--muted);font-size:10px;text-align:center}
.territorial-note{margin-top:15px;padding:13px 15px;border:1px solid #d8e7df;border-radius:13px;color:var(--muted);background:var(--green-50);font-size:9px;line-height:1.6}
.territorial-note strong{color:var(--green-800)}.territorial-note code{color:var(--text)}
.territorial-popup{min-width:195px}.territorial-popup-type{display:inline-flex;padding:4px 7px;border-radius:999px;color:#07513b;background:#dff6eb;font-size:9px;font-weight:800}.territorial-popup h4{margin:8px 0 10px;color:#173229;font-size:15px}.territorial-popup div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-top:1px solid #edf2ef}.territorial-popup div span{color:#6b7b73;font-size:9px}.territorial-popup div strong{color:#173229;font-size:9px}.territorial-popup small{display:block;margin-top:8px;color:#6b7b73;font-size:8px}
html[data-theme=dark] .territorial-legend{background:rgba(20,33,27,.94)}html[data-theme=dark] .territorial-legend strong{color:#edf6f1}html[data-theme=dark] .territorial-legend span{color:#b2c3bb}
@media(max-width:1180px){.territorial-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.territorial-toolbar .btn{width:100%}.territorial-layout{grid-template-columns:1fr}.territorial-map-wrap{border-right:0;border-bottom:1px solid var(--line)}.territorial-list{max-height:310px}}
@media(max-width:760px){.territorial-summary,.territorial-toolbar{grid-template-columns:1fr}.territorial-map-wrap,.territorial-layout{min-height:540px}.territorial-map-wrap{min-height:540px}.territorial-legend{bottom:15px}.territorial-list-panel{display:none}}


/* Mapa de calor agregado de nascimentos */
.heatmap-intro{align-items:center}.internal-access-badge{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #b9ddcd;border-radius:999px;color:#07513b;background:#e7f6ef;font-size:9px;font-weight:800;white-space:nowrap}
.heatmap-toolbar{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.heatmap-toolbar .btn{width:100%}
.heat-scale{display:inline-block;width:24px;height:8px;border-radius:999px}.heat-scale.low{background:#7ad2a5}.heat-scale.medium{background:#f0c04e}.heat-scale.high{background:#c53a31}
.heatmap-list-item em{display:grid;place-items:center;min-width:31px;height:27px;padding:0 7px;border-radius:999px;color:#07513b;background:#e5f5ed;font-size:10px;font-style:normal;font-weight:900}
.heatmap-popup h4{margin-bottom:8px}.privacy-note{border-color:#cbded5;background:#f0f7f4}.privacy-note strong{color:#07513b}
html[data-theme=dark] .internal-access-badge{border-color:#315b49;color:#cdebdc;background:#17392b}html[data-theme=dark] .heatmap-list-item em{color:#cdebdc;background:#193c2e}
@media(max-width:1180px){.heatmap-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.heatmap-intro{align-items:flex-start}.internal-access-badge{white-space:normal}.heatmap-toolbar{grid-template-columns:1fr}}


/* Identidade neutra do GENESIS — versão 2.8.2 */
.brand-logo{border-radius:50%;background:#f4fff9;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}
.brand-logo img{width:100%;height:100%;object-fit:contain;padding:3px;border-radius:50%}
.brand-copy strong{font-size:14px;letter-spacing:.015em}
.system-copyright{margin-top:10px;color:rgba(255,255,255,.42);font-size:8px;text-align:center;letter-spacing:.03em}
.login-brand img{width:108px;height:108px;padding:3px;border-radius:50%;background:#f4fff9;box-shadow:0 12px 35px rgba(0,0,0,.14)}
.login-copyright{position:fixed;left:0;right:0;bottom:14px;color:var(--muted);font-size:9px;text-align:center}

/* GENESIS 3.0 — módulo operacional de Busca Ativa */
.active-search-intro{align-items:center}.active-search-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.active-search-list-panel{overflow:visible}.active-search-toolbar{display:grid;grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(150px,.8fr)) auto;gap:12px;align-items:end;padding:18px;border-bottom:1px solid var(--line);background:var(--surface-2);border-radius:17px 17px 0 0}.active-search-filter-actions{display:flex;gap:8px}.active-search-filter-actions .btn{min-width:78px}.active-search-table td{vertical-align:middle}.case-person-cell{display:flex;align-items:center;gap:10px}.case-person-cell>span:last-child{min-width:0}.case-person-cell strong,.case-person-cell small{display:block}.case-person-cell small,.table-subtext{margin-top:4px;color:var(--muted);font-size:8px}.case-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--green-800);background:var(--green-100);font-size:14px;font-weight:900;flex:0 0 auto}.days-badge,.case-status,.priority-badge,.timeline-type,.task-type{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;font-size:8px;font-weight:850;white-space:nowrap}.days-badge{color:var(--green-800);background:var(--green-50)}.days-badge.warning{color:#9a5b00;background:#fff2d5}.days-badge.critical{color:#a1281e;background:#ffe8e6}.case-status{color:#315849;background:#edf4f0}.status-aberto,.status-em_acompanhamento{color:#07513b;background:#dff6eb}.status-aguardando_retorno{color:#8a5900;background:#fff2d5}.status-concluido{color:#2457a4;background:#e8f1ff}.status-arquivado{color:#5c6570;background:#eceff2}.status-unopened{color:#6b7b73;background:#edf1ef}.priority-badge{color:#07513b;background:#e7f6ef}.priority-alta{color:#9a5b00;background:#fff1cf}.priority-urgente{color:#a1281e;background:#ffe2df}.btn-compact{min-height:34px;padding:0 11px}.empty-state{display:grid;place-items:center;min-height:150px;padding:30px;color:var(--muted);text-align:center}.empty-state strong{color:var(--text);font-size:12px}.empty-state span{margin-top:7px;font-size:9px}
.case-hero{margin-bottom:16px;padding:0;overflow:visible}.case-protocol-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;border-bottom:1px solid var(--line);background:var(--surface-2);border-radius:17px 17px 0 0}.case-protocol{display:flex;align-items:center;gap:10px;font-size:18px}.case-lock{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;color:var(--green-800);background:var(--surface)}.case-actions{display:flex;gap:8px}.case-hero-grid{display:grid;grid-template-columns:1.25fr 1fr .85fr;gap:0}.case-owner,.case-context,.case-management{padding:24px}.case-owner,.case-context{border-right:1px solid var(--line)}.case-owner{display:flex;align-items:flex-start;gap:18px}.case-owner-avatar{display:grid;place-items:center;width:94px;height:112px;border:1px solid var(--line);border-radius:16px;color:#7a8d84;background:linear-gradient(155deg,var(--surface-2),var(--green-50));font-size:50px}.case-eyebrow{display:block;color:var(--green-700);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.case-owner h2{margin:7px 0 12px;color:var(--green-800);font-size:22px}.case-owner-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;color:var(--muted);font-size:9px}.case-owner-data b{color:var(--text)}.case-context{display:grid;grid-template-columns:1fr 1fr;gap:16px}.case-context div{min-width:0}.case-context span,.case-context strong{display:block}.case-context span{color:var(--muted);font-size:8px;font-weight:780;text-transform:uppercase}.case-context strong{margin-top:5px;font-size:10px;line-height:1.4}.case-management-badges{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 14px}.case-management p{margin:7px 0;color:var(--muted);font-size:9px}.case-management p b{color:var(--text)}.case-config-details{margin-top:14px;border-top:1px dashed var(--line);padding-top:12px}.case-config-details summary{color:var(--green-700);font-size:9px;font-weight:850;cursor:pointer}.case-config-form{display:grid;gap:10px;margin-top:12px}.case-config-form textarea{min-height:72px}
.case-tabs{display:flex;align-items:center;gap:4px;margin-bottom:18px;padding:0 12px;overflow:auto}.case-tabs a{display:flex;align-items:center;gap:7px;min-height:54px;padding:0 15px;border-bottom:3px solid transparent;color:var(--muted);text-decoration:none;font-size:10px;font-weight:800;white-space:nowrap}.case-tabs a:hover,.case-tabs a.active{color:var(--green-800);border-bottom-color:var(--green-700);background:var(--green-50)}.case-tabs a b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;color:var(--green-800);background:var(--green-100);font-size:8px}.case-tab-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}.case-main-column{min-width:0}.case-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.case-section-heading h3{margin:0;font-size:15px}.case-section-heading p{margin:4px 0 0;color:var(--muted);font-size:9px}.case-form-panel{position:sticky;top:96px;padding:18px;overflow:visible}.case-form-title{display:flex;gap:11px;align-items:flex-start;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}.case-form-title>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:var(--green-800);background:var(--green-100);font-size:18px}.case-form-title h3{margin:0;font-size:13px}.case-form-title p{margin:4px 0 0;color:var(--muted);font-size:8px}.case-form{display:grid;gap:12px}.case-form textarea{resize:vertical}
.case-timeline{display:grid;gap:0}.timeline-entry{display:grid;grid-template-columns:90px 28px minmax(0,1fr);gap:0;align-items:stretch}.timeline-date{padding:18px 12px 0 0;text-align:right}.timeline-date strong,.timeline-date span{display:block}.timeline-date strong{display:inline-block;padding:5px 9px;border-radius:999px;color:#fff;background:var(--green-700);font-size:9px}.timeline-date span{margin-top:5px;color:var(--muted);font-size:8px}.timeline-axis{position:relative}.timeline-axis:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);background:var(--line)}.timeline-axis i{position:absolute;left:50%;top:25px;width:11px;height:11px;transform:translateX(-50%);border:3px solid var(--surface);border-radius:50%;background:var(--green-700);box-shadow:0 0 0 1px var(--green-700)}.timeline-card{margin:0 0 18px;padding:18px;overflow:visible}.timeline-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}.timeline-code{color:var(--green-700);font-size:8px;font-weight:850}.timeline-card h3{margin:5px 0 0;font-size:13px}.timeline-type{color:#fff;background:#8b9297}.timeline-details{display:grid;gap:9px;padding:14px 0}.timeline-details p{margin:0;color:var(--muted);font-size:9px;line-height:1.6}.timeline-details b{color:var(--text)}.timeline-footer{padding-top:10px;border-top:1px dashed var(--line);color:var(--muted);font-size:8px}
.document-grid,.task-list{display:grid;gap:12px}.document-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:17px}.document-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;color:var(--green-800);background:var(--green-100);font-size:21px}.document-info{min-width:0}.document-info h3{margin:0;font-size:12px}.document-info p{margin:5px 0;color:var(--muted);font-size:9px;line-height:1.4}.document-info small{display:block;overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.task-card{padding:18px}.task-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.task-card h3{margin:7px 0 0;font-size:13px}.task-type{color:var(--green-800);background:var(--green-100)}.task-card>p{margin:14px 0;color:var(--muted);font-size:9px;line-height:1.55}.task-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;padding:12px;border-radius:11px;background:var(--surface-2);color:var(--muted);font-size:8px}.task-meta b{color:var(--text)}.task-status-form{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.task-status-form select{max-width:180px;min-height:36px}.task-status-form .btn{min-height:36px}.task-status-pendente{color:#8a5900;background:#fff2d5}.task-status-em_andamento{color:#07513b;background:#dff6eb}.task-status-concluida{color:#2457a4;background:#e8f1ff}.task-status-cancelada{color:#6b7b73;background:#eceff2}
.case-activity-section{max-width:1000px}.activity-feed{padding:8px 20px}.activity-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.activity-item:last-child{border-bottom:0}.activity-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;color:var(--green-800);background:var(--green-100);font-size:16px}.activity-time{color:var(--green-700);font-size:8px;font-weight:800}.activity-item h3{margin:5px 0 6px;font-size:12px}.activity-item p{margin:0;color:var(--muted);font-size:9px;line-height:1.5}.activity-item small{display:block;margin-top:7px;color:var(--muted);font-size:8px}
@media(max-width:1250px){.active-search-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.active-search-query{grid-column:1/-1}.active-search-filter-actions{grid-column:1/-1}.case-hero-grid{grid-template-columns:1fr 1fr}.case-management{grid-column:1/-1;border-top:1px solid var(--line)}.case-context{border-right:0}.case-tab-layout{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:900px){.active-search-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.case-hero-grid,.case-tab-layout{grid-template-columns:1fr}.case-owner,.case-context{border-right:0;border-bottom:1px solid var(--line)}.case-form-panel{position:static}.case-context{grid-template-columns:1fr}.case-owner-data,.task-meta{grid-template-columns:1fr}.timeline-entry{grid-template-columns:72px 24px minmax(0,1fr)}}
@media(max-width:650px){.active-search-kpis,.active-search-toolbar{grid-template-columns:1fr}.active-search-query,.active-search-filter-actions{grid-column:auto}.active-search-filter-actions{flex-direction:column}.case-protocol-row,.case-actions{align-items:stretch;flex-direction:column}.case-owner{flex-direction:column}.case-owner-avatar{width:72px;height:82px}.case-tabs{padding:0}.timeline-entry{grid-template-columns:1fr}.timeline-date{text-align:left;padding:0 0 8px}.timeline-axis{display:none}.document-card{grid-template-columns:42px minmax(0,1fr)}.document-card .btn{grid-column:1/-1}.case-form-panel{padding:15px}}


/* GENESIS 3.1 — acesso específico da Busca Ativa, agenda e fotos de perfil */
.profile-chip{color:inherit;text-decoration:none}.avatar-photo{display:block;object-fit:cover}.logout-button{font-size:18px}.profile-page-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:22px;align-items:start}.profile-preview-card{text-align:center;padding:34px}.profile-preview-photo,.profile-preview-initials{width:150px;height:150px;margin:0 auto 20px;border-radius:50%;object-fit:cover;border:5px solid var(--green-100);box-shadow:0 16px 40px rgba(5,102,75,.16)}.profile-preview-initials{display:grid;place-items:center;color:var(--green-800);background:var(--green-100);font-size:48px;font-weight:900}.profile-preview-card h2{margin:0;font-size:22px}.profile-preview-card p{margin:8px 0;color:var(--green-700);font-weight:800}.profile-preview-card small{color:var(--muted)}
.active-agenda-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.agenda-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:20px;align-items:start}.calendar-panel{padding:0;overflow:hidden}.calendar-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,var(--green-50),var(--surface))}.calendar-header h3{margin:0;font-size:18px;text-transform:capitalize}.calendar-header span{display:block;margin-top:4px;color:var(--muted);font-size:9px}.calendar-nav{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;color:var(--green-800);background:var(--surface);text-decoration:none;font-size:25px}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{border-bottom:1px solid var(--line);background:var(--surface-2)}.calendar-weekdays span{padding:10px;text-align:center;color:var(--muted);font-size:8px;font-weight:850;text-transform:uppercase}.calendar-day{min-height:122px;padding:9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface)}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:var(--surface-2);opacity:.44}.calendar-day.past{opacity:.62}.calendar-day.today{background:linear-gradient(145deg,var(--green-50),var(--surface));box-shadow:inset 0 0 0 2px var(--green-500)}.calendar-day-number{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.calendar-day-number span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:9px;font-weight:850}.calendar-day.today .calendar-day-number span{color:white;background:var(--green-700)}.calendar-day-number b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;color:var(--green-800);background:var(--green-100);font-size:7px}.calendar-events{display:grid;gap:4px}.calendar-event{display:block;padding:6px 7px;border-left:3px solid var(--green-600);border-radius:7px;color:var(--text);background:var(--green-50);text-decoration:none;overflow:hidden}.calendar-event small,.calendar-event strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event small{color:var(--green-700);font-size:7px;font-weight:800}.calendar-event strong{margin-top:2px;font-size:7.5px}.calendar-event.event-tarefa{border-left-color:#4d7cfe;background:#edf2ff}.calendar-event.event-cooperacao{border-left-color:#d18a00;background:#fff5d9}.calendar-event.priority-urgente{box-shadow:inset 0 0 0 1px rgba(198,48,39,.24)}.calendar-more{font-size:7px;color:var(--muted)}.calendar-legend{display:flex;gap:18px;padding:13px 18px;color:var(--muted);font-size:8px}.calendar-legend span{display:flex;align-items:center;gap:6px}.calendar-legend i{width:9px;height:9px;border-radius:3px;background:var(--green-600)}.calendar-legend .legend-task{background:#4d7cfe}.calendar-legend .legend-cooperation{background:#d18a00}.upcoming-panel{padding:18px}.upcoming-list{display:grid;gap:9px}.upcoming-item{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;padding:11px;border:1px solid var(--line);border-radius:13px;color:inherit;text-decoration:none;background:var(--surface-2)}.upcoming-item:hover{border-color:var(--green-400);background:var(--green-50)}.upcoming-item time{display:grid;place-items:center;padding:5px;border-radius:10px;color:var(--green-800);background:var(--green-100)}.upcoming-item time strong{font-size:17px}.upcoming-item time span{font-size:7px;text-transform:uppercase}.upcoming-type{color:var(--green-700);font-size:7px;font-weight:850}.upcoming-item h4{margin:3px 0;font-size:10px}.upcoming-item p{margin:0;color:var(--muted);font-size:7.5px;line-height:1.35}.agenda-modal{position:fixed;inset:0;z-index:1000;display:none;place-items:center;padding:20px}.agenda-modal.active{display:grid}.agenda-modal-backdrop{position:absolute;inset:0;background:rgba(3,14,10,.62);backdrop-filter:blur(6px)}.agenda-modal-card{position:relative;width:min(680px,96vw);max-height:92vh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 30px 90px rgba(0,0,0,.32)}.agenda-modal-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid var(--line)}.agenda-modal-card h3{margin:6px 0 0;font-size:18px}.today-modal-card{width:min(620px,96vw)}.today-agenda-date{padding:12px 14px;border-radius:12px;color:var(--green-800);background:var(--green-50);font-size:10px;font-weight:800;text-transform:capitalize}.today-agenda-list{display:grid;gap:10px;margin:16px 0}.today-agenda-item{display:grid;grid-template-columns:70px minmax(0,1fr);gap:13px;padding:14px;border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none}.today-agenda-time{display:grid;place-items:center;border-radius:10px;color:white;background:var(--green-700);font-size:10px;font-weight:850}.today-agenda-item strong{font-size:11px}.today-agenda-item p{margin:5px 0 0;color:var(--muted);font-size:8px}.today-agenda-empty{display:grid;place-items:center;min-height:140px;text-align:center;color:var(--muted)}.today-agenda-empty strong{color:var(--text);font-size:12px}.today-agenda-empty span{margin-top:7px;font-size:9px}.today-modal-card>footer{display:flex;justify-content:flex-end;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:1200px){.agenda-layout{grid-template-columns:1fr}.upcoming-panel{position:static}.active-agenda-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.profile-page-grid{grid-template-columns:1fr}.calendar-panel{overflow:auto}.calendar-weekdays,.calendar-grid{min-width:840px}.active-agenda-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:580px){.active-agenda-kpis{grid-template-columns:1fr}.profile-chip>span:last-child{display:none}}

/* GENESIS 3.1.1 — correção do painel e calendário da Busca Ativa */
.active-agenda-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%;
  margin:0 0 22px!important;
}
.active-agenda-kpis .agenda-kpi-card{
  display:flex;
  min-width:0;
  min-height:142px;
  flex-direction:column;
  justify-content:space-between;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(145deg,var(--surface),var(--surface-2));
  box-shadow:0 10px 28px rgba(20,64,47,.07);
}
.active-agenda-kpis .agenda-kpi-card span{color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}
.active-agenda-kpis .agenda-kpi-card strong{margin:9px 0 8px;color:var(--green-700);font-size:32px;line-height:1}
.active-agenda-kpis .agenda-kpi-card small{color:var(--muted);font-size:8px;line-height:1.4}
.agenda-layout-full{display:block!important;width:100%}
.calendar-panel-full{width:100%;max-width:none}
.calendar-panel-full .calendar-header>div{text-align:center}
.calendar-panel-full .calendar-header span{font-size:9px}
.calendar-grid{width:100%}
.calendar-day{
  position:relative;
  min-height:132px;
  transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.calendar-day.has-events{
  cursor:pointer;
  opacity:1;
  background:linear-gradient(145deg,rgba(255,193,7,.23),rgba(255,214,77,.12));
  box-shadow:inset 0 0 0 1px rgba(205,143,0,.36);
}
.calendar-day.has-events:hover,
.calendar-day.has-events:focus-visible{
  z-index:2;
  outline:none;
  background:linear-gradient(145deg,rgba(255,193,7,.34),rgba(255,214,77,.18));
  box-shadow:inset 0 0 0 2px rgba(205,143,0,.58),0 10px 26px rgba(101,71,0,.15);
  transform:translateY(-2px);
}
.calendar-day.has-events .calendar-day-number b{
  color:#6d4700;
  background:#ffd95a;
}
.calendar-day.has-events .calendar-event{
  border-left-color:#d18a00!important;
  color:#5f4200;
  background:rgba(255,220,104,.66)!important;
}
[data-theme="dark"] .calendar-day.has-events .calendar-event{color:#fff3c4;background:rgba(177,121,0,.34)!important}
.calendar-day.has-events .calendar-event small{color:#805500}
[data-theme="dark"] .calendar-day.has-events .calendar-event small{color:#ffd86e}
.calendar-legend .legend-scheduled{background:#f2b705!important}
.calendar-legend .legend-today{background:var(--green-700)!important}
.upcoming-horizontal-panel{margin-top:20px;padding:20px}
.upcoming-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.upcoming-card{display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;min-width:0;padding:13px;border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;background:var(--surface-2)}
.upcoming-card:hover{border-color:#d7a400;background:rgba(255,193,7,.10)}
.upcoming-card time{display:grid;place-items:center;padding:6px;border-radius:11px;color:#6d4700;background:#ffdf74}
.upcoming-card time strong{font-size:18px}.upcoming-card time span{font-size:7px;text-transform:uppercase}
.upcoming-card h4{margin:4px 0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upcoming-card p{margin:0;color:var(--muted);font-size:7.5px;line-height:1.4}.upcoming-type{color:#9a6800!important}
.agenda-modal{z-index:2200!important}
.agenda-modal-open{overflow:hidden}
.day-agenda-modal-card{width:min(720px,96vw)}
.day-agenda-selected-date{margin-bottom:14px;padding:12px 14px;border-radius:12px;color:#745000;background:rgba(255,193,7,.18);font-size:10px;font-weight:850;text-transform:capitalize}
.day-agenda-detail-list{display:grid;gap:11px;max-height:56vh;overflow:auto;padding-right:4px}
.day-agenda-detail-item{display:block;padding:15px;border:1px solid rgba(209,138,0,.28);border-radius:14px;color:inherit;text-decoration:none;background:linear-gradient(145deg,rgba(255,193,7,.13),var(--surface))}
.day-agenda-detail-item:hover{border-color:#d18a00;transform:translateY(-1px)}
.day-agenda-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.day-agenda-type{display:inline-flex;padding:5px 8px;border-radius:999px;color:#6d4700;background:#ffdf74;font-size:7px;font-weight:900;text-transform:uppercase}.day-agenda-detail-head time{color:var(--muted);font-size:8px;font-weight:800}.day-agenda-detail-item>strong{display:block;font-size:11px}.day-agenda-detail-item p{margin:6px 0 0;color:var(--text);font-size:8.5px;line-height:1.45}.day-agenda-detail-item small{display:block;margin-top:7px;color:var(--muted);font-size:7.5px}
.day-agenda-modal-card>footer{display:flex;justify-content:flex-end;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.today-modal-card{border-top:5px solid #f2b705}
.today-agenda-time{background:#d18a00!important}
@media(max-width:1200px){.upcoming-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.active-agenda-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.calendar-panel-full{overflow:auto}.calendar-panel-full .calendar-weekdays,.calendar-panel-full .calendar-grid{min-width:860px}}
@media(max-width:580px){.active-agenda-kpis{grid-template-columns:1fr!important}.upcoming-card-grid{grid-template-columns:1fr}}

/* GENESIS 3.1.2 — agenda completa e sinalização temporal */
.calendar-day.has-events.events-past-current{
  border-color:rgba(21,128,79,.48)!important;
  background:linear-gradient(145deg,rgba(32,194,119,.18),rgba(32,194,119,.07))!important;
  box-shadow:inset 0 0 0 1px rgba(21,128,79,.12);
}
.calendar-day.has-events.events-past-current:hover,
.calendar-day.has-events.events-past-current:focus-visible{
  border-color:#168453!important;
  background:linear-gradient(145deg,rgba(32,194,119,.27),rgba(32,194,119,.10))!important;
}
.calendar-day.has-events.events-future{
  border-color:rgba(209,138,0,.52)!important;
  background:linear-gradient(145deg,rgba(255,193,7,.20),rgba(255,193,7,.08))!important;
  box-shadow:inset 0 0 0 1px rgba(209,138,0,.12);
}
.calendar-day.has-events.events-future:hover,
.calendar-day.has-events.events-future:focus-visible{
  border-color:#d18a00!important;
  background:linear-gradient(145deg,rgba(255,193,7,.30),rgba(255,193,7,.12))!important;
}
.calendar-day.events-past-current .calendar-day-number b{color:#0b6843!important;background:#bff1d4!important}
.calendar-day.events-future .calendar-day-number b{color:#745000!important;background:#ffe28a!important}
.calendar-event.event-when-past-current,
.calendar-day.events-past-current .calendar-event{
  border-left-color:#168453!important;
  color:#0b5f3e!important;
  background:#dff7ea!important;
}
.calendar-event.event-when-past-current small,
.calendar-day.events-past-current .calendar-event small{color:#0b6843!important}
.calendar-event.event-when-future,
.calendar-day.events-future .calendar-event{
  border-left-color:#d18a00!important;
  color:#6d4700!important;
  background:#fff1bd!important;
}
.calendar-event.event-when-future small,
.calendar-day.events-future .calendar-event small{color:#805500!important}
[data-theme="dark"] .calendar-day.events-past-current .calendar-event{color:#c9f7dc!important;background:rgba(21,132,83,.34)!important}
[data-theme="dark"] .calendar-day.events-past-current .calendar-event small{color:#8ee0b4!important}
[data-theme="dark"] .calendar-day.events-future .calendar-event{color:#fff3c4!important;background:rgba(177,121,0,.34)!important}
[data-theme="dark"] .calendar-day.events-future .calendar-event small{color:#ffd86e!important}
.calendar-legend .legend-past-current{background:#168453!important}
.calendar-legend .legend-future{background:#f2b705!important}
.day-agenda-detail-item.event-when-past-current{
  border-color:rgba(21,128,79,.30)!important;
  background:linear-gradient(145deg,rgba(32,194,119,.14),var(--surface))!important;
}
.day-agenda-detail-item.event-when-past-current .day-agenda-type{color:#0b6843;background:#c9f7dc}
.day-agenda-detail-item.event-when-future{
  border-color:rgba(209,138,0,.30)!important;
  background:linear-gradient(145deg,rgba(255,193,7,.14),var(--surface))!important;
}
.upcoming-card.event-when-future{border-color:rgba(209,138,0,.28);background:linear-gradient(145deg,rgba(255,193,7,.12),var(--surface))}
.today-agenda-item.event-when-past-current{border-color:rgba(21,128,79,.28);background:linear-gradient(145deg,rgba(32,194,119,.10),var(--surface))}
.today-agenda-item.event-when-past-current .today-agenda-time{background:#168453!important}

/* GENESIS 3.1.3 — calendário estilo operacional semelhante ao Solar */
.active-calendar-intro{margin-bottom:18px}
.solar-like-agenda-shell{display:grid;grid-template-columns:minmax(520px,0.76fr) minmax(470px,1.24fr);gap:14px;align-items:start}
.solar-calendar-panel,.solar-side-panel{padding:0;overflow:hidden}
.solar-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--surface),var(--surface-2))}
.solar-panel-heading .heading-group h3{margin:0;font-size:18px}.solar-panel-heading .heading-group p{margin:6px 0 0;color:var(--muted);font-size:9px}
.solar-calendar-actions{display:flex;align-items:center;gap:10px}.solar-calendar-actions strong{font-size:12px;color:var(--text)}
.solar-calendar-actions .calendar-nav{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--surface-2);text-decoration:none;font-size:18px;font-weight:900}
.solar-calendar-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}.solar-calendar-legend span{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:8px;font-weight:800}.solar-calendar-legend i{width:11px;height:11px;border-radius:3px;display:inline-block}.solar-calendar-legend .legend-past-current{background:#168453}.solar-calendar-legend .legend-future{background:#f2b705}
.solar-calendar-weekdays{padding:0 14px;background:var(--surface-2)}
.solar-calendar-weekdays span{padding:9px 4px;border-right:1px solid var(--line);font-size:9px;font-weight:850;color:var(--muted)}.solar-calendar-weekdays span:last-child{border-right:none}
.solar-calendar-grid{padding:0 14px 12px;gap:0;border-top:1px solid var(--line)}
.solar-calendar-day{min-height:66px;padding:6px 6px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);cursor:default}
.solar-calendar-grid>.solar-calendar-day:nth-child(7n){border-right:none}
.solar-calendar-day.outside{opacity:.34;background:var(--surface-2)}
.solar-calendar-day.has-events{cursor:pointer}.solar-calendar-day.today{box-shadow:inset 0 0 0 2px rgba(22,132,83,.18)}
.solar-calendar-day.events-past-current{background:linear-gradient(180deg,rgba(22,132,83,.09),var(--surface))}
.solar-calendar-day.events-future{background:linear-gradient(180deg,rgba(242,183,5,.14),var(--surface))}
.solar-day-topline{display:flex;align-items:center;justify-content:space-between;gap:8px}.solar-day-number{font-size:11px;font-weight:800;color:var(--text)}
.solar-day-counter{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;font-size:8px;font-weight:900}
.solar-calendar-day.events-past-current .solar-day-counter{color:#0b6843;background:#c9f7dc}
.solar-calendar-day.events-future .solar-day-counter{color:#745000;background:#ffe28a}
.solar-day-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.solar-day-badge,.solar-day-more{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;font-size:6.5px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.solar-day-badge.event-when-past-current{color:#0b6843;background:#cff7df}.solar-day-badge.event-when-future{color:#7a5600;background:#ffe39a}.solar-day-more{color:var(--muted);background:var(--surface-2)}
.solar-mini-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 14px 14px}.solar-mini-summary{padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.solar-mini-summary strong{display:block;color:var(--green-700);font-size:18px;line-height:1}.solar-mini-summary span{display:block;margin-top:6px;color:var(--muted);font-size:7px;line-height:1.28}
.solar-panel-heading-side{display:block}.solar-side-search{margin-top:14px}.solar-side-search input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);font:inherit}
.solar-status-strip{display:flex;gap:14px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--surface-2)}.solar-status-strip span{font-size:8.5px;color:var(--text)}.solar-status-strip b{color:#c9532f}
.agenda-accordion-list{padding:12px 14px 16px;display:grid;gap:10px;max-height:860px;overflow:auto}
.agenda-accordion-item{border:1px solid var(--line);border-radius:14px;background:var(--surface)}.agenda-accordion-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:none;background:transparent;cursor:pointer;font:inherit;text-align:left}.agenda-accordion-title-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.agenda-accordion-title-wrap strong{font-size:11px}.agenda-accordion-icon{font-size:18px;font-weight:900;line-height:1;transition:transform .2s ease}.agenda-accordion-item.open .agenda-accordion-icon{transform:rotate(180deg)}
.agenda-pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:8px;color:#fff;font-size:8px;font-weight:900;text-transform:uppercase}.agenda-pill-task{background:#338cc6}.agenda-pill-cooperation{background:#dd8a00}.agenda-pill-alert{background:#d6504d}
.agenda-accordion-content{display:none;padding:0 12px 12px}.agenda-accordion-item.open .agenda-accordion-content{display:grid;gap:8px}
.agenda-accordion-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 12px;border:1px solid var(--line);border-radius:12px;color:inherit;text-decoration:none;background:var(--surface-2)}.agenda-accordion-row:hover{border-color:var(--green-300);transform:translateY(-1px)}
.agenda-row-main strong{display:block;font-size:10.5px}.agenda-row-main p{margin:5px 0 0;color:var(--muted);font-size:8px;line-height:1.4}.agenda-row-meta{display:grid;justify-items:end;gap:6px}.agenda-row-meta small{font-size:7.5px;color:var(--muted)}.agenda-row-meta span{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:var(--surface);font-size:7px;font-weight:900;text-transform:uppercase}
.agenda-accordion-row.row-when-past-current{border-left:4px solid #168453}.agenda-accordion-row.row-when-future{border-left:4px solid #f2b705}.agenda-accordion-row.priority-urgente .agenda-row-meta span{color:#fff;background:#c9532f}.agenda-accordion-row.priority-alta .agenda-row-meta span{color:#7a5600;background:#ffe39a}
.agenda-empty-row{padding:14px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:8.5px;text-align:center;background:var(--surface-2)}
.day-agenda-selected-date{margin-bottom:14px;padding:12px 14px;border-radius:12px;color:#745000;background:rgba(255,193,7,.18);font-size:10px;font-weight:850;text-transform:capitalize}.day-agenda-detail-list{display:grid;gap:11px;max-height:56vh;overflow:auto;padding-right:4px}.day-agenda-detail-item{display:block;padding:15px;border:1px solid rgba(209,138,0,.28);border-radius:14px;color:inherit;text-decoration:none;background:linear-gradient(145deg,rgba(255,193,7,.13),var(--surface))}.day-agenda-detail-item:hover{border-color:#d18a00;transform:translateY(-1px)}.day-agenda-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.day-agenda-type{display:inline-flex;padding:5px 8px;border-radius:999px;color:#6d4700;background:#ffdf74;font-size:7px;font-weight:900;text-transform:uppercase}.day-agenda-detail-head time{color:var(--muted);font-size:8px;font-weight:800}.day-agenda-detail-item>strong{display:block;font-size:11px}.day-agenda-detail-item p{margin:6px 0 0;color:var(--text);font-size:8.5px;line-height:1.45}.day-agenda-detail-item small{display:block;margin-top:7px;color:var(--muted);font-size:7.5px}.day-agenda-detail-item.event-when-past-current{border-left:4px solid #168453}.day-agenda-detail-item.event-when-future{border-left:4px solid #f2b705}
@media(max-width:1080px){.solar-like-agenda-shell{grid-template-columns:1fr}.solar-side-panel{order:2}.solar-calendar-panel{order:1}}
@media(max-width:900px){.solar-mini-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.solar-calendar-weekdays,.solar-calendar-grid{min-width:620px}.solar-calendar-panel{overflow:auto}.solar-status-strip{gap:10px}}
@media(max-width:580px){.solar-mini-summary-grid{grid-template-columns:1fr}.agenda-accordion-row{grid-template-columns:1fr}.agenda-row-meta{justify-items:start}}

/* GENESIS 3.1.4 — painel geral com calendário reduzido para manter painel lateral ao lado */

/* GENESIS 3.1.5 — calendário ainda mais compacto, exibindo apenas quantidade por dia */
.solar-day-summary{margin-top:8px;display:flex;justify-content:flex-start}
.solar-day-summary-text{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;font-size:6.5px;font-weight:900;letter-spacing:.02em;background:rgba(0,0,0,.04);color:var(--muted)}
.solar-calendar-day.events-past-current .solar-day-summary-text{background:#cff7df;color:#0b6843}
.solar-calendar-day.events-future .solar-day-summary-text{background:#ffe39a;color:#7a5600}
.solar-day-badges,.solar-day-badge,.solar-day-more{display:none !important}

/* GENESIS 3.2.0 — WhatsApp integrado na Busca Ativa e login compacto */
.whatsapp-contact-panel{margin:6px 0 16px;padding:14px;border:1px solid rgba(37,211,102,.34);border-radius:16px;background:linear-gradient(145deg,rgba(37,211,102,.08),var(--surface));overflow:hidden}
.whatsapp-contact-header{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center}
.whatsapp-brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:#fff;background:#1fa855;box-shadow:0 8px 20px rgba(31,168,85,.2);font-size:18px;font-weight:900}
.whatsapp-contact-header strong,.whatsapp-contact-header span{display:block}.whatsapp-contact-header strong{font-size:11px}.whatsapp-contact-header>div:nth-child(2)>span{margin-top:3px;color:var(--muted);font-size:8px}
.whatsapp-status{display:inline-flex!important;align-items:center;justify-content:center;min-width:74px;padding:6px 9px;border-radius:999px;font-size:7px!important;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#6b5200;background:#fff0a6}
.whatsapp-status[data-state="ready"]{color:#0b6843;background:#c9f7dc}.whatsapp-status[data-state="error"]{color:#9d2823;background:#ffd9d6}.whatsapp-status[data-state="qr"]{color:#0b6843;background:#ddf7e8}
.whatsapp-status-description{margin:11px 0 0;color:var(--muted);font-size:8.5px;line-height:1.45}.whatsapp-phone-error{margin-top:10px;padding:10px 11px;border-radius:10px;color:#9d2823;background:#fff0ef;font-size:8px;font-weight:750}
.whatsapp-contact-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.btn-whatsapp{color:#fff;background:linear-gradient(180deg,#25d366,#159447);box-shadow:0 8px 18px rgba(37,211,102,.18)}.whatsapp-disconnect{color:#9d2823!important}
.whatsapp-chat{margin-top:13px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.whatsapp-privacy-note{padding:10px 12px;color:#37664f;background:#eefbf4;font-size:7.5px;line-height:1.45;border-bottom:1px solid rgba(37,211,102,.18)}
.whatsapp-messages{height:310px;display:flex;flex-direction:column;gap:8px;overflow:auto;padding:12px;background:linear-gradient(135deg,#efeae2,#f7f5f1)}[data-theme="dark"] .whatsapp-messages{background:#18251f}
.whatsapp-message{max-width:86%;padding:9px 10px;border-radius:12px;box-shadow:0 2px 6px rgba(0,0,0,.08)}.whatsapp-message p{margin:0;white-space:pre-wrap;word-break:break-word;font-size:9px;line-height:1.45}.whatsapp-message small{display:block;margin-top:6px;color:rgba(0,0,0,.55);font-size:6.5px;text-align:right}.whatsapp-message.outgoing{align-self:flex-end;border-bottom-right-radius:4px;background:#d9fdd3}.whatsapp-message.incoming{align-self:flex-start;border-bottom-left-radius:4px;background:#fff}[data-theme="dark"] .whatsapp-message.incoming{color:#f2fff8;background:#26382f}[data-theme="dark"] .whatsapp-message.outgoing{color:#eafff2;background:#075e54}[data-theme="dark"] .whatsapp-message small{color:rgba(255,255,255,.65)}
.whatsapp-chat-empty{margin:auto;padding:20px;color:#69766f;font-size:8.5px;text-align:center}
.whatsapp-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--surface)}.whatsapp-composer textarea{min-height:54px;resize:vertical}.whatsapp-composer .btn{align-self:end}
.whatsapp-qr-card{width:min(520px,95vw)}.whatsapp-qr-body{display:grid;justify-items:center;text-align:center}.whatsapp-qr-frame{width:300px;height:300px;display:grid;place-items:center;padding:12px;border:1px solid rgba(37,211,102,.3);border-radius:22px;background:#fff;box-shadow:0 16px 40px rgba(0,0,0,.12)}.whatsapp-qr-frame img{width:100%;height:100%;object-fit:contain}.whatsapp-qr-body>strong{margin-top:15px;font-size:12px}.whatsapp-qr-body>p{margin:7px 0 0;color:var(--muted);font-size:8.5px;line-height:1.45}.whatsapp-qr-body ol{width:100%;margin:18px 0 0;padding:14px 14px 14px 32px;border-radius:14px;background:var(--surface-2);text-align:left}.whatsapp-qr-body li{margin:6px 0;color:var(--muted);font-size:8px;line-height:1.45}.whatsapp-qr-card>footer{display:flex;justify-content:flex-end;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}

/* Tela de login menor, centralizada e sem transbordamento */
.login-body{min-height:100vh;padding:22px;overflow:auto}
.login-card{width:min(760px,calc(100vw - 36px));min-height:430px;max-height:calc(100vh - 72px);grid-template-columns:.88fr 1.12fr;border-radius:22px}
.login-brand{padding:34px}.login-brand img{width:82px;height:82px}.login-brand .eyebrow{margin-top:17px}.login-brand h1{font-size:28px}.login-brand p{font-size:10px;line-height:1.5}
.login-form-wrap{width:100%;max-width:360px;justify-self:center;padding:34px 30px}.login-form-wrap h2{font-size:21px}.login-form-wrap>p{margin-bottom:18px}.login-form-wrap .form-stack{gap:12px}.login-form-wrap input{min-height:40px}.login-form-wrap .btn{min-height:40px}.login-form-wrap .security-note{margin-top:14px}
@media(max-width:760px){.login-card{width:min(390px,calc(100vw - 28px));min-height:auto;max-height:none;grid-template-columns:1fr}.login-brand{display:none}.login-form-wrap{max-width:none;padding:32px 24px}}
@media(max-width:540px){.whatsapp-contact-header{grid-template-columns:38px minmax(0,1fr)}.whatsapp-status{grid-column:1/-1;justify-self:start}.whatsapp-contact-actions{display:grid;grid-template-columns:1fr}.whatsapp-composer{grid-template-columns:1fr}.whatsapp-qr-frame{width:250px;height:250px}}

/* GENESIS 3.2.1 — conversa em popup, QR centralizado e registro por imagem */
.whatsapp-module-note{margin-top:12px;padding:10px 12px;border-radius:11px;color:#37664f;background:#eefbf4;font-size:8px;line-height:1.45}
.whatsapp-qr-card{width:min(600px,94vw)!important;margin:auto!important;align-self:center!important;justify-self:center!important}
.whatsapp-qr-card>header{align-items:center}
.whatsapp-qr-body{display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:100%;text-align:center!important}
.whatsapp-qr-frame{width:min(360px,78vw)!important;height:min(360px,78vw)!important;margin:8px auto 0!important;padding:15px!important}
.whatsapp-qr-frame img{display:block;margin:auto}
.whatsapp-qr-body ol{max-width:480px;margin-left:auto!important;margin-right:auto!important}
.whatsapp-conversation-card{width:min(980px,96vw);height:min(820px,94vh);display:grid;grid-template-rows:auto auto auto minmax(260px,1fr) auto;overflow:hidden;padding:0!important}
.whatsapp-conversation-header{margin:0!important;padding:20px 22px!important;border-bottom:1px solid var(--line);background:linear-gradient(145deg,rgba(37,211,102,.12),var(--surface))}
.whatsapp-conversation-header h3{margin-top:5px!important}.whatsapp-conversation-header small{display:block;margin-top:5px;color:var(--muted);font-size:8px}
.whatsapp-conversation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--surface-2)}
.whatsapp-conversation-toolbar>span{font-size:8.5px;color:var(--muted);line-height:1.4}.whatsapp-conversation-toolbar>span[data-state="success"]{color:#0b6843}.whatsapp-conversation-toolbar>span[data-state="warning"]{color:#805500}.whatsapp-conversation-toolbar>span[data-state="error"]{color:#9d2823}.whatsapp-conversation-toolbar>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.whatsapp-conversation-card>.whatsapp-privacy-note{margin:0;padding:10px 18px}
.whatsapp-popup-messages{height:auto!important;min-height:280px;max-height:none!important;padding:18px 22px!important}
.whatsapp-conversation-card>.whatsapp-composer{padding:13px 18px!important}
.whatsapp-chat-empty{display:grid;place-items:center;align-content:center;gap:8px;min-height:220px}.whatsapp-chat-empty strong{font-size:11px;color:#34433b}.whatsapp-chat-empty span{max-width:480px;line-height:1.45}
@media(max-width:720px){.whatsapp-conversation-card{height:96vh;width:98vw}.whatsapp-conversation-toolbar{align-items:stretch;flex-direction:column}.whatsapp-conversation-toolbar>div{justify-content:stretch}.whatsapp-conversation-toolbar .btn{flex:1}.whatsapp-popup-messages{padding:12px!important}.whatsapp-qr-frame{width:min(300px,76vw)!important;height:min(300px,76vw)!important}}

/* GENESIS 3.2.3 — QR Code compacto sem rolagem */
.whatsapp-qr-card{
  width:min(430px,92vw)!important;
  max-height:min(610px,92vh)!important;
  overflow:hidden!important;
  padding:16px 18px!important;
}
.whatsapp-qr-card>header{
  margin-bottom:10px!important;
  padding-bottom:10px!important;
}
.whatsapp-qr-card>header h3{font-size:16px!important}
.whatsapp-qr-body{gap:0!important}
.whatsapp-qr-frame{
  width:min(230px,54vw)!important;
  height:min(230px,54vw)!important;
  margin:2px auto 0!important;
  padding:8px!important;
  border-radius:16px!important;
}
.whatsapp-qr-body>strong{margin-top:9px!important;font-size:10px!important}
.whatsapp-qr-body>p{margin-top:4px!important;font-size:7.5px!important}
.whatsapp-qr-body ol{
  max-width:390px!important;
  margin:10px auto 0!important;
  padding:9px 12px 9px 28px!important;
  border-radius:11px!important;
}
.whatsapp-qr-body li{margin:3px 0!important;font-size:7px!important;line-height:1.28!important}
.whatsapp-qr-card>footer{
  margin-top:10px!important;
  padding-top:10px!important;
}
@media(max-height:680px){
  .whatsapp-qr-card{max-height:96vh!important;padding:12px 16px!important}
  .whatsapp-qr-frame{width:190px!important;height:190px!important}
  .whatsapp-qr-body ol{margin-top:7px!important;padding-top:7px!important;padding-bottom:7px!important}
  .whatsapp-qr-body li{margin:2px 0!important}
  .whatsapp-qr-card>footer{margin-top:7px!important;padding-top:7px!important}
}

/* GENESIS 3.2.4 — mensagens recebidas e áudio no WhatsApp integrado */
.whatsapp-conversation-card>.whatsapp-composer{grid-template-columns:auto minmax(0,1fr) auto!important;align-items:end}
.whatsapp-audio-button{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;color:#fff;background:#168453;cursor:pointer;font-size:15px;box-shadow:0 8px 20px rgba(22,132,83,.22)}
.whatsapp-audio-button:hover{background:#0f7044}.whatsapp-audio-button:disabled{opacity:.55;cursor:not-allowed}
.whatsapp-audio-recorder{display:flex;align-items:center;gap:10px;padding:10px 18px;border-top:1px solid var(--line);background:linear-gradient(90deg,rgba(198,48,39,.08),var(--surface))}.whatsapp-audio-recorder[hidden]{display:none!important}.whatsapp-audio-recorder strong{font-size:10px}.whatsapp-audio-recorder time{min-width:48px;color:#c63027;font-size:10px;font-weight:900}.whatsapp-recording-dot{width:10px;height:10px;border-radius:50%;background:#d13a31;box-shadow:0 0 0 6px rgba(209,58,49,.12);animation:genesisRecordingPulse 1.1s infinite}.whatsapp-audio-recorder .btn:first-of-type{margin-left:auto}
.whatsapp-audio-help{display:block;padding:0 18px 12px;color:var(--muted);font-size:7.5px;line-height:1.4}
.whatsapp-audio-player{display:block;width:min(320px,72vw);height:38px;margin:8px 0 2px}.whatsapp-audio-unavailable{display:block;margin-top:7px;padding:7px 9px;border-radius:8px;color:var(--muted);background:rgba(0,0,0,.05);font-size:7.5px}
.whatsapp-message.incoming{outline:1px solid rgba(22,132,83,.12)}
[data-whatsapp-chat-feedback][data-state="recording"]{color:#c63027;font-weight:850}
@keyframes genesisRecordingPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.78);opacity:.55}}
@media(max-width:620px){.whatsapp-conversation-card>.whatsapp-composer{grid-template-columns:auto minmax(0,1fr)!important}.whatsapp-conversation-card>.whatsapp-composer .btn-whatsapp{grid-column:1/-1}.whatsapp-audio-recorder{flex-wrap:wrap}.whatsapp-audio-recorder .btn:first-of-type{margin-left:0}}

/* GENESIS 3.2.5 — reprodução de áudio e gravador compacto */
.whatsapp-conversation-card{min-width:0}
.whatsapp-conversation-card>.whatsapp-composer{
  grid-template-columns:44px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
}
.whatsapp-conversation-card>.whatsapp-composer textarea{
  width:100%;
  min-width:0;
  max-height:96px;
  resize:vertical;
}
.whatsapp-audio-button{
  width:44px!important;
  height:44px!important;
  min-width:44px;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden;
}
.whatsapp-audio-button svg{width:22px;height:22px;display:block;fill:currentColor}
.whatsapp-audio-recorder{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  padding:10px 18px!important;
}
.whatsapp-audio-recorder[hidden]{display:none!important}
.whatsapp-audio-recorder-status{display:flex;align-items:center;gap:10px;min-width:0}
.whatsapp-audio-recorder-status strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.whatsapp-audio-recorder-status time{min-width:46px;color:#c63027;font-size:10px;font-weight:900}
.whatsapp-audio-recorder-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.whatsapp-audio-recorder-actions .btn{white-space:nowrap;padding:9px 12px}
.whatsapp-audio-player{
  display:block;
  width:min(360px,100%)!important;
  max-width:100%;
  height:42px;
  margin:9px 0 3px;
}
.whatsapp-audio-error{display:block;margin-top:7px;padding:8px 10px;border-radius:9px;color:#9d2823;background:#fff0ef;font-size:7.5px;line-height:1.4}
.whatsapp-audio-error button{margin-left:5px;border:0;background:transparent;color:#0b6843;font:inherit;font-weight:900;text-decoration:underline;cursor:pointer}
@media(max-width:760px){
  .whatsapp-conversation-card>.whatsapp-composer{grid-template-columns:44px minmax(0,1fr)!important}
  .whatsapp-conversation-card>.whatsapp-composer .btn-whatsapp{grid-column:1/-1;width:100%}
  .whatsapp-audio-recorder{grid-template-columns:1fr!important}
  .whatsapp-audio-recorder-actions{justify-content:flex-end;flex-wrap:wrap}
}
@media(max-width:460px){
  .whatsapp-audio-recorder-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .whatsapp-audio-recorder-actions .btn{width:100%}
}

/* GENESIS 3.2.6 — reprodução de áudio compatível, anexos e correção definitiva do rodapé da conversa */
.whatsapp-conversation-card{
  display:flex!important;
  flex-direction:column!important;
  width:min(1040px,96vw)!important;
  height:min(820px,94vh)!important;
  max-height:94vh!important;
  overflow:hidden!important;
  min-width:0!important;
}
.whatsapp-conversation-header,
.whatsapp-conversation-toolbar,
.whatsapp-conversation-card>.whatsapp-privacy-note,
.whatsapp-input-dock{flex:0 0 auto}
.whatsapp-popup-messages{
  flex:1 1 auto!important;
  min-height:180px!important;
  height:auto!important;
  max-height:none!important;
  overflow:auto!important;
}
.whatsapp-input-dock{
  border-top:1px solid var(--line);
  background:var(--surface);
  min-width:0;
}
.whatsapp-input-dock .whatsapp-composer{
  display:grid!important;
  grid-template-columns:44px 44px minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:10px!important;
  padding:12px 16px 10px!important;
  border-top:0!important;
  min-width:0!important;
}
.whatsapp-input-dock.is-recording .whatsapp-composer,
.whatsapp-input-dock.is-attaching .whatsapp-composer{display:none!important}
.whatsapp-input-dock.is-recording .whatsapp-audio-help,
.whatsapp-input-dock.is-attaching .whatsapp-audio-help{display:none!important}
.whatsapp-composer textarea{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  max-height:110px!important;
  resize:vertical!important;
}
.whatsapp-audio-button,.whatsapp-attachment-button{
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:50%!important;
  cursor:pointer!important;
  color:#fff!important;
  background:#168453!important;
  box-shadow:0 7px 18px rgba(22,132,83,.2)!important;
}
.whatsapp-attachment-button{background:#2d7f68!important}
.whatsapp-audio-button svg,.whatsapp-attachment-button svg{width:22px!important;height:22px!important;display:block!important;fill:currentColor!important}
.whatsapp-audio-recorder{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  padding:12px 16px!important;
  border-top:0!important;
  background:linear-gradient(90deg,rgba(198,48,39,.08),var(--surface))!important;
  overflow:hidden!important;
}
.whatsapp-audio-recorder[hidden]{display:none!important}
.whatsapp-audio-recorder-status{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;overflow:hidden!important}
.whatsapp-audio-recorder-status strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.whatsapp-audio-recorder-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;min-width:0!important}
.whatsapp-audio-recorder-actions .btn{white-space:nowrap!important;padding:9px 12px!important;min-width:0!important}
.whatsapp-audio-help{display:block!important;padding:0 16px 10px!important;color:var(--muted)!important;font-size:7.5px!important;line-height:1.35!important}
.whatsapp-audio-player{
  display:block!important;
  width:100%!important;
  max-width:360px!important;
  min-width:230px!important;
  height:42px!important;
  margin:8px 0 3px!important;
}
.whatsapp-audio-player.is-loading{opacity:.55}
.whatsapp-message{min-width:0!important;overflow:hidden!important}
.whatsapp-message.outgoing{max-width:min(78%,440px)!important}
.whatsapp-message.incoming{max-width:min(78%,440px)!important}
.whatsapp-audio-error{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
.whatsapp-audio-error button{margin-left:0!important}
.whatsapp-attachment-panel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(220px,.8fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 16px!important;
  background:linear-gradient(90deg,rgba(45,127,104,.08),var(--surface))!important;
  min-width:0!important;
}
.whatsapp-attachment-panel[hidden]{display:none!important}
.whatsapp-attachment-file{display:flex;align-items:center;gap:10px;min-width:0}
.whatsapp-attachment-file>div{min-width:0}.whatsapp-attachment-file strong,.whatsapp-attachment-file small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.whatsapp-attachment-file strong{font-size:10px}.whatsapp-attachment-file small{margin-top:4px;color:var(--muted);font-size:7.5px}
.whatsapp-attachment-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#fff;background:#2d7f68;font-size:15px;font-weight:900;flex:0 0 auto}
.whatsapp-attachment-panel input{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.whatsapp-attachment-actions{display:flex;gap:8px;white-space:nowrap}.whatsapp-attachment-actions .btn{padding:9px 12px}
.whatsapp-image-link{display:block;margin:8px 0 3px;border-radius:12px;overflow:hidden;background:rgba(0,0,0,.05)}
.whatsapp-image-preview{display:block;width:min(360px,100%);max-height:320px;object-fit:contain;margin:auto}
.whatsapp-document-card{display:flex;align-items:center;gap:10px;margin:8px 0 3px;padding:11px 12px;border:1px solid rgba(45,127,104,.24);border-radius:12px;color:inherit;text-decoration:none;background:rgba(45,127,104,.08);min-width:230px}
.whatsapp-document-card>span:last-child{min-width:0}.whatsapp-document-card strong,.whatsapp-document-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.whatsapp-document-card strong{font-size:9px}.whatsapp-document-card small{margin-top:4px;color:var(--muted);font-size:7px}
.whatsapp-document-icon{display:grid;place-items:center;min-width:42px;height:38px;border-radius:9px;color:#fff;background:#2d7f68;font-size:8px;font-weight:900}
@media(max-width:760px){
  .whatsapp-conversation-card{width:98vw!important;height:96vh!important;max-height:96vh!important}
  .whatsapp-input-dock .whatsapp-composer{grid-template-columns:40px 40px minmax(0,1fr)!important;gap:8px!important}
  .whatsapp-composer .btn-whatsapp{grid-column:1/-1!important;width:100%!important}
  .whatsapp-audio-button,.whatsapp-attachment-button{width:40px!important;height:40px!important}
  .whatsapp-audio-recorder{grid-template-columns:1fr!important}
  .whatsapp-audio-recorder-actions{justify-content:flex-end!important;flex-wrap:wrap!important}
  .whatsapp-attachment-panel{grid-template-columns:1fr!important}
  .whatsapp-attachment-actions{justify-content:flex-end;flex-wrap:wrap}
  .whatsapp-message.outgoing,.whatsapp-message.incoming{max-width:90%!important}
  .whatsapp-audio-player{min-width:0!important;max-width:100%!important}
}
@media(max-height:690px){
  .whatsapp-conversation-card{height:97vh!important;max-height:97vh!important}
  .whatsapp-conversation-header{padding:12px 16px!important}
  .whatsapp-conversation-toolbar{padding:8px 12px!important}
  .whatsapp-conversation-card>.whatsapp-privacy-note{padding:7px 12px!important}
  .whatsapp-input-dock .whatsapp-composer{padding:8px 12px!important}
  .whatsapp-audio-help{display:none!important}
}

/* GENESIS 3.2.7 — alinhamento correto das conversas e balões responsivos */
.whatsapp-popup-messages{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:12px!important;
  padding:18px 24px!important;
  scroll-padding-top:18px!important;
  scroll-padding-bottom:18px!important;
}
.whatsapp-message{
  display:flex!important;
  flex-direction:column!important;
  width:fit-content!important;
  min-width:150px!important;
  max-width:min(74%,560px)!important;
  padding:11px 13px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.whatsapp-message.outgoing,
.whatsapp-message[data-direction="outgoing"]{
  align-self:flex-end!important;
  margin-left:auto!important;
  margin-right:0!important;
  border-bottom-right-radius:5px!important;
  border-bottom-left-radius:14px!important;
  background:#d9fdd3!important;
  outline:1px solid rgba(13,114,70,.10)!important;
}
.whatsapp-message.incoming,
.whatsapp-message[data-direction="incoming"]{
  align-self:flex-start!important;
  margin-left:0!important;
  margin-right:auto!important;
  border-bottom-left-radius:5px!important;
  border-bottom-right-radius:14px!important;
  background:#ffffff!important;
  outline:1px solid rgba(28,55,43,.12)!important;
}
.whatsapp-message>p{
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.45!important;
}
.whatsapp-message>small{
  align-self:flex-end!important;
  max-width:100%!important;
  margin-top:7px!important;
  text-align:right!important;
  white-space:normal!important;
}
.whatsapp-message.has-audio{
  width:min(390px,74%)!important;
  min-width:300px!important;
}
.whatsapp-message.has-image{
  width:min(390px,74%)!important;
  min-width:240px!important;
}
.whatsapp-message.has-document{
  width:min(430px,74%)!important;
  min-width:280px!important;
}
.whatsapp-audio-player{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:9px 0 3px!important;
}
.whatsapp-image-link{
  width:100%!important;
  max-width:100%!important;
}
.whatsapp-image-preview{
  width:100%!important;
  max-width:100%!important;
  max-height:330px!important;
  object-fit:contain!important;
}
.whatsapp-document-card{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
[data-theme="dark"] .whatsapp-message.incoming,
[data-theme="dark"] .whatsapp-message[data-direction="incoming"]{
  color:#f2fff8!important;
  background:#26382f!important;
}
[data-theme="dark"] .whatsapp-message.outgoing,
[data-theme="dark"] .whatsapp-message[data-direction="outgoing"]{
  color:#eafff2!important;
  background:#075e54!important;
}
@media(max-width:760px){
  .whatsapp-popup-messages{padding:14px!important}
  .whatsapp-message{max-width:88%!important;min-width:110px!important}
  .whatsapp-message.has-audio,
  .whatsapp-message.has-image,
  .whatsapp-message.has-document{width:88%!important;min-width:0!important;max-width:88%!important}
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 54px;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #53645f;
  cursor: pointer;
}

.password-toggle:hover {
  color: #087451;
  background: rgba(8, 116, 81, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid #087451;
  outline-offset: 2px;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-closed {
  display: block;
}

cat >> static/css/app.css <<'CSS'


/* =========================================================
   GENESIS — VISUAL LEVE / INSTITUCIONAL
   Referência visual v3.4.1
   ========================================================= */

:root {
  --ui-bg: #f4f7f5;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8faf9;

  --ui-text: #1e2a25;
  --ui-muted: #708078;
  --ui-border: #e0e8e3;

  --ui-green-950: #073a2d;
  --ui-green-900: #084936;
  --ui-green-800: #0a5a42;
  --ui-green-700: #0e6b4e;
  --ui-green-600: #16805e;
  --ui-green-500: #239972;

  --ui-radius: 12px;
  --ui-radius-sm: 8px;

  --ui-shadow:
    0 3px 14px rgba(20, 54, 41, .045);
}


html[data-theme="dark"] {
  --ui-bg: #0f1714;
  --ui-surface: #16211c;
  --ui-surface-soft: #1a2721;

  --ui-text: #edf4f0;
  --ui-muted: #9aa9a1;
  --ui-border: #293831;

  --ui-shadow:
    0 4px 18px rgba(0, 0, 0, .18);
}


/* TIPOGRAFIA */

body,
button,
input,
select,
textarea {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ui-text);
  background: var(--ui-bg);
}


/* =========================================================
   MENU LATERAL
   ========================================================= */

.sidebar {
  width: 252px;
  background:
    linear-gradient(
      180deg,
      var(--ui-green-900) 0%,
      var(--ui-green-800) 55%,
      var(--ui-green-700) 100%
    );
  border-right: 0;
  box-shadow:
    5px 0 24px rgba(6, 49, 36, .09);
}


.brand {
  padding: 21px 18px 17px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.brand-copy small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  opacity: .76;
}


.nav-label {
  margin:
    21px 16px
    7px;

  color:
    rgba(255,255,255,.58);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}


.nav {
  gap: 4px;
  padding:
    0 10px;
}


.nav-link {
  min-height: 40px;

  padding:
    0 12px;

  border: 0;
  border-radius: 9px;

  color:
    rgba(255,255,255,.82);

  background:
    transparent;

  font-size: 13px;
  font-weight: 500;

  transition:
    background .16s ease,
    color .16s ease,
    transform .16s ease;
}


.nav-link:hover {
  color: #ffffff;

  background:
    rgba(255,255,255,.09);

  transform:
    translateX(1px);
}


.nav-link.active {
  color: #ffffff;

  background:
    rgba(255,255,255,.16);

  box-shadow:
    inset 3px 0 0 #8bd9b5;

  font-weight: 600;
}


.sidebar-footer {
  padding:
    14px 16px;

  border-top:
    1px solid rgba(255,255,255,.12);
}


.system-version {
  opacity: .78;
}


/* =========================================================
   ÁREA PRINCIPAL
   ========================================================= */

.main {
  background:
    var(--ui-bg);
}


.topbar {
  min-height: 68px;

  padding:
    0 26px;

  background:
    var(--ui-surface);

  border-bottom:
    1px solid var(--ui-border);

  box-shadow:
    none;
}


.topbar h1 {
  margin: 0;

  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}


.topbar p {
  margin-top: 3px;

  color:
    var(--ui-muted);

  font-size: 12.5px;
  font-weight: 400;
}


.content {
  padding:
    24px 28px 32px;
}


/* =========================================================
   CARDS / PAINÉIS
   ========================================================= */

.panel,
.kpi {
  background:
    var(--ui-surface);

  border:
    1px solid var(--ui-border);

  border-radius:
    var(--ui-radius);

  box-shadow:
    var(--ui-shadow);
}


.kpi {
  padding:
    18px 20px;
}


.kpi span {
  color:
    var(--ui-muted);

  font-size: 11.5px;
  font-weight: 500;
}


.kpi strong {
  margin-top: 5px;

  color:
    var(--ui-text);

  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.025em;
}


.kpi small {
  margin-top: 5px;

  color:
    var(--ui-muted);

  font-size: 11px;
  font-weight: 400;
}


/* =========================================================
   FORMULÁRIOS
   ========================================================= */

.field label {
  display: block;

  margin-bottom: 6px;

  color:
    var(--ui-text);

  font-size: 11.5px;
  font-weight: 600;
}


.field input,
.field select,
.field textarea,
.filters input,
.filters select {
  min-height: 40px;

  padding:
    9px 11px;

  color:
    var(--ui-text);

  background:
    var(--ui-surface);

  border:
    1px solid var(--ui-border);

  border-radius:
    8px;

  font-size: 13px;
  font-weight: 400;

  outline: none;

  transition:
    border .15s ease,
    box-shadow .15s ease;
}


.field input:focus,
.field select:focus,
.field textarea:focus,
.filters input:focus,
.filters select:focus {
  border-color:
    var(--ui-green-600);

  box-shadow:
    0 0 0 3px
    rgba(22,128,94,.10);
}


/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
  min-height: 39px;

  padding:
    8px 14px;

  border-radius:
    8px;

  font-size:
    12.5px;

  font-weight:
    600;

  box-shadow:
    none;
}


.btn-primary {
  background:
    var(--ui-green-700);

  border-color:
    var(--ui-green-700);
}


.btn-primary:hover {
  background:
    var(--ui-green-800);

  border-color:
    var(--ui-green-800);
}


/* =========================================================
   RELATÓRIO MEU PAI TEM NOME
   ========================================================= */

.fatherhood-report {
  display: flex;
  flex-direction: column;
  gap: 18px;
}


.fatherhood-report .page-intro {
  margin:
    0 0 2px;

  padding:
    0 2px;
}


.fatherhood-report .page-intro h2 {
  margin:
    0 0 5px;

  font-size:
    17px;

  font-weight:
    600;

  letter-spacing:
    -.01em;
}


.fatherhood-report .page-intro p {
  max-width:
    820px;

  margin:
    0;

  color:
    var(--ui-muted);

  font-size:
    12.5px;

  line-height:
    1.55;
}


.fatherhood-panel {
  padding: 0;

  overflow:
    hidden;
}


/* CORREÇÃO PRINCIPAL:
   títulos não ficam mais encostados na borda */

.fatherhood-panel .case-section-heading {
  margin: 0;

  padding:
    20px 22px 14px;
}


.fatherhood-panel .case-section-heading h3 {
  margin:
    0 0 3px;

  font-size:
    15px;

  font-weight:
    600;
}


.fatherhood-panel .case-section-heading p {
  margin: 0;

  color:
    var(--ui-muted);

  font-size:
    12px;

  line-height:
    1.5;
}


/* FILTROS */

.fatherhood-panel .filters {
  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(170px,1fr)
    );

  gap:
    14px;

  align-items:
    end;

  padding:
    0 22px 22px;
}


.fatherhood-panel .filters .field:first-child {
  grid-column:
    span 2;
}


/* TABELA COM BORDA INTERNA E RESPIRO */

.fatherhood-panel .table-responsive {
  margin:
    0 18px 20px;

  border:
    1px solid var(--ui-border);

  border-radius:
    10px;

  overflow:
    auto;
}


.fatherhood-panel table {
  width:
    100%;

  border-collapse:
    separate;

  border-spacing:
    0;

  background:
    var(--ui-surface);
}


.fatherhood-panel th {
  padding:
    11px 14px;

  color:
    var(--ui-muted);

  background:
    var(--ui-surface-soft);

  border-bottom:
    1px solid var(--ui-border);

  font-size:
    10.5px;

  font-weight:
    700;

  letter-spacing:
    .045em;

  text-align:
    left;

  text-transform:
    uppercase;
}


.fatherhood-panel td {
  padding:
    13px 14px;

  border-bottom:
    1px solid var(--ui-border);

  color:
    var(--ui-text);

  font-size:
    12.5px;

  font-weight:
    400;

  vertical-align:
    middle;
}


.fatherhood-panel tbody tr:last-child td {
  border-bottom:
    0;
}


.fatherhood-panel tbody tr:hover td {
  background:
    var(--ui-surface-soft);
}


/* =========================================================
   TEMA ESCURO
   ========================================================= */

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .kpi {
  background:
    var(--ui-surface);
}


html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select {
  color:
    var(--ui-text);

  background:
    var(--ui-surface-soft);
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1100px) {

  .content {
    padding:
      20px;
  }

  .fatherhood-panel .filters .field:first-child {
    grid-column:
      span 1;
  }

}


@media (max-width: 720px) {

  .content {
    padding:
      16px 12px 24px;
  }

  .topbar {
    padding:
      0 14px;
  }

  .fatherhood-panel .case-section-heading {
    padding:
      17px 16px 12px;
  }

  .fatherhood-panel .filters {
    grid-template-columns:
      1fr;

    padding:
      0 16px 17px;
  }

  .fatherhood-panel .table-responsive {
    margin:
      0 12px 16px;
  }

}
cat >> static/css/app.css <<'CSS'


/* =========================================================
   GENESIS — CORREÇÕES DE CONTRASTE MENU / LOGIN
   ========================================================= */


/* ---------------------------------------------------------
   MENU — TEMA CLARO
   --------------------------------------------------------- */

html[data-theme="light"] .sidebar,
html:not([data-theme="dark"]) .sidebar {
  background:
    linear-gradient(
      180deg,
      #064936 0%,
      #086348 52%,
      #0a7555 100%
    ) !important;
}


/* Força todos os textos do menu a permanecerem claros */
html[data-theme="light"] .sidebar .nav-link,
html[data-theme="light"] .sidebar .nav-link span,
html[data-theme="light"] .sidebar .nav-label,
html[data-theme="light"] .sidebar .brand-copy strong,
html[data-theme="light"] .sidebar .brand-copy small,
html[data-theme="light"] .sidebar .system-version,
html[data-theme="light"] .sidebar .system-version span,
html[data-theme="light"] .sidebar .system-version strong,
html[data-theme="light"] .sidebar .system-copyright {
  color: rgba(255,255,255,.92) !important;
}


/* Item selecionado no tema claro */
html[data-theme="light"] .sidebar .nav-link.active,
html[data-theme="light"] .sidebar .nav-link.active span {
  color: #ffffff !important;
  font-weight: 600 !important;
}


html[data-theme="light"] .sidebar .nav-link.active {
  background: rgba(255,255,255,.16) !important;
  box-shadow:
    inset 3px 0 0 #9be2c1 !important;
}


/* Hover */
html[data-theme="light"] .sidebar .nav-link:hover,
html[data-theme="light"] .sidebar .nav-link:hover span {
  color: #ffffff !important;
}


/* ---------------------------------------------------------
   MENU — TEMA ESCURO
   Item ativo com texto amarelo
   --------------------------------------------------------- */

html[data-theme="dark"] .sidebar {
  background:
    linear-gradient(
      180deg,
      #071b15 0%,
      #0a2a20 50%,
      #0b3829 100%
    ) !important;
}


html[data-theme="dark"] .sidebar .nav-link,
html[data-theme="dark"] .sidebar .nav-link span {
  color: rgba(235,245,240,.82) !important;
}


html[data-theme="dark"] .sidebar .nav-label {
  color: rgba(235,245,240,.52) !important;
}


/* AMARELO no item selecionado */
html[data-theme="dark"] .sidebar .nav-link.active,
html[data-theme="dark"] .sidebar .nav-link.active span {
  color: #ffd84d !important;
  font-weight: 600 !important;
}


html[data-theme="dark"] .sidebar .nav-link.active {
  background: rgba(255,216,77,.10) !important;

  box-shadow:
    inset 3px 0 0 #ffd84d !important;
}


html[data-theme="dark"] .sidebar .nav-link:hover,
html[data-theme="dark"] .sidebar .nav-link:hover span {
  color: #ffffff !important;
}


/* ---------------------------------------------------------
   LOGIN — CORRIGE BOTÃO ENTRAR INVISÍVEL
   --------------------------------------------------------- */

.login-card button[type="submit"],
.login-form button[type="submit"],
.auth-card button[type="submit"],
.auth-form button[type="submit"],
.login-page button[type="submit"],
button.btn-primary[type="submit"] {
  color: #ffffff !important;
  background: #0b6b4d !important;
  border: 1px solid #0b6b4d !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
}


.login-card button[type="submit"]:hover,
.login-form button[type="submit"]:hover,
.auth-card button[type="submit"]:hover,
.auth-form button[type="submit"]:hover,
.login-page button[type="submit"]:hover,
button.btn-primary[type="submit"]:hover {
  color: #ffffff !important;
  background: #07533b !important;
  border-color: #07533b !important;
}


/* Tema escuro */
html[data-theme="dark"] .login-card button[type="submit"],
html[data-theme="dark"] .login-form button[type="submit"],
html[data-theme="dark"] .auth-card button[type="submit"],
html[data-theme="dark"] .auth-form button[type="submit"],
html[data-theme="dark"] .login-page button[type="submit"],
html[data-theme="dark"] button.btn-primary[type="submit"] {
  color: #ffffff !important;
  background: #16805e !important;
  border-color: #16805e !important;
}


/* ---------------------------------------------------------
   MENU MAIS COMPACTO
   Antes de adicionarmos os grupos recolhíveis
   --------------------------------------------------------- */

.sidebar .nav {
  gap: 2px !important;
}


.sidebar .nav-link {
  min-height: 37px !important;
  padding: 0 11px !important;
  font-size: 12.5px !important;
}


.sidebar .nav-label {
  margin-top: 15px !important;
  margin-bottom: 5px !important;
}


.sidebar .brand {
  padding-top: 17px !important;
  padding-bottom: 14px !important;
}


.sidebar-footer {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

CSS

/* =========================================================
   GENESIS — MENU RECOLHÍVEL
   ========================================================= */

.sidebar {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}


.sidebar-groups {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;

  padding:
    2px 9px 10px;

  scrollbar-width:
    thin;

  scrollbar-color:
    rgba(255,255,255,.18)
    transparent;
}


.sidebar-groups::-webkit-scrollbar {
  width: 5px;
}


.sidebar-groups::-webkit-scrollbar-track {
  background: transparent;
}


.sidebar-groups::-webkit-scrollbar-thumb {
  background:
    rgba(255,255,255,.18);

  border-radius:
    20px;
}


.sidebar-personal {
  flex: 0 0 auto;

  padding:
    3px 9px 6px;

  border-top:
    1px solid rgba(255,255,255,.08);
}


.nav-group {
  margin:
    2px 0 5px;
}


.nav-group-title {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height:
    32px;

  padding:
    5px 10px;

  border-radius:
    8px;

  cursor:
    pointer;

  list-style:
    none;

  user-select:
    none;

  color:
    rgba(255,255,255,.67) !important;

  font-size:
    10px;

  font-weight:
    700;

  letter-spacing:
    .09em;

  text-transform:
    uppercase;

  transition:
    background .15s ease,
    color .15s ease;
}


.nav-group-title::-webkit-details-marker {
  display:
    none;
}


.nav-group-title::marker {
  display:
    none;
  content:
    "";
}


.nav-group-title:hover {
  color:
    #ffffff !important;

  background:
    rgba(255,255,255,.055);
}


.nav-group-chevron {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    18px;

  height:
    18px;

  color:
    inherit !important;

  font-size:
    17px;

  line-height:
    1;

  transform:
    rotate(0deg);

  transition:
    transform .17s ease;
}


.nav-group[open]
.nav-group-chevron {
  transform:
    rotate(90deg);
}


.nav-group .nav {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;

  padding:
    3px 1px 4px;
}


.nav-group .nav-link {
  min-height:
    36px !important;

  margin:
    0;

  padding:
    0 11px !important;

  border-radius:
    8px !important;

  font-size:
    12.5px !important;

  font-weight:
    500 !important;
}


/* =========================================================
   TEMA CLARO — MENU SEMPRE LEGÍVEL
   ========================================================= */

html[data-theme="light"] .sidebar {
  background:
    linear-gradient(
      180deg,
      #064936 0%,
      #086248 50%,
      #0a7555 100%
    ) !important;
}


html[data-theme="light"]
.sidebar .nav-group-title {
  color:
    rgba(255,255,255,.69) !important;
}


html[data-theme="light"]
.sidebar .nav-link,

html[data-theme="light"]
.sidebar .nav-link span {
  color:
    rgba(255,255,255,.87) !important;
}


html[data-theme="light"]
.sidebar .nav-link:hover,

html[data-theme="light"]
.sidebar .nav-link:hover span {
  color:
    #ffffff !important;
}


html[data-theme="light"]
.sidebar .nav-link.active {
  color:
    #ffffff !important;

  background:
    rgba(255,255,255,.16) !important;

  box-shadow:
    inset 3px 0 0 #9be2c1 !important;
}


html[data-theme="light"]
.sidebar .nav-link.active span {
  color:
    #ffffff !important;

  font-weight:
    600 !important;
}


/* =========================================================
   TEMA ESCURO
   ITEM ATIVO EM AMARELO
   ========================================================= */

html[data-theme="dark"] .sidebar {
  background:
    linear-gradient(
      180deg,
      #071b15 0%,
      #09291f 52%,
      #0b3829 100%
    ) !important;
}


html[data-theme="dark"]
.sidebar .nav-group-title {
  color:
    rgba(228,240,234,.57) !important;
}


html[data-theme="dark"]
.sidebar .nav-link,

html[data-theme="dark"]
.sidebar .nav-link span {
  color:
    rgba(235,245,240,.79) !important;
}


html[data-theme="dark"]
.sidebar .nav-link:hover,

html[data-theme="dark"]
.sidebar .nav-link:hover span {
  color:
    #ffffff !important;
}


html[data-theme="dark"]
.sidebar .nav-link.active {
  color:
    #ffd84d !important;

  background:
    rgba(255,216,77,.10) !important;

  box-shadow:
    inset 3px 0 0 #ffd84d !important;
}


html[data-theme="dark"]
.sidebar .nav-link.active span {
  color:
    #ffd84d !important;

  font-weight:
    600 !important;
}


/* Marca também o grupo que contém item ativo */

html[data-theme="dark"]
.nav-group:has(.nav-link.active)
.nav-group-title {
  color:
    #e7d789 !important;
}


html[data-theme="light"]
.nav-group:has(.nav-link.active)
.nav-group-title {
  color:
    rgba(255,255,255,.96) !important;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.sidebar-footer {
  flex:
    0 0 auto;

  padding:
    9px 15px 11px !important;

  background:
    rgba(0,0,0,.055);

  border-top:
    1px solid rgba(255,255,255,.09);
}


.system-version {
  font-size:
    10px;
}


.system-copyright {
  font-size:
    9px;
}


/* Mobile */

@media (max-width: 900px) {

  .sidebar-groups {
    padding-bottom:
      14px;
  }

}


/* =========================================================
   GENESIS — LOGIN
   Correção definitiva do botão Entrar
   ========================================================= */

.login-card .login-form-wrap .btn.btn-primary.btn-block,
.login-card form .btn.btn-primary.btn-block {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-height: 44px !important;

  margin-top: 8px !important;
  padding: 10px 18px !important;

  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  background: #0b6b4b !important;
  background-image: none !important;

  border: 1px solid #0b6b4b !important;
  border-radius: 9px !important;

  opacity: 1 !important;
  visibility: visible !important;

  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;

  cursor: pointer !important;

  box-shadow:
    0 4px 12px rgba(11,107,75,.16) !important;

  transition:
    background .16s ease,
    transform .16s ease,
    box-shadow .16s ease !important;
}


.login-card .login-form-wrap .btn.btn-primary.btn-block:hover,
.login-card form .btn.btn-primary.btn-block:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  background: #07563c !important;
  border-color: #07563c !important;

  transform: translateY(-1px) !important;

  box-shadow:
    0 6px 16px rgba(11,107,75,.22) !important;
}


.login-card .login-form-wrap .btn.btn-primary.btn-block:focus-visible,
.login-card form .btn.btn-primary.btn-block:focus-visible {
  outline: none !important;

  box-shadow:
    0 0 0 3px rgba(27,150,105,.22),
    0 5px 14px rgba(11,107,75,.18) !important;
}


/* Tema escuro */

html[data-theme="dark"]
.login-card .login-form-wrap .btn.btn-primary.btn-block,

html[data-theme="dark"]
.login-card form .btn.btn-primary.btn-block {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  background: #16805e !important;
  border-color: #16805e !important;

  opacity: 1 !important;
}


html[data-theme="dark"]
.login-card .login-form-wrap .btn.btn-primary.btn-block:hover,

html[data-theme="dark"]
.login-card form .btn.btn-primary.btn-block:hover {
  background: #1b9670 !important;
  border-color: #1b9670 !important;
}



/* =========================================================
   GENESIS — CONTRASTE FINAL DO MENU
   ========================================================= */

/* Tema claro: menu branco sobre verde */

html[data-theme="light"] .sidebar .nav-link,
html[data-theme="light"] .sidebar .nav-link span {
  color: #edf8f3 !important;
  -webkit-text-fill-color: #edf8f3 !important;
}


html[data-theme="light"] .sidebar .nav-link.active,
html[data-theme="light"] .sidebar .nav-link.active span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* Tema escuro: item atual amarelo */

html[data-theme="dark"] .sidebar .nav-link.active,
html[data-theme="dark"] .sidebar .nav-link.active span {
  color: #ffd84d !important;
  -webkit-text-fill-color: #ffd84d !important;
}


html[data-theme="dark"] .sidebar .nav-link.active {
  background: rgba(255,216,77,.10) !important;

  box-shadow:
    inset 3px 0 0 #ffd84d !important;
}



/* =========================================================
   GENESIS — CARDS COM ACENTO LATERAL
   ========================================================= */

.panel,
.kpi,
.module-card,
.task-card {
  position: relative;
  border-left: 4px solid var(--ui-green-600) !important;
}


/* Cards estatísticos ganham pequenas variações,
   mantendo a identidade institucional */

.kpi:nth-child(4n + 1) {
  border-left-color: #16805e !important;
}

.kpi:nth-child(4n + 2) {
  border-left-color: #2f8f72 !important;
}

.kpi:nth-child(4n + 3) {
  border-left-color: #d0a928 !important;
}

.kpi:nth-child(4n + 4) {
  border-left-color: #4b8ca8 !important;
}


/* Cards de módulos */

.module-card {
  border-left-color: #16805e !important;
}


/* Cards de tarefas / agenda */

.task-card {
  border-left-color: #d0a928 !important;
}


/* Tema escuro */

html[data-theme="dark"] .panel,
html[data-theme="dark"] .module-card {
  border-left-color: #41b98d !important;
}

html[data-theme="dark"] .task-card {
  border-left-color: #ffd84d !important;
}


/* Mantém o raio visual correto do card */

.panel,
.kpi,
.module-card,
.task-card {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
}



/* =========================================================
   GENESIS — CRIANÇAS REGISTRADAS
   TABELA COMPACTA SEM ROLAGEM HORIZONTAL
   ========================================================= */

.registered-children-table-wrap {
  width: 100%;
  overflow-x: visible !important;
}


.registered-children-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}


/* Permite quebra de linha em todas as células */

.registered-children-table th,
.registered-children-table td {
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;

  padding: 10px 8px !important;

  font-size: 11.5px;
  line-height: 1.35;

  vertical-align: middle;
}


/* Cabeçalho um pouco menor */

.registered-children-table th {
  font-size: 9.5px !important;
  font-weight: 700 !important;

  letter-spacing: .025em;
}


/* ---------------------------------------------------------
   Distribuição das colunas
   --------------------------------------------------------- */

/* Criança */
.registered-children-table th:nth-child(1),
.registered-children-table td:nth-child(1) {
  width: 14%;
}


/* Mãe */
.registered-children-table th:nth-child(2),
.registered-children-table td:nth-child(2) {
  width: 15%;
}


/* Pai */
.registered-children-table th:nth-child(3),
.registered-children-table td:nth-child(3) {
  width: 14%;
}


/* DNV */
.registered-children-table th:nth-child(4),
.registered-children-table td:nth-child(4) {
  width: 11%;
}


/* Nascimento */
.registered-children-table th:nth-child(5),
.registered-children-table td:nth-child(5) {
  width: 9%;
}


/* Maternidade */
.registered-children-table th:nth-child(6),
.registered-children-table td:nth-child(6) {
  width: 13%;
}


/* Registro */
.registered-children-table th:nth-child(7),
.registered-children-table td:nth-child(7) {
  width: 9%;
}


/* Origem */
.registered-children-table th:nth-child(8),
.registered-children-table td:nth-child(8) {
  width: 8%;
}


/* Ação */
.registered-children-table th:nth-child(9),
.registered-children-table td:nth-child(9) {
  width: 7%;
}


/* ---------------------------------------------------------
   Maternidade:
   permite quebra natural em duas ou mais linhas
   --------------------------------------------------------- */

.registered-maternity {
  white-space: normal !important;
  line-height: 1.3 !important;
}


.registered-maternity span {
  display: block;

  max-width: 100%;

  white-space: normal !important;
  overflow-wrap: break-word;
}


/* Também permite que nomes longos da mãe/pai/criança quebrem */

.registered-children-table td:nth-child(1),
.registered-children-table td:nth-child(2),
.registered-children-table td:nth-child(3) {
  overflow-wrap: anywhere;
}


/* DNV continua legível */

.registered-children-table td:nth-child(4) {
  font-size: 10.5px;
}


/* Botão/link da ação mais compacto */

.registered-children-table td:last-child .btn,
.registered-children-table td:last-child .text-link {
  font-size: 10.5px;
}


/* =========================================================
   TELAS MENORES
   ========================================================= */

@media (max-width: 1200px) {

  .registered-children-table th,
  .registered-children-table td {
    padding: 8px 6px !important;
    font-size: 10.5px;
  }

  .registered-children-table th {
    font-size: 9px !important;
  }

}


@media (max-width: 900px) {

  /*
     Em telas realmente pequenas ainda permitimos scroll.
     É melhor do que comprimir os dados até ficarem ilegíveis.
  */

  .registered-children-table-wrap {
    overflow-x: auto !important;
  }

  .registered-children-table {
    min-width: 820px;
  }

}



/* =========================================================
   CRIANÇAS REGISTRADAS — 8 COLUNAS
   Origem removida da apresentação
   ========================================================= */

.registered-children-table {
  width: 100% !important;
  table-layout: fixed !important;
}

.registered-children-table th,
.registered-children-table td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* Criança */
.registered-children-table th:nth-child(1),
.registered-children-table td:nth-child(1) {
  width: 16% !important;
}

/* Mãe */
.registered-children-table th:nth-child(2),
.registered-children-table td:nth-child(2) {
  width: 17% !important;
}

/* Pai */
.registered-children-table th:nth-child(3),
.registered-children-table td:nth-child(3) {
  width: 15% !important;
}

/* DNV */
.registered-children-table th:nth-child(4),
.registered-children-table td:nth-child(4) {
  width: 12% !important;
}

/* Nascimento */
.registered-children-table th:nth-child(5),
.registered-children-table td:nth-child(5) {
  width: 10% !important;
}

/* Maternidade */
.registered-children-table th:nth-child(6),
.registered-children-table td:nth-child(6) {
  width: 17% !important;
  white-space: normal !important;
}

/* Registro */
.registered-children-table th:nth-child(7),
.registered-children-table td:nth-child(7) {
  width: 7% !important;
}

/* Ação */
.registered-children-table th:nth-child(8),
.registered-children-table td:nth-child(8) {
  width: 6% !important;
}

.registered-maternity,
.registered-maternity span {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.3 !important;
}



/* =========================================================
   GENESIS — ACENTO VERTICAL DEFINITIVO NOS CARDS
   ========================================================= */

.panel,
.kpi,
.module-card,
.task-card,
.case-card,
.stat-card,
.metric-card {
  --card-accent: #16805e;

  position: relative !important;

  border-left-width: 1px !important;

  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 3px 14px rgba(20,54,41,.045) !important;
}


/* Variações discretas nos indicadores */

.kpi:nth-child(4n + 1),
.stat-card:nth-child(4n + 1),
.metric-card:nth-child(4n + 1) {
  --card-accent: #16805e;
}

.kpi:nth-child(4n + 2),
.stat-card:nth-child(4n + 2),
.metric-card:nth-child(4n + 2) {
  --card-accent: #3b8fa3;
}

.kpi:nth-child(4n + 3),
.stat-card:nth-child(4n + 3),
.metric-card:nth-child(4n + 3) {
  --card-accent: #d0a928;
}

.kpi:nth-child(4n + 4),
.stat-card:nth-child(4n + 4),
.metric-card:nth-child(4n + 4) {
  --card-accent: #7a68a6;
}


/* Cards de acompanhamento */

.task-card,
.case-card {
  --card-accent: #d0a928;
}


/* Tema escuro */

html[data-theme="dark"] .panel,
html[data-theme="dark"] .module-card,
html[data-theme="dark"] .case-card {
  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 5px 18px rgba(0,0,0,.20) !important;
}



/* =========================================================
   GENESIS — CARDS INICIAIS
   Faixa colorida somente nos cards de destaque
   ========================================================= */


/* ---------------------------------------------------------
   PRIMEIRO: remove o acento das áreas que NÃO são cards
   --------------------------------------------------------- */

.panel,
.task-card,
.case-card {
  --card-accent: transparent !important;

  border-left:
    1px solid var(--ui-border) !important;

  box-shadow:
    var(--ui-shadow) !important;
}


/* Tabelas e painéis permanecem neutros */

.panel table,
.table-wrap,
.table-responsive,
.registered-children-table-wrap,
.fatherhood-panel {
  box-shadow:
    none !important;
}


/* ---------------------------------------------------------
   CARDS QUE RECEBEM A FAIXA VERTICAL
   --------------------------------------------------------- */

.kpi-grid > .kpi,
.module-grid > .module-card {
  position:
    relative !important;

  overflow:
    hidden;

  border:
    1px solid var(--ui-border) !important;

  border-left:
    1px solid var(--ui-border) !important;

  border-radius:
    12px !important;

  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 3px 14px rgba(20,54,41,.055) !important;

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}


/* Movimento muito discreto */

.kpi-grid > .kpi:hover,
.module-grid > .module-card:hover {
  transform:
    translateY(-1px);

  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 7px 20px rgba(20,54,41,.08) !important;
}


/* ---------------------------------------------------------
   CORES DAS FAIXAS
   --------------------------------------------------------- */

.kpi-grid > .kpi:nth-child(4n + 1),
.module-grid > .module-card:nth-child(4n + 1) {
  --card-accent:
    #16805e;
}


.kpi-grid > .kpi:nth-child(4n + 2),
.module-grid > .module-card:nth-child(4n + 2) {
  --card-accent:
    #388fa1;
}


.kpi-grid > .kpi:nth-child(4n + 3),
.module-grid > .module-card:nth-child(4n + 3) {
  --card-accent:
    #d0a928;
}


.kpi-grid > .kpi:nth-child(4n + 4),
.module-grid > .module-card:nth-child(4n + 4) {
  --card-accent:
    #7666a3;
}


/* =========================================================
   TEMA CLARO
   Cards levemente destacados do fundo
   ========================================================= */

html[data-theme="light"]
.kpi-grid > .kpi,

html[data-theme="light"]
.module-grid > .module-card {

  background:
    linear-gradient(
      180deg,
      #fbfdfc 0%,
      #f5f9f7 100%
    ) !important;

  border-color:
    #dce7e1 !important;
}


/* Cada KPI ganha uma nuance extremamente leve */

html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 1) {
  background:
    linear-gradient(
      180deg,
      #fbfefd 0%,
      #f1f8f5 100%
    ) !important;
}


html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 2) {
  background:
    linear-gradient(
      180deg,
      #fbfdfe 0%,
      #f2f7f9 100%
    ) !important;
}


html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 3) {
  background:
    linear-gradient(
      180deg,
      #fffefb 0%,
      #faf8ef 100%
    ) !important;
}


html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 4) {
  background:
    linear-gradient(
      180deg,
      #fdfcfe 0%,
      #f6f4fa 100%
    ) !important;
}


/* =========================================================
   TEMA ESCURO
   Mantém fundo escuro com faixa colorida
   ========================================================= */

html[data-theme="dark"]
.kpi-grid > .kpi,

html[data-theme="dark"]
.module-grid > .module-card {

  background:
    var(--ui-surface) !important;

  border-color:
    var(--ui-border) !important;

  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 5px 18px rgba(0,0,0,.18) !important;
}


/* Painéis/tabelas no escuro continuam neutros */

html[data-theme="dark"] .panel {
  background:
    var(--ui-surface) !important;

  border:
    1px solid var(--ui-border) !important;

  box-shadow:
    var(--ui-shadow) !important;
}



/* =========================================================
   GENESIS — KPI CARDS V2
   Compactos + cores suaves no tema claro
   ========================================================= */


/* ---------------------------------------------------------
   Remove definitivamente faixa colorida de tabelas,
   painéis, módulos e cards de conteúdo
   --------------------------------------------------------- */

.panel,
.module-card,
.task-card,
.case-card,
.metric-card,
.stat-card {
  border-left:
    1px solid var(--ui-border) !important;

  box-shadow:
    var(--ui-shadow) !important;
}


/* ---------------------------------------------------------
   SOMENTE CARDS INICIAIS / KPI
   --------------------------------------------------------- */

.kpi-grid > .kpi {
  position:
    relative !important;

  display:
    flex !important;

  flex-direction:
    column !important;

  justify-content:
    flex-start !important;

  min-height:
    124px !important;

  height:
    auto !important;

  padding:
    15px 20px 14px 25px !important;

  overflow:
    hidden !important;

  border:
    1px solid var(--ui-border) !important;

  border-left:
    1px solid var(--ui-border) !important;

  border-radius:
    12px !important;

  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 3px 12px rgba(20,54,41,.045) !important;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}


.kpi-grid > .kpi:hover {
  transform:
    translateY(-1px);

  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 7px 18px rgba(20,54,41,.07) !important;
}


/* Texto do título */

.kpi-grid > .kpi > span {
  margin:
    0 0 5px !important;

  font-size:
    12px !important;

  font-weight:
    600 !important;

  line-height:
    1.3 !important;
}


/* Número principal */

.kpi-grid > .kpi > strong {
  margin:
    0 0 3px !important;

  font-size:
    28px !important;

  font-weight:
    650 !important;

  line-height:
    1.05 !important;

  letter-spacing:
    -.025em;
}


/* Texto auxiliar */

.kpi-grid > .kpi > small {
  margin:
    2px 0 0 !important;

  font-size:
    11.5px !important;

  line-height:
    1.35 !important;
}


/* =========================================================
   CORES INDIVIDUAIS
   ========================================================= */

/* Verde */

.kpi-grid > .kpi:nth-child(4n + 1) {
  --card-accent:
    #15966b;
}


/* Azul */

.kpi-grid > .kpi:nth-child(4n + 2) {
  --card-accent:
    #3b97ae;
}


/* Amarelo */

.kpi-grid > .kpi:nth-child(4n + 3) {
  --card-accent:
    #d4a928;
}


/* Lilás */

.kpi-grid > .kpi:nth-child(4n + 4) {
  --card-accent:
    #796cac;
}


/* =========================================================
   TEMA CLARO
   Fundo suave correspondente à faixa lateral
   ========================================================= */

html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 1) {
  background:
    linear-gradient(
      135deg,
      #f5fbf8 0%,
      #edf8f3 100%
    ) !important;
}


html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 2) {
  background:
    linear-gradient(
      135deg,
      #f5fafc 0%,
      #edf6f9 100%
    ) !important;
}


html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 3) {
  background:
    linear-gradient(
      135deg,
      #fffdf7 0%,
      #faf6e8 100%
    ) !important;
}


html[data-theme="light"]
.kpi-grid > .kpi:nth-child(4n + 4) {
  background:
    linear-gradient(
      135deg,
      #faf9fc 0%,
      #f3f1f8 100%
    ) !important;
}


/* =========================================================
   TEMA ESCURO
   ========================================================= */

html[data-theme="dark"]
.kpi-grid > .kpi {
  background:
    var(--ui-surface) !important;

  border-color:
    var(--ui-border) !important;

  box-shadow:
    inset 4px 0 0 var(--card-accent),
    0 4px 16px rgba(0,0,0,.18) !important;
}


/* =========================================================
   TABELA CRIANÇAS REGISTRADAS
   ========================================================= */

.registered-children-panel {
  border-left:
    1px solid var(--ui-border) !important;

  box-shadow:
    var(--ui-shadow) !important;
}


.registered-children-table-wrap {
  overflow-x:
    visible !important;
}


.registered-children-table {
  width:
    100% !important;

  table-layout:
    fixed !important;
}


.registered-children-table th,
.registered-children-table td {
  white-space:
    normal !important;

  overflow-wrap:
    break-word !important;

  word-break:
    normal !important;

  vertical-align:
    middle !important;
}


/* Criança */

.registered-children-table th:nth-child(1),
.registered-children-table td:nth-child(1) {
  width:
    16% !important;
}


/* Mãe */

.registered-children-table th:nth-child(2),
.registered-children-table td:nth-child(2) {
  width:
    17% !important;
}


/* Pai */

.registered-children-table th:nth-child(3),
.registered-children-table td:nth-child(3) {
  width:
    15% !important;
}


/* DNV */

.registered-children-table th:nth-child(4),
.registered-children-table td:nth-child(4) {
  width:
    12% !important;
}


/* Nascimento */

.registered-children-table th:nth-child(5),
.registered-children-table td:nth-child(5) {
  width:
    10% !important;
}


/* Maternidade */

.registered-children-table th:nth-child(6),
.registered-children-table td:nth-child(6) {
  width:
    17% !important;

  white-space:
    normal !important;
}


/* Registro civil */

.registered-children-table th:nth-child(7),
.registered-children-table td:nth-child(7) {
  width:
    8% !important;
}


/* Ação */

.registered-children-table th:nth-child(8),
.registered-children-table td:nth-child(8) {
  width:
    5% !important;
}


.registered-maternity span {
  display:
    block;

  max-width:
    100%;

  white-space:
    normal !important;

  overflow-wrap:
    break-word !important;

  line-height:
    1.3 !important;
}


.table-muted {
  color:
    var(--ui-muted);

  font-style:
    italic;
}


/* Em celular/tablet permitimos scroll */

@media (max-width: 900px) {

  .registered-children-table-wrap {
    overflow-x:
      auto !important;
  }

  .registered-children-table {
    min-width:
      820px !important;
  }

}



/* =========================================================
   CRIANÇAS REGISTRADAS
   Mais espaço para o número do Registro Civil
   ========================================================= */

/* Maternidade: reduzida de 17% para 12% */
.registered-children-table th:nth-child(6),
.registered-children-table td:nth-child(6) {
  width: 12% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.25 !important;
}


/* Registro Civil: aumentado de 8% para 13% */
.registered-children-table th:nth-child(7),
.registered-children-table td:nth-child(7) {
  width: 13% !important;
}


/* Número do registro:
   prioriza leitura e evita quebra em qualquer caractere */
.registered-children-table td:nth-child(7) {
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  font-size: 10.5px !important;
  line-height: 1.3 !important;
}


/* Mantém a maternidade compacta */
.registered-maternity,
.registered-maternity span {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.25 !important;
}



/* =========================================================
   GENESIS — CARDS DO MAPA DE CALOR
   ========================================================= */

.territorial-summary {
  display: grid !important;
  grid-template-columns:
    repeat(4, minmax(0, 1fr)) !important;

  gap: 16px !important;
}


.territorial-summary > .territorial-stat {
  --territorial-accent: #15966b;

  position: relative !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;

  min-height: 124px !important;
  height: auto !important;

  padding:
    15px 18px 14px 24px !important;

  overflow: hidden !important;

  border:
    1px solid var(--ui-border) !important;

  border-left:
    1px solid var(--ui-border) !important;

  border-radius:
    12px !important;

  box-shadow:
    inset 4px 0 0 var(--territorial-accent),
    0 3px 12px rgba(20,54,41,.045) !important;

  transition:
    transform .15s ease,
    box-shadow .15s ease !important;
}


.territorial-summary > .territorial-stat:hover {
  transform:
    translateY(-1px);

  box-shadow:
    inset 4px 0 0 var(--territorial-accent),
    0 7px 18px rgba(20,54,41,.07) !important;
}


/* ---------------------------------------------------------
   TIPOGRAFIA
   --------------------------------------------------------- */

.territorial-stat > span {
  margin: 0 0 5px !important;

  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}


.territorial-stat > strong {
  margin: 0 0 3px !important;

  font-size: 28px !important;
  font-weight: 650 !important;
  line-height: 1.05 !important;

  letter-spacing: -.025em;
}


.territorial-stat > small {
  margin: 2px 0 0 !important;

  font-size: 11.5px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;

  color: var(--ui-muted) !important;
}


/* =========================================================
   CORES DAS QUATRO CATEGORIAS
   ========================================================= */


/* 1 — Nascimentos filtrados / Verde */

.territorial-summary
> .territorial-stat:nth-child(1) {
  --territorial-accent:
    #15966b;
}


/* 2 — Sem registro / Âmbar */

.territorial-summary
> .territorial-stat:nth-child(2) {
  --territorial-accent:
    #d39a24;
}


/* 3 — Registrados / Azul */

.territorial-summary
> .territorial-stat:nth-child(3) {
  --territorial-accent:
    #3b97ae;
}


/* 4 — Localidades / Lilás */

.territorial-summary
> .territorial-stat:nth-child(4) {
  --territorial-accent:
    #796cac;
}


/* =========================================================
   TEMA CLARO
   Fundos suaves correspondentes à faixa
   ========================================================= */


/* Verde */

html[data-theme="light"]
.territorial-summary
> .territorial-stat:nth-child(1) {

  background:
    linear-gradient(
      135deg,
      #f6fcf9 0%,
      #edf8f3 100%
    ) !important;
}


/* Âmbar */

html[data-theme="light"]
.territorial-summary
> .territorial-stat:nth-child(2) {

  background:
    linear-gradient(
      135deg,
      #fffdf7 0%,
      #faf5e5 100%
    ) !important;
}


/* Azul */

html[data-theme="light"]
.territorial-summary
> .territorial-stat:nth-child(3) {

  background:
    linear-gradient(
      135deg,
      #f6fbfc 0%,
      #edf6f9 100%
    ) !important;
}


/* Lilás */

html[data-theme="light"]
.territorial-summary
> .territorial-stat:nth-child(4) {

  background:
    linear-gradient(
      135deg,
      #fbfafd 0%,
      #f3f1f8 100%
    ) !important;
}


/* =========================================================
   TEMA ESCURO
   ========================================================= */

html[data-theme="dark"]
.territorial-summary
> .territorial-stat {

  background:
    var(--ui-surface) !important;

  border-color:
    var(--ui-border) !important;

  box-shadow:
    inset 4px 0 0 var(--territorial-accent),
    0 4px 16px rgba(0,0,0,.18) !important;
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1150px) {

  .territorial-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

}


@media (max-width: 650px) {

  .territorial-summary {
    grid-template-columns:
      1fr !important;
  }

}



/* =========================================================
   MAPA DE CALOR — CARDS MAIS COMPACTOS
   Altura baseada somente no conteúdo
   ========================================================= */

.territorial-summary > .territorial-stat {
  min-height: 0 !important;
  height: auto !important;

  padding:
    12px 16px 11px 21px !important;

  justify-content:
    flex-start !important;
}


/* Título */

.territorial-stat > span {
  margin:
    0 0 3px !important;

  font-size:
    11.5px !important;

  line-height:
    1.25 !important;
}


/* Número principal */

.territorial-stat > strong {
  margin:
    0 0 2px !important;

  font-size:
    25px !important;

  line-height:
    1 !important;
}


/* Texto auxiliar */

.territorial-stat > small {
  margin:
    1px 0 0 !important;

  font-size:
    11px !important;

  line-height:
    1.25 !important;
}


/* Espaço entre os cards */

.territorial-summary {
  gap:
    12px !important;
}



/* =========================================================
   GENESIS — BUSCA ATIVA
   Tabela compacta e sem rolagem lateral no desktop
   ========================================================= */

.active-search-table-wrap {
  width: 100% !important;
  overflow-x: visible !important;
}


.active-search-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}


.active-search-table th,
.active-search-table td {
  padding: 9px 8px !important;

  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;

  vertical-align: middle !important;

  font-size: 11.5px !important;
  line-height: 1.3 !important;
}


.active-search-table th {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}


.active-search-table .th-secondary {
  display: block;

  margin-top: 1px;

  font-size: 9px;
  font-weight: 600;
}


/* =========================================================
   DISTRIBUIÇÃO DAS COLUNAS
   ========================================================= */

/* Mãe / Assistida */

.active-search-table th:nth-child(1),
.active-search-table td:nth-child(1) {
  width: 23% !important;
}


/* DNV + nascimento */

.active-search-table th:nth-child(2),
.active-search-table td:nth-child(2) {
  width: 14% !important;
}


/* Contato */

.active-search-table th:nth-child(3),
.active-search-table td:nth-child(3) {
  width: 15% !important;
}


/* Sem registro */

.active-search-table th:nth-child(4),
.active-search-table td:nth-child(4) {
  width: 10% !important;
}


/* Procedimento */

.active-search-table th:nth-child(5),
.active-search-table td:nth-child(5) {
  width: 22% !important;
}


/* Ação */

.active-search-table th:nth-child(6),
.active-search-table td:nth-child(6) {
  width: 16% !important;
}


/* =========================================================
   DNV E NASCIMENTO
   ========================================================= */

.active-search-table td:nth-child(2) {
  white-space: normal !important;
}

.active-search-table td:nth-child(2) strong,
.active-search-table td:nth-child(2) small,
.active-search-table td:nth-child(2) span {
  display: block;
}

.active-search-table td:nth-child(2) small {
  margin-top: 3px;
}


/* =========================================================
   CONTATO
   ========================================================= */

.active-search-table td:nth-child(3) {
  white-space: normal !important;
}

.active-search-table td:nth-child(3) strong,
.active-search-table td:nth-child(3) small,
.active-search-table td:nth-child(3) span,
.active-search-table td:nth-child(3) a {
  display: block;
}


/* =========================================================
   PROCEDIMENTO
   ========================================================= */

.active-search-table td:nth-child(5) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.active-search-table td:nth-child(5) strong,
.active-search-table td:nth-child(5) small,
.active-search-table td:nth-child(5) span {
  display: block;
}

.active-search-table td:nth-child(5) small {
  margin-top: 3px;
}


/* =========================================================
   BOTÃO ABRIR ATENDIMENTO
   ========================================================= */

.active-search-table td:nth-child(6) {
  text-align: center;
}


.active-search-table td:nth-child(6) .btn {
  width: 100%;
  max-width: 135px;

  min-height: 34px !important;

  padding: 6px 8px !important;

  white-space: normal !important;

  font-size: 10.5px !important;
  line-height: 1.2 !important;
}


/* Tema claro — botão sempre visível */

html[data-theme="light"]
.active-search-table .btn.btn-primary,

html:not([data-theme="dark"])
.active-search-table .btn.btn-primary {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  background: #0b6b4b !important;

  border:
    1px solid #0b6b4b !important;

  opacity: 1 !important;
  visibility: visible !important;

  box-shadow: none !important;
}


html[data-theme="light"]
.active-search-table .btn.btn-primary:hover,

html:not([data-theme="dark"])
.active-search-table .btn.btn-primary:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  background: #07563c !important;
  border-color: #07563c !important;
}


/* Tema escuro */

html[data-theme="dark"]
.active-search-table .btn.btn-primary {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  background: #16805e !important;
  border-color: #16805e !important;

  opacity: 1 !important;
  visibility: visible !important;
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1100px) {

  .active-search-table th,
  .active-search-table td {
    padding: 8px 6px !important;
    font-size: 10.5px !important;
  }

  .active-search-table th {
    font-size: 9px !important;
  }

}


@media (max-width: 800px) {

  /*
     Em celular permitimos rolagem.
     Não vale sacrificar a legibilidade dos dados.
  */

  .active-search-table-wrap {
    overflow-x: auto !important;
  }

  .active-search-table {
    min-width: 760px !important;
  }

}

/* Correção: Exportar PDF — Relatórios da Direção — tema claro */
html[data-theme="light"] .report-grid .module-card > a.btn.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(
    180deg,
    #159a6b 0%,
    #07513b 100%
  ) !important;
  border: 1px solid #0f7a56 !important;
  box-shadow: 0 8px 18px rgba(11, 107, 75, 0.22) !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
}

/* Efeito ao passar o mouse */
html[data-theme="light"] .report-grid .module-card > a.btn.btn-primary:hover {
  color: #ffffff !important;
  background: #07513b !important;
  border-color: #053629 !important;
  box-shadow: 0 10px 22px rgba(7, 81, 59, 0.28) !important;
}

/* Acessibilidade ao navegar pelo teclado */
html[data-theme="light"] .report-grid .module-card > a.btn.btn-primary:focus-visible {
  color: #ffffff !important;
  outline: 3px solid rgba(21, 154, 107, 0.30) !important;
  outline-offset: 2px;
}

/* Correção: botão Abrir relatórios gerenciais — tema claro */
html[data-theme="light"]
.page-intro > a.btn.btn-primary[href$="/direcao/relatorios/"] {
  color: #ffffff !important;
  background: linear-gradient(
    180deg,
    #159a6b 0%,
    #07513b 100%
  ) !important;
  border: 1px solid #0f7a56 !important;
  box-shadow: 0 8px 18px rgba(11, 107, 75, 0.22) !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-decoration: none !important;
}

/* Passar o mouse */
html[data-theme="light"]
.page-intro > a.btn.btn-primary[href$="/direcao/relatorios/"]:hover {
  color: #ffffff !important;
  background: #07513b !important;
  border-color: #053629 !important;
  box-shadow: 0 10px 22px rgba(7, 81, 59, 0.28) !important;
}

/* Navegação pelo teclado */
html[data-theme="light"]
.page-intro > a.btn.btn-primary[href$="/direcao/relatorios/"]:focus-visible {
  color: #ffffff !important;
  outline: 3px solid rgba(21, 154, 107, 0.30) !important;
  outline-offset: 2px;
}

