
/* Edil Quadrano / Gestionale Mobile: responsive, contenuto ad alta leggibilita. */
#quotes .eq-section { max-width: 1000px; margin: 0 auto; color: #191919; }
#quotes .eq-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 8px 0 15px; }
#quotes .eq-heading h2 { margin: 2px 0 5px; font-size: clamp(25px,4vw,35px); font-weight: 750; letter-spacing: -.025em; }
#quotes .eq-heading p { margin: 0; color: #616161; font-size: 13px; line-height: 1.45; }
#quotes .eq-eyebrow { color: #877134; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
#quotes .eq-summary { display: flex; flex-flow: column; align-items: center; justify-content: center; min-width: 80px; background: #211f1b; color: white; padding: 11px; border-radius: 16px; }
#quotes .eq-summary b { font-size: 22px; } #quotes .eq-summary small { font-size: 10px; color: #eadaba; }
#quotes .eq-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
#quotes .eq-primary, #quotes .eq-secondary, #quotes .eq-recordactions button, #quotes .eq-chip {
  border-radius: 11px; border: 1px solid #e3ded3; background: #fff; color: #191919; cursor: pointer; min-height: 43px;
  font-size: 13px; font-weight: 700; padding: 10px 13px; line-height: 1.2;
}
#quotes .eq-primary { background: #b88b1c; color: #fff; border-color: #987019; box-shadow: 0 5px 13px #b88b1c22; }
#quotes button:focus-visible { outline: 3px solid #bc962e; outline-offset: 2px; }
#quotes button:disabled { opacity: .55; cursor: progress; }
#quotes .eq-small-summary { font-size: 12px; margin-bottom: 12px; color: #64615e; }
#quotes .eq-small-summary strong { color: #24211d; }
#quotes .eq-message { background: #f0faf4; color: #166534; border: 1px solid #c4ead1; border-radius: 12px; padding: 11px; font-size: 12px; margin: 10px 0; }
#quotes .eq-message.eq-error { background: #fff0ef; color: #a21d1d; border-color: #fecaca; }
#quotes .eq-builder { display: grid; gap: 12px; }
#quotes .eq-card { border: 1px solid #e8e3d8; border-radius: 17px; background: #fff; padding: 15px; box-shadow: 0 5px 19px #10101007; min-width: 0; }
#quotes .eq-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#quotes .eq-card h3 { margin: 0; font-size: 19px; font-family: inherit; line-height: 1.25; }
#quotes .eq-card h3 small { color: #857c6a; font-size: 12px; }
#quotes .eq-cloud { color: #607464; font-size: 10px; white-space: nowrap; }
#quotes .eq-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#quotes .eq-field { display: flex; flex-flow: column; gap: 5px; color: #474747; font-size: 12px; margin-bottom: 10px; min-width: 0; }
#quotes .eq-field > span { font-weight: 650; letter-spacing: .01em; }
#quotes .eq-field input, #quotes .eq-field select, #quotes .eq-field textarea {
  background: #fcfbf9; border: 1px solid #dcd6ca; border-radius: 10px; padding: 11px;
  font-size: 16px; color: #151515; width: 100%; min-height: 44px; box-sizing: border-box; max-width: 100%;
}
#quotes .eq-field textarea { resize: vertical; line-height: 1.55; }
#quotes .eq-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
#quotes .eq-quick > span { font-size: 11px; color: #6a655a; flex: 0 0 100%; }
#quotes .eq-chip { padding: 6px 10px; min-height: 32px; font-weight: 550; background: #f9f6ef; border-color: #eae0cd; font-size: 11px; }
#quotes .eq-lines { display: grid; gap: 10px; }
#quotes .eq-line { border: 1px solid #e9e4da; padding: 12px; border-radius: 14px; background: #fcfbf8; }
#quotes .eq-linegrid { display: grid; grid-template-columns: 1fr 90px 1fr; gap: 9px; }
#quotes .eq-linegrid .eq-field { margin-bottom: 6px; }
#quotes .eq-linefoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed #ddd3c1; padding-top: 9px; }
#quotes .eq-line-total { font-size: 16px; letter-spacing: -.01em; }
#quotes .eq-delete { color: #a12a2a !important; font-size: 12px !important; border: none !important; background: transparent !important; cursor: pointer; }
#quotes .eq-addline { margin-top: 11px; width: 100%; border-style: dashed; }
#quotes .eq-total { background: #201f1c; color: #fff; display: grid; gap: 8px; }
#quotes .eq-total > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#quotes .eq-total small { color: #c1bdb4; }
#quotes .eq-grand { margin-top: 6px; padding-top: 14px; border-top: 1px solid #555149; }
#quotes .eq-grand strong { color: #e6b943; font-size: 25px; font-weight: 800; }
#quotes .eq-options { grid-template-columns: minmax(0,280px); }
#quotes .eq-tip { margin: 0; font-size: 12px; color: #676767; }
#quotes .eq-sticky-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid #e5dfd1; background: #fff; box-shadow: 0 10px 30px #00000013; position: sticky; bottom: 8px; z-index: 10; }
#quotes .eq-sticky-actions .eq-primary { flex: 2 1 180px; }
#quotes .eq-sticky-actions .eq-secondary { flex: 1 1 90px; }
#quotes .eq-empty { text-align: center; padding: 35px 10px; color: #666; }
#quotes .eq-empty strong { display: block; font-size: 17px; color: #222; }
#quotes .eq-record { border-top: 1px solid #eee6da; padding: 13px 0 9px; }
#quotes .eq-recordtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
#quotes .eq-recordtop small { color: #8b742f; font-size: 11px; }
#quotes .eq-recordtop h3 { margin: 4px 0; font-size: 16px; }
#quotes .eq-recordtop p { margin: 1px 0; color: #646464; font-size: 12px; }
#quotes .eq-recordtop > b { white-space: nowrap; color: #191919; font-size: 15px; }
#quotes .eq-recordactions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
#quotes .eq-recordactions button { min-height: 36px; font-size: 11px; padding: 7px 11px; }
#quotes .eq-recordactions .eq-delete { min-height: 36px; }

