/*
  Calibro, l'app: WinForms su Windows 11. Fondo form #F0F0F0, Segoe UI 9 pt, griglie bianche,
  SALVA verde chiaro, REPORT azzurro ActiveCaption, ELIMINA rosso. Tutto è disegnato in px fissi e scalato.
*/
.desk, .desk * { box-sizing: border-box; }
.desk {
  --wf-font: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  position: absolute; inset: 0; overflow: hidden; font-family: var(--wf-font); font-size: 12px; color: #000; line-height: 1.25;
  background: radial-gradient(120% 90% at 85% 10%, #dfe7ee 0%, transparent 55%), linear-gradient(160deg, #c9d6e2 0%, #9fb4c8 45%, #6f8aa6 100%);
}
/* Curve grigie come lo sfondo del login di Calibro */
.desk::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 110% at 100% 40%, rgba(255, 255, 255, .22) 0 58%, transparent 58.3%),
  radial-gradient(ellipse 85% 130% at 108% 45%, rgba(255, 255, 255, .14) 0 60%, transparent 60.3%); pointer-events: none; }
.desk-logo { position: absolute; left: 22px; top: 18px; width: 150px; opacity: .35; filter: grayscale(1) brightness(2); }

/* Barra delle applicazioni di Windows 11 */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #e9eef3; border-top: 1px solid rgba(255, 255, 255, .6); }
.tb-app { position: relative; width: 38px; height: 38px; border-radius: 5px; display: grid; place-items: center; border: 0; background: transparent; padding: 0; }
.tb-app:hover { background: rgba(255, 255, 255, .7); }
.tb-app img, .tb-app .wf-ico { width: 24px; height: 24px; }
.tb-app.is-running::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 6px; height: 3px; margin-left: -3px; border-radius: 2px; background: #8a96a3; }
.tb-app.is-front::after { width: 16px; margin-left: -8px; background: #0067c0; }
.tb-app .tb-logo { width: 22px; height: 22px; }
.tb-search { display: flex; align-items: center; gap: 8px; width: 190px; height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(255, 255, 255, .85); color: #5d6670; font-size: 12px; margin: 0 6px; }
.tb-search::before { content: ""; width: 10px; height: 10px; border: 1.8px solid #5d6670; border-radius: 50%; }
.tb-clock { position: absolute; right: 14px; text-align: right; font-size: 11px; line-height: 1.35; color: #1b1b1b; }

/* Finestra */
.wf-win { position: absolute; isolation: isolate; display: flex; flex-direction: column; background: #f0f0f0; border: 1px solid #7a8a99; border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(16, 32, 52, .35), 0 2px 6px rgba(16, 32, 52, .2); }
.wf-win.is-inactive { box-shadow: 0 8px 22px rgba(16, 32, 52, .22); border-color: #a3afba; }
.wf-win.is-inactive .wf-title { color: #7a7a7a; }
.wf-title { flex: 0 0 31px; display: flex; align-items: center; gap: 8px; padding-left: 10px; background: #fff; font-size: 12px; user-select: none; }
.wf-tico { width: 16px; height: 16px; flex: none; }
.wf-ttext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-tbtn { position: relative; flex: 0 0 44px; height: 31px; border: 0; background: transparent; padding: 0; }
.wf-tbtn::before, .wf-tbtn::after { content: ""; position: absolute; left: 50%; top: 50%; }
.g-min::before { width: 10px; height: 1px; margin: 0 0 0 -5px; background: #222; }
.g-max::before { width: 9px; height: 9px; margin: -5px 0 0 -5px; border: 1px solid #222; border-radius: 1.5px; }
.g-x::before, .g-x::after { width: 13px; height: 1.2px; margin: 0 0 0 -6.5px; background: #222; transform: rotate(45deg); }
.g-x::after { transform: rotate(-45deg); }
button.wf-close:hover { background: #c42b1c; }
button.wf-close:hover::before, button.wf-close:hover::after { background: #fff; }
.wf-body { position: relative; flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.wf-body > .wf-menu { flex: none; }
.wf-pad { padding: 12px 16px 14px; flex: 1 0 auto; min-height: 0; display: flex; flex-direction: column; gap: 9px; }
.wf-h1 { font-size: 22px; font-weight: 400; letter-spacing: .01em; color: #000; line-height: 1.2; }
.wf-menu { display: flex; gap: 2px; padding: 2px 4px; background: #f8f8f8; border-bottom: 1px solid #e3e3e3; font-size: 12px; }
.wf-menu span { padding: 2px 8px; }

/* Controlli */
.wf-row { display: grid; grid-template-columns: 228px auto; align-items: center; gap: 8px; min-height: 24px; }
.wf-lbl { font-size: 12px; color: #000; text-transform: uppercase; }
.wf-lbl2 { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.wf-in { display: inline-block; width: 210px; height: 23px; padding: 2px 5px; border: 1px solid #7a7a7a; background: #fff; font: inherit; color: #000; border-radius: 0; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; }
.wf-in[readonly] { cursor: default; }
input.wf-in:not([readonly]):focus, textarea.wf-in:focus, select.wf-in:focus { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }
.wf-in.wf-wide { width: 360px; }
.wf-in.wf-short { width: 96px; }
.wf-combo { position: relative; padding-right: 22px; background: #fff; }
span.wf-combo::after { content: ""; position: absolute; right: 7px; top: 8px; width: 6px; height: 6px; border-right: 1.5px solid #333; border-bottom: 1.5px solid #333; transform: rotate(45deg); }
select.wf-combo { padding: 0 2px; appearance: auto; }
.wf-combo.is-locked { background: #f0f0f0; color: #555; }
.wf-area { width: 100%; height: 50px; white-space: normal; resize: none; line-height: 1.35; overflow: auto; }
.wf-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: default; white-space: nowrap; }
.wf-check input { width: 13px; height: 13px; margin: 0; accent-color: #0078d7; }
.wf-box { display: inline-block; width: 13px; height: 13px; border: 1px solid #333; background: #fff; position: relative; flex: none; vertical-align: middle; }
.wf-box.is-on { background: #0078d7; border-color: #0078d7; }
.wf-box.is-on::after { content: ""; position: absolute; left: 3.5px; top: .5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.wf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 75px; height: 26px; padding: 0 12px; border: 1px solid #adadad; background: #e1e1e1; font: inherit; font-size: 12px; color: #000; border-radius: 0; cursor: default; white-space: nowrap; }
.wf-btn:hover:not(:disabled) { background: #e5f1fb; border-color: #0078d7; }
.wf-btn:disabled { color: #8d8d8d; background: #ececec; border-color: #c8c8c8; opacity: 1; }
.wf-btn .wf-ico { width: 15px; height: 15px; }
.wf-btn-big { height: 30px; font-weight: 600; padding: 0 16px; }
.wf-btn.wf-small { min-width: 70px; height: 21px; font-size: 11px; padding: 0 8px; }
.wf-btn.is-pressed { background: #cce4f7; border-color: #005499; }
.wf-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 4px; }
.wf-actions .wf-btn { min-width: 108px; height: 34px; font-weight: 600; }
.wf-green { background: #90ee90; }
.wf-green:hover:not(:disabled) { background: #a8f5a8; }
.wf-blue { background: #99b4d1; }
.wf-blue:hover:not(:disabled) { background: #adc6e0; }
.wf-red { background: #ff0000; color: #fff; border-color: #b00; }
.wf-red:disabled { background: #f1a3a3; color: #fff; border-color: #e08b8b; }
.wf-help { min-width: 34px !important; width: 34px; padding: 0; }
.wf-group { margin: 0; padding: 8px 12px 10px; border: 1px solid #d5d5d5; border-radius: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wf-group > legend { padding: 0 4px; font-size: 12px; }
.wf-error { padding: 6px 10px; background: #fde7e9; border: 1px solid #e81123; color: #a4000f; font-size: 12px; }
.wf-ico { width: 18px; height: 18px; flex: none; }

/* Evidenziazioni delle scene */
.is-hl { animation: wf-hl 1.6s ease-in-out infinite; }
@keyframes wf-hl { 0%, 100% { box-shadow: 0 0 0 2px rgba(0, 106, 179, .9); } 50% { box-shadow: 0 0 0 5px rgba(0, 106, 179, .25); } }
.is-pulse { animation: wf-hl 1.6s ease-in-out infinite; }

/* Griglie */
.wf-gridwrap { flex: 1; min-height: 60px; overflow: auto; background: #fff; border: 1px solid #a0a0a0; }
.wf-grid { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 12px; }
.wf-grid th { position: sticky; top: 0; z-index: 1; padding: 4px 6px; background: #f0f0f0; border-right: 1px solid #d5d5d5; border-bottom: 1px solid #a0a0a0; font-weight: 700; text-align: left; white-space: nowrap; }
.wf-grid td { padding: 3px 6px; border-right: 1px solid #e4e4e4; border-bottom: 1px solid #e4e4e4; white-space: nowrap; height: 24px; }
.wf-grid tbody tr[data-act] { cursor: default; }
.wf-grid tbody tr[data-act]:hover td { background: #e6f0ff; }
.wf-grid tr.is-sel td { background: #cce4f7; }
.wf-grid tr.is-empty td { color: #777; font-style: italic; }
.wf-grid tr.is-flash td { animation: row-flash 2.2s ease-out both; }
@keyframes row-flash { 0%, 30% { background: #fff4b8; } 100% { background: transparent; } }
.wf-grid tr.is-new td { animation: row-new .7s ease-out both; }
@keyframes row-new { from { opacity: 0; transform: translateY(-6px); } }
.c-center { text-align: center; }
.c-id { color: #555; text-align: right; }
.c-ok { background: #90ee90 !important; }
.c-ko { background: #f08080 !important; }
.c-vuoto { background: #ffffe0 !important; }
.c-none { background: #fff; }
td.is-active { outline: 2px solid #0078d7; outline-offset: -2px; }
td.is-typing { animation: cell-type .5s ease-out; }
@keyframes cell-type { from { background: #fff8c5; } }
.wf-cell { width: 100%; min-width: 46px; border: 0; background: transparent; font: inherit; padding: 0; outline: none; }
.wf-trash, .wf-trash-ico { color: #444; }
.wf-trash { border: 0; background: transparent; padding: 0; display: grid; place-items: center; width: 100%; }
.wf-trash .wf-ico, .wf-trash-ico { width: 15px; height: 15px; }
.mis-grid.is-closed { background: #f5f5f5; }
.mis-grid.is-closed td { color: #333; }

/* Dashboard */
.dash { display: flex; flex-direction: column; height: 100%; background: #fff; }
.dash-top { flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #e3e3e3; }
.dash-logo { width: 200px; height: auto; }
.dash-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dash-user .wf-in { width: 180px; height: 26px; font-size: 13px; }
.dash-main { flex: 1; min-height: 0; display: flex; }
.dash-side { flex: 0 0 420px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 92px; gap: 10px; padding: 16px; background: #f0f0f0; align-content: start; }
.dash.is-master .dash-side { flex-basis: 260px; grid-template-columns: 1fr; }
.dash-btn { display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #adadad; background: #e1e1e1; font: inherit; font-size: 16px; font-weight: 700; color: #000; text-align: left; cursor: default; }
.dash-btn .wf-ico { width: 30px; height: 30px; color: #696969; }
.dash-btn:hover:not(:disabled) { background: #e5f1fb; border-color: #0078d7; }
.dash-btn:disabled { color: #a0a0a0; opacity: 1; }
.dash-btn:disabled .wf-ico { color: #c4c4c4; }
.dash-btn.is-hot { background: #cce4f7; border-color: #005499; box-shadow: 0 0 0 3px rgba(0, 106, 179, .35); }
.dash-widgets { flex: 1; display: grid; grid-template-columns: repeat(2, 230px); grid-auto-rows: 132px; gap: 18px; padding: 22px; align-content: start; background: #f6f7f9; }
.dash-widget { position: relative; padding: 14px 16px; background: #fff; border: 1px solid #e0e0e0; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.dash-widget b { display: block; font-size: 16px; }
.dash-num { display: block; margin-top: 10px; font-size: 34px; font-weight: 400; }
.dash-widget .wf-ico { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; color: #000; }

/* Liste */
.lo-bar { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.lo-filter { width: 190px; }
.lo-stato { width: 140px; }
.lo-spacer { flex: 1; }
.lo-grid { min-height: 120px; }

/* Ordine */
.ord-group .wf-area { width: 360px; height: 46px; }
.ord-trace { padding: 7px 10px; background: #e8f2fb; border: 1px solid #9cc3e6; color: #0b3b66; font-size: 12px; }
.ord-trace b { color: #006ab3; }

/* Misure */
.mis-head { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 18px; }
.mis-head .wf-row { grid-template-columns: auto auto; }
.mis-head.is-master { grid-template-columns: auto auto; }
.mis-prod { justify-self: end; color: #555; font-size: 12px; }
.mis-tools { display: flex; align-items: center; gap: 14px; }
.mis-legend { display: inline-flex; align-items: center; gap: 6px; color: #444; font-size: 11px; margin-left: auto; }
.mis-legend i { width: 12px; height: 12px; border: 1px solid #999; margin-left: 8px; }
.mis-legend .v-tutte { background: #90ee90; } .mis-legend .v-parziale { background: #ffffe0; } .mis-legend .v-nessuna { background: #f08080; }
.mis-grid { min-height: 110px; }
.mis-grid td:not(.c-id):not(:nth-last-child(-n+3)) { text-align: right; font-variant-numeric: tabular-nums; }
.mis-grid.is-wide th { white-space: normal; min-width: 64px; line-height: 1.15; vertical-align: bottom; }
.mis-foot { display: flex; align-items: flex-end; gap: 16px; }
.mis-foot .wf-actions { margin-top: 0; }
.mis-comment { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mis-comment .wf-area { height: 46px; }
.mis-comment.is-needed .wf-lbl { color: #d00; font-weight: 700; }
.mis-comment.is-needed .wf-area { background: #f08080; }
.mis-comment.is-closed .wf-lbl { color: #8b0000; font-weight: 700; }

/* Anagrafiche */
.ana { flex-direction: row; align-items: center; justify-content: center; gap: 22px; }
.ana-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 170px; height: 150px; border: 1px solid #adadad; background: #e1e1e1; font: inherit; font-size: 15px; font-weight: 700; cursor: default; }
.ana-btn:hover { background: #e5f1fb; border-color: #0078d7; }
.ana-btn .wf-ico { width: 42px; height: 42px; color: #696969; }
.pr { background: #ebf0f5; }
.pr.is-master { background: #f0f0f0; }
.pr-head { display: flex; flex-direction: column; gap: 5px; }
.pr-head .wf-check { margin-left: 236px; }
.pr-tabs { display: flex; gap: 4px; }
.pr-tab { min-width: 140px; height: 32px; border: 0; background: #d0d8e0; color: #2c3e50; font: inherit; font-weight: 700; font-size: 12px; cursor: default; }
.pr-tab.is-on { background: #2980b9; color: #fff; }
.pr-tab:disabled { opacity: .45; }
.pr-panel { flex: 1; min-height: 0; overflow: auto; background: #fff; padding: 8px 12px; border: 1px solid #d0d8e0; }
.pr-ranges { display: flex; flex-direction: column; gap: 3px; }
.pr-rh, .pr-r { display: grid; grid-template-columns: 1fr 88px 88px; align-items: center; gap: 8px; }
.pr-rh b { font-size: 11px; text-align: center; color: #2c3e50; }
.pr-r .wf-in { width: 88px; text-align: right; height: 21px; }
.pr-r > span { font-size: 12px; }
.pr-r.is-hl { border-radius: 2px; }
.pr-todo { padding: 30px; text-align: center; color: #6b7a89; font-style: italic; }
.pr-save { background: #2ecc71; color: #fff; border-color: #25a85c; }
.pr-del { background: #e74c3c; color: #fff; border-color: #c0392b; }
.pr-group .pr-ranges { max-width: 520px; }

/* Incoming */
.inc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inc-cols .wf-row { grid-template-columns: 178px auto; }
.inc-cols .wf-in { width: 190px; }
.inc-arts { flex: 1; min-height: 0; }
.inc-tools { display: flex; align-items: center; gap: 12px; }
.inc-grid { min-height: 70px; }
.wf-grid tr.v-tutte td { background: #90ee90; }
.wf-grid tr.v-parziale td { background: #ffffe0; }
.wf-grid tr.v-nessuna td { background: #f08080; }
.wf-grid tr.is-void td { background: #f08080; color: #5a1010; }
.inc.is-closed .wf-in { background: #f5f5f5; }
.art .wf-row { grid-template-columns: 128px auto; }
.art-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.art-cols .wf-in.wf-wide { width: 250px; }
.art-grid td { white-space: normal; vertical-align: middle; }
.art-grid td b { font-weight: 600; }
.art-grid .wf-in { width: 100%; }
.art-risp { display: flex; flex-direction: column; gap: 3px; }
.art-camp { display: flex; gap: 4px; }
.art-camp .wf-in { width: 92px !important; }
.art-grid tr.is-hl td:first-child { box-shadow: inset 4px 0 0 #006ab3; }
.art-grid tr.is-hl td { animation: art-hl .9s ease-out; }
@keyframes art-hl { from { background: #cfe6fb; } }
.art-save { background: #80ff80; min-width: 120px !important; }

/* Excel */
.xl { display: flex; flex-direction: column; height: 100%; background: #fff; font-size: 11.5px; }
.xl-ribbon { flex: 0 0 30px; display: flex; align-items: flex-end; gap: 2px; padding: 0 10px; background: #f3f3f3; border-bottom: 1px solid #d6d6d6; }
.xl-tab { padding: 5px 10px; color: #333; }
.xl-tab.is-on { color: #107c41; font-weight: 600; box-shadow: inset 0 -2px 0 #107c41; }
.xl-fx { flex: 0 0 26px; display: flex; align-items: center; gap: 10px; padding: 0 8px; border-bottom: 1px solid #d6d6d6; color: #444; }
.xl-fx span { width: 60px; padding-right: 8px; border-right: 1px solid #d6d6d6; }
.xl-fx i { color: #888; font-style: italic; }
.xl-fx b { font-weight: 400; }
.xl-sheet { flex: 1; min-height: 0; overflow: auto; background: #fff; }
.xl-cols { position: sticky; top: 0; z-index: 2; display: flex; background: #f3f3f3; border-bottom: 1px solid #d6d6d6; }
.xl-cols i { flex: 0 0 34px; border-right: 1px solid #d6d6d6; }
.xl-cols span { flex: 0 0 78px; text-align: center; padding: 2px 0; color: #555; border-right: 1px solid #e1e1e1; font-size: 11px; }
.xl-page { padding: 12px 14px 18px 46px; background-image: linear-gradient(#ececec 1px, transparent 1px); background-size: 100% 21px; }
.xl-head { display: flex; align-items: center; gap: 16px; padding: 8px 10px; border: 1.5px solid #1f3a5f; background: #fff; }
.xl-head img { width: 150px; height: auto; }
.xl-head b { flex: 1; text-align: center; font-size: 14px; letter-spacing: .02em; }
.xl-head span { color: #555; }
.xl-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 8px; border: 1px solid #b7c3cf; background: #fff; }
.xl-kv span { display: flex; gap: 8px; padding: 3px 8px; border-bottom: 1px solid #e3e8ee; min-height: 21px; }
.xl-kv b { flex: none; min-width: 150px; color: #1f3a5f; font-weight: 600; }
.xl-sub { margin-top: 10px; padding: 3px 8px; background: #1f3a5f; color: #fff; font-weight: 700; letter-spacing: .04em; }
.xl-t { border-collapse: collapse; background: #fff; margin-top: 0; }
.xl-t th { padding: 4px 6px; border: 1px solid #b7c3cf; background: #dce6f1; font-weight: 600; font-size: 10.5px; white-space: normal; line-height: 1.15; min-width: 62px; vertical-align: bottom; }
.xl-t td { padding: 3px 6px; border: 1px solid #c8d1db; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xl-t td:first-child { text-align: left; }
.x-ok { background: #c6efce; color: #006100; }
.x-ko { background: #ffc7ce; color: #9c0006; }
.x-warn { background: #ffeb9c; color: #9c5700; }
.x-note { position: relative; }
.x-note::after { content: ""; position: absolute; right: 0; top: 0; border: 4px solid transparent; border-top-color: #d10000; border-right-color: #d10000; }
.xl-cap { margin-top: 10px; }
.xl-hint { margin-top: 8px; color: #555; font-size: 11px; }
.xl-tabs { flex: 0 0 26px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #f3f3f3; border-top: 1px solid #d6d6d6; }
.xl-tabs span { padding: 3px 12px; background: #fff; color: #107c41; font-weight: 600; border-bottom: 2px solid #107c41; }
.xl-tabs i { color: #666; font-style: normal; }
.xl-tabs em { margin-left: auto; color: #555; font-style: normal; }
.wf-win.is-excel .wf-title { background: #107c41; color: #fff; }
.wf-win.is-excel .g-min::before, .wf-win.is-excel .g-x::before, .wf-win.is-excel .g-x::after { background: #fff; }
.wf-win.is-excel .g-max::before { border-color: #fff; }

/* Esplora file */
.ex { display: flex; flex-direction: column; height: 100%; background: #fff; }
.ex-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #e3e3e3; background: #f7f9fb; }
.ex-arrows { color: #888; font-size: 13px; }
.ex-path { flex: 1; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; }
.ex-path .wf-ico { width: 16px; height: 16px; }
.ex-search { width: 210px; padding: 4px 8px; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; color: #777; }
.ex-main { flex: 1; min-height: 0; display: flex; }
.ex-nav { flex: 0 0 180px; display: flex; flex-direction: column; gap: 1px; padding: 8px 6px; border-right: 1px solid #ececec; overflow: auto; }
.ex-nav span { display: flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 4px; color: #333; }
.ex-nav span.is-on { background: #e0eefb; }
.ex-nav .wf-ico { width: 16px; height: 16px; }
.ex-list { flex: 1; min-width: 0; overflow: auto; padding: 4px 8px; }
.ex-h, .ex-r { display: grid; grid-template-columns: 20px minmax(0, 1fr) 118px 196px 62px; align-items: center; gap: 8px; padding: 4px 6px; }
.ex-h { grid-template-columns: minmax(0, 1fr) 118px 196px 62px; padding-left: 34px; color: #555; border-bottom: 1px solid #eee; }
.ex-r { width: 100%; border: 1px solid transparent; background: transparent; font: inherit; text-align: left; border-radius: 3px; cursor: default; }
.ex-r:hover { background: #e5f3ff; border-color: #cce8ff; }
.ex-r.is-new { background: #cce8ff; border-color: #99d1ff; }
.ex-r .wf-ico { width: 18px; height: 18px; }
.ex-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-r span:not(.ex-name) { color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-status { flex: none; padding: 3px 10px; border-top: 1px solid #ececec; color: #555; font-size: 11px; }

/* Menu Start di Windows 11 */
.pc-start { position: absolute; z-index: 70; left: 50%; bottom: 52px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2, .7, .2, 1); }
.pc-start.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sm { width: 560px; padding: 22px 26px 0; border-radius: 10px; background: #f3f6f9; border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 24px 60px rgba(16, 32, 52, .35); }
.sm-search { padding: 8px 14px; border-radius: 18px; background: #fff; border: 1px solid #dfe3e7; color: #6b7280; font-size: 12px; }
.sm-h { margin: 18px 6px 8px; font-size: 13px; }
.sm-pins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sm-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 11.5px; cursor: default; }
.sm-app:hover, .sm-file:hover { background: rgba(255, 255, 255, .85); }
.sm-app img, .sm-app .wf-ico { width: 32px; height: 32px; }
.sm-recent { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sm-file { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 6px; background: transparent; font: inherit; text-align: left; cursor: default; min-width: 0; }
.sm-file .wf-ico { width: 26px; height: 26px; }
.sm-file span { display: flex; flex-direction: column; min-width: 0; }
.sm-file b { font-weight: 400; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-file small { color: #6b7280; font-size: 10.5px; }
.sm-foot { display: flex; align-items: center; justify-content: space-between; margin: 18px -26px 0; padding: 12px 34px; border-top: 1px solid #e3e6ea; background: rgba(233, 237, 241, .9); border-radius: 0 0 10px 10px; }
.sm-user { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.sm-user i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #006ab3; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.sm-power { font-size: 16px; color: #333; }
/* Finestra di messaggio */
.wf-msg { position: absolute; z-index: 40; left: 50%; top: 50%; width: 400px; transform: translate(-50%, -50%); background: #fff; border: 1px solid #7a8a99; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(16, 32, 52, .45); animation: msg-in .25s ease-out both; }
@keyframes msg-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.wf-msg-title { display: flex; align-items: center; height: 31px; padding-left: 12px; font-size: 12px; }
.wf-msg-title span:first-child { flex: 1; }
.wf-msg-body { display: flex; gap: 14px; padding: 14px 18px 18px; font-size: 12px; line-height: 1.45; }
.wf-msg-ico { width: 32px; height: 32px; }
.wf-msg-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }
.wf-msg-btns .wf-btn.is-default { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }

/* Calibro digitale */
.cal { position: relative; width: 640px; }
.cal-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cal-slider { transform: translateX(var(--shift, 120px)); transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.cal-lcd { font: 700 26px/1 "Consolas", "SFMono-Regular", "Menlo", monospace; fill: #1d2618; letter-spacing: .02em; }
.cal-waves path { opacity: 0; }
.cal.is-sending .cal-waves path { animation: cal-wave .9s ease-out both; }
.cal.is-sending .cal-waves path:nth-child(2) { animation-delay: .12s; }
.cal.is-sending .cal-waves path:nth-child(3) { animation-delay: .24s; }
@keyframes cal-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.cal.is-sending .cal-send { animation: cal-press .35s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes cal-press { 50% { transform: scale(.82); } }
.cal-btn { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: #d42020; color: #fff; font: 600 13px var(--wf-font, sans-serif); box-shadow: 0 8px 20px rgba(212, 32, 32, .35); cursor: pointer; }
.cal-btn:hover { background: #b51818; }
.cal-btn .wf-ico { width: 18px; height: 18px; }

/* =========================================================================
   Prototipo: finestre, calibro sulla scrivania, messaggi e avvisi
   ========================================================================= */
.pc-wins { position: absolute; left: 0; top: 0; right: 0; bottom: 44px; }
.pc-tb .taskbar { z-index: 60; }

/* Calibro sulla scrivania accanto al monitor: ogni 6 secondi fa un saltello per invitare a premere il tasto */
.pc-cal-dev { width: 330px; height: 119px; filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .45)); animation: cal-hop 6s ease-in-out 2s infinite; transform-origin: 30% 100%; }
.pm-cal:hover .pc-cal-dev, .pm-cal:hover .pc-cal-btn { animation-play-state: paused; }
@keyframes cal-hop { 0%, 82%, 100% { transform: none; } 86% { transform: translateY(-22px) rotate(-4deg); } 90% { transform: translateY(0) rotate(0); } 93% { transform: translateY(-9px) rotate(-1.5deg); } 96% { transform: none; } }
.pc-cal-btn { animation: btn-pulse 6s ease-in-out 2s infinite; }
@keyframes btn-pulse { 0%, 82%, 100% { box-shadow: 0 8px 20px rgba(212, 32, 32, .4); } 88% { box-shadow: 0 8px 20px rgba(212, 32, 32, .4), 0 0 0 10px rgba(255, 90, 90, .35); } }
.pc-cal-dev .cal { width: 640px; transform: scale(.515); transform-origin: 0 0; }
.pc-cal-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 12px; border: 0; border-radius: 999px; background: #d42020; color: #fff; font: 650 17px "Segoe UI", system-ui, sans-serif; box-shadow: 0 8px 20px rgba(212, 32, 32, .4); cursor: pointer; }
.pc-cal-btn:hover { background: #b51818; }
.pc-cal-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pc-cal-dot { width: 14px; height: 14px; border-radius: 50%; background: #ff5a5a; box-shadow: inset 0 0 0 3px #8f1010; }
.pc-cal-tip { max-width: 300px; text-align: center; color: rgba(255, 255, 255, .75); font: 500 14px "Segoe UI", system-ui, sans-serif; }
.pc-modal { position: absolute; inset: 0; z-index: 80; display: none; }
.pc-modal.is-on { display: block; }
.pc-veil { position: absolute; inset: 0; background: rgba(20, 30, 40, .12); }
.pc-toast { position: absolute; z-index: 90; left: 50%; bottom: 58px; max-width: 640px; padding: 9px 16px; border-radius: 8px; background: rgba(11, 42, 69, .92); color: #fff; font-size: 13px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.pc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.wf-grid tbody tr[data-act]:focus-visible td { outline: 2px solid #0078d7; outline-offset: -2px; }
.desk .wf-btn:focus-visible, .desk .dash-btn:focus-visible, .desk .ana-btn:focus-visible, .desk .pr-tab:focus-visible { outline: 2px solid #000; outline-offset: -4px; }
