#fertilizers { --fert-caseta-image: url("data:image/jpeg;base64,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"); }

/* AgroCore — Estanques y Bodega, tablero de alta densidad */
.fertilizer-shell.fert-dash-remodeled .fertilizer-workspace{
  display:block!important;
  grid-template-columns:minmax(0,1fr)!important;
  min-width:0;
}
.fertilizer-shell.fert-dash-remodeled .fertilizer-main-column{width:100%;min-width:0;max-width:none}
.fertilizer-shell.fert-dash-remodeled .fertilizer-caseta-grid.fert-dash-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,610px),1fr))!important;
  gap:10px!important;
  align-items:start;
}
.fert-dash-notice{grid-column:1/-1;padding:8px 10px;background:#fff8e7;border:1px solid #f1dab0;border-radius:8px;font-size:.75rem}
.fert-dash-caseta{
  min-width:0;
  background:var(--card-bg,#fff);
  border:1px solid #d7e5dc;
  border-radius:10px;
  box-shadow:0 1px 4px rgba(12,72,37,.045);
  overflow:hidden;
}
.fert-dash-caseta-head{
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:linear-gradient(90deg,#e9f4ed,#f7fbf8);
  border-bottom:1px solid #d8e7dc;
}
.fert-dash-caseta-name{display:flex;align-items:center;min-width:0;gap:7px}
.fert-dash-caseta-name h3{margin:0;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#154d2e;font-weight:850}
.fert-dash-caseta-number{font-size:.66rem;font-weight:700;color:#638374;white-space:nowrap}
.fert-dash-caseta-head > small{color:#4a715c;white-space:nowrap;font-size:.64rem}
.fert-dash-edit-alias{flex:none;border:1px solid #bfdac8;background:#fff;border-radius:5px;color:#2a7750;font-size:.75rem;cursor:pointer;min-height:24px;min-width:25px;padding:2px 5px}
.fert-dash-rows{display:grid;gap:0;min-width:0}
.fert-dash-tank{
  display:grid;
  grid-template-columns:70px minmax(100px,1fr) 42px minmax(145px,1.65fr) minmax(78px,.8fr) minmax(85px,.9fr);
  align-items:start;
  gap:6px;
  padding:7px 9px;
  border-bottom:1px solid #e8efeb;
  min-width:0;
  color:#24513a;
  font-variant-numeric:tabular-nums;
}
.fert-dash-tank:last-child{border-bottom:0}
.fert-dash-tank.status-critico,.fert-dash-tank.status-vacio{background:#fffafa}
.fert-dash-tank.status-sin-conciliar{background:#fffbef}
.fert-dash-tank-open{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  position:relative;
  border:0;background:none;text-align:left;
  padding:2px 0;cursor:pointer;min-width:0;color:#1f6b43;
}
.fert-dash-tank-open strong{font-size:.73rem;line-height:1.15;white-space:nowrap}
.fert-dash-tank-open small{font-size:.61rem;color:#698375;margin-top:3px}
.fert-dash-arrow{position:absolute;right:0;top:0;font-size:.64rem;opacity:.5}
.fert-dash-meter{display:grid;gap:4px;min-width:0;margin-top:1px}
.fert-dash-meter-head{display:flex;justify-content:space-between;align-items:center;gap:2px;min-width:0}
.fert-dash-meter-head b{font-size:.64rem;white-space:nowrap;color:#23553a}
.fert-dash-small{font-size:.57rem;color:#7f9286}
.fert-dash-bar-track{height:11px;border-radius:6px;background:#e8eee9;border:1px solid #d4e1d8;overflow:hidden}
.fert-dash-bar-track i{display:block;background:linear-gradient(90deg,#5ebb7b,#239051);height:100%;border-radius:5px;transition:width .24s ease}
.fert-dash-tank.status-critico .fert-dash-bar-track i,.fert-dash-tank.status-vacio .fert-dash-bar-track i{background:#e06969}
.fert-dash-tank.status-bajo .fert-dash-bar-track i{background:#dea85b}
.fert-dash-percent{font-size:.82rem;color:#137c49;text-align:right;padding-top:8px}
.fert-dash-percent.over-capacity{color:#ac3232}
.fert-dash-product-cell{display:grid;gap:5px;min-width:0}
.fert-dash-product-line{min-width:0;display:grid;gap:3px}
.fert-dash-product-name{color:#254d37;font-size:.72rem;line-height:1.1;overflow-wrap:anywhere}
.fert-dash-amount{font-size:.61rem;color:#668271;line-height:1.2}
.fert-dash-amount b{font-weight:900;font-size:.72rem;color:#1c7845}
.fert-dash-amount small{font-size:.63rem;color:#556d60;display:inline}
.fert-dash-dissolution{display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;font-size:.61rem;color:#6b7e71;line-height:1.25}
.fert-dash-dissolution b{color:#395d45}
.fert-dash-edit-theory{border:1px solid #cfe6d7;background:#edf8f1;color:#206842;border-radius:5px;padding:2px 5px;font-weight:800;font-size:.6rem;cursor:pointer}
.fert-dash-date,.fert-dash-potreros{display:grid;gap:4px;min-width:0}
.fert-dash-caption{font-size:.6rem;color:#7a9180}
.fert-dash-date b{font-size:.7rem;color:#2b5940;overflow-wrap:anywhere}
.fert-dash-potreros>div{display:flex;flex-wrap:wrap;gap:3px}
.fert-dash-potreros>div span{background:#edf6f0;border:1px solid #d9e9de;border-radius:4px;padding:2px 4px;font-size:.62rem;color:#3c684e}
.fert-dash-muted{font-size:.66rem;color:#84948a;font-style:italic}
.fert-dash-warning{grid-column:1/-1;color:#996819;font-size:.66rem;margin:0}
@media(min-width:1550px){
  .fertilizer-shell.fert-dash-remodeled .fertilizer-caseta-grid.fert-dash-grid{grid-template-columns:repeat(auto-fit,minmax(700px,1fr))!important}
  .fert-dash-tank{grid-template-columns:83px minmax(130px,1.1fr) 45px minmax(160px,1.5fr) minmax(98px,.85fr) minmax(98px,.95fr)}
}
@media(max-width:1250px){
  .fertilizer-shell.fert-dash-remodeled .fertilizer-caseta-grid.fert-dash-grid{grid-template-columns:1fr!important}
}
@media(max-width:640px){
  .fert-dash-caseta-head{padding:8px}
  .fert-dash-tank{
    grid-template-columns:65px minmax(0,1fr) 43px;
    gap:5px;padding:7px 8px;
  }
  .fert-dash-product-cell{grid-column:1/-1;display:grid}
  .fert-dash-date{grid-column:1/3;display:flex;align-items:center;gap:5px}
  .fert-dash-potreros{grid-column:3;align-items:end}
  .fert-dash-percent{padding-top:7px}
  .fert-dash-dissolution{gap:6px}
  .fert-dash-meter-head b{font-size:.64rem}
}
.fert-dash-modal{position:fixed;inset:0;z-index:25000;background:rgba(16,40,25,.53);display:grid;place-items:center;padding:12px}
.fert-dash-edit-card{box-sizing:border-box;background:#fff;color:#254e35;border-radius:13px;width:min(430px,calc(100vw - 24px));display:grid;gap:10px;padding:18px;box-shadow:0 15px 45px rgba(0,0,0,.23)}
.fert-dash-edit-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fert-dash-edit-card h3{font-size:1.04rem;margin:0}
.fert-dash-edit-card>header button{border:0;background:#eef5f0;border-radius:7px;padding:5px 10px;font-size:1.15rem}
.fert-dash-edit-card p{font-size:.75rem;margin:0;color:#64816f}
.fert-dash-edit-card label{display:grid;gap:5px;font-size:.77rem;font-weight:750}
.fert-dash-edit-card input{box-sizing:border-box;width:100%;border:1px solid #bcdac5;border-radius:7px;padding:9px 10px;min-height:40px;color:#234b33;background:#fff}
.fert-dash-edit-error:not([hidden]){color:#a42d2d;background:#ffefef;padding:8px;border-radius:6px;font-size:.73rem}
.fert-dash-edit-card footer{display:flex;gap:9px;justify-content:end}
.fert-dash-edit-card footer button{min-height:34px;border:1px solid #b9d9c4;background:#fff;border-radius:7px;padding:6px 16px;cursor:pointer;font-weight:800}
.fert-dash-edit-card footer button[type="submit"]{background:#167b4a;border-color:#167b4a;color:#fff}


/* v2: filtros rápidos, niveles exactos y fondo fotográfico de caseta */
#fertilizers.active-view {
  position:relative;
  box-sizing:border-box;
  isolation:isolate;
  width:100%;
  min-height:calc(100dvh - 80px) !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:10px 12px 26px;
  border-radius:12px;
  background-color:#e7f2ea;
  background-image:linear-gradient(180deg,rgba(239,248,242,.74),rgba(244,250,246,.90)),
    var(--fert-caseta-image);
  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
}
#fertilizers .fertilizer-shell,
#fertilizers .fertilizer-workspace,
#fertilizers .fertilizer-main-column,
#fertilizers .fertilizer-caseta-grid {
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  align-content:start;
}
#fertilizers .fertilizer-workspace {display:block!important; width:100%; padding-bottom:18px}
#fertilizers .fertilizer-main-column{display:block!important; padding-right:0!important}
#fertilizers .fertilizer-main-column > .section-title{margin-bottom:8px}
#fertilizers .fert-dash-quick-filters{
  display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;
  padding:8px 10px;margin:0 0 10px;
  border-radius:10px;border:1px solid rgba(155,199,166,.7);
  background:rgba(255,255,255,.93);
  box-shadow:0 3px 10px rgba(13,77,48,.055);
}
#fertilizers .fert-dash-quick-filters label{
  display:flex;flex-direction:column;gap:4px;flex:1 1 205px;
  color:#35644a;font-weight:800;font-size:.72rem;
}
#fertilizers .fert-dash-quick-filters select{
  width:100%;min-height:34px;height:34px;
  padding:4px 9px;
  background:#fff;color:#1a5134;
  border:1px solid #c6dfce;
  border-radius:7px;font-size:.78rem;
}
#fertilizers .fert-dash-filter-count{
  margin:0 0 8px auto;white-space:nowrap;
  color:#4f775d;font-weight:800;font-size:.72rem;
}
#fertilizers .fert-dash-state{
  display:block;width:max-content;max-width:100%;min-width:32px;
  margin:3px auto 0;font-size:.59rem;line-height:1.1;font-weight:850;
  padding:3px 6px;border-radius:20px;background:#e1efe8;color:#20683d;
}
#fertilizers .fert-dash-tank.status-vacio .fert-dash-state{background:#e6e8ea;color:#545e63}
#fertilizers .fert-dash-tank.status-critico .fert-dash-state{background:#ffdddd;color:#ae2828}
#fertilizers .fert-dash-tank.status-medio .fert-dash-state{background:#fff1cf;color:#946218}
#fertilizers .fert-dash-tank.status-bueno .fert-dash-state{background:#dceeff;color:#1a6ba8}
#fertilizers .fert-dash-tank.status-optimo .fert-dash-state{background:#daf4e2;color:#167044}
#fertilizers .fert-dash-tank.status-lleno .fert-dash-state{background:#c4ecce;color:#064c2c}
#fertilizers .fert-dash-tank.status-exceso .fert-dash-state{background:#ffdbd6;color:#a92727}
#fertilizers .fert-dash-tank.status-vacio .fert-dash-bar-track i{background:#9aa3ad}
#fertilizers .fert-dash-tank.status-critico .fert-dash-bar-track i{background:#e85761}
#fertilizers .fert-dash-tank.status-medio .fert-dash-bar-track i{background:#efb745}
#fertilizers .fert-dash-tank.status-bueno .fert-dash-bar-track i{background:#4c9de7}
#fertilizers .fert-dash-tank.status-optimo .fert-dash-bar-track i{background:#33a66a}
#fertilizers .fert-dash-tank.status-lleno .fert-dash-bar-track i{background:#0c673f}
#fertilizers .fert-dash-tank.status-exceso .fert-dash-bar-track i{background:#c92c31}
#fertilizers .fert-dash-tank.status-critico .fert-dash-percent{color:#bf2833}
#fertilizers .fert-dash-tank.status-medio .fert-dash-percent{color:#ae791d}
#fertilizers .fert-dash-tank.status-bueno .fert-dash-percent{color:#2573b3}
#fertilizers .fert-dash-tank.status-optimo .fert-dash-percent{color:#18824a}
#fertilizers .fert-dash-tank.status-lleno .fert-dash-percent{color:#075434}
#fertilizers .fert-dash-caseta{background:rgba(255,255,255,.96)}
#fertilizers .fert-dash-tank{min-height:74px;align-items:center}
#fertilizers .fert-dash-caseta-head{background:linear-gradient(90deg,rgba(228,246,234,.97),rgba(249,253,250,.96))}
@media(max-width:760px){
 #fertilizers.active-view{
   padding:7px 6px calc(var(--mobile-shell-bar-height,64px) + 24px + env(safe-area-inset-bottom))!important;
   min-height:calc(100dvh - 70px)!important
 }
 #fertilizers .fert-dash-quick-filters{gap:6px;padding:7px}
 #fertilizers .fert-dash-quick-filters label{flex:1 1 138px}
 #fertilizers .fert-dash-filter-count{margin:0;font-size:.66rem}
}


/* v4 — Presentación visual: encabezado fotográfico + filas de consulta completas.
   Solo Estanques cambia de distribución; Bodega, Folios y sus operaciones se conservan. */
#fertilizers.active-view{background:#f3f7f4!important;background-image:none!important}
#fertilizers .fertilizer-shell.fert-dash-remodeled{
  width:100%;max-width:none;min-width:0;
  display:flex;flex-direction:column;gap:12px;
}
#fertilizers .fert-dash-hero{
  position:relative;isolation:isolate;overflow:hidden;
  background:#163d30;
  border-radius:17px;
  min-height:180px;
  display:flex;flex-direction:column;justify-content:space-between;
  padding:20px 22px 14px;
  box-shadow:0 10px 28px rgba(12,54,36,.11);
  color:#fff;
}
#fertilizers .fert-dash-hero::before{
  content:"";position:absolute;inset:-12px;z-index:-2;pointer-events:none;
  background-image:var(--fert-caseta-image);
  background-position:center 42%;background-size:cover;background-repeat:no-repeat;
  filter:blur(5px) saturate(.85);
  transform:scale(1.06);
}
#fertilizers .fert-dash-hero::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(103deg,rgba(7,43,33,.94) 0%,rgba(10,56,44,.80) 49%,rgba(14,56,43,.53) 100%);
}
#fertilizers .fert-dash-hero-top{
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;
}
#fertilizers .fert-dash-hero-copy{min-width:0}
#fertilizers .fert-dash-eyebrow{
  display:block;margin-bottom:6px;
  font-size:.64rem;letter-spacing:.14em;font-weight:850;color:#bcf3d0;
}
#fertilizers .fert-dash-hero h2{
  margin:0;color:#fff;font-size:clamp(1.4rem,2.35vw,2.15rem);
  line-height:1.12;letter-spacing:-.02em;font-weight:850;
}
#fertilizers .fert-dash-hero p{
  margin:6px 0 12px;color:#d6e8df;max-width:680px;
  font-size:.78rem;line-height:1.35;
}
#fertilizers .fert-dash-hero-stats{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
#fertilizers .fert-dash-hero-stats span{
  display:inline-flex;align-items:center;gap:5px;padding:6px 10px;
  font-size:.7rem;border:1px solid rgba(216,250,229,.23);
  border-radius:8px;background:rgba(255,255,255,.10);backdrop-filter:blur(4px);color:#e2f6ea;
}
#fertilizers .fert-dash-hero-stats strong{font-size:.83rem;color:#fff}
#fertilizers .fert-dash-hero-tabs{flex:none}
#fertilizers .fert-dash-hero-tabs .fertilizer-storage-toggle{
  padding:3px;gap:3px;border:1px solid rgba(255,255,255,.27);
  border-radius:9px;background:rgba(5,39,29,.46);display:flex;
}
#fertilizers .fert-dash-hero-tabs .fertilizer-storage-toggle button{
  min-height:32px;min-width:76px;padding:6px 12px;
  background:transparent;border:0;color:#e1eee5;border-radius:7px;
  font-size:.72rem;font-weight:750;cursor:pointer;
}
#fertilizers .fert-dash-hero-tabs .fertilizer-storage-toggle button.active{
  color:#135a36;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.10);
}
#fertilizers .fert-dash-hero-actions{margin-top:14px;min-width:0}
#fertilizers .fert-dash-hero-actions .fertilizer-actions{
  display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start;
  gap:6px;width:100%;background:none!important;margin:0;padding:0;border:0;
}
#fertilizers .fert-dash-hero-actions .fertilizer-actions-main{
  display:flex!important;flex-wrap:wrap;gap:6px;align-items:center;
}
#fertilizers .fert-dash-hero-actions .fertilizer-action-button{
  width:auto!important;min-width:0!important;min-height:33px;
  padding:6px 11px;border-radius:7px;font-size:.72rem;
  line-height:1.15;font-weight:750;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:none!important;
}
#fertilizers .fert-dash-hero-actions .fertilizer-action-button.action-refresh{
  padding:5px 8px;min-width:34px;
}
#fertilizers .fert-dash-control-strip{
  display:flex;flex-wrap:wrap;align-items:end;gap:8px 14px;
  background:#fff;border:1px solid #dde9e0;border-radius:12px;
  box-shadow:0 2px 9px rgba(29,75,47,.035);
  padding:11px 13px;margin:0;
}
#fertilizers .fert-dash-control-strip .fertilizer-filters,
#fertilizers .fert-dash-control-strip .fert-dash-added-filters{
  display:flex!important;flex:1 1 auto;align-items:end;flex-wrap:wrap;gap:8px;
  min-width:0;width:auto;margin:0;padding:0;background:transparent;border:0;box-shadow:none;
}
#fertilizers .fert-dash-control-strip .fertilizer-filters label,
#fertilizers .fert-dash-control-strip .fert-dash-added-filters label{
  display:flex;flex-direction:column;gap:4px;flex:1 1 132px;
  min-width:118px;max-width:250px;
  font-size:.69rem;font-weight:800;color:#3e624f;
}
#fertilizers .fert-dash-control-strip :is(select,input[type="search"]){
  appearance:auto;box-sizing:border-box;width:100%;height:35px;min-height:35px;
  padding:6px 9px;border:1px solid #d2e2d8;border-radius:7px;
  color:#254834;background:#fbfdfb;font-size:.74rem;
}
#fertilizers .fert-dash-control-strip :is(select,input):focus-visible{
  outline:2px solid #459b71;outline-offset:1px;
}
#fertilizers .fert-dash-control-strip [data-fert-tank-search]{min-width:180px}
#fertilizers .fert-dash-filter-count{
  white-space:nowrap;margin:0 0 7px auto;
  font-size:.68rem;color:#577966;font-weight:800;
}
#fertilizers .fert-dash-legend{
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  margin:0;padding:0 2px;min-height:27px;
}
#fertilizers .fert-dash-legend-title{
  font-size:.64rem;font-weight:900;letter-spacing:.10em;color:#789184;margin-right:5px;
}
#fertilizers .fert-dash-legend-item{
  display:inline-flex;gap:5px;align-items:center;border-radius:40px;
  padding:5px 9px;background:#fff;
  border:1px solid #e3ebe6;color:#526c5a;font-size:.65rem;
}
#fertilizers .fert-dash-legend-item i{
  width:8px;height:8px;display:inline-block;border-radius:50%;background:#98a6a0;
}
#fertilizers .fert-dash-legend-item.status-vacio i{background:#9aa3ad}
#fertilizers .fert-dash-legend-item.status-critico i{background:#e85761}
#fertilizers .fert-dash-legend-item.status-medio i{background:#efb745}
#fertilizers .fert-dash-legend-item.status-bueno i{background:#4c9de7}
#fertilizers .fert-dash-legend-item.status-optimo i{background:#33a66a}
#fertilizers .fert-dash-legend-item.status-lleno i{background:#0c673f}
#fertilizers .fertilizer-shell.fert-dash-remodeled .fertilizer-workspace{
  margin:0!important;display:block!important;min-width:0;overflow:visible!important;
}
#fertilizers .fertilizer-shell.fert-dash-remodeled .fertilizer-main-column{
  width:100%;padding:0!important;margin:0!important;min-width:0;
}
#fertilizers .fertilizer-shell.fert-dash-remodeled .fertilizer-caseta-grid.fert-dash-grid{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-items:start;gap:12px!important;min-width:0;
}
#fertilizers .fert-dash-caseta{
  border:1px solid #dce9de;border-radius:13px;
  box-shadow:0 2px 12px rgba(26,77,46,.055);
  background:#fff!important;overflow:hidden;
}
#fertilizers .fert-dash-caseta-head{
  padding:11px 14px;min-height:57px;
  background:linear-gradient(90deg,#eaf5ee,#fbfdfb);
}
#fertilizers .fert-dash-caseta-name{gap:10px;min-width:0}
#fertilizers .fert-dash-caseta-symbol{
  display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;
  color:#2e8858;background:#d6ebdd;font-size:1.35rem;font-weight:850;
}
#fertilizers .fert-dash-caseta-titles{min-width:0;display:grid;gap:2px}
#fertilizers .fert-dash-caseta-titles h3{
  margin:0;font-size:.92rem;color:#1a5136;font-weight:850;
  white-space:normal;overflow-wrap:anywhere;
}
#fertilizers .fert-dash-caseta-number{font-size:.68rem;color:#668676;font-weight:700}
#fertilizers .fert-dash-caseta-stats{
  display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end;
  font-size:.68rem;color:#557662;white-space:nowrap;
}
#fertilizers .fert-dash-caseta-stats strong{
  padding:5px 8px;background:#e2f1e7;color:#22754a;border-radius:7px;font-size:.7rem;
}
#fertilizers .fert-dash-rows{
  --tank-grid-columns:minmax(124px,.93fr) minmax(158px,1.35fr) minmax(72px,.63fr)
    minmax(175px,1.5fr) minmax(95px,.79fr) minmax(100px,.90fr) minmax(166px,1.45fr);
  display:block;
}
#fertilizers .fert-dash-column-head,
#fertilizers .fert-dash-tank{
  box-sizing:border-box;display:grid;grid-template-columns:var(--tank-grid-columns);
  align-items:center;gap:10px;min-width:0;
}
#fertilizers .fert-dash-column-head{
  padding:8px 13px;
  border-bottom:1px solid #dfece3;
  background:#f8faf8;
  color:#788b7d;font-size:.62rem;font-weight:850;letter-spacing:.01em;
}
#fertilizers .fert-dash-tank{
  min-height:81px;padding:10px 13px;
  border-bottom:1px solid #edf2ee;background:#fff;
  color:#28523a;
}
#fertilizers .fert-dash-tank:nth-child(odd){background:#fbfdfb}
#fertilizers .fert-dash-tank:last-child{border-bottom:0}
#fertilizers .fert-dash-tank-identity{
  min-width:0;display:flex;align-items:center;gap:8px;
}
#fertilizers .fert-dash-tank-icon{
  display:grid;place-items:center;flex:0 0 35px;
  width:35px;height:40px;border-radius:8px;background:#e5f1ea;color:#35865a;
}
#fertilizers .fert-dash-tank-icon svg{
  width:28px;height:32px;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;
}
#fertilizers .fert-dash-tank-open{
  flex:1;min-width:0;position:relative;display:grid;gap:3px;padding:0;
  border:0;background:none;color:#244b36;text-align:left;cursor:pointer;
}
#fertilizers .fert-dash-tank-open strong{
  font-size:.76rem;white-space:normal;overflow-wrap:anywhere;
}
#fertilizers .fert-dash-tank-open small{font-size:.65rem;color:#709181}
#fertilizers .fert-dash-arrow{position:absolute;top:0;right:0;color:#7d9e8a}
#fertilizers .fert-dash-meter{min-width:0;gap:5px;margin:0}
#fertilizers .fert-dash-meter-head{gap:4px}
#fertilizers .fert-dash-meter-head b{font-size:.71rem;color:#2a5841;font-weight:850;white-space:nowrap}
#fertilizers .fert-dash-small{font-size:.6rem;color:#95a699}
#fertilizers .fert-dash-bar-track{height:11px;border:0;background:#e8efe9;border-radius:8px}
#fertilizers .fert-dash-bar-track i{border-radius:8px}
#fertilizers .fert-dash-percent{
  display:flex;flex-direction:column;align-items:center;gap:5px;
  padding:0;font-size:.9rem;white-space:nowrap;line-height:1;
}
#fertilizers .fert-dash-state{display:block;margin:0;font-size:.61rem}
#fertilizers .fert-dash-product-cell,
#fertilizers .fert-dash-dissolution-cell{display:grid;gap:6px;min-width:0}
#fertilizers .fert-dash-product-line{display:grid;gap:3px;min-width:0}
#fertilizers .fert-dash-product-name{font-size:.72rem;line-height:1.25;color:#214e36}
#fertilizers .fert-dash-amount{display:grid;gap:2px;font-size:.65rem;color:#64816d}
#fertilizers .fert-dash-amount b{font-size:.75rem;color:#1b7850}
#fertilizers .fert-dash-amount small{font-size:.64rem}
#fertilizers .fert-dash-date,
#fertilizers .fert-dash-potreros{align-content:start;gap:5px}
#fertilizers .fert-dash-date b{font-size:.72rem;line-height:1.3;color:#2c5840}
#fertilizers .fert-dash-potreros>div{gap:4px}
#fertilizers .fert-dash-potreros>div span{
  background:#edf5f0;border-color:#dce9e1;font-size:.63rem;
}
#fertilizers .fert-dash-dissolution{
  display:grid;grid-template-columns:1fr;gap:3px;font-size:.64rem;
}
#fertilizers .fert-dash-dissolution b{font-size:.69rem;color:#2f6443}
#fertilizers .fert-dash-diss-product{font-size:.64rem;color:#395e47}
#fertilizers .fert-dash-edit-theory{
  justify-self:start;padding:3px 7px;margin-top:2px;font-size:.61rem;
}
#fertilizers .fert-dash-warning{grid-column:1/-1}
@media(max-width:1260px){
  #fertilizers .fert-dash-column-head{display:none}
  #fertilizers .fert-dash-tank{
    grid-template-columns:minmax(120px,1fr) minmax(160px,1.45fr) 80px minmax(210px,1.65fr);
    grid-template-areas:
      "identity meter percent product"
      "date date potreros dissolve";
    row-gap:9px;
  }
  #fertilizers .fert-dash-tank-identity{grid-area:identity}
  #fertilizers .fert-dash-meter{grid-area:meter}
  #fertilizers .fert-dash-percent{grid-area:percent}
  #fertilizers .fert-dash-product-cell{grid-area:product}
  #fertilizers .fert-dash-date{grid-area:date}
  #fertilizers .fert-dash-potreros{grid-area:potreros}
  #fertilizers .fert-dash-dissolution-cell{grid-area:dissolve}
  #fertilizers .fert-dash-dissolution{grid-template-columns:repeat(2,max-content);gap:5px 12px}
  #fertilizers .fert-dash-dissolution .fert-dash-edit-theory{grid-column:1/-1}
}
@media(max-width:800px){
  #fertilizers .fert-dash-hero{padding:17px 16px 13px;min-height:186px}
  #fertilizers .fert-dash-hero-top{flex-wrap:wrap;gap:9px}
  #fertilizers .fert-dash-hero-actions{margin-top:11px}
  #fertilizers .fert-dash-control-strip{padding:9px}
  #fertilizers .fert-dash-hero-actions .fertilizer-actions{gap:5px}
  #fertilizers .fert-dash-hero-actions .fertilizer-action-button{font-size:.68rem;padding:6px 8px}
  #fertilizers .fert-dash-tank{
    grid-template-columns:minmax(120px,1fr) minmax(144px,1.35fr) 77px;
    grid-template-areas:
      "identity meter percent"
      "product product product"
      "date potreros potreros"
      "dissolve dissolve dissolve";
  }
  #fertilizers .fert-dash-product-cell{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
  #fertilizers .fert-dash-dissolution-cell{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
}
@media(max-width:540px){
  #fertilizers.active-view{padding:6px 5px calc(75px + env(safe-area-inset-bottom))!important}
  #fertilizers .fert-dash-hero{border-radius:11px;padding:15px 12px 12px;gap:12px;min-height:0}
  #fertilizers .fert-dash-hero h2{font-size:1.45rem}
  #fertilizers .fert-dash-hero p{font-size:.72rem}
  #fertilizers .fert-dash-hero-stats span{font-size:.65rem;padding:5px 7px}
  #fertilizers .fert-dash-hero-tabs .fertilizer-storage-toggle button{min-width:0;padding:6px 9px}
  #fertilizers .fert-dash-control-strip{gap:8px;padding:8px}
  #fertilizers .fert-dash-control-strip .fertilizer-filters label,
  #fertilizers .fert-dash-control-strip .fert-dash-added-filters label{flex:1 1 138px;min-width:0;max-width:none}
  #fertilizers .fert-dash-legend{gap:5px}
  #fertilizers .fert-dash-legend-item{font-size:.59rem;padding:4px 7px}
  #fertilizers .fert-dash-caseta-head{padding:9px}
  #fertilizers .fert-dash-caseta-stats{font-size:.65rem}
  #fertilizers .fert-dash-tank{padding:9px;gap:8px}
  #fertilizers .fert-dash-tank{
    grid-template-columns:minmax(85px,1fr) minmax(110px,1.4fr) minmax(60px,.6fr);
  }
  #fertilizers .fert-dash-tank-icon{flex-basis:28px;width:28px;height:34px}
  #fertilizers .fert-dash-tank-icon svg{width:23px}
  #fertilizers .fert-dash-tank-open strong{font-size:.7rem}
  #fertilizers .fert-dash-meter-head b{font-size:.64rem}
  #fertilizers .fert-dash-percent{font-size:.76rem}
  #fertilizers .fert-dash-dissolution{grid-template-columns:repeat(2,minmax(0,max-content))}
}


