/* FarmManagerPro Stage 6.9 — Today harvest KPI + aggregate harvest summary. */

/* Desktop: weather + today's harvest live in one deliberate summary row. */
#dashboard .fmp69-top-summary-row{
  display:grid;
  grid-template-columns:minmax(0,2.15fr) minmax(250px,.85fr);
  gap:12px;
  align-items:stretch;
  margin:12px 0 14px;
}
#dashboard .fmp69-top-summary-row #fmp61WeatherStrip.fmp61-weather-strip{
  margin:0!important;
  min-height:92px!important;
  height:100%;
}
#dashboard .fmp69-today-harvest-tile{
  appearance:none;
  width:100%;
  min-width:0;
  border:1px solid #e8e3ff;
  border-radius:17px;
  background:linear-gradient(135deg,#faf8ff 0%,#f2edff 100%);
  box-shadow:0 8px 24px rgba(74,55,145,.08);
  padding:15px 16px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) max-content 14px;
  gap:10px;
  align-items:center;
  color:#20263a;
  text-align:left;
  cursor:pointer;
}
#dashboard .fmp69-today-harvest-tile:hover{border-color:#d6ccff;transform:translateY(-1px)}
#dashboard .fmp69-today-icon{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  background:#7651ee;color:#fff;box-shadow:0 8px 18px rgba(118,81,238,.2)
}
#dashboard .fmp69-today-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#dashboard .fmp69-today-copy{display:flex;flex-direction:column;min-width:0}
#dashboard .fmp69-today-copy>small{font-size:9px;font-weight:900;letter-spacing:.09em;color:#7153db}
#dashboard .fmp69-today-copy>b{font-size:14px;line-height:1.2;margin-top:2px}
#dashboard .fmp69-today-copy>em{font-size:9px;color:#858da0;font-style:normal;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashboard .fmp69-today-values{display:flex;align-items:center;gap:12px}
#dashboard .fmp69-today-values>i{display:block;width:1px;height:34px;background:#ded8f5}
#dashboard .fmp69-today-values>strong{display:flex;flex-direction:column;align-items:flex-end;line-height:1}
#dashboard .fmp69-today-values>strong>b{font-size:20px;color:#5032be;white-space:nowrap}
#dashboard .fmp69-today-values>strong>small{font-size:9px;color:#7f8799;margin-top:5px;font-weight:800}
#dashboard .fmp69-today-chevron{font-size:24px;color:#907aea;font-weight:400}