@media(max-width:760px) {
  html, body { overflow-x: clip; }
  .app { display: block; padding: 7px; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; max-height: 130px; overflow: visible; margin-bottom: 9px; padding: 8px 9px; border-radius: 14px; }
  .logo-wrap { padding: 4px 6px; margin-bottom: 6px; background: transparent; border: 0; }
  .logo-wrap img { height: 29px; width: 29px; padding: 2px; }
  .logo-wrap b { font-size: 11px; } .logo-wrap .muted { font-size: 10px; }
  .side > .brand, .side > .t, .side > .panel { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 5px; padding: 0 0 3px; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .nav button { white-space: nowrap; flex: 0 0 auto; padding: 9px 12px; border-radius: 9px; scroll-snap-align: start; font-size: 12px; min-height: 39px; }
  .main { padding: 0 2px; }
  .main > .top { gap: 4px; margin: 0; padding: 2px 2px 7px; }
  .main > .top h1 { font-size: 21px; }
  .main > .top .muted { display: none; }
  .main > .top > div:last-child { gap: 5px !important; }
  .main > .top #backup { font-size: 11px; padding: 7px 10px; }
  .main > .top #reset { display: none; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .filters > div:first-child { grid-column: span 2; }
  .filters > div:last-child { grid-column: span 2; }
  .panel { border-radius: 13px; padding: 11px; }
  .sec > .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sec > .panel table { min-width: 500px; }
  .sec#quotes > .eq-section { overflow: visible; }
  .sec#quotes .eq-card { overflow: visible; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .kv { font-size: 19px; }
  .row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  table { font-size: 12px; }
  th,td { padding: 7px; }
  #quotes .eq-card { padding: 12px; border-radius: 14px; }
  #quotes .eq-heading { margin: 7px 0 12px; }
  #quotes .eq-summary { min-width: 60px; padding: 9px; }
  #quotes .eq-heading p { font-size: 12px; }
  #quotes .eq-actions { display: grid; grid-template-columns: 1fr 1fr; }
  #quotes .eq-actions button:first-child { grid-column: span 2; }
  #quotes .eq-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  #quotes .eq-linegrid { grid-template-columns: 1fr 75px 1fr; gap: 6px; }
  #quotes .eq-field { font-size: 11px; }
  #quotes .eq-field input, #quotes .eq-field textarea, #quotes .eq-field select { padding: 10px 8px; min-height: 42px; }
  #quotes .eq-recordactions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  #quotes .eq-recordactions button { padding: 7px 3px; }
  #quotes .eq-grand strong { font-size: 22px; }
  #quotes .eq-sticky-actions { bottom: 4px; padding: 7px; gap: 5px; border-radius: 12px; }
  #quotes .eq-sticky-actions .eq-primary { flex-basis: 100%; }
}
@media(max-width:360px) {
  #quotes .eq-grid { grid-template-columns: 1fr; }
  #quotes .eq-linegrid { grid-template-columns: 1fr 70px 1fr; }
  #quotes .eq-heading h2 { font-size: 25px; }
}