/* v5 — Barra única: acciones + filtros, sin leyenda ni métricas del hero. */
#fertilizers .fertilizer-shell.fert-dash-remodeled{gap:6px!important}
#fertilizers .fert-dash-hero{
  min-height:0!important;height:auto!important;
  border-radius:10px;padding:8px 10px!important;
  gap:5px;justify-content:flex-start;
  box-shadow:0 3px 12px rgba(12,54,36,.08);
}
#fertilizers .fert-dash-hero-top{align-items:center;gap:8px;min-height:28px}
#fertilizers .fert-dash-hero-copy h2{
  font-size:1.12rem!important;line-height:1.1!important;margin:0!important;
}
#fertilizers .fert-dash-hero-tabs .fertilizer-storage-toggle{
  padding:2px;gap:2px;border-radius:7px;
}
#fertilizers .fert-dash-hero-tabs .fertilizer-storage-toggle button{
  min-height:26px;padding:4px 8px;font-size:.66rem;
}
#fertilizers .fert-dash-hero-actions{
  display:flex!important;flex-flow:row wrap;align-items:center;
  justify-content:space-between;gap:5px 10px;
  min-width:0;margin:0!important;padding:0;
}
#fertilizers .fert-dash-hero-actions .fertilizer-actions{
  display:flex!important;flex:0 1 auto;width:auto!important;
  min-width:0;gap:4px;padding:0;margin:0;
  justify-content:flex-start;align-items:center;
}
#fertilizers .fert-dash-hero-actions .fertilizer-actions-main{
  display:flex!important;flex:0 1 auto;width:auto!important;
  flex-wrap:wrap;align-items:center;gap:4px;margin:0;
}
#fertilizers .fert-dash-hero-actions .fertilizer-action-button{
  min-height:28px!important;height:28px!important;
  min-width:0!important;width:auto!important;
  border-radius:6px;padding:4px 7px!important;
  font-size:.64rem!important;line-height:1.05!important;
  white-space:nowrap;box-shadow:none;
}
#fertilizers .fert-dash-hero-actions .fertilizer-action-button.action-refresh{
  min-width:28px!important;padding:4px 5px!important;
}
#fertilizers .fert-dash-inline-filters{
  display:flex!important;flex:1 1 570px;justify-content:flex-end;
  align-items:center;flex-wrap:wrap;min-width:0;
  gap:4px 6px;margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
