/* Farmo Organizer V13.4 - Elenco Macchine leggibile e responsive */
body.fo-app-mode #machinesPage .machine-year-folder-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:start!important;
  margin-top:14px!important;
}
body.fo-app-mode #machinesPage .machine-year-folder-card{
  min-width:0!important;
  border:1px solid #d7e0ec!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 4px 14px rgba(6,27,73,.055)!important;
}
body.fo-app-mode #machinesPage .machine-year-folder-card.is-open{
  grid-column:1/-1!important;
  box-shadow:0 7px 22px rgba(6,27,73,.08)!important;
}
body.fo-app-mode #machinesPage .machine-year-folder-main{
  width:100%!important;
  min-height:50px!important;
  padding:10px 14px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:10px!important;
  background:#061b49!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  text-align:left!important;
  box-shadow:none!important;
}
body.fo-app-mode #machinesPage .machine-year-folder-main .machine-folder-icon{display:none!important}
body.fo-app-mode #machinesPage .machine-year-folder-title{
  min-width:0!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.fo-app-mode #machinesPage .machine-year-folder-count{
  margin:0!important;
  min-width:30px!important;
  height:28px!important;
  padding:0 9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:900!important;
}
body.fo-app-mode #machinesPage .machine-year-folder-chevron,
body.fo-app-mode #machinesPage .machine-model-folder-chevron{
  width:28px!important;height:28px!important;display:grid!important;place-items:center!important;
  border-radius:8px!important;background:rgba(255,255,255,.08)!important;color:inherit!important;
  font-size:15px!important;font-weight:950!important;line-height:1!important;
}
body.fo-app-mode #machinesPage .machine-year-folder-content{
  padding:14px!important;
  border-top:1px solid #d7e0ec!important;
  background:#f5f7fb!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
  gap:10px!important;
  align-items:start!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-card{
  min-width:0!important;
  border:1px solid #d7e0ec!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-card.is-open{
  grid-column:1/-1!important;
  border-color:#b9c7db!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-main{
  width:100%!important;
  min-height:48px!important;
  padding:9px 12px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:9px!important;
  background:#fff!important;
  color:#061b49!important;
  border:0!important;
  box-shadow:none!important;
  text-align:left!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-main:hover{background:#f7f9fc!important}
body.fo-app-mode #machinesPage .machine-model-folder-main .machine-folder-icon{
  width:23px!important;height:23px!important;min-width:23px!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-title{
  min-width:0!important;font-size:14px!important;font-weight:900!important;color:#061b49!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-count{
  margin:0!important;min-width:28px!important;height:26px!important;padding:0 8px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid #cbd6e5!important;border-radius:999px!important;background:#f2f5f9!important;
  color:#334155!important;font-size:11px!important;font-weight:900!important;
}
body.fo-app-mode #machinesPage .machine-model-folder-chevron{background:#edf2f7!important;color:#061b49!important}
body.fo-app-mode #machinesPage .machine-model-folder-content{
  padding:12px!important;border-top:1px solid #e0e7f0!important;background:#f8fafc!important;
}
body.fo-app-mode #machinesPage .machine-folder-grid.machine-assistance-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(285px,1fr))!important;
  gap:12px!important;
}
body.fo-app-mode #machinesPage .machine-folder-card.machine-assistance-card{min-width:0!important;margin:0!important}
body.fo-app-mode #machinesPage .machine-assistance-card-title strong,
body.fo-app-mode #machinesPage .machine-assistance-card-meta strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
body.fo-app-mode #machinesPage .machine-search-filter{
  margin:0!important;padding:10px!important;border:1px solid #d8e1ec!important;border-radius:13px!important;background:#f7f9fc!important;
}
body.fo-app-mode #machinesPage .machine-search-box input{min-height:46px!important;background:#fff!important}

@media (max-width:1180px){
  body.fo-app-mode #machinesPage .machine-year-folder-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:860px){
  body.fo-app-mode #machinesPage .machine-year-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:700px){
  body.fo-app-mode #machinesPage .machine-year-folder-grid{grid-template-columns:1fr!important;gap:9px!important;margin-top:10px!important}
  body.fo-app-mode #machinesPage .machine-year-folder-card.is-open{grid-column:auto!important}
  body.fo-app-mode #machinesPage .machine-year-folder-main{min-height:48px!important;padding:9px 11px!important}
  body.fo-app-mode #machinesPage .machine-year-folder-content{padding:9px!important}
  body.fo-app-mode #machinesPage .machine-model-folder-grid{grid-template-columns:1fr!important;gap:8px!important}
  body.fo-app-mode #machinesPage .machine-model-folder-card.is-open{grid-column:auto!important}
  body.fo-app-mode #machinesPage .machine-model-folder-content{padding:9px!important}
  body.fo-app-mode #machinesPage .machine-folder-grid.machine-assistance-grid{grid-template-columns:1fr!important;gap:9px!important}
  body.fo-app-mode #machinesPage .machine-assistance-card-head{grid-template-columns:auto minmax(0,1fr) auto!important}
  body.fo-app-mode #machinesPage .machine-search-filter{padding:8px!important;border-radius:11px!important}
}

/* Stabilita' bottom sheet del selettore ricercabile su mobile. */
@media (max-width:700px){
  body.fo-search-select-open{overflow:hidden!important}
  .fo-search-select-overlay{touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important}
  .fo-search-select-dialog{max-height:min(82vh,720px)!important;overscroll-behavior:contain!important}
  .fo-search-select-list{-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important}
  .fo-search-select-option,.fo-search-select-close,.fo-search-select-clear{touch-action:manipulation!important}
}
