:root{--ag13-brown:#2b160f;--ag13-orange:#ff7b16;--ag13-bg:#f7f6f2;--ag13-border:#e8e4de;--ag13-text:#111827;--ag13-muted:#75808a}
body.agro13{background:var(--ag13-bg)!important;font-family:Poppins,Manrope,system-ui,sans-serif!important;color:var(--ag13-text)!important}
body.agro13 .sidebar{width:240px!important;background:linear-gradient(180deg,#2d170f,#25110d)!important;border:0!important;padding:18px 10px 82px!important;position:fixed!important;overflow:hidden!important}
body.agro13 .main-content{margin-left:240px!important;background:var(--ag13-bg)!important;padding:0 14px 30px!important;min-height:100vh!important}
body.agro13 .topbar{height:64px!important;background:#fff!important;border:0!important;margin:0!important;padding:0!important;position:sticky!important;top:0!important;z-index:50!important}
body.agro13 .topbar>*:not(.ag13-top){display:none!important}.ag13-top{height:64px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px}
.ag13-search{width:min(520px,46vw);height:40px;border:1px solid #e5e2dd;border-radius:10px;background:#fff;display:flex;align-items:center;gap:9px;padding:0 13px}.ag13-search span{font-size:20px}.ag13-search input{border:0!important;outline:0!important;background:transparent!important;width:100%!important;box-shadow:none!important;font-size:12px!important}
.ag13-top-right{display:flex;align-items:center;gap:16px}.ag13-date{font-size:11px;color:#374151;border:1px solid #e6e2dd;padding:9px 13px;border-radius:10px}.ag13-bell{position:relative;border:0;background:transparent;font-size:20px}.ag13-bell i{position:absolute;right:-5px;top:-5px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:var(--ag13-orange);color:#fff;font:700 8px/1 system-ui}.ag13-user b{display:block;font-size:11px}.ag13-user small{display:block;font-size:9px;color:#7c838a}
body.agro13 #sideNav{display:flex!important;flex-direction:column!important;gap:2px!important;overflow:auto!important;padding-bottom:14px!important}body.agro13 #sideNav::-webkit-scrollbar{width:3px}body.agro13 #sideNav::-webkit-scrollbar-thumb{background:#ffffff22}
body.agro13 .ag13-nav{min-height:39px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#f6eee9!important;padding:8px 12px!important;margin:0!important;display:flex!important;align-items:center!important;gap:10px!important;font-size:11px!important;font-weight:500!important}
body.agro13 .ag13-nav:hover{background:#ffffff0d!important}body.agro13 .ag13-nav.active{background:linear-gradient(90deg,#ff8b24,#ff700b)!important;color:#fff!important;font-weight:700!important}.ag13-menu-label{margin:12px 8px 5px;padding-top:12px;border-top:1px solid #ffffff24;color:#9e8d86;font-size:8px;letter-spacing:.1em}
body.agro13 .sidebar-brand{margin-bottom:12px!important}.manga-bela-logo.compact{width:74px!important;height:74px!important}.ag-brand-copy strong{font-size:22px!important}
body.agro13 #agrohubPage.active{display:block!important;padding:0!important;margin:0!important;max-width:none!important;overflow:visible!important}
.ag13-headstrip{height:104px;background:#fff;border-radius:0 0 18px 18px;margin:0 0 12px;position:relative;overflow:hidden;border:1px solid #ebe7e1}.ag13-title{position:absolute;left:22px;top:20px;display:flex;gap:12px;align-items:center;z-index:3}.ag13-title>span{font-size:30px}.ag13-title h1{margin:0;font-size:25px;line-height:1.05}.ag13-title p{margin:5px 0 0;font-size:11px;color:#4b5563}.ag13-ribbon{position:absolute;right:-30px;top:-55px;width:70%;height:160px;background:linear-gradient(160deg,transparent 0 38%,#ff7b16 39% 48%,#168ecf 49% 58%,transparent 59%),linear-gradient(180deg,#c7e8f1,#7ca66d 70%,#5d7f3b);clip-path:polygon(16% 0,100% 0,100% 100%,0 76%)}
.ag13-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:10px}.ag13-kpi{background:#fff;border:1px solid var(--ag13-border);border-radius:12px;padding:12px;display:flex;gap:10px;align-items:flex-start;min-height:100px}.ag13-kpi .ico{width:36px;height:36px;border-radius:8px;background:#e8f7ec;color:#33a852;display:grid;place-items:center;font-size:18px;flex:0 0 36px}.ag13-kpi .ico.orange{background:#fff1e2;color:#ff7b16}.ag13-kpi .ico.blue{background:#eaf4ff;color:#2189df}.ag13-kpi small{display:block;font-size:9px;color:#66717b}.ag13-kpi strong{display:block;font-size:18px;margin:5px 0}.ag13-kpi em{font-style:normal;font-size:8px;color:#2c9349}
.ag13-homegrid{display:grid;grid-template-columns:1.22fr 1fr .72fr;gap:10px}.ag13-homegrid>.left,.ag13-homegrid>.mid,.ag13-homegrid>.right{display:flex;flex-direction:column;gap:10px}
.ag13-card{background:#fff;border:1px solid var(--ag13-border);border-radius:12px;padding:12px;box-shadow:0 4px 14px rgba(56,39,21,.04);min-width:0}.ag13-cardhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.ag13-cardhead>b{font-size:13px}.ag13-cardhead>div{display:flex;gap:6px}.ag13-cardhead select,.ag13-cardhead button{border:1px solid #e3dfd9;background:#fff;border-radius:8px;padding:6px 9px;font-size:9px}.ag13-cardhead>button{border:0;color:#1477d0;background:transparent;cursor:pointer}
.ag13-map{height:280px;border-radius:9px;overflow:hidden;background:#e9ecef}.ag13-map.editor{height:570px}.ag13-map-note{margin-top:8px;padding:9px 10px;border-radius:8px;background:#fff7e9;color:#9a5d16;font-size:9px}.hidden{display:none!important}
.ag13-bars{height:220px;display:flex;gap:14px;align-items:flex-end;padding:15px 8px 0;border-left:1px solid #edf0f2;border-bottom:1px solid #edf0f2}.ag13-bars>div{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.ag13-bars i{height:150px;width:70%;display:flex;align-items:flex-end;background:linear-gradient(to top,#f1f3f4 1px,transparent 1px);background-size:100% 30px}.ag13-bars i b{width:100%;display:block;background:linear-gradient(#ffb76a,#ff8b2a);border-radius:3px 3px 0 0}.ag13-bars span,.ag13-bars strong{font-size:8px}
.ag13-weather{display:grid;grid-template-columns:55px 70px 1fr;gap:8px;align-items:center;padding:8px}.ag13-weather>span{font-size:38px}.ag13-weather>strong{font-size:26px}.ag13-weather p{display:flex;justify-content:space-between;margin:5px 0;font-size:8px;color:#66717b}.ag13-link{border:0;background:transparent;color:#1477d0;font-size:9px;float:right}
.ag13-tasks{display:flex;flex-direction:column}.ag13-tasks p{display:grid;grid-template-columns:10px 1fr auto;gap:7px;align-items:center;margin:0;padding:8px 3px;border-bottom:1px solid #eef0f2;font-size:8px}.ag13-tasks p i{width:8px;height:8px;border-radius:50%;background:#2da555}.ag13-tasks p i.orange{background:#ff8a18}.ag13-tasks p b{font-weight:500;color:#7c8389}
.ag13-card table{width:100%;border-collapse:collapse}.ag13-card th{background:#f5f5f4;padding:7px 8px;font-size:8px;color:#6b7280;text-align:left}.ag13-card td{padding:8px;border-bottom:1px solid #eef0f2;font-size:8px}.pill{display:inline-flex;padding:4px 7px;border-radius:999px;background:#e7f6ea;color:#2a8a44;font-size:7px;white-space:nowrap}
.ag13-inputbars{display:flex;flex-direction:column;gap:10px}.ag13-inputbars>div{display:grid;grid-template-columns:110px 65px 1fr;gap:8px;align-items:center;font-size:8px}.ag13-inputbars i{height:12px;background:#eef0f2;border-radius:6px;overflow:hidden}.ag13-inputbars em{display:block;height:100%;background:linear-gradient(90deg,#1d96df,#66bdf0)}
.ag13-line{width:100%;height:130px}.ag13-months{display:flex;justify-content:space-between;font-size:7px;color:#7c8389}.ag13-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.ag13-quick button{min-height:78px;border:0;border-radius:10px;background:#fff4eb;font-size:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.ag13-quick button:nth-child(2),.ag13-quick button:nth-child(4){background:#eaf4ff}.ag13-quick button:nth-child(3),.ag13-quick button:nth-child(6){background:#ebf8ee}.ag13-quick span{font-size:8px}
.ag13-module{padding:10px 0 22px}.ag13-modulehead{display:flex;justify-content:space-between;align-items:flex-end;margin:8px 2px 14px}.ag13-modulehead small{font-size:8px;color:var(--ag13-orange);font-weight:800;letter-spacing:.12em}.ag13-modulehead h1{font-size:26px;margin:3px 0}.ag13-modulehead p{font-size:10px;color:#7c8389;margin:0}.ag13-modulehead>button,.ag13-mini{border:0;background:var(--ag13-orange);color:#fff;border-radius:8px;padding:9px 12px;font-size:9px;font-weight:700;cursor:pointer}.tablewrap{padding:0;overflow:auto}.tablewrap table{min-width:720px}.tablewrap th,.tablewrap td{padding:11px 12px;font-size:9px}
.ag13-reportgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ag13-reportgrid small{display:block;color:#7c8389;font-size:9px}.ag13-reportgrid strong{display:block;font-size:22px;margin-top:4px}
.ag13-map-editor-grid{display:grid;grid-template-columns:1fr 300px;gap:10px}.ag13-map-toolbar{display:flex;gap:8px;align-items:center;margin-bottom:9px}.ag13-map-toolbar button,.ag13-map-toolbar label{border:1px solid #dedad4;background:#fff;border-radius:8px;padding:8px 10px;font-size:9px;cursor:pointer}.ag13-map-toolbar .primary{margin-left:auto;background:var(--ag13-orange);border-color:var(--ag13-orange);color:#fff}.ag13-field-side{display:flex;flex-direction:column;gap:10px}.ag13-field-side h3{margin:0 0 5px}.ag13-field-side label{font-size:9px;font-weight:600}.ag13-field-side input{display:block;width:100%;margin-top:4px;padding:9px;border:1px solid #dedad4;border-radius:8px}.ag13-help{font-size:8px;line-height:1.5;color:#6b7280;background:#f8f6f2;border-radius:8px;padding:10px}.ag13-popup-btn{margin-top:5px;border:0;background:#ff7b16;color:#fff;border-radius:6px;padding:5px 8px;font-size:9px}
/* LOGIN AGROHUB • composição inspirada no layout aprovado, construída em HTML/CSS */
body:not(.agro13) .login-view{position:fixed!important;inset:0!important;display:grid!important;grid-template-columns:1.05fr .95fr!important;align-items:center!important;padding:0!important;background:#536b38!important;overflow:hidden!important}
body:not(.agro13) .login-view:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(25,15,7,.08),rgba(25,15,7,.15)),url("/agrohub-login-mango.jpg?v=130");background-size:cover;background-position:center;filter:saturate(1.04) contrast(1.02)}
body:not(.agro13) .login-view:after{content:"";position:absolute;left:-7%;bottom:-80px;width:62%;height:170px;background:linear-gradient(15deg,#ff7a16 0 38%,#17a9e5 39% 56%,transparent 57%);transform:rotate(4deg);z-index:1}
body:not(.agro13) .login-card{position:relative!important;z-index:3!important;grid-column:2!important;justify-self:start!important;width:430px!important;max-width:calc(100vw - 40px)!important;background:rgba(255,255,255,.95)!important;border-radius:14px!important;padding:30px!important;box-shadow:0 24px 70px rgba(43,24,10,.28)!important;backdrop-filter:blur(8px)!important;margin-left:10%!important}
body:not(.agro13) .login-card .brand{position:absolute!important;left:-330px!important;top:-25px!important;width:270px!important;display:flex!important;flex-direction:column!important;align-items:center!important;background:transparent!important}
body:not(.agro13) .login-card .manga-bela-logo{width:190px!important;height:190px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 14px 35px #0004!important}
body:not(.agro13) .login-card .ag-brand-copy strong{font-size:29px!important;color:#fff!important;text-shadow:0 2px 10px #0007!important}body:not(.agro13) .login-card .ag-brand-copy small{font-size:13px!important;color:#fff!important;text-shadow:0 2px 8px #0008!important}
body:not(.agro13) .login-copy{margin:0 0 20px!important}body:not(.agro13) .login-copy .eyebrow{display:none!important}body:not(.agro13) .login-copy h1{font-size:24px!important;margin:0 0 5px!important;color:#25150f!important}body:not(.agro13) .login-copy h1:after{display:none!important}body:not(.agro13) .login-copy p{display:block!important;margin:0!important;font-size:12px!important;color:#4f453f!important}
body:not(.agro13) .login-form{display:flex!important;flex-direction:column!important;gap:7px!important}body:not(.agro13) .login-form label{font-size:9px!important;color:#493c35!important;font-weight:600!important}body:not(.agro13) .login-form input{height:42px!important;border:1px solid #dfd8d1!important;border-radius:8px!important;background:#fff!important;padding:0 11px!important}body:not(.agro13) .login-form .btn-primary{height:44px!important;border-radius:8px!important;background:linear-gradient(90deg,#ff7814,#ff6b08)!important;border:0!important;font-weight:800!important;margin-top:8px!important}body:not(.agro13) .demo-note{font-size:8px!important;text-align:center!important;color:#6d756c!important}
body:not(.agro13) .login-art{display:none!important}
@media(max-width:1450px){.ag13-kpis{grid-template-columns:repeat(4,1fr)}.ag13-homegrid{grid-template-columns:1.2fr .9fr}.ag13-homegrid>.right{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){body.agro13 .sidebar{width:205px!important}body.agro13 .main-content{margin-left:205px!important}.ag13-kpis{grid-template-columns:repeat(2,1fr)}.ag13-homegrid{grid-template-columns:1fr}.ag13-homegrid>.right{grid-column:auto;display:flex}.ag13-map-editor-grid{grid-template-columns:1fr}}
@media(max-width:760px){body.agro13 .main-content{margin-left:0!important;padding:0 8px 86px!important}.ag13-top{padding-left:45px}.ag13-search{width:calc(100vw - 175px)}.ag13-date{display:none}.ag13-headstrip{height:88px}.ag13-ribbon{width:72%}.ag13-title h1{font-size:19px}.ag13-kpis{grid-template-columns:1fr 1fr}.ag13-kpi{min-height:88px;padding:9px}.ag13-kpi strong{font-size:14px}.ag13-homegrid{grid-template-columns:1fr}.ag13-quick{grid-template-columns:repeat(2,1fr)}.ag13-map{height:310px}.ag13-map.editor{height:440px}.ag13-reportgrid{grid-template-columns:1fr 1fr}body:not(.agro13) .login-view{grid-template-columns:1fr!important;padding:16px!important}body:not(.agro13) .login-card{grid-column:1!important;justify-self:center!important;margin:0!important;width:min(430px,100%)!important}body:not(.agro13) .login-card .brand{position:static!important;width:auto!important;margin-bottom:14px!important}body:not(.agro13) .login-card .manga-bela-logo{width:110px!important;height:110px!important}body:not(.agro13) .login-card .ag-brand-copy strong{color:#25150f!important;text-shadow:none!important}body:not(.agro13) .login-card .ag-brand-copy small{color:#6b5a51!important;text-shadow:none!important}}

.ag13-form form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ag13-form label{font-size:9px;font-weight:600;color:#515a63}.ag13-form input,.ag13-form select,.ag13-form textarea{display:block;width:100%;margin-top:5px;border:1px solid #ddd8d2;border-radius:8px;padding:10px;background:#fff;font:inherit}.ag13-form .wide{grid-column:1/-1}.ag13-form .actions{display:flex;justify-content:flex-end}.ag13-form .actions button{border:0;background:var(--ag13-orange);color:#fff;border-radius:8px;padding:10px 16px;font-weight:700}
.login-view:not(.hidden){position:fixed!important;inset:0!important;display:grid!important;grid-template-columns:1.05fr .95fr!important;align-items:center!important;padding:0!important;background:#536b38!important;overflow:hidden!important}
.login-view:not(.hidden):before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(25,15,7,.08),rgba(25,15,7,.15)),url("/agrohub-login-mango.jpg?v=130");background-size:cover;background-position:center;filter:saturate(1.04) contrast(1.02)}
.login-view:not(.hidden):after{content:"";position:absolute;left:-7%;bottom:-80px;width:62%;height:170px;background:linear-gradient(15deg,#ff7a16 0 38%,#17a9e5 39% 56%,transparent 57%);transform:rotate(4deg);z-index:1}
.login-view:not(.hidden) .login-card{position:relative!important;z-index:3!important;grid-column:2!important;justify-self:start!important;width:430px!important;max-width:calc(100vw - 40px)!important;background:rgba(255,255,255,.95)!important;border-radius:14px!important;padding:30px!important;box-shadow:0 24px 70px rgba(43,24,10,.28)!important;backdrop-filter:blur(8px)!important;margin-left:10%!important}
@media(max-width:760px){.ag13-form form{grid-template-columns:1fr}.ag13-form .wide{grid-column:auto}.login-view:not(.hidden){grid-template-columns:1fr!important;padding:16px!important}.login-view:not(.hidden) .login-card{grid-column:1!important;justify-self:center!important;margin:0!important;width:min(430px,100%)!important}}

.ag13-login-options{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:2px 0 4px!important}.ag13-login-options label{display:flex!important;align-items:center!important;gap:6px!important;font-weight:500!important}.ag13-login-options label input{width:14px!important;height:14px!important;margin:0!important}.ag13-login-options button{border:0!important;background:transparent!important;color:#1677c8!important;font-size:9px!important;cursor:pointer!important;padding:0!important}

body.agro13 .ag13-top{display:flex!important}.ag13-top{height:64px;width:100%;align-items:center;justify-content:space-between;gap:18px}

body.agro-mode.agro13 .topbar>div.ag13-top:first-child{display:flex!important;visibility:visible!important;opacity:1!important}

.ag13-owner{background:linear-gradient(135deg,#2a1710,#3a2017 58%,#173b23);border-radius:16px;padding:16px;margin:0 0 10px;color:#fff;box-shadow:0 8px 24px rgba(45,23,14,.12)}
.ag13-owner-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.ag13-owner-head small{font-size:8px;color:#ffb56f;font-weight:800;letter-spacing:.12em}.ag13-owner-head h2{margin:3px 0 4px;font-size:24px}.ag13-owner-head p{margin:0;font-size:9px;color:#dbcfc9}.ag13-owner-head button{border:1px solid #ffffff33;background:#fff;color:#2a1710;border-radius:8px;padding:8px 11px;font-size:9px;font-weight:800;cursor:pointer}
.ag13-owner-answer{margin:13px 0 12px;border-radius:10px;padding:12px 14px;display:grid;grid-template-columns:1.4fr auto auto;gap:16px;align-items:center}.ag13-owner-answer.good{background:#163f28}.ag13-owner-answer.bad{background:#5a1f1f}.ag13-owner-answer.warn{background:#5a4219}.ag13-owner-answer span{font-size:11px;font-weight:800}.ag13-owner-answer strong{font-size:22px}.ag13-owner-answer em{font-style:normal;font-size:9px}
.ag13-owner-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ag13-owner-grid article{background:#ffffff12;border:1px solid #ffffff18;border-radius:10px;padding:11px}.ag13-owner-grid small{display:block;font-size:8px;color:#d8cbc5}.ag13-owner-grid strong{display:block;font-size:17px;margin:4px 0}.ag13-owner-grid span{display:block;font-size:8px;color:#cabbb4}.ag13-owner-grid article>i{display:block;height:6px;background:#ffffff20;border-radius:5px;margin-top:8px;overflow:hidden}.ag13-owner-grid article>i b{display:block;height:100%;background:#ff8518}
.ag13-owner-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.ag13-costsplit{display:flex;flex-direction:column;gap:9px}.ag13-costsplit>div{display:grid;grid-template-columns:130px 1fr 90px;gap:8px;align-items:center;font-size:8px}.ag13-costsplit i,.ag13-invest-list i{height:9px;background:#edf0f2;border-radius:6px;overflow:hidden}.ag13-costsplit i b{display:block;height:100%;background:linear-gradient(90deg,#ff8d27,#ffb45f)}
.ag13-invest-list{display:flex;flex-direction:column;gap:9px}.ag13-invest-list>div{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:8px}.ag13-invest-list span:first-child b,.ag13-invest-list span:first-child small{display:block}.ag13-invest-list span:first-child small{color:#7b838b}.ag13-invest-list i{grid-column:1/-1}.ag13-invest-list i b{display:block;height:100%;background:linear-gradient(90deg,#2f9d58,#7bc58f)}
.ag13-fieldcost-card{min-height:250px}.ag13-fieldcost-card .ag13-cardhead{align-items:flex-start}.ag13-fieldcost-card .ag13-cardhead small{font-size:7px;color:#7a828a;text-align:right}.ag13-fieldcost-head,.ag13-fieldcost-row{display:grid;grid-template-columns:62px 70px 1fr;gap:8px;align-items:center}.ag13-fieldcost-head{font-size:7px;color:#7a828a;padding-bottom:7px;border-bottom:1px solid #edf0f2}.ag13-fieldcost-list{display:flex;flex-direction:column}.ag13-fieldcost-row{padding:8px 0;border-bottom:1px solid #f0f1f2}.ag13-fieldcost-row>b,.ag13-fieldcost-row>strong{font-size:8px}.ag13-fieldcost-row>small{grid-column:3;font-size:6.5px;color:#7b838b}.ag13-stack{height:12px;border-radius:6px;background:#eef1f3;overflow:hidden;display:flex}.ag13-stack i{display:block;height:100%}.ag13-stack .mo,.ag13-stack-legend .mo{background:#7c5ce7}.ag13-stack .ins,.ag13-stack-legend .ins{background:#2c9de3}.ag13-stack .man,.ag13-stack-legend .man{background:#f59f28}.ag13-stack .out,.ag13-stack-legend .out{background:#95a1aa}.ag13-stack-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;font-size:6.5px;color:#69727b}.ag13-stack-legend span{display:flex;align-items:center;gap:3px}.ag13-stack-legend i{width:7px;height:7px;border-radius:50%}
.ag13-prod{display:flex;flex-direction:column;gap:12px}.ag13-prod>div{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:8px}.ag13-prod>div i{grid-column:1/-1;height:10px;background:#edf0f2;border-radius:6px;overflow:hidden}.ag13-prod>div i b{display:block;height:100%;background:#2797e2}.ag13-prod>div i.min b{background:#f59f28}.ag13-prod p{font-size:8px;padding:8px;border-radius:7px;margin:0}.ag13-prod p.good{background:#e8f6ec;color:#267d40}.ag13-prod p.warn{background:#fff3df;color:#a86a15}.ag13-owner-form-note{background:#fff7e9;border:1px solid #f2dfbd;border-radius:8px;padding:10px;font-size:9px;line-height:1.5;color:#76551f}
.login-view:not(.hidden) .login-form input,#loginView:not(.hidden) #loginName,#loginView:not(.hidden) #loginPassword{color:#241a16!important;-webkit-text-fill-color:#241a16!important;caret-color:#241a16!important;background-color:#fff!important;opacity:1!important}
.login-view:not(.hidden) .login-form input::placeholder{color:#8a8f94!important;-webkit-text-fill-color:#8a8f94!important}.login-view:not(.hidden) input:-webkit-autofill{-webkit-text-fill-color:#241a16!important;box-shadow:0 0 0 1000px #fff inset!important}
@media(max-width:1050px){.ag13-owner-grid{grid-template-columns:1fr 1fr}.ag13-owner-detail-grid{grid-template-columns:1fr}.ag13-owner-answer{grid-template-columns:1fr 1fr}.ag13-owner-answer em{grid-column:1/-1}}
@media(max-width:760px){.ag13-owner-head{flex-direction:column}.ag13-owner-grid{grid-template-columns:1fr 1fr}.ag13-owner-answer{grid-template-columns:1fr}.ag13-owner-detail-grid{grid-template-columns:1fr}.ag13-costsplit>div{grid-template-columns:100px 1fr 70px}.ag13-fieldcost-head,.ag13-fieldcost-row{grid-template-columns:52px 60px 1fr}}

/* AGROHUB v1.4.1 • dashboard fluido/interativo em zoom 100% */
body.agro13,body.agro13 *{box-sizing:border-box}body.agro13{overflow-x:hidden!important}
body.agro13 .sidebar{width:220px!important}
body.agro13 .main-content{margin-left:220px!important;width:calc(100vw - 220px)!important;max-width:calc(100vw - 220px)!important;min-width:0!important;padding:0 12px 28px!important;overflow-x:clip!important}
body.agro13 #agrohubPage.active{width:100%!important;min-width:0!important}
body.agro13 .topbar{width:100%!important;overflow:visible!important}.ag13-top{min-width:0!important}.ag13-search{flex:1 1 440px!important;width:auto!important;max-width:560px!important;min-width:180px!important}.ag13-top-right{flex:0 0 auto!important;min-width:0!important}.ag13-user{max-width:190px;min-width:0}.ag13-user b,.ag13-user small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag13-real-hero{height:150px!important;border-radius:0 0 18px 18px!important;background-image:url("/agrohub-login-mango.jpg?v=130")!important;background-size:cover!important;background-position:center 44%!important;border:0!important;box-shadow:0 7px 22px rgba(40,25,15,.09)!important}
.ag13-real-hero .ag13-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(24,16,8,.76) 0%,rgba(24,16,8,.48) 42%,rgba(24,16,8,.08) 72%);z-index:1}
.ag13-real-hero .ag13-title{left:24px!important;top:28px!important;color:#fff!important}.ag13-real-hero .ag13-title>span{background:#ffffffee;border-radius:12px;width:46px;height:46px;display:grid;place-items:center;font-size:24px!important}.ag13-real-hero .ag13-title small{display:block;color:#ffd7b2;font-size:8px;font-weight:800;letter-spacing:.12em;margin-bottom:4px}.ag13-real-hero .ag13-title h1{color:#fff!important;font-size:27px!important;text-shadow:0 2px 12px #0007}.ag13-real-hero .ag13-title p{color:#f7eee8!important;text-shadow:0 1px 8px #0007}
.ag13-hero-actions{position:absolute;right:18px;bottom:18px;display:flex;gap:8px;z-index:3}.ag13-hero-actions button{border:1px solid #ffffff55;background:#fffffff0;color:#2b160f;border-radius:9px;padding:8px 11px;font-size:9px;font-weight:800;cursor:pointer}.ag13-hero-actions button:first-child{background:#2a1b13d9;color:#fff}
.ag13-kpis{grid-template-columns:repeat(7,minmax(0,1fr))!important}.ag13-kpi{width:100%;border:1px solid var(--ag13-border)!important;text-align:left;cursor:pointer;font-family:inherit;transition:.16s transform,.16s box-shadow}.ag13-kpi:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(47,34,20,.08)}.ag13-kpi>div{min-width:0}.ag13-kpi strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag13-dashboard-primary{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(300px,.72fr);gap:10px;margin-bottom:10px;align-items:stretch}.ag13-primary-main,.ag13-primary-side{min-width:0}.ag13-primary-side{display:grid;grid-template-rows:1fr auto;gap:10px}.ag13-primary-main>.ag13-card,.ag13-primary-side>.ag13-card{height:100%}
.ag13-dashboard-cards{display:grid;gap:10px;margin-bottom:10px;align-items:stretch;min-width:0}.ag13-dashboard-cards.ag13-three{grid-template-columns:repeat(3,minmax(0,1fr))}.ag13-dashboard-cards>.ag13-card{min-width:0;height:100%;overflow:hidden}.ag13-dashboard-cards>.ag13-card table{display:block;max-width:100%;overflow-x:auto}
.ag13-primary-main .ag13-map{height:355px!important}
.ag13-result-card .ag13-cardhead>div{min-width:0}.ag13-result-card .ag13-cardhead small{display:block;font-size:7px;color:#74808a;margin-top:3px}.ag13-result-main{border-radius:10px;padding:12px;display:grid;grid-template-columns:1fr auto;gap:3px 10px;margin-bottom:10px}.ag13-result-main span{font-size:8px}.ag13-result-main strong{font-size:20px;grid-row:1/3;grid-column:2;align-self:center}.ag13-result-main em{font-size:8px;font-style:normal}.ag13-result-main.good{background:#e9f7ed;color:#236f3a}.ag13-result-main.bad{background:#fdecec;color:#9c3131}.ag13-result-main.warn{background:#fff4df;color:#936016}.ag13-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ag13-result-grid>div{border:1px solid #edf0f2;border-radius:8px;padding:9px;min-width:0}.ag13-result-grid small{display:block;font-size:7px;color:#7c848d}.ag13-result-grid b{display:block;font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag13-notif-wrap{position:relative;display:flex;align-items:center}.ag13-bell{cursor:pointer!important;padding:8px!important;border-radius:9px!important}.ag13-bell:hover{background:#f6f3ef!important}.ag13-notif-pop{position:absolute;top:44px;right:-70px;width:min(390px,calc(100vw - 32px));max-height:520px;background:#fff;border:1px solid #e7e2dc;border-radius:13px;box-shadow:0 18px 50px rgba(32,21,15,.2);display:none;z-index:3000;overflow:hidden}.ag13-notif-pop.open{display:block}.ag13-notif-pop header{display:flex;justify-content:space-between;align-items:center;padding:12px 13px;border-bottom:1px solid #eeeae5}.ag13-notif-pop header b{font-size:12px}.ag13-notif-pop header button{border:0;background:transparent;color:#1778cf;font-size:8px;cursor:pointer}.ag13-notif-list{max-height:445px;overflow:auto}.ag13-notif-item{width:100%;border:0;border-bottom:1px solid #f0ede9;background:#fff;display:grid;grid-template-columns:9px 1fr;gap:9px;text-align:left;padding:11px 13px;cursor:pointer}.ag13-notif-item:hover{background:#faf8f5}.ag13-notif-item.read{opacity:.56}.ag13-notif-item>i{width:8px;height:8px;border-radius:50%;background:#2998dd;margin-top:4px}.ag13-notif-item.warn>i{background:#f3a126}.ag13-notif-item.danger>i{background:#d84c4c}.ag13-notif-item span b{display:block;font-size:9px;color:#202831}.ag13-notif-item span small{display:block;font-size:7px;color:#747d86;margin-top:3px;line-height:1.45}.ag13-notif-empty{padding:20px;text-align:center;font-size:9px;color:#7c848b}
.ag13-tasks{gap:0}.ag13-task-btn{width:100%;border:0;border-bottom:1px solid #eef0f2;background:#fff;display:grid;grid-template-columns:9px 1fr;gap:7px;text-align:left;padding:9px 3px;cursor:pointer}.ag13-task-btn:hover{background:#faf9f6}.ag13-task-btn i{width:8px;height:8px;border-radius:50%;background:#2998dd;margin-top:3px}.ag13-task-btn.warn i{background:#f3a126}.ag13-task-btn.danger i{background:#d84c4c}.ag13-task-btn span{font-size:8px;font-weight:700}.ag13-task-btn b{grid-column:2;font-size:7px;color:#7a838b;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag13-empty-line{font-size:8px;color:#7a838b}
.ag13-fieldcost-row{grid-template-columns:54px 68px minmax(0,1fr)!important}.ag13-fieldcost-row>small{min-width:0;white-space:normal}.ag13-costsplit>div{grid-template-columns:105px minmax(0,1fr) 78px!important}.ag13-inputbars>div{grid-template-columns:minmax(85px,1fr) 62px minmax(60px,1fr)!important}
@media(max-width:1380px){.ag13-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ag13-dashboard-primary{grid-template-columns:minmax(0,1.45fr) minmax(285px,.8fr)}.ag13-dashboard-cards.ag13-three{grid-template-columns:repeat(2,minmax(0,1fr))}.ag13-dashboard-cards.ag13-three>.ag13-card:last-child:nth-child(odd){grid-column:1/-1}.ag13-date{display:none!important}}
@media(max-width:1080px){body.agro13 .sidebar{width:195px!important}body.agro13 .main-content{margin-left:195px!important;width:calc(100vw - 195px)!important;max-width:calc(100vw - 195px)!important}.ag13-dashboard-primary{grid-template-columns:1fr}.ag13-primary-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}.ag13-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ag13-real-hero{height:135px!important}}
@media(max-width:760px){body.agro13 .main-content{width:100vw!important;max-width:100vw!important;margin-left:0!important}.ag13-dashboard-cards.ag13-three,.ag13-primary-side{grid-template-columns:1fr}.ag13-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ag13-real-hero{height:160px!important}.ag13-hero-actions{right:10px;bottom:10px}.ag13-real-hero .ag13-title{left:14px!important;top:20px!important}.ag13-notif-pop{right:-84px}.ag13-user{display:none}.ag13-search{max-width:none!important}}

/* AGROHUB v1.5.0 • dashboard sem rolagem + módulos BuildHub agrícolas */
body.agro13 .main-content{padding:0 10px 8px!important}
body.agro13 #agrohubPage.active:has(.ag13-dashboard-shell){height:calc(100vh - 64px)!important;overflow:hidden!important}
.ag13-dashboard-shell{height:calc(100vh - 64px);min-height:0;overflow:hidden;display:grid;grid-template-rows:92px 72px minmax(260px,1fr) 182px;gap:6px;padding-bottom:6px}
.ag13-dashboard-shell .ag13-real-hero{height:92px!important;min-height:92px!important;margin:0!important;border-radius:0 0 14px 14px!important;background-image:url("/agrohub-hero-banner.jpg?v=150")!important;background-size:cover!important;background-position:center center!important}
.ag13-dashboard-shell .ag13-real-hero .ag13-title{left:18px!important;top:14px!important}.ag13-dashboard-shell .ag13-real-hero .ag13-title>span{width:38px;height:38px;font-size:20px!important;border-radius:10px}.ag13-dashboard-shell .ag13-real-hero .ag13-title small{font-size:7px}.ag13-dashboard-shell .ag13-real-hero .ag13-title h1{font-size:22px!important}.ag13-dashboard-shell .ag13-real-hero .ag13-title p{font-size:8px!important;margin-top:2px}
.ag13-hero-weather{position:absolute;z-index:3;right:235px;top:16px;display:flex;align-items:center;gap:8px;color:#fff;background:#14170f99;border:1px solid #ffffff30;border-radius:10px;padding:7px 10px;backdrop-filter:blur(5px)}.ag13-hero-weather>span{font-size:22px}.ag13-hero-weather strong{display:block;font-size:16px;line-height:1}.ag13-hero-weather small{display:block;font-size:6.5px;margin-top:3px;color:#f6eee9;white-space:nowrap}
.ag13-dashboard-shell .ag13-hero-actions{right:10px;bottom:10px;gap:6px}.ag13-dashboard-shell .ag13-hero-actions button{padding:7px 9px!important;font-size:8px!important;border-radius:8px!important;box-shadow:0 5px 14px #0002}
.ag13-dashboard-shell .ag13-kpis{height:72px!important;margin:0!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important}
.ag13-dashboard-shell .ag13-kpi{height:72px!important;min-height:72px!important;padding:7px 8px!important;gap:7px!important;border-radius:10px!important;overflow:visible!important}.ag13-dashboard-shell .ag13-kpi .ico{width:30px;height:30px;flex-basis:30px;font-size:14px}.ag13-dashboard-shell .ag13-kpi small{font-size:7px!important;white-space:nowrap}.ag13-dashboard-shell .ag13-kpi strong{font-size:clamp(12px,1.05vw,17px)!important;margin:2px 0!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:-.035em!important}.ag13-dashboard-shell .ag13-kpi em{font-size:6.5px!important;white-space:nowrap}
.ag13-dashboard-primary{min-height:0!important;height:100%!important;margin:0!important;grid-template-columns:minmax(0,1.58fr) minmax(300px,.68fr)!important;gap:6px!important}.ag13-primary-main,.ag13-primary-side{height:100%;min-height:0}.ag13-primary-side{display:grid!important;grid-template-rows:1.12fr .88fr!important;gap:6px!important}.ag13-primary-main .ag13-map-card{height:100%;display:flex;flex-direction:column;padding:8px!important}.ag13-primary-main .ag13-map-card .ag13-cardhead{margin-bottom:6px!important}.ag13-primary-main .ag13-map{height:auto!important;min-height:0!important;flex:1 1 auto}.ag13-primary-main .ag13-map-note{font-size:6.5px!important;padding:5px 7px!important;margin-top:4px!important}
.ag13-primary-side>.ag13-card{min-height:0!important;height:100%!important;padding:8px!important;overflow:hidden}.ag13-primary-side .ag13-cardhead{margin-bottom:6px!important}.ag13-primary-side .ag13-cardhead b{font-size:10px!important}.ag13-result-main{padding:7px!important;margin-bottom:6px!important}.ag13-result-main strong{font-size:15px!important}.ag13-result-grid{gap:4px!important}.ag13-result-grid>div{padding:6px!important}.ag13-result-grid b{font-size:9px!important}.ag13-task-btn{padding:5px 2px!important}.ag13-task-btn span{font-size:7px!important}.ag13-task-btn b{font-size:6px!important}
.ag13-deck{height:182px;min-height:0;background:#fff;border:1px solid var(--ag13-border);border-radius:12px;overflow:hidden;box-shadow:0 4px 14px rgba(56,39,21,.04)}.ag13-deck>nav{height:34px;display:flex;align-items:end;gap:3px;padding:5px 7px 0;border-bottom:1px solid #ece8e3;background:#faf9f7}.ag13-deck>nav button{height:28px;border:0;background:transparent;border-radius:8px 8px 0 0;padding:0 12px;font:700 8px/1 Poppins,system-ui;color:#707781;cursor:pointer;transition:.15s ease}.ag13-deck>nav button:hover{background:#f2eee9;color:#2c211c}.ag13-deck>nav button.active{background:#fff;color:#ef6f10;box-shadow:0 -2px 0 #ff7b16 inset}
.ag13-deck-panel{display:none;height:147px;padding:6px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:hidden}.ag13-deck-panel.active{display:grid}.ag13-deck-panel>.ag13-card{height:135px!important;min-height:0!important;padding:7px!important;overflow:auto!important;box-shadow:none!important}.ag13-deck-panel .ag13-cardhead{margin-bottom:5px!important}.ag13-deck-panel .ag13-cardhead>b{font-size:9px!important}.ag13-deck-panel .ag13-cardhead button,.ag13-deck-panel .ag13-cardhead small{font-size:6px!important}.ag13-deck-panel table th,.ag13-deck-panel table td{padding:4px 5px!important;font-size:6.5px!important}.ag13-deck-panel .ag13-fieldcost-row{padding:4px 0!important}.ag13-deck-panel .ag13-fieldcost-row>b,.ag13-deck-panel .ag13-fieldcost-row>strong{font-size:6.5px!important}.ag13-deck-panel .ag13-fieldcost-row>small{font-size:5.5px!important}.ag13-deck-panel .ag13-costsplit{gap:5px!important}.ag13-deck-panel .ag13-costsplit>div{font-size:6.5px!important}.ag13-deck-panel .ag13-invest-list{gap:5px!important}.ag13-deck-panel .ag13-invest-list>div{font-size:6.5px!important}.ag13-deck-panel .ag13-inputbars{gap:6px!important}.ag13-deck-panel .ag13-inputbars>div{font-size:6.5px!important}.ag13-deck-panel .ag13-quick{gap:5px!important}.ag13-deck-panel .ag13-quick button{min-height:52px!important;font-size:15px!important}.ag13-deck-panel .ag13-quick span{font-size:6px!important}.ag13-deck-panel .ag13-prod{gap:7px!important}.ag13-deck-panel .ag13-prod p{padding:5px!important;font-size:6.5px!important}
.ag13-map-card.ag13-map-focus{outline:3px solid #ff861f;outline-offset:-2px;box-shadow:0 0 0 5px #ff861f22,0 12px 30px #ff861f22!important;transition:.2s ease}
.ag13-kpi,.ag13-hero-actions button,.ag13-cardhead button,.ag13-mini,.ag13-row-actions button,.ag-module-head button,.ag-head-actions button,.ag-toolbar-inline button,.ag-subtabs button,.ag-row-action,.ag-form-actions button{transition:transform .12s ease,box-shadow .12s ease,background .12s ease!important}.ag13-kpi:hover,.ag13-hero-actions button:hover,.ag13-mini:hover,.ag13-row-actions button:hover,.ag-module-head button:hover,.ag-head-actions button:hover,.ag-row-action:hover,.ag-form-actions button:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(47,31,17,.12)}.ag13-kpi:active,.ag13-hero-actions button:active,.ag13-mini:active,.ag13-row-actions button:active,.ag-module-head button:active,.ag-head-actions button:active,.ag-row-action:active,.ag-form-actions button:active{transform:translateY(1px) scale(.985)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #ff8a24!important;outline-offset:2px!important}
.ag13-build-module,.ag-build-page{max-width:1440px;margin:0 auto}.ag13-module-kpis,.ag-build-page .ag-proc-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0 0 10px!important}.ag13-module-kpis article,.ag-build-page .ag-proc-kpis>div{background:#fff;border:1px solid #e8e4de;border-radius:11px;padding:11px 12px;min-width:0}.ag13-module-kpis small,.ag-build-page .ag-proc-kpis small{display:block;font-size:8px;color:#717a84}.ag13-module-kpis b,.ag-build-page .ag-proc-kpis b{display:block;font-size:17px;margin-top:3px;white-space:nowrap}.ag13-module-kpis span,.ag-build-page .ag-proc-kpis span{display:block;font-size:7px;color:#90969c;margin-top:3px}
.ag13-toolbar,.ag-toolbar-inline{display:flex;gap:8px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e8e4de;border-radius:11px;padding:8px;margin-bottom:9px}.ag13-toolbar-search{display:flex;align-items:center;gap:7px;flex:1;color:#747d86}.ag13-toolbar-search input,.ag-toolbar-inline input,.ag-toolbar-inline select{border:1px solid #e1ddd8;border-radius:8px;background:#fafafa;padding:8px 10px;font:500 9px Poppins,system-ui;min-width:0}.ag13-toolbar-search input{flex:1;border:0;background:transparent;outline:0!important}.ag13-toolbar>button,.ag-toolbar-inline>button{border:0;background:#ff7b16;color:#fff;border-radius:8px;padding:8px 11px;font:700 9px Poppins,system-ui}.ag-build-page .ag-module-head,.ag13-build-module .ag13-modulehead{margin-bottom:10px!important}.ag-head-actions{display:flex;gap:7px;flex-wrap:wrap}.ag-head-actions button,.ag-module-head>button{border:0;background:#ff7b16;color:#fff;border-radius:8px;padding:9px 11px;font:700 9px Poppins,system-ui;cursor:pointer}
.ag13-build-table{padding:0!important}.ag13-build-table td b,.ag-list-card td b{display:block}.ag13-build-table td small,.ag-list-card td small{display:block;font-size:7px;color:#858d94;margin-top:2px}.ag13-row-actions{display:flex;gap:4px;white-space:nowrap}.ag13-row-actions button,.ag-row-action{border:1px solid #ddd8d2;background:#fff;color:#39414a;border-radius:7px;padding:5px 7px;font:700 7px Poppins,system-ui;cursor:pointer}.ag13-row-actions button.danger{color:#b53b3b;border-color:#f0cece}.ag13-mini.secondary{background:#fff!important;color:#e66b0e!important;border:1px solid #ffb77f!important}
.ag-subtabs{display:flex;gap:4px;margin:0 0 8px;border-bottom:1px solid #e8e4de;padding:0 3px}.ag-subtabs button{border:0;background:transparent;padding:8px 11px;font:700 8px Poppins,system-ui;color:#7b838b;cursor:pointer;border-radius:7px 7px 0 0}.ag-subtabs button.active{color:#ef6f10;background:#fff4e9;box-shadow:0 -2px 0 #ff7b16 inset}.ag-subpanel{display:none}.ag-subpanel.active{display:block}.ag-form-actions{display:flex!important;justify-content:flex-end!important;gap:7px!important}.ag-form-actions .primary,.ag13-form .actions button:last-child{background:#ff7b16!important;color:#fff!important;border:0!important}.ag-form-actions button,.ag13-form .actions button{border:1px solid #ddd8d2;border-radius:8px;padding:9px 13px;font:700 9px Poppins,system-ui;cursor:pointer;background:#fff}.ag13-form .actions .secondary{background:#fff!important;color:#4d5660!important;border:1px solid #ddd8d2!important}
@media(max-height:800px) and (min-width:761px){.ag13-dashboard-shell{grid-template-rows:82px 66px minmax(245px,1fr) 160px;gap:5px}.ag13-dashboard-shell .ag13-real-hero{height:82px!important;min-height:82px!important}.ag13-dashboard-shell .ag13-real-hero .ag13-title{top:10px!important}.ag13-dashboard-shell .ag13-kpis{height:66px!important}.ag13-dashboard-shell .ag13-kpi{height:66px!important;min-height:66px!important;padding:6px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:clamp(11px,.95vw,15px)!important}.ag13-deck{height:160px}.ag13-deck-panel{height:126px}.ag13-deck-panel>.ag13-card{height:114px!important}.ag13-hero-weather{top:11px}}
@media(max-width:1180px) and (min-width:761px){body.agro13 .sidebar{width:190px!important}body.agro13 .main-content{margin-left:190px!important;width:calc(100vw - 190px)!important;max-width:calc(100vw - 190px)!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:11px!important}.ag13-dashboard-shell .ag13-kpi .ico{display:none}.ag13-hero-weather{display:none}.ag13-dashboard-primary{grid-template-columns:minmax(0,1.45fr) minmax(260px,.72fr)!important}}
@media(max-width:760px){body.agro13 #agrohubPage.active:has(.ag13-dashboard-shell){height:auto!important;overflow:visible!important}.ag13-dashboard-shell{height:auto!important;display:block;overflow:visible}.ag13-dashboard-shell>*{margin-bottom:8px!important}.ag13-dashboard-shell .ag13-kpis{height:auto!important;grid-template-columns:1fr 1fr!important}.ag13-dashboard-shell .ag13-kpi{height:76px!important}.ag13-dashboard-primary{display:block!important}.ag13-primary-main,.ag13-primary-side{height:auto!important}.ag13-primary-side{display:block!important}.ag13-primary-side>.ag13-card{height:auto!important;margin-top:8px}.ag13-primary-main .ag13-map{height:330px!important}.ag13-deck{height:auto!important}.ag13-deck-panel{height:auto!important;grid-template-columns:1fr!important}.ag13-deck-panel>.ag13-card{height:auto!important;max-height:260px}.ag13-hero-weather{display:none}.ag13-module-kpis,.ag-build-page .ag-proc-kpis{grid-template-columns:1fr 1fr!important}.ag13-toolbar,.ag-toolbar-inline{align-items:stretch;flex-direction:column}.ag-head-actions{width:100%}.ag-head-actions button{flex:1}}

body.agro13:has(.ag13-dashboard-shell){overflow:hidden!important;height:100vh!important;max-height:100vh!important}body.agro13:has(.ag13-dashboard-shell) .main-content{height:100vh!important;min-height:100vh!important;max-height:100vh!important;overflow:hidden!important}


/* AGROHUB v1.6.0 • consolidação real sobre a base BuildHub */
body.agro13 .sidebar{overflow:hidden!important}
body.agro13 .sidebar-brand{box-sizing:border-box!important;width:100%!important;max-width:100%!important;overflow:visible!important}
body.agro13 .sidebar-brand .ag-brand-copy{min-width:0!important;max-width:100%!important;overflow:visible!important}
body.agro13 .sidebar-brand .ag-brand-copy strong{display:block!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
body.agro13 .sidebar-brand .ag-brand-copy small{display:block!important;line-height:1.35!important}
@media(min-width:1181px){
  body.agro13 .sidebar{width:248px!important}
  body.agro13 .main-content{margin-left:248px!important;width:calc(100vw - 248px)!important;max-width:calc(100vw - 248px)!important}
  body.agro13 .sidebar-brand{padding:16px 12px 12px!important;gap:9px!important}
  body.agro13 .sidebar-brand .manga-bela-logo.compact{width:64px!important;height:64px!important;flex:0 0 64px!important}
  body.agro13 .sidebar-brand .ag-brand-copy strong{font-size:18px!important;letter-spacing:.025em!important}
  body.agro13 .sidebar-brand .ag-brand-copy small{font-size:8px!important;white-space:normal!important}
}
@media(max-width:1180px) and (min-width:761px){
  body.agro13 .sidebar{width:212px!important}
  body.agro13 .main-content{margin-left:212px!important;width:calc(100vw - 212px)!important;max-width:calc(100vw - 212px)!important}
  body.agro13 .sidebar-brand{padding:13px 9px!important;gap:7px!important}
  body.agro13 .sidebar-brand .manga-bela-logo.compact{width:52px!important;height:52px!important;flex:0 0 52px!important}
  body.agro13 .sidebar-brand .ag-brand-copy strong{font-size:15px!important;letter-spacing:.015em!important}
  body.agro13 .sidebar-brand .ag-brand-copy small{font-size:7px!important}
}

/* módulos nativos do BuildHub dentro da identidade AgroHub */
body.agro13 #purchasesPage.active,
body.agro13 #inventoryPage.active,
body.agro13 #fleetPage.active,
body.agro13 #financePage.active,
body.agro13 #salesPage.active{
  padding:12px 12px 30px!important;
  width:100%!important;
  max-width:1500px!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important
}
body.agro13 #purchasesPage .page-header,
body.agro13 #inventoryPage .page-header,
body.agro13 #fleetPage .page-header,
body.agro13 #financePage .page-header,
body.agro13 #salesPage .v840-head{
  border-radius:14px!important
}
body.agro13 #purchasesPage .tab-btn.active,
body.agro13 #inventoryPage .tab-btn.active,
body.agro13 #fleetPage .tab-btn.active,
body.agro13 #financePage .tab-btn.active,
body.agro13 #salesPage .v840-tab.active{
  color:#ef6f10!important;
  border-color:#ef6f10!important
}

/* Relatório gerencial */
.ag16-report{max-width:1500px!important;margin:0 auto;padding:2px 2px 30px!important}
.ag16-report-head{display:flex!important;align-items:center!important;gap:18px!important}
.ag16-report-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ag16-report-actions select{height:38px;border:1px solid #ded8d1;background:#fff;border-radius:10px;padding:0 12px;font:600 9px Poppins,system-ui;color:#38281f}
.ag16-report-actions button{height:38px;border:0;background:#ff7415;color:#fff;border-radius:10px;padding:0 15px;font:800 9px Poppins,system-ui;cursor:pointer}
.ag16-result-hero{display:grid;grid-template-columns:1.25fr .72fr .72fr;gap:8px;border-radius:15px;padding:14px 16px;margin:0 0 10px;background:linear-gradient(120deg,#3b170d,#572414);color:#fff;box-shadow:0 10px 28px rgba(60,25,12,.12)}
.ag16-result-hero.positive{border-left:6px solid #2f9a54}.ag16-result-hero.negative{border-left:6px solid #c7463f}
.ag16-result-hero>div{min-width:0;padding:3px 10px;border-left:1px solid rgba(255,255,255,.16)}.ag16-result-hero>div:first-child{border-left:0;padding-left:0}
.ag16-result-hero small{display:block;font:700 7px Poppins,system-ui;color:#f2cbb7;letter-spacing:.02em}.ag16-result-hero strong{display:block;font:800 clamp(23px,2.1vw,34px) Poppins,system-ui;margin:4px 0 1px}.ag16-result-hero b{display:block;font:800 17px Poppins,system-ui;margin:4px 0 3px}.ag16-result-hero span{font:600 7px Poppins,system-ui;color:#f3ded3}
.ag16-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px}
.ag16-kpis article{background:#fff;border:1px solid #e8e3dc;border-radius:12px;padding:11px 12px;min-width:0;box-shadow:0 4px 12px rgba(59,31,16,.035)}
.ag16-kpis small{display:block;color:#737b83;font:600 7px Poppins,system-ui}.ag16-kpis b{display:block;color:#211711;font:800 clamp(13px,1.15vw,18px) Poppins,system-ui;margin:3px 0;white-space:nowrap}.ag16-kpis span{display:block;color:#969da3;font:500 6.5px Poppins,system-ui}
.ag16-report-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:8px;margin-bottom:8px}.ag16-report-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.ag16-panel{padding:12px!important;min-width:0}.ag16-panel .ag13-cardhead{margin-bottom:10px!important}.ag16-panel .ag13-cardhead div small{display:block;color:#899097;font-size:6.5px;margin-top:2px}
.ag16-rank-row{margin:0 0 9px}.ag16-rank-row>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.ag16-rank-row b{font-size:8px;color:#34261e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag16-rank-row span{font-size:7px;color:#6d747a;white-space:nowrap}.ag16-rank-row>i{display:block;height:7px;border-radius:99px;background:#ece9e5;margin-top:4px;overflow:hidden}.ag16-rank-row>i>em{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff7415,#f69d47)}.ag16-rank-row.compact{margin-bottom:7px}
.ag16-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ag16-mini-grid>div{background:#faf9f7;border:1px solid #ece8e3;border-radius:10px;padding:9px 10px;min-width:0}.ag16-mini-grid small{display:block;color:#7a8288;font-size:6.5px}.ag16-mini-grid b{display:block;font-size:12px;color:#241a15;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag16-field-table{padding:10px!important;margin-bottom:8px!important}.ag16-field-table .tablewrap{overflow:auto;max-height:320px}.ag16-field-table table{width:100%;border-collapse:collapse}.ag16-field-table th{position:sticky;top:0;background:#f7f5f2;z-index:1}.ag16-field-table th,.ag16-field-table td{padding:8px 9px!important;font-size:7.5px!important;white-space:nowrap}.ag16-pos{color:#228048!important}.ag16-neg{color:#b53d38!important}.ag16-status{display:inline-flex;border-radius:999px;padding:4px 7px;font:700 6.5px Poppins,system-ui}.ag16-status.ok{color:#23723e;background:#e9f7ee}.ag16-status.bad{color:#a63633;background:#fbeceb}
.ag-finance-check{display:flex!important;align-items:flex-start!important;gap:9px!important;background:#fff8ef!important;border:1px solid #ffd8b7!important;border-radius:11px!important;padding:10px 12px!important}.ag-finance-check input{width:17px!important;height:17px!important;flex:0 0 17px!important;margin-top:2px!important}.ag-finance-check span{display:block!important}.ag-finance-check b{display:block!important;font-size:9px!important}.ag-finance-check small{display:block!important;font-size:7px!important;color:#7c7169!important;margin-top:2px!important}
.ag-muted{color:#969da3;font-size:7px}

@media(max-width:1000px){
  .ag16-result-hero{grid-template-columns:1fr 1fr}.ag16-result-hero>div:first-child{grid-column:1/-1}
  .ag16-kpis{grid-template-columns:1fr 1fr}.ag16-report-grid,.ag16-report-grid.three{grid-template-columns:1fr}
}
@media(max-width:760px){
  .ag16-report-head{align-items:stretch!important;flex-direction:column!important}.ag16-report-actions{justify-content:stretch}.ag16-report-actions select,.ag16-report-actions button{flex:1}
  .ag16-result-hero{grid-template-columns:1fr}.ag16-result-hero>div:first-child{grid-column:auto}.ag16-result-hero>div{border-left:0;border-top:1px solid rgba(255,255,255,.14);padding:9px 0}.ag16-result-hero>div:first-child{border-top:0}
  .ag16-kpis{grid-template-columns:1fr 1fr}
}

/* AGROHUB FISCAL v1.6.1 */
@media(min-width:761px){body.agro13 .sidebar{display:flex!important;visibility:visible!important;transform:none!important}}
.agf-shell{max-width:1500px;margin:0 auto;padding:2px 2px 34px}.agf-head{display:flex!important;align-items:center!important;gap:16px!important}.agf-head-actions{display:flex;align-items:center;gap:8px}.agf-head-actions button,.agf-actions button,.agf-items-head button{border:0;background:#ff7415;color:#fff;border-radius:10px;padding:9px 13px;font:800 8px Poppins,system-ui;cursor:pointer}.agf-env{display:inline-flex;padding:7px 10px;border-radius:999px;background:#fff3e9;color:#a64b0c;font:800 7px Poppins,system-ui;text-transform:uppercase}.agf-env.prod{background:#e9f7ee;color:#257142}
.agf-tabs{display:flex;gap:5px;overflow:auto;margin:0 0 10px;padding:3px;background:#fff;border:1px solid #e9e4df;border-radius:12px}.agf-tabs button{border:0;background:transparent;border-radius:9px;padding:9px 12px;white-space:nowrap;color:#6e7479;font:700 7.5px Poppins,system-ui;cursor:pointer}.agf-tabs button.active{background:#3b170d;color:#fff}
.agf-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:8px}.agf-kpi{background:#fff;border:1px solid #e9e4df;border-radius:12px;padding:12px;border-left:4px solid #ff7415;min-width:0}.agf-kpi.ok{border-left-color:#309659}.agf-kpi.warn{border-left-color:#db9332}.agf-kpi small,.agf-kpi span{display:block;color:#798086;font-size:6.5px}.agf-kpi b{display:block;color:#251812;font-size:14px;margin:3px 0}.agf-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.agf-panel{padding:12px!important;min-width:0}.agf-checks{display:grid;gap:7px}.agf-checks>div{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:7px;padding:8px;background:#faf9f7;border-radius:9px}.agf-checks b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e9f7ee;color:#277346}.agf-checks .warn b{background:#fff0df;color:#b85c16}.agf-checks span{font-size:7.5px;color:#4e5357}.agf-pending p{margin:0 0 7px;font-size:7.5px;line-height:1.5;color:#5d6368}
.agf-note{padding:12px!important;border-left:4px solid #13a1d1!important;font-size:7.5px!important;line-height:1.55!important}.agf-note.small{margin-top:9px;background:#f7fbfc}.agf-actions{display:flex;gap:7px;justify-content:flex-end;margin-bottom:8px}.agf-tablewrap,.agf-scroll{overflow:auto}.agf-scroll{max-height:430px}.agf-tablewrap table,.agf-scroll table{width:100%;min-width:760px;border-collapse:collapse}.agf-tablewrap th,.agf-tablewrap td,.agf-scroll th,.agf-scroll td{padding:8px 9px!important;font-size:7.3px!important}.agf-tablewrap td small,.agf-scroll td small{display:block;color:#8b9297;margin-top:2px}.agf-badge{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fff0df;color:#9a4a10;font-weight:700}.agf-row-actions{display:flex;gap:4px;flex-wrap:wrap}.agf-row-actions button,.agf-link{border:1px solid #ded9d3;background:#fff;color:#3c5f7a;border-radius:7px;padding:5px 7px;font:700 6.5px Poppins,system-ui;cursor:pointer}
.agf-form{padding:13px!important}.agf-formgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.agf-formgrid label{font:700 7px Poppins,system-ui;color:#596168}.agf-formgrid input,.agf-formgrid select{display:block;width:100%;margin-top:4px;border:1px solid #ddd7d1;border-radius:8px;padding:8px;background:#fff;color:#2f251f;font:600 8px Poppins,system-ui}.agf-formgrid .span2{grid-column:span 2}.agf-items-head{display:flex;align-items:center;justify-content:space-between;margin:15px 0 7px}.agf-item-row{display:grid;grid-template-columns:.65fr 1.6fr .7fr .65fr .5fr .65fr .7fr .55fr .7fr .7fr .8fr .8fr 30px;gap:5px;margin-bottom:5px}.agf-item-row input{min-width:0;border:1px solid #e0dbd5;border-radius:7px;padding:7px;font-size:7px}.agf-item-row button{border:0;border-radius:7px;background:#f9e9e7;color:#a53d35;cursor:pointer}.agf-form-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}.agf-form-actions button{border:1px solid #ddd6cf;background:#fff;border-radius:9px;padding:9px 13px;font:800 7.5px Poppins,system-ui;cursor:pointer}.agf-form-actions button.primary{background:#ff7415;border-color:#ff7415;color:#fff}
.agf-modal{position:fixed;inset:0;z-index:2147481000;background:rgba(30,16,10,.68);display:flex;align-items:center;justify-content:center;padding:18px}.agf-modal>section{width:min(900px,96vw);background:#fff;border-radius:16px;padding:15px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.agf-modal header{display:flex;justify-content:space-between;align-items:center}.agf-modal header small,.agf-modal header b{display:block}.agf-modal header button{border:0;background:none;font-size:22px;cursor:pointer}.agf-modal textarea{width:100%;height:52vh;border:1px solid #ded8d2;border-radius:10px;padding:10px;font:11px ui-monospace,Consolas,monospace}.agf-modal footer{display:flex;justify-content:flex-end;gap:7px;margin-top:8px}.agf-modal footer button{border:0;background:#3b170d;color:#fff;border-radius:8px;padding:8px 12px;cursor:pointer}
@media(max-width:1050px){.agf-kpis{grid-template-columns:1fr 1fr}.agf-grid{grid-template-columns:1fr}.agf-formgrid{grid-template-columns:1fr 1fr}.agf-item-row{grid-template-columns:repeat(4,1fr)}.agf-item-row .wide2{grid-column:span 2}}
@media(max-width:760px){.agf-head{align-items:stretch!important;flex-direction:column!important}.agf-head-actions{justify-content:space-between}.agf-kpis{grid-template-columns:1fr 1fr}.agf-formgrid{grid-template-columns:1fr}.agf-formgrid .span2{grid-column:auto}.agf-item-row{grid-template-columns:1fr 1fr}.agf-item-row .wide2{grid-column:1/-1}}

/* Native BuildHub pages must remain visible inside AgroHub */
body.agro13 #purchasesPage.active,
body.agro13 #inventoryPage.active,
body.agro13 #fleetPage.active,
body.agro13 #financePage.active,
body.agro13 #salesPage.active{display:block!important;visibility:visible!important;opacity:1!important}

/* AGROHUB v1.6.2 • dashboard mapa + resultado + sessão expirada */
.agro-session-expired{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(31,17,11,.68);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.agro-session-expired.open{display:flex}
.agro-session-expired-card{width:min(430px,94vw);background:#fff;border:1px solid #eadfd7;border-radius:20px;padding:22px;box-shadow:0 28px 90px rgba(31,17,11,.32);position:relative;overflow:hidden}
.agro-session-expired-card:before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(90deg,#ff7415 0 58%,#13a1d1 58% 78%,#2f9d58 78%)}
.agro-session-brand{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid #eee8e3}.agro-session-brand img{width:54px;height:54px;object-fit:contain;border-radius:50%}.agro-session-brand small,.agro-session-brand b{display:block}.agro-session-brand small{font:800 7px Poppins,system-ui;color:#f07317;letter-spacing:.08em}.agro-session-brand b{font:800 13px Poppins,system-ui;color:#2b160f;margin-top:2px}
.agro-session-icon{width:54px;height:54px;border-radius:17px;background:#fff3e7;display:grid;place-items:center;font-size:25px;margin:20px 0 10px}.agro-session-expired-card h2{font:800 24px Poppins,system-ui;color:#21150f;margin:0 0 6px}.agro-session-expired-card>p{font:500 10px/1.6 Poppins,system-ui;color:#6e7479;margin:0 0 18px}.agro-session-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.agro-session-actions button{height:42px;border-radius:10px;border:1px solid #ded7d1;background:#fff;color:#44362e;font:800 8.5px Poppins,system-ui;cursor:pointer;transition:.15s ease}.agro-session-actions button.primary{background:#ff7415;border-color:#ff7415;color:#fff}.agro-session-actions button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(51,29,17,.12)}.agro-session-note{display:block;text-align:center;color:#9a9fa4;font:500 6.5px Poppins,system-ui;margin-top:13px}
body.agro-session-locked{overflow:hidden!important}

/* 3 faixas: hero + KPIs + conteúdo principal; sem deck inferior */
.ag13-dashboard-shell.ag162-dashboard{grid-template-rows:82px 66px minmax(0,1fr)!important;gap:6px!important;height:calc(100vh - 64px)!important;overflow:hidden!important}
.ag162-dashboard .ag13-dashboard-primary.ag162-primary{grid-template-columns:minmax(0,1.32fr) minmax(390px,.78fr)!important;gap:7px!important;min-height:0!important;height:100%!important}
.ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{min-height:0!important;height:100%!important}
.ag162-dashboard .ag13-primary-main .ag13-map-card{height:100%!important;min-height:0!important;padding:9px!important;border-radius:13px!important;display:flex!important;flex-direction:column!important}
.ag162-dashboard .ag13-map-card .ag13-cardhead{flex:0 0 auto;margin-bottom:7px!important}.ag162-dashboard .ag13-map-card .ag13-cardhead>div:first-child small{display:block;color:#7c848b;font-size:6.6px;margin-top:2px}.ag162-dashboard .ag13-map-card .ag13-cardhead select{height:31px!important;font-size:7px!important}.ag162-dashboard .ag13-map-card .ag13-cardhead button{height:31px!important;width:34px!important}
.ag162-dashboard .ag13-primary-main .ag13-map{flex:1 1 auto!important;height:auto!important;min-height:0!important;border-radius:11px!important}
.ag162-dashboard .ag162-side{display:grid!important;grid-template-rows:minmax(225px,1.28fr) minmax(170px,.96fr) minmax(110px,.62fr)!important;gap:7px!important}
.ag162-dashboard .ag162-side>.ag13-card{height:100%!important;min-height:0!important;overflow:hidden!important;padding:9px!important;border-radius:13px!important}

/* Resultado da safra */
.ag162-result .ag13-cardhead{margin-bottom:7px!important}.ag162-result .ag13-cardhead>div{min-width:0}.ag162-result .ag13-cardhead>div>b{font-size:10px!important}.ag162-result .ag13-cardhead>div>small{font-size:6.2px!important;color:#7f878e!important;white-space:normal!important}.ag162-result .ag13-cardhead>button{font-size:6.8px!important;padding:5px 8px!important;border-radius:7px!important}
.ag162-result-main{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border-radius:10px;padding:9px 10px;margin-bottom:7px}.ag162-result-main.good{background:#eaf7ee;color:#226f3d}.ag162-result-main.bad{background:#fcebea;color:#9a3833}.ag162-result-main.warn{background:#fff3de;color:#966019}.ag162-result-main small{display:block;font-size:5.8px;font-weight:800;letter-spacing:.04em}.ag162-result-main strong{display:block;font-size:15px;line-height:1.15;margin:2px 0;white-space:normal}.ag162-result-main span{display:block;font-size:6px;line-height:1.35}.ag162-result-main>em{font-style:normal;font-size:5.8px;font-weight:800;padding:5px 7px;border-radius:999px;background:#ffffffaa;white-space:nowrap}
.ag162-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.ag162-result-grid>div{border:1px solid #ece8e3;border-radius:8px;padding:6px;min-width:0;background:#fff}.ag162-result-grid small{display:block;font-size:5.7px;line-height:1.25;color:#858c92}.ag162-result-grid b{display:block;margin-top:2px;font-size:8px;line-height:1.25;color:#152033;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal}
.ag162-result-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding-top:6px;border-top:1px solid #eeeae5;color:#798087;font-size:5.9px}.ag162-result-foot b{color:#2d211a;font-size:6.4px}

/* Custos e investimentos abaixo do resultado */
.ag162-cost-invest .ag13-cardhead{margin-bottom:6px!important}.ag162-cost-invest .ag13-cardhead>div>b{font-size:9px!important}.ag162-cost-invest .ag13-cardhead>div>small{display:block;color:#858c92;font-size:5.8px;margin-top:1px}.ag162-cost-invest .ag13-cardhead>button{font-size:6.2px!important}
.ag162-invest-head{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}.ag162-invest-head small,.ag162-invest-head span{display:block;font-size:5.7px;color:#7d858c}.ag162-invest-head b{display:block;font-size:11px;color:#251912;margin:1px 0}.ag162-invest-head>strong{font-size:10px;color:#2f9d58}.ag162-budgetbar{display:block;height:7px;border-radius:999px;background:#e9ecee;overflow:hidden;margin:5px 0 7px}.ag162-budgetbar>b{display:block;height:100%;background:linear-gradient(90deg,#2f9d58,#69be81);border-radius:999px}
.ag162-costrows{display:grid;gap:4px}.ag162-costrows>div{display:grid;grid-template-columns:98px minmax(0,1fr) 75px;gap:6px;align-items:center}.ag162-costrows span{font-size:5.8px;color:#4e575e;white-space:nowrap}.ag162-costrows>div>i{height:6px;background:#eceff1;border-radius:999px;overflow:hidden}.ag162-costrows>div>i>b{display:block;height:100%;border-radius:999px}.ag162-costrows strong{font-size:6.4px;color:#283038;text-align:right;white-space:nowrap}.ag162-costfoot{display:flex;justify-content:space-between;gap:8px;margin-top:6px;padding-top:5px;border-top:1px solid #eeeae5;font-size:5.8px;color:#778088}.ag162-costfoot b{color:#2d211a}

/* Alertas compactos */
.ag162-side .ag13-tasks{max-height:100%;overflow:auto}.ag162-side .ag13-task-btn{padding:5px 2px!important}.ag162-side .ag13-task-btn span{font-size:6.7px!important}.ag162-side .ag13-task-btn b{font-size:5.8px!important;white-space:normal!important;line-height:1.25}

/* Legenda, rótulos e popup do mapa */
.ag162-map-legend{background:rgba(255,255,255,.95);border:1px solid #e4dfd9;border-radius:10px;padding:8px 9px;box-shadow:0 7px 18px rgba(30,18,10,.13);min-width:132px;backdrop-filter:blur(5px)}.ag162-map-legend>b{display:block;font:800 7px Poppins,system-ui;color:#2f211a;margin-bottom:5px}.ag162-map-legend>span{display:flex;align-items:center;gap:5px;font:600 5.8px Poppins,system-ui;color:#596168;margin:3px 0}.ag162-map-legend>span>i{width:9px;height:9px;border-radius:3px;box-shadow:inset 0 0 0 1px #00000012}
.ag162-field-label{background:#2b160fde!important;border:0!important;color:#fff!important;border-radius:6px!important;padding:3px 6px!important;box-shadow:0 4px 10px #0002!important;font:800 6px Poppins,system-ui!important}.ag162-field-label:before{display:none!important}
.ag162-popup-shell .leaflet-popup-content-wrapper{border-radius:14px!important;padding:0!important;box-shadow:0 16px 38px rgba(34,20,13,.22)!important}.ag162-popup-shell .leaflet-popup-content{margin:0!important;width:330px!important;max-width:78vw!important}.ag162-field-popup{padding:12px;font-family:Poppins,system-ui}.ag162-field-popup header{display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:1px solid #eeeae5}.ag162-field-popup header>i{width:12px;height:30px;border-radius:6px;flex:0 0 12px}.ag162-field-popup header b,.ag162-field-popup header small{display:block}.ag162-field-popup header b{font-size:12px;color:#201711}.ag162-field-popup header small{font-size:6.5px;color:#7c848a;margin-top:1px}.ag162-popup-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:9px 0}.ag162-popup-grid>div{background:#faf9f7;border:1px solid #eeeae5;border-radius:8px;padding:6px;min-width:0}.ag162-popup-grid>div.wide{grid-column:span 3}.ag162-popup-grid small,.ag162-popup-grid b{display:block}.ag162-popup-grid small{font-size:5.8px;color:#848b91}.ag162-popup-grid b{font-size:7px;color:#273038;margin-top:2px;white-space:normal}.ag162-popup-ops{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ag162-popup-ops p{margin:0;background:#fff6ec;border-radius:8px;padding:6px}.ag162-popup-ops span,.ag162-popup-ops b{display:block}.ag162-popup-ops span{font-size:5.7px;color:#8a6a51}.ag162-popup-ops b{font-size:6.5px;color:#35231a;margin-top:2px}.ag162-field-popup .ag13-popup-btn{width:100%;margin-top:8px;border:0;background:#ff7415;color:#fff;border-radius:8px;padding:8px;font:800 7px Poppins,system-ui;cursor:pointer}

/* mapa mais quadrado também em telas intermediárias */
@media(max-width:1400px) and (min-width:1181px){.ag162-dashboard .ag13-dashboard-primary.ag162-primary{grid-template-columns:minmax(0,1.22fr) minmax(390px,.78fr)!important}.ag162-result-grid{grid-template-columns:1fr 1fr}.ag162-result-grid>div{padding:5px}.ag162-costrows>div{grid-template-columns:90px minmax(0,1fr) 72px}}
@media(max-width:1180px) and (min-width:761px){.ag13-dashboard-shell.ag162-dashboard{grid-template-rows:76px 62px minmax(0,1fr)!important}.ag162-dashboard .ag13-dashboard-primary.ag162-primary{grid-template-columns:minmax(0,1.18fr) minmax(350px,.82fr)!important}.ag162-dashboard .ag162-side{grid-template-rows:minmax(220px,1.25fr) minmax(165px,.92fr) minmax(105px,.6fr)!important}.ag162-result-grid{grid-template-columns:1fr 1fr}.ag162-costrows>div{grid-template-columns:82px minmax(0,1fr) 68px}.ag162-map-legend{padding:6px 7px;min-width:120px}}
@media(max-width:760px){.ag13-dashboard-shell.ag162-dashboard{display:block!important;height:auto!important;overflow:visible!important}.ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:block!important}.ag162-dashboard .ag13-primary-main .ag13-map{height:430px!important}.ag162-dashboard .ag162-side{display:block!important}.ag162-dashboard .ag162-side>.ag13-card{height:auto!important;margin-top:8px}.ag162-result-grid{grid-template-columns:1fr 1fr}.agro-session-actions{grid-template-columns:1fr}.ag162-popup-grid{grid-template-columns:1fr 1fr}.ag162-popup-grid>div.wide{grid-column:span 2}.ag162-popup-ops{grid-template-columns:1fr}}

/* AGROHUB v1.6.3 • hotfix badge sem sobreposição */
body.agro-mode .buildhub-safe-about{
  left:22px!important;
  right:auto!important;
  bottom:18px!important;
  top:auto!important;
  z-index:1250!important;
  padding:8px 12px!important;
  max-width:204px!important;
  white-space:nowrap!important;
}
.ag162-dashboard .ag162-side>.ag13-card:last-child{
  position:relative!important;
  overflow:hidden!important;
}
.ag162-dashboard .ag162-side>.ag13-card:last-child .ag13-tasks{
  height:calc(100% - 26px)!important;
  max-height:none!important;
  overflow:auto!important;
  padding-right:2px!important;
  scrollbar-gutter:stable;
}
@media(max-width:1180px) and (min-width:761px){
  body.agro-mode .buildhub-safe-about{left:14px!important;bottom:14px!important}
}
@media(max-width:760px){
  body.agro-mode .buildhub-safe-about{left:auto!important;right:12px!important;bottom:12px!important}
}

/* AGROHUB v1.6.4 • custo total/ha */
.ag162-costrows{gap:3px!important}
.ag162-costrows>div{grid-template-columns:108px minmax(0,1fr) 82px!important;gap:6px!important}
.ag162-costrows span{font-size:5.6px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ag162-costrows strong{font-size:6px!important}
.ag164-cost-warning{margin-top:5px;padding:5px 6px;border:1px solid #ffd8a8;background:#fff8ec;color:#9a5a10;border-radius:7px;font:600 5.6px/1.35 Poppins,system-ui}
.ag13-form label small{display:block;margin-top:4px;color:#8a9197;font:500 6.5px/1.4 Poppins,system-ui}

/* v1.6.4 • dashboard sem card redundante de alertas; assinatura de volta ao canto original */
.ag162-dashboard .ag162-side{
  grid-template-rows:minmax(245px,1.15fr) minmax(215px,1fr)!important;
  gap:8px!important;
  padding-bottom:44px!important;
  box-sizing:border-box!important;
}
body.agro-mode .buildhub-safe-about{
  left:auto!important;
  right:14px!important;
  bottom:12px!important;
  top:auto!important;
  z-index:1200!important;
  max-width:none!important;
  white-space:nowrap!important;
}
@media(max-width:1180px) and (min-width:761px){
  .ag162-dashboard .ag162-side{
    grid-template-rows:minmax(230px,1.15fr) minmax(205px,1fr)!important;
    padding-bottom:42px!important;
  }
  body.agro-mode .buildhub-safe-about{left:auto!important;right:12px!important;bottom:10px!important}
}
@media(max-width:760px){
  .ag162-dashboard .ag162-side{display:block!important;padding-bottom:54px!important}
  body.agro-mode .buildhub-safe-about{left:auto!important;right:12px!important;bottom:12px!important}
}

/* AGROHUB v1.6.5 • detalhe real do Investido na Safra */
.ag165-invest-page{max-width:1500px;margin:0 auto;padding:2px 2px 54px}
.ag165-invest-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px}
.ag165-invest-kpis article{background:#fff;border:1px solid #e8e3dc;border-radius:13px;padding:12px;min-width:0;box-shadow:0 4px 14px rgba(57,35,23,.04)}
.ag165-invest-kpis small,.ag165-invest-kpis span{display:block;color:#7d858c;font-size:7px}.ag165-invest-kpis b{display:block;color:#211711;font-size:18px;margin:4px 0;white-space:nowrap}
.ag165-invest-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:8px;margin-bottom:8px}
.ag165-invest-breakdown,.ag165-invest-budget,.ag165-invest-fields{padding:12px!important}
.ag165-invest-row{display:grid;grid-template-columns:155px minmax(0,1fr) 105px;gap:9px;align-items:center;margin:9px 0}.ag165-invest-row>div{display:flex;justify-content:space-between;gap:8px}.ag165-invest-row b,.ag165-invest-row span{font-size:7px}.ag165-invest-row>i{height:9px;border-radius:999px;background:#eceff1;overflow:hidden}.ag165-invest-row>i>b{display:block;height:100%;border-radius:999px}.ag165-invest-row>strong{text-align:right;font-size:8px;white-space:nowrap}
.ag165-budget-ring{--p:0;width:138px;height:138px;margin:6px auto 14px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#31a35a calc(var(--p)*1%),#eef0ee 0)}.ag165-budget-ring:before{content:"";position:absolute}.ag165-budget-ring>div{width:98px;height:98px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center}.ag165-budget-ring b{font-size:20px;color:#2d211a}.ag165-budget-ring span{font-size:7px;color:#7c858c}
.ag165-budget-lines p{display:flex;justify-content:space-between;gap:10px;margin:7px 0;padding:7px 0;border-bottom:1px solid #eeeae5}.ag165-budget-lines p:last-child{border-bottom:0}.ag165-budget-lines span{font-size:7px;color:#7b838a}.ag165-budget-lines b{font-size:8px;color:#2c211a}
.ag165-invest-fields .tablewrap{max-height:330px;overflow:auto}.ag165-invest-fields table{width:100%;border-collapse:collapse}.ag165-invest-fields th,.ag165-invest-fields td{padding:8px 9px!important;font-size:7px!important;white-space:nowrap}.ag165-invest-fields td small{font-size:6px;color:#6f777d}
.ag165-invest-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.ag165-invest-actions button{border:1px solid #dfd9d3;background:#fff;color:#3f4a52;border-radius:9px;padding:8px 11px;font:700 7px Poppins,system-ui;cursor:pointer}.ag165-invest-actions button:hover{border-color:#ff9e57;color:#e86f12;background:#fff8f1}
@media(max-width:1050px){.ag165-invest-kpis{grid-template-columns:1fr 1fr}.ag165-invest-grid{grid-template-columns:1fr}.ag165-invest-row{grid-template-columns:135px minmax(0,1fr) 95px}}
@media(max-width:760px){.ag165-invest-kpis{grid-template-columns:1fr 1fr}.ag165-invest-row{grid-template-columns:1fr}.ag165-invest-row>strong{text-align:left}.ag165-invest-actions{justify-content:stretch}.ag165-invest-actions button{flex:1}}

/* AGROHUB v1.6.6 • custos automáticos + footer real + mobile */
body.agro-mode .agrohub-footer{display:flex!important;align-items:center;justify-content:center;width:100%;height:30px;min-height:30px;margin:0!important;background:#32170f;border-top:1px solid #51271b;position:relative!important;z-index:20}
body.agro-mode .agrohub-footer .buildhub-safe-about{position:static!important;inset:auto!important;width:auto!important;max-width:none!important;height:30px!important;margin:0!important;padding:0 14px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;font:800 10px/30px Poppins,system-ui!important;letter-spacing:.02em!important}
body.agro-mode .agrohub-footer .buildhub-safe-about:hover{background:#472116!important}
body.agro13:has(.ag162-dashboard) .ag13-dashboard-shell.ag162-dashboard{height:calc(100vh - 94px)!important}
body.agro13 .ag162-dashboard .ag162-side{padding-bottom:0!important}

/* custos: visão consolidada automática */
.ag166-cost-page{padding-bottom:18px!important}.ag166-cost-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 9px}.ag166-cost-kpis>article{min-width:0}
.ag166-auto-note{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 0 9px;border:1px solid #bfe6cb;border-left:4px solid #2fa55c;border-radius:11px;background:#f2fbf5}.ag166-auto-note b{font-size:8px;color:#246a3b;white-space:nowrap}.ag166-auto-note span{font-size:7px;line-height:1.45;color:#617068}
.ag166-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:9px}.ag166-source-grid article{position:relative;min-height:88px;padding:11px;border:1px solid #e8e3dd;border-radius:12px;background:#fff}.ag166-source-grid article b,.ag166-source-grid article span{display:block}.ag166-source-grid article b{font-size:8px;color:#25201c;margin-bottom:4px}.ag166-source-grid article span{font-size:6.5px;line-height:1.45;color:#7a8389;padding-right:48px}.ag166-source-grid article em{position:absolute;right:8px;top:8px;padding:4px 6px;border-radius:999px;background:#f0f1f2;color:#697178;font:800 5.5px Poppins,system-ui;font-style:normal}.ag166-source-grid article em.ok{background:#e9f7ee;color:#267345}.ag166-source-grid article em.warn{background:#fff1df;color:#a96314}
.ag166-section-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px}.ag166-section-head b,.ag166-section-head small{display:block}.ag166-section-head b{font-size:9px;color:#211812}.ag166-section-head small{font-size:6.5px;color:#81898f;margin-top:2px}.ag166-field-costs,.ag166-manual-costs{padding:11px!important;margin-bottom:9px!important}.ag166-field-costs .tablewrap,.ag166-manual-costs .tablewrap{overflow:auto!important}.ag166-field-costs table,.ag166-manual-costs table{min-width:840px!important;width:100%}.ag166-field-costs td small{font-size:6px;color:#6f777d;white-space:normal}.ag166-manual-costs .ag-toolbar-inline{margin-bottom:8px}
@media(max-width:1180px){.ag166-cost-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ag166-source-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){
 html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
 body.agro13:has(.ag13-dashboard-shell){height:auto!important;max-height:none!important;overflow-y:auto!important}
 body.agro13:has(.ag13-dashboard-shell) .main-content{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important;margin-left:0!important;width:100%!important;max-width:100%!important;padding:0 8px 88px!important}
 body.agro13 #agrohubPage.active{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important}
 .ag13-dashboard-shell.ag162-dashboard{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:block!important}
 body.agro13 .topbar{height:56px!important;min-height:56px!important;padding:0 8px!important;position:sticky!important;top:0!important;z-index:900!important}.ag13-top{height:56px!important;padding:0!important;gap:7px!important}.ag13-search{height:36px!important;width:min(210px,56vw)!important}.ag13-search input{font-size:10px!important}.ag13-date{display:none!important}.ag13-top-right{gap:7px!important}.ag13-user{display:none!important}
 .ag13-real-hero,.ag13-dashboard-shell .ag13-real-hero{height:132px!important;min-height:132px!important;border-radius:0 0 14px 14px!important;background-position:center 42%!important;margin:0 0 8px!important}.ag13-real-hero .ag13-title{left:14px!important;right:14px!important;top:14px!important}.ag13-real-hero .ag13-title>span{width:36px!important;height:36px!important;font-size:18px!important}.ag13-real-hero .ag13-title h1{font-size:21px!important;line-height:1.05!important;margin:2px 0!important}.ag13-real-hero .ag13-title small{font-size:6px!important}.ag13-real-hero .ag13-title p{font-size:8px!important;white-space:normal!important}.ag13-dashboard-shell .ag13-hero-actions{left:14px!important;right:14px!important;bottom:10px!important;display:grid!important;grid-template-columns:1fr 1fr!important}.ag13-dashboard-shell .ag13-hero-actions button{width:100%!important;height:31px!important;padding:0 7px!important;font-size:7px!important}
 .ag13-dashboard-shell .ag13-kpis{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;height:auto!important;margin:0 0 8px!important}.ag13-dashboard-shell .ag13-kpi{height:86px!important;min-height:86px!important;padding:10px!important;border-radius:12px!important}.ag13-dashboard-shell .ag13-kpi .ico{display:grid!important;width:32px!important;height:32px!important}.ag13-dashboard-shell .ag13-kpi small{font-size:7px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:15px!important;white-space:nowrap!important;overflow:visible!important}.ag13-dashboard-shell .ag13-kpi em{font-size:6.5px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;gap:8px!important}.ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{width:100%!important;height:auto!important}.ag162-dashboard .ag13-primary-main .ag13-map-card{height:auto!important;padding:9px!important}.ag162-dashboard .ag13-map-card .ag13-cardhead{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;align-items:stretch!important}.ag162-dashboard .ag13-map-card .ag13-cardhead>div:last-child{display:flex!important;width:100%!important;gap:6px!important}.ag162-dashboard .ag13-map-card .ag13-cardhead select{flex:1!important}.ag162-dashboard .ag13-primary-main .ag13-map{height:390px!important;min-height:390px!important}.ag162-dashboard .ag162-side{display:block!important;padding-bottom:0!important}.ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;margin:8px 0 0!important;overflow:visible!important}.ag162-result-grid{grid-template-columns:1fr 1fr!important}.ag162-costrows>div{grid-template-columns:98px minmax(0,1fr) 78px!important}
 .ag162-map-legend{min-width:118px!important;padding:6px 7px!important}.ag162-map-legend>span{font-size:5.4px!important}.ag162-field-label{font-size:5.6px!important}.ag162-popup-shell .leaflet-popup-content{width:300px!important;max-width:78vw!important}
 .ag166-cost-page{padding:8px 0 0!important}.ag166-cost-kpis{grid-template-columns:1fr 1fr!important;gap:7px!important}.ag166-source-grid{grid-template-columns:1fr!important}.ag166-auto-note{align-items:flex-start!important;flex-direction:column!important;gap:3px!important}.ag166-source-grid article span{padding-right:0!important;padding-top:14px}.ag166-field-costs,.ag166-manual-costs{padding:8px!important}.ag166-field-costs .tablewrap,.ag166-manual-costs .tablewrap{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
 body.agro-mode .agrohub-footer{height:32px!important;min-height:32px!important;margin:10px 0 74px!important;border-radius:8px!important}.agrohub-footer .buildhub-safe-about{height:32px!important;line-height:32px!important;font-size:9px!important}
}

/* v1.6.6b • correções finais de layout */
body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:calc(100vh - 94px)!important;min-height:0!important;max-height:calc(100vh - 94px)!important;overflow:hidden!important}
.ag166-cost-kpis>div{background:#fff;border:1px solid #e8e3dd;border-radius:12px;padding:10px 11px;min-width:0;box-shadow:0 3px 12px rgba(55,35,24,.035)}
.ag166-cost-kpis>div small,.ag166-cost-kpis>div b,.ag166-cost-kpis>div span{display:block}.ag166-cost-kpis>div small{font-size:6.5px;color:#7c858c;text-transform:uppercase;letter-spacing:.04em}.ag166-cost-kpis>div b{font-size:14px;color:#191a1c;margin:4px 0;white-space:nowrap}.ag166-cost-kpis>div span{font-size:6px;color:#8b9297}
@media(max-width:760px){
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13:has(.ag162-dashboard) .ag13-dashboard-shell.ag162-dashboard{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{height:auto!important;min-height:0!important}
 .ag166-cost-page .ag-module-head{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:stretch!important}.ag166-cost-page .ag-module-head>button{width:100%!important;height:40px!important;white-space:nowrap!important}
 .ag166-cost-kpis>div{padding:10px!important}.ag166-cost-kpis>div small{font-size:6.2px!important}.ag166-cost-kpis>div b{font-size:13px!important;white-space:normal!important;line-height:1.2!important}.ag166-cost-kpis>div span{font-size:6px!important}
}

/* AGROHUB v1.6.7 • assinatura discreta e profissional */
body.agro-mode .agrohub-footer{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:44px!important;min-height:44px!important;
  margin:0!important;padding:6px 10px!important;background:transparent!important;
  border:0!important;position:relative!important;z-index:20!important;
}
body.agro-mode .agrohub-footer .buildhub-safe-about{
  position:static!important;inset:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:9px!important;width:auto!important;height:32px!important;min-height:32px!important;max-width:100%!important;
  margin:0!important;padding:0 12px!important;background:rgba(255,255,255,.92)!important;color:#34251f!important;
  border:1px solid #e7dfd8!important;border-radius:999px!important;box-shadow:0 3px 12px rgba(56,35,24,.07)!important;
  font-family:Poppins,system-ui!important;cursor:pointer!important;white-space:nowrap!important;
}
body.agro-mode .ag-footer-product{display:inline-flex;align-items:center;gap:6px!important}
body.agro-mode .ag-footer-product strong{font-size:8px!important;line-height:1!important;letter-spacing:.08em!important;color:#3a1b12!important}
body.agro-mode .ag-footer-product em{font-style:normal!important;font-size:6px!important;font-weight:800!important;line-height:1!important;color:#e96d11!important;background:#fff2e7!important;padding:4px 6px!important;border-radius:999px!important}
body.agro-mode .ag-footer-divider{display:block!important;width:1px!important;height:14px!important;background:#e5ddd7!important}
body.agro-mode .ag-footer-by{font-size:6.5px!important;line-height:1!important;font-weight:500!important;color:#8b817a!important}
body.agro-mode .ag-footer-by b{font-size:7px!important;letter-spacing:.06em!important;color:#2f6b43!important}
body.agro-mode .agrohub-footer .buildhub-safe-about:hover{background:#fff!important;border-color:#d9cec5!important;box-shadow:0 5px 16px rgba(56,35,24,.10)!important;transform:translateY(-1px)!important}
body.agro13:has(.ag162-dashboard) #agrohubPage.active{height:calc(100vh - 108px)!important;max-height:calc(100vh - 108px)!important}
body.agro13:has(.ag162-dashboard) .ag13-dashboard-shell.ag162-dashboard{height:calc(100vh - 108px)!important}
@media(max-width:760px){
  body.agro-mode .agrohub-footer{height:46px!important;min-height:46px!important;padding:7px 8px!important;margin:8px 0 76px!important}
  body.agro-mode .agrohub-footer .buildhub-safe-about{height:32px!important;min-height:32px!important;padding:0 10px!important;gap:7px!important}
  body.agro-mode .ag-footer-product strong{font-size:7.5px!important}
  body.agro-mode .ag-footer-product em{font-size:5.8px!important;padding:4px 5px!important}
  body.agro-mode .ag-footer-by{font-size:6px!important}
  body.agro-mode .ag-footer-by b{font-size:6.4px!important}
  body.agro13:has(.ag162-dashboard) #agrohubPage.active{height:auto!important;max-height:none!important}
  body.agro13:has(.ag162-dashboard) .ag13-dashboard-shell.ag162-dashboard{height:auto!important;max-height:none!important}
}

/* AGROHUB v1.6.8 • mobile drawer acima do mapa + fechamento ao navegar */
@media(max-width:760px){
  body.agro-mode .sidebar{
    z-index:5000!important;
    top:0!important;
    bottom:calc(66px + env(safe-area-inset-bottom))!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.agro-mode .sidebar-backdrop{
    z-index:4900!important;
    top:0!important;
    bottom:calc(66px + env(safe-area-inset-bottom))!important;
  }
  body.agro-mode .mobile-nav{z-index:5100!important}
  body.agro-mode .topbar{z-index:900!important}
  body.agro-mode .leaflet-pane,
  body.agro-mode .leaflet-top,
  body.agro-mode .leaflet-bottom,
  body.agro-mode .leaflet-control{z-index:auto}
  body.agro-mode .leaflet-map-pane{z-index:1!important}
  body.agro-mode .leaflet-tile-pane{z-index:2!important}
  body.agro-mode .leaflet-overlay-pane{z-index:4!important}
  body.agro-mode .leaflet-shadow-pane{z-index:5!important}
  body.agro-mode .leaflet-marker-pane{z-index:6!important}
  body.agro-mode .leaflet-tooltip-pane{z-index:7!important}
  body.agro-mode .leaflet-popup-pane{z-index:8!important}
  body.mobile-drawer-open .main-content{pointer-events:none!important}
  body.mobile-drawer-open .sidebar,
  body.mobile-drawer-open .sidebar *,
  body.mobile-drawer-open .mobile-nav,
  body.mobile-drawer-open .sidebar-backdrop{pointer-events:auto!important}
  body.agro-mode .sidebar .sidebar-footer{
    margin-top:18px!important;
    padding-bottom:14px!important;
    flex:0 0 auto!important;
  }
}

/* AGROHUB v1.6.9 • drawer mobile refinado */
@media(max-width:760px){
  body.agro-mode .sidebar{
    width:min(78vw,320px)!important;
    min-width:280px!important;
  }
  body.agro-mode .sidebar-brand{padding:8px 8px 14px!important}
  body.agro-mode .sidebar-brand .ag-brand-copy strong{font-size:18px!important;white-space:nowrap!important}
  body.agro-mode .sidebar .nav-item{min-height:44px!important;padding:10px 12px!important}
  body.agro-mode .sidebar .nav-item>span:last-child{font-size:12px!important;line-height:1.3!important}
  body.agro-mode .leaflet-pane{z-index:400}
  body.agro-mode .leaflet-tile-pane{z-index:200!important}
  body.agro-mode .leaflet-overlay-pane{z-index:400!important}
  body.agro-mode .leaflet-shadow-pane{z-index:500!important}
  body.agro-mode .leaflet-marker-pane{z-index:600!important}
  body.agro-mode .leaflet-tooltip-pane{z-index:650!important}
  body.agro-mode .leaflet-popup-pane{z-index:700!important}
  body.agro-mode .leaflet-top,
  body.agro-mode .leaflet-bottom{z-index:1000!important;pointer-events:none!important}
  body.agro-mode .leaflet-control{z-index:800!important;pointer-events:auto!important}
}

/* AGROHUB v1.7.0 • perfil + assinatura integrados ao rodapé lateral */
body.agro-mode .agrohub-footer{display:none!important}
body.agro-mode .sidebar{padding-bottom:12px!important}
body.agro-mode .sidebar:after{
  left:-18px!important;right:-18px!important;bottom:-42px!important;height:82px!important;
  opacity:.9!important;z-index:0!important
}
body.agro-mode .side-nav{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding-bottom:8px!important;scrollbar-width:thin
}
body.agro-mode .sidebar-footer{
  position:relative!important;z-index:3!important;display:block!important;flex:0 0 auto!important;
  margin-top:10px!important;padding:10px 8px 4px!important;border-top:1px solid rgba(255,255,255,.10)!important;
}
body.agro-mode .ag-user-card{
  display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;
  padding:10px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:14px!important;
  background:rgba(255,255,255,.045)!important;backdrop-filter:blur(5px)!important
}
body.agro-mode .user-mini{min-width:0!important;flex:1 1 auto!important;gap:9px!important}
body.agro-mode .sidebar-footer .avatar{
  width:38px!important;height:38px!important;flex:0 0 38px!important;background:#ff7817!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(255,120,23,.24)!important;font-size:11px!important
}
body.agro-mode .ag-user-copy{min-width:0!important;flex:1!important}
body.agro-mode .sidebar-footer .user-mini strong,
body.agro-mode .sidebar-footer .user-mini small{
  max-width:none!important;width:100%!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
}
body.agro-mode .sidebar-footer .user-mini strong{font-size:10px!important;line-height:1.3!important;color:#fff!important}
body.agro-mode .sidebar-footer .user-mini small{font-size:7px!important;line-height:1.35!important;color:#bdaea8!important;margin-top:2px!important}
body.agro-mode .ag-user-actions{display:flex!important;gap:4px!important;flex:0 0 auto!important}
body.agro-mode .ag-user-actions .logout-btn{
  width:30px!important;height:30px!important;display:grid!important;place-items:center!important;padding:0!important;
  border:1px solid rgba(255,255,255,.08)!important;border-radius:9px!important;background:rgba(255,255,255,.045)!important;
  color:#f4dfd6!important;font-size:15px!important;line-height:1!important;transition:.18s ease!important
}
body.agro-mode .ag-user-actions .logout-btn:hover{background:rgba(255,255,255,.12)!important;color:#fff!important;transform:translateY(-1px)!important}
body.agro-mode .ag-sidebar-signature-slot{margin-top:7px!important;width:100%!important}
body.agro-mode .ag-sidebar-signature-slot .buildhub-safe-about{
  position:static!important;inset:auto!important;display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;
  width:100%!important;max-width:none!important;min-height:48px!important;margin:0!important;padding:8px 10px!important;
  border:1px solid rgba(255,255,255,.09)!important;border-radius:12px!important;background:rgba(15,8,7,.42)!important;
  color:#fff!important;box-shadow:none!important;cursor:pointer!important;text-align:left!important;gap:2px 8px!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product strong{
  font-size:8px!important;letter-spacing:.10em!important;color:#fff!important;line-height:1!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product em{
  font-style:normal!important;font-size:5.8px!important;font-weight:800!important;line-height:1!important;
  color:#ff8a2d!important;background:rgba(255,122,25,.12)!important;padding:4px 5px!important;border-radius:999px!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-divider{display:none!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-by{
  grid-column:1/-1!important;display:block!important;margin-top:3px!important;font-size:5.8px!important;line-height:1.2!important;
  color:#b9aba5!important;font-weight:500!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-by b{font-size:6.5px!important;letter-spacing:.08em!important;color:#6dc48a!important}
body.agro-mode .ag-sidebar-signature-slot .buildhub-safe-about:hover{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.15)!important}
@media(max-width:760px){
  body.agro-mode .sidebar{padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}
  body.agro-mode .sidebar-footer{margin-top:8px!important;padding:10px 10px 10px!important}
  body.agro-mode .ag-user-card{padding:10px 11px!important}
  body.agro-mode .sidebar-footer .user-mini strong{font-size:11px!important}
  body.agro-mode .sidebar-footer .user-mini small{font-size:7.5px!important}
  body.agro-mode .ag-sidebar-signature-slot .buildhub-safe-about{min-height:50px!important;padding:9px 11px!important}
  body.agro-mode .ag-sidebar-signature-slot .ag-footer-product strong{font-size:8.5px!important}
  body.agro-mode .ag-sidebar-signature-slot .ag-footer-by{font-size:6.2px!important}
}

/* v1.7.0b • identidade do usuário legível */
body.agro-mode .sidebar-footer .user-mini strong{
  white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;line-height:1.18!important
}
body.agro-mode .ag-user-card{min-height:58px!important}
@media(max-width:760px){
  body.agro-mode .sidebar-footer .user-mini strong{font-size:10.5px!important}
  body.agro-mode .sidebar-footer .user-mini small{white-space:nowrap!important}
}

/* AGROHUB v1.7.1 • rodapé lateral compacto e sem cortes */
body.agro-mode .sidebar-footer{margin-top:6px!important;padding:8px 7px 2px!important}
body.agro-mode .ag-user-card{
  display:block!important;min-height:0!important;padding:9px 10px 7px!important;border-radius:15px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.025))!important
}
body.agro-mode .ag-user-main{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}
body.agro-mode .ag-user-main .user-mini{flex:1 1 auto!important;min-width:0!important}
body.agro-mode .ag-user-copy{min-width:0!important}
body.agro-mode .sidebar-footer .user-mini strong{
  display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  -webkit-line-clamp:unset!important;line-clamp:unset!important;font-size:10px!important;line-height:1.12!important;
  max-height:24px!important;color:#fff!important
}
body.agro-mode .sidebar-footer .user-mini small{
  max-width:none!important;font-size:6.7px!important;line-height:1.2!important;margin-top:3px!important;color:#bcaea8!important
}
body.agro-mode .ag-user-actions{gap:5px!important}
body.agro-mode .ag-user-actions .logout-btn{width:29px!important;height:29px!important;border-radius:9px!important}
body.agro-mode .ag-sidebar-signature-slot{
  margin-top:7px!important;padding-top:6px!important;border-top:1px solid rgba(255,255,255,.08)!important
}
body.agro-mode .ag-sidebar-signature-slot .buildhub-safe-about{
  min-height:24px!important;height:24px!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;width:100%!important;padding:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product{gap:5px!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product strong{font-size:7px!important;letter-spacing:.09em!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product em{font-size:5.2px!important;padding:3px 5px!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-by{
  grid-column:auto!important;margin:0!important;font-size:5.4px!important;text-align:right!important;color:#a89993!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-by b{font-size:5.8px!important}
body.agro-mode .sidebar:after{height:60px!important;bottom:-36px!important}
body.agro-mode .side-nav{padding-bottom:14px!important;scroll-padding-bottom:18px!important}
@media(max-width:760px){
  body.agro-mode .sidebar-footer{padding:8px 9px 8px!important;margin-top:4px!important}
  body.agro-mode .ag-user-card{padding:9px 10px 7px!important}
  body.agro-mode .sidebar-footer .avatar{width:36px!important;height:36px!important;flex-basis:36px!important}
  body.agro-mode .sidebar-footer .user-mini strong{font-size:10px!important;max-height:none!important}
  body.agro-mode .sidebar-footer .user-mini small{font-size:6.8px!important}
  body.agro-mode .ag-sidebar-signature-slot .buildhub-safe-about{height:25px!important;min-height:25px!important}
  body.agro-mode .sidebar:after{height:54px!important;bottom:-32px!important}
}

/* AGROHUB v1.7.2 • menu lateral com rolagem única, sem item cortado no rodapé */
body.agro-mode .sidebar{
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important
}
body.agro-mode .side-nav{
  flex:0 0 auto!important;min-height:auto!important;overflow:visible!important;
  padding-bottom:0!important;scroll-padding-bottom:0!important
}
body.agro-mode .sidebar-footer{
  margin-top:16px!important;padding-top:10px!important;flex:0 0 auto!important
}
body.agro-mode .side-nav .nav-item:last-of-type{margin-bottom:2px!important}
body.agro-mode .ag-user-card{position:relative!important;z-index:3!important}
body.agro-mode .sidebar:after{position:fixed!important;left:0!important;width:248px!important;right:auto!important}
@media(max-width:760px){
  body.agro-mode .sidebar{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
  body.agro-mode .sidebar-footer{margin-top:18px!important}
  body.agro-mode .sidebar:after{width:min(78vw,320px)!important}
}

/* v1.7.2b • remove scroll interno do menu para o rodapé nunca cobrir item */
body.agro13 #sideNav{
  flex:0 0 auto!important;height:auto!important;max-height:none!important;min-height:0!important;
  overflow:visible!important;padding-bottom:0!important
}
body.agro13 .sidebar-footer{margin-top:18px!important}

/* v1.7.2c • respiro garantido entre último módulo e bloco do usuário */
body.agro13 .sidebar-footer{margin-top:52px!important}
@media(max-width:760px){body.agro13 .sidebar-footer{margin-top:58px!important}}

/* AGROHUB v1.7.3 • remove faixas decorativas do rodapé lateral */
body.agro-mode .sidebar:after,
body.agro-mode .sidebar::after{
  content:none!important;
  display:none!important;
  background:none!important;
}

/* AGROHUB v1.7.4 • rodapé lateral refinado */
body.agro-mode .sidebar-footer{
  margin-top:34px!important;padding:0 10px 10px!important;border-top:0!important
}
body.agro-mode .ag-user-card{
  display:block!important;width:100%!important;min-height:0!important;padding:0!important;
  border:1px solid rgba(255,255,255,.11)!important;border-radius:18px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.028))!important;
  overflow:hidden!important;box-shadow:0 8px 24px rgba(0,0,0,.10)!important
}
body.agro-mode .ag-user-main{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;
  align-items:center!important;padding:12px!important
}
body.agro-mode .ag-user-main .user-mini{
  display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;
  align-items:center!important;min-width:0!important
}
body.agro-mode .sidebar-footer .avatar{
  width:42px!important;height:42px!important;flex:0 0 42px!important;
  border-radius:50%!important;font-size:11px!important;font-weight:800!important
}
body.agro-mode .ag-user-copy{min-width:0!important;overflow:hidden!important}
body.agro-mode .sidebar-footer .user-mini strong{
  display:block!important;max-width:100%!important;white-space:normal!important;overflow:hidden!important;
  text-overflow:clip!important;font-size:10.4px!important;line-height:1.14!important;font-weight:800!important;
  letter-spacing:-.01em!important;color:#fff!important;max-height:24px!important
}
body.agro-mode .sidebar-footer .user-mini small{
  display:block!important;max-width:100%!important;margin-top:4px!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;font-size:6.8px!important;line-height:1.2!important;
  color:#b9aaa4!important
}
body.agro-mode .ag-user-actions{display:flex!important;gap:6px!important;align-items:center!important}
body.agro-mode .ag-user-actions .logout-btn{
  width:34px!important;height:34px!important;border-radius:10px!important;padding:0!important;
  border:1px solid rgba(255,255,255,.11)!important;background:rgba(255,255,255,.045)!important;
  color:#f2e9e5!important;font-size:15px!important;box-shadow:none!important
}
body.agro-mode .ag-user-actions .logout-btn:hover{
  background:rgba(255,255,255,.11)!important;border-color:rgba(255,255,255,.18)!important
}
body.agro-mode .ag-sidebar-signature-slot{
  margin:0!important;padding:8px 12px 9px!important;border-top:1px solid rgba(255,255,255,.08)!important
}
body.agro-mode .ag-sidebar-signature-slot .buildhub-safe-about{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  width:100%!important;height:auto!important;min-height:20px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product strong{
  font-size:6.8px!important;letter-spacing:.10em!important;color:#f3ebe7!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product em{
  font-size:5.1px!important;padding:3px 5px!important;border-radius:999px!important;
  background:rgba(255,122,25,.13)!important;color:#ff8a2d!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-by{
  margin:0!important;white-space:nowrap!important;font-size:5.2px!important;color:#9f918b!important
}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-by b{
  font-size:5.8px!important;color:#66c183!important;letter-spacing:.06em!important
}
@media(max-width:760px){
  body.agro-mode .sidebar-footer{margin-top:34px!important;padding:0 10px 10px!important}
  body.agro-mode .ag-user-main{padding:11px!important;gap:8px!important}
  body.agro-mode .ag-user-main .user-mini{grid-template-columns:40px minmax(0,1fr)!important;gap:9px!important}
  body.agro-mode .sidebar-footer .avatar{width:40px!important;height:40px!important;flex-basis:40px!important}
  body.agro-mode .sidebar-footer .user-mini strong{font-size:10px!important;max-height:23px!important}
  body.agro-mode .sidebar-footer .user-mini small{font-size:6.5px!important}
  body.agro-mode .ag-user-actions .logout-btn{width:32px!important;height:32px!important}
  body.agro-mode .ag-sidebar-signature-slot{padding:7px 11px 8px!important}
}
/* AGROHUB v1.7.5 • footer lateral premium */
body.agro-mode .sidebar-footer{margin-top:28px!important;padding:0 10px 12px!important}
body.agro-mode .ag-user-card{padding:0!important;border-radius:16px!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.025))!important;border:1px solid rgba(255,255,255,.10)!important}
body.agro-mode .ag-user-main{display:block!important;padding:11px 12px 9px!important}
body.agro-mode .ag-user-main .user-mini{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
body.agro-mode .sidebar-footer .avatar{width:42px!important;height:42px!important;flex-basis:42px!important}
body.agro-mode .ag-user-copy{min-width:0!important}
body.agro-mode .sidebar-footer .user-mini strong{display:block!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:10.8px!important;line-height:1.12!important;max-height:none!important}
body.agro-mode .sidebar-footer .user-mini small{display:block!important;margin-top:4px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:6.8px!important;color:#b9aaa4!important}
body.agro-mode .ag-user-bottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:7px 9px 8px 12px!important;border-top:1px solid rgba(255,255,255,.08)!important}
body.agro-mode .ag-sidebar-signature-slot{margin:0!important;padding:0!important;border:0!important;min-width:0!important}
body.agro-mode .ag-sidebar-signature-slot .buildhub-safe-about{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:auto!important;min-height:22px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-by{display:none!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product strong{font-size:6.8px!important;letter-spacing:.09em!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-product em{font-size:5.2px!important;padding:3px 5px!important}
body.agro-mode .ag-user-actions{display:flex!important;gap:5px!important}
body.agro-mode .ag-user-actions .logout-btn{width:29px!important;height:29px!important;border-radius:9px!important}
body.agro-mode .ag-sidebar-signature-slot .ag-footer-cactus{font-size:5.6px!important;font-weight:800!important;letter-spacing:.06em!important;color:#66c183!important;white-space:nowrap!important}
@media(max-width:760px){body.agro-mode .ag-sidebar-signature-slot .ag-footer-cactus{font-size:5.4px!important}}

/* AGROHUB v1.7.6 • corrige sobreposição do rodapé no menu */
body.agro-mode .sidebar-footer{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  top:auto!important;
  flex:0 0 auto!important;
  width:auto!important;
  margin:18px 10px 12px!important;
  padding:0!important;
  transform:none!important;
}
body.agro-mode #sideNav{
  flex:0 0 auto!important;
  overflow:visible!important;
  height:auto!important;
  max-height:none!important;
  padding-bottom:0!important;
}
body.agro-mode .sidebar{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.agro-mode .side-nav .nav-item:last-of-type{
  margin-bottom:0!important;
}
@media(max-width:760px){
  body.agro-mode .sidebar-footer{
    margin:22px 10px 12px!important;
  }
}
/* AGROHUB v1.8.0 • dashboard legível + métricas produtivas */
@media(min-width:1181px){
  body.agro13:has(.ag162-dashboard){height:auto!important;max-height:none!important;overflow-y:auto!important}
  body.agro13:has(.ag162-dashboard) .main-content{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
  body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .ag13-dashboard-shell.ag162-dashboard{height:auto!important;min-height:calc(100vh - 60px)!important;max-height:none!important;grid-template-rows:96px auto minmax(520px,1fr)!important;gap:9px!important}
  .ag13-dashboard-shell .ag13-real-hero{height:96px!important;min-height:96px!important}
  .ag13-dashboard-shell .ag13-kpis{height:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:82px!important;gap:8px!important;margin:0!important}
  .ag13-dashboard-shell .ag13-kpi{height:82px!important;min-height:82px!important;padding:11px 13px!important;gap:10px!important;border-radius:12px!important;overflow:hidden!important}
  .ag13-dashboard-shell .ag13-kpi .ico{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:16px!important}
  .ag13-dashboard-shell .ag13-kpi>div{min-width:0!important}
  .ag13-dashboard-shell .ag13-kpi small{font-size:9px!important;line-height:1.2!important;white-space:normal!important}
  .ag13-dashboard-shell .ag13-kpi strong{font-size:clamp(17px,1.2vw,21px)!important;line-height:1.08!important;margin:4px 0!important;white-space:nowrap!important;letter-spacing:-.025em!important}
  .ag13-dashboard-shell .ag13-kpi em{font-size:8px!important;line-height:1.2!important;white-space:normal!important}
  .ag162-dashboard .ag13-dashboard-primary.ag162-primary{height:auto!important;min-height:535px!important;grid-template-columns:minmax(0,1.45fr) minmax(430px,.72fr)!important;gap:9px!important}
  .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:auto!important;min-height:535px!important}
  .ag162-dashboard .ag13-primary-main .ag13-map-card{height:100%!important;min-height:535px!important;padding:12px!important}
  .ag162-dashboard .ag13-primary-main .ag13-map{min-height:465px!important}
  .ag162-dashboard .ag162-side{display:grid!important;grid-template-rows:auto auto!important;gap:9px!important;padding-bottom:0!important}
  .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;padding:12px!important;overflow:visible!important}
  .ag162-result .ag13-cardhead>div>b,.ag162-cost-invest .ag13-cardhead>div>b{font-size:13px!important}
  .ag162-result .ag13-cardhead>div>small,.ag162-cost-invest .ag13-cardhead>div>small{font-size:8px!important}
  .ag162-result .ag13-cardhead>button,.ag162-cost-invest .ag13-cardhead>button{font-size:8px!important;padding:6px 8px!important}
  .ag162-result-main{padding:11px 12px!important;margin-bottom:8px!important}
  .ag162-result-main small{font-size:7.5px!important}.ag162-result-main strong{font-size:20px!important}.ag162-result-main span{font-size:8px!important}.ag162-result-main>em{font-size:7px!important;padding:6px 8px!important}
  .ag162-result-grid{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .ag162-result-grid>div{padding:8px!important;border-radius:9px!important}
  .ag162-result-grid small{font-size:7.5px!important}.ag162-result-grid b{font-size:10.5px!important;margin-top:3px!important}
  .ag162-result-foot{font-size:7.5px!important;margin-top:8px!important;padding-top:8px!important}.ag162-result-foot b{font-size:8px!important}
  .ag162-invest-head small,.ag162-invest-head span{font-size:7.5px!important}.ag162-invest-head b{font-size:15px!important}.ag162-invest-head>strong{font-size:13px!important}
  .ag162-budgetbar{height:8px!important;margin:7px 0 9px!important}
  .ag162-costrows{gap:6px!important}.ag162-costrows>div{grid-template-columns:125px minmax(0,1fr) 88px!important;gap:8px!important}
  .ag162-costrows span{font-size:7.5px!important}.ag162-costrows strong{font-size:7.8px!important}.ag162-costrows>div>i{height:7px!important}
  .ag162-costfoot{font-size:7px!important;gap:10px!important;flex-wrap:wrap!important}.ag162-costfoot b{font-size:7.5px!important}
  .ag164-cost-warning{font-size:7px!important;padding:7px 8px!important}
  .ag13-map-card .ag13-cardhead b{font-size:14px!important}.ag13-map-card .ag13-cardhead small{font-size:8px!important}.ag13-map-card .ag13-cardhead select,.ag13-map-card .ag13-cardhead button{font-size:8px!important}
}
@media(max-width:1180px) and (min-width:761px){
  .ag13-dashboard-shell .ag13-kpis{height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:82px!important;gap:8px!important}
  .ag13-dashboard-shell .ag13-kpi{height:82px!important;min-height:82px!important;padding:10px 12px!important}
  .ag13-dashboard-shell .ag13-kpi .ico{display:grid!important;width:32px!important;height:32px!important}
  .ag13-dashboard-shell .ag13-kpi small{font-size:8.5px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:18px!important}.ag13-dashboard-shell .ag13-kpi em{font-size:7.5px!important}
  .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;height:auto!important}
  .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:auto!important;min-height:0!important}
  .ag162-dashboard .ag13-primary-main .ag13-map{height:480px!important}.ag162-dashboard .ag162-side{grid-template-rows:auto auto!important}
  .ag162-result-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:760px){
  .ag13-dashboard-shell .ag13-kpis{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .ag13-dashboard-shell .ag13-kpi{height:94px!important;min-height:94px!important;padding:11px!important}
  .ag13-dashboard-shell .ag13-kpi .ico{width:34px!important;height:34px!important;display:grid!important}
  .ag13-dashboard-shell .ag13-kpi small{font-size:8.5px!important;white-space:normal!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:17px!important;white-space:normal!important}.ag13-dashboard-shell .ag13-kpi em{font-size:7.5px!important;white-space:normal!important}
  .ag162-result .ag13-cardhead>div>b,.ag162-cost-invest .ag13-cardhead>div>b{font-size:13px!important}
  .ag162-result .ag13-cardhead>div>small,.ag162-cost-invest .ag13-cardhead>div>small{font-size:8px!important}
  .ag162-result-main small{font-size:7px!important}.ag162-result-main strong{font-size:19px!important}.ag162-result-main span{font-size:8px!important}
  .ag162-result-grid{grid-template-columns:1fr 1fr!important;gap:7px!important}.ag162-result-grid small{font-size:7.5px!important}.ag162-result-grid b{font-size:10px!important}
  .ag162-invest-head small,.ag162-invest-head span{font-size:7.5px!important}.ag162-invest-head b{font-size:15px!important}.ag162-invest-head>strong{font-size:13px!important}
  .ag162-costrows>div{grid-template-columns:100px minmax(0,1fr) 82px!important}.ag162-costrows span{font-size:7.2px!important}.ag162-costrows strong{font-size:7.5px!important}
  .ag162-costfoot{font-size:7px!important;flex-wrap:wrap!important}
  .ag162-popup-grid small{font-size:7px!important}.ag162-popup-grid b{font-size:8.5px!important}.ag162-field-popup header b{font-size:14px!important}.ag162-field-popup header small{font-size:8px!important}
}

/* AGROHUB v1.8.1 • correção definitiva de corte/sobreposição no painel direito */
.ag162-dashboard .ag13-dashboard-primary.ag162-primary{
  height:auto!important;
  min-height:0!important;
  align-items:start!important;
  overflow:visible!important;
}
.ag162-dashboard .ag162-side{
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
  align-content:start!important;
  overflow:visible!important;
  grid-auto-rows:max-content!important;
  grid-template-rows:max-content max-content!important;
}
.ag162-dashboard .ag162-side>.ag13-card,
.ag162-dashboard .ag162-result,
.ag162-dashboard .ag162-cost-invest{
  height:auto!important;
  min-height:max-content!important;
  max-height:none!important;
  overflow:visible!important;
  position:relative!important;
}
.ag162-dashboard .ag162-result{z-index:2!important}
.ag162-dashboard .ag162-cost-invest{z-index:1!important;margin-top:0!important}
.ag162-dashboard .ag162-result-grid{height:auto!important;overflow:visible!important}
.ag162-dashboard .ag162-result-grid>div{min-height:54px!important}
.ag162-dashboard .ag162-result-foot{position:static!important}
.ag162-dashboard .ag162-cost-invest .ag162-costrows,
.ag162-dashboard .ag162-cost-invest .ag162-costfoot,
.ag162-dashboard .ag162-cost-invest .ag164-cost-warning{position:static!important}
@media(min-width:1181px){
  .ag162-dashboard .ag162-side{display:grid!important;gap:10px!important}
  .ag162-dashboard .ag13-primary-main{height:auto!important;min-height:540px!important}
  .ag162-dashboard .ag13-primary-main .ag13-map-card{height:100%!important;min-height:540px!important}
}
@media(max-width:1180px) and (min-width:761px){
  .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;gap:10px!important}
  .ag162-dashboard .ag13-primary-main{width:100%!important;height:auto!important;min-height:0!important}
  .ag162-dashboard .ag162-side{display:block!important;width:100%!important}
  .ag162-dashboard .ag162-side>.ag13-card{width:100%!important;margin:0 0 10px!important}
  .ag162-dashboard .ag13-primary-main .ag13-map-card{height:auto!important;min-height:500px!important}
}
@media(max-width:760px){
  .ag162-dashboard .ag162-side{display:block!important;width:100%!important}
  .ag162-dashboard .ag162-side>.ag13-card{width:100%!important;margin:0 0 10px!important}
  .ag162-dashboard .ag162-result-grid{grid-template-columns:1fr 1fr!important}
  .ag162-dashboard .ag162-result-grid>div{min-height:58px!important;padding:9px!important}
}
/* AGROHUB v1.8.2 • dashboard 100% sem precisar reduzir zoom */
@media(min-width:1181px){
  body.agro13:has(.ag162-dashboard){overflow:hidden!important}
  body.agro13:has(.ag162-dashboard) .main-content{height:100vh!important;min-height:100vh!important;overflow:hidden!important}
  body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:calc(100vh - 56px)!important;min-height:0!important;max-height:calc(100vh - 56px)!important;overflow:hidden!important}
  .ag13-dashboard-shell.ag162-dashboard{height:100%!important;min-height:0!important;max-height:100%!important;grid-template-rows:78px 138px minmax(0,1fr)!important;gap:8px!important;overflow:hidden!important}
  .ag13-dashboard-shell .ag13-real-hero{height:78px!important;min-height:78px!important}
  .ag13-dashboard-shell .ag13-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:65px 65px!important;grid-auto-rows:65px!important;gap:8px!important;height:138px!important}
  .ag13-dashboard-shell .ag13-kpi{height:65px!important;min-height:65px!important;padding:8px 11px!important}
  .ag13-dashboard-shell .ag13-kpi .ico{width:30px!important;height:30px!important;flex-basis:30px!important;font-size:14px!important}
  .ag13-dashboard-shell .ag13-kpi small{font-size:8.5px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:17px!important;margin:2px 0!important}.ag13-dashboard-shell .ag13-kpi em{font-size:7.3px!important}
  .ag162-dashboard .ag13-dashboard-primary.ag162-primary{height:100%!important;min-height:0!important;max-height:100%!important;grid-template-columns:minmax(0,1.45fr) minmax(420px,.72fr)!important;gap:8px!important;overflow:hidden!important;align-items:stretch!important}
  .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
  .ag162-dashboard .ag13-primary-main .ag13-map-card{height:100%!important;min-height:0!important;max-height:100%!important;padding:10px!important}
  .ag162-dashboard .ag13-primary-main .ag13-map{height:calc(100% - 42px)!important;min-height:0!important;max-height:none!important}
  .ag162-dashboard .ag162-side{display:grid!important;grid-template-rows:minmax(0,1.58fr) minmax(0,1fr)!important;gap:8px!important}
  .ag162-dashboard .ag162-side>.ag13-card{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;padding:10px!important}
  .ag162-result .ag13-cardhead{margin-bottom:6px!important}.ag162-result-main{padding:8px 10px!important;margin-bottom:6px!important}
  .ag162-result-main small{font-size:7.5px!important}.ag162-result-main strong{font-size:18px!important}.ag162-result-main span{font-size:7.5px!important}
  .ag162-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .ag162-result-grid>div{min-height:42px!important;padding:5px 7px!important;border-radius:8px!important}
  .ag162-result-grid small{font-size:7px!important}.ag162-result-grid b{font-size:9.5px!important;margin-top:2px!important}
  .ag162-result-foot{margin-top:6px!important;padding-top:6px!important;font-size:7px!important}
  .ag162-cost-invest .ag13-cardhead{margin-bottom:5px!important}
  .ag162-invest-head{margin-bottom:2px!important}.ag162-invest-head small{font-size:7px!important}.ag162-invest-head b{font-size:13px!important}.ag162-invest-head>strong{font-size:12px!important}
  .ag162-budgetbar{height:6px!important;margin:5px 0 6px!important}
  .ag162-costrows{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px 10px!important}
  .ag162-costrows>div{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;grid-template-areas:"l v" "b b"!important;gap:2px 5px!important}
  .ag162-costrows>div>span{grid-area:l;font-size:6.8px!important}.ag162-costrows>div>strong{grid-area:v;text-align:right!important;font-size:7px!important}.ag162-costrows>div>i{grid-area:b;height:5px!important}
  .ag162-costfoot{margin-top:5px!important;padding-top:5px!important;font-size:6.7px!important;display:flex!important;justify-content:space-between!important;gap:5px!important;flex-wrap:nowrap!important}
  .ag164-cost-warning{margin-top:5px!important;padding:5px 7px!important;font-size:6.6px!important}
}
/* v1.8.2b • popup do mapa não altera a página */
.ag162-popup-shell .leaflet-popup-content-wrapper{max-height:min(350px,calc(100vh - 180px))!important;overflow:hidden!important}
.ag162-popup-shell .leaflet-popup-content{width:340px!important;max-width:min(72vw,340px)!important}
.ag162-popup-shell .ag162-field-popup{max-height:min(330px,calc(100vh - 200px))!important;overflow-y:auto!important;overscroll-behavior:contain!important}
.ag162-dashboard .leaflet-popup-pane{contain:layout paint!important}
@media(max-width:760px){
 .ag162-popup-shell .leaflet-popup-content{width:280px!important;max-width:72vw!important}
 .ag162-popup-shell .ag162-field-popup{max-height:300px!important}
}
/* AGROHUB v1.8.3 • motor responsivo desktop + notificações acima do mapa */
body.agro13 .topbar{position:relative!important;z-index:9000!important;overflow:visible!important}
body.agro13 .ag13-top{position:relative!important;z-index:9001!important;overflow:visible!important}
body.agro13 .ag13-notif-wrap{z-index:9100!important}
body.agro13 .ag13-notif-pop{z-index:9200!important;right:0!important;top:46px!important;max-height:min(520px,calc(100vh - 84px))!important}
body.agro13 .ag13-notif-list{max-height:min(445px,calc(100vh - 155px))!important}
body.agro13 .ag13-map-card,body.agro13 .leaflet-container{position:relative!important;z-index:1!important}
body.agro13 .leaflet-top,body.agro13 .leaflet-bottom{z-index:800!important}
body.agro13 .leaflet-popup-pane{z-index:850!important}
@media(min-width:1181px){
 body.agro13 .topbar{height:56px!important;min-height:56px!important}
 body.agro13 .ag13-top{height:56px!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:calc(100dvh - 56px)!important;min-height:0!important;max-height:calc(100dvh - 56px)!important;overflow:hidden!important}
 body.agro13:has(.ag162-dashboard) .main-content{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
 .ag13-dashboard-shell.ag162-dashboard{height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-rows:clamp(64px,9vh,82px) clamp(116px,18vh,138px) minmax(0,1fr)!important;gap:8px!important;overflow:hidden!important}
 .ag13-dashboard-shell .ag13-real-hero{height:100%!important;min-height:0!important;margin:0!important}
 .ag13-dashboard-shell .ag13-kpis{height:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
 .ag13-dashboard-shell .ag13-kpi{height:auto!important;min-height:0!important;padding:8px 11px!important;gap:9px!important;overflow:hidden!important}
 .ag13-dashboard-shell .ag13-kpi .ico{width:30px!important;height:30px!important;flex:0 0 30px!important;font-size:14px!important}
 .ag13-dashboard-shell .ag13-kpi small{font-size:clamp(8px,.65vw,10px)!important;line-height:1.15!important;white-space:normal!important}
 .ag13-dashboard-shell .ag13-kpi strong{font-size:clamp(16px,1.25vw,21px)!important;line-height:1.05!important;margin:2px 0!important;white-space:nowrap!important}
 .ag13-dashboard-shell .ag13-kpi em{font-size:clamp(7px,.55vw,8.5px)!important;line-height:1.15!important;white-space:normal!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(430px,.88fr)!important;gap:8px!important;overflow:hidden!important;align-items:stretch!important}
 .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:100%!important;min-height:0!important;max-height:100%!important;padding:10px!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:calc(100% - 42px)!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-rows:minmax(0,1.48fr) minmax(0,1fr)!important;gap:8px!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:100%!important;min-height:0!important;max-height:100%!important;padding:10px!important;overflow:hidden!important}
 .ag162-result-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
 .ag162-result-grid>div{min-height:41px!important;padding:5px 6px!important}
 .ag162-result-grid small{font-size:6.8px!important;line-height:1.15!important}.ag162-result-grid b{font-size:9.4px!important;line-height:1.08!important;margin-top:2px!important}
 .ag162-result-main{padding:8px 10px!important;margin-bottom:6px!important}.ag162-result-main strong{font-size:18px!important}.ag162-result-main small,.ag162-result-main span{font-size:7.2px!important}
 .ag162-result-foot{margin-top:5px!important;padding-top:5px!important;font-size:6.8px!important}
 .ag162-costrows{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px 8px!important}
 .ag162-costrows>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"l v" "b b"!important;gap:2px 4px!important}
 .ag162-costrows>div>span{grid-area:l;font-size:6.6px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.ag162-costrows>div>strong{grid-area:v;font-size:6.8px!important}.ag162-costrows>div>i{grid-area:b;height:5px!important}
 .ag162-costfoot{font-size:6.5px!important;gap:6px!important;flex-wrap:nowrap!important}.ag164-cost-warning{font-size:6.4px!important;padding:5px 7px!important}
}
@media(min-width:1600px){
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{grid-template-columns:minmax(0,1.34fr) minmax(470px,.86fr)!important}
 .ag162-result-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(min-width:1181px) and (max-width:1450px){
 body.agro13 .sidebar{width:220px!important}
 body.agro13 .main-content{margin-left:220px!important;width:calc(100vw - 220px)!important;max-width:calc(100vw - 220px)!important}
 .ag13-search{width:min(430px,38vw)!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{grid-template-columns:minmax(0,1.02fr) minmax(430px,.98fr)!important}
 .ag13-map-card .ag13-cardhead b{font-size:12px!important}.ag13-map-card .ag13-cardhead small{font-size:7px!important}
}
@media(min-width:1181px) and (max-height:760px){
 .ag13-dashboard-shell.ag162-dashboard{grid-template-rows:60px 112px minmax(0,1fr)!important;gap:6px!important}
 .ag13-dashboard-shell .ag13-kpis{gap:6px!important}.ag13-dashboard-shell .ag13-kpi{padding:6px 9px!important}
 .ag13-dashboard-shell .ag13-kpi .ico{width:27px!important;height:27px!important;flex-basis:27px!important}
 .ag162-dashboard .ag162-side{grid-template-rows:minmax(0,1.42fr) minmax(0,1fr)!important;gap:6px!important}
 .ag162-dashboard .ag162-side>.ag13-card{padding:8px!important}
 .ag162-result-main{padding:6px 8px!important;margin-bottom:4px!important}.ag162-result-main strong{font-size:16px!important}
 .ag162-result-grid{gap:4px!important}.ag162-result-grid>div{min-height:36px!important;padding:4px 5px!important}
 .ag162-result-grid small{font-size:6.2px!important}.ag162-result-grid b{font-size:8.5px!important}
 .ag162-invest-head b{font-size:12px!important}.ag162-budgetbar{margin:4px 0 5px!important}
 .ag162-costrows{gap:4px 7px!important}.ag162-costrows>div>span,.ag162-costrows>div>strong{font-size:6.1px!important}
 .ag164-cost-warning{display:none!important}
}
@media(max-width:1180px) and (min-width:761px){
 body.agro13{overflow-y:auto!important}
 body.agro13 .main-content{height:auto!important;min-height:100vh!important;overflow:visible!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;max-height:none!important;overflow:visible!important}
 .ag13-dashboard-shell.ag162-dashboard{height:auto!important;max-height:none!important;grid-template-rows:auto auto auto!important;overflow:visible!important}
 .ag13-dashboard-shell .ag13-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:78px!important;height:auto!important}
 .ag13-dashboard-shell .ag13-kpi{height:78px!important;min-height:78px!important;padding:10px 12px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:10px!important}
 .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:auto!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:min(58vw,500px)!important;min-height:380px!important;aspect-ratio:1.35/1!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;gap:10px!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;max-height:none!important;overflow:visible!important}
 .ag162-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
 body.agro13 .topbar{z-index:9000!important;overflow:visible!important}
 .ag13-notif-pop{position:fixed!important;top:62px!important;left:12px!important;right:12px!important;width:auto!important;max-height:62vh!important;z-index:9200!important}
 .ag13-notif-list{max-height:calc(62vh - 52px)!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:min(118vw,520px)!important;min-height:390px!important;aspect-ratio:auto!important}
 .ag162-result-grid{grid-template-columns:1fr 1fr!important}
 .ag162-costrows{grid-template-columns:1fr!important}
}
/* v1.8.3b • breakpoints reais para monitores compactos */
@media(min-width:1001px) and (max-width:1180px){
 body.agro13:has(.ag13-dashboard-shell){height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
 body.agro13 .main-content{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:calc(100dvh - 56px)!important;max-height:calc(100dvh - 56px)!important;overflow:hidden!important}
 .ag13-dashboard-shell.ag162-dashboard{height:100%!important;grid-template-rows:62px 132px minmax(0,1fr)!important;gap:7px!important;overflow:hidden!important}
 .ag13-dashboard-shell .ag13-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,62px)!important;grid-auto-rows:62px!important;height:132px!important;gap:7px!important}
 .ag13-dashboard-shell .ag13-kpi{height:62px!important;min-height:62px!important;padding:7px 8px!important}
 .ag13-dashboard-shell .ag13-kpi .ico{display:grid!important;width:27px!important;height:27px!important;flex-basis:27px!important}
 .ag13-dashboard-shell .ag13-kpi small{font-size:7px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:13px!important}.ag13-dashboard-shell .ag13-kpi em{font-size:6.1px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(355px,.92fr)!important;height:100%!important;gap:7px!important;overflow:hidden!important}
 .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
 .ag162-dashboard .ag13-primary-main>.ag13-card{height:100%!important;min-height:0!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:calc(100% - 40px)!important;min-height:0!important;aspect-ratio:auto!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1.55fr) minmax(0,1fr)!important}
 .ag162-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:761px) and (max-width:1000px){
 body.agro13:has(.ag13-dashboard-shell){height:auto!important;max-height:none!important;overflow-y:auto!important}
 body.agro13 .main-content{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;max-height:none!important;overflow:visible!important}
 .ag13-dashboard-shell.ag162-dashboard{height:auto!important;max-height:none!important;grid-template-rows:auto auto auto!important;overflow:visible!important}
 .ag13-dashboard-shell .ag13-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:76px!important;height:auto!important}
 .ag13-dashboard-shell .ag13-kpi{height:76px!important;min-height:76px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:10px!important}
 .ag162-dashboard .ag13-primary-main{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .ag162-dashboard .ag13-primary-main>.ag13-card{height:auto!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{display:block!important;height:auto!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{display:block!important;height:min(56vw,480px)!important;min-height:360px!important;aspect-ratio:auto!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:10px!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important}
 .ag162-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* AGROHUB v1.8.4 • responsividade real por largura + altura */
@media (min-width:1181px) and (max-width:1450px), (min-width:1181px) and (max-height:780px){
 body.agro13:has(.ag162-dashboard){height:auto!important;max-height:none!important;overflow-y:auto!important}
 body.agro13:has(.ag162-dashboard) .main-content{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .ag13-dashboard-shell.ag162-dashboard{height:auto!important;min-height:0!important;max-height:none!important;grid-template-rows:auto auto auto!important;overflow:visible!important;gap:10px!important}
 .ag13-dashboard-shell .ag13-real-hero{height:82px!important;min-height:82px!important}
 .ag13-dashboard-shell .ag13-kpis{height:auto!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,76px)!important;grid-auto-rows:76px!important;gap:8px!important}
 .ag13-dashboard-shell .ag13-kpi{height:76px!important;min-height:76px!important;padding:9px 10px!important}
 .ag13-dashboard-shell .ag13-kpi small{font-size:9px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:18px!important}.ag13-dashboard-shell .ag13-kpi em{font-size:8px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{height:auto!important;max-height:none!important;overflow:visible!important;display:grid!important;grid-template-columns:minmax(0,.95fr) minmax(440px,1.05fr)!important;gap:10px!important;align-items:start!important}
 .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:auto!important;max-height:none!important;overflow:visible!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:auto!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:clamp(430px,54vh,560px)!important;min-height:430px!important;aspect-ratio:1.08/1!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;gap:10px!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12px!important}
 .ag162-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 .ag162-result-grid>div{min-height:54px!important;padding:8px!important}.ag162-result-grid small{font-size:8px!important}.ag162-result-grid b{font-size:11px!important}
 .ag162-result-main small,.ag162-result-main span{font-size:8px!important}.ag162-result-main strong{font-size:21px!important}
 .ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px 10px!important}
 .ag162-costrows>div>span,.ag162-costrows>div>strong{font-size:7.8px!important}.ag162-costfoot,.ag164-cost-warning{font-size:7.5px!important}
}
@media (min-width:1001px) and (max-width:1180px){
 body.agro13:has(.ag13-dashboard-shell){height:auto!important;max-height:none!important;overflow-y:auto!important}
 body.agro13 .main-content{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;max-height:none!important;overflow:visible!important}
 .ag13-dashboard-shell.ag162-dashboard{height:auto!important;max-height:none!important;grid-template-rows:auto auto auto!important;overflow:visible!important;gap:10px!important}
 .ag13-dashboard-shell .ag13-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:74px!important;height:auto!important}
 .ag13-dashboard-shell .ag13-kpi{height:74px!important;min-height:74px!important;padding:9px 10px!important}
 .ag13-dashboard-shell .ag13-kpi small{font-size:8.5px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:16px!important}.ag13-dashboard-shell .ag13-kpi em{font-size:7.5px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:10px!important}
 .ag162-dashboard .ag13-primary-main{width:100%!important;height:auto!important;overflow:visible!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:min(62vw,540px)!important;min-height:420px!important;aspect-ratio:1.12/1!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;width:100%!important;height:auto!important;overflow:visible!important;gap:10px!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;max-height:none!important;overflow:visible!important}
 .ag162-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (min-width:1451px) and (max-height:780px){
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{grid-template-columns:minmax(0,1.05fr) minmax(500px,.95fr)!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:500px!important;aspect-ratio:1.12/1!important}
}
body.agro13 .ag13-notif-pop{position:absolute!important;z-index:20000!important;width:clamp(360px,34vw,500px)!important;max-width:calc(100vw - 24px)!important}
body.agro13 .ag13-notif-wrap{position:relative!important;z-index:20001!important}
@media(max-width:760px){
 body.agro13 .ag13-notif-pop{position:fixed!important;left:10px!important;right:10px!important;top:60px!important;width:auto!important;max-width:none!important;z-index:20000!important}
}
/* v1.8.3c • sem corte em 900/1024/1100 */
@media(min-width:1001px) and (max-width:1180px){
 .ag162-dashboard .ag162-side{grid-template-rows:auto auto!important;align-content:start!important;overflow:visible!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .ag162-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:761px) and (max-width:1000px){
 html,body,body.agro13:has(.ag13-dashboard-shell),body.agro13 #appView.app-shell{height:auto!important;min-height:100vh!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.agro13:has(.ag162-dashboard) .main-content{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13:has(.ag162-dashboard) .ag13-dashboard-shell.ag162-dashboard{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:grid!important;grid-template-rows:auto auto auto!important}
 body.agro13 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13 .ag162-dashboard .ag13-primary-main{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13 .ag162-dashboard .ag13-primary-main>.ag13-card,body.agro13 .ag162-dashboard .ag13-primary-main .ag13-map-card{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13 .ag162-dashboard .ag13-primary-main .ag13-map{display:block!important;height:min(56vw,480px)!important;min-height:360px!important;max-height:none!important;position:relative!important}
 body.agro13 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;position:static!important}
 body.agro13 .ag162-dashboard .ag162-side>.ag13-card{position:static!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
}
/* AGROHUB v1.8.4 • monitores compactos usam fluxo vertical sem cortes */
@media(min-width:761px) and (max-width:1180px){
 html,body,body.agro13:has(.ag13-dashboard-shell),body.agro13 #appView.app-shell{
  height:auto!important;min-height:100vh!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important
 }
 body.agro13:has(.ag162-dashboard) .main-content{
  height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important
 }
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){
  height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important
 }
 body.agro13:has(.ag162-dashboard) .ag13-dashboard-shell.ag162-dashboard{
  height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
  display:grid!important;grid-template-rows:auto auto auto!important;gap:8px!important
 }
 .ag13-dashboard-shell .ag13-kpis{
  height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:76px!important;gap:8px!important
 }
 .ag13-dashboard-shell .ag13-kpi{height:76px!important;min-height:76px!important;padding:9px 11px!important}
 .ag13-dashboard-shell .ag13-kpi .ico{display:grid!important;width:30px!important;height:30px!important;flex:0 0 30px!important}
 .ag13-dashboard-shell .ag13-kpi small{font-size:8px!important}.ag13-dashboard-shell .ag13-kpi strong{font-size:16px!important}.ag13-dashboard-shell .ag13-kpi em{font-size:7px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{
  display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;gap:10px!important
 }
 .ag162-dashboard .ag13-primary-main{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important
 }
 .ag162-dashboard .ag13-primary-main .ag13-map-card{
  display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important
 }
 .ag162-dashboard .ag13-primary-main .ag13-map{
  display:block!important;height:clamp(390px,52vw,500px)!important;min-height:390px!important;max-height:500px!important;aspect-ratio:auto!important
 }
 .ag162-dashboard .ag162-side{
  display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;gap:10px!important;position:static!important
 }
 .ag162-dashboard .ag162-side>.ag13-card{
  position:static!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important
 }
 .ag162-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* v1.8.4b • correções para monitores 1024–1180 sem sobreposição */
@media(min-width:1001px) and (max-width:1180px){
 .ag13-dashboard-shell .ag13-kpis{height:156px!important;grid-template-rows:repeat(2,74px)!important;grid-auto-rows:74px!important;align-content:start!important}
 .ag13-dashboard-shell .ag13-kpi{height:74px!important;min-height:74px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .ag162-dashboard .ag13-primary-main{flex:0 0 auto!important;height:500px!important;min-height:500px!important;max-height:none!important;overflow:visible!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:500px!important;min-height:500px!important;max-height:500px!important;overflow:hidden!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:438px!important;min-height:438px!important;max-height:438px!important}
 .ag162-dashboard .ag162-side{position:static!important;flex:0 0 auto!important;margin-top:10px!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
}
@media(min-width:761px) and (max-width:1000px){
 .ag13-dashboard-shell .ag13-kpis{height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(4,78px)!important;grid-auto-rows:78px!important}
 .ag162-dashboard .ag13-primary-main{height:500px!important;min-height:500px!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:500px!important;min-height:500px!important;max-height:500px!important;overflow:hidden!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:438px!important;min-height:438px!important;max-height:438px!important}
 .ag162-dashboard .ag162-side{position:static!important;margin-top:10px!important}
}
/* v1.8.4b • prioridade final para desktop >=1181 */
@media(min-width:1181px){
 body.agro13 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;
  align-items:stretch!important;align-content:stretch!important
 }
 body.agro13 .ag162-dashboard .ag13-primary-main{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important
 }
 body.agro13 .ag162-dashboard .ag13-primary-main .ag13-map-card{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important
 }
 body.agro13 .ag162-dashboard .ag162-side{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;
  align-self:stretch!important;align-content:stretch!important;
  grid-template-rows:minmax(0,1.48fr) minmax(0,1fr)!important;grid-auto-rows:minmax(0,1fr)!important
 }
 body.agro13 .ag162-dashboard .ag162-side>article.ag13-card{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;align-self:stretch!important
 }
}
/* AGROHUB v1.8.5 • layout definitivo responsivo dos cards gerenciais */
@media(min-width:1451px){
 body.agro13:has(.ag162-dashboard){overflow:hidden!important}
 body.agro13:has(.ag162-dashboard) .main-content{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:calc(100dvh - 56px)!important;max-height:calc(100dvh - 56px)!important;overflow:hidden!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:grid!important;grid-template-columns:minmax(0,.95fr) minmax(560px,1.05fr)!important;height:100%!important;min-height:0!important;overflow:hidden!important;gap:8px!important;align-items:stretch!important}
 .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:100%!important;min-height:0!important;max-height:100%!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:calc(100% - 42px)!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:max-content minmax(0,1fr)!important;gap:8px!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;max-height:none!important;padding:10px!important;overflow:hidden!important}
 .ag162-dashboard .ag162-cost-invest{height:100%!important;min-height:0!important}
 .ag162-result-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
 .ag162-result-grid>div{min-height:44px!important;padding:6px 7px!important}
 .ag162-result-grid small{font-size:9.2px!important;line-height:1.15!important}
 .ag162-result-grid b{font-size:12.5px!important;line-height:1.08!important;margin-top:2px!important}
 .ag162-result-main{padding:8px 10px!important;margin-bottom:6px!important}
 .ag162-result-main small,.ag162-result-main span{font-size:8.8px!important}
 .ag162-result-main strong{font-size:22px!important;line-height:1!important}
 .ag162-result-foot{margin-top:5px!important;padding-top:5px!important;font-size:8px!important}
 .ag162-costrows{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px 10px!important}
 .ag162-costrows>div{grid-template-columns:minmax(0,1fr) auto!important;gap:2px 5px!important}
 .ag162-costrows>div>span{font-size:8.8px!important;line-height:1.1!important}
 .ag162-costrows>div>strong{font-size:9.4px!important;line-height:1.1!important}
 .ag162-costrows>div>i{height:6px!important}
 .ag162-invest-head small,.ag162-invest-head span{font-size:8.5px!important}
 .ag162-invest-head b{font-size:17px!important}.ag162-invest-head>strong{font-size:15px!important}
 .ag162-costfoot{font-size:8px!important;gap:8px!important}.ag164-cost-warning{font-size:7.8px!important}
}
@media(min-width:1181px) and (max-width:1450px){
 html,body,body.agro13:has(.ag13-dashboard-shell),body.agro13 #appView.app-shell{height:auto!important;min-height:100vh!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.agro13:has(.ag162-dashboard) .main-content{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:auto!important;max-height:none!important;overflow:visible!important}
 .ag13-dashboard-shell.ag162-dashboard{height:auto!important;max-height:none!important;grid-template-rows:auto auto auto!important;overflow:visible!important;gap:9px!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:grid!important;grid-template-columns:minmax(0,.92fr) minmax(500px,1.08fr)!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:10px!important;align-items:start!important}
 .ag162-dashboard .ag13-primary-main,.ag162-dashboard .ag162-side{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:auto!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:clamp(430px,57vh,520px)!important;min-height:430px!important;aspect-ratio:1.08/1!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;gap:10px!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:11px!important}
 .ag162-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 .ag162-result-grid>div{min-height:46px!important;padding:6px 7px!important}
 .ag162-result-grid small{font-size:9px!important}.ag162-result-grid b{font-size:12px!important}
 .ag162-result-main small,.ag162-result-main span{font-size:8.5px!important}.ag162-result-main strong{font-size:21px!important}
 .ag162-costrows{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 10px!important}
 .ag162-costrows>div>span{font-size:8.6px!important}.ag162-costrows>div>strong{font-size:9.2px!important}
 .ag162-invest-head b{font-size:16px!important}.ag162-invest-head>strong{font-size:14px!important}
 .ag162-costfoot{font-size:7.8px!important}.ag164-cost-warning{font-size:7.5px!important}
}
@media(min-width:1001px) and (max-width:1180px){
 .ag13-dashboard-shell .ag13-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(4,76px)!important;grid-auto-rows:76px!important;height:auto!important}
 .ag162-dashboard .ag13-dashboard-primary.ag162-primary{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:10px!important}
 .ag162-dashboard .ag13-primary-main{height:auto!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag13-primary-main .ag13-map-card{height:auto!important;min-height:0!important;max-height:none!important}
 .ag162-dashboard .ag13-primary-main .ag13-map{height:500px!important;min-height:500px!important;max-height:500px!important}
 .ag162-dashboard .ag162-side{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;position:static!important;gap:10px!important;margin-top:0!important}
 .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;max-height:none!important;overflow:visible!important}
 .ag162-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ag162-result-grid small{font-size:9px!important}.ag162-result-grid b{font-size:12px!important}
 .ag162-costrows{grid-template-columns:1fr!important}.ag162-costrows>div>span{font-size:8.5px!important}.ag162-costrows>div>strong{font-size:9px!important}
}
/* AGROHUB v1.8.6 • prioridade final: cards menores, fonte maior e sem cortes */
@media(min-width:1451px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side{height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-rows:max-content minmax(0,1fr)!important;grid-auto-rows:auto!important;align-content:stretch!important;overflow:hidden!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side>.ag13-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-result{height:max-content!important;min-height:0!important;max-height:none!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-cost-invest{height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
 body.agro13 #agrohubPage.active .ag162-result-grid>div{min-height:40px!important;padding:5px 7px!important}
 body.agro13 #agrohubPage.active .ag162-result-grid small{font-size:9.5px!important}
 body.agro13 #agrohubPage.active .ag162-result-grid b{font-size:13px!important}
 body.agro13 #agrohubPage.active .ag162-result-main{padding:7px 10px!important}
 body.agro13 #agrohubPage.active .ag162-result-main strong{font-size:23px!important}
 body.agro13 #agrohubPage.active .ag162-result-foot{margin-top:4px!important;padding-top:4px!important;font-size:8.5px!important}
 body.agro13 #agrohubPage.active .ag162-costrows{gap:5px 10px!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div>span{font-size:9px!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div>strong{font-size:9.8px!important}
 body.agro13 #agrohubPage.active .ag162-invest-head b{font-size:18px!important}
}
@media(min-width:1181px) and (max-width:1450px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-dashboard-primary.ag162-primary{height:max-content!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side{height:max-content!important;min-height:0!important;max-height:none!important;display:grid!important;grid-template-rows:max-content max-content!important;grid-auto-rows:max-content!important;align-content:start!important;overflow:visible!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side>.ag13-card{height:max-content!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-result{height:max-content!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-cost-invest{height:max-content!important}
 body.agro13 #agrohubPage.active .ag162-result-grid>div{min-height:42px!important;padding:5px 7px!important}
 body.agro13 #agrohubPage.active .ag162-result-grid small{font-size:9.2px!important}
 body.agro13 #agrohubPage.active .ag162-result-grid b{font-size:12.5px!important}
 body.agro13 #agrohubPage.active .ag162-result-main{padding:7px 9px!important;margin-bottom:5px!important}
 body.agro13 #agrohubPage.active .ag162-result-main strong{font-size:22px!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div>span{font-size:8.8px!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div>strong{font-size:9.5px!important}
}
/* v1.8.6b • monitores médios: documento cresce e permite rolagem real */
@media(min-width:1181px) and (max-width:1450px){
 html{height:auto!important;min-height:100%!important;max-height:none!important;overflow-y:auto!important}
 body.agro13{position:relative!important;height:auto!important;min-height:100vh!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:20px!important}
 body.agro13 #appView.app-shell{position:relative!important;display:block!important;height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
 body.agro13 .main-content{position:relative!important;height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important;padding-bottom:24px!important}
 body.agro13 #agrohubPage.active{position:relative!important;display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-bottom:10px!important}
 body.agro13 #agrohubPage.active .ag13-dashboard-shell.ag162-dashboard{position:relative!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
}
/* AGROHUB v1.8.7 • 1366/monitores médios: painel inteiro visível sem cortar Custos & Investimento */
@media(min-width:1181px) and (max-width:1450px){
 body.agro13:has(.ag162-dashboard){overflow:hidden!important}
 body.agro13:has(.ag162-dashboard) .main-content{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){height:calc(100dvh - 56px)!important;min-height:0!important;max-height:calc(100dvh - 56px)!important;overflow:hidden!important;padding-bottom:0!important}
 body.agro13 #agrohubPage.active .ag13-dashboard-shell.ag162-dashboard{
  height:calc(100dvh - 72px)!important;min-height:0!important;max-height:calc(100dvh - 72px)!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;overflow:hidden!important;gap:8px!important
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-dashboard-primary.ag162-primary{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;
  grid-template-columns:minmax(0,.92fr) minmax(500px,1.08fr)!important;align-items:stretch!important
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main,
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map-card{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map{
  height:calc(100% - 42px)!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side{
  display:grid!important;grid-template-columns:1fr!important;grid-template-rows:max-content minmax(0,1fr)!important;
  gap:8px!important;align-content:stretch!important
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side>.ag13-card{
  height:auto!important;min-height:0!important;max-height:none!important;padding:10px!important;overflow:hidden!important
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-result{height:max-content!important}
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-cost-invest{height:100%!important;min-height:0!important;max-height:100%!important}
 body.agro13 #agrohubPage.active .ag162-result-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
 body.agro13 #agrohubPage.active .ag162-result-grid>div{min-height:40px!important;padding:5px 6px!important}
 body.agro13 #agrohubPage.active .ag162-result-grid small{font-size:9px!important;line-height:1.12!important}
 body.agro13 #agrohubPage.active .ag162-result-grid b{font-size:12.5px!important;line-height:1.06!important;margin-top:2px!important}
 body.agro13 #agrohubPage.active .ag162-result-main{padding:7px 9px!important;margin-bottom:5px!important}
 body.agro13 #agrohubPage.active .ag162-result-main small,
 body.agro13 #agrohubPage.active .ag162-result-main span{font-size:8.4px!important}
 body.agro13 #agrohubPage.active .ag162-result-main strong{font-size:21px!important;line-height:1!important}
 body.agro13 #agrohubPage.active .ag162-result-foot{margin-top:4px!important;padding-top:4px!important;font-size:8px!important}
 body.agro13 #agrohubPage.active .ag162-costrows{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px 8px!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div{grid-template-columns:minmax(0,1fr) auto!important;gap:2px 4px!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div>span{font-size:8.5px!important;line-height:1.08!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div>strong{font-size:9.2px!important;line-height:1.08!important}
 body.agro13 #agrohubPage.active .ag162-costrows>div>i{height:5px!important}
 body.agro13 #agrohubPage.active .ag162-invest-head{margin-bottom:1px!important}
 body.agro13 #agrohubPage.active .ag162-invest-head small,
 body.agro13 #agrohubPage.active .ag162-invest-head span{font-size:8.2px!important}
 body.agro13 #agrohubPage.active .ag162-invest-head b{font-size:16px!important;line-height:1!important}
 body.agro13 #agrohubPage.active .ag162-invest-head>strong{font-size:14px!important}
 body.agro13 #agrohubPage.active .ag162-budgetbar{height:5px!important;margin:4px 0 5px!important}
 body.agro13 #agrohubPage.active .ag162-costfoot{font-size:7.6px!important;gap:6px!important;margin-top:4px!important}
 body.agro13 #agrohubPage.active .ag164-cost-warning{font-size:7.4px!important;line-height:1.1!important}
}
/* AGROHUB v1.8.8 • popup dos talhões + dashboard rolável em qualquer altura */
body.agro13 .ag162-dashboard .leaflet-popup-pane{
 contain:none!important;
 overflow:visible!important;
 pointer-events:auto!important;
 z-index:950!important;
}
body.agro13 .ag162-dashboard .leaflet-popup{
 pointer-events:auto!important;
 z-index:951!important;
}
body.agro13 .ag162-dashboard .leaflet-popup-content-wrapper,
body.agro13 .ag162-dashboard .leaflet-popup-tip-container{
 pointer-events:auto!important;
}
body.agro13 #agrohubPage.active:has(.ag162-dashboard){
 overflow-y:auto!important;
 overflow-x:hidden!important;
 scrollbar-gutter:stable;
 overscroll-behavior:contain;
}
body.agro13 #agrohubPage.active:has(.ag162-dashboard)::-webkit-scrollbar{width:10px}
body.agro13 #agrohubPage.active:has(.ag162-dashboard)::-webkit-scrollbar-thumb{background:#c8c1b8;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
body.agro13 #agrohubPage.active:has(.ag162-dashboard)::-webkit-scrollbar-track{background:transparent}

@media(max-height:900px){
 body.agro13 #agrohubPage.active:has(.ag162-dashboard){
  height:calc(100dvh - 56px)!important;
  min-height:0!important;
  max-height:calc(100dvh - 56px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:18px!important;
 }
 body.agro13 #agrohubPage.active .ag13-dashboard-shell.ag162-dashboard{
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  grid-template-rows:auto auto auto!important;
  overflow:visible!important;
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-dashboard-primary.ag162-primary{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:start!important;
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main,
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map-card{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map{
  height:clamp(360px,56vh,520px)!important;
  min-height:360px!important;
  max-height:520px!important;
  aspect-ratio:auto!important;
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side{
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-content:start!important;
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-side>.ag13-card,
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-result,
 body.agro13 #agrohubPage.active .ag162-dashboard .ag162-cost-invest{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
 }
}

@media(max-height:620px) and (min-width:761px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-dashboard-primary.ag162-primary{
  grid-template-columns:minmax(0,1fr) minmax(460px,1fr)!important;
 }
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map{
  height:380px!important;
  min-height:380px!important;
 }
}
/* AGROHUB v1.8.9 • legenda dos talhões mais legível */
.ag162-map-legend{
 background:rgba(255,255,255,.97)!important;
 border:1px solid #e1ddd7!important;
 border-radius:14px!important;
 padding:14px 16px!important;
 box-shadow:0 10px 28px rgba(30,18,10,.17)!important;
 min-width:190px!important;
 backdrop-filter:blur(7px)!important;
}
.ag162-map-legend>b{
 display:block!important;
 font:800 13px/1.2 Poppins,system-ui!important;
 color:#2f211a!important;
 margin-bottom:10px!important;
 letter-spacing:-.01em!important;
}
.ag162-map-legend>span{
 display:flex!important;
 align-items:center!important;
 gap:8px!important;
 font:600 11px/1.3 Poppins,system-ui!important;
 color:#596168!important;
 margin:6px 0!important;
 white-space:nowrap!important;
}
.ag162-map-legend>span>i{
 width:14px!important;height:14px!important;
 min-width:14px!important;min-height:14px!important;
 flex:0 0 14px!important;
 border-radius:4px!important;
 box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)!important;
}
@media(max-width:760px){
 .ag162-map-legend{min-width:168px!important;padding:11px 13px!important}
 .ag162-map-legend>b{font-size:11px!important;margin-bottom:8px!important}
 .ag162-map-legend>span{font-size:9.5px!important;gap:7px!important;margin:5px 0!important}
 .ag162-map-legend>span>i{width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;flex-basis:12px!important}
}
/* AGROHUB v1.9.0 • cadastro inteligente de talhões */
.ag13-form label>small,.ag13-field-side label>small{display:block;margin-top:5px;font-size:10px;line-height:1.35;color:#7b8288;font-weight:500}
.ag13-form input[readonly],.ag13-field-side input[readonly]{background:#f6f4f1!important;color:#2f2a26!important;font-weight:800!important;cursor:not-allowed}
.ag13-form select,.ag13-field-side select{width:100%;min-height:42px;border:1px solid #ded8d1;border-radius:12px;background:#fff;padding:0 12px;font:600 13px Poppins,system-ui;color:#241c18;outline:none}
.ag13-form select:focus,.ag13-field-side select:focus{border-color:#2f9d58;box-shadow:0 0 0 3px rgba(47,157,88,.10)}
.ag13-field-side #ag13AutoStageNote{padding:7px 9px;background:#f4f8f4;border-radius:9px;color:#53705c}
/* AGROHUB v1.9.1 • popup de talhão mais legível + legenda equilibrada + mapa mais alto */
body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map,
body.agro13 #agrohubPage.active .ag162-dashboard #ag13Map{
 height:clamp(610px,72vh,760px)!important;
 min-height:610px!important;
 max-height:760px!important;
}
body.agro13 .ag162-map-legend{
 min-width:198px!important;
 max-width:212px!important;
 padding:14px 16px!important;
 border-radius:16px!important;
}
body.agro13 .ag162-map-legend>b{
 font-size:15px!important;
 line-height:1.2!important;
 margin-bottom:11px!important;
}
body.agro13 .ag162-map-legend>span{
 gap:9px!important;
 font-size:12.5px!important;
 line-height:1.28!important;
 margin:7px 0!important;
}
body.agro13 .ag162-map-legend>span>i{
 width:15px!important;height:15px!important;
 min-width:15px!important;min-height:15px!important;
 flex:0 0 15px!important;border-radius:4px!important;
}

body.agro13 .ag162-popup-shell .leaflet-popup-content-wrapper{
 max-height:none!important;
 overflow:visible!important;
 border-radius:20px!important;
 box-shadow:0 18px 42px rgba(34,20,13,.24)!important;
}
body.agro13 .ag162-popup-shell .leaflet-popup-content{
 width:430px!important;
 max-width:min(74vw,430px)!important;
 margin:0!important;
}
body.agro13 .ag162-popup-shell .ag162-field-popup{
 padding:16px!important;
 max-height:none!important;
 overflow:visible!important;
}
body.agro13 .ag162-field-popup header{
 gap:11px!important;
 padding-bottom:12px!important;
}
body.agro13 .ag162-field-popup header>i{
 width:15px!important;height:38px!important;
 flex:0 0 15px!important;border-radius:7px!important;
}
body.agro13 .ag162-field-popup header b{
 font-size:18px!important;
 line-height:1.12!important;
}
body.agro13 .ag162-field-popup header small{
 font-size:10px!important;
 line-height:1.3!important;
 margin-top:3px!important;
}
body.agro13 .ag162-popup-grid{
 grid-template-columns:1fr 1fr!important;
 gap:9px!important;
 margin:12px 0!important;
}
body.agro13 .ag162-popup-grid>div{
 min-height:58px!important;
 padding:9px 10px!important;
 border-radius:10px!important;
}
body.agro13 .ag162-popup-grid small{
 font-size:9.5px!important;
 line-height:1.2!important;
}
body.agro13 .ag162-popup-grid b{
 font-size:12.5px!important;
 line-height:1.2!important;
 margin-top:4px!important;
}
body.agro13 .ag162-popup-ops{
 gap:9px!important;
 margin-top:3px!important;
}
body.agro13 .ag162-popup-ops p{
 padding:9px 10px!important;
 border-radius:10px!important;
 min-height:54px!important;
}
body.agro13 .ag162-popup-ops span{
 font-size:9px!important;
 line-height:1.2!important;
}
body.agro13 .ag162-popup-ops b{
 font-size:11px!important;
 line-height:1.25!important;
 margin-top:4px!important;
}
body.agro13 .ag162-field-popup .ag13-popup-btn{
 margin-top:10px!important;
 min-height:42px!important;
 border-radius:11px!important;
 padding:10px 12px!important;
 font-size:11px!important;
 line-height:1.2!important;
}
@media(max-width:1180px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map,
 body.agro13 #agrohubPage.active .ag162-dashboard #ag13Map{height:580px!important;min-height:580px!important}
 body.agro13 .ag162-popup-shell .leaflet-popup-content{width:400px!important;max-width:min(78vw,400px)!important}
 body.agro13 .ag162-map-legend{min-width:184px!important;max-width:196px!important}
 body.agro13 .ag162-map-legend>b{font-size:14px!important}
 body.agro13 .ag162-map-legend>span{font-size:11.5px!important}
}
@media(max-width:760px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map,
 body.agro13 #agrohubPage.active .ag162-dashboard #ag13Map{height:540px!important;min-height:540px!important}
 body.agro13 .ag162-popup-shell .leaflet-popup-content{width:320px!important;max-width:82vw!important}
 body.agro13 .ag162-popup-grid{grid-template-columns:1fr!important}
 body.agro13 .ag162-popup-ops{grid-template-columns:1fr!important}
 body.agro13 .ag162-map-legend{min-width:166px!important;max-width:178px!important;padding:11px 12px!important}
 body.agro13 .ag162-map-legend>b{font-size:12px!important;margin-bottom:8px!important}
 body.agro13 .ag162-map-legend>span{font-size:10px!important;margin:5px 0!important}
}
/* v1.9.2 • espaço vertical extra para popup aberto */
@media(min-width:1181px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map,
 body.agro13 #agrohubPage.active .ag162-dashboard #ag13Map{
  height:clamp(680px,78vh,800px)!important;
  min-height:680px!important;
  max-height:800px!important;
 }
}
/* AGROHUB v1.9.3 • rodapés financeiros legíveis + legenda compacta + mapa levemente menor */
body.agro13 #agrohubPage.active .ag162-dashboard .ag162-result-foot{
 font-size:11px!important;
 line-height:1.3!important;
 margin-top:7px!important;
 padding-top:7px!important;
 gap:12px!important;
}
body.agro13 #agrohubPage.active .ag162-dashboard .ag162-result-foot b{
 font-size:11.8px!important;
 line-height:1.2!important;
}
body.agro13 #agrohubPage.active .ag162-dashboard .ag162-costfoot{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:8px!important;
 margin-top:7px!important;
 padding-top:7px!important;
 font-size:10.5px!important;
 line-height:1.25!important;
}
body.agro13 #agrohubPage.active .ag162-dashboard .ag162-costfoot span{
 white-space:nowrap!important;
}
body.agro13 #agrohubPage.active .ag162-dashboard .ag162-costfoot b{
 font-size:11.3px!important;
 line-height:1.2!important;
}

body.agro13 .ag162-map-legend{
 min-width:162px!important;
 max-width:174px!important;
 padding:11px 12px!important;
 border-radius:14px!important;
}
body.agro13 .ag162-map-legend>b{
 font-size:13px!important;
 line-height:1.2!important;
 margin-bottom:8px!important;
}
body.agro13 .ag162-map-legend>span{
 gap:7px!important;
 font-size:10.5px!important;
 line-height:1.22!important;
 margin:5px 0!important;
}
body.agro13 .ag162-map-legend>span>i{
 width:12px!important;height:12px!important;
 min-width:12px!important;min-height:12px!important;
 flex:0 0 12px!important;
 border-radius:4px!important;
}

@media(min-width:1181px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map,
 body.agro13 #agrohubPage.active .ag162-dashboard #ag13Map{
  height:clamp(640px,74vh,740px)!important;
  min-height:640px!important;
  max-height:740px!important;
 }
}
@media(max-width:1180px) and (min-width:761px){
 body.agro13 #agrohubPage.active .ag162-dashboard .ag13-primary-main .ag13-map,
 body.agro13 #agrohubPage.active .ag162-dashboard #ag13Map{
  height:550px!important;
  min-height:550px!important;
 }
 body.agro13 .ag162-map-legend{min-width:154px!important;max-width:166px!important;padding:10px 11px!important}
 body.agro13 .ag162-map-legend>b{font-size:12px!important}
 body.agro13 .ag162-map-legend>span{font-size:10px!important}
}
/* AGROHUB v1.9.4 • popup de talhão compacto */
body.agro13 .ag162-popup-shell .leaflet-popup-content{
 width:380px!important;
 max-width:min(68vw,380px)!important;
 margin:0!important;
}
body.agro13 .ag162-popup-shell .ag162-field-popup{
 padding:12px!important;
 max-height:none!important;
 overflow:visible!important;
}
body.agro13 .ag162-field-popup header{gap:9px!important;padding-bottom:10px!important}
body.agro13 .ag162-field-popup header>i{
 width:13px!important;height:34px!important;flex:0 0 13px!important;border-radius:7px!important
}
body.agro13 .ag162-field-popup header b{font-size:16px!important;line-height:1.08!important}
body.agro13 .ag162-field-popup header small{font-size:9px!important;line-height:1.25!important;margin-top:2px!important}
body.agro13 .ag162-popup-grid{
 grid-template-columns:1fr 1fr!important;
 gap:8px!important;
 margin:10px 0!important;
}
body.agro13 .ag162-popup-grid>div{
 min-height:52px!important;
 padding:8px 9px!important;
 border-radius:10px!important;
}
body.agro13 .ag162-popup-grid small{font-size:8.8px!important;line-height:1.15!important;margin-bottom:4px!important}
body.agro13 .ag162-popup-grid b{font-size:11.5px!important;line-height:1.15!important;margin-top:2px!important}
body.agro13 .ag162-popup-ops{gap:8px!important;margin-top:2px!important}
body.agro13 .ag162-popup-ops p{padding:8px 9px!important;border-radius:10px!important;min-height:48px!important}
body.agro13 .ag162-popup-ops span{font-size:8.5px!important;line-height:1.15!important}
body.agro13 .ag162-popup-ops b{font-size:10.5px!important;line-height:1.2!important;margin-top:3px!important}
body.agro13 .ag162-field-popup .ag13-popup-btn{
 margin-top:9px!important;
 min-height:38px!important;
 border-radius:10px!important;
 padding:8px 10px!important;
 font-size:10.5px!important;
 line-height:1.1!important;
}
@media(max-width:760px){
 body.agro13 .ag162-popup-shell .leaflet-popup-content{width:300px!important;max-width:82vw!important}
 body.agro13 .ag162-popup-grid{grid-template-columns:1fr!important}
 body.agro13 .ag162-popup-ops{grid-template-columns:1fr!important}
}
/* AGROHUB v1.9.5 • popup de talhão ainda mais compacto */
body.agro13 .ag162-popup-shell .leaflet-popup-content{
 width:340px!important;
 max-width:min(64vw,340px)!important;
}
body.agro13 .ag162-popup-shell .ag162-field-popup{
 padding:10px!important;
}
body.agro13 .ag162-field-popup header{
 gap:8px!important;
 padding-bottom:8px!important;
}
body.agro13 .ag162-field-popup header>i{
 width:12px!important;height:30px!important;flex:0 0 12px!important;
}
body.agro13 .ag162-field-popup header b{
 font-size:15px!important;
}
body.agro13 .ag162-field-popup header small{
 font-size:8.5px!important;
}
body.agro13 .ag162-popup-grid{
 gap:7px!important;
 margin:8px 0!important;
}
body.agro13 .ag162-popup-grid>div{
 min-height:46px!important;
 padding:7px 8px!important;
}
body.agro13 .ag162-popup-grid small{
 font-size:8.1px!important;
 margin-bottom:3px!important;
}
body.agro13 .ag162-popup-grid b{
 font-size:10.8px!important;
 margin-top:1px!important;
}
body.agro13 .ag162-popup-ops{
 gap:7px!important;
}
body.agro13 .ag162-popup-ops p{
 min-height:43px!important;
 padding:7px 8px!important;
}
body.agro13 .ag162-popup-ops span{
 font-size:8px!important;
}
body.agro13 .ag162-popup-ops b{
 font-size:9.8px!important;
 margin-top:2px!important;
}
body.agro13 .ag162-field-popup .ag13-popup-btn{
 min-height:34px!important;
 padding:7px 9px!important;
 font-size:9.8px!important;
 margin-top:7px!important;
}
@media(max-width:760px){
 body.agro13 .ag162-popup-shell .leaflet-popup-content{
  width:286px!important;
  max-width:80vw!important;
 }
}
/* AGROHUB v1.9.6 • popup ainda mais compacto */
body.agro13 .ag162-popup-shell .leaflet-popup-content{
 width:310px!important;
 max-width:min(60vw,310px)!important;
}
body.agro13 .ag162-popup-shell .ag162-field-popup{
 padding:9px!important;
}
body.agro13 .ag162-field-popup header{
 gap:7px!important;
 padding-bottom:7px!important;
}
body.agro13 .ag162-field-popup header>i{
 width:10px!important;height:27px!important;flex:0 0 10px!important;
}
body.agro13 .ag162-field-popup header b{
 font-size:14px!important;
}
body.agro13 .ag162-field-popup header small{
 font-size:8px!important;
}
body.agro13 .ag162-popup-grid{
 gap:6px!important;
 margin:7px 0!important;
}
body.agro13 .ag162-popup-grid>div{
 min-height:42px!important;
 padding:6px 7px!important;
}
body.agro13 .ag162-popup-grid small{
 font-size:7.6px!important;
 margin-bottom:2px!important;
}
body.agro13 .ag162-popup-grid b{
 font-size:10.2px!important;
 margin-top:1px!important;
}
body.agro13 .ag162-popup-ops{
 gap:6px!important;
}
body.agro13 .ag162-popup-ops p{
 min-height:40px!important;
 padding:6px 7px!important;
}
body.agro13 .ag162-popup-ops span{
 font-size:7.6px!important;
}
body.agro13 .ag162-popup-ops b{
 font-size:9.2px!important;
 margin-top:2px!important;
}
body.agro13 .ag162-field-popup .ag13-popup-btn{
 min-height:32px!important;
 padding:6px 8px!important;
 font-size:9.2px!important;
 margin-top:6px!important;
}
@media(max-width:760px){
 body.agro13 .ag162-popup-shell .leaflet-popup-content{
  width:270px!important;
  max-width:78vw!important;
 }
}
/* AGROHUB v1.10.0 • integração insumos/compras/almoxarifado + status inline + legenda rodapé */
body.agro13 .ag13-integration-note{
 padding:11px 13px!important;
 border:1px solid #dfe8df!important;
 background:#f5faf6!important;
 border-radius:12px!important;
 color:#4e6554!important;
 font-size:11px!important;
 line-height:1.4!important;
}
body.agro13 .ag13-integration-note b{color:#245b36!important}
body.agro13 .ag13-inline-status{
 min-width:126px!important;
 height:31px!important;
 border:1px solid #dce2dc!important;
 border-radius:999px!important;
 background:#f0f8f2!important;
 color:#28733d!important;
 padding:0 28px 0 10px!important;
 font:700 10px/1 Poppins,system-ui!important;
 cursor:pointer!important;
 outline:none!important;
}
body.agro13 .ag13-inline-status:focus{
 border-color:#2f9d58!important;
 box-shadow:0 0 0 3px rgba(47,157,88,.10)!important;
}
body.agro13 .ag13-inline-status:disabled{opacity:.65!important;cursor:wait!important}

/* legenda como rodapé compacto do mapa */
body.agro13 .ag162-map-legend{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:center!important;
 width:330px!important;
 min-width:0!important;
 max-width:calc(100vw - 42px)!important;
 padding:6px 8px!important;
 gap:4px 8px!important;
 border-radius:10px!important;
 background:rgba(255,255,255,.94)!important;
 box-shadow:0 5px 14px rgba(30,18,10,.15)!important;
}
body.agro13 .ag162-map-legend>b{
 font-size:9px!important;
 line-height:1.15!important;
 margin:0 2px 0 0!important;
 white-space:nowrap!important;
}
body.agro13 .ag162-map-legend>span{
 display:flex!important;
 align-items:center!important;
 gap:4px!important;
 margin:0!important;
 font-size:8.2px!important;
 line-height:1.15!important;
 white-space:nowrap!important;
}
body.agro13 .ag162-map-legend>span>i{
 width:8px!important;height:8px!important;
 min-width:8px!important;min-height:8px!important;
 flex:0 0 8px!important;
 border-radius:2px!important;
}
@media(max-width:760px){
 body.agro13 .ag162-map-legend{
  width:260px!important;
  max-width:calc(100vw - 34px)!important;
  padding:5px 7px!important;
  gap:3px 7px!important;
 }
 body.agro13 .ag162-map-legend>b{font-size:8px!important}
 body.agro13 .ag162-map-legend>span{font-size:7.5px!important}
}
/* AGROHUB v1.10.1 • aproximação do subtítulo verde nos KPIs */
body.agro13 .ag13-dashboard-shell .ag13-kpi strong{
 margin:2px 0 0!important;
}
body.agro13 .ag13-dashboard-shell .ag13-kpi em{
 display:block!important;
 margin-top:0!important;
 line-height:1.1!important;
}
