:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#162033;background:#f5f7f6;--green:#0b6b35;--pale:#cfe7d6;--border:#d7e2da;--muted:#6b756e;--warn:#c98500;--bad:#b42318}
*{box-sizing:border-box}body{margin:0;background:#f5f7f6}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:var(--green);color:#fff;box-shadow:0 2px 8px #0002}.brand{font-weight:800;letter-spacing:.08em;color:#fff}.subtitle{font-size:12px;color:#fff;opacity:.9}.net{font-size:12px;padding:5px 9px;border-radius:999px;background:#ffffff22;color:#fff;border:1px solid #ffffff55}.net.ok{background:#ffffff22;color:#fff}.net.off{background:#fff0e7;color:#8b4300;border-color:#f3c38c}.net.syncing{background:#fff4d6;color:#725000;border-color:#e8cf84}.page{padding:16px 14px 84px;max-width:720px;margin:auto}h1{font-size:25px;margin:4px 0 6px}h2{font-size:18px;margin:20px 0 10px}.muted,.meta{color:var(--muted);font-size:14px}.card,.list-card,.module{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px;margin:10px 0;box-shadow:0 1px 1px rgba(0,0,0,.02)}.module{display:block;width:100%;text-align:left}.module h2{margin:0 0 4px}.module .icon{font-size:28px}.list-card{width:100%;text-align:left}.title{font-weight:750;font-size:17px}.row{display:flex;gap:10px;align-items:center}.between{justify-content:space-between}.badge{font-size:12px;border-radius:999px;padding:5px 8px;background:#eef2ef}.badge.warn{background:#fff4d6;color:#8a5c00}.badge.bad{background:#fee4e2;color:#b42318}.badge.ok{background:#e8f5ec;color:#0a6a31}.search,input,select,textarea,button{font:inherit}.search,input,select,textarea{width:100%;border:1px solid #cfd8d1;border-radius:10px;padding:12px;background:#fff}.search{margin:12px 0}label{display:block;font-size:14px;font-weight:650;margin:12px 0 5px}.primary,.secondary,.danger,.linkbtn{width:100%;border:0;border-radius:11px;padding:13px 14px;font-weight:750;margin:10px 0}.primary{background:var(--green);color:#fff}.secondary{background:#eef4ef;color:#173e27}.danger{background:#fee4e2;color:#b42318}.linkbtn{background:#fff;border:1px solid var(--border);color:#173e27}.back{border:0;background:none;color:var(--green);padding:4px 0 10px;font-weight:700}.notice{background:#eef7f0;border:1px solid #d1e6d6;border-radius:12px;padding:11px;margin:12px 0;font-size:14px}.notice.warn{background:#fff8e5;border-color:#f1ddb0}.photo{width:100%;max-height:300px;object-fit:contain;border-radius:12px;background:#111;margin-top:8px}.hidden{display:none!important}.bottom{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:1fr 1fr 1fr;gap:1px;background:#dce5df;border-top:1px solid #cbd8cf;z-index:20}.bottom button{border:0;background:#fff;padding:13px 6px;color:#24402f}.empty{text-align:center;color:var(--muted);padding:24px}.spinner{padding:26px;text-align:center}.success{font-size:48px;color:var(--green);text-align:center}.queue-photo{font-size:12px;color:var(--muted)}.split{display:grid;grid-template-columns:1fr 1fr;gap:8px}.top-actions{display:flex;gap:8px}.top-actions button{width:auto;margin:0}.small{font-size:12px}.serverline{word-break:break-all;font-size:12px;color:var(--muted)}@media(min-width:600px){.module-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.module{margin:0}.page{padding-top:24px}}

.value-input{display:flex;align-items:center;background:#fff;border:1px solid #cfd8d1;border-radius:10px;overflow:hidden}.value-input:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #0b6b3518}.value-input input{border:0;border-radius:0;font-size:25px;font-weight:800;box-shadow:none;min-width:0}.value-input span{padding:0 14px;color:var(--muted);font-weight:800;white-space:nowrap}.value-input input::placeholder{color:#344054;opacity:1}

.info-ct { border: 1px solid #078633; color: #087a32; background: #e9f5ec; }
.ct-info-value { margin: 0 0 10px; overflow-wrap: anywhere; }

.odl-phone{color:#078633;font-weight:700;text-decoration:underline;padding:5px 0;display:inline-block}.odl-field{margin:8px 0;overflow-wrap:anywhere}.list-card h2{color:#078633;font-size:18px}

/* ODL: comandi e ricerca compatti, filtri richiudibili e righe sintetiche. */
.odl-list-header{display:flex;align-items:center;gap:6px;margin:0 0 7px}
.odl-list-header h1{flex:1;min-width:0;margin:0;font-size:22px;line-height:1.2}
.odl-list-header button{width:auto;margin:0;padding:7px 10px;min-height:40px;font-size:13px;white-space:nowrap}
.odl-list-header #odlHelp{width:40px;flex:0 0 40px;padding:6px;font-size:17px}
.odl-search-row{display:flex;align-items:center;gap:6px}
.odl-search-row input{flex:1;min-width:0;margin:0;height:43px;padding:8px 9px;font-size:14px}
.odl-search-row button{flex:0 0 101px;width:101px;margin:0;height:43px;min-height:43px;padding:5px;font-size:13px}
.odl-filter-panel{margin:7px 0;padding:8px}
.odl-filter-panel label{font-size:12px;margin:0 0 2px}
.odl-filter-panel select{height:40px;padding:5px;margin:0 0 4px;font-size:14px}
.odl-filter-row{display:flex;gap:6px}.odl-filter-row select{min-width:0;flex:1;width:50%}
.odl-filter-panel button{margin:0;padding:5px;min-height:34px;font-size:13px}
.odl-list-summary{margin:5px 0 6px;font-size:12px;color:#087a32;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.odl-compact-card{padding:8px 10px;margin:5px 0}
.odl-compact-card h2{font-size:16px;margin:0 0 3px}
.odl-compact-field{font-size:13px;line-height:1.3;margin:2px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.odl-error{font-size:12px;margin:1px 0 4px;padding:3px;text-align:left}
.odl-assign-option{display:flex;align-items:center;gap:10px;padding:9px 3px;border-bottom:1px solid #e2ece5}
.odl-assign-option input{width:20px;height:20px;margin:0;flex:0 0 20px}

.odl-guide-section summary{font-weight:750;color:#087a32;cursor:pointer;min-height:30px}.odl-guide-section p{font-size:14px;line-height:1.45;margin-bottom:0}

/* Spazio fra comandi e ricerca; azione aggiornamento in evidenza. */
.odl-list-header{margin-bottom:8px}
#odlRefresh{background:#e9f5ec;color:#078633;border:1px solid #078633}
#odlRefresh:disabled{opacity:.6}
.odl-detail-actions{display:flex;align-items:center;gap:8px;margin:8px 0}
.odl-detail-actions button{margin:0;height:44px;min-height:44px;padding:8px 12px}
.odl-detail-actions #odlAssign{flex:1;background:#e9f5ec;color:#078633;border:1px solid #078633}
.odl-detail-actions #odlDetailHelp{flex:0 0 44px;width:44px;padding:8px;margin-left:auto;border:1px solid #078633;color:#078633}
