/* TaskHelper: componenti nostri sopra Bootstrap 5 + toolbox di October (prefisso th-).
   Le regole generiche (flash, tooltip, toolbar di pagina, elenchi, menu su telefono) vengono da roomserver ui2/roomhelper.css. */
:root, [data-bs-theme="light"] {
  --th-ok: #5e9e2e; --th-wait: #e67e22; --th-down: var(--oc-color-negative, #d0342c); --th-muted: var(--bs-secondary-color);
  --th-urgent: #d0342c; --th-high: #e67e22; --th-low: #9aa0a6;
  --th-bubble: #f4f6fa; --th-bubble-me: #eef0ff;
}
[data-bs-theme="dark"] { --th-ok: #41b862; --th-bubble: #23262b; --th-bubble-me: #2a2c45; }

.hidden { display: none !important; }
.subtle, .hint { font-size: 12.5px; color: var(--th-muted); }
.hint { margin: 5px 0 0; }
.nowrap { white-space: nowrap; }
.mono { font-family: "SFMono-Regular", Menlo, Consolas, monospace; }

/* ---- pagina: niente padding, il contenuto arriva ai bordi come le liste di October ---- */
#layout-body, .layout-container { padding: 0; }
.th-page { padding: 0 0 40px; }
.th-page h1 { font-size: 1.4rem; font-weight: 600; margin: 14px 12px 2px; color: var(--bs-heading-color); }
.th-page h2 { font-size: 1.05rem; font-weight: 600; margin: 22px 0 10px; color: var(--bs-heading-color); }
.th-page > .lede { font-size: 14.5px; color: var(--bs-secondary-color); margin: 0 12px 12px; max-width: 80ch; }
.th-page > .card, .th-page > .callout, .th-page > .th-pad { margin-left: 12px; margin-right: 12px; }
.th-page .control-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 12px 10px; }
.th-page .control-toolbar .toolbar-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; white-space: normal; }
.th-page .control-toolbar .toolbar-item.fix-width { margin-left: auto; }
.card-header h2, .card-header h3 { font-size: 1rem; font-weight: 600; margin: 0; color: var(--bs-heading-color); }