#fertilizers .fert-dash-inline-filters .fertilizer-filters,
#fertilizers .fert-dash-inline-filters .fert-dash-added-filters{
  display:flex!important;flex:0 1 auto;width:auto!important;
  gap:4px 6px;align-items:center;flex-wrap:wrap;
  margin:0!important;padding:0!important;min-width:0!important;
  border:0!important;background:transparent!important;
  box-shadow:none!important;
}
#fertilizers .fert-dash-inline-filters label{
  display:flex!important;flex-direction:column!important;
  flex:0 1 auto!important;gap:2px!important;min-width:0!important;
  max-width:none!important;width:auto!important;
  font-size:.59rem!important;line-height:1.05!important;
  font-weight:750;color:#e6f5eb!important;
  white-space:nowrap;
}
#fertilizers .fert-dash-inline-filters :is(select,input[type="search"]){
  box-sizing:border-box;appearance:auto;
  width:108px!important;max-width:100%;
  min-width:0!important;height:26px!important;min-height:26px!important;
  padding:3px 5px!important;border:1px solid #9cc8af;
  border-radius:5px!important;background:#f8fcf9;
  color:#224d35;font-size:.66rem!important;
}
#fertilizers .fert-dash-inline-filters [data-fert-product-filter]{width:130px!important}
#fertilizers .fert-dash-inline-filters [data-fert-tank-search]{
  width:148px!important;min-width:0!important;
}
#fertilizers .fert-dash-inline-filters :is(select,input):focus-visible{
  outline:2px solid #a8e2bd;outline-offset:1px;
}
/* Reducir altura de cada tarjeta, sin recortar productos múltiples o advertencias */
#fertilizers .fertilizer-shell.fert-dash-remodeled .fertilizer-caseta-grid.fert-dash-grid{
  gap:7px!important;
}
#fertilizers .fert-dash-caseta{border-radius:9px}
#fertilizers .fert-dash-caseta-head{
  min-height:38px!important;padding:5px 10px!important;gap:6px;
}
#fertilizers .fert-dash-caseta-symbol{
  width:24px;height:24px;border-radius:6px;font-size:1.1rem;
}
#fertilizers .fert-dash-caseta-name{gap:6px}
#fertilizers .fert-dash-caseta-titles{gap:0}
#fertilizers .fert-dash-caseta-titles h3{font-size:.8rem;line-height:1.1}
#fertilizers .fert-dash-caseta-number{font-size:.59rem}
#fertilizers .fert-dash-caseta-stats{gap:5px;font-size:.61rem}
#fertilizers .fert-dash-caseta-stats strong{font-size:.64rem;padding:3px 6px}
#fertilizers .fert-dash-edit-alias{min-width:23px;min-height:23px}
#fertilizers .fert-dash-rows{row-gap:0}
#fertilizers .fert-dash-column-head{padding:4px 9px!important;font-size:.59rem}
#fertilizers .fert-dash-tank{
  min-height:56px!important;padding:5px 9px!important;
  gap:6px!important;line-height:1.17;
}
#fertilizers .fert-dash-tank-icon{
  flex-basis:26px;width:26px;height:28px;border-radius:6px;
}
#fertilizers .fert-dash-tank-icon svg{width:21px;height:24px}
#fertilizers .fert-dash-tank-identity{gap:5px}
#fertilizers .fert-dash-tank-open{gap:1px}
#fertilizers .fert-dash-tank-open strong{font-size:.69rem}
#fertilizers .fert-dash-tank-open small{font-size:.59rem;margin-top:0}
#fertilizers .fert-dash-meter{gap:3px}
#fertilizers .fert-dash-meter-head b{font-size:.65rem}
#fertilizers .fert-dash-small{font-size:.53rem}
#fertilizers .fert-dash-bar-track{height:8px}
#fertilizers .fert-dash-percent{gap:3px;font-size:.79rem}
#fertilizers .fert-dash-state{padding:2px 5px;font-size:.55rem}
#fertilizers .fert-dash-product-cell,
#fertilizers .fert-dash-dissolution-cell{gap:3px}
#fertilizers .fert-dash-product-line{gap:2px}
#fertilizers .fert-dash-product-name{font-size:.67rem;line-height:1.16}
#fertilizers .fert-dash-amount{gap:1px;font-size:.59rem}
#fertilizers .fert-dash-amount b{font-size:.68rem}
#fertilizers .fert-dash-amount small{font-size:.6rem}
#fertilizers .fert-dash-date,
#fertilizers .fert-dash-potreros{gap:2px}
#fertilizers .fert-dash-caption{font-size:.55rem}
#fertilizers .fert-dash-date b{font-size:.65rem}
#fertilizers .fert-dash-potreros>div{gap:2px}
#fertilizers .fert-dash-potreros>div span{padding:1px 3px;font-size:.57rem}
#fertilizers .fert-dash-dissolution{gap:2px;font-size:.59rem;line-height:1.15}
#fertilizers .fert-dash-dissolution b{font-size:.62rem}
#fertilizers .fert-dash-edit-theory{margin-top:0;padding:2px 5px;font-size:.58rem}
#fertilizers .fert-dash-warning{font-size:.62rem}
@media(max-width:1260px){
  #fertilizers .fert-dash-tank{row-gap:4px!important}
  #fertilizers .fert-dash-dissolution{gap:3px 8px}
}
@media(max-width:800px){
  #fertilizers .fert-dash-hero{min-height:0!important;padding:7px 8px!important;gap:5px}
  #fertilizers .fert-dash-hero-top{gap:6px;min-height:26px}
  #fertilizers .fert-dash-hero-actions{gap:5px;justify-content:flex-start}
  #fertilizers .fert-dash-inline-filters{
    justify-content:flex-start;flex:1 1 100%;
    gap:5px;
  }
  #fertilizers .fert-dash-inline-filters .fertilizer-filters,
  #fertilizers .fert-dash-inline-filters .fert-dash-added-filters{flex:1 1 auto}
  #fertilizers .fert-dash-inline-filters :is(select,input[type="search"]){width:106px!important}
  #fertilizers .fert-dash-inline-filters [data-fert-product-filter]{width:130px!important}
  #fertilizers .fert-dash-inline-filters [data-fert-tank-search]{width:156px!important}
  #fertilizers .fert-dash-tank{row-gap:4px!important}
}
@media(max-width:540px){
  #fertilizers .fert-dash-hero{gap:5px!important;padding:7px!important}
  #fertilizers .fert-dash-hero-copy h2{font-size:1.05rem!important}
  #fertilizers .fert-dash-hero-tabs .fertilizer-storage-toggle button{min-height:25px;padding:3px 6px;font-size:.61rem}
  #fertilizers .fert-dash-inline-filters{gap:4px}
  #fertilizers .fert-dash-inline-filters label{flex:1 1 105px!important}
  #fertilizers .fert-dash-inline-filters :is(select,input[type="search"]){
    width:100%!important;max-width:none!important;
  }
  #fertilizers .fert-dash-caseta-head{padding:5px 7px!important;gap:4px}
  #fertilizers .fert-dash-tank{padding:5px 7px!important;gap:5px!important}
  #fertilizers .fert-dash-dissolution{gap:3px 8px}
}