/* Zbiory: the operational view shows summaries, not raw rows. Editing stays in Administration. */
#scanner .fmp69-history-limit-hidden,
#scanner .fmp69-raw-harvest-list-hidden,
#scanner .fmp69-history-pager-hidden{display:none!important}
#scanner .list-filter-panel{grid-template-columns:repeat(2,minmax(170px,1fr))!important}
#scanner .list-filter-panel .range-shortcuts{grid-column:1/-1}
#scanner .fmp69-harvest-summary{margin-top:12px;display:flex;flex-direction:column;gap:12px}
#scanner .fmp69-summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:0 2px}
#scanner .fmp69-summary-head>div{display:flex;flex-direction:column;min-width:0}
#scanner .fmp69-summary-head>div>small{font-size:9px;font-weight:900;letter-spacing:.08em;color:#7c64d9}
#scanner .fmp69-summary-head>div>b{font-size:13px;margin-top:3px;color:#273046}
#scanner .fmp69-summary-head>span{font-size:10px;font-weight:800;color:#727b8f;background:#f4f2fa;border-radius:999px;padding:6px 9px;white-space:nowrap}
#scanner .fmp69-summary-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#scanner .fmp69-summary-metrics article{
  display:flex;align-items:center;gap:11px;min-width:0;padding:14px;
  border:1px solid #eceaf2;border-radius:15px;background:#fff;box-shadow:0 5px 17px rgba(44,50,70,.045)
}
#scanner .fmp69-summary-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:18px;font-weight:900;flex:0 0 auto}
#scanner .fmp69-summary-icon.packages{background:#efeaff;color:#6944e7}
#scanner .fmp69-summary-icon.kg{background:#e9f7ef;color:#258a52}
#scanner .fmp69-summary-metrics article>div{display:flex;flex-direction:column;min-width:0}
#scanner .fmp69-summary-metrics small{font-size:9px;color:#7f8798;font-weight:800}
#scanner .fmp69-summary-metrics strong{font-size:22px;line-height:1.1;color:#222a3c;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#scanner .fmp69-summary-metrics em{font-size:9px;color:#9aa1af;font-style:normal;margin-top:3px}
#scanner .fmp69-worker-breakdown{border:1px solid #eceaf2;border-radius:15px;background:#fff;overflow:hidden}
#scanner .fmp69-worker-breakdown>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;font-weight:900;color:#343b50;background:#fbfaff}
#scanner .fmp69-worker-breakdown>summary::-webkit-details-marker{display:none}
#scanner .fmp69-worker-breakdown>summary:after{content:"⌄";color:#7651ee;margin-left:8px;transition:transform .18s ease}
#scanner .fmp69-worker-breakdown[open]>summary:after{transform:rotate(180deg)}
#scanner .fmp69-worker-breakdown>summary>span{font-size:12px;flex:1}
#scanner .fmp69-worker-breakdown>summary>small{font-size:9px;color:#81899a;font-weight:800}
#scanner .fmp69-worker-list{display:flex;flex-direction:column;padding:4px 10px 10px}
#scanner .fmp69-worker-row{display:grid;grid-template-columns:24px 32px minmax(0,1fr) minmax(70px,max-content) minmax(70px,max-content);gap:8px;align-items:center;padding:9px 4px;border-top:1px solid #f0eff4}
#scanner .fmp69-worker-position{font-size:10px;font-weight:900;color:#8790a1;text-align:center}
#scanner .fmp69-worker-row>i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f0ebff;color:#6240dc;font-size:9px;font-style:normal;font-weight:900}
#scanner .fmp69-worker-name{display:flex;flex-direction:column;min-width:0}
#scanner .fmp69-worker-name>b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2b3347}
#scanner .fmp69-worker-name>small{font-size:8.5px;color:#949baa;margin-top:2px}
#scanner .fmp69-worker-row>strong{text-align:right;font-size:11px;color:#31394c;white-space:nowrap}
#scanner .fmp69-worker-row>strong>small{font-size:8px;color:#8b93a3;font-weight:800}

@media (max-width:1099px){
  #dashboard .fmp69-top-summary-row{grid-template-columns:minmax(0,1.7fr) minmax(230px,.8fr);margin:10px 0 12px}
}
@media (max-width:700px){
  #dashboard .fmp69-top-summary-row{display:flex;flex-direction:column;gap:9px;margin:10px 0 12px}
  #dashboard .fmp69-top-summary-row #fmp61WeatherStrip.fmp61-weather-strip{min-height:0!important}
  #dashboard .fmp69-today-harvest-tile{grid-template-columns:38px minmax(0,1fr) max-content 10px;padding:12px 11px;border-radius:15px}
  #dashboard .fmp69-today-icon{width:38px;height:38px;border-radius:11px}
  #dashboard .fmp69-today-values{gap:8px}
  #dashboard .fmp69-today-values>strong>b{font-size:17px}
  #dashboard .fmp69-today-copy>b{font-size:12px}
  #scanner .list-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #scanner .fmp69-worker-row{grid-template-columns:22px 30px minmax(0,1fr) max-content;gap:6px}
  #scanner .fmp69-worker-row>strong:first-of-type{grid-column:3;text-align:left;margin-top:-4px;color:#6b7280}
  #scanner .fmp69-worker-row>strong:last-of-type{grid-column:4;grid-row:1/3;align-self:center}
}
@media (max-width:420px){
  #dashboard .fmp69-today-harvest-tile{grid-template-columns:36px minmax(0,1fr) max-content;padding:11px 10px}
  #dashboard .fmp69-today-chevron{display:none}
  #dashboard .fmp69-today-values>strong>b{font-size:16px}
  #scanner .fmp69-summary-metrics article{padding:11px 10px;gap:8px}
  #scanner .fmp69-summary-icon{width:34px;height:34px;border-radius:10px;font-size:15px}
  #scanner .fmp69-summary-metrics strong{font-size:18px}
}