/* ---- menu ---- */
.mainmenu-account-avatar#avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bs-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.mainmenu-item .counter { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--th-down); color: #fff; font-size: 11px; font-weight: 600; text-align: center; vertical-align: middle; margin-left: 6px; }
.mainmenu-item .counter.empty { display: none; }
.th-account-menu { min-width: 250px; }
.mainmenu-items .dropdown-menu.th-account-menu { position: absolute; right: 0 !important; left: auto !important; top: 100% !important; transform: none !important; inset: auto 0 auto auto !important; margin-top: 4px; }
.th-menu-toggle { display: none; }
@media (max-width: 991.98px) { .th-menu-toggle { display: inline-block; } #nav { display: none; } }
#navMobile .list-group-item i { font-size: 18px; width: 24px; text-align: center; }
#navMobile .badge { float: right; }

/* ---- login (layout outer di October) ---- */
.th-login { display: flex; min-height: 100vh; }
.th-login .outer-form-cell { display: block; width: 380px; flex: none; background: var(--bs-body-bg); }
.th-login .outer-theme-cell { flex: 1; background: #eef0ff radial-gradient(ellipse at 30% 20%, #fff 0%, #eef0ff 45%, #d9dcf7 100%); }
.th-login .th-logo { font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--bs-heading-color); margin: 0 0 4px; }
.th-login .th-logo span { font-weight: 400; color: var(--bs-secondary-color); font-size: 14px; margin-left: 8px; }
body.outer .th-login .th-logo, body.outer .th-login h2, body.outer .th-login p { font-family: var(--bs-body-font-family); text-align: left; }
body.outer .th-login h2 { padding: 0; margin: 22px 0 6px; font-size: 18px; font-weight: 600; }
.th-login .form-group { margin-bottom: 16px; }
@media (max-width: 700px) { .th-login .outer-theme-cell { display: none; } .th-login .outer-form-cell { width: 100%; } }

/* ---- popup, flash, tooltip ---- */
.modal-dialog:has(.modal-wide) { max-width: 960px; }
.modal .modal-wide { display: none; }
.modal-header h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.modal-header p { margin: 4px 0 0; font-size: 13px; color: var(--th-muted); flex-basis: 100%; }
.modal-header { flex-wrap: wrap; }
.th-dlg .dlg-text { margin: 0 0 4px; white-space: pre-line; font-size: 14px; }
.th-dlg .dlg-label { display: block; margin: 12px 0 5px; font-size: 12.5px; color: var(--th-muted); }
.th-flash-root { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 10300; align-items: center; pointer-events: none; }
.th-flash { display: inline-flex; align-items: center; gap: 10px; background: var(--bs-body-bg); color: var(--bs-body-color); padding: 10px 18px 10px 14px; border-radius: 30px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 14px; max-width: 480px; pointer-events: auto; animation: th-flash-in .18s ease-out; }
.th-flash i { font-size: 18px; } .th-flash.success i { color: var(--th-ok); } .th-flash.warning i { color: var(--th-wait); } .th-flash.error i { color: var(--th-down); }
@keyframes th-flash-in { from { opacity: 0; transform: translateY(-6px); } }
.tip { position: fixed; z-index: 10700; max-width: 280px; padding: 6px 9px; border-radius: 5px; background: var(--oc-mainnav-bg, #2d3134); color: #fff; font-size: 12px; line-height: 1.35;
  white-space: pre-line; pointer-events: none; opacity: 0; transition: opacity .08s; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tip.on { opacity: 1; }

/* ---- elenchi (rhlist.js) ---- */
.control-search .form-control.is-searchable { padding-right: 32px; min-width: 240px; }
.control-list .list-content { overflow-x: auto; }
.th-page > .control-list { margin: 0 0 18px; border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); background: var(--bs-table-bg); }
.card > .control-list { margin: 0; }
.control-list td .t-title { font-weight: 500; color: var(--bs-body-color); }
.control-list td .t-sub { display: block; font-size: 12.5px; color: var(--th-muted); }
.control-list tr.th-closed td { opacity: .55; }
.control-list tr[data-selected] td { background: rgba(106,108,247,.08); }
.control-list .list-checkbox { width: 34px; text-align: center; }
.th-selbar { display: inline-flex; align-items: center; gap: 8px; }

/* ---- chip utente, badge stato e priorita' ---- */
.uchip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13.5px; }
.uchip .ua { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.uchip.me .un { font-weight: 600; }
.ua.lg { width: 32px; height: 32px; font-size: 12.5px; }
.sbadge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.sbadge.st-aperto { color: var(--bs-primary); } .sbadge.st-in_corso { color: var(--th-wait); } .sbadge.st-in_attesa_cliente { color: #8e44ad; }
.sbadge.st-risolto, .sbadge.st-chiuso { color: var(--th-ok); }
.sbadge.q-bozza { color: var(--th-muted); } .sbadge.q-da_approvare { color: var(--th-wait); background: rgba(230,126,34,.08); }
.sbadge.q-approvato { color: var(--bs-primary); } .sbadge.q-rifiutato { color: var(--th-down); }
.sbadge.q-inviato { color: #8e44ad; } .sbadge.q-accettato { color: var(--th-ok); } .sbadge.q-perso { color: var(--th-low); }
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.prio::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--th-low); }
.prio.p-normale::before { background: var(--bs-primary); } .prio.p-alta::before { background: var(--th-high); }
.prio.p-urgente { color: var(--th-urgent); font-weight: 600; } .prio.p-urgente::before { background: var(--th-urgent); }
.cat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.cat i { font-size: 13px; }
.tcode { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; color: var(--th-muted); }
.due-late { color: var(--th-down); font-weight: 600; }

/* ---- scheda task ---- */
.th-task { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding: 0 12px; align-items: start; }
@media (max-width: 1100px) { .th-task { grid-template-columns: 1fr; } .th-task .th-side { order: -1; } }
.th-task-head { padding: 14px 12px 6px; }
.th-task-head h1 { margin: 2px 0 6px; font-size: 1.4rem; }
.th-task-head .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--th-muted); }
.th-waiting { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 8px 0 12px; border-radius: var(--bs-border-radius); background: rgba(106,108,247,.08); border: 1px solid rgba(106,108,247,.25); }
.th-waiting.me { background: rgba(230,126,34,.10); border-color: rgba(230,126,34,.35); }
.th-waiting b { font-weight: 600; }
.th-side .card-body { padding: 12px 14px; }
.th-side .form-group { margin-bottom: 10px; }
.th-side .form-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--th-muted); margin-bottom: 3px; }
.th-desc { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.55; }

