/* R4 shared geometry: Dashboard__Administrador.png. Existing nodes and handlers remain authoritative. */
body.r4-shell.auth-authenticated{font-family:var(--r4-font)!important;background:var(--r4-background)!important}
body.r4-shell.auth-authenticated .sidebar{width:var(--r4-sidebar)!important;padding:12px 14px 10px!important;display:flex!important;flex-direction:column!important;gap:0!important;background:linear-gradient(110deg,#003529,#002e29)!important;box-sizing:border-box!important;color:white!important}
body.r4-shell.auth-authenticated .brand-block{height:86px!important;min-height:86px!important;display:flex!important;align-items:center!important;margin:0 0 10px!important;padding:0!important;flex:none!important}
body.r4-shell.auth-authenticated .brand-logo{width:100%!important;height:auto!important;max-height:70px!important;object-fit:contain!important;filter:none!important;border-radius:5px}
body.r4-shell.auth-authenticated .workspace{inset:0 0 0 var(--r4-sidebar)!important;display:flex!important;flex-direction:column!important;background:var(--r4-background)!important}
body.r4-shell.auth-authenticated #mainNav{flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;gap:0!important;min-height:0!important;scrollbar-width:thin;scrollbar-color:#258765 transparent}
body.r4-shell.auth-authenticated #mainNav .nav-item,body.r4-shell.auth-authenticated #mainNav .r10-shell-nav-item{height:var(--r4-nav-row)!important;min-height:var(--r4-nav-row)!important;flex-shrink:0!important;gap:22px!important;padding:0 16px!important;color:#f3fbf7!important;font-size:16px!important;font-weight:400!important;border-radius:9px!important;line-height:1.2!important}
body.r4-shell.auth-authenticated #mainNav .active{background:linear-gradient(100deg,#008444,#00aa50)!important;box-shadow:inset 0 0 0 1px #00c46b,0 2px 7px #001f24!important;font-weight:600!important}
body.r4-shell.auth-authenticated #mainNav img{width:26px!important;height:26px!important;filter:brightness(0) invert(1)!important;object-fit:contain!important;flex:none!important}
body.r4-shell.auth-authenticated #mainNav .nav-symbol{width:26px!important;text-align:center;font-size:24px!important;color:white!important;flex:none}
body.r4-shell.auth-authenticated #mainNav [hidden]{display:none!important}
body.r4-shell.auth-authenticated .r10-reconciled-bottom{flex:none!important;margin:0!important;padding:0!important}
body.r4-shell.auth-authenticated .r10-reconciled-bottom button{height:38px!important;padding:0 16px!important;font:15px var(--r4-font)!important;color:white!important;background:transparent!important;border:0!important;text-align:left!important}
body.r4-shell.auth-authenticated .r10-reconciled-bottom button[hidden]{display:none!important}
body.r4-shell.auth-authenticated .sidebar-motto{position:static!important;flex:0 0 50px!important;height:50px!important;min-height:50px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border:0!important}
body.r4-shell.auth-authenticated .sidebar-motto img{height:46px!important;width:50px!important;max-height:46px!important;max-width:50px!important;object-fit:contain!important;filter:none!important;position:static!important;margin:0!important;transform:none!important}
body.r4-shell.auth-authenticated .sidebar-motto p,body.r4-shell.auth-authenticated .sidebar-motto .motto-line{display:none!important}
body.r4-shell.auth-authenticated .sidebar>.account-wrap{position:relative!important;flex:0 0 54px!important;height:54px!important;width:100%!important;margin:0!important;border:1px solid #286253;border-radius:var(--r4-radius);box-sizing:border-box}
body.r4-shell.auth-authenticated .sidebar .account-button{display:flex!important;align-items:center!important;gap:10px!important;color:white!important;height:100%!important;width:100%!important;padding:6px 10px!important;background:transparent!important;border:0!important}
body.r4-shell.auth-authenticated .sidebar .user-copy{flex:1!important;min-width:0!important;text-align:left!important;display:flex!important;flex-direction:column!important;gap:3px!important;color:white!important}
body.r4-shell.auth-authenticated .sidebar .user-copy strong{font-size:14px!important;font-weight:500!important;max-width:164px!important;overflow:hidden!important;text-overflow:ellipsis!important;color:white!important}
body.r4-shell.auth-authenticated .sidebar .user-copy span{font-size:12px!important;color:#bce3d1!important}
body.r4-shell.auth-authenticated .sidebar .chevron{color:#d9f8e6!important}
body.r4-shell.auth-authenticated .sidebar .user-avatar{width:38px!important;height:38px!important;flex:0 0 38px!important;background:linear-gradient(150deg,#00c561,#007b40)!important;color:white!important;border-radius:50%!important;display:grid!important;place-items:center!important;font-size:17px!important}
body.r4-shell.auth-authenticated .sidebar .user-menu{top:auto!important;bottom:60px!important;left:0!important;right:0!important;z-index:100!important;color:var(--r4-ink)!important}
body.r4-shell.auth-authenticated .topbar{height:var(--r4-header)!important;min-height:var(--r4-header)!important;flex:0 0 var(--r4-header)!important;padding:0 var(--r4-page-space)!important;border:0!important;box-shadow:var(--r4-shadow)!important;gap:20px!important}
body.r4-shell.auth-authenticated .topbar-left{flex:1!important;min-width:120px!important;gap:0!important}
body.r4-shell.auth-authenticated .topbar .product-name,body.r4-shell.auth-authenticated .topbar .r10-topbar-logo,body.r4-shell.auth-authenticated .topbar .r10-topbar-context,body.r4-shell.auth-authenticated .topbar .mobile-logo{display:none!important}
body.r4-shell.auth-authenticated .menu-button{display:none!important}
body.r4-shell.auth-authenticated .global-search-wrap{display:flex!important;position:relative!important;width:100%!important;max-width:500px!important;height:38px!important;border:1px solid #dce7f4!important;border-radius:7px!important;align-items:center!important;background:#f8fbff!important;margin:0!important;padding:0 12px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated #globalSearch{width:100%!important;min-width:0!important;height:100%!important;border:0!important;background:transparent!important;color:var(--r4-ink)!important;font:14px var(--r4-font)!important;padding:0 10px!important;outline-offset:2px}
body.r4-shell.auth-authenticated .global-search-wrap>span{color:#365cbd!important;font-size:23px!important}
body.r4-shell.auth-authenticated .topbar-right{gap:20px!important;flex:none!important}
body.r4-shell.auth-authenticated .notification-button{width:32px!important;height:36px!important;flex:none!important;padding:4px!important}
body.r4-shell.auth-authenticated .notification-button i{display:none!important}
body.r4-shell.auth-authenticated .r4-weather{display:flex;align-items:center;gap:9px;border-inline:1px solid var(--r4-border);padding:0 18px;color:var(--r4-ink)}
.r4-weather>span{font-size:30px;color:#ffb400}.r4-weather div{display:grid;gap:2px}.r4-weather strong{font-size:16px}.r4-weather small{font-size:11px;color:var(--r4-muted)}
body.r4-shell.auth-authenticated #currentDate{display:block!important;position:static!important;color:#4864b3!important;font-size:14px!important;white-space:nowrap!important;margin:0!important;min-width:0!important}
body.r4-shell.auth-authenticated .workspace>.content{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated .workspace>.content[hidden]{display:none!important}
/* Only Dashboard bodies are modernized in this block. */
body.r4-shell.auth-authenticated #dashboardContent{padding:24px var(--r4-page-space) 20px!important;background:var(--r4-background)!important;color:var(--r4-ink)!important}
body.r4-shell #dashboardContent .page-heading{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:12px 20px!important;margin:0 0 18px!important;min-height:0!important}
body.r4-shell #dashboardContent .page-heading>div:first-child{flex:1 1 340px!important;min-width:0!important}
body.r4-shell #dashboardContent h1{font-size:32px!important;line-height:1.12!important;color:var(--r4-ink)!important;margin:0!important;letter-spacing:-1px!important}
body.r4-shell #dashboardContent .desktop-subtitle{font-size:15px!important;line-height:1.4!important;color:var(--r4-muted)!important;margin:6px 0 0!important}
body.r4-shell #agDashboardHeadingRight{display:flex!important;flex:1 1 590px!important;flex-direction:column!important;gap:5px!important;min-width:0!important;max-width:750px!important}
body.r4-shell #agDashboardScopebar{display:flex!important;width:100%!important;gap:12px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
body.r4-shell #agDashboardScopebar .ag-select{height:54px!important;min-width:150px!important;flex:1 1 150px!important;max-width:none!important;padding:0!important}
body.r4-shell #agDashboardScopebar .ag-select[hidden]{display:none!important}
body.r4-shell #agDashboardScopebar select{height:54px!important;width:100%!important;padding:0 32px 0 45px!important;border:1px solid var(--r4-border)!important;border-radius:9px!important;background-color:white!important;color:var(--r4-ink)!important;font-size:14px!important;font-weight:600!important}
body.r4-shell #agDashboardScopebar .ag-select-icon{left:15px!important;color:#087441!important;width:23px!important;height:23px!important}
body.r4-shell #agDashboardScopeStatus{font-size:11px!important;line-height:1.2!important;text-align:right!important;color:var(--r4-muted)!important}
body.r4-shell #dashboardContent .kpi-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--r4-space)!important;margin:0 0 16px!important}
body.r4-shell #dashboardContent .kpi-card{min-height:142px!important;display:flex!important;align-items:center!important;gap:18px!important;padding:18px!important;background:white!important;border:1px solid var(--r4-border)!important;border-radius:var(--r4-radius)!important;box-shadow:var(--r4-shadow)!important;min-width:0!important}
body.r4-shell #dashboardContent .kpi-icon{width:54px!important;height:54px!important;object-fit:contain!important;flex:0 0 54px!important}
body.r4-shell #dashboardContent .kpi-copy{min-width:0!important}.r4-shell #dashboardContent .kpi-copy span{font-size:13px!important;color:var(--r4-ink)!important}
body.r4-shell #dashboardContent .kpi-copy strong{font-size:28px!important;line-height:1.15!important;color:var(--r4-ink)!important;margin:7px 0!important;overflow-wrap:anywhere}
body.r4-shell #dashboardContent .kpi-copy small{font-size:12px!important;color:var(--r4-muted)!important;line-height:1.4!important}
body.r4-shell #dashboardContent .dashboard-grid{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;gap:var(--r4-space)!important;align-items:stretch!important}
body.r4-shell #dashboardContent .panel{grid-column:auto!important;grid-row:auto!important;background:white!important;border:1px solid var(--r4-border)!important;border-radius:var(--r4-radius)!important;box-shadow:var(--r4-shadow)!important;padding:16px!important;min-width:0!important;overflow:hidden!important}
body.r4-shell #dashboardContent .panel-header{padding:0 0 14px!important;display:flex!important;align-items:flex-start!important;flex-wrap:wrap!important;gap:8px!important}
body.r4-shell #dashboardContent .panel h2{font-size:17px!important;line-height:1.3!important;color:var(--r4-ink)!important;margin:0!important}
body.r4-shell #dashboardContent .chart-host{height:220px!important;min-height:220px!important}
body.r4-shell #dashboardContent .distribution-content{min-height:220px!important;display:flex!important;align-items:center!important;gap:20px!important;flex-wrap:wrap!important}
body.r4-shell #dashboardContent .donut-wrap{flex:0 0 180px!important}.r4-shell #dashboardContent .donut{width:180px!important;height:180px!important}
body.r4-shell #dashboardContent .distribution-legend{flex:1!important;min-width:130px!important}
body.r4-shell #dashboardContent .table-wrap,body.r4-shell #dashboardContent .activity-list{max-height:260px!important;overflow:auto!important;overscroll-behavior:contain}
body.r4-shell #dashboardContent table{font-size:13px!important}.r4-shell #dashboardContent th{background:#f1f6fa!important;color:var(--r4-muted)!important}
body.r4-shell #dashboardContent .text-link,body.r4-shell #dashboardContent .activity-footer{color:var(--r4-blue)!important;font-size:12px!important}
body.r4-shell :focus-visible{outline:2px solid #2296ff;outline-offset:3px}
@media(max-width:1200px){body.r4-shell.auth-authenticated #currentDate{font-size:12px!important;white-space:normal!important;max-width:160px!important}body.r4-shell.auth-authenticated .topbar-right{gap:10px!important}body.r4-shell #dashboardContent .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:820px){body.r4-shell.auth-authenticated .sidebar{transform:translateX(-100%)!important;z-index:80!important}body.r4-shell.auth-authenticated .sidebar.open{transform:none!important}body.r4-shell.auth-authenticated .workspace{inset:0!important}body.r4-shell.auth-authenticated .menu-button{display:block!important;flex:none!important}body.r4-shell.auth-authenticated .r4-weather{display:none}body.r4-shell.auth-authenticated .topbar{padding:0 12px!important;gap:8px!important}body.r4-shell.auth-authenticated #currentDate{display:none!important}body.r4-shell #dashboardContent .dashboard-grid{grid-template-columns:1fr!important}body.r4-shell #dashboardContent h1{font-size:26px!important}body.r4-shell #dashboardContent .kpi-card{padding:12px!important;gap:10px!important}body.r4-shell #dashboardContent .kpi-copy strong{font-size:23px!important}}

/* AGROLOGIX R4 — DASHBOARD ADMIN MOCKUP CONFORMANCE R1 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar-motto{flex:0 0 82px!important;height:82px!important;min-height:82px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar-motto img{width:78px!important;height:78px!important;max-width:78px!important;max-height:78px!important;object-fit:contain!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent{padding:18px var(--r4-page-space) 16px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading{display:flex!important;align-items:flex-start!important;flex-wrap:nowrap!important;gap:20px!important;margin:0!important;min-height:66px!important;flex:0 0 auto!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading>div:first-child{flex:1 1 420px!important;min-width:330px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading h1{font-size:31px!important;line-height:1.08!important;font-weight:700!important;letter-spacing:-.9px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading .desktop-subtitle{margin:4px 0 0!important;font-size:15px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{flex:0 1 735px!important;max-width:735px!important;min-width:560px!important;margin-top:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar{gap:10px!important;flex-wrap:nowrap!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select{height:50px!important;min-width:0!important;flex:1 1 0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar select{height:50px!important;border-radius:9px!important;font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopeStatus{display:none!important}
.r4-admin-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:0 0 128px;min-height:128px}
.r4-admin-kpi{min-width:0;background:#fff;border:1px solid var(--r4-border);border-radius:10px;box-shadow:var(--r4-shadow);padding:12px 13px;display:flex;align-items:flex-start;gap:11px;overflow:hidden}
.r4-admin-kpi-icon{width:54px;height:54px;flex:0 0 54px;border-radius:50%;background:#dff8e9;color:#057d45;display:grid;place-items:center}.r4-admin-kpi-icon svg{width:30px;height:30px}.r4-admin-kpi-icon img{width:31px;height:31px;object-fit:contain}
.r4-admin-kpi>div{min-width:0;display:flex;flex-direction:column;height:100%}.r4-admin-kpi span{font-size:12px;font-weight:600;color:var(--r4-ink)}.r4-admin-kpi strong{font-size:26px;line-height:1.05;margin:5px 0 3px;color:#07135c;white-space:nowrap}.r4-admin-kpi small{font-size:10px;color:#0dbb58;min-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-admin-kpi a{margin-top:auto;color:#075ad7;font-size:11px;text-decoration:none;font-weight:500}
.r4-admin-middle{display:grid;grid-template-columns:1.22fr 1.22fr 1fr;gap:10px;flex:1 1 242px;min-height:0}.r4-admin-bottom{display:grid;grid-template-columns:1.18fr .92fr 1.18fr;gap:10px;flex:1 1 250px;min-height:0}
.r4-admin-card{min-width:0;min-height:0;background:#fff;border:1px solid var(--r4-border);border-radius:10px;box-shadow:var(--r4-shadow);padding:12px 14px;display:flex;flex-direction:column;overflow:hidden}.r4-admin-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:25px;margin-bottom:6px}.r4-admin-card h2{display:flex;align-items:center;gap:8px;margin:0!important;font-size:15px!important;color:#07135c!important}.r4-admin-card header>a,.r4-card-link{font-size:11px;color:#075ad7;text-decoration:none;white-space:nowrap}.r4-card-icon{width:25px;height:25px;display:inline-grid;place-items:center;color:#00864c;flex:0 0 25px}.r4-card-icon svg{width:23px;height:23px}.r4-alert-icon{color:#ff2e2e}.r4-period-pill{border:1px solid #dce7f4;border-radius:7px;padding:5px 8px;font-size:10px;color:#5f6f98;background:#fff}
.r4-distribution-body{display:flex;align-items:center;gap:14px;min-height:0;flex:1}.r4-distribution-body .donut-wrap{flex:0 0 150px!important}.r4-distribution-body .donut{width:150px!important;height:150px!important}.r4-distribution-body .donut:after{inset:29px!important}.r4-distribution-body .donut-center strong{font-size:25px!important}.r4-distribution-body .distribution-legend{min-width:0;flex:1}.r4-distribution-body .dist-row{grid-template-columns:10px minmax(0,1fr) auto!important;gap:7px!important;font-size:10.5px!important;margin:7px 0!important}.r4-distribution-body .dist-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r4-admin-middle .chart-host{height:165px!important;min-height:165px!important;flex:1}.r4-card-link{margin-top:auto}
.r4-lot-status-list{display:grid;gap:10px;flex:1;padding:6px 0}.r4-lot-row{display:grid;grid-template-columns:102px minmax(80px,1fr) 24px;align-items:center;gap:8px;font-size:10.5px;color:#24346f}.r4-lot-row>i{height:14px;border-radius:5px;background:#edf2f6;overflow:hidden}.r4-lot-row>i>b{display:block;height:100%;border-radius:5px}.r4-lot-row>strong{text-align:right;color:#07135c}
.r4-alert-count{display:inline-grid;place-items:center;background:#ff2525;color:#fff;border-radius:50%;width:22px;height:22px;font-size:10px}.r4-admin-list,.r4-admin-bottom .activity-list{flex:1;min-height:0;overflow:auto!important;max-height:none!important}.r4-list-row,.r4-admin-bottom .activity-item{min-height:38px;border-bottom:1px solid #e7eef5;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 0}.r4-row-dot{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#f4aa15;font-weight:700}.r4-row-dot.info{background:#218de6}.r4-list-row>div,.r4-admin-bottom .activity-copy{display:flex;flex-direction:column;min-width:0}.r4-list-row strong,.r4-admin-bottom .activity-copy strong{font-size:10.5px;color:#07135c}.r4-list-row small,.r4-admin-bottom .activity-copy span{font-size:9.5px;color:#6575a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-list-row time,.r4-admin-bottom .activity-time{font-size:9px;color:#7787aa;white-space:nowrap}.r4-admin-bottom .activity-symbol{width:23px!important;height:23px!important;object-fit:contain}
.r4-finance-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:1px 0 8px}.r4-finance-kpis>div{border:1px solid #e2ebf4;border-radius:8px;padding:7px 8px;min-width:0}.r4-finance-kpis span{display:block;font-size:9px;color:#24346f}.r4-finance-kpis strong{display:block;font-size:18px;color:#07135c;margin:4px 0}.r4-finance-kpis small{font-size:8px;color:#6575a5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-admin-card h3{font-size:10px;margin:0 0 5px;color:#24346f}.r4-farm-bars{display:grid;gap:4px;flex:1;min-height:0}.r4-farm-bar{display:grid;grid-template-columns:68px minmax(80px,1fr) 58px;gap:6px;align-items:center;font-size:8.5px;color:#6575a5}.r4-farm-bar>i{height:10px;background:#edf2f6;border-radius:3px;overflow:hidden}.r4-farm-bar>i>b{display:block;height:100%;border-radius:3px}.r4-farm-bar>strong{text-align:right;color:#24346f;font-weight:500}.r4-empty-row{color:#6575a5;font-size:10px;padding:14px 6px}.r4-admin-compat{display:none!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #mainNav a[hidden]{display:none!important}
@media(max-width:1250px){.r4-admin-kpis{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto}.r4-admin-middle,.r4-admin-bottom{grid-template-columns:1fr 1fr}.r4-admin-middle>article:last-child,.r4-admin-bottom>article:last-child{grid-column:1/-1}body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent{overflow:auto!important}}

/* AGROLOGIX R4 — ADMIN DASHBOARD REBUILD R2 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent{padding:18px var(--r4-page-space) 16px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent>.page-heading:not(.r4-admin-heading),
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent>.kpi-grid,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent>.dashboard-grid{display:none!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar-motto{flex:0 0 82px!important;height:82px!important;min-height:82px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar-motto img{width:78px!important;height:78px!important;max-width:78px!important;max-height:78px!important;object-fit:contain!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading{display:flex!important;align-items:flex-start!important;flex-wrap:nowrap!important;gap:20px!important;margin:0!important;min-height:66px!important;flex:0 0 auto!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading>div:first-child{flex:1 1 420px!important;min-width:330px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading h1{font-size:31px!important;line-height:1.08!important;font-weight:700!important;letter-spacing:-.9px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent .r4-admin-heading .desktop-subtitle{margin:4px 0 0!important;font-size:15px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{flex:0 1 735px!important;max-width:735px!important;min-width:560px!important;margin-top:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar{gap:10px!important;flex-wrap:nowrap!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select{height:50px!important;min-width:0!important;flex:1 1 0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar select{height:50px!important;border-radius:9px!important;font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopeStatus{display:none!important}
.r4-admin-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:0 0 128px;min-height:128px}
.r4-admin-kpi{min-width:0;background:#fff;border:1px solid var(--r4-border);border-radius:10px;box-shadow:var(--r4-shadow);padding:12px 13px;display:flex;align-items:flex-start;gap:11px;overflow:hidden}
.r4-admin-kpi-icon{width:54px;height:54px;flex:0 0 54px;border-radius:50%;background:#dff8e9;color:#057d45;display:grid;place-items:center}.r4-admin-kpi-icon svg{width:30px;height:30px}.r4-admin-kpi-icon img{width:31px;height:31px;object-fit:contain}
.r4-admin-kpi>div{min-width:0;display:flex;flex-direction:column;height:100%}.r4-admin-kpi span{font-size:12px;font-weight:600;color:var(--r4-ink)}.r4-admin-kpi strong{font-size:26px;line-height:1.05;margin:5px 0 3px;color:#07135c;white-space:nowrap}.r4-admin-kpi small{font-size:10px;color:#0dbb58;min-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-admin-kpi a{margin-top:auto;color:#075ad7;font-size:11px;text-decoration:none;font-weight:500}
.r4-admin-middle{display:grid;grid-template-columns:1.22fr 1.22fr 1fr;gap:10px;flex:1 1 242px;min-height:0}.r4-admin-bottom{display:grid;grid-template-columns:1.18fr .92fr 1.18fr;gap:10px;flex:1 1 250px;min-height:0}
.r4-admin-card{min-width:0;min-height:0;background:#fff;border:1px solid var(--r4-border);border-radius:10px;box-shadow:var(--r4-shadow);padding:12px 14px;display:flex;flex-direction:column;overflow:hidden}.r4-admin-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:25px;margin-bottom:6px}.r4-admin-card h2{display:flex;align-items:center;gap:8px;margin:0!important;font-size:15px!important;color:#07135c!important}.r4-admin-card header>a,.r4-card-link{font-size:11px;color:#075ad7;text-decoration:none;white-space:nowrap}.r4-card-icon{width:25px;height:25px;display:inline-grid;place-items:center;color:#00864c;flex:0 0 25px}.r4-card-icon svg{width:23px;height:23px}.r4-alert-icon{color:#ff2e2e}.r4-period-pill{border:1px solid #dce7f4;border-radius:7px;padding:5px 8px;font-size:10px;color:#5f6f98;background:#fff}
.r4-distribution-body{display:flex;align-items:center;gap:14px;min-height:0;flex:1}.r4-distribution-body .donut-wrap{flex:0 0 150px!important}.r4-distribution-body .donut{width:150px!important;height:150px!important}.r4-distribution-body .donut:after{inset:29px!important}.r4-distribution-body .donut-center strong{font-size:25px!important}.r4-distribution-body .distribution-legend{min-width:0;flex:1}.r4-distribution-body .dist-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto!important;gap:7px!important;font-size:10.5px!important;margin:7px 0!important}.r4-distribution-body .dist-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r4-distribution-body .dist-color{display:block;width:10px;height:10px;border-radius:50%}
.r4-admin-middle .chart-host{height:165px!important;min-height:165px!important;flex:1}.r4-card-link{margin-top:auto}
.r4-lot-status-list{display:grid;gap:10px;flex:1;padding:6px 0}.r4-lot-row{display:grid;grid-template-columns:102px minmax(80px,1fr) 24px;align-items:center;gap:8px;font-size:10.5px;color:#24346f}.r4-lot-row>i{height:14px;border-radius:5px;background:#edf2f6;overflow:hidden}.r4-lot-row>i>b{display:block;height:100%;border-radius:5px}.r4-lot-row>strong{text-align:right;color:#07135c}
.r4-alert-count{display:inline-grid;place-items:center;background:#ff2525;color:#fff;border-radius:50%;width:22px;height:22px;font-size:10px}.r4-admin-list,.r4-admin-bottom .activity-list{flex:1;min-height:0;overflow:auto!important;max-height:none!important}.r4-list-row,.r4-admin-bottom .activity-item{min-height:38px;border-bottom:1px solid #e7eef5;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 0}.r4-row-dot{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#f4aa15;font-weight:700}.r4-row-dot.info{background:#218de6}.r4-list-row>div,.r4-admin-bottom .activity-copy{display:flex;flex-direction:column;min-width:0}.r4-list-row strong,.r4-admin-bottom .activity-copy strong{font-size:10.5px;color:#07135c}.r4-list-row small,.r4-admin-bottom .activity-copy span{font-size:9.5px;color:#6575a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-list-row time,.r4-admin-bottom .activity-time{font-size:9px;color:#7787aa;white-space:nowrap}.r4-admin-bottom .activity-symbol{width:23px!important;height:23px!important;object-fit:contain}
.r4-finance-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:1px 0 8px}.r4-finance-kpis>div{border:1px solid #e2ebf4;border-radius:8px;padding:7px 8px;min-width:0}.r4-finance-kpis span{display:block;font-size:9px;color:#24346f}.r4-finance-kpis strong{display:block;font-size:18px;color:#07135c;margin:4px 0}.r4-finance-kpis small{font-size:8px;color:#6575a5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-admin-card h3{font-size:10px;margin:0 0 5px;color:#24346f}.r4-farm-bars{display:grid;gap:4px;flex:1;min-height:0}.r4-farm-bar{display:grid;grid-template-columns:68px minmax(80px,1fr) 58px;gap:6px;align-items:center;font-size:8.5px;color:#6575a5}.r4-farm-bar>i{height:10px;background:#edf2f6;border-radius:3px;overflow:hidden}.r4-farm-bar>i>b{display:block;height:100%;border-radius:3px}.r4-farm-bar>strong{text-align:right;color:#24346f;font-weight:500}.r4-empty-row{color:#6575a5;font-size:10px;padding:14px 6px}.r4-admin-compat{display:none!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #mainNav a[hidden]{display:none!important}
@media(max-width:1250px){.r4-admin-kpis{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto}.r4-admin-middle,.r4-admin-bottom{grid-template-columns:1fr 1fr}.r4-admin-middle>article:last-child,.r4-admin-bottom>article:last-child{grid-column:1/-1}body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent{overflow:auto!important}}

/* AGROLOGIX R4 — ADMIN EXCLUSIVE DOM R3 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"]{--r4-sidebar:280px;--r4-header:68px;--r4-page-space:22px;--r4-ink:#07135c;--r4-muted:#536aad;--r4-border:#dfe9f3;--r4-shadow:0 3px 14px rgba(31,76,109,.08);overflow:hidden!important;background:#f4f8fb!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .app-shell{height:100vh!important;overflow:hidden!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-sidebar{width:var(--r4-sidebar)!important;padding:16px 12px 10px!important;background:linear-gradient(155deg,#003c31 0%,#003229 55%,#002c27 100%)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.r4x-brand{height:84px;flex:0 0 84px;display:flex;align-items:center;justify-content:center}.r4x-brand img{width:246px;max-width:100%;height:auto;display:block}
.r4x-nav{display:flex;flex-direction:column;gap:2px;min-height:0;flex:1 1 auto;overflow:hidden}.r4x-nav-item{height:42px;flex:0 0 42px;border:0;background:transparent;color:#fff;border-radius:8px;display:flex;align-items:center;gap:20px;padding:0 16px;font:500 15px/1 Arial,sans-serif;text-align:left;cursor:pointer}.r4x-nav-item.active{background:linear-gradient(90deg,#02a64f,#08c461);box-shadow:inset 0 0 0 1px rgba(38,255,135,.35)}.r4x-nav-icon{width:25px;height:25px;display:grid;place-items:center;flex:0 0 25px}.r4x-nav-icon svg,.r4x-nav-icon img{width:24px;height:24px;object-fit:contain;color:#fff;filter:none}
.r4x-side-actions{flex:0 0 auto;margin-top:2px;display:grid;gap:0}.r4x-side-actions button{height:36px;border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:16px;padding:0 15px;font:500 14px Arial;cursor:pointer}.r4x-side-actions button span{width:23px;height:23px;display:grid;place-items:center}.r4x-side-actions svg{width:21px;height:21px}.r4x-side-actions b{font-weight:500}.r4x-emblem{height:58px;display:grid;place-items:center}.r4x-emblem img{width:54px;height:54px;object-fit:contain}.r4x-user{height:52px;border:1px solid rgba(123,204,170,.35);border-radius:10px;background:rgba(0,44,35,.35);color:#fff;display:grid;grid-template-columns:38px 1fr 18px;align-items:center;gap:10px;padding:6px 10px;text-align:left}.r4x-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#08c96b,#008446);display:grid;place-items:center;font-weight:700}.r4x-user strong{display:block;font:500 15px Arial}.r4x-user small{display:block;margin-top:3px;color:#a8d7c5;font:10px Arial}.r4x-user i{font-style:normal;color:#d7eee5}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .workspace{inset:0 0 0 var(--r4-sidebar)!important;background:#f4f8fb!important;display:flex!important;flex-direction:column!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-topbar{height:var(--r4-header)!important;min-height:var(--r4-header)!important;flex:0 0 var(--r4-header)!important;padding:0 24px!important;background:#fff!important;border:0!important;border-bottom:1px solid #e7eef6!important;display:flex!important;align-items:center!important;justify-content:space-between!important;box-shadow:0 2px 8px rgba(40,72,102,.04)!important}
.r4x-search{width:500px;height:38px;border:1px solid #d7e4f2;border-radius:7px;background:#fbfdff;display:flex;align-items:center;padding:0 12px;gap:10px;color:#315bbd}.r4x-search svg{width:18px;height:18px}.r4x-search input{border:0;outline:0;background:transparent;width:100%;font:14px Arial;color:#24346f}.r4x-search input::placeholder{color:#52699c}.r4x-top-actions{display:flex;align-items:center;height:100%;gap:16px;color:#294bab}.r4x-bell{position:relative;width:35px;height:40px;border:0;background:transparent;color:#2850a8;display:grid;place-items:center}.r4x-bell svg{width:22px;height:22px}.r4x-bell b{position:absolute;right:0;top:7px;width:18px;height:18px;border-radius:50%;background:#ff1c21;color:#fff;font:700 11px Arial;display:grid;place-items:center}.r4x-divider{width:1px;height:34px;background:#e1e8f2}.r4x-weather{display:flex;align-items:center;gap:8px}.r4x-weather>span{font-size:30px;color:#ffb200}.r4x-weather strong{display:block;font:700 16px Arial;color:#07135c}.r4x-weather small{display:block;font:10px Arial;color:#52699c;margin-top:2px}.r4x-top-actions time{font:14px Arial;color:#3957a8;white-space:nowrap}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent.r4x-dashboard{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;padding:18px 22px 14px!important;background:#f4f8fb!important;display:flex!important;flex-direction:column!important;gap:12px!important;color:#07135c!important}
.r4x-heading{min-height:70px;flex:0 0 70px;display:flex;align-items:flex-start}.r4x-heading>div{flex:1}.r4x-heading h1{margin:0;font:700 32px/1.08 Arial;color:#07135c;letter-spacing:-.9px}.r4x-heading p{margin:5px 0 0;font:15px/1.3 Arial;color:#536aad}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{position:absolute!important;top:86px!important;right:22px!important;width:700px!important;max-width:700px!important;z-index:4!important}.r4x-dashboard #agDashboardScopebar{display:flex!important;gap:10px!important;flex-wrap:nowrap!important}.r4x-dashboard #agDashboardScopebar .ag-select{height:50px!important;flex:1 1 0!important;min-width:0!important}.r4x-dashboard #agDashboardScopebar select{height:50px!important;border:1px solid #dce7f4!important;border-radius:9px!important;background:#fff!important;color:#07135c!important;font:600 13px Arial!important;padding-left:46px!important}.r4x-dashboard #agDashboardScopebar .ag-select-icon{left:14px!important;color:#087441!important;width:22px!important;height:22px!important}.r4x-dashboard #agDashboardScopeStatus{display:none!important}
.r4-admin-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:0 0 126px;min-height:126px}.r4-admin-kpi{background:#fff;border:1px solid #dfe9f3;border-radius:10px;box-shadow:0 3px 14px rgba(31,76,109,.06);padding:12px 13px;display:flex;gap:11px;min-width:0;overflow:hidden}.r4-admin-kpi-icon{width:54px;height:54px;border-radius:50%;background:#dff8e9;color:#057d45;display:grid;place-items:center;flex:0 0 54px}.r4-admin-kpi-icon svg,.r4-admin-kpi-icon img{width:30px;height:30px;object-fit:contain}.r4-admin-kpi>div{display:flex;flex-direction:column;height:100%;min-width:0}.r4-admin-kpi span{font:600 12px Arial;color:#07135c}.r4-admin-kpi strong{font:700 26px/1.02 Arial;color:#07135c;margin:5px 0 3px;white-space:nowrap}.r4-admin-kpi small{font:10px Arial;color:#08b954;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-admin-kpi a{margin-top:auto;color:#075ad7;text-decoration:none;font:500 11px Arial}.r4-admin-middle{display:grid;grid-template-columns:1.22fr 1.22fr 1fr;gap:10px;flex:1 1 242px;min-height:0}.r4-admin-bottom{display:grid;grid-template-columns:1.18fr .92fr 1.18fr;gap:10px;flex:1 1 245px;min-height:0}.r4-admin-card{background:#fff;border:1px solid #dfe9f3;border-radius:10px;box-shadow:0 3px 14px rgba(31,76,109,.06);padding:12px 14px;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.r4-admin-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:25px;margin-bottom:6px}.r4-admin-card h2{display:flex;align-items:center;gap:8px;margin:0;font:700 15px Arial;color:#07135c}.r4-admin-card header>a,.r4-card-link{font:11px Arial;color:#075ad7;text-decoration:none;white-space:nowrap}.r4-card-icon{width:25px;height:25px;color:#00864c;display:grid;place-items:center;flex:0 0 25px}.r4-card-icon svg{width:23px;height:23px}.r4-alert-icon{color:#ff2e2e}.r4-period-pill{border:1px solid #dce7f4;border-radius:7px;padding:5px 8px;font:10px Arial;color:#5f6f98;background:#fff}.r4-distribution-body{display:flex;align-items:center;gap:14px;min-height:0;flex:1}.r4-distribution-body .donut-wrap{flex:0 0 150px}.r4-distribution-body .donut{width:150px!important;height:150px!important}.r4-distribution-body .donut:after{inset:29px!important}.r4-distribution-body .donut-center strong{font-size:25px!important}.r4-distribution-body .distribution-legend{min-width:0;flex:1}.r4-distribution-body .dist-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:7px;font:10.5px Arial;margin:7px 0}.r4-distribution-body .dist-color{width:10px;height:10px;border-radius:50%}.r4-admin-middle .chart-host{height:165px!important;min-height:165px!important;flex:1}.r4-card-link{margin-top:auto}.r4-lot-status-list{display:grid;gap:10px;flex:1;padding:6px 0}.r4-lot-row{display:grid;grid-template-columns:102px minmax(80px,1fr) 24px;align-items:center;gap:8px;font:10.5px Arial;color:#24346f}.r4-lot-row>i{height:14px;border-radius:5px;background:#edf2f6;overflow:hidden}.r4-lot-row>i>b{display:block;height:100%;border-radius:5px}.r4-lot-row>strong{text-align:right;color:#07135c}.r4-alert-count{display:inline-grid;place-items:center;background:#ff2525;color:#fff;border-radius:50%;width:22px;height:22px;font:700 10px Arial}.r4-admin-list,.r4-admin-bottom .activity-list{flex:1;min-height:0;overflow:auto!important;max-height:none!important}.r4-list-row,.r4-admin-bottom .activity-item{min-height:38px;border-bottom:1px solid #e7eef5;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;padding:4px 0}.r4-row-dot{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#f4aa15;font-weight:700}.r4-row-dot.info{background:#218de6}.r4-list-row>div,.r4-admin-bottom .activity-copy{display:flex;flex-direction:column;min-width:0}.r4-list-row strong,.r4-admin-bottom .activity-copy strong{font:600 10.5px Arial;color:#07135c}.r4-list-row small,.r4-admin-bottom .activity-copy span{font:9.5px Arial;color:#6575a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-list-row time,.r4-admin-bottom .activity-time{font:9px Arial;color:#7787aa;white-space:nowrap}.r4-admin-bottom .activity-symbol{width:23px!important;height:23px!important;object-fit:contain}.r4-finance-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:1px 0 8px}.r4-finance-kpis>div{border:1px solid #e2ebf4;border-radius:8px;padding:7px 8px;min-width:0}.r4-finance-kpis span{display:block;font:9px Arial;color:#24346f}.r4-finance-kpis strong{display:block;font:700 18px Arial;color:#07135c;margin:4px 0}.r4-finance-kpis small{font:8px Arial;color:#6575a5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r4-admin-card h3{font:600 10px Arial;margin:0 0 5px;color:#24346f}.r4-farm-bars{display:grid;gap:4px;flex:1;min-height:0}.r4-farm-bar{display:grid;grid-template-columns:68px minmax(80px,1fr) 58px;gap:6px;align-items:center;font:8.5px Arial;color:#6575a5}.r4-farm-bar>i{height:10px;background:#edf2f6;border-radius:3px;overflow:hidden}.r4-farm-bar>i>b{display:block;height:100%;border-radius:3px}.r4-farm-bar>strong{text-align:right;color:#24346f;font-weight:500}.r4-empty-row{color:#6575a5;font:10px Arial;padding:14px 6px}.r4-admin-compat{display:none!important}
@media(max-width:1250px){body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent.r4x-dashboard{overflow:auto!important}.r4-admin-kpis{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto}.r4-admin-middle,.r4-admin-bottom{grid-template-columns:1fr 1fr}.r4-admin-middle>article:last-child,.r4-admin-bottom>article:last-child{grid-column:1/-1}}

/* AGROLOGIX R4 — ADMIN SIDEBAR ABSOLUTE R4 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar.r4x-sidebar{
  width:284px!important;min-width:284px!important;max-width:284px!important;height:100vh!important;
  padding:12px 14px 10px!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
  overflow:hidden!important;color:#fff!important;
  background:radial-gradient(115% 68% at 48% 11%,rgba(0,108,72,.28) 0%,rgba(0,108,72,0) 58%),
             linear-gradient(180deg,#004537 0%,#003a31 42%,#00352d 100%)!important;
  border:0!important;box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .workspace{left:284px!important;inset-inline-start:284px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand{
  height:86px!important;min-height:86px!important;flex:0 0 86px!important;display:flex!important;align-items:center!important;
  justify-content:center!important;padding:0!important;margin:0 0 7px!important;background:transparent!important;border:0!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img{
  display:block!important;width:250px!important;height:auto!important;max-height:80px!important;object-fit:contain!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav{
  display:grid!important;grid-auto-rows:clamp(41px,4.82vh,46px)!important;align-content:start!important;gap:0!important;
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0!important;margin:0!important
}/* AGROLOGIX_R4_ADMIN_NAV_CSS_OVERFLOW_FIX */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item{
  width:100%!important;height:100%!important;min-height:0!important;display:grid!important;
  grid-template-columns:39px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:0 12px!important;
  margin:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#fff!important;
  text-align:left!important;font-family:Arial,sans-serif!important;font-size:16px!important;line-height:1!important;font-weight:400!important;
  box-shadow:none!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active{
  background:linear-gradient(90deg,#00a850 0%,#00b85a 100%)!important;color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(41,238,132,.75),0 3px 11px rgba(0,21,18,.22)!important;font-weight:600!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-icon{
  width:32px!important;height:32px!important;display:grid!important;place-items:center!important;overflow:visible!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-icon img{
  width:30px!important;height:30px!important;object-fit:contain!important;display:block!important;filter:none!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item[data-r4x-route="animals"] .r4x-nav-icon img{
  width:31px!important;height:31px!important;filter:brightness(0) invert(1)!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions{
  flex:0 0 auto!important;display:grid!important;grid-auto-rows:clamp(38px,4.55vh,43px)!important;gap:0!important;
  padding:4px 0 0!important;margin:0!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions button{
  display:grid!important;grid-template-columns:39px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;
  width:100%!important;height:100%!important;padding:0 12px!important;margin:0!important;color:#fff!important;background:transparent!important;
  border:0!important;border-radius:8px!important;text-align:left!important;font:400 16px/1 Arial,sans-serif!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions button b{font:inherit!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions button>span{
  width:32px!important;height:32px!important;display:grid!important;place-items:center!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions img{
  width:29px!important;height:29px!important;object-fit:contain!important;display:block!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  flex:0 0 58px!important;height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0!important;background:transparent!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{
  width:58px!important;height:52px!important;object-fit:contain!important;display:block!important;background:transparent!important;
  border:0!important;box-shadow:none!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{
  flex:0 0 54px!important;height:54px!important;min-height:54px!important;width:100%!important;display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 20px!important;align-items:center!important;gap:10px!important;padding:5px 10px!important;
  margin:0!important;color:#fff!important;background:rgba(0,57,48,.56)!important;border:1px solid rgba(137,212,182,.28)!important;
  border-radius:9px!important;box-sizing:border-box!important;text-align:left!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-avatar{
  width:38px!important;height:38px!important;border-radius:50%!important;display:grid!important;place-items:center!important;
  background:linear-gradient(145deg,#00c863,#00a44f)!important;color:#fff!important;font:700 16px/1 Arial,sans-serif!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>span:nth-child(2){
  min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:3px!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user strong{
  color:#fff!important;font:400 16px/1.05 Arial,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{
  color:#a9d6c5!important;font:10px/1 Arial,sans-serif!important;white-space:nowrap!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user i{
  color:#fff!important;font:700 18px/1 Arial,sans-serif!important;font-style:normal!important;text-align:center!important
}
@media(max-height:850px){
  body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand{height:78px!important;min-height:78px!important;flex-basis:78px!important}
  body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img{width:236px!important;max-height:72px!important}
  body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav{grid-auto-rows:40px!important}
  body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions{grid-auto-rows:37px!important}
  body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{height:50px!important;flex-basis:50px!important}
  body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{width:50px!important;height:46px!important}
}

/* AGROLOGIX R4 - ADMIN SIDEBAR R3 ASSETS R4A */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img{
  width:257px!important;height:88px!important;max-width:257px!important;max-height:88px!important;
  object-fit:contain!important;image-rendering:auto!important;background:transparent!important;
  border:0!important;box-shadow:none!important;filter:none!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  flex:0 0 57px!important;height:57px!important;min-height:57px!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{
  width:53px!important;height:57px!important;max-width:53px!important;max-height:57px!important;
  object-fit:contain!important;image-rendering:auto!important;background:transparent!important;
  border:0!important;box-shadow:none!important;filter:none!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{
  overflow:hidden!important;grid-template-columns:42px minmax(0,1fr) 20px!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>span:nth-child(2){overflow:hidden!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName{
  display:block!important;max-width:100%!important;color:#fff!important;font-size:16px!important;line-height:1.08!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{
  display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}

/* AGROLOGIX R4 — ADMIN FUNCTIONAL MOCKUP PARITY R7 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"]{--r4-sidebar:280px;--r4-header:66px;background:#f6f9fc!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-sidebar{width:280px!important;min-width:280px!important;max-width:280px!important;padding:0 10px 10px!important;background:linear-gradient(180deg,#004c3b 0%,#003d32 52%,#00382f 100%)!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .workspace{inset:0 0 0 280px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand{height:100px!important;min-height:100px!important;flex:0 0 100px!important;margin:0 -10px 2px!important;padding:0!important;overflow:hidden!important;background:#004838!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img{width:280px!important;height:100px!important;max-width:none!important;object-fit:cover!important;display:block!important;background:transparent!important;border:0!important;filter:none!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav{gap:1px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item{height:42px!important;flex-basis:42px!important;padding:0 14px!important;gap:16px!important;font-size:15px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active{background:linear-gradient(90deg,#00a84d,#08c461)!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions button{height:36px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{height:55px!important;min-height:55px!important;flex:0 0 55px!important;margin:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{width:52px!important;height:52px!important;object-fit:contain!important;background:transparent!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{height:52px!important;min-height:52px!important;flex:0 0 52px!important;grid-template-columns:38px minmax(0,1fr) 18px!important;overflow:hidden!important;padding:5px 9px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>span:nth-child(2){min-width:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName{color:#fff!important;font-size:15px!important;line-height:1.08!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{color:#b9d9cf!important;font-size:9px!important;white-space:nowrap!important;overflow:visible!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-topbar{height:66px!important;min-height:66px!important;flex-basis:66px!important;padding:0 24px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent.r4x-dashboard{padding:18px 22px 16px!important;gap:12px!important;overflow:hidden!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-heading{position:relative!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;min-height:70px!important;flex:0 0 70px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-heading>div:first-child{min-width:420px!important;flex:1 1 auto!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{position:static!important;top:auto!important;right:auto!important;width:735px!important;max-width:735px!important;min-width:620px!important;flex:0 0 735px!important;z-index:auto!important;margin:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar{display:flex!important;gap:10px!important;flex-wrap:nowrap!important;width:100%!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select{flex:1 1 0!important;min-width:0!important;height:53px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar select{height:53px!important;border:1px solid #dbe5ef!important;border-radius:10px!important;background:#fff!important;color:#071c61!important;font:600 13px Arial!important;padding-left:46px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select-icon{left:14px!important;color:#087b46!important;width:22px!important;height:22px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopeStatus{display:none!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpis{gap:12px!important;flex-basis:140px!important;min-height:140px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi{position:relative!important;padding:13px 14px 10px!important;border-radius:10px!important;overflow:hidden!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi>div{padding-right:62px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi strong{font-size:28px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-kpi-spark{position:absolute!important;right:12px!important;bottom:27px!important;width:70px!important;height:35px!important;background:linear-gradient(145deg,transparent 0 15%,#19c75f 16% 18%,transparent 19% 28%,#19c75f 29% 31%,transparent 32% 43%,#19c75f 44% 46%,transparent 47% 57%,#19c75f 58% 60%,transparent 61% 72%,#19c75f 73% 75%,transparent 76%)!important;opacity:.9!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-middle{grid-template-columns:1.16fr 1.18fr .92fr!important;gap:14px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-bottom{grid-template-columns:1.08fr .95fr 1.08fr!important;gap:14px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-card{border-radius:10px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-middle .chart-host{height:190px!important;min-height:190px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut{width:170px!important;height:170px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-wrap{flex-basis:170px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-list,body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-bottom .activity-list{overflow:hidden!important}
@media(max-width:1500px){body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{width:650px!important;min-width:560px!important;flex-basis:650px!important}}

/* AGROLOGIX R4 — ADMIN DEEP DIVE PARITY R8 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"],
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] button,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] input,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] select,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] textarea,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] svg text{
  font-family:Arial,Helvetica,sans-serif!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar.r4x-sidebar{
  width:288px!important;min-width:288px!important;max-width:288px!important;padding:0 10px 9px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .workspace{
  left:288px!important;inset-inline-start:288px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand{
  height:96px!important;min-height:96px!important;flex:0 0 96px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img{
  width:278px!important;height:96px!important;object-fit:cover!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav{grid-auto-rows:44px!important;gap:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item{
  height:34px!important;min-height:34px!important;grid-template-columns:32px minmax(0,1fr)!important;
  gap:8px!important;padding:0 9px!important;font-size:13px!important;line-height:16px!important;font-weight:400!important;
}/* AGROLOGIX_R4_ADMIN_MENU_COMPACT_R2 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active{
  font-size:16px!important;font-weight:600!important;border-radius:9px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-icon,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-icon img{
  width:23px!important;height:23px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions{grid-auto-rows:39px!important;padding-top:2px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-side-actions button{font-size:15px!important;line-height:18px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  height:58px!important;min-height:58px!important;flex:0 0 58px!important;margin:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{
  width:54px!important;height:54px!important;object-fit:contain!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{
  width:100%!important;height:54px!important;min-height:54px!important;flex:0 0 54px!important;
  display:flex!important;align-items:center!important;padding:5px 10px!important;gap:10px!important;
  border-radius:9px!important;overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-avatar{
  width:38px!important;height:38px!important;min-width:38px!important;flex:0 0 38px!important;
  font-size:16px!important;font-weight:700!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>span:nth-child(2){
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  flex:1 1 auto!important;min-width:0!important;gap:3px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName{
  display:block!important;width:auto!important;max-width:none!important;color:#fff!important;
  font-size:16px!important;line-height:18px!important;font-weight:400!important;white-space:nowrap!important;
  overflow:visible!important;text-overflow:clip!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{
  display:block!important;width:auto!important;max-width:none!important;color:#b9d9cf!important;
  font-size:10px!important;line-height:12px!important;font-weight:400!important;white-space:nowrap!important;
  overflow:visible!important;text-overflow:clip!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>i{
  width:18px!important;min-width:18px!important;flex:0 0 18px!important;margin-left:auto!important;font-size:18px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-topbar{
  height:64px!important;min-height:64px!important;flex-basis:64px!important;padding:0 24px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-search{width:495px!important;height:38px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-search input{
  font-size:14px!important;line-height:18px!important;font-weight:400!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-top-actions{
  font-size:14px!important;line-height:18px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent{
  padding:19px 22px 16px!important;gap:12px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #dashboardContent>.page-heading.r4x-heading{
  display:flex!important;visibility:visible!important;min-height:78px!important;height:78px!important;flex:0 0 78px!important;
  margin:0!important;padding:0!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:20px!important;position:relative!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-heading>div:first-child{
  min-width:430px!important;flex:1 1 auto!important;padding-top:2px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-heading h1{
  margin:0!important;color:#07145d!important;font-size:32px!important;line-height:35px!important;
  font-weight:700!important;letter-spacing:-.8px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-heading p{
  margin:5px 0 0!important;color:#5572bc!important;font-size:15px!important;line-height:19px!important;font-weight:400!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{
  display:block!important;visibility:visible!important;position:static!important;width:730px!important;
  min-width:630px!important;max-width:730px!important;flex:0 0 730px!important;margin:0!important;padding:0!important;z-index:10!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;
  width:100%!important;margin:0!important;padding:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select{
  position:relative!important;display:block!important;width:100%!important;min-width:0!important;height:54px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar select{
  display:block!important;width:100%!important;height:54px!important;padding:0 38px 0 48px!important;
  border:1px solid #d9e4ef!important;border-radius:10px!important;background:#fff!important;color:#071c61!important;
  font-size:14px!important;line-height:18px!important;font-weight:600!important;box-shadow:0 1px 2px rgba(21,44,76,.025)!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select-icon{
  position:absolute!important;left:14px!important;top:50%!important;transform:translateY(-50%)!important;
  width:24px!important;height:24px!important;color:#087c47!important;z-index:2!important;pointer-events:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopeStatus{display:none!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpis{
  gap:12px!important;min-height:140px!important;flex:0 0 140px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi{
  min-width:0!important;padding:12px 13px 10px!important;border-radius:10px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi>div>span{
  font-size:14px!important;line-height:17px!important;font-weight:700!important;color:#071c61!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi strong{
  font-size:28px!important;line-height:31px!important;font-weight:700!important;letter-spacing:-.4px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi small{
  font-size:12px!important;line-height:15px!important;font-weight:600!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-kpi a{
  font-size:12px!important;line-height:16px!important;font-weight:400!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-card h2,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-card header h2{
  font-size:16px!important;line-height:20px!important;font-weight:700!important;letter-spacing:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .dist-row{font-size:12px!important;line-height:16px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .dist-row b{font-size:12px!important;font-weight:600!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-card-link,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-admin-card a{
  font-size:12px!important;line-height:16px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4AdminLotStatus{
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  gap:9px!important;padding:27px 15px 0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4AdminLotStatus .r4-lot-row{
  display:grid!important;grid-template-columns:112px minmax(90px,1fr) 28px!important;
  align-items:center!important;gap:10px!important;min-height:24px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4AdminLotStatus .r4-lot-row>span{
  color:#173a92!important;font-size:12px!important;line-height:15px!important;font-weight:400!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4AdminLotStatus .r4-lot-row>i{
  display:block!important;height:16px!important;border-radius:6px!important;background:#e9eef3!important;overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4AdminLotStatus .r4-lot-row>i>b{
  display:block!important;height:16px!important;border-radius:6px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4AdminLotStatus .r4-lot-row>strong{
  color:#071c61!important;font-size:12px!important;line-height:15px!important;font-weight:700!important;text-align:right!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-list-row strong,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .activity-list strong{
  font-size:12px!important;line-height:15px!important;font-weight:600!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-list-row small,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .activity-list small{
  font-size:11px!important;line-height:14px!important;font-weight:400!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-list-row time,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .activity-list time{
  font-size:10px!important;line-height:13px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-fin-kpi small{font-size:10px!important;line-height:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-fin-kpi strong{font-size:20px!important;line-height:23px!important;font-weight:700!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-farm-bar{font-size:10px!important;line-height:13px!important}
@media(max-width:1600px){
  body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{
    width:650px!important;min-width:570px!important;flex-basis:650px!important;
  }
}

/* AGROLOGIX R4 — ADMIN SIDEBAR MOCKUP REFINEMENT R9 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar.r4x-sidebar{
  background:
    radial-gradient(120% 70% at 18% 10%, rgba(34,231,134,.12) 0%, rgba(34,231,134,0) 42%),
    radial-gradient(100% 100% at 0% 34%, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 58%),
    linear-gradient(180deg,#005f4c 0%, #005448 18%, #00493f 46%, #00413a 71%, #003a35 100%)!important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    inset 18px 0 40px rgba(0,0,0,.07),
    inset -30px 0 60px rgba(0,0,0,.08)!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand{
  background:
    linear-gradient(180deg, rgba(0,0,0,.07) 0%, rgba(0,0,0,.02) 100%)!important;
  border-bottom:1px solid rgba(120,220,180,.10)!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img{
  filter:saturate(1.02) contrast(1.02)!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav{
  margin-top:6px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item{
  color:#ffffff!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active{
  background:linear-gradient(180deg,#14d66d 0%, #14c863 100%)!important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 10px 24px rgba(8,164,84,.18)!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active span{
  color:#ffffff!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active .r4x-nav-icon,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active .r4x-nav-icon img{
  filter:none!important;
}

body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  height:54px!important;min-height:54px!important;flex:0 0 54px!important;
  margin:10px 0 8px!important;display:flex!important;justify-content:center!important;align-items:center!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{
  width:54px!important;height:54px!important;object-fit:contain!important;
}

body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{
  width:100%!important;height:52px!important;min-height:52px!important;flex:0 0 52px!important;
  display:grid!important;grid-template-columns:40px minmax(0,1fr) 18px!important;align-items:center!important;
  gap:10px!important;padding:0 12px!important;border-radius:10px!important;overflow:hidden!important;
  background:rgba(0,0,0,.10)!important;border:1px solid rgba(132,214,184,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-avatar{
  width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;
  border-radius:50%!important;background:#1ad869!important;color:#ffffff!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:14px!important;line-height:14px!important;font-weight:700!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user-main,
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>span:nth-child(2){
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  min-width:0!important;overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName{
  display:block!important;max-width:100%!important;margin:0!important;
  color:#ffffff!important;font-size:15px!important;line-height:18px!important;font-weight:400!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{
  display:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>i{
  width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;
  margin:0!important;color:#ffffff!important;font-size:14px!important;line-height:18px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}

/* AGROLOGIX R4 — ADMIN SIDEBAR EXACT R10 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar.r4x-sidebar{
  background:#002D24!important;
  box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand{
  background:#002820!important;
  border:0!important;
  box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img{
  display:block!important;
  background:#002820!important;
  filter:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active{
  background:#007B3F!important;
  box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:10px!important;
  height:52px!important;
  min-height:52px!important;
  padding:0 12px!important;
  background:#002E24!important;
  border:1px solid #145B4A!important;
  border-radius:10px!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-avatar{
  width:36px!important;height:36px!important;min-width:36px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:50%!important;background:#13C761!important;color:#fff!important;
  font:700 14px/1 Arial,Helvetica,sans-serif!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user-main{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName{
  display:block!important;
  color:#fff!important;
  font:400 16px/20px Arial,Helvetica,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{
  display:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>i{
  width:18px!important;height:18px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#fff!important;
  font:700 15px/18px Arial,Helvetica,sans-serif!important;
  font-style:normal!important;
  margin:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  margin:8px 0 8px!important;
}

/* AGROLOGIX R4 — IDENTIDAD USUARIO MOCKUP EXACTA R11 */
/* Authority measured from user-provided identity mockup crop: 270×97 px. */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  position:relative!important;
  z-index:6!important;
  height:0!important;
  min-height:0!important;
  flex:0 0 0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  pointer-events:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{
  position:absolute!important;
  left:50%!important;
  top:0!important;
  transform:translate(-50%,-55%)!important;
  width:52px!important;
  height:52px!important;
  object-fit:contain!important;
  z-index:7!important;
  background:transparent!important;
  border:0!important;
  filter:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{
  width:calc(100% - 12px)!important;
  height:50px!important;
  min-height:50px!important;
  flex:0 0 50px!important;
  margin:22px 6px 0!important;
  padding:0 11px!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 20px!important;
  align-items:center!important;
  column-gap:10px!important;
  background:#002E24!important;
  border:1px solid #155B4A!important;
  border-radius:10px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-avatar{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#11C961!important;
  color:#FFFFFF!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:15px!important;
  line-height:15px!important;
  font-weight:700!important;
  letter-spacing:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user-main{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  height:100%!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#FFFFFF!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18)!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:16px!important;
  line-height:20px!important;
  font-weight:400!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{
  display:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>i{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#FFFFFF!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:17px!important;
  line-height:20px!important;
  font-style:normal!important;
  font-weight:700!important;
  transform:translateY(-1px)!important;
}

/* AGROLOGIX R4 - IDENTITY WHITE + EMBLEM DOWN R12 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName{
  color:#FFFFFF!important;
  opacity:1!important;
  text-shadow:0 1px 1px rgba(0,0,0,.20)!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:16px!important;
  line-height:20px!important;
  font-weight:500!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user small{
  color:#D7E9E2!important;
  opacity:1!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  margin-top:14px!important;
  margin-bottom:4px!important;
  transform:translateY(6px)!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{
  transform:translateY(4px)!important;
}

/* AGROLOGIX R4 - EMBLEMA CENTRADO MAS GRANDE R14 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem{
  position:relative!important;
  width:100%!important;
  height:68px!important;
  min-height:68px!important;
  flex:0 0 68px!important;
  margin:8px 0 4px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  transform:none!important;
  overflow:visible!important;
  pointer-events:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img{
  position:static!important;
  display:block!important;
  width:64px!important;
  height:64px!important;
  max-width:64px!important;
  max-height:64px!important;
  margin:0 auto!important;
  transform:none!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user{
  margin-top:0!important;
}

/* AGROLOGIX R4 - ROLE AWARE SHARED SHELL R15 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .sidebar.r4x-sidebar,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .sidebar.r4x-sidebar,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .sidebar.r4x-sidebar{
  width:288px!important;min-width:288px!important;max-width:288px!important;
  padding:0 10px 9px!important;background:#002D24!important;box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .workspace,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .workspace,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .workspace{
  left:288px!important;inset-inline-start:288px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-brand,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-brand{
  height:96px!important;min-height:96px!important;flex:0 0 96px!important;
  background:#002820!important;border:0!important;box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-brand img,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-brand img,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-brand img{
  width:278px!important;height:96px!important;object-fit:cover!important;
  display:block!important;background:#002820!important;filter:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-nav,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-nav{
  grid-auto-rows:44px!important;gap:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-nav-item,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-nav-item{
  height:44px!important;min-height:44px!important;
  grid-template-columns:42px minmax(0,1fr)!important;gap:11px!important;padding:0 12px!important;
  color:#fff!important;font:400 16px/20px Arial,Helvetica,sans-serif!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-nav-item.active,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-nav-item.active,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-nav-item.active{
  background:#007B3F!important;border-radius:9px!important;color:#fff!important;font-weight:600!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-topbar,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-topbar,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-topbar{
  height:64px!important;min-height:64px!important;flex:0 0 64px!important;
  padding:0 24px!important;background:#fff!important;border-bottom:1px solid #eef2f7!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-search,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-search,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-search{
  width:495px!important;height:38px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-emblem,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-emblem{
  width:100%!important;height:68px!important;min-height:68px!important;flex:0 0 68px!important;
  margin:8px 0 4px!important;display:flex!important;align-items:center!important;justify-content:center!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-emblem img,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-emblem img,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-emblem img{
  width:64px!important;height:64px!important;object-fit:contain!important;transform:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-user,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-user{
  width:calc(100% - 12px)!important;height:52px!important;min-height:52px!important;flex:0 0 52px!important;
  margin:0 6px!important;padding:0 12px!important;display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 18px!important;align-items:center!important;gap:10px!important;
  background:#002E24!important;border:1px solid #145B4A!important;border-radius:10px!important;overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-avatar,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-avatar,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-avatar{
  width:36px!important;height:36px!important;border-radius:50%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:#13C761!important;color:#fff!important;font:700 14px/1 Arial,Helvetica,sans-serif!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r4xUserName,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r4xUserName,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r4xUserName{
  color:#fff!important;font:400 16px/20px Arial,Helvetica,sans-serif!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>i,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-user>i,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-user>i{
  color:#fff!important;font-style:normal!important;
}

/* AGROLOGIX R4 - ROLE IDENTITY ALIGNMENT R16 */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-user,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-user{
  justify-content:stretch!important;
  text-align:left!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-avatar,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-avatar,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-avatar{
  justify-self:start!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user-main,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-user-main,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-user-main{
  justify-self:start!important;
  width:100%!important;
  min-width:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4x-user>i,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-user>i,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r4x-user>i{
  justify-self:end!important;
}

/* AGROLOGIX R4 - ROLE DASHBOARD PARITY R18 */
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"],
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"]{font-family:Arial,Helvetica,sans-serif!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #dashboardContent,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #dashboardContent{padding:18px 22px 16px!important;gap:12px!important;overflow:hidden!important}
.r4-role-dashboard{display:flex;flex-direction:column;gap:12px;height:100%;min-height:0}
.r4-role-heading{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;height:76px!important;min-height:76px!important}
.r4-role-heading h1{margin:0;color:#07145d;font-size:32px;line-height:36px;font-weight:700;letter-spacing:-.7px}
.r4-role-heading p{margin:5px 0 0;color:#5572bc;font-size:15px}
.r4-role-filters{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:730px}
.r4-role-filters button{height:54px;border:1px solid #d9e4ef;border-radius:10px;background:#fff;color:#071c61;font:600 14px Arial;padding:0 14px;display:grid;grid-template-columns:28px 1fr 18px;align-items:center;text-align:left}
.r4-role-filters button span{color:#0a8b50;font-size:20px}.r4-role-filters button b{text-align:right;font-size:18px}
.r4-role-kpis{display:grid;gap:12px}.r4-five{grid-template-columns:repeat(5,1fr)}.r4-four{grid-template-columns:repeat(4,1fr)}
.r4-role-kpi{height:126px;border:1px solid #dfe7ee;border-radius:10px;background:#fff;padding:12px;display:grid;grid-template-columns:52px 1fr 60px;gap:10px;position:relative;overflow:hidden}
.kpi-icon{width:48px;height:48px;border-radius:50%;background:#dff8e9;color:#067544;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700}
.kpi-copy{display:flex;flex-direction:column}.kpi-copy span{color:#071c61;font-size:14px;font-weight:700}.kpi-copy strong{color:#07145d;font-size:27px;line-height:31px}.kpi-copy small{color:#07b554;font-size:12px;font-weight:700;margin-top:2px}.kpi-copy a{color:#0665e5;font-size:12px;margin-top:auto}
.mini-spark{position:absolute;right:12px;bottom:28px;width:56px;height:24px;background:linear-gradient(150deg,transparent 0 20%,#1dcc69 22% 25%,transparent 27% 38%,#1dcc69 40% 43%,transparent 45% 58%,#1dcc69 60% 64%,transparent 66%);opacity:.9}
.r4-role-card{background:#fff;border:1px solid #dfe7ee;border-radius:10px;min-height:0;overflow:hidden}
.r4-role-card header{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 14px}.r4-role-card header h2{margin:0;color:#07145d;font-size:16px}.r4-role-card header h2:first-letter{color:#07834c}
.r4-role-card header a,.r4-role-card>a{color:#0569e7;font-size:12px}.r4-role-card>a{display:block;padding:0 14px 10px}
.investor-mid{display:grid;grid-template-columns:1.1fr 1.05fr .86fr;gap:12px;height:273px}
.investor-bottom{display:grid;grid-template-columns:1.08fr .86fr 1.03fr;gap:12px;min-height:0;flex:1}
.portfolio-body{display:grid;grid-template-columns:185px 1fr;gap:6px;padding:4px 14px 0}
.donut{width:150px;height:150px;border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;margin:auto}
.investor-donut{background:conic-gradient(#18c96e 0 30%,#0e9159 30% 51.9%,#ffb31c 51.9% 69.8%,#158de6 69.8% 86%,#6637e8 86% 100%)}
.donut:after{content:"";position:absolute;width:92px;height:92px;border-radius:50%;background:#fff}.donut div{position:relative;z-index:1;text-align:center}.donut strong{display:block;color:#07145d;font-size:18px}.donut small{color:#07145d;font-size:11px}
.legend{padding-top:8px}.legend>div{display:grid;grid-template-columns:12px 1fr auto;gap:7px;align-items:center;height:29px;color:#16388e;font-size:11px}.legend i{width:10px;height:10px;border-radius:50%}.legend b{font-weight:400}.g1{background:#18c96e}.g2{background:#0e9159}.g3{background:#ffb31c}.g4{background:#158de6}.g5{background:#6637e8}
.weight-card header button{border:1px solid #dbe5ee;border-radius:7px;background:#fff;color:#5772b4;font-size:10px;padding:6px 8px}.r4-weight-svg{display:block;width:calc(100% - 24px);height:185px;margin:0 12px}
.lot-status{padding:17px 14px 10px;display:flex;flex-direction:column;gap:13px}.lot-row{display:grid;grid-template-columns:105px 1fr 24px;gap:9px;align-items:center;color:#173a92;font-size:12px}.lot-row i{height:15px;background:#e9eef3;border-radius:6px;overflow:hidden}.lot-row i b{display:block;height:15px;border-radius:6px}.lot-row strong{text-align:right;color:#071c61}
.list-card{padding-bottom:4px}.list-card header em{background:#ff2d2d;color:#fff;border-radius:50%;font-style:normal;font-size:11px;padding:5px 7px;margin-left:5px}.role-list-row{height:44px;margin:0 12px;border-top:1px solid #e8edf2;display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center}.role-list-row>i{width:25px;height:25px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-style:normal;font-weight:700}.role-list-row .danger{background:#ff2f34}.role-list-row .warn{background:#ffb21c}.role-list-row .info{background:#1c91e8}.role-list-row .act{background:#0b8a51}.role-list-row strong{display:block;color:#071c61;font-size:11px}.role-list-row small{display:block;color:#5572bc;font-size:10px}.role-list-row time{color:#5572bc;font-size:10px}
.finance-card{padding-bottom:6px}.finance-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0 10px}.finance-kpi{height:81px;border:1px solid #dfe7ee;border-radius:8px;padding:7px;position:relative}.finance-kpi small,.finance-kpi strong,.finance-kpi b{display:block}.finance-kpi small{color:#5572bc;font-size:9px}.finance-kpi strong{color:#07145d;font-size:18px}.finance-kpi b{color:#0ab653;font-size:10px}.finance-card h3{margin:8px 10px 5px;color:#071c61;font-size:11px}.farm-bar{display:grid;grid-template-columns:66px 1fr 72px;gap:7px;align-items:center;height:19px;padding:0 10px;color:#5572bc;font-size:9px}.farm-bar i{height:10px;background:#edf1f4;border-radius:4px;overflow:hidden}.farm-bar i b{display:block;height:10px;border-radius:4px}.farm-bar strong{text-align:right;color:#173a92}
.r4-rancher-hero{height:126px;min-height:126px;border-radius:0 0 10px 10px;margin:-18px -22px 0;padding:18px 22px 12px;display:flex;justify-content:space-between;align-items:flex-end;background:linear-gradient(90deg,rgba(255,255,255,.98) 0 36%,rgba(255,255,255,.78) 58%,rgba(232,247,226,.68)),linear-gradient(180deg,#edf9ee,#d9f0d7)}
.hero-copy span{color:#0870dc;font-size:12px;font-weight:700;letter-spacing:1px}.hero-copy h1{margin:4px 0 2px;color:#07145d;font-size:34px}.hero-copy p{margin:0;color:#5572bc;font-size:15px}.r4-rancher-hero .r4-role-filters{width:710px}
.r4-rancher-main{display:grid;grid-template-columns:1.18fr .76fr .8fr;gap:12px;height:288px}.rancher-weight .r4-weight-svg{height:225px}.herd-body{display:grid;grid-template-columns:155px 1fr;align-items:center;padding:8px 12px}.herd-donut{background:conic-gradient(#16c86a 0 82%,#ffb31c 82% 88%,#ff3b30 88% 98%,#7893b4 98% 100%)}.herd-legend>div{display:grid;grid-template-columns:12px 1fr 48px;gap:7px;align-items:center;height:35px;color:#5572bc;font-size:11px}.herd-legend i{width:10px;height:10px;border-radius:50%}.herd-legend b{color:#07145d;text-align:right}.herd-legend b small{display:block;color:#5572bc}
.priorities-card{padding:0 8px 8px}.priority-row{height:50px;border:1px solid #e4e9ef;border-radius:8px;margin:6px 0;display:grid;grid-template-columns:34px 1fr 18px;gap:7px;align-items:center;padding:0 8px}.priority-row>i{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-style:normal}.priority-row strong{display:block;color:#071c61;font-size:11px}.priority-row small{display:block;color:#5572bc;font-size:10px}
.r4-rancher-bottom{display:grid;grid-template-columns:2fr .72fr;gap:12px;min-height:0;flex:1}.events-card{padding:0 14px 8px}.events-card table{width:100%;border-collapse:collapse;font-size:10px;color:#173a92}.events-card th{background:#eaf0f4;text-align:left;padding:7px}.events-card td{border-top:1px solid #e6ebef;padding:7px}.pill{padding:3px 7px;border-radius:10px;font-weight:400}.pill.green{background:#dff7e8;color:#0c9a51}.pill.blue{background:#e4f1ff;color:#0b73d9}.pill.red{background:#ffe2e3;color:#d9282e}.pill.purple{background:#eee6ff;color:#7045d7}.pill.gray{background:#e9eef3;color:#546b82}
.rancher-lots{padding-bottom:8px}
@media(max-width:1500px){.r4-role-filters{width:620px}.r4-role-heading h1{font-size:29px}.r4-role-kpi strong{font-size:24px}}

/* AGROLOGIX R4 - INVESTOR PIE CHART FIX R18A */
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .portfolio-body{
  display:grid!important;
  grid-template-columns:170px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:3px 14px 0!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .investor-donut{
  width:150px!important;
  height:150px!important;
  min-width:150px!important;
  min-height:150px!important;
  max-width:150px!important;
  max-height:150px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  margin:0 auto!important;
  flex:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .investor-donut:after{
  width:92px!important;
  height:92px!important;
  border-radius:50%!important;
}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .r4-investor-legend{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .r4-investor-legend>div{
  display:grid!important;
  grid-template-columns:10px minmax(0,1fr) max-content!important;
  align-items:center!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  height:28px!important;
  margin:0!important;
  padding:0!important;
  color:#16388e!important;
  font:400 10px/13px Arial,Helvetica,sans-serif!important;
  white-space:nowrap!important;
}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .r4-investor-legend i{
  width:9px!important;
  height:9px!important;
  border-radius:50%!important;
  display:block!important;
}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .r4-investor-legend span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .portfolio-card .r4-investor-legend b{
  color:#173a92!important;
  font-weight:400!important;
  white-space:nowrap!important;
}

/* AGROLOGIX R4 - SHARED FUNCTIONAL FILTERS R18B */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #agDashboardHeadingRight,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardHeadingRight{
  display:block!important;visibility:visible!important;position:static!important;
  width:730px!important;min-width:630px!important;max-width:730px!important;flex:0 0 730px!important;
  margin:0!important;padding:0!important;z-index:10!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #agDashboardScopebar,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardScopebar{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;width:100%!important;margin:0!important;padding:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #agDashboardScopebar .ag-select,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardScopebar .ag-select{
  position:relative!important;display:block!important;width:100%!important;height:54px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar select,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #agDashboardScopebar select,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardScopebar select{
  display:block!important;width:100%!important;height:54px!important;
  padding:0 38px 0 48px!important;border:1px solid #d9e4ef!important;border-radius:10px!important;
  background:#fff!important;color:#071c61!important;
  font:600 14px/18px Arial,Helvetica,sans-serif!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar .ag-select-icon,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #agDashboardScopebar .ag-select-icon,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardScopebar .ag-select-icon{
  position:absolute!important;left:14px!important;top:50%!important;transform:translateY(-50%)!important;
  width:24px!important;height:24px!important;color:#087c47!important;z-index:2!important;pointer-events:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopeStatus,
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #agDashboardScopeStatus,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardScopeStatus{display:none!important}
.r4-role-empty-chart{height:185px;display:flex;align-items:center;justify-content:center;color:#5572bc;font-size:12px}
@media(max-width:1600px){
  body.r4-shell.auth-authenticated #agDashboardHeadingRight{width:650px!important;min-width:570px!important;flex-basis:650px!important}
}

/* AGROLOGIX R4 - NO LEGACY FLASH R18C */
body.r4-shell.auth-authenticated #currentDate{
  display:block!important;
  position:static!important;
  color:#4864b3!important;
  font:400 13px/18px Arial,Helvetica,sans-serif!important;
  white-space:nowrap!important;
  margin:0!important;
  padding-left:14px!important;
  border-left:1px solid #e2e8f0!important;
}

/* AGROLOGIX R4 - ROLE DATA BINDING + IDENTITY R20 */
body.r4-shell.auth-authenticated .r4x-user{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 18px!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:10px!important;
  width:calc(100% - 12px)!important;
  height:54px!important;
  min-height:54px!important;
  padding:0 12px!important;
  margin:0 6px 6px!important;
  overflow:hidden!important;
  text-align:left!important;
}
body.r4-shell.auth-authenticated .r4x-avatar{
  width:36px!important;min-width:36px!important;max-width:36px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  border-radius:50%!important;padding:0!important;margin:0!important;
  justify-self:start!important;display:flex!important;align-items:center!important;justify-content:center!important;
  line-height:36px!important;font-size:13px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;
}
body.r4-shell.auth-authenticated .r4x-user-main{display:block!important;width:100%!important;min-width:0!important;overflow:hidden!important;justify-self:start!important}
body.r4-shell.auth-authenticated #r4xUserName{
  display:block!important;width:100%!important;color:#fff!important;
  font:400 16px/20px Arial,Helvetica,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;opacity:1!important;
}
body.r4-shell.auth-authenticated .r4x-user>i{justify-self:end!important;color:#fff!important;opacity:1!important}
.r4-role-empty-list{display:flex;min-height:120px;align-items:center;justify-content:center;padding:16px;color:#607387;font-size:11px;text-align:center}

/* AGROLOGIX R4 - AUTHORITATIVE DIRECT BIND + SIDEBAR CLEANUP R21 */
body.r4-shell.auth-authenticated .sidebar>.account-wrap,

body.r4-shell.auth-authenticated .sidebar>.user-menu,
body.r4-shell.auth-authenticated .sidebar>.user-account{
  display:none!important;
}
body.r4-shell.auth-authenticated .r4x-user{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 18px!important;
  gap:10px!important;
  align-items:center!important;
  width:calc(100% - 12px)!important;
  height:54px!important;
  min-height:54px!important;
  margin:0 6px 6px!important;
  padding:0 12px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated .r4x-avatar{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font:700 13px/36px Arial,Helvetica,sans-serif!important;color:#fff!important;background:#10c969!important;
  padding:0!important;margin:0!important;overflow:hidden!important;white-space:nowrap!important;
}
body.r4-shell.auth-authenticated .r4x-user-main{display:block!important;min-width:0!important;width:100%!important;overflow:hidden!important}
body.r4-shell.auth-authenticated #r4xUserName{
  display:block!important;width:100%!important;color:#fff!important;opacity:1!important;
  font:400 16px/20px Arial,Helvetica,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.r4-shell.auth-authenticated .r4x-user-chevron{color:#fff!important;opacity:1!important;font-style:normal!important;justify-self:end!important}
body.r4-shell.auth-authenticated .r4x-nav a,
body.r4-shell.auth-authenticated .r4x-nav button,
body.r4-shell.auth-authenticated .r4x-nav-item{color:#fff!important}
body.r4-shell.auth-authenticated .r4x-nav svg,
body.r4-shell.auth-authenticated .r4x-nav svg *{fill:currentColor!important;stroke:currentColor!important}
body.r4-shell.auth-authenticated .r4x-nav img{filter:brightness(0) invert(1)!important;opacity:1!important}
.r4-role-empty-chart,.r4-role-empty-list{display:flex;align-items:center;justify-content:center;min-height:120px;color:#607387;font-size:11px;text-align:center;padding:12px}

/* AGROLOGIX R4 - AUTHORITATIVE SCOPED BINDING + IDENTITY R23 */
body.r4-shell.auth-authenticated .r4x-user{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:10px!important;
  width:calc(100% - 12px)!important;
  height:54px!important;
  min-height:54px!important;
  margin:0 6px 6px!important;
  padding:0 12px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.02)!important;
  overflow:hidden!important;
  flex:0 0 auto!important;
}
body.r4-shell.auth-authenticated .r4x-avatar{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:50%!important;background:#10c969!important;color:#fff!important;
  font:700 13px/36px Arial,Helvetica,sans-serif!important;padding:0!important;margin:0!important;
}
body.r4-shell.auth-authenticated .r4x-user-main{display:block!important;min-width:0!important;width:100%!important;overflow:hidden!important}
body.r4-shell.auth-authenticated #r4xUserName{
  display:block!important;color:#fff!important;opacity:1!important;
  font:400 16px/20px Arial,Helvetica,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.r4-shell.auth-authenticated .r4x-user-chevron{display:block!important;color:#fff!important;opacity:1!important;font-style:normal!important;justify-self:end!important}
body.r4-shell.auth-authenticated .r4x-nav a,
body.r4-shell.auth-authenticated .r4x-nav button,
body.r4-shell.auth-authenticated .r4x-nav-item{color:#fff!important}
body.r4-shell.auth-authenticated .r4x-nav svg,
body.r4-shell.auth-authenticated .r4x-nav svg *{fill:currentColor!important;stroke:currentColor!important}
body.r4-shell.auth-authenticated .r4x-nav img{filter:brightness(0) invert(1)!important;opacity:1!important}
.r4-role-empty-chart{display:flex;align-items:center;justify-content:center;min-height:160px;color:#607387;font-size:11px}

/* AGROLOGIX R4 - CONSOLIDATED RUNTIME FINALIZER R25 */
body.r4-shell.auth-authenticated .r4x-user{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:10px!important;
  width:calc(100% - 12px)!important;
  height:54px!important;
  min-height:54px!important;
  margin:0 6px 6px!important;
  padding:0 12px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.02)!important;
  color:#fff!important;
  overflow:hidden!important;
  flex:0 0 auto!important;
}
body.r4-shell.auth-authenticated .r4x-avatar{
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:50%!important;background:#10c969!important;color:#fff!important;
  font:700 13px/36px Arial,Helvetica,sans-serif!important;padding:0!important;margin:0!important;
}
body.r4-shell.auth-authenticated .r4x-user-main{display:block!important;min-width:0!important;width:100%!important;overflow:hidden!important}
body.r4-shell.auth-authenticated #r4xUserName{
  display:block!important;color:#fff!important;opacity:1!important;
  font:400 16px/20px Arial,Helvetica,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.r4-shell.auth-authenticated .r4x-user-chevron{display:block!important;color:#fff!important;opacity:1!important;font-style:normal!important;justify-self:end!important}
body.r4-shell.auth-authenticated .r4x-nav a,
body.r4-shell.auth-authenticated .r4x-nav button,
body.r4-shell.auth-authenticated .r4x-nav-item{color:#fff!important}
body.r4-shell.auth-authenticated .r4x-nav svg,
body.r4-shell.auth-authenticated .r4x-nav svg *{fill:currentColor!important;stroke:currentColor!important}
body.r4-shell.auth-authenticated .r4x-nav img{filter:brightness(0) invert(1)!important;opacity:1!important}
.r25-weight-holder{width:100%;height:100%}
.r25-weight-holder .r4-weight-svg{width:100%;height:100%;display:block}
.r4-role-empty-chart{display:flex;align-items:center;justify-content:center;min-height:150px;color:#607387;font-size:11px}

/* AGROLOGIX R4 - IDENTITY VISIBILITY AUTHORITY R28 */
body.r4-shell.auth-authenticated .sidebar>#userMenuButton.r4x-user,
body.r4-shell.auth-authenticated .sidebar .r4x-user#userMenuButton,
body.r4-shell.auth-authenticated .sidebar .r4x-user{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  width:calc(100% - 12px)!important;
  min-width:0!important;
  height:54px!important;
  min-height:54px!important;
}
body.r4-shell.auth-authenticated .sidebar .r4x-user .r4x-avatar,
body.r4-shell.auth-authenticated .sidebar .r4x-user #r4xUserName{
  visibility:visible!important;
  opacity:1!important;
}

/* AGROLOGIX R4 - R30 HIDE CLOSED DIAGNOSTIC TRACE */
#agR26TraceBox{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* AGROLOGIX R4 - R31G FARM HEALTH AUTHORITY */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-card{
  position:relative!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-body{
  padding-bottom:30px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r31g-biosecurity{
  position:absolute!important;
  left:16px!important;
  right:16px!important;
  bottom:8px!important;
  font-size:9px!important;
  line-height:12px!important;
  color:#5b6f8f!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* AGROLOGIX R4 - R31H NORMAL PIE CHART */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-donut{
  position:relative!important;
  width:150px!important;
  height:150px!important;
  min-width:150px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  margin:0 auto!important;
  overflow:hidden!important;
  box-shadow:inset 0 0 0 1px rgba(20,55,75,.08)!important;
}

/* Remove the white inner disc that turns the pie into a donut. */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-donut::before,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-donut::after{
  display:none!important;
  content:none!important;
  width:0!important;
  height:0!important;
}

/* Center labels belong to donut charts; hide them for a standard pie. */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-donut>strong,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-donut>small,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-donut>div{
  display:none!important;
}

/* Keep pie and legend balanced inside the card. */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-body{
  display:grid!important;
  grid-template-columns:170px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:14px!important;
  min-width:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-legend{
  min-width:0!important;
  width:100%!important;
}

/* AGROLOGIX R4 - R32 GANADERO FILTER PARITY */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardHeadingRight{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardScopebar{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardPartnerField,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .ag-dashboard-scopefield{
  display:flex!important;
  visibility:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardPartner,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardFarm,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #agDashboardLot{
  pointer-events:auto!important;
  opacity:1!important;
}

/* AGROLOGIX R4 - R34B HERD HEALTH EMPTY STATE */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-body[data-health-empty="1"]{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:190px!important;
  padding:20px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-body[data-health-empty="1"] .herd-donut,
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .herd-body[data-health-empty="1"] .herd-legend{
  display:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r34b-health-empty{
  width:100%!important;
  max-width:360px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:6px!important;
  color:#5f6f82!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r34b-health-empty-icon{
  width:44px!important;
  height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:#eef8f2!important;
  color:#16a85d!important;
  font-size:24px!important;
  line-height:1!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r34b-health-empty strong{
  color:#0b245f!important;
  font-size:15px!important;
  line-height:20px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] .r34b-health-empty span{
  font-size:11px!important;
  line-height:16px!important;
  max-width:310px!important;
}

/* AGROLOGIX R4 - R39 ADMIN FILTER + DONUT PARITY */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardHeadingRight{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  flex:1 1 590px!important;
  max-width:750px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #agDashboardScopebar{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  gap:12px!important;
  justify-content:flex-end!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body{
  min-height:168px!important;
  display:grid!important;
  grid-template-columns:46% 54%!important;
  align-items:center!important;
  padding:2px 14px 10px!important;
  gap:0!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-wrap{
  display:grid!important;
  place-items:center!important;
  width:auto!important;
  flex:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut{
  width:126px!important;
  height:126px!important;
  min-width:126px!important;
  min-height:126px!important;
  border-radius:50%!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut:after{
  inset:29px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .distribution-legend{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  min-width:0!important;
  font-size:10px!important;
}

/* AGROLOGIX R4 - R40 ADMIN DONUT + GLOBAL TOPBAR PARITY */

/* ADMIN: match the compact Investor distribution geometry. */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body{
  min-height:168px!important;
  display:grid!important;
  grid-template-columns:170px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:2px 14px 10px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-wrap{
  width:170px!important;
  min-width:170px!important;
  display:grid!important;
  place-items:center!important;
  flex:none!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut{
  width:142px!important;
  height:142px!important;
  min-width:142px!important;
  min-height:142px!important;
  border-radius:50%!important;
  position:relative!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut:after{
  content:""!important;
  position:absolute!important;
  inset:29px!important;
  background:#fff!important;
  border-radius:50%!important;
  display:block!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-center{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  display:grid!important;
  place-content:center!important;
  text-align:center!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-center strong{
  font-size:21px!important;
  line-height:23px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-center span{
  font-size:9px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .distribution-legend{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  font-size:10px!important;
}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .dist-row{
  display:grid!important;
  grid-template-columns:9px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:7px!important;
}

/* ALL ROLES: top-right weather/date visual contract from approved mockup. */
body.r4-shell.auth-authenticated .topbar-right,
body.r4-shell.auth-authenticated .r4x-top-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:14px!important;
  min-width:max-content!important;
}

body.r4-shell.auth-authenticated .r4-weather,
body.r4-shell.auth-authenticated .r4x-weather{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:34px!important;
  padding:0 14px!important;
  margin:0!important;
  border-left:1px solid #dfe7f1!important;
  border-right:1px solid #dfe7f1!important;
  color:#0b245f!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}

body.r4-shell.auth-authenticated .r4-weather>span,
body.r4-shell.auth-authenticated .r4x-weather>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:28px!important;
  height:28px!important;
  font-size:27px!important;
  line-height:1!important;
  color:#ffb400!important;
}

body.r4-shell.auth-authenticated .r4-weather>div,
body.r4-shell.auth-authenticated .r4x-weather>div{
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  gap:0!important;
  line-height:1.05!important;
}

body.r4-shell.auth-authenticated .r4-weather strong,
body.r4-shell.auth-authenticated .r4x-weather strong{
  display:block!important;
  color:#0b245f!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:15px!important;
}

body.r4-shell.auth-authenticated .r4-weather small,
body.r4-shell.auth-authenticated .r4x-weather small{
  display:block!important;
  color:#4864b3!important;
  font-size:9px!important;
  font-weight:500!important;
  line-height:11px!important;
}

body.r4-shell.auth-authenticated #currentDate{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  position:static!important;
  min-width:max-content!important;
  margin:0!important;
  padding:0!important;
  color:#4864b3!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:18px!important;
  white-space:nowrap!important;
}

body.r4-shell.auth-authenticated #currentDate::before{
  content:""!important;
  display:inline-block!important;
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:17px 17px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234864b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 10h18'/%3E%3C/svg%3E")!important;
}

body.r4-shell.auth-authenticated .r4x-divider{
  width:1px!important;
  height:30px!important;
  background:#dfe7f1!important;
  flex:0 0 1px!important;
}

@media(max-width:1200px){
  body.r4-shell.auth-authenticated .topbar-right,
  body.r4-shell.auth-authenticated .r4x-top-actions{gap:9px!important}
  body.r4-shell.auth-authenticated .r4-weather,
  body.r4-shell.auth-authenticated .r4x-weather{padding:0 9px!important}
  body.r4-shell.auth-authenticated #currentDate{font-size:11px!important}
}

/* AGROLOGIX R4 - R41A COMMON TOPBAR FINAL CONTRACT */
body.r4-shell.auth-authenticated .topbar-right,
body.r4-shell.auth-authenticated .r4x-top-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  min-width:max-content!important;
  height:100%!important;
}
body.r4-shell.auth-authenticated .r4-weather,
body.r4-shell.auth-authenticated .r4x-weather{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:88px!important;
  min-height:34px!important;
  padding:0 12px!important;
  border-left:1px solid #dfe7f1!important;
  border-right:1px solid #dfe7f1!important;
  box-sizing:border-box!important;
}
body.r4-shell.auth-authenticated .r4-weather>span,
body.r4-shell.auth-authenticated .r4x-weather>span{
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:25px!important;
  line-height:1!important;
}
body.r4-shell.auth-authenticated .r4-weather>div,
body.r4-shell.auth-authenticated .r4x-weather>div{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:0!important;
}
body.r4-shell.auth-authenticated .r4-weather strong,
body.r4-shell.auth-authenticated .r4x-weather strong{
  display:block!important;
  font-size:13px!important;
  line-height:14px!important;
  font-weight:700!important;
  color:#0b245f!important;
}
body.r4-shell.auth-authenticated .r4-weather small,
body.r4-shell.auth-authenticated .r4x-weather small{
  display:block!important;
  font-size:8px!important;
  line-height:10px!important;
  font-weight:500!important;
  color:#4864b3!important;
  white-space:nowrap!important;
}
body.r4-shell.auth-authenticated #currentDate{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:max-content!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  color:#4864b3!important;
  font-size:11px!important;
  line-height:17px!important;
  font-weight:500!important;
  white-space:nowrap!important;
  position:static!important;
}
body.r4-shell.auth-authenticated #currentDate::before{
  content:""!important;
  display:inline-block!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:16px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234864b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 10h18'/%3E%3C/svg%3E")!important;
}

/* AGROLOGIX R4 - R42 ADMIN FILTER RESET + DONUT PARITY */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body{min-height:168px!important;display:grid!important;grid-template-columns:46% 54%!important;align-items:center!important;padding:2px 14px 10px!important;gap:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-wrap{display:grid!important;place-items:center!important;width:auto!important;min-width:0!important;flex:none!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut{width:126px!important;height:126px!important;min-width:126px!important;min-height:126px!important;border-radius:50%!important;position:relative!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut:after{content:""!important;position:absolute!important;inset:29px!important;background:#fff!important;border-radius:50%!important;display:block!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-center{position:absolute!important;inset:0!important;z-index:2!important;display:grid!important;place-content:center!important;text-align:center!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-center strong{font-size:18px!important;line-height:20px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .donut-center span{font-size:8px!important;line-height:10px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .distribution-legend{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:7px!important;min-width:0!important;width:100%!important;font-size:9.5px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .dist-row{display:grid!important;grid-template-columns:9px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;margin:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] .r4-distribution-body .dist-color{width:9px!important;height:9px!important;border-radius:50%!important}

/* AGROLOGIX R4 - R43 LOTES APPROVED THREE ROLE */
body.r4-shell.auth-authenticated[data-r4-view="lots"] #dashboardContent,
body.r4-shell.auth-authenticated[data-r4-view="lots"] #animalsContent,
body.r4-shell.auth-authenticated[data-r4-view="lots"] #screen09Content,
body.r4-shell.auth-authenticated[data-r4-view="lots"] #operationsContent{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.r4-shell.auth-authenticated[data-r4-view="lots"] #r3bContent{display:block!important;visibility:visible!important;position:relative!important;inset:auto!important;z-index:1!important;background:#f5f8fb!important}
body.r4-shell.auth-authenticated #r3bContent.r4-lots-host{padding:0!important;overflow:auto!important;height:calc(100vh - 64px)!important}
.r4-lots-page{padding:14px 18px 18px!important;color:#061b5a!important;font-family:Arial,Helvetica,sans-serif!important;background:#f5f8fb!important;min-height:100%!important;box-sizing:border-box!important}
.r4-lots-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:0 0 14px!important}
.r4-lots-heading h1{font-size:30px!important;line-height:34px!important;margin:0!important;color:#061b5a!important;font-weight:800!important}
.r4-lots-heading p{font-size:16px!important;line-height:20px!important;margin:4px 0 0!important;color:#4d67be!important}
.r4-lots-date-controls,.r4-lots-global-scope{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important}
.r4-lots-date-box,.r4-lots-period,.r4-lots-global-scope label{height:54px!important;min-width:210px!important;background:#fff!important;border:1px solid #d7e0ed!important;border-radius:9px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:0 14px!important;box-sizing:border-box!important}
.r4-lots-global-scope label{min-width:188px!important}.r4-lots-date-box>span,.r4-lots-period>span,.r4-lots-global-scope label>span{color:#0a8d58!important;font-size:17px!important}
.r4-lots-date-box strong{display:block!important;font-size:12px!important}.r4-lots-date-box small{display:block!important;color:#4e69bd!important;font-size:10px!important}
.r4-lots-period select,.r4-lots-global-scope select{border:0!important;background:transparent!important;color:#061b5a!important;font-weight:700!important;width:100%!important;outline:0!important}
.r4-lots-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
.r4-lots-kpi{height:98px!important;border:1px solid #dae3ee!important;border-radius:9px!important;background:#fff!important;display:grid!important;grid-template-columns:52px minmax(0,1fr) 52px!important;align-items:center!important;padding:10px 12px!important;box-sizing:border-box!important;overflow:hidden!important}
.r4-lots-kpi-icon{width:48px!important;height:48px!important;border-radius:50%!important;background:#dff7e9!important;color:#048b50!important;display:grid!important;place-items:center!important;font-size:23px!important;font-weight:800!important}
.r4-lots-kpi small{display:block!important;font-size:11px!important;font-weight:700!important}.r4-lots-kpi strong{display:block!important;font-size:24px!important;line-height:27px!important;margin-top:2px!important}.r4-lots-kpi em{display:block!important;font-style:normal!important;font-size:9px!important;font-weight:700!important;color:#05ae60!important;margin-top:4px!important}
.r4-lots-kpi>i{width:48px!important;height:26px!important;align-self:end!important;margin-bottom:7px!important;background:linear-gradient(150deg,transparent 15%,#11c76f 16% 20%,transparent 21% 36%,#11c76f 37% 41%,transparent 42% 58%,#11c76f 59% 63%,transparent 64%)!important}
.r4-lots-list-card,.r4-lots-panel{background:#fff!important;border:1px solid #dae3ee!important;border-radius:9px!important}
.r4-lots-list-card{overflow:hidden!important;margin-bottom:12px!important}.r4-lots-list-card>header{height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px!important}
.r4-lots-list-card h2,.r4-lots-panel h3{margin:0!important;font-weight:800!important}.r4-lots-list-card h2{font-size:18px!important}.r4-lots-list-card h2 span,.r4-lots-panel h3 span{color:#0a9658!important;margin-right:7px!important}
.r4-lots-new{height:37px!important;border:0!important;border-radius:7px!important;background:#078a4d!important;color:#fff!important;padding:0 18px!important;font-weight:700!important}
.r4-lots-toolbar{display:grid!important;grid-template-columns:1.35fr 1fr 1fr 1.1fr!important;gap:12px!important;padding:0 12px 10px!important}.r4-lots-toolbar label{height:44px!important;border:1px solid #dbe4ef!important;border-radius:7px!important;display:flex!important;align-items:center!important;position:relative!important;background:#fff!important}.r4-lots-toolbar label:not(.search){padding-top:11px!important}.r4-lots-toolbar label small{position:absolute!important;left:12px!important;top:2px!important;font-size:9px!important;font-weight:700!important}.r4-lots-toolbar input,.r4-lots-toolbar select{width:100%!important;border:0!important;background:transparent!important;outline:0!important;padding:0 12px!important;font-size:12px!important}.r4-lots-toolbar .search span{padding-left:12px!important;color:#0b4da5!important;font-size:18px!important}.r4-lots-toolbar .search input{padding-left:8px!important}
.r4-lots-table-wrap{overflow:auto!important}.r4-lots-table-wrap table{width:100%!important;border-collapse:collapse!important;font-size:10px!important}.r4-lots-table-wrap thead{background:#eef3f7!important}.r4-lots-table-wrap th{height:30px!important;text-align:left!important;color:#103273!important;font-size:9px!important;padding:0 8px!important;white-space:nowrap!important}.r4-lots-table-wrap td{height:31px!important;border-bottom:1px solid #e5ebf1!important;padding:0 8px!important;color:#244b9c!important;white-space:nowrap!important}.r4-lots-table-wrap td:first-child{display:flex!important;align-items:center!important;gap:7px!important}.r4-lot-thumb{width:32px!important;height:22px!important;border-radius:3px!important;background:linear-gradient(#85b675 0 45%,#4d733d 46% 58%,#c4a36b 59%)!important;display:grid!important;place-items:center!important}
.r4-lots-status{display:inline-flex!important;min-width:88px!important;justify-content:center!important;align-items:center!important;height:23px!important;border-radius:5px!important;padding:0 7px!important;font-size:9px!important}.r4-lots-status.ok{background:#c9f5df!important}.r4-lots-status.danger{background:#ffd4d3!important;color:#d11717!important}.r4-lots-status.warn{background:#ffe7a8!important}.r4-lots-status.info{background:#cfe8ff!important;color:#0062a8!important}.r4-lots-status.neutral{background:#e8edf3!important;color:#53677f!important}
.r4-lots-actions{min-width:88px!important}.r4-lots-icon-btn{border:0!important;background:transparent!important;color:#084b9e!important;font-size:15px!important;padding:2px 6px!important}
.r4-lots-list-card>footer{height:40px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px!important;font-size:10px!important;color:#2e58a9!important}.r4-lots-pages{display:flex!important;align-items:center!important;gap:5px!important}.r4-lots-pages button{width:25px!important;height:25px!important;border:1px solid #dbe4ef!important;background:#fff!important;border-radius:5px!important;color:#1750a1!important}.r4-lots-pages button.active{background:#c9f5df!important;color:#078a4d!important;font-weight:800!important}.r4-lots-pages small{padding-left:8px!important;font-size:8px!important;line-height:9px!important}
.r4-lots-analytics{display:grid!important;grid-template-columns:.95fr .85fr 1.3fr!important;gap:12px!important}.r4-lots-panel{height:184px!important;padding:10px 12px!important;overflow:hidden!important}.r4-lots-panel h3{font-size:14px!important;height:26px!important}.r4-lots-donut-body{display:grid!important;grid-template-columns:46% 54%!important;align-items:center!important;height:140px!important}.r4-lots-donut{width:120px!important;height:120px!important;border-radius:50%!important;position:relative!important;margin:auto!important}.r4-lots-donut:after{content:""!important;position:absolute!important;inset:29px!important;background:#fff!important;border-radius:50%!important}.r4-lots-donut>div{position:absolute!important;inset:0!important;z-index:2!important;display:grid!important;place-content:center!important;text-align:center!important}.r4-lots-donut strong{font-size:22px!important}.r4-lots-donut small{font-size:10px!important}.r4-lots-legend{display:flex!important;flex-direction:column!important;gap:7px!important}.r4-lots-legend>div{display:grid!important;grid-template-columns:8px minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;font-size:9px!important}.r4-lots-legend i{width:8px!important;height:8px!important;border-radius:50%!important}.r4-lots-legend b{font-weight:500!important;color:#2a53a0!important}
.r4-lots-bars{display:flex!important;flex-direction:column!important;gap:6px!important}.r4-lots-bars>div{display:grid!important;grid-template-columns:105px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;font-size:9px!important}.r4-lots-bars>div>span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.r4-lots-bars>div>i{height:11px!important;border-radius:5px!important;background:#edf1f4!important;overflow:hidden!important}.r4-lots-bars>div>i>b{display:block!important;height:100%!important;border-radius:5px!important;background:linear-gradient(90deg,#20cf7a,#06a85d)!important}
.r4-lots-trend{height:140px!important}.r4-lots-trend svg{width:100%!important;height:110px!important;background:repeating-linear-gradient(to bottom,transparent 0 25px,#e7edf3 26px 27px)!important}.r4-lots-trend-legend{display:flex!important;gap:10px!important;flex-wrap:wrap!important;font-size:8px!important;margin-top:4px!important}.r4-lots-trend-legend span{display:flex!important;align-items:center!important;gap:4px!important}.r4-lots-trend-legend i{width:7px!important;height:7px!important;border-radius:50%!important}
.r4-lots-loading,.r4-lots-empty-state,.r4-lots-empty{color:#7181a0!important;text-align:center!important;font-size:10px!important}.r4-lots-empty-state{height:120px!important;display:grid!important;place-content:center!important}.r4-lots-empty-state strong,.r4-lots-empty-state span{display:block!important}
body.r4-shell.auth-authenticated[data-r4-view="lots"] .r4x-nav [data-route="dashboard"]{background:transparent!important}body.r4-shell.auth-authenticated[data-r4-view="lots"] .r4x-nav [data-route="lots"]{background:#08a85d!important;border-radius:8px!important;color:#fff!important}
@media(max-width:1200px){.r4-lots-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.r4-lots-analytics{grid-template-columns:1fr!important}.r4-lots-panel{height:auto!important;min-height:184px!important}.r4-lots-heading{align-items:flex-start!important;flex-direction:column!important}.r4-lots-date-controls,.r4-lots-global-scope{width:100%!important}.r4-lots-date-box,.r4-lots-period,.r4-lots-global-scope label{min-width:0!important;flex:1!important}}

/* AGROLOGIX R4 - R43A LOTES MOCKUP PARITY */
.r4-lots-heading-tools{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:8px!important}
.r4-lots-global-scope{display:grid!important;grid-template-columns:repeat(3,190px)!important;gap:8px!important}
.r4-lots-global-scope label{min-width:0!important;width:190px!important;height:46px!important}
.r4-lots-date-controls{gap:8px!important}.r4-lots-date-box,.r4-lots-period{height:46px!important;min-width:190px!important}
.r4-lot-thumb{background-image:url("/assets/branding/agrologix_login_hero_brahman_r5.png")!important;background-size:cover!important;background-position:center!important;color:transparent!important;border:1px solid #708b64!important}
body.r4-shell.auth-authenticated[data-r4-view="lots"] .r4x-nav [data-route]{background:transparent!important}
body.r4-shell.auth-authenticated[data-r4-view="lots"] .r4x-nav [data-route="lots"]{background:#08a85d!important;color:#fff!important}
@media(max-width:1450px){
  .r4-lots-global-scope{grid-template-columns:repeat(3,160px)!important}
  .r4-lots-global-scope label{width:160px!important}
}

/* AGROLOGIX R4 - R46 ANIMALES APPROVED THREE ROLE */
body.r4-shell.auth-authenticated[data-r4-view="animals"] #dashboardContent,body.r4-shell.auth-authenticated[data-r4-view="animals"] #animalsContent,body.r4-shell.auth-authenticated[data-r4-view="animals"] #screen09Content,body.r4-shell.auth-authenticated[data-r4-view="animals"] #operationsContent{display:none!important;visibility:hidden!important;pointer-events:none!important}body.r4-shell.auth-authenticated[data-r4-view="animals"] #r3bContent{display:block!important;visibility:visible!important;position:relative!important;background:#f5f8fb!important}#r3bContent.r4-animals-host{padding:0!important;overflow:auto!important;height:calc(100vh - 64px)!important}.r4-animals-page{padding:14px 18px 18px!important;background:#f5f8fb!important;color:#061b5a!important;min-height:100%!important;font-family:Arial,Helvetica,sans-serif!important;box-sizing:border-box!important}.r4-animals-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin-bottom:14px!important}.r4-animals-heading h1{font-size:30px!important;line-height:34px!important;margin:0!important;font-weight:800!important}.r4-animals-heading p{font-size:16px!important;color:#4d67be!important;margin:4px 0 0!important}.r4-animals-global-scope{display:grid!important;grid-template-columns:repeat(3,190px)!important;gap:8px!important}.r4-animals-global-scope label{height:46px!important;border:1px solid #d7e0ed!important;border-radius:9px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:9px!important;padding:0 13px!important;box-sizing:border-box!important}.r4-animals-global-scope span{color:#078a4d!important}.r4-animals-global-scope select{width:100%!important;border:0!important;background:transparent!important;color:#061b5a!important;font-weight:700!important;outline:0!important}.r4-animals-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}.r4-animals-kpis article{height:98px!important;background:#fff!important;border:1px solid #dae3ee!important;border-radius:9px!important;display:grid!important;grid-template-columns:52px minmax(0,1fr) 48px!important;align-items:center!important;padding:10px 12px!important}.r4-animals-kpi-icon{width:48px!important;height:48px!important;border-radius:50%!important;background:#dff7e9!important;color:#078a4d!important;display:grid!important;place-items:center!important;font-size:22px!important;font-weight:800!important}.r4-animals-kpis small{display:block!important;font-size:11px!important;font-weight:700!important}.r4-animals-kpis strong{display:block!important;font-size:24px!important;line-height:27px!important}.r4-animals-kpis em{display:block!important;font-style:normal!important;color:#09aa60!important;font-size:9px!important;font-weight:700!important;margin-top:4px!important}.r4-animals-kpis article>i{width:46px!important;height:25px!important;align-self:end!important;background:linear-gradient(150deg,transparent 15%,#11c76f 16% 20%,transparent 21% 36%,#11c76f 37% 41%,transparent 42% 58%,#11c76f 59% 63%,transparent 64%)!important}.r4-animals-list-card,.r4-animals-panel{background:#fff!important;border:1px solid #dae3ee!important;border-radius:9px!important}.r4-animals-list-card{overflow:hidden!important;margin-bottom:12px!important}.r4-animals-list-card>header{height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px!important}.r4-animals-list-card h2{font-size:18px!important;margin:0!important}.r4-animals-new{height:37px!important;border:0!important;border-radius:7px!important;background:#078a4d!important;color:#fff!important;padding:0 18px!important;font-weight:700!important}.r4-animals-toolbar{display:grid!important;grid-template-columns:1.35fr repeat(5,1fr)!important;gap:10px!important;padding:0 12px 10px!important}.r4-animals-toolbar label{height:44px!important;border:1px solid #dbe4ef!important;border-radius:7px!important;display:flex!important;align-items:center!important;position:relative!important;background:#fff!important}.r4-animals-toolbar label:not(.search){padding-top:11px!important}.r4-animals-toolbar small{position:absolute!important;top:2px!important;left:12px!important;font-size:9px!important;font-weight:700!important}.r4-animals-toolbar input,.r4-animals-toolbar select{width:100%!important;border:0!important;background:transparent!important;outline:0!important;padding:0 12px!important;font-size:12px!important}.r4-animals-table-wrap{overflow:auto!important}.r4-animals-table-wrap table{width:100%!important;border-collapse:collapse!important;font-size:10px!important}.r4-animals-table-wrap thead{background:#eef3f7!important}.r4-animals-table-wrap th{height:30px!important;text-align:left!important;color:#103273!important;font-size:9px!important;padding:0 8px!important;white-space:nowrap!important}.r4-animals-table-wrap td{height:31px!important;border-bottom:1px solid #e5ebf1!important;padding:0 8px!important;color:#244b9c!important;white-space:nowrap!important}.r4-animals-table-wrap td:first-child{display:flex!important;align-items:center!important;gap:7px!important}.r4-animals-table-wrap td:first-child img{width:32px!important;height:22px!important;object-fit:cover!important;border-radius:3px!important}.r4-animals-status{display:inline-flex!important;min-width:92px!important;justify-content:center!important;align-items:center!important;height:23px!important;border-radius:5px!important;font-size:9px!important}.r4-animals-status.ok{background:#c9f5df!important}.r4-animals-status.warn{background:#ffe7a8!important}.r4-animals-status.info{background:#cfe8ff!important}.r4-animals-status.purple{background:#e5dbff!important}.r4-animals-status.neutral{background:#e8edf3!important}.r4-animals-actions button{border:0!important;background:transparent!important;color:#084b9e!important;font-size:15px!important}.r4-animals-list-card>footer{height:40px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px!important;font-size:10px!important}.r4-animals-pages{display:flex!important;align-items:center!important;gap:5px!important}.r4-animals-pages button{width:25px!important;height:25px!important;border:1px solid #dbe4ef!important;background:#fff!important;border-radius:5px!important}.r4-animals-pages button.active{background:#c9f5df!important;color:#078a4d!important}.r4-animals-analytics{display:grid!important;grid-template-columns:.95fr .85fr 1.3fr!important;gap:12px!important}.r4-animals-panel{height:184px!important;padding:10px 12px!important;overflow:hidden!important}.r4-animals-panel h3{font-size:14px!important;margin:0 0 8px!important}.r4-animals-donut-body{display:grid!important;grid-template-columns:46% 54%!important;align-items:center!important;height:140px!important}.r4-animals-donut{width:120px!important;height:120px!important;border-radius:50%!important;position:relative!important;margin:auto!important}.r4-animals-donut:after{content:""!important;position:absolute!important;inset:29px!important;background:#fff!important;border-radius:50%!important}.r4-animals-donut>div{position:absolute!important;inset:0!important;z-index:2!important;display:grid!important;place-content:center!important;text-align:center!important}.r4-animals-legend{display:flex!important;flex-direction:column!important;gap:7px!important}.r4-animals-legend>div{display:grid!important;grid-template-columns:8px minmax(0,1fr) auto!important;gap:6px!important;font-size:9px!important}.r4-animals-legend i{width:8px!important;height:8px!important;border-radius:50%!important}.r4-animals-bars{display:flex!important;flex-direction:column!important;gap:6px!important}.r4-animals-bars>div{display:grid!important;grid-template-columns:105px minmax(0,1fr) auto!important;gap:7px!important;font-size:9px!important}.r4-animals-bars>div>i{height:11px!important;background:#edf1f4!important;border-radius:5px!important;overflow:hidden!important}.r4-animals-bars>div>i>b{display:block!important;height:100%!important;background:#18bd6a!important}.r4-animals-trend svg{width:100%!important;height:110px!important;background:repeating-linear-gradient(to bottom,transparent 0 25px,#e7edf3 26px 27px)!important}.r4-animals-trend-legend{display:flex!important;gap:10px!important;flex-wrap:wrap!important;font-size:8px!important}.r4-animals-trend-legend i{display:inline-block!important;width:7px!important;height:7px!important;border-radius:50%!important;margin-right:4px!important}.r4-animals-empty,.r4-animals-empty-state,.r4-animals-loading{text-align:center!important;color:#7181a0!important;font-size:10px!important}.r4-animals-empty-state{height:120px!important;display:grid!important;place-content:center!important}body.r4-shell.auth-authenticated[data-r4-view="animals"] .r4x-nav [data-r4x-route]{background:transparent!important}body.r4-shell.auth-authenticated[data-r4-view="animals"] .r4x-nav [data-r4x-route="animals"]{background:#08a85d!important;color:#fff!important}@media(max-width:1450px){.r4-animals-global-scope{grid-template-columns:repeat(3,160px)!important}.r4-animals-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.r4-animals-toolbar{grid-template-columns:1.2fr repeat(3,1fr)!important}}

/* AGROLOGIX R4 - R46A ANIMALS RUNTIME RECOVERY */
.r4-animals-runtime-loading,.r4-animals-runtime-error{
  min-height:240px!important;
  margin:18px!important;
  border:1px solid #dbe4ef!important;
  border-radius:10px!important;
  background:#fff!important;
  display:grid!important;
  place-content:center!important;
  text-align:center!important;
  gap:7px!important;
  color:#061b5a!important;
}
.r4-animals-runtime-loading strong,.r4-animals-runtime-error strong{font-size:22px!important}
.r4-animals-runtime-loading span{font-size:12px!important;color:#5870b7!important}
.r4-animals-runtime-error{border-color:#f2c9c9!important}
.r4-animals-runtime-error span{font-size:12px!important;color:#a02c2c!important;max-width:720px!important;white-space:normal!important}

/* AGROLOGIX R4 - R47 ANIMALES KPI ICONS + VIEWPORT ANALYTICS */
/* KPI icons now follow the approved role-specific mockups. */
.r4-animals-kpi-icon svg{width:30px!important;height:30px!important;display:block!important}
.r4-animals-kpi-icon.amber{background:#fff0bf!important;color:#e6a400!important}

/* Use the remaining viewport instead of leaving a large blank band below the 3 analytics cards. */
#r3bContent.r4-animals-host{overflow:hidden!important}
.r4-animals-page{
  height:100%!important;
  min-height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.r4-animals-heading,.r4-animals-kpis,.r4-animals-list-card{flex:0 0 auto!important}
.r4-animals-analytics{
  flex:1 1 auto!important;
  min-height:210px!important;
  display:grid!important;
  align-items:stretch!important;
}
.r4-animals-panel{
  height:auto!important;
  min-height:210px!important;
  display:flex!important;
  flex-direction:column!important;
}
.r4-animals-panel h3{flex:0 0 auto!important}
.r4-animals-donut-body{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:165px!important;
}
.r4-animals-donut{
  width:142px!important;
  height:142px!important;
}
.r4-animals-donut:after{inset:34px!important}
.r4-animals-bars{
  flex:1 1 auto!important;
  justify-content:space-evenly!important;
  min-height:165px!important;
}
.r4-animals-bars>div{min-height:16px!important}
.r4-animals-trend{
  flex:1 1 auto!important;
  min-height:165px!important;
  display:flex!important;
  flex-direction:column!important;
}
.r4-animals-trend svg{
  flex:1 1 auto!important;
  min-height:145px!important;
  height:auto!important;
}
.r4-animals-trend-legend{flex:0 0 auto!important;margin-top:6px!important}
@media(max-height:820px){
  .r4-animals-analytics{min-height:175px!important}
  .r4-animals-panel{min-height:175px!important}
  .r4-animals-donut{width:120px!important;height:120px!important}
  .r4-animals-donut:after{inset:29px!important}
  .r4-animals-donut-body,.r4-animals-bars,.r4-animals-trend{min-height:135px!important}
  .r4-animals-trend svg{min-height:115px!important}
}

/* AGROLOGIX R4 - R48 EXACT APPROVED MOCKUP KPI ASSETS */
/*
   These are not substitutes or redraws.
   Each image is a direct crop from the approved 1659x948 role mockup.
*/
.r4-animals-kpi-icon.exact{
  width:50px!important;
  height:50px!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  overflow:visible!important;
  display:grid!important;
  place-items:center!important;
}
.r4-animals-kpi-icon.exact img{
  display:block!important;
  width:50px!important;
  height:50px!important;
  object-fit:contain!important;
  object-position:center!important;
  image-rendering:auto!important;
  border:0!important;
  border-radius:0!important;
  max-width:none!important;
  max-height:none!important;
}
.r4-animals-kpis article{
  grid-template-columns:54px minmax(0,1fr) 48px!important;
}

/* AGROLOGIX R4 - R48A KPI ICON CROP + SPACING FIX */
/* Exact mockup icon circles only. No card separators / neighboring text in the image asset. */
.r4-animals-kpi-icon.exact{
  width:52px!important;
  height:52px!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  flex:none!important;
}
.r4-animals-kpi-icon.exact img{
  width:52px!important;
  height:52px!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  max-width:none!important;
  max-height:none!important;
}
.r4-animals-kpis article{
  grid-template-columns:58px minmax(0,1fr) 48px!important;
  column-gap:8px!important;
}
.r4-animals-kpis article>div{
  min-width:0!important;
  padding-left:0!important;
  position:relative!important;
  z-index:2!important;
}
.r4-animals-kpis article>div small,
.r4-animals-kpis article>div strong,
.r4-animals-kpis article>div em{
  position:relative!important;
  z-index:2!important;
}

/* AGROLOGIX R4 - R49 PESAJES APPROVED THREE ROLE */
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #dashboardContent,body.r4-shell.auth-authenticated[data-r4-view="weighings"] #animalsContent,body.r4-shell.auth-authenticated[data-r4-view="weighings"] #screen09Content,body.r4-shell.auth-authenticated[data-r4-view="weighings"] #operationsContent{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent{display:block!important;visibility:visible!important;position:relative!important;inset:auto!important;z-index:1!important;background:#f5f8fb!important}
body.r4-shell.auth-authenticated #r3bContent.r4-weighings-host{padding:0!important;overflow:hidden!important;height:calc(100vh - 64px)!important}
.r4-weighings-page{height:100%!important;padding:14px 18px 16px!important;background:#f5f8fb!important;color:#061b5a!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;font-family:Arial,Helvetica,sans-serif!important}
.r4-weigh-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:12px!important;flex:0 0 auto!important}.r4-weigh-heading h1{font-size:30px!important;line-height:34px!important;margin:0!important;font-weight:800!important}.r4-weigh-heading p{font-size:16px!important;color:#4d67be!important;margin:3px 0 0!important}
.r4-weighings-scope{display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-end!important}.r4-weighings-scope label,.r4-weigh-date{height:44px!important;border:1px solid #d7e0ed!important;border-radius:8px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0 11px!important;box-sizing:border-box!important}.r4-weighings-scope label{min-width:168px!important}.r4-weigh-date{min-width:176px!important}.r4-weighings-scope span,.r4-weigh-date span{color:#0a8d58!important}.r4-weighings-scope select{border:0!important;background:transparent!important;color:#061b5a!important;font-weight:700!important;outline:0!important;width:100%!important}.r4-weigh-date strong{font-size:11px!important}
.r4-weigh-kpis{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important;flex:0 0 auto!important}.r4-weigh-kpis article{height:98px!important;background:#fff!important;border:1px solid #dae3ee!important;border-radius:9px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) 48px!important;column-gap:7px!important;align-items:center!important;padding:10px 12px!important;box-sizing:border-box!important}.r4-weigh-kpi-icon.exact{width:52px!important;height:52px!important;display:grid!important;place-items:center!important}.r4-weigh-kpi-icon.exact img{width:52px!important;height:52px!important;object-fit:contain!important;display:block!important}.r4-weigh-kpis small{display:block!important;font-size:11px!important;font-weight:700!important}.r4-weigh-kpis strong{display:block!important;font-size:24px!important;line-height:27px!important}.r4-weigh-kpis em{display:block!important;font-style:normal!important;color:#09aa60!important;font-size:9px!important;font-weight:700!important;margin-top:4px!important}.r4-weigh-kpis article>i{width:46px!important;height:25px!important;align-self:end!important;margin-bottom:6px!important;background:linear-gradient(150deg,transparent 15%,#11c76f 16% 20%,transparent 21% 36%,#11c76f 37% 41%,transparent 42% 58%,#11c76f 59% 63%,transparent 64%)!important}
.r4-weigh-list,.r4-weigh-panel{background:#fff!important;border:1px solid #dae3ee!important;border-radius:9px!important}.r4-weigh-list{overflow:hidden!important;margin-bottom:12px!important;flex:0 0 auto!important}.r4-weigh-list>header{height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px!important}.r4-weigh-list h2,.r4-weigh-panel h3{margin:0!important;font-weight:800!important}.r4-weigh-list h2{font-size:18px!important}.r4-weigh-list h2 span,.r4-weigh-panel h3 span{color:#078a4d!important;margin-right:7px!important}.r4-weigh-head-actions{display:flex!important;gap:8px!important}.r4-weigh-head-actions button{height:36px!important;border-radius:7px!important;padding:0 16px!important;font-weight:700!important}.r4-weigh-head-actions .primary{background:#078a4d!important;border:0!important;color:#fff!important}.r4-weigh-head-actions .secondary{background:#fff!important;border:1px solid #cdd9e7!important;color:#075d3a!important}
.r4-weigh-toolbar{display:grid!important;grid-template-columns:1.45fr repeat(3,1fr)!important;gap:10px!important;padding:0 12px 10px!important}.r4-weigh-toolbar label{height:42px!important;border:1px solid #dbe4ef!important;border-radius:7px!important;background:#fff!important;display:flex!important;align-items:center!important}.r4-weigh-toolbar select,.r4-weigh-toolbar input{border:0!important;background:transparent!important;outline:0!important;width:100%!important;padding:0 11px!important;font-size:11px!important;color:#061b5a!important}.r4-weigh-toolbar .search span{padding-left:11px!important;color:#0b4da5!important}.r4-weigh-toolbar .search input{padding-left:7px!important}
.r4-weigh-table-wrap{overflow:auto!important;max-height:285px!important}.r4-weigh-table-wrap table{width:100%!important;border-collapse:collapse!important;font-size:10px!important}.r4-weigh-table-wrap thead{background:#eef3f7!important;position:sticky!important;top:0!important;z-index:2!important}.r4-weigh-table-wrap th{height:30px!important;text-align:left!important;color:#103273!important;font-size:9px!important;padding:0 8px!important;white-space:nowrap!important}.r4-weigh-table-wrap td{height:31px!important;border-bottom:1px solid #e5ebf1!important;padding:0 8px!important;color:#244b9c!important;white-space:nowrap!important}.r4-weigh-table-wrap td a{color:#075ad8!important;text-decoration:underline!important}.r4-weigh-status{display:inline-flex!important;min-width:88px!important;height:22px!important;align-items:center!important;justify-content:center!important;border-radius:12px!important;font-size:9px!important}.r4-weigh-status.ok{background:#c9f5df!important;color:#077d49!important}.r4-weigh-status.warn{background:#ffe8ae!important;color:#bd7a00!important}.r4-weigh-status.info{background:#cfe8ff!important;color:#0062a8!important}.r4-weigh-status.danger{background:#ffd8d8!important;color:#cf2525!important}.r4-weigh-actions button{border:0!important;background:transparent!important;color:#084b9e!important;font-size:14px!important;padding:2px 5px!important}
.r4-weigh-list>footer{height:38px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px!important;font-size:10px!important;color:#2e58a9!important}.r4-weigh-pages{display:flex!important;align-items:center!important;gap:5px!important}.r4-weigh-pages button{width:25px!important;height:25px!important;border:1px solid #dbe4ef!important;background:#fff!important;border-radius:5px!important;color:#1750a1!important}.r4-weigh-pages button.active{background:#c9f5df!important;color:#078a4d!important;font-weight:800!important}.r4-weigh-pages small{padding-left:8px!important;font-size:8px!important;line-height:9px!important}
.r4-weigh-analytics{display:grid!important;grid-template-columns:1.2fr .9fr .95fr!important;gap:12px!important;flex:1 1 auto!important;min-height:210px!important}.r4-weigh-panel{min-height:210px!important;padding:10px 12px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.r4-weigh-panel h3{font-size:14px!important;height:26px!important;flex:0 0 auto!important}.r4-weigh-panel>a{font-size:9px!important;color:#075ad8!important;margin-top:auto!important}
.r4-weigh-trend{flex:1 1 auto!important;min-height:150px!important;display:flex!important;flex-direction:column!important}.r4-weigh-trend svg{width:100%!important;flex:1 1 auto!important;min-height:125px!important;background:repeating-linear-gradient(to bottom,transparent 0 28px,#e8edf3 29px 30px)!important}.r4-weigh-axis{display:flex!important;justify-content:space-between!important;font-size:8px!important;color:#536fae!important}.r4-weigh-bars{flex:1 1 auto!important;display:flex!important;flex-direction:column!important;justify-content:space-evenly!important;gap:5px!important}.r4-weigh-bars>div{display:grid!important;grid-template-columns:105px minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;font-size:9px!important}.r4-weigh-bars span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.r4-weigh-bars i{height:12px!important;background:#edf1f4!important;border-radius:5px!important;overflow:hidden!important}.r4-weigh-bars i b{display:block!important;height:100%!important;background:linear-gradient(90deg,#16c76d,#079b55)!important;border-radius:5px!important}
.r4-weigh-donut-body{flex:1 1 auto!important;display:grid!important;grid-template-columns:48% 52%!important;align-items:center!important}.r4-weigh-donut{width:142px!important;height:142px!important;border-radius:50%!important;position:relative!important;margin:auto!important}.r4-weigh-donut:after{content:""!important;position:absolute!important;inset:34px!important;background:#fff!important;border-radius:50%!important}.r4-weigh-donut>div{position:absolute!important;inset:0!important;z-index:2!important;display:grid!important;place-content:center!important;text-align:center!important}.r4-weigh-donut strong{font-size:22px!important}.r4-weigh-donut small{font-size:10px!important}.r4-weigh-legend{display:flex!important;flex-direction:column!important;gap:10px!important}.r4-weigh-legend>div{display:grid!important;grid-template-columns:9px minmax(0,1fr) auto!important;gap:6px!important;align-items:center!important;font-size:9px!important}.r4-weigh-legend i{width:9px!important;height:9px!important;border-radius:50%!important}
.r4-weigh-empty{text-align:center!important;color:#7181a0!important;font-size:10px!important;padding:20px!important}.r4-weigh-notice{position:absolute!important;left:18px!important;right:18px!important;bottom:8px!important;background:#fff5d7!important;border:1px solid #f0d28b!important;border-radius:7px!important;padding:8px 12px!important;font-size:10px!important;color:#795500!important}.r4-weighings-runtime-loading{min-height:240px!important;margin:18px!important;background:#fff!important;border:1px solid #dbe4ef!important;border-radius:10px!important;display:grid!important;place-content:center!important;text-align:center!important;gap:6px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] .r4x-nav [data-r4x-route]{background:transparent!important}body.r4-shell.auth-authenticated[data-r4-view="weighings"] .r4x-nav [data-r4x-route="weighings"]{background:#08a85d!important;color:#fff!important}
@media(max-width:1450px){.r4-weighings-scope{flex-wrap:wrap!important}.r4-weighings-scope label{min-width:145px!important}.r4-weigh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.r4-weigh-toolbar{grid-template-columns:1.2fr repeat(2,1fr)!important}.r4-weigh-analytics{grid-template-columns:1fr!important;overflow:auto!important}.r4-weighings-page{overflow:auto!important}}

/* AGROLOGIX R4 - R49A PESAJES INTERACTION + STALE RENDER GUARD */
.r4-weigh-link,.r4-weigh-rowlink{border:0!important;background:transparent!important;color:#075ad8!important;padding:0!important;font:inherit!important;cursor:pointer!important;text-align:left!important}
.r4-weigh-link{font-size:9px!important;margin-top:auto!important}
.r4-weigh-rowlink{text-decoration:underline!important;font-size:10px!important}

/* AGROLOGIX R4 - R49B DIRECT ANIMAL DETAIL + REAL WEIGHING REGISTRATION */
.r4-weigh-modal[hidden]{display:none!important}
.r4-weigh-modal{position:fixed!important;inset:0!important;background:rgba(3,20,45,.36)!important;z-index:9999!important;display:grid!important;place-items:center!important;padding:24px!important}
.r4-weigh-modal-card{position:relative!important;width:min(760px,92vw)!important;max-height:86vh!important;overflow:auto!important;background:#fff!important;border:1px solid #d7e1ed!important;border-radius:14px!important;box-shadow:0 22px 60px rgba(9,31,62,.22)!important;padding:22px!important;color:#061b5a!important}
.r4-weigh-modal-x{position:absolute!important;right:14px!important;top:11px!important;width:32px!important;height:32px!important;border:0!important;background:#f1f5f8!important;border-radius:50%!important;color:#173a75!important;font-size:22px!important;cursor:pointer!important}
.r4-weigh-modal-head small{color:#07985a!important;font-weight:700!important;text-transform:uppercase!important;font-size:10px!important}.r4-weigh-modal-head h2{margin:4px 0!important;font-size:25px!important}.r4-weigh-modal-head p{margin:0 0 18px!important;color:#6075ac!important}
.r4-weigh-detail-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.r4-weigh-detail-grid>div{min-height:70px!important;border:1px solid #dde6ef!important;border-radius:9px!important;padding:11px!important;background:#fbfcfd!important}.r4-weigh-detail-grid small{display:block!important;color:#6075ac!important;font-size:10px!important;margin-bottom:5px!important}.r4-weigh-detail-grid strong{font-size:14px!important;color:#071c61!important}
.r4-weigh-modal-actions{display:flex!important;justify-content:flex-end!important;gap:9px!important;margin-top:18px!important}.r4-weigh-modal-actions button{height:38px!important;border:1px solid #ccd8e5!important;border-radius:7px!important;background:#fff!important;color:#0b356f!important;padding:0 16px!important;font-weight:700!important;cursor:pointer!important}.r4-weigh-modal-actions button.primary{background:#078a4d!important;border-color:#078a4d!important;color:#fff!important}
.r4-weigh-register-form{display:grid!important;grid-template-columns:1.5fr .8fr .8fr!important;gap:12px!important}.r4-weigh-register-form label{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:11px!important;font-weight:700!important}.r4-weigh-register-form input,.r4-weigh-register-form select{height:40px!important;border:1px solid #cfdae7!important;border-radius:7px!important;padding:0 10px!important;background:#fff!important;color:#071c61!important}.r4-weigh-register-form .r4-weigh-modal-actions,.r4-weigh-form-feedback{grid-column:1/-1!important}.r4-weigh-form-feedback{min-height:18px!important;color:#5670a4!important;font-size:11px!important}.r4-weigh-form-feedback.error{color:#c63232!important}
@media(max-width:760px){.r4-weigh-detail-grid,.r4-weigh-register-form{grid-template-columns:1fr!important}}

/* AGROLOGIX R4 - R49C SCREEN09 + SMART WEIGHING BRIDGE RECOVERY */
body.r4-shell.auth-authenticated[data-r4-view="screen09"] #r3bContent.r4-weighings-host{display:none!important}
body.r4-shell.auth-authenticated[data-r4-view="screen09"] #screen09Content{display:block!important;visibility:visible!important;pointer-events:auto!important;position:relative!important;z-index:2!important}

/* AGROLOGIX R4 - R50 SMART WEIGHING + ANIMAL DETAIL APPROVED THREE ROLE */
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] #dashboardContent,body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] #animalsContent,body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] #screen09Content,body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] #operationsContent{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] #r3bContent{display:block!important;visibility:visible!important;position:relative!important;inset:auto!important;z-index:1!important;background:#f5f8fb!important}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4x-nav [data-r4x-route]{background:transparent!important}body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4x-nav [data-r4x-route="animals"]{background:#08a85d!important;color:#fff!important}
#r3bContent.r4-smart-host{padding:0!important;height:calc(100vh - 64px)!important;overflow:hidden!important}.r4-smart-page{height:100%!important;box-sizing:border-box!important;padding:12px 18px 16px!important;display:flex!important;flex-direction:column!important;gap:10px!important;background:#f5f8fb!important;color:#061b5a!important;font-family:Arial,Helvetica,sans-serif!important;overflow:hidden!important}.r4-smart-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important}.r4-smart-breadcrumb{margin:0!important;display:flex!important;align-items:center!important;gap:7px!important;font-size:12px!important}.r4-smart-breadcrumb button{border:0!important;background:transparent!important;color:#075ad8!important;padding:0!important;cursor:pointer!important}.r4-smart-context{display:flex!important;gap:8px!important;align-items:center!important}.r4-smart-context span{height:34px!important;display:flex!important;align-items:center!important;gap:6px!important;padding:0 10px!important;background:#fff!important;border:1px solid #d8e1ed!important;border-radius:7px!important;font-size:10px!important;color:#6075ac!important}.r4-smart-context b{color:#071c61!important}
.r4-smart-hero{display:grid!important;grid-template-columns:235px 1fr 1.15fr!important;gap:14px!important;background:#fff!important;border:1px solid #dbe4ef!important;border-radius:10px!important;padding:12px!important;flex:0 0 auto!important}.r4-smart-photo{height:132px!important;border-radius:8px!important;background:#edf3ef!important;overflow:hidden!important;display:grid!important;place-items:center!important;color:#66798a!important}.r4-smart-photo img{width:100%!important;height:100%!important;object-fit:cover!important}.r4-smart-identity small{color:#0a8d58!important;font-weight:700!important;text-transform:uppercase!important;font-size:9px!important}.r4-smart-identity h1{font-size:27px!important;line-height:30px!important;margin:2px 0 8px!important}.r4-smart-meta{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px 12px!important;font-size:10px!important;color:#49659e!important}.r4-smart-meta b{color:#0d255f!important}.r4-smart-status{display:inline-flex!important;align-items:center!important;min-height:20px!important;padding:0 8px!important;border-radius:10px!important;background:#cbf4dc!important;color:#077d49!important;font-size:9px!important;font-weight:700!important}.r4-smart-kpis{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.r4-smart-kpis article{border:1px solid #dbe4ef!important;border-radius:8px!important;padding:10px 12px!important;min-height:52px!important;background:#fbfcfd!important}.r4-smart-kpis span{display:block!important;font-size:9px!important;color:#5a70a0!important}.r4-smart-kpis strong{display:block!important;margin-top:4px!important;font-size:20px!important;color:#06864d!important}.r4-smart-kpis strong.bad{color:#d83d3d!important}
.r4-smart-tabs{display:flex!important;justify-content:flex-end!important;gap:0!important;flex:0 0 auto!important}.r4-smart-tabs button{height:35px!important;border:1px solid #d7e0ea!important;border-right:0!important;background:#fff!important;color:#082766!important;padding:0 15px!important;font-size:10px!important;cursor:pointer!important}.r4-smart-tabs button:first-child{border-radius:7px 0 0 7px!important}.r4-smart-tabs button:last-child{border-right:1px solid #d7e0ea!important;border-radius:0 7px 7px 0!important}.r4-smart-tabs button.active{background:#078a4d!important;color:#fff!important;border-color:#078a4d!important}.r4-smart-panel{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}.r4-smart-summary-grid{height:100%!important;display:grid!important;grid-template-columns:1.35fr 1fr!important;gap:10px!important}.r4-smart-card{height:100%!important;box-sizing:border-box!important;background:#fff!important;border:1px solid #dbe4ef!important;border-radius:10px!important;padding:12px 14px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.r4-smart-card header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex:0 0 auto!important}.r4-smart-card h2{font-size:18px!important;margin:0!important}.r4-smart-card h3{font-size:13px!important;margin:8px 0 5px!important}.r4-smart-card header button,.r4-smart-card header .primary{border:0!important;background:transparent!important;color:#075ad8!important;font-size:9px!important;cursor:pointer!important}.r4-smart-card header button.primary{height:34px!important;background:#078a4d!important;color:#fff!important;border-radius:6px!important;padding:0 13px!important;font-weight:700!important}.r4-smart-chart,.r4-smart-history-chart{min-height:160px!important;flex:1 1 auto!important;padding:6px 0!important}.r4-smart-chart svg,.r4-smart-history-chart svg{width:100%!important;height:100%!important;min-height:155px!important}.r4-smart-chart line,.r4-smart-history-chart line{stroke:#e2e8ef!important;stroke-width:1!important}.r4-smart-chart polyline,.r4-smart-history-chart polyline{fill:none!important;stroke:#0b9554!important;stroke-width:3!important;stroke-linecap:round!important;stroke-linejoin:round!important}.r4-smart-chart circle,.r4-smart-history-chart circle{fill:#0b9554!important}.r4-smart-table-wrap{overflow:auto!important;min-height:0!important}.r4-smart-table-wrap table{width:100%!important;border-collapse:collapse!important;font-size:10px!important}.r4-smart-table-wrap thead{background:#eef3f7!important;position:sticky!important;top:0!important}.r4-smart-table-wrap th{text-align:left!important;color:#153a78!important;padding:7px!important}.r4-smart-table-wrap td{border-bottom:1px solid #e7ecf2!important;padding:7px!important;color:#32549b!important}.r4-smart-analysis{margin-top:10px!important;font-size:11px!important;color:#304f91!important}.r4-smart-analysis>div{display:flex!important;gap:8px!important;align-items:center!important}.r4-smart-analysis>div span{background:#edf2f7!important;border-radius:10px!important;padding:3px 7px!important;font-size:8px!important}.r4-smart-analysis p{margin:10px 0!important}.r4-smart-confidence{height:11px!important;background:#e9eef3!important;border-radius:8px!important;position:relative!important;overflow:visible!important;margin:12px 0 16px!important}.r4-smart-confidence i{display:block!important;height:100%!important;background:#0b9554!important;border-radius:8px!important}.r4-smart-confidence b{position:absolute!important;right:0!important;top:15px!important;font-size:10px!important}.r4-smart-checks{display:grid!important;gap:9px!important;font-size:10px!important;color:#214483!important}.r4-smart-checks span:before{content:"✓"!important;display:inline-grid!important;place-items:center!important;width:16px!important;height:16px!important;border-radius:50%!important;background:#23bf55!important;color:#fff!important;margin-right:7px!important}.r4-smart-fill{height:100%!important}.r4-smart-history-dates{display:flex!important;justify-content:space-between!important;font-size:9px!important;color:#647aa8!important}.r4-smart-health-list{margin-top:12px!important;overflow:auto!important;display:grid!important;gap:8px!important}.r4-smart-health-list article{border:1px solid #dfe7ef!important;border-radius:8px!important;padding:10px!important}.r4-smart-health-list article>div{display:flex!important;justify-content:space-between!important}.r4-smart-health-list p{margin:6px 0 0!important;color:#526a9d!important;font-size:10px!important}.r4-smart-empty-state,.r4-smart-empty-inline{display:grid!important;place-content:center!important;text-align:center!important;gap:7px!important;color:#6075a0!important;min-height:170px!important}.r4-smart-empty-state strong{font-size:15px!important;color:#0a285f!important}.r4-smart-economy-note{margin:12px 0!important;padding:12px!important;border:1px solid #f0d99f!important;background:#fff9e7!important;border-radius:8px!important;display:grid!important;gap:4px!important}.r4-smart-economy-note span{font-size:10px!important;color:#795a14!important}.r4-smart-economy-grid,.r4-smart-sale-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important}.r4-smart-sale-grid{grid-template-columns:repeat(4,1fr)!important;margin-top:12px!important}.r4-smart-economy-grid article,.r4-smart-sale-grid article{border:1px solid #dce5ee!important;border-radius:8px!important;padding:12px!important}.r4-smart-economy-grid small,.r4-smart-sale-grid small{display:block!important;color:#6074a0!important;font-size:9px!important}.r4-smart-economy-grid strong,.r4-smart-sale-grid strong{display:block!important;margin-top:5px!important;font-size:18px!important}.r4-smart-sale-reasons{margin-top:12px!important;display:grid!important;gap:7px!important;color:#50699d!important;font-size:10px!important}.r4-smart-edit-form{margin-top:12px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;overflow:auto!important}.r4-smart-edit-form label{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:10px!important;font-weight:700!important;color:#27447e!important}.r4-smart-edit-form input,.r4-smart-edit-form select,.r4-smart-edit-form textarea{border:1px solid #ccd9e6!important;border-radius:7px!important;padding:9px 10px!important;background:#fff!important;color:#061b5a!important;font:inherit!important}.r4-smart-edit-form .wide,.r4-smart-edit-feedback,.r4-smart-edit-actions{grid-column:1/-1!important}.r4-smart-edit-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important}.r4-smart-edit-actions button{height:38px!important;border:1px solid #ccd9e6!important;background:#fff!important;border-radius:7px!important;padding:0 15px!important;color:#173c79!important;font-weight:700!important}.r4-smart-edit-actions button.primary{background:#078a4d!important;border-color:#078a4d!important;color:#fff!important}.r4-smart-edit-feedback{min-height:18px!important;font-size:10px!important;color:#5f73a0!important}.r4-smart-edit-feedback.ok{color:#078a4d!important}.r4-smart-edit-feedback.error{color:#c73131!important}.r4-smart-readonly-note{color:#6075a0!important;font-size:9px!important}.r4-smart-loading,.r4-smart-empty{margin:20px!important;min-height:250px!important;background:#fff!important;border:1px solid #dbe4ef!important;border-radius:10px!important;display:grid!important;place-content:center!important;text-align:center!important;gap:6px!important}
@media(max-width:1250px){.r4-smart-page{overflow:auto!important}.r4-smart-hero{grid-template-columns:180px 1fr!important}.r4-smart-kpis{grid-column:1/-1!important}.r4-smart-summary-grid{grid-template-columns:1fr!important;height:auto!important}.r4-smart-panel{overflow:visible!important}.r4-smart-context{flex-wrap:wrap!important}.r4-smart-economy-grid,.r4-smart-sale-grid{grid-template-columns:repeat(2,1fr)!important}}

/* AGROLOGIX R4 - R50C APPROVED EDIT MOCKUP PARITY */
.r4-smart-edit-mockup{height:100%!important;display:grid!important;grid-template-columns:1fr 1.08fr!important;grid-template-areas:"photo basic" "classify location" "state notes"!important;grid-template-rows:1.55fr .72fr .78fr!important;gap:10px!important;overflow:hidden!important}
.r4-smart-edit-mockup .r4-smart-edit-card{background:#fff!important;border:1px solid #d9e4ee!important;border-radius:10px!important;padding:10px 14px!important;box-sizing:border-box!important;overflow:hidden!important}
.r4-smart-edit-mockup .r4-smart-edit-card:nth-of-type(1){grid-area:photo!important}
.r4-smart-edit-mockup .r4-smart-edit-card:nth-of-type(2){grid-area:basic!important}
.r4-smart-edit-mockup .r4-smart-edit-card:nth-of-type(3){grid-area:classify!important}
.r4-smart-edit-mockup .r4-smart-edit-card:nth-of-type(4){grid-area:location!important}
.r4-smart-edit-mockup .r4-smart-edit-card:nth-of-type(5){grid-area:state!important}
.r4-smart-edit-mockup .r4-smart-edit-card:nth-of-type(6){grid-area:notes!important}
.r4-smart-edit-mockup h2{margin:0 0 8px!important;font-size:16px!important;color:#08276a!important}
.r4-smart-edit-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px 10px!important}
.r4-smart-edit-mockup label{display:flex!important;flex-direction:column!important;gap:4px!important;font-size:9.5px!important;font-weight:700!important;color:#193f7d!important}
.r4-smart-edit-mockup label em{color:#e53c4e!important;font-style:normal!important}
.r4-smart-edit-mockup input,.r4-smart-edit-mockup select,.r4-smart-edit-mockup textarea{width:100%!important;box-sizing:border-box!important;border:1px solid #bfd0e3!important;border-radius:6px!important;background:#fff!important;color:#08245d!important;padding:7px 9px!important}
.r4-smart-photo-editor{display:grid!important;grid-template-columns:1.05fr .9fr!important;gap:12px!important;height:122px!important}
.r4-smart-photo-editor>img{width:100%!important;height:122px!important;object-fit:cover!important;border-radius:7px!important}
.r4-smart-upload-box{height:122px!important;border:1.5px dashed #aac0d9!important;border-radius:7px!important;display:grid!important;place-content:center!important;text-align:center!important;gap:4px!important;cursor:pointer!important}
.r4-smart-upload-icon{font-size:24px!important;color:#416da7!important}
.r4-smart-photo-help{text-align:right!important;font-size:9px!important;color:#7d8fab!important}
.r4-smart-edit-mockup select[name="operationalStatus"]{background:#d9f8e5!important;border-color:#92dcae!important;color:#0b6840!important}
.r4-smart-edit-mockup textarea{height:48px!important;resize:none!important}
.r4-smart-note-counter{text-align:right!important;font-size:9px!important;color:#8190aa!important}
.r4-smart-edit-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important}
.r4-smart-edit-actions button.primary{background:#0a914e!important;border-color:#0a914e!important;color:#fff!important}

/* AGROLOGIX R4 - R51 GENERAL ANIMALS + SINGLE ANIMAL DETAIL FLOW */
.r4-smart-detail-topbar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;margin-bottom:2px!important}
.r4-smart-back{height:36px!important;border:1px solid #ccd9e6!important;border-radius:7px!important;background:#fff!important;color:#123b79!important;padding:0 13px!important;font-weight:700!important;font-size:11px!important;cursor:pointer!important}
.r4-smart-back:hover{background:#f2f7fb!important}
.r4-smart-animal-select{display:flex!important;align-items:center!important;gap:8px!important;color:#173c78!important;font-size:11px!important;font-weight:700!important}
.r4-smart-animal-select select{min-width:160px!important;height:36px!important;border:1px solid #ccd9e6!important;border-radius:7px!important;background:#fff!important;color:#0b2d6d!important;padding:0 10px!important;font-weight:700!important}

/* AGROLOGIX R4 - R52 SINGLE ANIMAL SUMMARY MOCKUP 100 PERCENT AUTHORITY */
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] #r3bContent.r4-smart-host{height:calc(100vh - 58px)!important;overflow:hidden!important}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-page{height:100%!important;display:flex!important;flex-direction:column!important;gap:10px!important;padding:14px 20px 16px!important;box-sizing:border-box!important;background:#f4f9fb!important;overflow:hidden!important}

/* R51 navigation stays functional but visually subordinate to the approved mockup. */
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-detail-topbar{min-height:36px!important;margin:0!important}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-back{height:34px!important}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-animal-select select{height:34px!important}

/* Approved single-animal hero. */
.r52-smart-hero{display:grid!important;grid-template-columns:410px 1fr!important;gap:20px!important;min-height:194px!important;padding:12px 16px!important;background:#fff!important;border:1px solid #d9e4ed!important;border-radius:11px!important;box-shadow:0 8px 20px rgba(25,70,95,.04)!important}
.r52-smart-photo{height:180px!important;border-radius:8px!important;overflow:hidden!important;background:#edf3ef!important}
.r52-smart-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.r52-smart-identity{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important}
.r52-smart-identity h1{margin:0 0 8px!important;color:#09266e!important;font-size:31px!important;line-height:34px!important;font-weight:800!important}
.r52-smart-meta{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:13px!important;color:#123779!important}
.r52-smart-meta b{font-weight:500!important}
.r52-smart-meta .r4-smart-status{padding:4px 10px!important;border-radius:6px!important;background:#c9f5d9!important;color:#087c45!important;font-size:11px!important}

/* Approved four KPI cards. */
.r52-smart-summary{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:10px!important}
.r52-smart-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;flex:0 0 auto!important}
.r52-smart-kpis article{min-height:82px!important;background:#fff!important;border:1px solid #d8e4ee!important;border-radius:10px!important;display:flex!important;align-items:center!important;gap:14px!important;padding:10px 16px!important;box-sizing:border-box!important;box-shadow:0 5px 16px rgba(25,70,95,.035)!important}
.r52-kpi-icon{width:48px!important;height:48px!important;border-radius:50%!important;background:#dcf9e8!important;color:#0a9555!important;display:grid!important;place-items:center!important;font-size:23px!important;font-weight:800!important;flex:0 0 auto!important}
.r52-smart-kpis span{display:block!important;color:#173a79!important;font-size:12px!important;margin-bottom:4px!important}
.r52-smart-kpis strong{display:block!important;color:#087b48!important;font-size:28px!important;line-height:30px!important;font-weight:800!important}
.r52-smart-kpis strong.bad{color:#b23c3c!important}

/* Approved lower two-column layout. */
.r52-smart-summary-grid{display:grid!important;grid-template-columns:1.22fr .92fr!important;gap:12px!important;flex:1 1 auto!important;min-height:0!important}
.r52-smart-card{background:#fff!important;border:1px solid #d9e4ed!important;border-radius:11px!important;padding:14px 16px!important;min-height:0!important;overflow:hidden!important;box-shadow:0 5px 16px rgba(25,70,95,.035)!important}
.r52-card-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:8px!important}
.r52-card-header h2{margin:0!important;color:#09256a!important;font-size:22px!important;line-height:26px!important}
.r52-period{height:38px!important;border:1px solid #d4e0eb!important;border-radius:8px!important;background:#fff!important;color:#173c7d!important;padding:0 13px!important;font-size:12px!important;font-weight:600!important}
.r52-smart-chart{height:205px!important;min-height:205px!important;overflow:hidden!important}
.r52-smart-chart svg{height:205px!important;min-height:205px!important;width:100%!important}
.r52-history-card h3,.r52-analysis-card h3{margin:8px 0 7px!important;color:#0b2b70!important;font-size:16px!important}
.r52-history-card .r4-smart-table-wrap{max-height:116px!important;overflow:hidden!important}
.r52-history-card table{width:100%!important;border-collapse:collapse!important;font-size:11px!important}
.r52-history-card th{background:#eef6fa!important;color:#173a78!important;text-align:left!important;padding:7px 8px!important}
.r52-history-card td{border-top:1px solid #e3ebf1!important;padding:7px 8px!important;color:#173a78!important}

/* Analysis card visual authority. */
.r52-analysis{font-size:12px!important;color:#163a78!important}
.r52-analysis-status{display:flex!important;align-items:center!important;gap:10px!important;margin-bottom:8px!important}
.r52-analysis-status b{font-size:13px!important;color:#092469!important}
.r52-analysis-status span{background:#e7edf4!important;color:#61728e!important;border-radius:5px!important;padding:3px 8px!important;font-size:10px!important}
.r52-analysis p{display:flex!important;align-items:center!important;gap:10px!important;margin:10px 0!important}
.r52-analysis p i{width:26px!important;height:26px!important;border-radius:50%!important;background:#edf4fb!important;color:#163f83!important;display:grid!important;place-items:center!important;font-style:normal!important;font-weight:800!important;flex:0 0 auto!important}
.r52-analysis-card hr{border:0!important;border-top:1px solid #e2eaf0!important;margin:12px 0!important}
.r52-confidence{height:12px!important;background:#e2eaf0!important;border-radius:7px!important;position:relative!important;margin:8px 0 12px!important;overflow:visible!important}
.r52-confidence i{height:100%!important;display:block!important;background:#0c9757!important;border-radius:7px!important}
.r52-confidence b{position:absolute!important;right:0!important;top:-4px!important;transform:translateY(-100%)!important;color:#092469!important;font-size:11px!important}
.r52-checks{display:flex!important;flex-direction:column!important;gap:9px!important;color:#163a78!important;font-size:11px!important}
.r52-checks span::first-letter{color:#17a44f!important}

@media(max-width:1250px){
  .r52-smart-hero{grid-template-columns:300px 1fr!important}
  .r52-smart-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .r52-smart-summary-grid{grid-template-columns:1fr!important;overflow:auto!important}
}

/* AGROLOGIX R4 - R53 HISTORY MOCKUP + NEW ANIMAL + GREEN BACK */
.r4-smart-back{
  background:#0a914e!important;
  border-color:#0a914e!important;
  color:#fff!important;
}
.r4-smart-back:hover{
  background:#087c43!important;
  border-color:#087c43!important;
  color:#fff!important;
}

.r53-history-card{
  height:100%!important;
  min-height:0!important;
  background:#fff!important;
  border:1px solid #d9e4ed!important;
  border-radius:11px!important;
  padding:14px 16px 16px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.r53-history-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-bottom:8px!important;
}
.r53-history-header h2{
  margin:0!important;
  color:#09256a!important;
  font-size:22px!important;
  line-height:28px!important;
  font-weight:800!important;
}
.r53-history-period{
  height:38px!important;
  min-width:180px!important;
  border:1px solid #d4e0eb!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#173c7d!important;
  padding:0 14px!important;
  font-size:12px!important;
  font-weight:600!important;
}
.r53-history-chart-wrap{
  position:relative!important;
  height:calc(100% - 48px)!important;
  min-height:300px!important;
  padding-left:34px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.r53-history-ylabel{
  position:absolute!important;
  left:0!important;
  top:50%!important;
  transform:translate(-2px,-50%) rotate(-90deg)!important;
  transform-origin:center!important;
  color:#173c7d!important;
  font-size:12px!important;
  font-weight:600!important;
  white-space:nowrap!important;
}
.r53-history-chart{
  width:100%!important;
  height:100%!important;
  min-height:300px!important;
}
.r53-history-chart svg{
  width:100%!important;
  height:100%!important;
  min-height:300px!important;
  display:block!important;
}

/* Functional canonical new-animal editor visibility. */
body.r4-shell.auth-authenticated[data-r4-view="screen09"] #r3bContent{
  display:none!important;
}
body.r4-shell.auth-authenticated[data-r4-view="screen09"] #screen09Content{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* AGROLOGIX R4 - R54 HISTORY GRID + RANGE FIX */
.r54-history-card{
  height:100%!important;
  min-height:0!important;
  background:#fff!important;
  border:1px solid #d9e4ed!important;
  border-radius:11px!important;
  padding:10px 12px 14px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.r54-history-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-bottom:6px!important;
}
.r54-history-header h2{
  margin:0!important;
  color:#0a2d7a!important;
  font-size:22px!important;
  line-height:28px!important;
  font-weight:800!important;
}
.r54-history-picker{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:182px!important;
  height:40px!important;
  padding:0 12px!important;
  border:1px solid #d7e2ee!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#22478a!important;
  box-sizing:border-box!important;
}
.r54-history-picker-icon,.r54-history-picker-caret{
  color:#2347dc!important;
  font-size:12px!important;
  line-height:1!important;
  flex:0 0 auto!important;
}
.r54-history-picker select{
  appearance:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:none!important;
  border:0!important;
  outline:none!important;
  background:transparent!important;
  color:#22478a!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
  width:100%!important;
  min-width:0!important;
  cursor:pointer!important;
}
.r54-history-chart-wrap{
  position:relative!important;
  flex:1 1 auto!important;
  min-height:308px!important;
  padding-left:26px!important;
}
.r54-history-ytitle{
  position:absolute!important;
  left:4px!important;
  top:50%!important;
  transform:translate(-2px,-50%) rotate(-90deg)!important;
  transform-origin:center!important;
  color:#173c7d!important;
  font-size:12px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.r54-history-chart{
  height:100%!important;
  min-height:308px!important;
}
.r54-history-svg{
  width:100%!important;
  height:100%!important;
  display:block!important;
}
.r54-history-grid{
  stroke:#d8e3ef!important;
  stroke-width:1!important;
}
.r54-history-tick,.r54-history-label{
  fill:#274cb0!important;
  font-size:10px!important;
  font-family:inherit!important;
  font-weight:500!important;
}
.r54-history-line{
  fill:none!important;
  stroke:#0d9755!important;
  stroke-width:3!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.r54-history-dot{
  fill:#10a15e!important;
  stroke:#10a15e!important;
}

/* AGROLOGIX R4 - R56 HISTORY NO-SCROLL MOCKUP PARITY
   Authority: user-approved R4 History mockup. */
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] #r3bContent.r4-smart-host{
  height:calc(100vh - 58px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-page{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  padding:10px 18px 12px!important;
  box-sizing:border-box!important;
}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-detail-topbar{
  flex:0 0 34px!important;
  min-height:34px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r52-smart-hero,
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-hero{
  flex:0 0 176px!important;
  min-height:176px!important;
  max-height:176px!important;
  padding:10px 14px!important;
  box-sizing:border-box!important;
}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r52-smart-photo,
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-photo{
  height:154px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-tabs{
  flex:0 0 38px!important;
  min-height:38px!important;
  margin:0!important;
}
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-body,
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-panel,
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-content{
  min-height:0!important;
}

/* History panel: compact grid dimensions from the approved mockup. */
body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r54-history-card{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:10px 12px 10px!important;
  overflow:hidden!important;
}
.r54-history-header{
  flex:0 0 40px!important;
  min-height:40px!important;
  margin-bottom:2px!important;
}
.r54-history-header h2{
  font-size:20px!important;
  line-height:24px!important;
}
.r54-history-picker{
  height:36px!important;
  min-width:175px!important;
}
.r54-history-chart-wrap{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  padding-left:24px!important;
  overflow:hidden!important;
}
.r54-history-chart{
  height:100%!important;
  min-height:0!important;
}
.r54-history-svg{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}
.r54-history-ytitle{
  left:2px!important;
  font-size:11px!important;
}
.r54-history-tick,
.r54-history-label{
  font-size:9px!important;
}

@media (min-width:1200px) and (max-height:980px){
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r52-smart-hero,
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-hero{
    flex-basis:164px!important;
    min-height:164px!important;
    max-height:164px!important;
  }
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r52-smart-photo,
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-photo{
    height:142px!important;
  }
  .r54-history-header{
    flex-basis:36px!important;
    min-height:36px!important;
  }
}
@media (min-width:1200px) and (max-height:860px){
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-detail-topbar{
    flex-basis:30px!important;
    min-height:30px!important;
  }
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r52-smart-hero,
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-hero{
    flex-basis:148px!important;
    min-height:148px!important;
    max-height:148px!important;
  }
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r52-smart-photo,
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-photo{
    height:126px!important;
  }
  body.r4-shell.auth-authenticated[data-r4-view="smart-weighing"] .r4-smart-tabs{
    flex-basis:34px!important;
    min-height:34px!important;
  }
}

/* AGROLOGIX R4 - R57 GASTOS APPROVED THREE ROLE MOCKUP 100 */
body.r4-shell.auth-authenticated[data-r4-view="expenses"] #r3bContent{overflow:hidden!important}
.r57-expenses-page{height:calc(100vh - 58px);overflow:hidden;padding:14px 18px 12px;box-sizing:border-box;background:#f4f8fb;color:#0b2d6d;font-size:11px}
.r57-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:10px}
.r57-title-row h1{font-size:26px;line-height:30px;margin:0;color:#09256a}
.r57-title-row p{margin:2px 0 0;color:#4a69ae;font-size:12px}
.r57-top-filters{display:flex;gap:10px;align-items:center}
.r57-top-filters select,.r57-list-filters select{height:38px;border:1px solid #d6e1eb;border-radius:7px;background:white;padding:0 12px;color:#123a77;font-weight:600;min-width:150px}
.r57-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:10px}
.r57-kpis article{height:67px;background:#fff;border:1px solid #dbe5ee;border-radius:8px;display:flex;align-items:center;gap:10px;padding:8px 10px;position:relative;box-sizing:border-box}
.r57-kpi-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#dff8ea;color:#0a9250;font-size:21px;font-weight:800;flex:none}
.r57-kpis span{display:block;font-size:10px;font-weight:700;color:#183b77}.r57-kpis strong{display:block;font-size:20px;line-height:22px;color:#09286d}.r57-kpis small{font-weight:800;font-size:9px}.r57-kpis small.up{color:#04a95c}.r57-kpis small.down{color:#e53f4d}.r57-kpis article>i{position:absolute;right:10px;bottom:9px;width:36px;height:16px;border-bottom:2px solid #0cbd68;transform:skewY(-25deg)}
.r57-list-card,.r57-analytics article{background:white;border:1px solid #dbe5ee;border-radius:8px}
.r57-list-card{padding:8px 10px 6px;margin-bottom:10px}
.r57-card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.r57-card-title h2{font-size:16px;margin:0;color:#09286d}
.r57-new{height:34px;border:0;border-radius:6px;background:#078d4a;color:#fff;padding:0 16px;font-weight:700}.r57-new:disabled{opacity:.55}
.r57-list-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,1fr));gap:8px;margin-bottom:6px}.r57-search{height:38px;border:1px solid #d6e1eb;border-radius:7px;background:#fff;display:flex;align-items:center;padding:0 10px;gap:8px}.r57-search input{border:0;outline:0;width:100%;color:#123a77}
.r57-table-wrap{height:146px;overflow:hidden}.r57-table-wrap table{width:100%;border-collapse:collapse;table-layout:auto;font-size:9px}.r57-table-wrap th{background:#eef5f8;color:#1e457f;text-align:left;padding:6px 5px;white-space:nowrap}.r57-table-wrap td{padding:6px 5px;border-bottom:1px solid #e5edf2;color:#31568d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.r57-actions button{border:0;background:transparent;color:#0e4f91;cursor:pointer;padding:0 4px}.r57-status{padding:3px 9px;border-radius:5px}.r57-status.ok{background:#c9f4d8;color:#14814d}.r57-status.pending{background:#ffe6a9;color:#8f6814}
.r57-pager{display:flex;justify-content:space-between;align-items:center;height:25px;color:#45679c;font-size:9px}.r57-pager button{border:1px solid #d9e4ed;background:#fff;border-radius:4px;margin:0 2px;width:24px;height:22px;color:#31568d}.r57-pager button.active{background:#c9f4d8;border-color:#c9f4d8;color:#0a7d47}
.r57-analytics{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:10px;height:calc(100vh - 409px);min-height:180px}.r57-analytics article{padding:10px;overflow:hidden}.r57-analytics h3{font-size:13px;margin:0 0 8px;color:#103673}
.r57-donut-row{display:flex;align-items:center;height:calc(100% - 25px);gap:12px}.r57-donut{width:126px;height:126px;border-radius:50%;display:grid;place-items:center;position:relative;flex:none}.r57-donut:after{content:"";position:absolute;width:74px;height:74px;border-radius:50%;background:white}.r57-donut span{z-index:1;text-align:center}.r57-donut b{display:block;font-size:16px;color:#09286d}.r57-donut small{display:block}.r57-legend{min-width:0;flex:1}.r57-legend p{display:grid;grid-template-columns:8px 1fr auto;gap:5px;align-items:center;margin:4px 0}.r57-legend i{width:7px;height:7px;border-radius:50%}.r57-legend b{font-weight:500}
.r57-bars p{display:grid;grid-template-columns:82px 1fr 58px;gap:6px;align-items:center;margin:8px 0}.r57-bars i{height:10px;background:#e7f1ed;border-radius:3px;overflow:hidden}.r57-bars i b{display:block;height:100%;background:#12b967;border-radius:3px}.r57-bars strong{text-align:right;font-size:9px}
.r57-trend{height:calc(100% - 24px)}.r57-trend svg{width:100%;height:calc(100% - 20px)}.r57-trend line{stroke:#dbe6ef;stroke-width:1}.r57-trend polyline{fill:none;stroke-width:2}.r57-trend .total{stroke:#10b763}.r57-trend .op{stroke:#3675e8}.r57-trend .san{stroke:#f5b727}.r57-trend .other{stroke:#ef5656}.r57-months{display:flex;justify-content:space-around;color:#5374aa;font-size:8px}
.r57-modal-backdrop{position:fixed;inset:0;background:rgba(4,34,38,.28);display:grid;place-items:center;z-index:300}.r57-modal{width:min(620px,90vw);max-height:82vh;overflow:auto;background:#fff;border-radius:12px;padding:18px;box-shadow:0 22px 60px rgba(0,0,0,.22)}.r57-modal h2{margin:0 0 14px;color:#09286d}.r57-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.r57-modal-actions button{height:36px;border:1px solid #d5e0ea;background:white;border-radius:7px;padding:0 14px;color:#173b77}.r57-modal-actions button.primary{background:#088f4b;color:white;border-color:#088f4b}.r57-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.r57-form label{display:flex;flex-direction:column;gap:5px;color:#173b77;font-weight:700}.r57-form input,.r57-form select{height:37px;border:1px solid #d6e1eb;border-radius:7px;padding:0 10px}.r57-form .wide{grid-column:1/-1}.r57-detail{display:grid;grid-template-columns:1fr 1fr;gap:8px}.r57-detail div{border:1px solid #e0e8ef;border-radius:7px;padding:8px}.r57-detail dt{font-size:9px;color:#6a7f9e}.r57-detail dd{margin:3px 0 0;color:#173b77;font-weight:700}
@media(max-width:1200px){.r57-expenses-page{overflow:auto;height:auto}.r57-kpis{grid-template-columns:repeat(2,1fr)}.r57-analytics{grid-template-columns:1fr;height:auto}.r57-list-filters{grid-template-columns:1fr 1fr}.r57-top-filters{flex-wrap:wrap}}

/* AGROLOGIX R4 - R57B GASTOS MOCKUP PARITY HF1 */
body.r4-shell.auth-authenticated[data-r4-view="expenses"] #r3bContent{overflow:hidden!important}
.r57-expenses-page{height:calc(100vh - 58px)!important;min-height:0!important;padding:10px 14px!important;overflow:hidden!important;background:#f4f8fb!important;font-size:10px!important}
.r57-title-row{min-height:52px!important;margin-bottom:7px!important;align-items:flex-start!important}
.r57-title-row h1{font-size:24px!important;line-height:27px!important;font-weight:800!important}
.r57-title-row p{font-size:11px!important;margin-top:1px!important}
.r57-top-filters select{height:36px!important;min-width:145px!important;border-radius:7px!important;font-size:10px!important;background:#fff!important}
.r57-kpis{height:66px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;margin-bottom:7px!important}
.r57-kpis article{height:66px!important;border-radius:7px!important;padding:7px 9px!important;gap:9px!important}
.r57-kpi-icon{width:40px!important;height:40px!important;padding:9px!important;box-sizing:border-box!important;background:#dff8ea!important;color:#079552!important}
.r57-kpi-icon.amber{background:#fff0c8!important;color:#c69500!important}
.r57-kpi-icon svg,.r57-section-icon svg,.r57-actions svg,.r57-doc svg{width:100%!important;height:100%!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.r57-kpis span{font-size:9px!important}.r57-kpis strong{font-size:18px!important;line-height:19px!important}.r57-kpis small{font-size:8px!important}
.r57-kpis article>i{width:31px!important;height:14px!important;right:8px!important;bottom:8px!important;border-bottom:2px solid #0ac36a!important}
.r57-list-card{padding:7px 8px 5px!important;margin-bottom:7px!important}
.r57-card-title{margin-bottom:5px!important}.r57-card-title h2,.r57-analytics h3{display:flex!important;align-items:center!important;gap:6px!important}
.r57-section-icon{width:17px!important;height:17px!important;color:#078f4d!important;display:inline-grid!important;place-items:center!important;flex:none!important}
.r57-card-title h2{font-size:15px!important}.r57-new{height:32px!important;padding:0 14px!important;font-size:10px!important}
.r57-list-filters{grid-template-columns:minmax(200px,1.45fr) repeat(3,minmax(120px,1fr))!important;gap:7px!important;margin-bottom:5px!important}
.r57-search,.r57-list-filters select{height:34px!important;font-size:9px!important}
.r57-table-wrap{height:132px!important}.r57-table-wrap table{font-size:8px!important}.r57-table-wrap th{padding:5px 4px!important;font-weight:700!important}.r57-table-wrap td{padding:5px 4px!important;max-width:135px!important}
.r57-actions{display:flex!important;align-items:center!important;gap:5px!important}.r57-actions button{width:20px!important;height:20px!important;padding:3px!important;color:#114a88!important}.r57-actions svg,.r57-doc svg{width:13px!important;height:13px!important}.r57-doc{color:#114a88!important;text-align:center!important}
.r57-pager{height:22px!important;font-size:8px!important}.r57-pager button{width:21px!important;height:20px!important;font-size:8px!important}
.r57-analytics{height:calc(100vh - 382px)!important;min-height:190px!important;grid-template-columns:.95fr .95fr 1.25fr!important;gap:7px!important}
.r57-analytics article{padding:7px 8px!important;border-radius:7px!important}.r57-analytics h3{font-size:12px!important;margin-bottom:4px!important}
.r57-donut-row{height:calc(100% - 18px)!important;align-items:center!important;justify-content:center!important;gap:10px!important}.r57-donut{width:116px!important;height:116px!important}.r57-donut:after{width:68px!important;height:68px!important}.r57-donut b{font-size:15px!important}
.r57-legend{max-width:190px!important}.r57-legend p{grid-template-columns:7px 1fr auto!important;margin:3px 0!important;font-size:8px!important}
.r57-bars{height:calc(100% - 18px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important}.r57-bars p{grid-template-columns:78px 1fr 52px!important;margin:6px 0!important;font-size:8px!important}.r57-bars i{height:12px!important}
.r57-trend{height:calc(100% - 20px)!important;position:relative!important}.r57-trend svg{height:calc(100% - 18px)!important}.r57-trend line{stroke:#d8e4ed!important}.r57-trend polyline{stroke-width:2!important;stroke-linejoin:round!important;stroke-linecap:round!important}.r57-months{font-size:7px!important}

/* AGROLOGIX R4 - R57C GASTOS CATEGORY COMBO FIX */
.r57-category-combo{position:relative;display:flex;align-items:center}
.r57-category-combo input{width:100%;padding-right:30px!important}
.r57-category-caret{position:absolute;right:10px;color:#0c5e50;font-size:11px;pointer-events:none}
.r57-category-help{display:block;margin-top:4px;color:#6f7f96;font-size:9px;font-weight:400;line-height:1.25}

/* AGROLOGIX R4 - R57D GASTOS DATA/TREND/PAGINATION FIX */
.r57-trend-layout{height:calc(100% - 18px);display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:5px;align-items:center}
.r57-trend-layout .r57-trend{height:100%;min-height:0}
.r57-trend-legend{font-size:8px;color:#31588d}
.r57-trend-legend p{display:flex;align-items:center;gap:5px;margin:5px 0}
.r57-trend-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}
.r57-trend-legend i.total{background:#10b763}.r57-trend-legend i.op{background:#3271e5}.r57-trend-legend i.san{background:#f4be1f}.r57-trend-legend i.other{background:#ef5257}

/* AGROLOGIX R4 — R66 RESPONSIVE SIDEBAR HEIGHT FIT
   Desktop authority: keep every navigation selection visible across browser heights.
   No page scroll is introduced. Internal nav scroll remains only as a last-resort fallback. */
@media (min-width:821px){
  body.r4-shell.auth-authenticated .sidebar.r4x-sidebar,
  body.r4-shell.auth-authenticated .sidebar{
    height:100dvh!important;
    max-height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }

  body.r4-shell.auth-authenticated .r4x-brand{
    flex:0 0 clamp(62px,10.4vh,96px)!important;
    height:clamp(62px,10.4vh,96px)!important;
    min-height:clamp(62px,10.4vh,96px)!important;
  }
  body.r4-shell.auth-authenticated .r4x-brand img{
    width:min(100%,278px)!important;
    height:100%!important;
    max-height:96px!important;
    object-fit:contain!important;
  }

  body.r4-shell.auth-authenticated .r4x-nav,
  body.r4-shell.auth-authenticated #mainNav{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:thin;
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
  }

  body.r4-shell.auth-authenticated .r4x-nav-item,
  body.r4-shell.auth-authenticated #mainNav .nav-item,
  body.r4-shell.auth-authenticated #mainNav .r10-shell-nav-item{
    flex:0 1 clamp(32px,4.65vh,44px)!important;
    height:clamp(32px,4.65vh,44px)!important;
    min-height:32px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    font-size:clamp(13px,1.55vh,16px)!important;
    line-height:1!important;
  }

  body.r4-shell.auth-authenticated .r4x-nav-icon{
    width:clamp(22px,3vh,30px)!important;
    height:clamp(22px,3vh,30px)!important;
    flex-basis:clamp(22px,3vh,30px)!important;
  }
  body.r4-shell.auth-authenticated .r4x-nav-icon svg,
  body.r4-shell.auth-authenticated .r4x-nav-icon img{
    width:clamp(21px,2.8vh,29px)!important;
    height:clamp(21px,2.8vh,29px)!important;
  }

  body.r4-shell.auth-authenticated .r4x-side-actions{
    flex:0 0 auto!important;
    margin-top:0!important;
  }
  body.r4-shell.auth-authenticated .r4x-side-actions button{
    height:clamp(30px,4vh,38px)!important;
    min-height:30px!important;
    font-size:clamp(12px,1.45vh,14px)!important;
  }

  body.r4-shell.auth-authenticated .r4x-emblem,
  body.r4-shell.auth-authenticated .sidebar-motto{
    flex:0 0 clamp(34px,6.2vh,58px)!important;
    height:clamp(34px,6.2vh,58px)!important;
    min-height:34px!important;
    margin:0!important;
  }
  body.r4-shell.auth-authenticated .r4x-emblem img,
  body.r4-shell.auth-authenticated .sidebar-motto img{
    width:clamp(32px,5.8vh,54px)!important;
    height:clamp(32px,5.8vh,54px)!important;
    object-fit:contain!important;
  }

  body.r4-shell.auth-authenticated .r4x-user{
    flex:0 0 clamp(46px,6vh,54px)!important;
    height:clamp(46px,6vh,54px)!important;
    min-height:46px!important;
    margin-bottom:clamp(2px,.8vh,6px)!important;
  }
}

/* Compact desktop/laptop heights: preserve every menu row before decorative space. */
@media (min-width:821px) and (max-height:820px){
  body.r4-shell.auth-authenticated .r4x-brand{
    flex-basis:64px!important;height:64px!important;min-height:64px!important;
  }
  body.r4-shell.auth-authenticated .r4x-nav-item,
  body.r4-shell.auth-authenticated #mainNav .nav-item,
  body.r4-shell.auth-authenticated #mainNav .r10-shell-nav-item{
    flex-basis:34px!important;height:34px!important;min-height:34px!important;
    font-size:13px!important;
  }
  body.r4-shell.auth-authenticated .r4x-nav-icon,
  body.r4-shell.auth-authenticated .r4x-nav-icon svg,
  body.r4-shell.auth-authenticated .r4x-nav-icon img{
    width:23px!important;height:23px!important;
  }
  body.r4-shell.auth-authenticated .r4x-emblem,
  body.r4-shell.auth-authenticated .sidebar-motto{
    flex-basis:36px!important;height:36px!important;min-height:36px!important;
  }
  body.r4-shell.auth-authenticated .r4x-emblem img,
  body.r4-shell.auth-authenticated .sidebar-motto img{
    width:34px!important;height:34px!important;
  }
  body.r4-shell.auth-authenticated .r4x-user{
    flex-basis:46px!important;height:46px!important;min-height:46px!important;
  }
}

/* Very short desktop windows: collapse decoration, never navigation. */
@media (min-width:821px) and (max-height:680px){
  body.r4-shell.auth-authenticated .r4x-brand{
    flex-basis:52px!important;height:52px!important;min-height:52px!important;
  }
  body.r4-shell.auth-authenticated .r4x-emblem,
  body.r4-shell.auth-authenticated .sidebar-motto{
    display:none!important;
  }
  body.r4-shell.auth-authenticated .r4x-nav-item,
  body.r4-shell.auth-authenticated #mainNav .nav-item,
  body.r4-shell.auth-authenticated #mainNav .r10-shell-nav-item{
    flex-basis:31px!important;height:31px!important;min-height:31px!important;
    font-size:12px!important;
  }
  body.r4-shell.auth-authenticated .r4x-user{
    flex-basis:42px!important;height:42px!important;min-height:42px!important;
  }
}

/* AGROLOGIX R67H EDIT FORM ACTION VISIBILITY */
.r4-smart-panel{
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  padding-bottom:18px!important;
}
.r4-smart-edit-mockup{
  height:auto!important;
  min-height:100%!important;
  grid-template-rows:auto auto auto!important;
  overflow:visible!important;
  padding-bottom:12px!important;
}
.r4-smart-edit-mockup .r4-smart-edit-card{overflow:visible!important}
.r4-smart-edit-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:8!important;
  background:#fff!important;
  padding:8px 0 4px!important;
  margin-top:6px!important;
  box-shadow:0 -8px 16px rgba(8,39,106,.06)!important;
}
.r4-smart-edit-feedback{min-height:18px!important}

/* AGROLOGIX R67I SQUARE ANIMAL PHOTO */
.r67i-square-animal-photo-wrap{
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;
  height:220px!important;
  min-height:220px!important;
  max-height:220px!important;
  aspect-ratio:1 / 1!important;
  overflow:hidden!important;
  border-radius:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#eef5f0!important;
}
.r67i-square-animal-photo{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  aspect-ratio:1 / 1!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
  border-radius:16px!important;
}
@media (max-width:1180px){
  .r67i-square-animal-photo-wrap{
    width:180px!important;
    min-width:180px!important;
    max-width:180px!important;
    height:180px!important;
    min-height:180px!important;
    max-height:180px!important;
  }
}
/* AGROLOGIX R4 — REGISTRAR VENTA APPROVED MOCKUP R1 */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r3bContent{display:block!important;visibility:visible!important;position:relative!important;background:#f5f8fb!important;overflow:hidden!important}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-page{height:100%!important;min-height:0!important;padding:14px 18px 12px!important;box-sizing:border-box!important;overflow:auto!important;background:#f5f8fb!important;color:#102847!important;font-family:Arial,Helvetica,sans-serif!important}
.r4-sale-register-page *{box-sizing:border-box}
.r4-sale-heading{height:58px!important;display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 10px!important}
.r4-sale-title-icon{width:38px!important;height:38px!important;border-radius:50%!important;background:#078c50!important;display:grid!important;place-items:center!important;flex:none!important}
.r4-sale-title-icon svg{width:24px!important;height:24px!important;fill:none!important;stroke:white!important;stroke-width:2!important}
.r4-sale-heading h1{margin:0!important;color:#101f32!important;font-size:30px!important;line-height:34px!important;font-weight:800!important}
.r4-sale-heading p{margin:3px 0 0!important;color:#63748d!important;font-size:14px!important}
.r4-sale-stepper{height:66px!important;background:#fff!important;border:1px solid #dbe4ec!important;border-radius:9px!important;display:grid!important;grid-template-columns:auto 1fr auto 1fr auto 1fr auto!important;align-items:center!important;padding:0 38px!important;margin-bottom:12px!important}
.r4-sale-stepper>div{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.r4-sale-stepper>b{}
.r4-sale-stepper>div>b{width:36px!important;height:36px!important;border-radius:50%!important;background:#e9eef2!important;color:#12283e!important;display:grid!important;place-items:center!important;font-size:14px!important;flex:none!important}
.r4-sale-stepper>div.is-active>b{background:#08a85d!important;color:#fff!important}
.r4-sale-stepper span{display:flex!important;flex-direction:column!important;gap:2px!important;white-space:nowrap!important}
.r4-sale-stepper strong{font-size:12px!important;font-weight:500!important}
.r4-sale-stepper small{font-size:10px!important;color:#7b8a9d!important}
.r4-sale-stepper .is-active strong,.r4-sale-stepper .is-active small{color:#078c50!important}
.r4-sale-stepper>i{height:1px!important;background:#cfd8df!important;margin:0 14px!important}
.r4-sale-form{display:flex!important;flex-direction:column!important;gap:12px!important;min-height:0!important}
.r4-sale-top{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(290px,1fr)!important;gap:12px!important}
.r4-sale-card{background:#fff!important;border:1px solid #dbe4ec!important;border-radius:9px!important;box-shadow:0 1px 2px rgba(19,48,75,.03)!important}
.r4-sale-card h2{margin:0!important;font-size:17px!important;line-height:22px!important;color:#152a43!important;font-weight:700!important;display:flex!important;align-items:center!important;gap:10px!important}
.r4-sale-card-icon{color:#079653!important;font-size:23px!important;line-height:1!important}
.r4-sale-data{padding:14px 16px!important}
.r4-sale-data-grid{display:grid!important;grid-template-columns:1fr 1.6fr!important;gap:12px 14px!important;margin-top:12px!important}
.r4-sale-data-grid label,.r4-sale-filters label{font-size:12px!important;color:#1d324a!important;display:flex!important;flex-direction:column!important;gap:5px!important;position:relative!important}
.r4-sale-data-grid em{font-style:normal!important;color:#ef344b!important}
.r4-sale-data-grid input,.r4-sale-data-grid select,.r4-sale-data-grid textarea,.r4-sale-filters select,.r4-sale-search input{height:39px!important;border:1px solid #cdd9e5!important;border-radius:6px!important;background:#fff!important;color:#24364d!important;padding:0 12px!important;font-size:12px!important;outline:0!important}
.r4-sale-data-grid textarea{height:72px!important;padding-top:10px!important;resize:none!important}
.r4-sale-inline{display:grid!important;grid-template-columns:1fr 92px!important;gap:8px!important}
.r4-sale-inline button{height:39px!important;border:1px solid #0fa45e!important;border-radius:6px!important;background:#fff!important;color:#078c50!important;font-size:12px!important}
.r4-sale-count{position:absolute!important;right:8px!important;bottom:5px!important;font-size:9px!important;color:#75879a!important}
.r4-sale-summary{padding:14px!important}
.r4-sale-summary h2{margin-bottom:12px!important}
.r4-sale-summary-row{min-height:57px!important;border-radius:7px!important;background:#f8fbfa!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;grid-template-rows:1fr 1fr!important;align-items:center!important;padding:5px 8px!important;margin-bottom:6px!important}
.r4-sale-round{grid-row:1/3!important;width:42px!important;height:42px!important;border-radius:8px!important;background:#eef8f3!important;color:#079653!important;display:grid!important;place-items:center!important;font-size:20px!important;font-weight:700!important}
.r4-sale-summary-row small{font-size:11px!important;color:#20354b!important;align-self:end!important}
.r4-sale-summary-row strong{grid-row:1/3!important;grid-column:3!important;font-size:18px!important;color:#10243b!important;white-space:nowrap!important}
.r4-sale-summary-row em{grid-column:2!important;font-size:9px!important;color:#09a45e!important;font-style:normal!important;align-self:start!important}
.r4-sale-animals{padding:12px 16px 10px!important}
.r4-sale-filters{display:grid!important;grid-template-columns:1fr 1fr 1fr 1.3fr!important;gap:14px!important;margin:10px 0!important}
.r4-sale-search{justify-content:end!important}
.r4-sale-search input{padding-right:35px!important}
.r4-sale-search span{position:absolute!important;right:12px!important;bottom:9px!important;font-size:18px!important;color:#163a61!important}
.r4-sale-table-wrap{border:1px solid #dbe4ec!important;border-radius:7px!important;overflow:hidden!important}
.r4-sale-table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}
.r4-sale-table thead{background:#eef3f7!important}
.r4-sale-table th{height:30px!important;padding:0 8px!important;text-align:left!important;color:#18314c!important;font-size:10px!important;font-weight:700!important;white-space:nowrap!important}
.r4-sale-table td{height:31px!important;padding:0 8px!important;border-top:1px solid #e4eaf0!important;color:#263d56!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.r4-sale-table th:first-child,.r4-sale-table td:first-child{width:38px!important;text-align:center!important}
.r4-sale-table th:nth-child(2){width:120px!important}.r4-sale-table th:nth-child(5){width:120px!important}.r4-sale-table th:nth-child(6){width:105px!important}.r4-sale-table th:nth-child(7){width:110px!important}.r4-sale-table th:nth-child(8){width:100px!important}
.r4-sale-status{display:inline-grid!important;place-items:center!important;min-width:82px!important;height:22px!important;border-radius:11px!important;background:#cff4df!important;color:#078c50!important;font-size:9px!important}
.r4-sale-empty{text-align:center!important;color:#78889a!important;height:80px!important}
.r4-sale-table-footer{height:42px!important;display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;color:#60748a!important;font-size:10px!important}
.r4-sale-table-footer>label{justify-self:end!important;display:flex!important;align-items:center!important;gap:8px!important}
.r4-sale-table-footer select{height:30px!important;border:1px solid #d6e0e8!important;border-radius:5px!important}
.r4-sale-pages{display:flex!important;gap:6px!important}
.r4-sale-pages button{width:30px!important;height:30px!important;border:1px solid #d6e0e8!important;border-radius:5px!important;background:#fff!important;color:#3a5067!important}
.r4-sale-pages button.active{background:#e6edf2!important;color:#102c49!important}
.r4-sale-actions{display:flex!important;justify-content:space-between!important;align-items:center!important}
.r4-sale-actions>button{height:42px!important;border-radius:6px!important;padding:0 28px!important;font-size:12px!important;font-weight:600!important}
.r4-sale-cancel{border:1px solid #c7d4df!important;background:#f7f9fb!important;color:#2b4057!important}
.r4-sale-next{border:0!important;background:linear-gradient(90deg,#07954f,#0ab968)!important;color:#fff!important;min-width:135px!important}
.r4-sale-hidden-functional{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.r4-sale-register-page .r3b-feedback{margin:0!important;min-height:18px!important;font-size:11px!important}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4x-nav [data-r4x-route]{background:transparent!important}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4x-nav [data-r4x-route="sale-register"]{background:#08a85d!important;color:#fff!important}
@media(max-width:1250px){
  .r4-sale-top{grid-template-columns:1fr!important}
  .r4-sale-summary{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:6px!important}
  .r4-sale-summary h2{grid-column:1/-1!important}
  .r4-sale-filters{grid-template-columns:repeat(2,1fr)!important}
}
/* AGROLOGIX R4 — REGISTRAR VENTA R2 MOCKUP PARITY */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r2{padding-top:10px!important}
.r4-sale-register-r2 .r4-sale-heading{height:50px!important;margin-bottom:7px!important}
.r4-sale-register-r2 .r4-sale-title-icon{width:36px!important;height:36px!important}
.r4-sale-register-r2 .r4-sale-title-icon svg{width:22px!important;height:22px!important;fill:none!important;stroke:#fff!important;stroke-width:2!important}
.r4-sale-register-r2 .r4-sale-heading h1{font-size:29px!important;line-height:31px!important}
.r4-sale-register-r2 .r4-sale-heading p{font-size:13px!important;margin-top:1px!important}
.r4-sale-register-r2 .r4-sale-stepper{height:58px!important;margin-bottom:9px!important;padding:0 30px!important}
.r4-sale-register-r2 .r4-sale-stepper>div>b{width:34px!important;height:34px!important}
.r4-sale-register-r2 .r4-sale-stepper strong{font-size:11px!important}.r4-sale-register-r2 .r4-sale-stepper small{font-size:9px!important}
.r4-sale-register-r2 .r4-sale-form{gap:9px!important}
.r4-sale-register-r2 .r4-sale-top{grid-template-columns:minmax(0,2.05fr) minmax(300px,1fr)!important;gap:10px!important;max-height:286px!important}
.r4-sale-register-r2 .r4-sale-data{padding:11px 14px!important}
.r4-sale-register-r2 .r4-sale-card h2{font-size:16px!important;line-height:20px!important}
.r4-sale-register-r2 .r4-sale-card-icon{width:24px!important;height:24px!important;display:grid!important;place-items:center!important;color:#009652!important}
.r4-sale-register-r2 .r4-sale-card-icon svg{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.r4-sale-register-r2 .r4-sale-data-grid{gap:8px 12px!important;margin-top:8px!important}
.r4-sale-register-r2 .r4-sale-data-grid input,.r4-sale-register-r2 .r4-sale-data-grid select{height:34px!important;font-size:11px!important}
.r4-sale-register-r2 .r4-sale-data-grid textarea{height:52px!important;padding-top:8px!important;font-size:11px!important}
.r4-sale-register-r2 .r4-sale-data-grid label,.r4-sale-register-r2 .r4-sale-filters label{font-size:10.5px!important;gap:3px!important}
.r4-sale-register-r2 .r4-sale-inline{grid-template-columns:1fr 90px!important;gap:7px!important}.r4-sale-register-r2 .r4-sale-inline button{height:34px!important;font-size:11px!important}
.r4-sale-register-r2 .r4-sale-summary{padding:11px 12px!important}.r4-sale-register-r2 .r4-sale-summary h2{margin-bottom:7px!important}
.r4-sale-register-r2 .r4-sale-summary-row{min-height:45px!important;height:45px!important;padding:3px 7px!important;margin-bottom:4px!important;grid-template-columns:42px minmax(0,1fr) auto!important}
.r4-sale-register-r2 .r4-sale-round{width:36px!important;height:36px!important;border-radius:8px!important;background:#eef8f3!important;color:#009652!important}
.r4-sale-register-r2 .r4-sale-round svg{width:23px!important;height:23px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.r4-sale-register-r2 .r4-sale-summary-row small{font-size:10px!important}.r4-sale-register-r2 .r4-sale-summary-row strong{font-size:16px!important}.r4-sale-register-r2 .r4-sale-summary-row em{font-size:8px!important}
.r4-sale-register-r2 .r4-sale-animals{padding:10px 14px 8px!important;min-height:318px!important;display:flex!important;flex-direction:column!important}
.r4-sale-register-r2 .r4-sale-filters{grid-template-columns:1fr 1fr 1fr 1.25fr!important;gap:12px!important;margin:8px 0!important}
.r4-sale-register-r2 .r4-sale-filters select,.r4-sale-register-r2 .r4-sale-search input{height:34px!important;font-size:10.5px!important}
.r4-sale-register-r2 .r4-sale-search span{right:11px!important;bottom:7px!important;width:20px!important;height:20px!important;display:grid!important;place-items:center!important;color:#173b61!important}
.r4-sale-register-r2 .r4-sale-search span svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
.r4-sale-register-r2 .r4-sale-table-wrap{flex:1 1 auto!important;min-height:175px!important}
.r4-sale-register-r2 .r4-sale-table th{height:28px!important;font-size:9.5px!important}
.r4-sale-register-r2 .r4-sale-table td{height:29px!important;font-size:9.5px!important}
.r4-sale-register-r2 .r4-sale-status{height:20px!important;min-width:78px!important;font-size:8.5px!important}
.r4-sale-register-r2 .r4-sale-table-footer{height:38px!important;font-size:9.5px!important}
.r4-sale-register-r2 .r4-sale-pages button{width:28px!important;height:28px!important;font-size:10px!important}
.r4-sale-register-r2 .r4-sale-table-footer select{height:28px!important}
.r4-sale-register-r2 .r4-sale-actions>button{height:38px!important;font-size:11px!important;display:flex!important;align-items:center!important;gap:8px!important}
.r4-sale-register-r2 .r4-sale-actions button svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
/* AGROLOGIX R4 — REGISTRAR VENTA R3 INTERNAL SCROLL + DASHBOARD SCOPES */
.r4-sale-register-r3 .r4-sale-scopebar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 8px!important;padding:0!important}
.r4-sale-register-r3 .r4-sale-scopebar label{display:flex!important;flex-direction:column!important;gap:3px!important;font-size:9.5px!important;color:#2d435c!important}
.r4-sale-register-r3 .r4-sale-scopebar select{height:32px!important;border:1px solid #cfdae5!important;border-radius:6px!important;background:#fff!important;padding:0 10px!important;color:#1f3650!important;font-size:10.5px!important}
.r4-sale-register-r3 .r4-sale-heading{height:44px!important;margin-bottom:5px!important}
.r4-sale-register-r3 .r4-sale-stepper{height:52px!important;margin-bottom:7px!important}
.r4-sale-register-r3 .r4-sale-top{max-height:250px!important}
.r4-sale-register-r3 .r4-sale-data{padding:9px 12px!important}
.r4-sale-register-r3 .r4-sale-data-grid{gap:6px 10px!important;margin-top:6px!important}
.r4-sale-register-r3 .r4-sale-data-grid input,.r4-sale-register-r3 .r4-sale-data-grid select{height:30px!important}
.r4-sale-register-r3 .r4-sale-data-grid textarea{height:42px!important}
.r4-sale-register-r3 .r4-sale-inline button{height:30px!important}
.r4-sale-register-r3 .r4-sale-summary{padding:9px 10px!important}
.r4-sale-register-r3 .r4-sale-summary-row{height:39px!important;min-height:39px!important;margin-bottom:3px!important}
.r4-sale-register-r3 .r4-sale-round{width:32px!important;height:32px!important}
.r4-sale-register-r3 .r4-sale-animal-icon img,.r4-sale-register-r3 .r4-sale-heading-animal img{width:23px!important;height:23px!important;object-fit:contain!important;display:block!important}
.r4-sale-register-r3 .r4-sale-heading-animal{background:transparent!important}
.r4-sale-register-r3 .r4-sale-animals{min-height:360px!important;height:360px!important;overflow:hidden!important;padding-bottom:6px!important}
.r4-sale-register-r3 .r4-sale-filters{flex:0 0 auto!important;margin:7px 0!important}
.r4-sale-register-r3 .r4-sale-table-wrap{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important}
.r4-sale-register-r3 .r4-sale-table{min-width:100%!important}
.r4-sale-register-r3 .r4-sale-table thead{position:sticky!important;top:0!important;z-index:3!important}
.r4-sale-register-r3 .r4-sale-table-footer{flex:0 0 34px!important;height:34px!important}
.r4-sale-register-r3 .r4-sale-table td{height:28px!important}
/* AGROLOGIX R4 - REGISTRAR VENTA R4 ICON + INTERNAL SCROLL PARITY */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3{
  height:100%!important;
  max-height:100%!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3>.r4-sale-scopebar,
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3>.r4-sale-heading,
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3>.r4-sale-stepper{
  flex:0 0 auto!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3>.r4-sale-form{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.r4-sale-register-r3 .r4-sale-top{
  flex:0 0 232px!important;
  min-height:232px!important;
  max-height:232px!important;
}
.r4-sale-register-r3 .r4-sale-animals{
  flex:1 1 auto!important;
  min-height:255px!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.r4-sale-register-r3 .r4-sale-animals>h2,
.r4-sale-register-r3 .r4-sale-filters,
.r4-sale-register-r3 .r4-sale-table-footer{
  flex:0 0 auto!important;
}
.r4-sale-register-r3 .r4-sale-table-wrap{
  flex:1 1 auto!important;
  min-height:120px!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior:contain!important;
  border:1px solid #dbe4ec!important;
  border-radius:7px!important;
  background:#fff!important;
}
.r4-sale-register-r3 .r4-sale-table{
  width:100%!important;
  min-width:980px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.r4-sale-register-r3 .r4-sale-table thead{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  background:#eef3f7!important;
}
.r4-sale-register-r3 .r4-sale-table th{
  position:sticky!important;
  top:0!important;
  z-index:6!important;
  background:#eef3f7!important;
}
.r4-sale-register-r3 .r4-sale-table-footer{
  height:34px!important;
  min-height:34px!important;
}
.r4-sale-register-r3 .r4-sale-actions{
  flex:0 0 38px!important;
  min-height:38px!important;
}
.r4-sale-register-r3 .r4-sale-heading-animal,
.r4-sale-register-r3 .r4-sale-animal-icon{
  color:#079653!important;
}
.r4-sale-register-r3 .r4-sale-cow-svg{
  display:block!important;
  width:25px!important;
  height:21px!important;
  fill:currentColor!important;
  stroke:none!important;
}
.r4-sale-register-r3 .r4-sale-animal-icon .r4-sale-cow-svg{
  width:26px!important;
  height:22px!important;
}
.r4-sale-register-r3 .r4-sale-cow-svg .r4-sale-cow-eye{
  fill:#fff!important;
}
.r4-sale-register-r3 .r4-sale-summary .r4-sale-card-icon svg,
.r4-sale-register-r3 .r4-sale-data .r4-sale-card-icon svg{
  fill:none!important;
  stroke:#079653!important;
  stroke-width:1.8!important;
}
/* AGROLOGIX R4 - REGISTRAR VENTA R5 APPROVED-MOCKUP PIXEL ICONS + TRUE CONTAINMENT */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r3bContent{
  height:calc(100vh - 70px)!important;
  max-height:calc(100vh - 70px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3{
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:40px 44px 50px minmax(0,1fr)!important;
  gap:6px!important;
  padding:8px 18px 8px!important;
}
.r4-sale-register-r3>.r4-sale-scopebar{margin:0!important;align-self:stretch!important}
.r4-sale-register-r3>.r4-sale-heading{height:auto!important;margin:0!important;min-height:0!important}
.r4-sale-register-r3>.r4-sale-stepper{height:auto!important;margin:0!important;min-height:0!important}
.r4-sale-register-r3>.r4-sale-form{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:218px minmax(0,1fr) 38px!important;
  gap:7px!important;
}
.r4-sale-register-r3 .r4-sale-top{
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  overflow:hidden!important;
}
.r4-sale-register-r3 .r4-sale-data,
.r4-sale-register-r3 .r4-sale-summary{
  min-height:0!important;
  max-height:218px!important;
  overflow:hidden!important;
}
.r4-sale-register-r3 .r4-sale-animals{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:25px 49px minmax(0,1fr) 32px!important;
  gap:0!important;
  padding:8px 14px 5px!important;
}
.r4-sale-register-r3 .r4-sale-animals>h2{align-self:center!important}
.r4-sale-register-r3 .r4-sale-filters{margin:3px 0 6px!important;align-self:stretch!important}
.r4-sale-register-r3 .r4-sale-table-wrap{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior:contain!important;
  contain:layout paint!important;
}
.r4-sale-register-r3 .r4-sale-table{
  min-width:980px!important;
  width:100%!important;
}
.r4-sale-register-r3 .r4-sale-table thead,
.r4-sale-register-r3 .r4-sale-table th{
  position:sticky!important;
  top:0!important;
  z-index:8!important;
  background:#eef3f7!important;
}
.r4-sale-register-r3 .r4-sale-table-footer{
  height:32px!important;
  min-height:32px!important;
  align-self:end!important;
}
.r4-sale-register-r3 .r4-sale-actions{
  height:38px!important;
  min-height:38px!important;
  overflow:visible!important;
}
.r4-sale-register-r3 .r4-sale-pixel-title{
  width:46px!important;height:45px!important;border:0!important;background:transparent!important;border-radius:0!important;overflow:hidden!important;
}
.r4-sale-register-r3 .r4-sale-pixel-title img{display:block!important;width:46px!important;height:45px!important;object-fit:contain!important}
.r4-sale-register-r3 .r4-sale-pixel-head{width:30px!important;height:33px!important;display:inline-block!important;background:transparent!important}
.r4-sale-register-r3 .r4-sale-pixel-head img{display:block!important;width:30px!important;height:33px!important;object-fit:contain!important}
.r4-sale-register-r3 .r4-sale-summary-pixel-icon{grid-row:1/3!important;width:64px!important;height:58px!important;object-fit:contain!important;display:block!important;margin-left:-4px!important}
.r4-sale-register-r3 .r4-sale-summary-row{grid-template-columns:64px minmax(0,1fr) auto!important;padding-left:0!important}
.r4-sale-register-r3 .r4-sale-pixel-animal-head{width:39px!important;height:33px!important;background:transparent!important;display:inline-block!important}
.r4-sale-register-r3 .r4-sale-pixel-animal-head img{display:block!important;width:39px!important;height:33px!important;object-fit:contain!important}
.r4-sale-register-r3 .r4-sale-btn-pixel-icon{width:32px!important;height:32px!important;object-fit:contain!important;display:block!important;margin:-1px 0!important}
.r4-sale-register-r3 .r4-sale-next-pixel{margin-right:-12px!important}
/* AGROLOGIX R4 - REGISTRAR VENTA R6 VIEWPORT CONTAINMENT + SUMMARY UNCLIP + INTERNAL SCROLL */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r3bContent{
  height:calc(100vh - 64px)!important;
  max-height:calc(100vh - 64px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3{
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:36px 42px 46px minmax(0,1fr)!important;
  gap:5px!important;
  padding:6px 18px 6px!important;
}
.r4-sale-register-r3>.r4-sale-form{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:206px minmax(0,1fr) 42px!important;
  gap:6px!important;
}
.r4-sale-register-r3 .r4-sale-top{
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:minmax(0,2.15fr) minmax(320px,1fr)!important;
  gap:12px!important;
}
.r4-sale-register-r3 .r4-sale-data{
  min-height:0!important;
  max-height:206px!important;
  padding:8px 14px!important;
  overflow:hidden!important;
}
.r4-sale-register-r3 .r4-sale-summary{
  min-height:0!important;
  max-height:206px!important;
  padding:8px 12px!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:26px repeat(4,minmax(0,1fr))!important;
  gap:5px!important;
}
.r4-sale-register-r3 .r4-sale-summary h2{
  margin:0!important;
  align-self:center!important;
}
.r4-sale-register-r3 .r4-sale-summary-row{
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:4px 8px 4px 2px!important;
  grid-template-columns:62px minmax(0,1fr) auto!important;
  align-items:center!important;
}
.r4-sale-register-r3 .r4-sale-summary-pixel-icon{
  width:58px!important;
  height:52px!important;
  margin-left:-2px!important;
}
.r4-sale-register-r3 .r4-sale-summary-row small{
  font-size:10px!important;
  line-height:12px!important;
}
.r4-sale-register-r3 .r4-sale-summary-row strong{
  font-size:15px!important;
  line-height:18px!important;
  align-self:center!important;
}
.r4-sale-register-r3 .r4-sale-summary-row em{
  font-size:10px!important;
  line-height:12px!important;
}
.r4-sale-register-r3 .r4-sale-animals{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:27px 50px minmax(0,1fr) 30px!important;
  gap:0!important;
  padding:8px 14px 4px!important;
}
.r4-sale-register-r3 .r4-sale-animals>h2{
  margin:0!important;
  align-self:center!important;
}
.r4-sale-register-r3 .r4-sale-filters{
  margin:3px 0 5px!important;
  align-self:stretch!important;
}
.r4-sale-register-r3 .r4-sale-table-wrap{
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior:contain!important;
  contain:layout paint!important;
  border:1px solid #dbe4ec!important;
  border-radius:7px!important;
  background:#fff!important;
}
.r4-sale-register-r3 .r4-sale-table{
  min-width:980px!important;
  width:100%!important;
}
.r4-sale-register-r3 .r4-sale-table thead,
.r4-sale-register-r3 .r4-sale-table th{
  position:sticky!important;
  top:0!important;
  z-index:8!important;
  background:#eef3f7!important;
}
.r4-sale-register-r3 .r4-sale-table-footer{
  height:30px!important;
  min-height:30px!important;
  margin-top:4px!important;
  align-self:end!important;
}
.r4-sale-register-r3 .r4-sale-pages button{
  width:30px!important;
  height:28px!important;
}
.r4-sale-register-r3 .r4-sale-table-footer select{
  height:28px!important;
}
.r4-sale-register-r3 .r4-sale-actions{
  height:42px!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:0 2px!important;
  overflow:visible!important;
}
.r4-sale-register-r3 .r4-sale-actions>button{
  height:38px!important;
  min-height:38px!important;
}
.r4-sale-register-r3 .r4-sale-next{
  margin-left:auto!important;
}
/* AGROLOGIX R4 - REGISTRAR VENTA R7 MISSING_ICON + INTERNAL_SCROLL + VIEWPORT_BOTTOM */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r3bContent{
  height:calc(100vh - 58px)!important;
  max-height:calc(100vh - 58px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3{
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:34px 40px 44px minmax(0,1fr)!important;
  gap:4px!important;
  padding:5px 16px 5px!important;
}
.r4-sale-register-r3>.r4-sale-form{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:190px minmax(0,1fr) 40px!important;
  gap:5px!important;
}
.r4-sale-register-r3 .r4-sale-top{
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:minmax(0,2.22fr) minmax(300px,1fr)!important;
  gap:10px!important;
}
.r4-sale-register-r3 .r4-sale-data{
  max-height:190px!important;
  padding:7px 13px!important;
}
.r4-sale-register-r3 .r4-sale-data h2,
.r4-sale-register-r3 .r4-sale-summary h2{
  margin:0!important;
}
.r4-sale-register-r3 .r4-sale-data-grid{
  gap:5px 9px!important;
  margin-top:4px!important;
}
.r4-sale-register-r3 .r4-sale-data-grid input,
.r4-sale-register-r3 .r4-sale-data-grid select{
  height:28px!important;
}
.r4-sale-register-r3 .r4-sale-data-grid textarea{
  height:32px!important;
}
.r4-sale-register-r3 .r4-sale-inline button{
  height:28px!important;
}
.r4-sale-register-r3 .r4-sale-summary{
  max-height:190px!important;
  padding:7px 10px!important;
  grid-template-rows:24px repeat(4,minmax(0,1fr))!important;
  gap:4px!important;
}
.r4-sale-register-r3 .r4-sale-summary-row{
  min-height:0!important;
  height:auto!important;
  padding:2px 8px 2px 2px!important;
  grid-template-columns:58px minmax(0,1fr) auto!important;
}
.r4-sale-register-r3 .r4-sale-summary-pixel-icon{
  width:54px!important;
  height:48px!important;
  margin-left:-1px!important;
}
.r4-sale-register-r3 .r4-sale-summary-row strong{
  font-size:14px!important;
  line-height:16px!important;
}
.r4-sale-register-r3 .r4-sale-summary-row small,
.r4-sale-register-r3 .r4-sale-summary-row em{
  font-size:9.5px!important;
  line-height:11px!important;
}
.r4-sale-register-r3 .r4-sale-animals{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:25px 46px minmax(0,1fr) 28px!important;
  gap:0!important;
  padding:7px 13px 3px!important;
}
.r4-sale-register-r3 .r4-sale-animals>h2{
  margin:0!important;
  align-self:center!important;
}
.r4-sale-register-r3 .r4-sale-filters{
  margin:2px 0 4px!important;
}
.r4-sale-register-r3 .r4-sale-filters select,
.r4-sale-register-r3 .r4-sale-search input{
  height:30px!important;
}
.r4-sale-register-r3 .r4-sale-table-wrap{
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior:contain!important;
  contain:layout paint!important;
  border:1px solid #dbe4ec!important;
  border-radius:7px!important;
  background:#fff!important;
}
.r4-sale-register-r3 .r4-sale-table{
  min-width:960px!important;
  width:100%!important;
}
.r4-sale-register-r3 .r4-sale-table thead,
.r4-sale-register-r3 .r4-sale-table th{
  position:sticky!important;
  top:0!important;
  z-index:8!important;
  background:#eef3f7!important;
}
.r4-sale-register-r3 .r4-sale-table td{
  height:26px!important;
}
.r4-sale-register-r3 .r4-sale-table-footer{
  height:28px!important;
  min-height:28px!important;
  margin-top:3px!important;
}
.r4-sale-register-r3 .r4-sale-pages button{
  width:28px!important;
  height:26px!important;
}
.r4-sale-register-r3 .r4-sale-table-footer select{
  height:26px!important;
}
.r4-sale-register-r3 .r4-sale-actions{
  height:40px!important;
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  overflow:visible!important;
}
.r4-sale-register-r3 .r4-sale-actions>button{
  height:36px!important;
  min-height:36px!important;
}
.r4-sale-register-r3 .r4-sale-next{
  margin-left:auto!important;
}
/* AGROLOGIX R4 - REGISTRAR VENTA R8 SEVEN_VISIBLE_ROWS + INTERNAL_SCROLL + BOTTOM_ACTIONS */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r3bContent{
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3{
  overflow:hidden!important;
}
.r4-sale-register-r3>.r4-sale-form{
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:184px 323px 40px!important;
  align-content:start!important;
  gap:6px!important;
}
.r4-sale-register-r3 .r4-sale-top{
  height:184px!important;
  min-height:184px!important;
  max-height:184px!important;
  overflow:hidden!important;
}
.r4-sale-register-r3 .r4-sale-data,
.r4-sale-register-r3 .r4-sale-summary{
  height:184px!important;
  min-height:184px!important;
  max-height:184px!important;
  overflow:hidden!important;
}
.r4-sale-register-r3 .r4-sale-animals{
  height:323px!important;
  min-height:323px!important;
  max-height:323px!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:25px 46px 210px 28px!important;
  gap:0!important;
}
.r4-sale-register-r3 .r4-sale-table-wrap{
  height:210px!important;
  min-height:210px!important;
  max-height:210px!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior:contain!important;
  contain:layout paint!important;
  position:relative!important;
}
.r4-sale-register-r3 .r4-sale-table{
  width:100%!important;
  min-width:960px!important;
  height:auto!important;
}
.r4-sale-register-r3 .r4-sale-table thead{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
}
.r4-sale-register-r3 .r4-sale-table th{
  position:sticky!important;
  top:0!important;
  z-index:21!important;
  background:#eef3f7!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
}
.r4-sale-register-r3 .r4-sale-table td{
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
}
.r4-sale-register-r3 .r4-sale-table-footer{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin-top:3px!important;
}
.r4-sale-register-r3 .r4-sale-actions{
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  position:sticky!important;
  bottom:0!important;
  z-index:30!important;
  background:#f5f8fb!important;
  padding:1px 2px!important;
  overflow:visible!important;
}
.r4-sale-register-r3 .r4-sale-actions>button{
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
}
/* AGROLOGIX R4 - SALES FLOW R2 ISOLATED TO SALES ROUTES ONLY */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-green-action{
  background:#08a85d!important;
  color:#fff!important;
  border:1px solid #078c50!important;
  box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-green-action:hover{
  background:#078f50!important;
  color:#fff!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-flow-buttons{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-stage-panel{
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  padding:18px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-terms-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin-top:16px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-terms-grid label{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  font-size:12px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-terms-grid input,
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-terms-grid select{
  height:38px!important;
  border:1px solid #cdd9e5!important;
  border-radius:6px!important;
  padding:0 10px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-confirm-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:16px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-confirm-grid>div{
  background:#f7faf9!important;
  border:1px solid #dfe8e3!important;
  border-radius:8px!important;
  padding:14px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-confirm-grid span{
  display:block!important;
  color:#6e7f90!important;
  font-size:10px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-confirm-grid strong{
  display:block!important;
  margin-top:5px!important;
  color:#102847!important;
  font-size:16px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-confirm-note,
body.r4-shell.auth-authenticated[data-r4-view="sales-history"] .r4-sales-test-note{
  margin-top:14px!important;
  color:#557086!important;
  font-size:11px!important;
}
/* AGROLOGIX R4 - SALES FLOW R3 HISTORY ENTRY + STANDARD PRIMARY BUTTONS */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-standard-action{
  min-width:132px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 22px!important;
  border-radius:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:700!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r4SaleCancel,
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #salePreviewButton{
  background:#078c50!important;
  border-color:#078c50!important;
  color:#fff!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r4SaleCancel:hover,
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #salePreviewButton:hover{
  background:#067844!important;
  border-color:#067844!important;
  color:#fff!important;
}
/* AGROLOGIX R4 - SALES HISTORY MOCKUP R1 */
.r4-sales-history-r4{
  padding:18px 20px 14px!important;
  background:#f5f8fb!important;
  color:#102847!important;
}
.r4-sales-history-r4 .r4-sh-head{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:20px!important;
  margin-bottom:16px!important;
}
.r4-sales-history-r4 .r4-sh-kicker{
  color:#078c50!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:2px!important;
  margin-bottom:4px!important;
}
.r4-sales-history-r4 .r4-sh-head h1{
  margin:0!important;
  font-size:34px!important;
  line-height:1.05!important;
  font-weight:800!important;
  color:#102847!important;
}
.r4-sales-history-r4 .r4-sh-head p{
  margin:5px 0 0!important;
  font-size:14px!important;
  color:#61758a!important;
}
.r4-sales-history-r4 .r4-sh-new{
  height:46px!important;
  min-width:207px!important;
  padding:0 20px!important;
  border:0!important;
  border-radius:9px!important;
  background:#078c50!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:700!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  box-shadow:none!important;
}
.r4-sales-history-r4 .r4-sh-new img{
  width:31px!important;
  height:26px!important;
  object-fit:cover!important;
}
.r4-sales-history-r4 .r4-sh-scope{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  padding:13px 18px!important;
  margin-bottom:18px!important;
  border:1px solid #dbe4ec!important;
  border-radius:10px!important;
  background:#fff!important;
}
.r4-sales-history-r4 .r4-sh-scope label{
  height:43px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  border:1px solid #d5dfe8!important;
  border-radius:8px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.r4-sales-history-r4 .r4-sh-scope img{
  width:44px!important;
  height:37px!important;
  object-fit:cover!important;
}
.r4-sales-history-r4 .r4-sh-scope select{
  width:100%!important;
  height:100%!important;
  border:0!important;
  outline:0!important;
  background:#fff!important;
  color:#102847!important;
  font-size:12px!important;
  font-weight:700!important;
  padding:0 12px!important;
}
.r4-sales-history-r4 .r4-sh-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  margin-bottom:20px!important;
}
.r4-sales-history-r4 .r4-sh-kpis article{
  min-height:116px!important;
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  align-items:center!important;
  gap:16px!important;
  padding:14px 18px!important;
  background:#fff!important;
  border:1px solid #dbe4ec!important;
  border-radius:10px!important;
  border-top-width:3px!important;
}
.r4-sales-history-r4 .r4-sh-kpis article.sales{border-top-color:#079653!important}
.r4-sales-history-r4 .r4-sh-kpis article.confirmed{border-top-color:#22b573!important}
.r4-sales-history-r4 .r4-sh-kpis article.net{border-top-color:#2c9ed2!important}
.r4-sales-history-r4 .r4-sh-kpis article.voided{border-top-color:#f0aa18!important}
.r4-sales-history-r4 .r4-sh-kpis img{
  width:58px!important;
  height:61px!important;
  object-fit:cover!important;
}
.r4-sales-history-r4 .r4-sh-kpis span{
  display:block!important;
  font-size:12px!important;
  color:#476079!important;
  font-weight:700!important;
}
.r4-sales-history-r4 .r4-sh-kpis strong{
  display:block!important;
  margin:4px 0!important;
  font-size:25px!important;
  line-height:1!important;
  color:#082855!important;
}
.r4-sales-history-r4 .r4-sh-kpis small{
  display:block!important;
  font-size:12px!important;
  color:#6c7f90!important;
}
.r4-sales-history-r4 .r4-sh-card{
  background:#fff!important;
  border:1px solid #dbe4ec!important;
  border-radius:11px!important;
  padding:17px 18px 20px!important;
}
.r4-sales-history-r4 .r4-sh-card-head{
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.r4-sales-history-r4 .r4-sh-card-head>img{
  width:38px!important;
  height:40px!important;
  object-fit:cover!important;
}
.r4-sales-history-r4 .r4-sh-card-head h2{
  margin:0!important;
  font-size:18px!important;
  line-height:1.2!important;
  color:#102847!important;
}
.r4-sales-history-r4 .r4-sh-card-head p{
  margin:4px 0 0!important;
  font-size:12px!important;
  color:#65798d!important;
}
.r4-sales-history-r4 .r4-sh-table-wrap{
  border:1px solid #dce5ec!important;
  border-radius:9px!important;
  overflow:hidden!important;
}
.r4-sales-history-r4 .r4-sh-table{
  width:100%!important;
  border-collapse:collapse!important;
}
.r4-sales-history-r4 .r4-sh-table thead{
  background:#f0f5f7!important;
}
.r4-sales-history-r4 .r4-sh-table th{
  height:43px!important;
  padding:0 14px!important;
  text-align:left!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.25px!important;
  color:#587083!important;
}
.r4-sales-history-r4 .r4-sh-table td{
  height:56px!important;
  padding:0 14px!important;
  border-top:1px solid #e4e9ee!important;
  font-size:12px!important;
  color:#173b61!important;
}
.r4-sales-history-r4 .r4-sh-status{
  min-width:90px!important;
  height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:14px!important;
  padding:0 11px!important;
  font-size:10px!important;
  font-weight:800!important;
}
.r4-sales-history-r4 .r4-sh-status.confirmed{background:#d9f4e5!important;color:#087e43!important}
.r4-sales-history-r4 .r4-sh-status.draft{background:#fff1d1!important;color:#b57200!important}
.r4-sales-history-r4 .r4-sh-status.voided{background:#fde4e2!important;color:#c13e30!important}
.r4-sales-history-r4 .r4-sh-info{
  height:58px!important;
  margin-top:18px!important;
  border:1px solid #cfe0ef!important;
  border-radius:8px!important;
  background:#eef7ff!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:0 14px!important;
  color:#234b79!important;
  font-size:12px!important;
}
.r4-sales-history-r4 .r4-sh-info img{
  width:31px!important;
  height:33px!important;
  object-fit:cover!important;
}
/* AGROLOGIX R4 - REGISTRAR VENTA R9 COMPACT 4 VISIBLE ANIMAL ROWS */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-animals{
  height:245px!important;
  min-height:245px!important;
  max-height:245px!important;
  display:grid!important;
  grid-template-rows:25px 46px 132px 28px!important;
  overflow:hidden!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-table-wrap{
  height:132px!important;
  min-height:132px!important;
  max-height:132px!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior:contain!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-table thead,
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-table th{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
  background:#eef3f7!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-table th{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-table td{
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-table-footer{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin-top:3px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-stage-panel{
  margin-top:6px!important;
}
/* AGROLOGIX R4 - REGISTRAR VENTA R10 PAGE SCROLL FOR LOWER STEPS */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #r3bContent{
  height:calc(100vh - 58px)!important;
  max-height:calc(100vh - 58px)!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-register-r3{
  height:auto!important;
  max-height:none!important;
  min-height:100%!important;
  overflow:visible!important;
  padding-bottom:18px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-flow-form,
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-form{
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-stage-panel{
  height:auto!important;
  max-height:none!important;
  min-height:150px!important;
  overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] .r4-sale-actions{
  position:relative!important;
  bottom:auto!important;
  margin-top:8px!important;
  margin-bottom:8px!important;
}
/* AGROLOGIX R4 - CONVENIO MOCKUP R1 */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] #r3bContent{overflow:auto!important;background:#f5f8fb!important}
.r4-agreement-r4{padding:14px 18px 18px!important;background:#f5f8fb!important;color:#102847!important}
.r4-ag-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:20px!important;margin-bottom:16px!important}
.r4-ag-kicker{color:#078c50!important;font-size:11px!important;font-weight:800!important;letter-spacing:1.4px!important;margin-bottom:4px!important}
.r4-ag-head h1{margin:0!important;font-size:34px!important;line-height:1.05!important;color:#102847!important;font-weight:800!important}
.r4-ag-head p{margin:5px 0 0!important;color:#64798d!important;font-size:14px!important}
.r4-ag-new{height:46px!important;min-width:190px!important;padding:0 18px!important;border:0!important;border-radius:8px!important;background:#078c50!important;color:#fff!important;font-size:16px!important;font-weight:700!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important}
.r4-ag-new img{width:30px!important;height:29px!important;object-fit:cover!important}
.r4-ag-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;background:#fff!important;border:1px solid #dce5ec!important;border-radius:10px!important;padding:12px 16px!important;margin-bottom:18px!important}
.r4-ag-filters label>span{display:block!important;font-size:12px!important;color:#38526b!important;margin-bottom:6px!important}
.r4-ag-filters label>div{height:38px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;border:1px solid #d2dde7!important;border-radius:6px!important;background:#fff!important;overflow:hidden!important}
.r4-ag-filters img{width:40px!important;height:37px!important;object-fit:cover!important}
.r4-ag-filters select{width:100%!important;height:100%!important;border:0!important;background:#fff!important;color:#173b61!important;font-size:12px!important;font-weight:600!important;padding:0 10px!important;outline:0!important}
.r4-ag-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;margin-bottom:20px!important}
.r4-ag-kpis article{min-height:123px!important;background:#fff!important;border:1px solid #dce5ec!important;border-radius:10px!important;border-top-width:3px!important;padding:18px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;align-items:center!important;gap:16px!important}
.r4-ag-kpis article.total{border-top-color:#078c50!important}.r4-ag-kpis article.active{border-top-color:#2b91e8!important}.r4-ag-kpis article.pending{border-top-color:#f39a0a!important}.r4-ag-kpis article.finished{border-top-color:#f13b3b!important}
.r4-ag-kpis img{width:55px!important;height:55px!important;object-fit:cover!important}
.r4-ag-kpis span{display:block!important;color:#415a72!important;font-size:12px!important}.r4-ag-kpis strong{display:block!important;color:#102847!important;font-size:26px!important;line-height:1!important;margin:4px 0 9px!important}.r4-ag-kpis small{display:block!important;color:#6d8195!important;font-size:12px!important}
.r4-ag-card{background:#fff!important;border:1px solid #dce5ec!important;border-radius:10px!important;padding:16px 16px 10px!important}
.r4-ag-card-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:20px!important;margin-bottom:14px!important}
.r4-ag-card-title{display:flex!important;align-items:flex-start!important;gap:12px!important}.r4-ag-card-title>img{width:36px!important;height:40px!important;object-fit:cover!important}.r4-ag-card-title h2{margin:0!important;font-size:18px!important;color:#102847!important}.r4-ag-card-title p{margin:4px 0 0!important;color:#697e91!important;font-size:12px!important}
.r4-ag-search{width:450px!important;height:46px!important;display:flex!important;align-items:center!important;gap:12px!important;border:1px solid #d2dde7!important;border-radius:7px!important;padding:0 15px!important}.r4-ag-search span{font-size:27px!important;color:#3f74bf!important;line-height:1!important}.r4-ag-search input{flex:1!important;border:0!important;outline:0!important;background:transparent!important;font-size:12px!important;color:#34516c!important}
.r4-ag-table-wrap{border:1px solid #dce5ec!important;border-radius:8px!important;overflow:hidden!important}.r4-ag-table{width:100%!important;border-collapse:collapse!important}.r4-ag-table thead{background:#eef4f5!important}.r4-ag-table th{height:51px!important;padding:0 14px!important;text-align:left!important;color:#587185!important;font-size:10px!important;font-weight:700!important;white-space:nowrap!important}.r4-ag-table td{height:58px!important;padding:0 14px!important;border-top:1px solid #e2e8ed!important;color:#173b61!important;font-size:12px!important;white-space:nowrap!important}
.r4-ag-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:83px!important;height:30px!important;border-radius:6px!important;padding:0 10px!important;font-size:10px!important;font-weight:800!important}.r4-ag-status.active{background:#d8f2e3!important;color:#078c50!important}.r4-ag-status.pending{background:#fff0d4!important;color:#e38400!important}.r4-ag-status.finished{background:#eceff2!important;color:#5f6c78!important}
.r4-ag-actions{display:flex!important;gap:7px!important}.r4-ag-actions button{width:38px!important;height:38px!important;border:1px solid #d3dee8!important;border-radius:7px!important;background:#fff!important;padding:0!important;display:grid!important;place-items:center!important}.r4-ag-actions img{width:36px!important;height:36px!important;object-fit:cover!important}
.r4-ag-footer{height:69px!important;display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;color:#60788d!important;font-size:12px!important}.r4-ag-footer>label{justify-self:end!important;display:flex!important;align-items:center!important;gap:10px!important}.r4-ag-footer select{height:40px!important;border:1px solid #d3dee8!important;border-radius:6px!important;background:#fff!important}.r4-ag-pages{display:flex!important;gap:8px!important}.r4-ag-pages button{width:40px!important;height:40px!important;border:1px solid #d3dee8!important;border-radius:6px!important;background:#fff!important;color:#43617a!important}.r4-ag-pages button.active{background:#eaf2f6!important;color:#173b61!important}
.r4-ag-empty{text-align:center!important;color:#6b8194!important}
/* AGROLOGIX R4 - CONVENIO ACTIONS RESTORE R3 */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions {
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions button {
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  border:1px solid #d6e0ea!important;
  border-radius:8px!important;
  background:#ffffff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  cursor:pointer!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions button:hover {
  background:#f7fbff!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions img {
  width:36px!important;
  height:36px!important;
  display:block!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-table td:last-child {
  padding-right:18px!important;
}
/* AGROLOGIX R4 - CONVENIO FUNCTIONAL R5 */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-plus{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:20px!important;height:20px!important;color:#fff!important;font-size:24px!important;font-weight:400!important;line-height:1!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-filters img{
  width:24px!important;height:24px!important;object-fit:contain!important;display:block!important;justify-self:center!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpis img{
  width:52px!important;height:52px!important;object-fit:contain!important;display:block!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-card-title>img{
  width:32px!important;height:34px!important;object-fit:contain!important;display:block!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions{
  display:flex!important;gap:6px!important;align-items:center!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions button{
  width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;border-radius:0!important;overflow:visible!important;cursor:pointer!important;
  display:block!important;box-shadow:none!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions img{
  width:38px!important;height:38px!important;display:block!important;object-fit:contain!important;opacity:1!important;visibility:visible!important;filter:none!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-workspace{
  margin-top:14px!important;background:#fff!important;border:1px solid #dce5ec!important;border-radius:10px!important;padding:18px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head{
  display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;margin-bottom:16px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head span{
  color:#078c50!important;font-size:10px!important;font-weight:800!important;letter-spacing:1px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head h3{
  margin:4px 0 0!important;color:#102847!important;font-size:20px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head>button{
  width:34px!important;height:34px!important;border:1px solid #d3dee8!important;border-radius:7px!important;background:#fff!important;color:#27445f!important;font-size:22px!important;cursor:pointer!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-detail-grid,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-detail-grid>div,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-grid>div{
  border:1px solid #e0e7ed!important;border-radius:8px!important;background:#f8fafb!important;padding:13px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-detail-grid small,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-grid small{
  display:block!important;color:#708397!important;font-size:10px!important;margin-bottom:5px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-detail-grid strong,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-grid strong{
  color:#102847!important;font-size:13px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor label{
  display:flex!important;flex-direction:column!important;gap:5px!important;color:#425d76!important;font-size:11px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor input,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor select{
  height:38px!important;border:1px solid #d1dde7!important;border-radius:6px!important;background:#fff!important;padding:0 10px!important;color:#173b61!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor-actions{
  grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important;gap:9px!important;margin-top:4px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor-actions button{
  min-width:110px!important;height:38px!important;border-radius:7px!important;font-weight:700!important;cursor:pointer!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor-actions button:first-child{
  border:1px solid #0a8e53!important;background:#fff!important;color:#0a8e53!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor-actions button:last-child{
  border:1px solid #078c50!important;background:#078c50!important;color:#fff!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-note{
  margin-top:12px!important;padding:10px 12px!important;border-radius:7px!important;background:#eef8f2!important;color:#187044!important;font-size:11px!important;
}
/* AGROLOGIX R4 - CONVENIO R6 R3 FUNCTIONAL PARITY */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-filters label>div{
  grid-template-columns:48px minmax(0,1fr)!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-filters img{
  width:24px!important;height:24px!important;object-fit:contain!important;justify-self:center!important;position:relative!important;z-index:2!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-filters select{
  padding-left:8px!important;position:relative!important;z-index:1!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-table th:last-child,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-table td:last-child{
  min-width:158px!important;width:158px!important;padding-left:12px!important;padding-right:12px!important;overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions{
  width:126px!important;min-width:126px!important;overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions button{
  flex:0 0 38px!important;overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-file-field,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-summary-field{
  grid-column:span 2!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor input[type="file"]{
  height:auto!important;min-height:40px!important;padding:7px 9px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-editor textarea{
  min-height:76px!important;border:1px solid #d1dde7!important;border-radius:6px!important;padding:9px!important;resize:vertical!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-actions{
  display:flex!important;gap:10px!important;align-items:center!important;margin:15px 0!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-primary,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-secondary{
  min-height:40px!important;border-radius:7px!important;padding:0 16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;text-decoration:none!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-primary{
  background:#078c50!important;color:#fff!important;border:1px solid #078c50!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-secondary{
  background:#fff!important;color:#078c50!important;border:1px solid #a9cdbb!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-revision,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-history{
  margin-top:14px!important;border-top:1px solid #e2e8ed!important;padding-top:14px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-revision h4,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-history h4{
  margin:0 0 5px!important;color:#102847!important;font-size:15px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-revision p{
  margin:0 0 10px!important;color:#687d90!important;font-size:11px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] #r4AgreementRevisionForm{
  display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:12px!important;align-items:end!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] #r4AgreementRevisionForm label{
  display:flex!important;flex-direction:column!important;gap:5px!important;font-size:11px!important;color:#425d76!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] #r4AgreementRevisionForm input,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] #r4AgreementRevisionForm textarea{
  border:1px solid #d1dde7!important;border-radius:6px!important;background:#fff!important;padding:8px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] #r4AgreementRevisionForm button{
  height:40px!important;border:1px solid #078c50!important;border-radius:7px!important;background:#078c50!important;color:#fff!important;font-weight:700!important;padding:0 16px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-history>div{
  display:grid!important;grid-template-columns:48px 1fr 1fr!important;gap:10px!important;padding:8px 0!important;border-bottom:1px solid #eef2f5!important;font-size:11px!important;
}
/* AGROLOGIX R4 - CONVENIO R7 KPI ICON SCALE + DIRECT DOWNLOAD ACTION */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpis article{
  grid-template-columns:46px minmax(0,1fr)!important;
  gap:12px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpis img{
  width:38px!important;
  height:38px!important;
  max-width:38px!important;
  max-height:38px!important;
  object-fit:contain!important;
  display:block!important;
  justify-self:center!important;
  align-self:center!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-table th:last-child,
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-table td:last-child{
  min-width:188px!important;
  width:188px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-actions{
  width:166px!important;
  min-width:166px!important;
  display:flex!important;
  gap:5px!important;
  align-items:center!important;
  overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-download-action{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border:1px solid #d3dee8!important;
  border-radius:7px!important;
  background:#ffffff!important;
  color:#0b3d71!important;
  font-size:23px!important;
  font-weight:700!important;
  line-height:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  cursor:pointer!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-download-action:hover{
  background:#eef6ff!important;
}
/* AGROLOGIX R4 - CONVENIO R8 KPI TEXT OFFSET */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpis article{
  grid-template-columns:64px minmax(0,1fr)!important;
  column-gap:14px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpis article>div{
  padding-left:6px!important;
  min-width:0!important;
}
/* AGROLOGIX R4 - CONVENIO R9 INLINE KPI ICONS + R3 ACCEPTANCE */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpis article{
  grid-template-columns:58px minmax(0,1fr)!important;
  column-gap:16px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpi-icon{
  width:44px!important;height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:12px!important;position:relative!important;z-index:20!important;justify-self:center!important;align-self:center!important;
  box-shadow:none!important;overflow:visible!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpi-icon svg{
  width:30px!important;height:30px!important;display:block!important;overflow:visible!important;position:relative!important;z-index:21!important;
  fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpi-icon.total{background:#e8f8ef!important;color:#079653!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpi-icon.active{background:#e9f4ff!important;color:#258fe7!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpi-icon.pending{background:#fff4df!important;color:#f39100!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpi-icon.finished{background:#ffeded!important;color:#ef3e3e!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-kpis article>div{
  padding-left:0!important;position:relative!important;z-index:1!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-status-row{
  display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;margin-bottom:14px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-status-row>div small{
  display:block!important;color:#708397!important;font-size:10px!important;margin-bottom:4px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-doc-status-row>div strong{color:#102847!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-badge{
  min-height:32px!important;padding:0 13px!important;border-radius:16px!important;display:inline-flex!important;align-items:center!important;
  font-size:10px!important;font-weight:800!important;white-space:nowrap!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-badge.pending{background:#fff1d8!important;color:#a86a00!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-badge.accepted{background:#dff4e8!important;color:#087d46!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-grid{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:8px 0 10px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-grid article{
  border:1px solid #dce5ec!important;border-radius:9px!important;background:#f9fbfb!important;padding:12px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-grid strong{
  display:block!important;color:#102847!important;font-size:13px!important;margin-bottom:4px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-grid span{font-size:11px!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-grid article.pending span{color:#75889a!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-grid article.accepted span{color:#078c50!important;font-weight:700!important}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-acceptance-note{
  border:1px solid #dce9e2!important;border-radius:8px!important;background:#f3faf6!important;color:#315f48!important;
  padding:9px 11px!important;font-size:10px!important;line-height:1.4!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] #r4AcceptAgreement:disabled{
  opacity:.55!important;cursor:default!important;
}
/* AGROLOGIX R4 - CONVENIO R10 INVESTOR ACCEPTANCE + BACK */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head-actions .r4-ag-back{
  width:auto!important;
  min-width:104px!important;
  height:36px!important;
  padding:0 14px!important;
  border:1px solid #078c50!important;
  border-radius:7px!important;
  background:#078c50!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head-actions>button[data-ag-close]{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  padding:0!important;
}
/* AGROLOGIX R4 - CONVENIO R10 INVESTOR ACCEPTANCE + BACK */
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head-actions .r4-ag-back{
  width:auto!important;
  min-width:104px!important;
  height:36px!important;
  padding:0 14px!important;
  border:1px solid #078c50!important;
  border-radius:7px!important;
  background:#078c50!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
body.r4-shell.auth-authenticated[data-r4-view="agreement"] .r4-ag-work-head-actions>button[data-ag-close]{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  padding:0!important;
}
/* AGROLOGIX R4 - IA VENTA OPTIMA MOCKUP R1 */
body.r4-shell.auth-authenticated[data-r4-view="sale-ai"] #r3bContent{overflow:auto!important;background:#f4f8fb!important}
.r4-ai-page{padding:16px 20px 20px!important;color:#102847!important;background:#f4f8fb!important}
.r4-ai-page svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.r4-ai-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}.r4-ai-title-icon{width:44px;height:44px;color:#078c50;display:grid;place-items:center}.r4-ai-title-icon svg{width:38px;height:38px;stroke-width:2.3}.r4-ai-head h1{margin:0;font-size:28px;color:#102847}.r4-ai-head p{margin:4px 0 0;color:#56708b;font-size:13px}
.r4-ai-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.r4-ai-kpis article{background:#fff;border:1px solid #dce6ee;border-radius:9px;border-top:2px solid;padding:18px 20px;display:grid;grid-template-columns:58px 1fr;gap:15px;align-items:center;min-height:108px}.r4-ai-kpis article.green{border-top-color:#079653}.r4-ai-kpis article.blue{border-top-color:#2994ee}.r4-ai-kpis article.amber{border-top-color:#f4a30a}.r4-ai-kpis article.purple{border-top-color:#8f4be8}.r4-ai-kpi-icon{width:50px;height:50px;border-radius:10px;display:grid;place-items:center}.green .r4-ai-kpi-icon{background:#e9f8ef;color:#079653}.blue .r4-ai-kpi-icon{background:#ebf5ff;color:#218be6}.amber .r4-ai-kpi-icon{background:#fff5e5;color:#ef9700}.purple .r4-ai-kpi-icon{background:#f4ecff;color:#7430db}.r4-ai-kpi-icon svg{width:30px;height:30px}.r4-ai-kpis small{display:block;color:#31527a;font-size:12px}.r4-ai-kpis strong{display:block;font-size:25px;margin:3px 0;color:#102847}.r4-ai-kpis em{display:block;font-style:normal;color:#667e98;font-size:11px}
.r4-ai-filter-card,.r4-ai-results,.r4-ai-analysis,.r4-ai-summary,.r4-ai-actions,.r4-ai-workspace{background:#fff;border:1px solid #dce6ee;border-radius:9px}.r4-ai-filter-card{padding:13px 16px;margin-bottom:18px}.r4-ai-filter-card h2,.r4-ai-actions h2{margin:0 0 10px;font-size:16px;display:flex;align-items:center;gap:8px}.r4-ai-filter-card h2 span{color:#079653;display:grid;place-items:center}.r4-ai-filters{display:grid;grid-template-columns:1fr 1fr .9fr 1.25fr 1.15fr 1.1fr;gap:12px;align-items:end}.r4-ai-filters label{font-size:11px;color:#34526f;display:flex;flex-direction:column;gap:5px}.r4-ai-filters select,.r4-ai-filters input{height:36px;border:1px solid #cedbe6;border-radius:6px;background:#fff;padding:0 10px;color:#173b61}.r4-ai-range{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;align-items:center}.r4-ai-analyze{height:40px;border:0;border-radius:7px;background:#078c50;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.r4-ai-analyze svg{width:19px;height:19px}
.r4-ai-main-grid{display:grid;grid-template-columns:minmax(0,2.7fr) minmax(290px,1fr);gap:14px;margin-bottom:18px}.r4-ai-results{padding:12px}.r4-ai-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.r4-ai-card-head h2{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}.r4-ai-card-head p{margin:3px 0 0 28px;color:#6a8198;font-size:11px}.r4-ai-card-head b{background:#dff5e8;color:#078c50;border-radius:14px;padding:6px 12px;font-size:11px}.r4-ai-doc-icon{width:20px;height:20px;color:#078c50}.r4-ai-doc-icon svg{width:18px;height:18px}
.r4-ai-table-wrap{border:1px solid #dce6ee;border-radius:7px;overflow:hidden}.r4-ai-table{width:100%;border-collapse:collapse;font-size:10px}.r4-ai-table thead{background:#eef4f7}.r4-ai-table th{padding:9px 8px;text-align:left;color:#38546f;font-weight:700;white-space:nowrap}.r4-ai-table td{padding:7px 8px;border-top:1px solid #e7edf2;color:#173b61;white-space:nowrap}.r4-ai-margin{color:#079653!important;font-weight:800}.r4-ai-rec{display:inline-flex;justify-content:center;min-width:78px;padding:5px 8px;border-radius:6px;background:#d9f4e6;color:#078c50;font-weight:800}.r4-ai-eye{width:34px;height:30px;border:1px solid #d4e0e9;border-radius:6px;background:#fff;color:#164f84;display:grid;place-items:center;cursor:pointer}.r4-ai-eye svg{width:18px;height:18px}.r4-ai-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:12px 4px 0;color:#526e8a;font-size:11px}.r4-ai-pager>span{text-align:center}.r4-ai-pager>div{justify-self:end;display:flex;gap:5px}.r4-ai-pager button,.r4-ai-pager select{height:34px;border:1px solid #d4e0e9;border-radius:6px;background:#fff}.r4-ai-pager button{width:34px}.r4-ai-pager button.active{background:#078c50;color:#fff;border-color:#078c50}
.r4-ai-side{display:grid;grid-template-rows:1.25fr 1fr;gap:12px}.r4-ai-analysis,.r4-ai-summary{padding:12px;cursor:pointer}.r4-ai-analysis h2,.r4-ai-summary h2{margin:0 0 12px;font-size:15px;display:flex;align-items:center;gap:8px}.r4-ai-analysis h2 span,.r4-ai-summary h2 span{color:#079653}.r4-ai-chart-title{font-weight:700;font-size:11px}.r4-ai-chart-legend{display:flex;justify-content:center;gap:18px;font-size:9px;margin:10px 0}.r4-ai-chart-legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.r4-ai-chart-legend .current:before{background:#adc0cf}.r4-ai-chart-legend .optimal:before{background:#078c50}.r4-ai-bars{height:128px;border-left:1px solid #dce6ee;border-bottom:1px solid #dce6ee;display:flex;align-items:flex-end;justify-content:space-around;padding:0 10px}.r4-ai-bars>div{height:100%;display:flex;align-items:flex-end;gap:3px}.r4-ai-bars i{width:12px;display:block;border-radius:2px 2px 0 0}.r4-ai-bars .cur{background:#afc2d0}.r4-ai-bars .opt{background:#078c50}.r4-ai-chart-label{text-align:center;font-size:9px;margin-top:5px;color:#526e8a}.r4-ai-summary dl{margin:0}.r4-ai-summary dl div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #e7edf2;font-size:11px}.r4-ai-summary dt{color:#57708a}.r4-ai-summary dd{margin:0;color:#173b61}.r4-ai-summary dd.green{color:#078c50;font-weight:800}
.r4-ai-actions{padding:12px 14px}.r4-ai-actions h2 span{color:#078c50;font-size:22px}.r4-ai-actions>div{display:grid;grid-template-columns:1.25fr 1.15fr 1.05fr 1.05fr;gap:12px}.r4-ai-actions button{height:44px;border-radius:7px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.r4-ai-actions .green{background:#078c50;color:#fff;border:1px solid #078c50}.r4-ai-actions .blue{background:#2476eb;color:#fff;border:1px solid #2476eb}.r4-ai-actions .white{background:#fff;color:#16395f;border:1px solid #6f90b3}.r4-ai-actions button svg{width:18px;height:18px}
.r4-ai-workspace{margin-top:14px;padding:16px}.r4-ai-work-head{display:flex;justify-content:space-between;align-items:flex-start}.r4-ai-work-head small{color:#078c50;font-weight:800;letter-spacing:.8px}.r4-ai-work-head h3{margin:3px 0 0}.r4-ai-work-head button{width:34px;height:34px;border:1px solid #d4e0e9;border-radius:6px;background:#fff;font-size:20px}.r4-ai-tabs{display:flex;gap:5px;margin:14px 0}.r4-ai-tabs button{border:1px solid #d4e0e9;background:#fff;border-radius:6px;padding:8px 12px}.r4-ai-tabs button.active{background:#078c50;color:#fff;border-color:#078c50}.r4-ai-advanced-card h4{margin:0 0 5px}.r4-ai-advanced-card p{color:#637a91}.r4-ai-advanced-card table{width:100%;border-collapse:collapse}.r4-ai-advanced-card th,.r4-ai-advanced-card td{padding:8px;border-bottom:1px solid #e6edf2;text-align:left}.r4-ai-sim-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.r4-ai-sim-form label{font-size:10px;color:#425d76;display:flex;flex-direction:column;gap:4px}.r4-ai-sim-form input,.r4-ai-sim-form select{height:34px;border:1px solid #d4e0e9;border-radius:6px;padding:0 8px}.r4-ai-sim-form button{grid-column:1/-1;justify-self:end;height:38px;background:#078c50;color:#fff;border:0;border-radius:6px;padding:0 16px;font-weight:800}.r4-ai-sim-result{margin-top:12px;padding:12px;background:#eff9f3;border:1px solid #cfe7d8;border-radius:7px}.r4-ai-sim-result span{margin-left:8px;background:#e8f4ff;color:#1768ad;border-radius:12px;padding:3px 7px;font-size:9px}.r4-ai-lot-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.r4-ai-lot-kpis>div{padding:12px;border:1px solid #dce6ee;border-radius:7px}.r4-ai-lot-kpis span{display:block;color:#667d94;font-size:10px}.r4-ai-lot-kpis strong{display:block;font-size:22px;margin-top:4px}.r4-ai-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.r4-ai-detail-grid>div{padding:12px;background:#f8fafb;border:1px solid #e0e8ee;border-radius:7px}.r4-ai-detail-grid span{display:block;color:#687f95;font-size:10px}.r4-ai-detail-grid strong{display:block;margin-top:4px}.r4-ai-reasons{margin-top:10px;padding:12px;background:#f3faf6;border:1px solid #d6e9dd;border-radius:7px}
@media(max-width:1200px){.r4-ai-kpis{grid-template-columns:repeat(2,1fr)}.r4-ai-filters{grid-template-columns:repeat(3,1fr)}.r4-ai-main-grid{grid-template-columns:1fr}.r4-ai-actions>div{grid-template-columns:repeat(2,1fr)}.r4-ai-sim-form{grid-template-columns:repeat(2,1fr)}}

/* AGROLOGIX R4 - ALARM INBOX R1 */
body.r4-shell.auth-authenticated #r4AlarmBadge[hidden]{display:none!important}
body.r4-shell.auth-authenticated .r4-alarm-panel{position:fixed;z-index:2600;width:min(430px,calc(100vw - 24px));max-height:min(590px,calc(100vh - 92px));background:#fff;border:1px solid #d4e1ea;border-radius:10px;box-shadow:0 16px 44px rgba(17,47,72,.22);overflow:hidden;color:#173957;font-family:Arial,Helvetica,sans-serif}
body.r4-shell.auth-authenticated .r4-alarm-panel[hidden]{display:none!important}
body.r4-shell.auth-authenticated .r4-alarm-head{padding:11px 13px;border-bottom:1px solid #e5edf2;display:flex;align-items:center;justify-content:space-between;gap:12px}
body.r4-shell.auth-authenticated .r4-alarm-head>div{display:flex;flex-direction:column;gap:2px}
body.r4-shell.auth-authenticated .r4-alarm-head strong{font-size:16px;color:#082768}
body.r4-shell.auth-authenticated .r4-alarm-head small{font-size:10px;color:#6b8196}
body.r4-shell.auth-authenticated #r4AlarmMarkAll{border:1px solid #0b9657;background:#fff;color:#087e49;border-radius:6px;height:31px;padding:0 10px;font-size:9.5px;font-weight:800;cursor:pointer}
body.r4-shell.auth-authenticated #r4AlarmMarkAll:disabled{opacity:.45;cursor:default}
body.r4-shell.auth-authenticated .r4-alarm-list{max-height:460px;overflow:auto;padding:3px 10px}
body.r4-shell.auth-authenticated .r4-alarm-row{min-height:82px;display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 2px;border-bottom:1px solid #e7eef3}
body.r4-shell.auth-authenticated .r4-alarm-row.is-read{opacity:.58}
body.r4-shell.auth-authenticated .r4-alarm-severity{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:900}
body.r4-shell.auth-authenticated .r4-alarm-severity.warning{background:#fff1d7;color:#e18900}
body.r4-shell.auth-authenticated .r4-alarm-severity.critical{background:#ffe3e6;color:#df2639}
body.r4-shell.auth-authenticated .r4-alarm-copy strong{font-size:11px;color:#12385f}
body.r4-shell.auth-authenticated .r4-alarm-copy em{font-style:normal;font-size:8px;padding:2px 5px;border-radius:4px;background:#edf5fa;color:#557088;margin-left:6px}
body.r4-shell.auth-authenticated .r4-alarm-copy p{margin:3px 0 2px;font-size:9.5px;color:#4f6d86}
body.r4-shell.auth-authenticated .r4-alarm-copy small{font-size:8.5px;color:#8091a1}
body.r4-shell.auth-authenticated .r4-alarm-state{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
body.r4-shell.auth-authenticated .r4-alarm-state span{font-size:8.5px;font-weight:700;color:#58728b}
body.r4-shell.auth-authenticated .r4-alarm-state button{height:27px;border:1px solid #0c9a59;background:#f4fbf7;color:#087e49;border-radius:5px;padding:0 8px;font-size:8.5px;font-weight:800;cursor:pointer}
body.r4-shell.auth-authenticated .r4-alarm-empty{padding:30px 18px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}
body.r4-shell.auth-authenticated .r4-alarm-panel footer{border-top:1px solid #e5edf2;padding:8px 12px;background:#f8fbfd;color:#6f8597;font-size:8.5px}

/* AGROLOGIX R4 - ALARM BADGE DYNAMIC WIDTH HF5
   Preserve exact unread count visually for 1+ digits.
   The JS already refreshes textContent from backend unread. */
body.r4-shell.auth-authenticated #notificationButton.r4x-bell b,
body.r4-shell.auth-authenticated #notificationButton #r4AlarmBadge{
  width:auto!important;
  min-width:18px!important;
  max-width:none!important;
  height:18px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:18px!important;
  font-size:9px!important;
  font-weight:800!important;
}
body.r4-shell.auth-authenticated #notificationButton #r4AlarmBadge[hidden]{
  display:none!important;
}

/* Dashboard body precision R1 — shell/header and other roles remain locked. */
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision{display:flex!important;flex-direction:column!important;gap:14px!important;padding:24px 20px 18px!important;height:auto!important;min-height:0!important;overflow:visible!important;font-family:Arial,sans-serif;color:#07135c}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .page-heading{display:flex!important;align-items:flex-start!important;gap:16px!important;min-height:66px!important;margin:0!important;flex:0 0 auto!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .page-heading>div:first-child{min-width:0!important;flex:1 1 43%!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision h1{font-size:32px!important;line-height:1.12!important;letter-spacing:-1px!important;margin:0 0 5px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .page-heading p{font-size:16px!important;line-height:1.35!important;margin:0!important;color:#6578c8!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardHeadingRight{position:static!important;width:auto!important;min-width:0!important;max-width:none!important;flex:1 1 57%!important;margin:0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopebar{gap:12px!important;width:100%!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopebar .ag-select{height:52px!important;min-width:0!important;flex:1!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopebar select{height:52px!important;font-size:13px!important;width:100%!important;min-width:0!important;padding-right:26px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;flex:0 0 142px!important;min-height:142px!important;overflow:visible!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi{position:relative!important;padding:13px 12px 11px!important;gap:12px!important;border-radius:10px!important;box-shadow:0 3px 14px rgba(31,76,109,.05)!important;min-width:0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi>div{padding-right:0!important;min-width:0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi-icon{width:58px!important;height:58px!important;flex-basis:58px!important;color:#008347!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi>div>span{font-size:14px!important;line-height:18px!important;white-space:nowrap!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi strong{font-size:28px!important;line-height:1.1!important;margin:7px 0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi small{font-size:11px!important;max-width:140px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi a{position:absolute!important;left:13px!important;bottom:11px!important;font-size:13px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-kpi-spark{position:absolute!important;right:12px!important;bottom:29px!important;width:75px!important;height:36px!important;background:none!important;opacity:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-kpi-spark small{font-size:9px!important;color:#7080a8!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-middle{grid-template-columns:1.22fr 1.26fr 1fr!important;gap:12px!important;flex:0 0 276px!important;min-height:276px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-bottom{grid-template-columns:1.22fr 1fr 1.27fr!important;gap:12px!important;flex:0 0 298px!important;min-height:298px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-card{padding:12px 13px!important;border:1px solid #e0e9f5!important;border-radius:10px!important;box-shadow:0 3px 14px rgba(31,76,109,.04)!important;min-width:0!important;min-height:0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-card[hidden],body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi[hidden]{display:none!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-card header{margin-bottom:10px!important;min-height:25px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-card h2{font-size:15px!important;line-height:20px!important;font-weight:700!important;gap:8px!important;white-space:normal!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-card a{font-size:12px!important;text-decoration:none!important;color:#075ad7!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-distribution-body{gap:13px!important;align-items:center!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .donut-wrap{flex:0 0 185px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .donut{width:185px!important;height:185px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .donut:after{inset:35px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .donut-center strong{font-size:26px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .dist-row{grid-template-columns:10px minmax(0,1fr) auto!important;gap:7px!important;font-size:11px!important;margin:12px 0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .dist-row b{font-weight:400!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #weightChart{height:190px!important;min-height:0!important;flex:1!important;width:100%!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #weightChart svg{height:100%!important;width:100%!important;display:block!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #r4AdminLotStatus{display:flex!important;flex-direction:column!important;justify-content:space-evenly!important;gap:9px!important;padding:4px 0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-lot-row{display:grid!important;grid-template-columns:108px minmax(30px,1fr) 25px!important;gap:8px!important;font-size:12px!important;min-height:24px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-lot-row>i{height:17px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-list,body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .activity-list{overflow:auto!important;flex:1!important;min-height:0!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-list-row,body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .activity-item{min-height:45px!important;padding:6px 0!important;text-decoration:none!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .activity-copy strong,body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-list-row strong{font-size:12px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .activity-copy span,body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-list-row small{font-size:11px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .activity-time{font-size:10px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-finance-kpis strong{font-size:19px!important;overflow-wrap:anywhere!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-finance-kpis span{font-size:11px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-farm-bar{grid-template-columns:90px minmax(20px,1fr) 90px!important;font-size:11px!important;min-height:18px!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-farm-bar>span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-empty-row{font-size:12px!important;line-height:1.5!important}
@media(max-width:1400px){body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpi-icon{width:42px!important;height:42px!important;flex-basis:42px!important}body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .donut-wrap{flex-basis:145px!important}body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .donut{width:145px!important;height:145px!important}}
@media(max-width:1100px){body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .page-heading{flex-wrap:wrap!important}body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-middle,body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-bottom{grid-template-columns:1fr!important;flex-basis:auto!important}body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-card{min-height:260px!important;grid-column:auto!important}body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-kpis{grid-template-columns:repeat(5,minmax(180px,1fr))!important;overflow:auto!important}}
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .r4-admin-card>[hidden],body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision [data-finance-preview][hidden]{display:none!important}

/* AGX R4 DASHBOARD FILTER ALIGNMENT R1 — BODY ONLY BEGIN */
/* Scope: ADMIN Dashboard BODY only. Shell/header remain untouched. */
body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .page-heading.r4x-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)!important;
  align-items:start!important;
  column-gap:20px!important;
  row-gap:0!important;
  height:auto!important;
  min-height:66px!important;
  flex:0 0 66px!important;
  margin:0!important;
}

body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .page-heading.r4x-heading>div:first-child{
  grid-column:1!important;
  min-width:0!important;
  align-self:start!important;
}

body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardHeadingRight{
  grid-column:2!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  flex:none!important;
  align-self:start!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  margin:0!important;
}

body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopebar{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;
  gap:12px!important;
  align-items:start!important;
  justify-content:stretch!important;
}

body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopebar .ag-select{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:54px!important;
  margin:0!important;
}

body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopebar select{
  width:100%!important;
  height:54px!important;
  box-sizing:border-box!important;
}

body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopeStatus{
  min-height:14px!important;
  margin:0!important;
  text-align:right!important;
}

@media (max-width:1360px){
  body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision .page-heading.r4x-heading{
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;
    column-gap:14px!important;
  }
  body.r4-shell.auth-authenticated:is([data-r4-role="ADMIN"],[data-r4-role="INVESTOR"]) #dashboardContent.r4-dashboard-precision #agDashboardScopebar{
    gap:8px!important;
  }
}
/* AGX R4 DASHBOARD FILTER ALIGNMENT R1 — BODY ONLY END */

/* AGX R4 LOTES REVISION 3 — BODY ONLY; shell/header and Dashboard locked. */
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page{padding:18px 20px!important;background:#f6f9fc!important;font-family:Arial,sans-serif!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-heading{gap:16px!important;margin-bottom:14px!important;min-height:90px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page h1{font-size:32px!important;line-height:36px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-global-scope{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:580px!important;gap:10px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-global-scope label{width:auto!important;height:44px!important;padding:0 10px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-global-scope select{font-size:12px!important;width:100%!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpis{gap:12px!important;margin-bottom:14px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpi{height:100px!important;padding:12px 14px!important;gap:14px!important;border-radius:9px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpi-icon{width:56px!important;height:56px!important;font-size:25px!important;background:#d9f8e9!important;color:#007d4c!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpi small{font-size:12px!important;line-height:16px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpi strong{font-size:26px!important;line-height:30px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpi em{font-size:10px!important;max-width:130px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpi>i{background:none!important;color:#7d8da7!important;font-size:9px!important;width:72px!important;font-style:normal!important;height:18px!important;bottom:13px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-list-card{border-radius:9px!important;margin-bottom:12px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-list-card>header{height:43px!important;padding:0 12px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-list-card h2{font-size:18px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-toolbar{padding:0 12px 9px!important;gap:14px!important;grid-template-columns:1.2fr .9fr .95fr 1fr!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-toolbar label{height:40px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-toolbar input,body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-toolbar select{font-size:12px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-toolbar small{font-size:11px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page table{font-size:12px!important;table-layout:auto!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page th{font-size:11px!important;height:31px!important;padding:0 9px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page td{font-size:12px!important;height:32px!important;padding:0 9px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page td:first-child{display:table-cell!important;min-width:140px!important;white-space:nowrap!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lot-thumb{display:inline-block!important;vertical-align:middle!important;margin-right:9px!important;width:39px!important;height:25px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-status{font-size:11px!important;padding:5px 9px!important;min-width:88px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-icon-btn{font-size:17px!important;width:28px!important;height:27px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page footer{font-size:11px!important;height:36px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-analytics{grid-template-columns:1.1fr .94fr 1.46fr!important;gap:12px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-panel{height:204px!important;padding:10px 12px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page h3{font-size:15px!important;margin:0 0 9px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-donut{width:143px!important;height:143px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-donut strong{font-size:26px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-legend>div,body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-bars>div{font-size:11px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-bars>div{grid-template-columns:110px minmax(20px,1fr) 28px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-trend{display:grid!important;grid-template-columns:minmax(0,1fr) 120px!important;gap:8px!important;height:155px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-trend svg{width:100%!important;height:155px!important;background:none!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-trend-legend{flex-direction:column!important;justify-content:center!important;font-size:11px!important;margin:0!important;gap:9px!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-editor{border:1px solid #d9e4ed;border-radius:10px;max-width:620px;color:#07145d}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-editor form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-editor label{display:flex;flex-direction:column;gap:4px;font-size:13px}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-editor input,body.r4-shell #r3bContent #r3bRouteHost .r4-lots-editor select{padding:8px;border:1px solid #d9e4ed;border-radius:5px}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-editor h2,body.r4-shell #r3bContent #r3bRouteHost .r4-lots-editor p{grid-column:1/-1}
@media(max-width:1200px){body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-global-scope{width:100%!important}body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-analytics{grid-template-columns:1fr!important}body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-toolbar{grid-template-columns:1fr 1fr!important}}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-kpi-icon svg{width:32px!important;height:32px!important}body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page h2 svg,body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page h3 svg{width:24px!important;height:24px!important}body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-icon-btn svg,body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .search svg{width:18px!important;height:18px!important}

/* AGX R4 ANIMALS ADMIN BODY PRECISION R1 - body only; other roles locked */
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page{padding:18px 20px 20px!important;font-family:Arial,Helvetica,sans-serif!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading{min-height:66px!important;gap:16px!important;margin-bottom:16px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading h1{font-size:32px!important;line-height:38px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading p{font-size:16px!important;line-height:21px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band{display:grid!important;grid-template-columns:minmax(280px,1.45fr) minmax(190px,1fr)!important;gap:12px!important;flex:0 0 540px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band>div{height:56px!important;border:1px solid #dbe5f0!important;border-radius:8px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:14px!important;padding:0 14px!important;box-sizing:border-box!important;font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band>label{height:56px!important;border:1px solid #dbe5f0!important;border-radius:8px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:14px!important;padding:0 14px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band svg{width:22px!important;height:22px!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band small{display:block!important;font-size:11px!important;margin-top:3px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band select{border:0!important;background:transparent!important;width:100%!important;font-size:13px!important;color:#061b5a!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis article{height:104px!important;grid-template-columns:62px minmax(0,1fr)!important;position:relative!important;padding:10px 14px!important;gap:10px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpi-icon{width:58px!important;height:58px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis small{font-size:12px!important;line-height:16px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis strong{font-size:27px!important;line-height:31px!important;margin-top:4px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis em{font-size:11px!important;line-height:14px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis article>i{background:none!important;position:absolute!important;right:10px!important;bottom:10px!important;font-size:9px!important;color:#7181a0!important;width:auto!important;height:auto!important;font-style:normal!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card>header{height:48px!important;padding:0 12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card h2{font-size:22px!important;display:flex!important;align-items:center!important;gap:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card h2 svg{width:28px!important;height:28px!important;color:#007d49!important;display:block!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-new{font-size:13px!important;height:35px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar{grid-template-columns:2.1fr repeat(5,1fr)!important;gap:10px!important;padding-bottom:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar label{height:38px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar small{font-size:11px!important;top:-6px!important;background:#fff!important;padding:0 3px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar label:not(.search){padding-top:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar input{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar select{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar .search span{width:22px!important;height:22px!important;margin-left:12px!important;flex-shrink:0!important;color:#00328c!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar .search svg{width:21px!important;height:21px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap table{table-layout:auto!important;font-size:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap th{font-size:11px!important;height:30px!important;padding:0 7px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td{height:32px!important;padding:0 7px!important;font-size:12px!important;max-width:155px!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child{display:table-cell!important;white-space:nowrap!important;min-width:132px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child img{display:inline-block!important;vertical-align:middle!important;width:32px!important;height:24px!important;margin-right:7px!important;object-fit:contain!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child strong{font-weight:400!important;vertical-align:middle!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-status{font-size:11px!important;height:25px!important;min-width:100px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-actions button{width:27px!important;height:28px!important;padding:4px!important;cursor:pointer!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-actions svg{width:19px!important;height:19px!important;vertical-align:middle!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card>footer{font-size:12px!important;height:36px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-pages small{font-size:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-analytics{grid-template-columns:1.05fr .9fr 1.45fr!important;gap:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel{height:205px!important;padding:10px 12px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel h3{font-size:16px!important;line-height:22px!important;display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:7px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel h3 svg{width:23px!important;height:23px!important;color:#007d49!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut-body{grid-template-columns:44% 56%!important;height:155px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut{width:145px!important;height:145px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut:after{inset:33px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut strong{font-size:24px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut small{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-legend>div{font-size:11px!important;gap:5px!important;align-items:center!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-legend b{font-weight:400!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars{gap:7px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div{grid-template-columns:minmax(90px,1fr) minmax(95px,1.3fr) auto!important;font-size:11px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div>span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div>i{height:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend{display:grid!important;grid-template-columns:minmax(0,1fr) 120px!important;gap:6px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend svg{height:146px!important;width:100%!important;background:none!important;overflow:visible!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend text{font-size:12px!important;fill:#5b78b9!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{flex-direction:column!important;flex-wrap:nowrap!important;gap:9px!important;font-size:11px!important;padding-top:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-note{grid-column:1/-1!important;font-size:9px!important;color:#7181a0!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-empty-state{grid-column:1/-1!important;font-size:12px!important;height:150px!important}
body.r4-shell.auth-authenticated[data-r4-role="ADMIN"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-loading{grid-column:1/-1!important;font-size:12px!important}

/* AGX R4 ANIMALS RANCHER BODY PRECISION R1 - role/partner isolated */

body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page{padding:18px 20px 20px!important;font-family:Arial,Helvetica,sans-serif!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading{min-height:66px!important;gap:16px!important;margin-bottom:16px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading h1{font-size:32px!important;line-height:38px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading p{font-size:16px!important;line-height:21px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band{display:grid!important;grid-template-columns:minmax(280px,1.45fr) minmax(190px,1fr)!important;gap:12px!important;flex:0 0 540px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band>div{height:56px!important;border:1px solid #dbe5f0!important;border-radius:8px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:14px!important;padding:0 14px!important;box-sizing:border-box!important;font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band>label{height:56px!important;border:1px solid #dbe5f0!important;border-radius:8px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:14px!important;padding:0 14px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band svg{width:22px!important;height:22px!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band small{display:block!important;font-size:11px!important;margin-top:3px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band select{border:0!important;background:transparent!important;width:100%!important;font-size:13px!important;color:#061b5a!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis article{height:104px!important;grid-template-columns:62px minmax(0,1fr)!important;position:relative!important;padding:10px 14px!important;gap:10px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpi-icon{width:58px!important;height:58px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis small{font-size:12px!important;line-height:16px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis strong{font-size:27px!important;line-height:31px!important;margin-top:4px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis em{font-size:11px!important;line-height:14px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis article>i{background:none!important;position:absolute!important;right:10px!important;bottom:10px!important;font-size:9px!important;color:#7181a0!important;width:auto!important;height:auto!important;font-style:normal!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card>header{height:48px!important;padding:0 12px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card h2{font-size:22px!important;display:flex!important;align-items:center!important;gap:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card h2 svg{width:28px!important;height:28px!important;color:#007d49!important;display:block!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-new{font-size:13px!important;height:35px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar{grid-template-columns:2.1fr repeat(5,1fr)!important;gap:10px!important;padding-bottom:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar label{height:38px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar small{font-size:11px!important;top:-6px!important;background:#fff!important;padding:0 3px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar label:not(.search){padding-top:0!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar input{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar select{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar .search span{width:22px!important;height:22px!important;margin-left:12px!important;flex-shrink:0!important;color:#00328c!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar .search svg{width:21px!important;height:21px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap table{table-layout:auto!important;font-size:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap th{font-size:11px!important;height:30px!important;padding:0 7px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td{height:32px!important;padding:0 7px!important;font-size:12px!important;max-width:155px!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child{display:table-cell!important;white-space:nowrap!important;min-width:132px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child img{display:inline-block!important;vertical-align:middle!important;width:32px!important;height:24px!important;margin-right:7px!important;object-fit:contain!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child strong{font-weight:400!important;vertical-align:middle!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-status{font-size:11px!important;height:25px!important;min-width:100px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-actions button{width:27px!important;height:28px!important;padding:4px!important;cursor:pointer!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-actions svg{width:19px!important;height:19px!important;vertical-align:middle!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card>footer{font-size:12px!important;height:36px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-pages small{font-size:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-analytics{grid-template-columns:1.05fr .9fr 1.45fr!important;gap:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel{height:205px!important;padding:10px 12px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel h3{font-size:16px!important;line-height:22px!important;display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:7px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel h3 svg{width:23px!important;height:23px!important;color:#007d49!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut-body{grid-template-columns:44% 56%!important;height:155px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut{width:145px!important;height:145px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut:after{inset:33px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut strong{font-size:24px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut small{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-legend>div{font-size:11px!important;gap:5px!important;align-items:center!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-legend b{font-weight:400!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars{gap:7px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div{grid-template-columns:minmax(90px,1fr) minmax(95px,1.3fr) auto!important;font-size:11px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div>span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div>i{height:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend{display:grid!important;grid-template-columns:minmax(0,1fr) 120px!important;gap:6px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend svg{height:146px!important;width:100%!important;background:none!important;overflow:visible!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend text{font-size:12px!important;fill:#5b78b9!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{flex-direction:column!important;flex-wrap:nowrap!important;gap:9px!important;font-size:11px!important;padding-top:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-note{grid-column:1/-1!important;font-size:9px!important;color:#7181a0!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-empty-state{grid-column:1/-1!important;font-size:12px!important;height:150px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-loading{grid-column:1/-1!important;font-size:12px!important}

body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar{grid-template-columns:2fr 1.3fr 1.2fr 1.25fr 1.1fr!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-analytics{grid-template-columns:1.05fr .9fr 1.45fr!important}

/* AGX R4 ANIMALS INVESTOR BODY PRECISION R1 - read-only portfolio */

body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page{padding:18px 20px 20px!important;font-family:Arial,Helvetica,sans-serif!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading{min-height:66px!important;gap:16px!important;margin-bottom:16px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading h1{font-size:32px!important;line-height:38px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-heading p{font-size:16px!important;line-height:21px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band{display:grid!important;grid-template-columns:minmax(280px,1.45fr) minmax(190px,1fr)!important;gap:12px!important;flex:0 0 540px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band>div{height:56px!important;border:1px solid #dbe5f0!important;border-radius:8px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:14px!important;padding:0 14px!important;box-sizing:border-box!important;font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band>label{height:56px!important;border:1px solid #dbe5f0!important;border-radius:8px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:14px!important;padding:0 14px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band svg{width:22px!important;height:22px!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band small{display:block!important;font-size:11px!important;margin-top:3px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-date-band select{border:0!important;background:transparent!important;width:100%!important;font-size:13px!important;color:#061b5a!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis article{height:104px!important;grid-template-columns:62px minmax(0,1fr)!important;position:relative!important;padding:10px 14px!important;gap:10px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpi-icon{width:58px!important;height:58px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis small{font-size:12px!important;line-height:16px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis strong{font-size:27px!important;line-height:31px!important;margin-top:4px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis em{font-size:11px!important;line-height:14px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-kpis article>i{background:none!important;position:absolute!important;right:10px!important;bottom:10px!important;font-size:9px!important;color:#7181a0!important;width:auto!important;height:auto!important;font-style:normal!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card>header{height:48px!important;padding:0 12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card h2{font-size:22px!important;display:flex!important;align-items:center!important;gap:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card h2 svg{width:28px!important;height:28px!important;color:#007d49!important;display:block!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-new{font-size:13px!important;height:35px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar{grid-template-columns:2.1fr repeat(5,1fr)!important;gap:10px!important;padding-bottom:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar label{height:38px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar small{font-size:11px!important;top:-6px!important;background:#fff!important;padding:0 3px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar label:not(.search){padding-top:0!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar input{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar select{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar .search span{width:22px!important;height:22px!important;margin-left:12px!important;flex-shrink:0!important;color:#00328c!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar .search svg{width:21px!important;height:21px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap table{table-layout:auto!important;font-size:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap th{font-size:11px!important;height:30px!important;padding:0 7px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td{height:32px!important;padding:0 7px!important;font-size:12px!important;max-width:155px!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child{display:table-cell!important;white-space:nowrap!important;min-width:132px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child img{display:inline-block!important;vertical-align:middle!important;width:32px!important;height:24px!important;margin-right:7px!important;object-fit:contain!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-table-wrap td:first-child strong{font-weight:400!important;vertical-align:middle!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-status{font-size:11px!important;height:25px!important;min-width:100px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-actions button{width:27px!important;height:28px!important;padding:4px!important;cursor:pointer!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-actions svg{width:19px!important;height:19px!important;vertical-align:middle!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-list-card>footer{font-size:12px!important;height:36px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-pages small{font-size:9px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-analytics{grid-template-columns:1.05fr .9fr 1.45fr!important;gap:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel{height:205px!important;padding:10px 12px!important;box-sizing:border-box!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel h3{font-size:16px!important;line-height:22px!important;display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:7px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel h3 svg{width:23px!important;height:23px!important;color:#007d49!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut-body{grid-template-columns:44% 56%!important;height:155px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut{width:145px!important;height:145px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut:after{inset:33px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut strong{font-size:24px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-donut small{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-legend>div{font-size:11px!important;gap:5px!important;align-items:center!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-legend b{font-weight:400!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars{gap:7px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div{grid-template-columns:minmax(90px,1fr) minmax(95px,1.3fr) auto!important;font-size:11px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div>span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div>i{height:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend{display:grid!important;grid-template-columns:minmax(0,1fr) 120px!important;gap:6px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend svg{height:146px!important;width:100%!important;background:none!important;overflow:visible!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend text{font-size:12px!important;fill:#5b78b9!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{flex-direction:column!important;flex-wrap:nowrap!important;gap:9px!important;font-size:11px!important;padding-top:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-note{grid-column:1/-1!important;font-size:9px!important;color:#7181a0!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-empty-state{grid-column:1/-1!important;font-size:12px!important;height:150px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-loading{grid-column:1/-1!important;font-size:12px!important}


body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-global-scope{grid-template-columns:repeat(3,minmax(190px,1fr))!important;gap:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-global-scope label{height:56px!important;padding:0 15px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-global-scope span svg{width:24px!important;height:24px!important;display:block!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-global-scope select{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-toolbar{grid-template-columns:2fr 1.3fr 1.3fr 1.2fr 1.15fr!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-panel h3 select{margin-left:auto!important;font-size:10px!important;border:1px solid #dbe5f0!important;border-radius:5px!important;background:#fff!important;max-width:112px!important}

body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{gap:5px!important;padding-top:3px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend label{display:flex!important;align-items:center!important;gap:4px!important;cursor:pointer!important;font-size:10px!important;line-height:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend input{width:11px!important;height:11px!important;margin:0!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend small{display:block!important;font-size:8px!important;color:#7181a0!important}

body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{gap:5px!important;padding-top:3px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend label{display:flex!important;align-items:center!important;gap:4px!important;cursor:pointer!important;font-size:10px!important;line-height:12px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend input{width:11px!important;height:11px!important;margin:0!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend small{display:block!important;font-size:8px!important;color:#7181a0!important}

body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend svg{height:130px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-note{font-size:8px!important;line-height:10px!important}

body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend svg{height:130px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-note{font-size:8px!important;line-height:10px!important}

/* AGX R4 ANIMALS ALL FILTERED TREND SERIES - graph only */
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{max-height:130px!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;padding-right:4px!important}
body.r4-shell.auth-authenticated[data-r4-role="RANCHER"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend label{flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{max-height:130px!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;padding-right:4px!important}
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend label{flex-shrink:0!important}

/* AGX R4 WEIGHINGS THREE ROLES BODY PRECISION R1 */
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page{height:100%!important;min-height:0!important;overflow:auto!important;padding:18px 22px!important;gap:12px!important;font-family:Arial,Helvetica,sans-serif!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-heading{margin:0!important;gap:10px!important;align-items:center!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-heading>div:first-child{min-width:260px!important;flex:1!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-heading h1{font-size:34px!important;line-height:38px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weighings-scope{flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;flex:1.7!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weighings-scope label{min-width:0!important;flex:1!important;height:46px!important;padding:0 9px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-date{min-width:150px!important;height:46px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weighings-scope svg{width:22px!important;height:22px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;margin:0!important;gap:12px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis article{height:130px!important;grid-template-columns:62px minmax(0,1fr)!important;grid-template-rows:1fr auto!important;padding:12px!important;position:relative!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis strong{font-size:28px!important;line-height:32px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis small{font-size:12px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis article>i{background:none!important;width:auto!important;height:auto!important;font-size:8px!important;font-style:normal!important;color:#7181a0!important;position:absolute!important;bottom:12px!important;right:9px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis article>.r4-weigh-link{grid-column:1/-1!important;justify-self:start!important;font-size:12px!important;margin-top:8px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list{margin:0!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list>header{height:50px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar{grid-template-columns:minmax(240px,2fr) repeat(3,minmax(100px,1fr))!important;gap:8px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar:has(#r4WeighPartner){grid-template-columns:minmax(230px,2fr) repeat(4,minmax(95px,1fr))!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar label{height:36px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-table-wrap{max-height:none!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-table-wrap table{font-size:12px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-table-wrap th{font-size:11px!important;height:34px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-table-wrap td{height:32px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-actions svg{width:16px!important;height:16px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-actions button{cursor:pointer!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list h2 svg{width:24px!important;height:24px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-panel h3 svg{width:22px!important;height:22px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-analytics{grid-template-columns:1.3fr 1fr 1fr!important;flex:1!important;min-height:230px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-panel{min-height:230px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-panel h3{font-size:16px!important;height:30px!important;display:flex!important;align-items:center!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-bars>div{font-size:11px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-bars i{height:16px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-legend>div{font-size:10px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-donut{width:152px!important;height:152px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-axis{overflow:hidden!important;gap:6px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-axis span{flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-link{font-size:11px!important;cursor:pointer!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-trend svg{background:none!important}
@media(max-width:1100px){body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-heading{flex-wrap:wrap!important}body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weighings-scope{flex-basis:100%!important}body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-analytics{grid-template-columns:1fr!important}}

body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list>header{height:46px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list>footer{height:30px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-table-wrap td{height:30px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-analytics{min-height:210px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-panel{min-height:210px!important}

/* AGX R4 WEIGHINGS MOCKUP FIDELITY CORRECTION */
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-heading h1{font-size:34px!important;line-height:38px!important;font-weight:700!important;letter-spacing:-1px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-heading p{font-size:17px!important;line-height:22px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpi-icon.exact, body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpi-icon.exact img{width:62px!important;height:62px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis article{grid-template-columns:68px minmax(0,1fr)!important;padding:12px 14px!important;column-gap:12px!important;height:130px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis small{font-size:14px!important;line-height:18px!important;font-weight:700!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis strong{font-size:32px!important;line-height:38px!important;font-weight:700!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis em{font-size:12px!important;line-height:16px!important;font-weight:400!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis article>.r4-weigh-link{font-size:14px!important;line-height:18px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-kpis article>i{font-size:10px!important;max-width:100px!important;text-align:right!important;line-height:12px!important;bottom:15px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list>header{height:54px!important;display:flex!important;gap:10px!important;padding:0 12px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list h2{font-size:22px!important;line-height:28px!important;white-space:nowrap!important;flex:0 0 auto!important;margin-right:auto!important;font-weight:700!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar{display:flex!important;gap:8px!important;padding:0!important;min-width:0!important;flex:0 1 66%!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar label{min-width:90px!important;flex:1!important;height:36px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar label.search{flex:2.4!important;min-width:200px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar input, body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar select{font-size:12px!important;padding:0 10px!important;line-height:18px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-head-actions{flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-table-wrap th{font-size:13px!important;font-weight:600!important;height:34px!important;padding:0 8px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-table-wrap td{font-size:13px!important;font-weight:400!important;height:30px!important;padding:0 8px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-rowlink{font-size:13px!important;line-height:18px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-status{font-size:12px!important;line-height:18px!important;min-width:90px!important;height:24px!important;gap:7px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-status:before{content:""!important;width:8px!important;height:8px!important;border-radius:50%!important;background:currentColor!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-panel h3{font-size:18px!important;line-height:24px!important;font-weight:700!important;height:32px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-bars>div{font-size:13px!important;grid-template-columns:110px minmax(0,1fr) auto!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-legend>div{font-size:12px!important;line-height:17px!important;gap:8px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-donut{width:170px!important;height:170px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-donut strong{font-size:26px!important;line-height:30px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-donut small{font-size:13px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-link{font-size:13px!important;line-height:18px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list>footer{font-size:11px!important;line-height:16px!important;height:28px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-trend{min-height:120px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-trend svg{min-height:110px!important;max-height:160px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-empty{font-size:13px!important;line-height:20px!important;padding:20px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weighings-scope select{font-size:13px!important;font-weight:600!important}
@media(max-width:1250px){body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-list>header{height:auto!important;min-height:54px!important;flex-wrap:wrap!important;padding:10px 12px!important}body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-toolbar{order:3!important;flex-basis:100%!important}}

/* AGX R4 WEIGHINGS VALUE AND STATE PANELS MOCKUP ALIGNMENT */
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel h3{display:flex!important;gap:8px!important;white-space:nowrap!important;font-size:17px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel h3 select{margin-left:auto!important;width:128px!important;height:28px!important;flex-shrink:0!important;border:1px solid #dce6f3!important;border-radius:6px!important;background:#fff!important;color:#174abd!important;font-size:11px!important;padding:0 7px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel .r4-weigh-bars{justify-content:flex-start!important;gap:8px!important;overflow:auto!important;min-height:0!important;padding-top:8px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel .r4-weigh-bars>div{grid-template-columns:100px minmax(60px,1fr) 86px!important;font-size:13px!important;line-height:18px!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel .r4-weigh-bars i{height:18px!important;border-radius:4px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel .r4-weigh-bars strong{text-align:right!important;font-size:13px!important;color:#082c85!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-note{font-size:11px!important;color:#7282a0!important;text-align:center!important;padding-top:4px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-donut-body{grid-template-columns:152px minmax(0,1fr)!important;gap:18px!important;align-items:center!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-donut{width:152px!important;height:152px!important;flex-shrink:0!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-donut:after{inset:33px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-donut strong{font-size:26px!important;line-height:30px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-legend{gap:15px!important;min-width:0!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-legend>div{grid-template-columns:15px minmax(0,1fr) auto!important;font-size:13px!important;line-height:18px!important;gap:8px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-legend i{width:15px!important;height:15px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel .r4-weigh-legend b{font-size:13px!important;white-space:nowrap!important;color:#174abd!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel>.r4-weigh-link, body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-state-panel>.r4-weigh-link{padding-top:10px!important;font-size:13px!important}

/* AGX R4 WEIGHINGS VALUE PANEL INTERNAL SCROLL */
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel{height:240px!important;max-height:240px!important;min-height:0!important;box-sizing:border-box!important;overflow:hidden!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel .r4-weigh-bars{flex:1 1 0!important;min-height:0!important;max-height:150px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;padding-right:5px!important}
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel h3, body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel>.r4-weigh-link{flex:0 0 auto!important}

/* AGX R4 WEIGHINGS LOT COLOR IDENTITY WITHOUT FABRICATED VALUE */
body.r4-shell.auth-authenticated[data-r4-view="weighings"] #r3bContent #r3bRouteHost .r4-weighings-page .r4-weigh-value-panel .r4-weigh-bars>div>span:before{content:""!important;display:inline-block!important;width:8px!important;height:8px!important;border-radius:50%!important;background:var(--lot-color)!important;margin-right:5px!important}

/* Lotes: complete filtered lists, scroll inside existing analytics cards. */
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-bars{height:155px!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-bars>div{flex-shrink:0!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-trend-legend{height:155px!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body.r4-shell #r3bContent #r3bRouteHost .r4-lots-page .r4-lots-trend-legend>span{flex-shrink:0!important;overflow-wrap:anywhere}

/* Complete Animals/Dashboard analytics; preserve existing card dimensions. */
body.r4-shell #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars{height:145px!important;min-height:0!important;overflow-y:auto!important;justify-content:flex-start!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body.r4-shell #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-bars>div{flex-shrink:0!important}
body.r4-shell #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend{height:130px!important;min-height:0!important;max-height:130px!important;overflow-y:auto!important;overflow-x:hidden!important;flex-wrap:nowrap!important;flex-direction:column!important;justify-content:flex-start!important;overscroll-behavior:contain;scrollbar-gutter:stable}
body.r4-shell #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend>label,body.r4-shell #r3bContent #r3bRouteHost .r4-animals-page .r4-animals-trend-legend>span{flex-shrink:0!important}
body.r4-shell #dashboardContent #r4AdminLotStatus{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;justify-content:flex-start!important}
body.r4-shell #dashboardContent #r4AdminLotStatus>.r4-lot-row{flex-shrink:0!important;min-height:20px}
body.r4-shell #dashboardContent #r4AdminFarmValue{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start!important;grid-auto-rows:minmax(18px,auto)}

/* Investor Dashboard: no illustrative trend without documented history. */
.r4-investor-dashboard .mini-spark{visibility:hidden}

/* Investor Dashboard full scoped lists, bounded inside existing cards. */
.r4-investor-dashboard .portfolio-card .r4-investor-legend{max-height:185px!important;overflow-y:auto!important;justify-content:flex-start!important;overscroll-behavior:contain}
.r4-investor-dashboard .portfolio-card .r4-investor-legend>div{flex-shrink:0!important}
.r4-investor-dashboard .r4-investor-scroll{max-height:215px;overflow-y:auto;overscroll-behavior:contain}
.r4-investor-dashboard .r4-investor-farm-scroll{max-height:120px;overflow-y:auto;overscroll-behavior:contain;margin:0 10px;font-size:10px}
.r4-investor-dashboard .r4-investor-farm-scroll>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:7px;min-height:22px}

.r4-investor-dashboard #r4InvestorLotStatus{max-height:190px;overflow-y:auto;overscroll-behavior:contain}

/* Investor Centro de Control: all authorized farms remain accessible. */
body.r4-shell[data-r4-role="INVESTOR"] #dashboardContent.r4-dashboard-precision .distribution-legend{max-height:190px!important;overflow-y:auto!important;min-height:0!important}
body.r4-shell[data-r4-role="INVESTOR"] #dashboardContent.r4-dashboard-precision .dist-row{flex-shrink:0!important}

/* Registrar Venta: inactive wizard steps must respect their hidden state. */
body.r4-shell.auth-authenticated[data-r4-view="sale-register"] #saleRegisterForm > [hidden]{display:none!important}

/* AGROLOGIX_R4_SALES_R12_INVESTOR_READONLY_NAV_INVARIANT */
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] #mainNav [data-route="sale-register"]{
  display:none!important;
}

/* AGROLOGIX_R4_SALES_R15_INVESTOR_AUTHROLE_NAV_INVARIANT */
body.r4-shell.auth-authenticated[data-auth-role="INVESTOR"] #mainNav [data-route="sale-register"]{
  display:none!important;
}

/* AGROLOGIX_R4_SALES_R16_INVESTOR_R4X_REGISTER_NAV_INVARIANT */
body.r4-shell.auth-authenticated[data-r4-role="INVESTOR"] .r4x-nav [data-r4x-route="sale-register"],
body.r4-shell.auth-authenticated[data-auth-role="INVESTOR"] .r4x-nav [data-r4x-route="sale-register"]{
  display:none!important;
}


/* AGROLOGIX_R4_DASHBOARD_EXPANDABLE_CARDS_R3B_ACTIVE */
body.r4-shell.auth-authenticated #dashboardContent .r4-admin-middle .r4-admin-card.r4-dashboard-expandable,
body.r4-shell.auth-authenticated #dashboardContent .r4-admin-bottom .r4-admin-card.r4-dashboard-expandable{
  cursor:pointer!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
body.r4-shell.auth-authenticated #dashboardContent .r4-admin-middle .r4-admin-card.r4-dashboard-expandable:hover,
body.r4-shell.auth-authenticated #dashboardContent .r4-admin-bottom .r4-admin-card.r4-dashboard-expandable:hover,
body.r4-shell.auth-authenticated #dashboardContent .r4-admin-card.r4-dashboard-expandable:focus-visible{
  border-color:#08a85d!important;
  box-shadow:0 12px 30px rgba(17,74,52,.16)!important;
  outline:none!important;
}
.r4-dashboard-expanded-modal[hidden]{display:none!important}
.r4-dashboard-expanded-modal.open{
  position:fixed!important;
  left:288px!important;
  top:64px!important;
  right:0!important;
  bottom:0!important;
  z-index:20000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:22px!important;
  background:rgba(8,31,49,.34)!important;
  backdrop-filter:blur(2px)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.r4-dashboard-expanded-dialog{
  position:relative!important;
  width:min(1200px,calc(100% - 36px))!important;
  height:min(720px,calc(100% - 36px))!important;
  min-height:430px!important;
  background:#fff!important;
  border:1px solid #d8e4df!important;
  border-radius:16px!important;
  box-shadow:0 24px 68px rgba(5,34,50,.28)!important;
  overflow:hidden!important;
}
.r4-dashboard-expanded-close{
  position:absolute!important;
  right:14px!important;
  top:14px!important;
  z-index:5!important;
  width:38px!important;
  height:38px!important;
  border:1px solid #d7e3de!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#284c65!important;
  font-size:23px!important;
  line-height:1!important;
  cursor:pointer!important;
}
.r4-dashboard-expanded-body{
  width:100%!important;
  height:100%!important;
  padding:24px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.r4-dashboard-expanded-clone{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  cursor:default!important;
  overflow:hidden!important;
}
.r4-dashboard-expanded-clone h2{
  font-size:24px!important;
  line-height:30px!important;
  padding-right:48px!important;
}
.r4-dashboard-expanded-clone .r4-list-row{
  min-height:62px!important;
  font-size:14px!important;
}
.r4-dashboard-expanded-clone table{
  width:100%!important;
  font-size:14px!important;
}
.r4-dashboard-expanded-clone th,
.r4-dashboard-expanded-clone td{
  padding:11px 13px!important;
}
@media(max-width:1100px){
  .r4-dashboard-expanded-modal.open{left:0!important;padding:12px!important}
  .r4-dashboard-expanded-dialog{width:calc(100% - 16px)!important;height:calc(100% - 16px)!important}
}
