/*
 * AgroCampos QA32 | COMPONENTS / MODULES
 * Original native implementation guided by Astryx design conventions;
 * all selectors target existing real operations. No fake controls.
 */
/* Editorial dashboard: status is meaningful without making every datum a card. */
body.qa32-variant .qa28-dashboard{gap:30px}
body.qa32-variant .qa28-dashboard-lead{gap:22px}
body.qa32-variant .qa28-lead-note{color:var(--ag-muted);font-size:12.5px}
body.qa32-variant .qa28-spotlight{
 min-height:0;gap:14px;
 grid-template-columns:minmax(0,1.55fr) minmax(256px,.75fr);
}
body.qa32-variant .qa28-spotlight-primary{
 background:var(--ag-paper);
 color:var(--ag-ink);
 border:1px solid var(--ag-line);
 border-radius:var(--ag-radius-surface);
 box-shadow:none;
 min-height:0;
}
body.qa32-variant .qa28-spotlight-primary:before{
 display:none!important;content:none!important;
}
body.qa32-variant .qa28-spotlight-primary:after{
 display:block;content:"";position:absolute;
 top:0;bottom:auto;left:0;right:auto;height:100%;width:3px;
 background:linear-gradient(180deg,var(--ag-primary),var(--ag-primary-tint));
 opacity:1;box-shadow:none;
}
body.qa32-variant .qa28-spotlight .v14-hero{
 min-height:209px;height:100%;
 padding:24px 26px 23px 30px;
 grid-template-columns:minmax(0,1.5fr) minmax(140px,.55fr);
 grid-template-rows:auto 1fr auto;
 gap:0 20px;
 color:var(--ag-ink);
}
body.qa32-variant .qa28-spotlight .v14-hero .v14-eyebrow{
 color:var(--ag-muted);font-size:13px;font-weight:570;
}
body.qa32-variant .qa28-spotlight .v14-hero .v14-eyebrow svg{
 color:var(--ag-primary);
}
body.qa32-variant .qa28-spotlight .v14-hero .v14-hero-total{
 color:var(--ag-ink);
 font-size:clamp(31px,2.8vw,44px);
 line-height:1.12;
 letter-spacing:-.035em;
 font-weight:650;
 margin:3px 0 10px;
}
body.qa32-variant .qa28-spotlight .v14-hero .hero-link{
 color:var(--ag-primary-ink);
 font-weight:640;min-height:33px;
 border-color:var(--ag-line-deep);
 transition:opacity var(--ag-fast) ease,gap var(--ag-fast) ease;
}
body.qa32-variant .qa28-spotlight .v14-hero .hero-link:after{background:var(--ag-line-deep)}
body.qa32-variant .qa28-spotlight .hero-quick-summary{
 border-left:1px solid var(--ag-line);
 border-top:0;padding:3px 0 3px 21px;
}
body.qa32-variant .qa28-spotlight .hero-quick-summary>div{
 margin:0;min-width:0;padding:7px 0;border:0;
}
body.qa32-variant .qa28-spotlight .hero-quick-summary>div:first-child{
 border-bottom:1px solid var(--ag-line);
 padding-bottom:14px;
}
body.qa32-variant .qa28-spotlight .hero-quick-summary span{
 color:var(--ag-muted);font-size:12px;
}
body.qa32-variant .qa28-spotlight .hero-quick-summary strong{
 font-size:23px;line-height:1.16;font-weight:650;color:var(--ag-ink);
}
body.qa32-variant .qa28-spotlight-aside{gap:14px;min-height:0}
body.qa32-variant .qa28-spotlight-aside .v14-progress{
 background:var(--ag-surface-muted);
 border:1px solid var(--ag-line);
 border-radius:var(--ag-radius-surface);
 color:var(--ag-ink);
 padding:16px 20px;gap:7px;
}
body.qa32-variant .qa28-spotlight-aside .v14-progress strong{
 color:var(--ag-ink);font-size:25px;font-weight:650;
}
body.qa32-variant .qa28-spotlight-aside .v14-progress h2{color:var(--ag-ink-soft);font-size:14px}
body.qa32-variant .qa28-spotlight-aside .v14-progress p{
 color:var(--ag-muted);font-size:12px;
}
body.qa32-variant .qa28-spotlight-aside .v14-progress a{color:var(--ag-primary-ink)}
body.qa32-variant .qa28-spotlight-aside .v14-progress-fill{background:var(--ag-primary)}
body.qa32-variant .qa28-spotlight-aside>.panel{
 padding:16px 20px;border-color:var(--ag-line);
}
body.qa32-variant .qa28-spotlight-aside .panel h2{font-size:14px;font-weight:650}
body.qa32-variant .qa28-ledger .ag21-stats{padding:16px 0 8px}
body.qa32-variant .qa28-ledger .ag21-stat{
 min-height:97px;gap:6px;padding:8px 19px;border-color:var(--ag-line);
}
body.qa32-variant .qa28-ledger .ag21-stat:first-child{padding-left:0}
body.qa32-variant .qa28-ledger .ag21-stat-label{
 color:var(--ag-muted);font-size:12.5px;font-weight:570;
}
body.qa32-variant .qa28-ledger .ag21-stat-figure{
 color:var(--ag-ink);font-size:clamp(21px,1.9vw,29px);
 font-weight:655;letter-spacing:-.034em;
}
body.qa32-variant .qa28-ledger .ag21-stat-caption{
 font-size:11.8px;color:var(--ag-muted);line-height:1.5;
}
body.qa32-variant .qa28-activity-grid{gap:14px}
body.qa32-variant .qa28-activity-grid .panel{padding:22px 24px;min-height:240px}
body.qa32-variant .qa28-details-grid{gap:14px}
body.qa32-variant .qa28-details-grid>.qa29-finance-card{padding:21px 23px}
body.qa32-variant .qa28-details-grid>.qa29-finance-card .panel-head{
 border-color:var(--ag-line);padding-bottom:13px;margin-bottom:5px;
}
body.qa32-variant .qa28-details-grid>.qa29-finance-card .panel-head h2{
 font-size:15.5px;font-weight:660;
}
body.qa32-variant .qa28-details-grid>.qa29-finance-card :is(.breakdown dl>div,.settlement-summary>div){
 border-color:var(--ag-line);
 gap:18px;min-height:41px;padding-block:10px;
}
body.qa32-variant .qa28-details-grid>.qa29-finance-card :is(.breakdown dt,.settlement-summary>div>span){
 color:var(--ag-muted);font-size:13.2px;font-weight:460;
}
body.qa32-variant .qa28-details-grid>.qa29-finance-card :is(.breakdown dd,.settlement-summary>div>strong){
 font-size:14.4px;font-weight:650;color:var(--ag-ink);
}
body.qa32-variant .qa28-details-grid>.qa29-finance-card :is(.breakdown dl>.result,.settlement-summary>div:last-of-type){
 background:var(--ag-surface-muted);border-color:var(--ag-line);
}
body.qa32-variant .qa28-details-grid>.qa29-finance-card .finance-profit-note{
 color:var(--ag-muted);border-color:var(--ag-line);
}
/* Stock and negotiation: 4 sibling data points in a single baseline, no empty second row. */
body.qa32-variant .palha-summary{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 border-radius:var(--ag-radius-surface);
 background:var(--ag-paper);border:1px solid var(--ag-line);
 margin-bottom:24px;gap:0;overflow:hidden;
}
body.qa32-variant .palha-summary>div{
 padding:20px 22px;
 border-right:1px solid var(--ag-line);
 border-bottom:0;
 min-width:0;
}
body.qa32-variant .palha-summary>div:last-child{border-right:0}
body.qa32-variant .palha-summary span{
 display:block;font-size:12.6px;line-height:1.4;color:var(--ag-muted);
 font-weight:520;
}
body.qa32-variant .palha-summary strong{
 margin:10px 0 5px;
 font-size:clamp(19px,1.8vw,26px);
 font-weight:660;letter-spacing:-.032em;
 color:var(--ag-ink);
}
body.qa32-variant .palha-summary small{
 font-size:11.8px;line-height:1.5;color:var(--ag-muted);
}
body.qa32-variant .palha-panel{padding:24px 26px;border-color:var(--ag-line)}
body.qa32-variant .palha-panel .panel-head{margin-bottom:20px}
body.qa32-variant .palha-panel .panel-head h2{font-size:17px}
body.qa32-variant .palha-panel .empty-state{
 border:0;background:transparent;
 align-items:flex-start;text-align:left;min-height:175px;
 padding:20px 2px;
}
/* Finance: distinguish open balances vs realized transactions without nesting four cards. */
body.qa32-variant .qa28-finance-top{margin-bottom:26px}
body.qa32-variant .qa28-finance-top .metrics{
 background:var(--ag-paper);border:1px solid var(--ag-line);
 padding:9px 5px;border-radius:var(--ag-radius-surface);
}
body.qa32-variant .qa28-finance-top .metric{
 padding:18px 22px;
 min-height:106px;border-color:var(--ag-line);
 gap:7px;
}
body.qa32-variant .qa28-finance-top .metric>span{font-size:12.5px;color:var(--ag-muted)}
body.qa32-variant .qa28-finance-top .metric strong{
 color:var(--ag-ink);
 font-weight:650;
 font-size:clamp(20px,1.8vw,27px);
 letter-spacing:-.035em;
}
body.qa32-variant .qa28-finance-top .metric small{font-size:12px;color:var(--ag-muted)}
body.qa32-variant .qa28-finance-records .dashboard-grid{gap:14px}
body.qa32-variant .qa28-finance-records .panel{
 background:var(--ag-paper);padding:22px 24px;
 border-color:var(--ag-line);border-radius:var(--ag-radius-surface);
}
body.qa32-variant .qa28-finance-records .section-tabs{
 margin-bottom:18px;border-color:var(--ag-line);
 gap:2px;min-height:46px;
}
body.qa32-variant .section-tabs a{
 min-height:43px;padding:9px 14px;
 font-size:13px;color:var(--ag-muted);
 border-radius:var(--ag-radius-inner) var(--ag-radius-inner) 0 0;
 transition:color var(--ag-fast) ease,background-color var(--ag-fast) ease;
}
body.qa32-variant .section-tabs a:hover{background:var(--ag-surface-muted)}
body.qa32-variant .section-tabs a:is(.active,[aria-current=page]){color:var(--ag-primary-ink)}
body.qa32-variant .section-tabs a:is(.active,[aria-current=page]):after{
 background:var(--ag-primary);height:2px;
}
body.qa32-variant .qa28-finance-records .panel h2{font-size:15.5px;font-weight:650}
/* Producers, clients, loads, history: flat toolbar and records. */
body.qa32-variant .qa28-counts{
 border-color:var(--ag-line);padding-bottom:18px;margin-bottom:21px;
}
body.qa32-variant .operation-counts{gap:0}
body.qa32-variant .operation-counts>span{
 padding:8px 23px 8px 0;margin-right:23px;
 font-size:12.5px;gap:7px;
 border-color:var(--ag-line);color:var(--ag-muted);
}
body.qa32-variant .operation-counts b{
 font-size:clamp(22px,2vw,29px);
 font-weight:650;letter-spacing:-.032em;color:var(--ag-ink);
}
body.qa32-variant .qa28-register-panel{
 border:0!important;background:transparent!important;
 box-shadow:none!important;padding:0!important;
}
body.qa32-variant .qa28-register-panel>.panel-head{
 gap:16px;margin-bottom:16px;
}
body.qa32-variant .qa28-register-panel>.panel-head h2{
 font-size:17px;font-weight:670;
}
body.qa32-variant :is(.filters,.ag-f7-filters){
 background:var(--ag-paper);
 border:1px solid var(--ag-line);
 border-radius:var(--ag-radius-surface);
 padding:11px 13px;gap:9px;
}
body.qa32-variant .filters .search{gap:9px}
body.qa32-variant .search input{
 min-height:40px!important;background:transparent!important;
 border:0!important;box-shadow:none!important;
}
body.qa32-variant .ag17-toolbar{gap:9px}
body.qa32-variant .ag17-toolbar .ag17-chips{gap:6px}
body.qa32-variant .ag17-chips [aria-pressed=true]{background:var(--ag-primary-tint)}
body.qa32-variant :is(.ag19-orderbar,.ag25-toolbar-caption,.ag25-results-count){
 color:var(--ag-muted);font-size:12px;
}
body.qa32-variant :is(.empty-state,.ag-f7-empty){
 background:var(--ag-paper);
 border:1px dashed var(--ag-line-deep);
 border-radius:var(--ag-radius-surface);
 min-height:156px;padding:26px 21px;
 color:var(--ag-muted);line-height:1.6;
}
body.qa32-variant .empty-state strong{color:var(--ag-ink)}
/* Tables: readable row tracking, predictable data alignment and hover. */
body.qa32-variant :is(.table-wrap,.ag-f7-table-region){
 border:1px solid var(--ag-line);
 border-radius:var(--ag-radius-surface);
 background:var(--ag-paper);
 overflow-x:auto;
 overscroll-behavior-x:contain;
}
body.qa32-variant table{
 background:var(--ag-paper);
 color:var(--ag-ink);
 font-size:13px;
 border-collapse:separate;border-spacing:0;
 line-height:1.45;
}
body.qa32-variant table thead th{
 background:var(--ag-paper-alt);
 color:var(--ag-muted);
 font-size:11px;font-weight:660;
 letter-spacing:.035em;
 text-transform:none;
 border-color:var(--ag-line);
 padding:13px 14px;
}
body.qa32-variant table :is(td,th){
 border-color:var(--ag-line);
 padding:13px 14px;
}
body.qa32-variant table tbody tr{
 background:var(--ag-paper);
 color:var(--ag-ink);
 transition:background-color var(--ag-fast) ease;
}
body.qa32-variant table tbody tr:hover{background:var(--ag-paper-alt)}
body.qa32-variant table tbody tr:last-child td{border-bottom:0}
body.qa32-variant th button.ag19-sort-button{font-size:inherit;color:inherit}
/* Calculator: a form-oriented studio, lighter selection panel and precise results. */
body.qa32-variant .qa28-calculator{
 grid-template-columns:minmax(213px,.31fr) minmax(0,1fr);
 gap:18px;align-items:start;
}
body.qa32-variant .qa28-calc-intro{
 padding:22px;
 background:var(--ag-paper-alt);
 border:1px solid var(--ag-line);
 border-radius:var(--ag-radius-surface);
}
body.qa32-variant .qa28-calculator .calc-product-grid{
 gap:7px;margin-top:21px;
}
body.qa32-variant .qa28-calculator .calc-product{
 border:1px solid var(--ag-line);
 border-radius:var(--ag-radius-control);
 padding:12px 13px;min-height:53px;
 background:var(--ag-paper);
 transition:background-color var(--ag-fast) ease,border-color var(--ag-fast) ease,transform var(--ag-fast) ease;
}
body.qa32-variant .qa28-calculator .calc-product:hover{border-color:var(--ag-primary)}
body.qa32-variant .qa28-calculator .calc-product-active,
body.qa32-variant .qa28-calculator .calc-product[aria-pressed=true]{
 background:var(--ag-primary-tint);border-color:var(--ag-primary);
 color:var(--ag-primary-ink);font-weight:650;
}
body.qa32-variant .qa28-calculator .calc-product-active small,
body.qa32-variant .qa28-calculator .calc-product[aria-pressed=true] small{
 color:var(--ag-muted);
}
body.qa32-variant .qa28-calc-work{
 padding:clamp(22px,2.2vw,32px);
 background:var(--ag-paper);border-color:var(--ag-line);
 border-radius:var(--ag-radius-surface);
}
body.qa32-variant .qa28-calc-work-heading{
 gap:14px;padding-bottom:18px;margin-bottom:23px;border-color:var(--ag-line);
}
body.qa32-variant .qa28-calc-work-heading h2{
 font-size:19px;font-weight:660;
}
body.qa32-variant .calc-form{gap:22px}
body.qa32-variant .calc-panel{
 padding-bottom:24px!important;border-color:var(--ag-line)!important;
}
body.qa32-variant .calc-panel h2{font-size:15px!important;font-weight:670}
body.qa32-variant .calc-fields{gap:16px}
body.qa32-variant .calc-preview-panel{
 padding:20px!important;
 border:1px solid var(--ag-line)!important;
 border-radius:var(--ag-radius-control)!important;
 background:var(--ag-paper-alt)!important;
}
body.qa32-variant :is(.calc-results,.calc-result,.calc-summary){
 background:var(--ag-paper-alt);
 padding:15px;border-radius:var(--ag-radius-control);
 border:1px solid var(--ag-line);
}
body.qa32-variant :is(.calc-result,.calc-summary) strong{
 font-size:22px;font-weight:650;
 font-variant-numeric:tabular-nums;
}
/* Calendar: modal on mobile, compact controls on desktop, no arbitrary clipping. */
body.qa32-variant .ag18-panel{border-color:var(--ag-line-deep)}
body.qa32-variant .ag18-head,
body.qa32-variant .ag18-footer{border-color:var(--ag-line)}
body.qa32-variant .ag18-presets{
 background:var(--ag-paper-alt);border-color:var(--ag-line);
}
body.qa32-variant .ag18-preset[aria-pressed=true]{
 background:var(--ag-primary-tint);color:var(--ag-primary-ink);
}
body.qa32-variant .ag18-day{
 min-height:36px;
 border-radius:var(--ag-radius-inner);
 color:var(--ag-ink);
}
body.qa32-variant .ag18-day:hover{background:var(--ag-surface-muted)}
body.qa32-variant .ag18-day[aria-pressed=true]{
 background:var(--ag-primary);color:#fff;
}
/* Responsive: hierarchy stays intact without shrinking desktop tables into unreadable columns. */
@media(max-width:1230px){
 body.qa32-variant .palha-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qa32-variant .palha-summary>div:nth-child(2){border-right:0}
 body.qa32-variant .palha-summary>div:nth-child(-n+2){border-bottom:1px solid var(--ag-line)}
}
@media(max-width:1050px){
 body.qa32-variant .qa28-spotlight{
  grid-template-columns:1fr;
 }
 body.qa32-variant .qa28-spotlight-aside{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qa32-variant .qa28-finance-top .metrics{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qa32-variant .qa28-finance-top .metric:nth-child(2){border-right:0}
 body.qa32-variant .qa28-finance-top .metric:nth-child(-n+2){border-bottom:1px solid var(--ag-line)}
 body.qa32-variant .qa28-calculator{
  grid-template-columns:minmax(0,1fr);
 }
 body.qa32-variant .qa28-calc-intro{position:static}
}
@media(max-width:650px){
 body.qa32-variant .qa28-dashboard{gap:24px}
 body.qa32-variant .qa28-spotlight{display:contents}
 body.qa32-variant .qa28-spotlight-primary{border-radius:var(--ag-radius-surface)}
 body.qa32-variant .qa28-spotlight .v14-hero{
  display:flex;flex-direction:column;
  padding:22px 20px;min-height:0;
 }
 body.qa32-variant .qa28-spotlight .v14-hero .v14-hero-total{
  font-size:clamp(29px,8vw,39px);
  margin:12px 0 7px;
 }
 body.qa32-variant .qa28-spotlight .hero-quick-summary{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  border-left:0;border-top:1px solid var(--ag-line);
  margin-top:13px;padding:12px 0 0;width:100%;
  gap:0;
 }
 body.qa32-variant .qa28-spotlight .hero-quick-summary>div:first-child{
  border-bottom:0;padding:5px 8px 5px 0;
 }
 body.qa32-variant .qa28-spotlight .hero-quick-summary>div+div{
  border-left:1px solid var(--ag-line)!important;
  padding-left:14px;
 }
 body.qa32-variant .qa28-spotlight .hero-quick-summary strong{font-size:18px}
 body.qa32-variant .qa28-spotlight-aside{
  display:grid;grid-template-columns:1fr;grid-template-rows:auto;
  gap:12px;
 }
 body.qa32-variant .qa28-ledger .ag21-stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 0;
 }
 body.qa32-variant .qa28-ledger .ag21-stat{
  min-height:85px;padding:9px 12px;
 }
 body.qa32-variant .qa28-ledger .ag21-stat:nth-child(2){border-right:0}
 body.qa32-variant .qa28-ledger .ag21-stat:nth-child(odd){padding-left:0}
 body.qa32-variant .qa28-ledger .ag21-stat-figure{font-size:22px}
 body.qa32-variant .qa28-details-grid>.qa29-finance-card{padding:18px}
 body.qa32-variant .palha-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-bottom:18px;
 }
 body.qa32-variant .palha-summary>div{
  padding:16px 14px;border-right:1px solid var(--ag-line);
  border-bottom:1px solid var(--ag-line);
 }
 body.qa32-variant .palha-summary>div:nth-child(even){border-right:0}
 body.qa32-variant .palha-summary>div:nth-last-child(-n+2){border-bottom:0}
 body.qa32-variant .palha-summary strong{font-size:clamp(17px,4.5vw,23px)}
 body.qa32-variant .palha-summary span{font-size:12px}
 body.qa32-variant .palha-summary small{font-size:11.6px}
 body.qa32-variant .palha-panel{padding:20px}
 body.qa32-variant .qa28-finance-top .metric{padding:16px}
 body.qa32-variant .qa28-finance-top .metric strong{font-size:21px}
 body.qa32-variant .qa28-calc-intro{padding:20px}
 body.qa32-variant .qa28-calc-work{padding:20px}
 body.qa32-variant .calc-fields{grid-template-columns:1fr;gap:14px}
 body.qa32-variant .calc-wide{grid-column:1}
 body.qa32-variant .calc-preview-panel{padding:17px!important}
 body.qa32-variant .calc-results{padding:13px}
 body.qa32-variant .qa28-register-panel>.panel-head h2{font-size:16px}
 body.qa32-variant .ag18-layout{grid-template-columns:1fr}
 body.qa32-variant .ag18-presets{
  flex-direction:row;overflow-x:auto;white-space:nowrap;
  padding:9px;gap:5px;border-bottom:1px solid var(--ag-line);
 }
 body.qa32-variant .ag18-day{min-height:39px}
 body.qa32-variant .ag18-panel{
  max-height:min(85dvh,630px);
 }
 body.qa32-variant .dialog-header{padding:18px 20px}
 body.qa32-variant .dialog-body{padding:19px 20px}
 body.qa32-variant :is(.dialog-footer,.dialog-actions,.form-actions){padding:14px 20px}
}
@media(max-width:360px){
 body.qa32-variant .palha-summary{grid-template-columns:1fr}
 body.qa32-variant .palha-summary>div{
  padding:13px 17px;border-right:0;border-bottom:1px solid var(--ag-line)!important;
 }
 body.qa32-variant .palha-summary>div:last-child{border-bottom:0!important}
 body.qa32-variant .calc-product-grid{grid-template-columns:1fr 1fr}
}
html[data-ag32-theme="dark"] body.qa32-variant .qa28-spotlight-primary,
html[data-ag32-theme="dark"] body.qa32-variant .qa28-spotlight-aside .v14-progress,
html[data-ag32-theme="dark"] body.qa32-variant .qa28-finance-top .metrics,
html[data-ag32-theme="dark"] body.qa32-variant .palha-summary{
 background:var(--ag-paper);border-color:var(--ag-line);
}
html[data-ag32-theme="dark"] body.qa32-variant .qa28-spotlight .v14-hero .v14-eyebrow,
html[data-ag32-theme="dark"] body.qa32-variant .qa28-spotlight .hero-quick-summary span{
 color:var(--ag-muted);
}
html[data-ag32-theme="dark"] body.qa32-variant .qa28-spotlight .hero-quick-summary strong,
html[data-ag32-theme="dark"] body.qa32-variant .qa28-spotlight .v14-hero .hero-link{
 color:var(--ag-ink);
}
html[data-ag32-theme="dark"] body.qa32-variant :is(.ag21-stat,.ag21-stat-figure,
 .metric,.metric strong,.calc-panel,.calc-result,.calc-summary){
 color:var(--ag-ink);
}
html[data-ag32-theme="dark"] body.qa32-variant .qa28-calc-intro,
html[data-ag32-theme="dark"] body.qa32-variant .calc-preview-panel{
 background:var(--ag-paper-alt)!important;border-color:var(--ag-line)!important;
}
html[data-ag32-theme="dark"] body.qa32-variant :is(.qa28-finance-records .panel,
 .qa28-calc-work,.calc-product,.ag-f7-filters,.filters,.palha-panel){
 background:var(--ag-paper);
 border-color:var(--ag-line);
}
html[data-ag32-theme="dark"] body.qa32-variant :is(.calc-product-active,.calc-product[aria-pressed=true]){
 background:var(--ag-primary-tint);
}
html[data-ag32-theme="dark"] body.qa32-variant :is(.empty-state,.ag-f7-empty){
 background:var(--ag-paper);border-color:var(--ag-line-deep);color:var(--ag-muted);
}