.timeline { list-style: none; padding: 0; margin: 0; }
.tl-item { display: flex; gap: 10px; padding: 8px 0; }
.tl-item .tl-body { flex: 1; min-width: 0; }
.tl-item .tl-head { font-size: 12.5px; color: var(--th-muted); margin-bottom: 3px; }
.tl-item .tl-head b { color: var(--bs-body-color); font-weight: 600; }
.tl-bubble { background: var(--th-bubble); border-radius: 10px; padding: 9px 12px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.5; }
.tl-item.mine .tl-bubble { background: var(--th-bubble-me); }
.tl-sys { display: flex; align-items: center; gap: 8px; padding: 4px 0 4px 32px; font-size: 13px; color: var(--th-muted); }
.tl-sys i { font-size: 14px; }
.tl-sys b { color: var(--bs-body-color); font-weight: 500; }
.tl-sys .tl-note { color: var(--bs-body-color); font-style: italic; }
.tl-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tl-img { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--bs-border-color); max-width: 240px; }
.tl-img img { display: block; max-width: 240px; max-height: 200px; object-fit: cover; }
.tl-file { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--bs-border-color); border-radius: 6px; font-size: 13px; text-decoration: none; color: var(--bs-body-color); background: var(--bs-body-bg); max-width: 300px; }
.tl-file i { font-size: 20px; color: var(--th-down); }
.tl-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-file small { color: var(--th-muted); }

.composer { border: 1px solid var(--bs-border-color); border-radius: 10px; background: var(--bs-body-bg); margin: 10px 0 20px; }
.composer textarea { border: 0; resize: vertical; min-height: 84px; box-shadow: none !important; border-radius: 10px 10px 0 0; }
.composer .cmp-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px; }
.composer .cmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--bs-border-color-translucent); }
.composer .cmp-bar .form-select { width: auto; min-width: 150px; }
.pending-file { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 26px 4px 6px; border: 1px solid var(--bs-border-color); border-radius: 6px; font-size: 12.5px; background: var(--bs-tertiary-bg); max-width: 220px; margin-bottom: 8px; }
.pending-file img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.pending-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-file .x { position: absolute; top: 2px; right: 4px; border: 0; background: none; color: var(--th-muted); font-size: 16px; line-height: 1; padding: 2px; }
.pending-file.loading { opacity: .6; }
.th-drop { position: fixed; inset: 0; z-index: 10500; background: rgba(106,108,247,.18); border: 3px dashed var(--bs-primary); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.th-drop div { background: var(--bs-body-bg); padding: 22px 34px; border-radius: 14px; font-size: 18px; font-weight: 600; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.th-drop i { font-size: 40px; color: var(--bs-primary); }

/* ---- preventivo ---- */
.q-wrap { padding: 0 12px; max-width: 1280px; }
.q-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .q-head { grid-template-columns: 1fr 1fr; } }
.q-sec { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); margin-bottom: 14px; background: var(--bs-body-bg); }
.q-sec-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--bs-tertiary-bg); border-bottom: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0; }
.q-sec-head .q-title { flex: 1; min-width: 200px; font-weight: 600; }
.q-sec-head .form-select { width: auto; }
.q-items { width: 100%; border-collapse: collapse; }
.q-items th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--th-muted); padding: 6px 6px; border-bottom: 1px solid var(--bs-border-color); text-align: left; }
.q-items td { padding: 4px 6px; vertical-align: top; border-bottom: 1px solid var(--bs-border-color-translucent); }
.q-items td.num, .q-items th.num { text-align: right; }
.q-items .form-control, .q-items .form-select { padding: 4px 6px; font-size: 13.5px; }
.q-items textarea.form-control { min-height: 34px; resize: vertical; }
.q-items .c-qty { width: 72px; } .q-items .c-unit { width: 78px; } .q-items .c-price { width: 110px; } .q-items .c-tot { width: 110px; white-space: nowrap; padding-top: 9px; }
.q-items .c-flags { width: 92px; font-size: 12px; } .q-items .c-act { width: 74px; white-space: nowrap; }
.q-items .c-flags label { display: flex; align-items: center; gap: 4px; margin: 2px 0; white-space: nowrap; }
.q-items .btn-icon { border: 0; background: none; color: var(--th-muted); padding: 4px 5px; font-size: 15px; }
.q-items .btn-icon:hover { color: var(--bs-body-color); }
.q-sec-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 13.5px; }
.q-totals { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; align-items: center; padding: 10px 16px; margin: 10px -12px 0; background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color); box-shadow: 0 -4px 14px rgba(0,0,0,.05); }
.q-totals .big { font-size: 1.25rem; font-weight: 700; }
.q-readonly .form-control, .q-readonly .form-select { background: transparent; }
.q-features textarea { min-height: 140px; }
.q-layout-discount .c-list { display: table-cell; } .q-items .c-list { display: none; }
.q-layout-services .c-qty, .q-layout-services .c-unit { }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tpl-card { border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 12px; cursor: pointer; background: var(--bs-body-bg); text-align: left; }
.tpl-card:hover, .tpl-card.sel { border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(106,108,247,.15); }
.tpl-card b { display: block; font-weight: 600; } .tpl-card small { color: var(--th-muted); }