/* Tamaños mínimos de lectura: compactar márgenes, no la legibilidad. */
#fertilizers .fert-dash-inline-filters label{font-size:.64rem!important}
#fertilizers .fert-dash-small{font-size:.62rem}
#fertilizers .fert-dash-caption{font-size:.63rem}
#fertilizers .fert-dash-state{font-size:.62rem}
#fertilizers .fert-dash-caseta-number{font-size:.64rem}
#fertilizers .fert-dash-amount,
#fertilizers .fert-dash-amount small{font-size:.64rem}
#fertilizers .fert-dash-dissolution{font-size:.64rem}
#fertilizers .fert-dash-hero-actions .fertilizer-action-button{font-size:.66rem!important}


/* Noviembre 2026 — Casetas plegables, nombres de estanque y disoluciones. */
#fertilizers .fert-dash-collapsible{display:block;min-width:0}
#fertilizers .fert-dash-collapsible > summary.fert-dash-caseta-head{
  display:flex!important;align-items:center;cursor:pointer;list-style:none;
  border-bottom:0;min-height:46px!important;outline-offset:-3px;
  user-select:none;gap:11px;
}
#fertilizers .fert-dash-collapsible > summary::-webkit-details-marker{display:none}
#fertilizers .fert-dash-collapsible[open] > summary.fert-dash-caseta-head{border-bottom:1px solid #b1d3c2}
#fertilizers .fert-dash-toggle-icon{
  display:inline-grid;flex:0 0 27px;place-items:center;
  width:27px;height:27px;border-radius:7px;
  background:#fff;border:1.5px solid #7bb69a;color:#185a3c;
}
#fertilizers .fert-dash-toggle-icon::before{content:"+";font-size:1.25rem;font-weight:900;line-height:1}
#fertilizers .fert-dash-collapsible[open] .fert-dash-toggle-icon::before{content:"−"}
#fertilizers .fert-dash-collapsible > summary .fert-dash-caseta-label{
  display:block;font-size:1.03rem;font-weight:900;line-height:1.18;color:#113f2c;
  overflow-wrap:anywhere;
}
#fertilizers .fert-dash-collapsible > summary .fert-dash-caseta-name{min-width:0;flex:1}
#fertilizers .fert-dash-collapsible > summary .fert-dash-caseta-stats{margin-left:auto}
#fertilizers .fert-dash-caseta-tools{display:flex;justify-content:flex-end;padding:5px 10px;background:#f7fbf8}
#fertilizers .fert-dash-caseta-tools button{font-size:.68rem;min-height:26px;cursor:pointer}
#fertilizers .fert-dash-tank-identity{min-width:0}
#fertilizers .fert-dash-tank-open{
  display:flex!important;flex-direction:column;align-items:flex-start;
  border:2px solid #337d56!important;background:#f5fbf7!important;
  border-radius:8px!important;padding:7px 9px!important;min-height:45px;
  width:100%;box-shadow:0 1px 3px rgba(20,85,55,.1);
}
#fertilizers .fert-dash-tank-open:focus-visible,
#fertilizers .fert-dash-collapsible > summary:focus-visible{
  outline:3px solid #5cb687;outline-offset:2px;
}
#fertilizers .fert-dash-tank-open strong{font-size:.99rem!important;font-weight:900!important;line-height:1.25}
#fertilizers .fert-dash-tank-open small{font-size:.67rem!important;font-weight:750}
#fertilizers .fert-dash-tank-open .fert-dash-arrow{right:5px;top:5px}
#fertilizers .fert-dash-tank{grid-template-columns:minmax(103px,1fr) minmax(105px,1fr) 65px minmax(145px,1.55fr) minmax(80px,.75fr) minmax(85px,.85fr)!important}
#fertilizers .fert-dash-dissolution{display:grid;gap:3px 8px}
#fertilizers .fert-dash-dissolution .fert-dash-real-value{
  display:inline-block;padding:1px 5px;border-radius:5px;border:1px solid #dbe6de;
}
#fertilizers .fert-dash-dissolution.dissolution-low .fert-dash-real-value{
  background:#fde7e7;color:#a31927!important;border-color:#eeb5b5;
}
#fertilizers .fert-dash-dissolution.dissolution-ok .fert-dash-real-value{
  background:#daf5e3;color:#126435!important;border-color:#a8dabb;
}
#fertilizers .fert-dash-dissolution.dissolution-pending .fert-dash-real-value{
  background:#f4f6f5;color:#455d50!important;
}
#fertilizers .fert-dash-diss-verdict{font-size:.64rem;color:#58695e}
#fertilizers .dissolution-low .fert-dash-diss-verdict{color:#a31927;font-weight:850}
#fertilizers .dissolution-ok .fert-dash-diss-verdict{color:#126435;font-weight:850}
#fertilizers .fert-dash-edit-theory{display:none!important}
#fertilizers .fert-dash-dissolutions-button{
  min-height:30px;border-radius:7px;border:1px solid #b3ddc2;
  background:#f8fffb;color:#175537;font-weight:900;font-size:.77rem;
  padding:5px 13px;cursor:pointer;
}
#fertilizers .fert-dash-dissolutions-button:hover{background:#e6f6ed}
.fert-dis-editor.fert-dash-edit-card{
  width:min(720px,calc(100vw - 22px));max-height:min(88dvh,850px);
  display:flex;flex-direction:column;overflow:hidden;gap:10px;
  padding:18px;background:#fff;color:#1e4731;
}
.fert-dis-editor .fert-dis-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.fert-dis-editor .fert-dis-tabs button{
  min-height:37px;background:#f4f7f5;border:1px solid #bad3c4;border-radius:7px;
  color:#315b44;font-weight:850;cursor:pointer;
}
.fert-dis-editor .fert-dis-tabs button[aria-pressed="true"]{
  background:#176d46;color:#fff;border-color:#176d46;
}
.fert-dis-editor .fert-dis-help{font-size:.77rem;line-height:1.4;margin:0}
.fert-dis-editor .fert-dis-list{display:grid;gap:7px;overflow-y:auto;min-height:0;flex:1;padding:3px 5px 6px 1px}
.fert-dis-editor .fert-dis-product{
  display:grid;grid-template-columns:minmax(0,1fr) 86px minmax(75px,.55fr);align-items:end;
  gap:9px;padding:8px 9px;background:#f8fcfa;border:1px solid #d6e7dd;border-radius:8px;
}
.fert-dis-editor .fert-dis-product-name{display:grid;gap:4px;min-width:0;font-size:.72rem}
.fert-dis-editor .fert-dis-product-name strong{font-size:.81rem;overflow-wrap:anywhere}
.fert-dis-editor .fert-dis-product-name span{font-size:.68rem;color:#5f7869}
.fert-dis-editor .fert-dis-number{
  max-width:180px;min-height:33px!important;height:33px;padding:5px 8px!important;
  font-size:.85rem!important;font-weight:750;color:#133d2a;
}
.fert-dis-editor .fert-dis-save{
  min-height:33px;border:1px solid #137248;border-radius:7px;
  background:#1a8554;color:#fff;font-size:.72rem;font-weight:850;cursor:pointer;
}
.fert-dis-editor .fert-dis-save:disabled{opacity:.5;cursor:not-allowed}
.fert-dis-editor .fert-dis-message{font-size:.7rem;color:#39694b;align-self:center;overflow-wrap:anywhere}
.fert-dis-editor .fert-dis-close{font-size:1.25rem;cursor:pointer}
@media(max-width:900px){
 #fertilizers .fert-dash-tank{grid-template-columns:minmax(108px,1fr) minmax(105px,1fr) 60px!important}
 #fertilizers .fert-dash-tank .fert-dash-product-cell,
 #fertilizers .fert-dash-tank .fert-dash-dissolution-cell{grid-column:1/-1}
}
@media(max-width:540px){
 .fert-dis-editor .fert-dis-product{grid-template-columns:minmax(0,1fr) 80px}
 .fert-dis-editor .fert-dis-message{grid-column:1/-1}
 #fertilizers .fert-dash-collapsible > summary .fert-dash-caseta-label{font-size:.92rem}
 #fertilizers .fert-dash-tank-open strong{font-size:.9rem!important}
}


/* 2026-11-02 — Preparado vs saldo actual; editor panorámico sin desplazamiento en escritorio. */
#fertilizers .fert-dash-solution-metrics{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px!important;
  min-width:0;
}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric{
  display:flex;flex-direction:column;justify-content:center;
  gap:3px;min-width:0;
  padding:7px 8px;border:1px solid #d8e5dc;
  border-radius:8px;line-height:1.18;
  font-style:normal;
}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric span{
  color:#365944;font-size:.67rem;font-weight:800;
}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric strong{
  font-size:.92rem;line-height:1.15;font-weight:900;
  color:#153f2c;overflow-wrap:anywhere;
}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric-solution{
  background:#fff2c9;border:1.5px solid #e3bd60;
}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric-solution strong{color:#6a4b00}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric-water{
  background:#e5f3ff;border:1.5px solid #82bbeb;
}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric-water strong{color:#12588b}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric-current{
  grid-column:1/-1;flex-direction:row;align-items:center;
  justify-content:space-between;gap:6px;
  background:#f5faf7;
}
#fertilizers .fert-dash-solution-metrics .fert-dash-metric-current strong{font-size:.82rem}

/* La ventana utiliza el ancho disponible y 3 columnas de filas de una línea. */
.fert-dash-modal.fert-dis-manager{padding:12px;z-index:28000}
.fert-dis-editor.fert-dash-edit-card{
  width:min(1490px,calc(100vw - 24px))!important;
  max-width:none!important;
  max-height:min(94dvh,980px)!important;
  padding:12px 16px!important;
  gap:7px!important;
  overflow:hidden;
}
.fert-dis-editor .fert-dis-tabs{gap:7px}
.fert-dis-editor .fert-dis-tabs button{min-height:30px!important;padding:4px 9px!important}
.fert-dis-editor .fert-dis-help{font-size:.71rem!important;line-height:1.22!important}
.fert-dis-editor .fert-dis-list{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:4px 7px!important;align-items:start;align-content:start;
  min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:2px!important;
}
.fert-dis-editor .fert-dis-product{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 56px!important;
  align-items:center!important;gap:5px!important;
  min-height:35px!important;
  padding:3px 5px!important;border-radius:6px!important;
}
.fert-dis-editor.fert-dash-edit-card .fert-dis-product .fert-dis-product-name{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 70px!important;
  align-items:center!important;gap:5px!important;
  min-width:0;line-height:1.1;
}
.fert-dis-editor .fert-dis-product-name strong{
  min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:.74rem!important;
}
.fert-dis-editor.fert-dash-edit-card .fert-dis-product .fert-dis-number{
  box-sizing:border-box;width:70px!important;max-width:70px!important;
  height:27px!important;min-height:27px!important;
  padding:3px 5px!important;font-size:.75rem!important;
  text-align:right;
}
.fert-dis-editor .fert-dis-product .fert-dis-save{
  min-height:27px!important;height:27px!important;
  padding:3px 5px!important;font-size:.68rem!important;
}
.fert-dis-editor .fert-dis-product .fert-dis-message:empty{display:none!important}
.fert-dis-editor .fert-dis-product .fert-dis-message:not(:empty){
  grid-column:1/-1;font-size:.65rem!important;line-height:1.15;
}
.fert-dis-editor .fert-dis-close{min-height:26px;padding:0 7px}
.fert-dis-editor > footer{margin:0;min-height:32px}
.fert-dis-editor > footer button{min-height:30px!important}
@media(max-width:1150px){
  .fert-dis-editor .fert-dis-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:660px){
  .fert-dis-editor .fert-dis-list{grid-template-columns:minmax(0,1fr)!important}
  .fert-dis-editor.fert-dash-edit-card{padding:10px!important;max-height:94dvh!important}
}
@media(max-width:380px){
  #fertilizers .fert-dash-solution-metrics{grid-template-columns:1fr}
  #fertilizers .fert-dash-solution-metrics .fert-dash-metric-current{grid-column:auto}
}