/* Visual audit fix: never let progress action overlap its neighboring card. */
@media(min-width:651px){
 body.qa32-variant .qa28-spotlight .v14-hero{min-height:265px}
 body.qa32-variant .qa28-spotlight-aside{
   grid-template-rows:minmax(147px,1fr) minmax(104px,.66fr);
 }
 body.qa32-variant .qa28-spotlight-aside .v14-progress{min-height:147px}
 body.qa32-variant .qa28-spotlight-aside>.panel{min-height:104px}
}
@media(max-width:650px){
 body.qa32-variant .qa28-spotlight-aside{
  grid-template-rows:auto;min-height:0;
 }
 body.qa32-variant .qa28-spotlight-aside .v14-progress{
  min-height:0;
 }
 body.qa32-variant .qa28-spotlight .v14-hero{min-height:0}
}
/*
 * Dark optical logo treatment: use the SAME, UNALTERED original image.
 * The white matte becomes transparent through screen blending after inversion,
 * avoiding the appearance of a pasted rectangle; no downloaded/replaced logo.
 * A licensed transparent brand master remains the ideal future asset.
 */
html[data-ag32-theme=dark] body.qa32-variant .sidebar.qa30-sidebar .brand .agro-brand-wordmark,
html[data-ag32-theme=dark] body.qa32-variant .sidebar.qa30-sidebar .brand .agro-brand-symbol,
html[data-ag32-theme=dark] body.qa32-variant .agro-mobile-brand .agro-mobile-signature{
 filter:invert(1) grayscale(1) contrast(1.18)!important;
 mix-blend-mode:screen!important;
 background:transparent!important;
}