/* ---- dashboard "in attesa di me" ---- */
.th-kpis { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 12px 12px; }
.th-kpi { flex: 1 1 160px; border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 10px 14px; background: var(--bs-body-bg); text-decoration: none; color: inherit; }
.th-kpi:hover { border-color: var(--bs-primary); color: inherit; }
.th-kpi b { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.th-kpi span { font-size: 12.5px; color: var(--th-muted); }
.th-kpi.warn b { color: var(--th-wait); }

.tabs-line { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--bs-border-color); margin-bottom: 0; overflow-x: auto; }
.tabs-line a { padding: 8px 12px; text-decoration: none; color: var(--th-muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.tabs-line a.active { color: var(--bs-body-color); border-bottom-color: var(--bs-primary); font-weight: 500; }
.tabs-line a .n { font-size: 11.5px; background: var(--bs-tertiary-bg); border-radius: 9px; padding: 1px 7px; margin-left: 4px; }

.notif { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid var(--bs-border-color-translucent); text-decoration: none; color: inherit; }
.notif.unread { background: rgba(106,108,247,.06); }
.notif.unread .msg { font-weight: 500; }
.notif:hover { background: var(--bs-tertiary-bg); color: inherit; }
.notif i { font-size: 18px; color: var(--bs-primary); margin-top: 1px; }
.notif small { display: block; color: var(--th-muted); }

.form-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bs-border-color-translucent); }
.form-switch-row .form-check { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field-row, .field-row3 { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .th-page .control-toolbar .toolbar-item.fix-width { width: 100%; margin-left: 0; }
  .control-search .form-control.is-searchable { min-width: 0; width: 100%; }
  .th-page h1 { font-size: 1.2rem; margin: 10px 10px 2px; }
}

/* ---- listino: schede per area e categoria ---- */
.lst-tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 4px 12px 10px; border-bottom: 1px solid var(--bs-border-color); }
.lst-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lst-area { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--th-muted); margin-right: 4px; }
.lst-tabs a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 16px; text-decoration: none; color: var(--bs-body-color); font-size: 13.5px; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.lst-tabs a:hover { border-color: var(--bs-primary); }
.lst-tabs a.active { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.lst-tabs a.active i { color: #fff !important; }
.lst-tabs a .n { font-size: 11px; opacity: .7; }

/* ---- bacheca (stile Trello) e colonne per persona ---- */
.th-board-hint { font-size: 12.5px; color: var(--th-muted); margin: 8px 12px 0; }
.th-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 10px 12px 12px; align-items: start; }
.th-board.kanban { grid-template-columns: repeat(4, minmax(250px, 1fr)); overflow-x: auto; }
.th-col { background: #ebecf0; border-radius: 12px; padding: 8px; min-height: 120px; transition: background .12s, box-shadow .12s; }
[data-bs-theme="dark"] .th-col { background: var(--bs-tertiary-bg); }
.th-col.me { background: #fbeee2; box-shadow: inset 0 0 0 1px rgba(230,126,34,.35); }
.th-col.done { background: #e6f2e2; }
.th-col.over { box-shadow: inset 0 0 0 2px var(--bs-primary); background: #e3e4fb; }
.th-col-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px 8px; font-weight: 600; }
.th-col-head .n { font-size: 12px; background: rgba(255,255,255,.7); border-radius: 9px; padding: 1px 8px; color: var(--th-muted); }
.th-col-body { min-height: 40px; }
.th-col-empty { font-size: 12.5px; color: var(--th-muted); padding: 14px 6px; text-align: center; border: 2px dashed rgba(0,0,0,.08); border-radius: 8px; }
.th-col-add { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--th-muted); padding: 6px 8px; border-radius: 8px; font-size: 13.5px; }
.th-col-add:hover { background: rgba(0,0,0,.06); color: var(--bs-body-color); }
.th-card { display: block; background: var(--bs-body-bg); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; text-decoration: none; color: inherit; box-shadow: 0 1px 1px rgba(9,30,66,.25); border-top: 3px solid transparent; cursor: grab; }
.th-card:hover { color: inherit; box-shadow: 0 2px 6px rgba(9,30,66,.25); }
.th-card.dragging { opacity: .45; transform: rotate(2deg); }
.th-card .t1 { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--th-muted); }
.th-card .t2 { font-weight: 600; font-size: 14px; margin: 3px 0; color: var(--bs-body-color); }
.th-card .t3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--th-muted); }
.th-col.done .th-card .t2 { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.th-card, .th-card:hover, .th-card:focus { text-decoration: none; }

/* ---- storia del preventivo ---- */
.q-hist { list-style: none; margin: 0; padding: 0; }
.q-hist > li { padding: 10px 14px; border-bottom: 1px solid var(--bs-border-color-translucent); }
.q-hist > li:last-child { border-bottom: 0; }
.qh-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.q-hist details { margin: 6px 0 0 32px; font-size: 13px; }
.q-hist summary { cursor: pointer; color: var(--bs-primary); }
.qh-changes { margin: 6px 0 0; padding-left: 18px; color: var(--bs-body-color); }
.qh-changes li { margin-bottom: 2px; }

/* ---- attesa e "da quanto" ---- */
.since { font-size: 11.5px; padding: 1px 6px; border-radius: 9px; white-space: nowrap; }
.age-new { background: rgba(94,158,46,.12); color: #3f7a17; }
.age-mid { background: rgba(230,126,34,.15); color: #b35d0c; }
.age-old { background: rgba(208,52,44,.13); color: #b12a23; font-weight: 600; }
.wchips { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.wchip { display: inline-flex; align-items: center; gap: 4px; }
.wchip .wd { font-size: 11px; padding: 0 5px; border-radius: 8px; }
.th-waiting .wchip { margin-right: 6px; }
.asg-edit { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.asg-edit .asg { display: inline-flex; align-items: center; gap: 4px; background: var(--bs-tertiary-bg); border-radius: 14px; padding: 2px 4px 2px 2px; font-size: 13px; }
.asg-edit .asg button { border: 0; background: none; color: var(--th-muted); padding: 0 4px; font-size: 15px; line-height: 1; }
.asg-edit .asg button:hover { color: var(--th-down); }
.asg-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.asg-pick label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bs-border-color); border-radius: 16px; padding: 3px 10px 3px 4px; cursor: pointer; font-size: 13.5px; }
.asg-pick input { display: none; }
.asg-pick label:has(input:checked) { border-color: var(--bs-primary); background: rgba(106,108,247,.1); }
