/* Gestore Tornei ASD #Chess4Life — stile dell'app.
   Impostazione grafica ripresa dal prototipo v2.1: sfondo bianco, schede
   bianche con ombra leggera, risultati verde/giallo/rosso, viola del marchio
   al posto dell'indaco, rosso del marchio per gli elementi grafici. */

:root {
  --red: #F11914;          /* rosso del marchio: elementi grafici */
  --red-text: #D4120D;     /* rosso per testo e pulsanti con testo (contrasto ≥ 4,5:1) */
  --purple: #5A1784;       /* viola del marchio */
  --purple-dark: #42105f;
  --purple-50: #f5eefa;
  --purple-100: #eadcf4;
  --bg: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --text: #1f2937;
  --green: #16a34a; --green-50: #f0fdf4; --green-100: #dcfce7; --green-200: #bbf7d0; --green-800: #166534;
  --yellow: #facc15; --yellow-50: #fefce8; --yellow-100: #fef9c3; --yellow-300: #fde047; --yellow-800: #854d0e; --yellow-900: #422006;
  --red-600: #dc2626; --red-50: #fef2f2; --red-100: #fee2e2; --red-800: #991b1b;
  --blue: #2563eb; --blue-100: #dbeafe; --blue-800: #1e40af;
  --orange: #ea580c;
  --shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px rgb(0 0 0 / 6%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 6%);
  --radius: 10px;
  --tap: 48px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--text); background: var(--bg); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--purple); }
.muted { color: var(--gray-500); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------- intestazione */
.app-header { padding-top: 16px; }
.header-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 16px; border-bottom: 4px solid var(--red);
}
.brand { flex: none; line-height: 0; }
.brand img { width: 120px; height: auto; display: block; }
.app-title { flex: 1 1 220px; margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.app-title .org { color: var(--purple); white-space: nowrap; }
.header-actions { display: flex; gap: 2px; flex: none; margin-left: auto; }
@media (max-width: 520px) {
  .app-title { order: 3; flex-basis: 100%; font-size: 1.15rem; }
}

.tour-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 12px 2px 0; }
.tour-bar:empty { display: none; }
.tour-bar .t-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.status { display: inline-block; padding: 4px 10px; border-radius: 6px; color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status.setup { background: var(--blue); }
.status.running { background: var(--green); }
.status.finished { background: var(--red-text); }

.icon-btn {
  min-width: 44px; min-height: 44px; border-radius: 8px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--gray-100); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------- sezioni */
.tabs { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--gray-200); margin-top: 12px; }
.tabs .wrap { display: flex; gap: 4px; padding-top: 6px; padding-bottom: 6px; overflow-x: auto; }
.tabs button {
  flex: 1 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: none;
  color: var(--gray-600); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tabs button svg { width: 20px; height: 20px; }
.tabs button:hover { background: var(--purple-50); }
.tabs button[aria-current="page"] { background: var(--purple); color: #fff; }
@media (max-width: 420px) { .tabs button { padding: 0 8px; font-size: .85rem; } .tabs button svg { display: none; } }

main { max-width: 1000px; margin: 0 auto; padding: 16px 16px 32px; outline: none; overflow-wrap: anywhere; }

.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
@media (max-width: 520px) { .card { padding: 16px; } }
.card-title { font-size: 1.25rem; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 180px; min-width: 0; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
hr.sep { border: 0; border-top: 1px solid var(--gray-200); margin: 20px 0; }

/* ------------------------------------------------------------- moduli */
label.field { display: block; }
label.field > span, .label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 4px; }
input[type="text"], input[type="number"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); padding: 8px 12px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--gray-300); border-radius: 8px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--purple) 45%, transparent); outline-offset: 2px;
}
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--purple); flex: none; }
details > summary { cursor: pointer; font-weight: 700; color: var(--purple); min-height: 44px; display: flex; align-items: center; }
.static-field { min-height: var(--tap); padding: 12px; border: 1px solid var(--gray-300); border-radius: 8px; background: var(--gray-50); color: var(--gray-500); font-size: .9rem; }

/* ------------------------------------------------------------- pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: var(--tap); padding: 0 18px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  box-shadow: var(--shadow-sm);
}
.btn svg, .chip svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-add { background: var(--green); color: #fff; }
.btn-add:hover { background: #15803d; }
.btn-secondary { background: #fff; color: var(--purple); border-color: var(--purple); }
.btn-secondary:hover { background: var(--purple-50); }
.btn-ghost { background: none; color: var(--purple); box-shadow: none; }
.btn-ghost:hover { background: var(--purple-50); }
.btn-danger { background: var(--red-text); color: #fff; }
.btn-danger:hover { background: #b00e0a; }
.btn-warn { background: var(--orange); color: #fff; }
.btn-finish { background: var(--yellow); color: var(--yellow-900); }
.btn-finish:hover { background: #eab308; }
.btn-block { width: 100%; }
.btn:disabled { background: var(--gray-300); color: var(--gray-500); border-color: transparent; cursor: not-allowed; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: .9rem; }

/* pulsanti degli spareggi, come nel prototipo */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; white-space: nowrap;
  border-radius: 8px; border: 0; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  background: var(--gray-100); color: var(--text);
}
.chip:hover { opacity: .85; }
.tb-BH { background: var(--blue-100); color: var(--blue-800); }
.tb-BH[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.tb-SB { background: var(--green-100); color: var(--green-800); }
.tb-SB[aria-pressed="true"] { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.tb-KOYA { background: var(--purple-100); color: var(--purple); }
.tb-KOYA[aria-pressed="true"] { background: var(--purple); color: #fff; box-shadow: var(--shadow); }
.tb-DE { background: var(--yellow-100); color: var(--yellow-800); }
.tb-DE[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-900); box-shadow: var(--shadow); }
.tb-BH-C1 { background: var(--gray-100); color: var(--gray-600); }
.tb-BH-C1[aria-pressed="true"] { background: var(--gray-600); color: #fff; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--purple-100); color: var(--purple); white-space: nowrap; }
.badge.ok { background: var(--green-100); color: var(--green-800); }
.badge.warn { background: var(--yellow-100); color: var(--yellow-800); }
.badge.red { background: var(--red-100); color: var(--red-800); }

/* ------------------------------------------------------------- avvisi */
.notice { border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid; font-size: .95rem; }
.notice.info { background: var(--purple-50); border-color: var(--purple-100); }
.notice.warn { background: var(--yellow-50); border-color: var(--yellow-300); }
.notice.error { background: var(--red-50); border-color: #fca5a5; }
.notice.done { background: var(--yellow-50); border-color: var(--yellow-300); text-align: center; }
.notice.done .big { font-size: 1.15rem; font-weight: 800; color: var(--yellow-800); }
.notice strong { display: block; margin-bottom: 2px; }

/* ------------------------------------------------------------- elenchi */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; margin-bottom: 8px; min-height: 52px; background: var(--gray-50); border-radius: 8px; }
.list .main { flex: 1; min-width: 0; }
.list .name { font-weight: 600; overflow-wrap: anywhere; }
.list .meta { font-size: .85rem; color: var(--gray-500); }
.list .elo { font-size: .8rem; color: var(--gray-500); font-weight: 400; }
.list .no { min-width: 1.8em; text-align: right; color: var(--gray-500); font-variant-numeric: tabular-nums; flex: none; }
.list .actions { display: flex; gap: 2px; flex: none; }
.list .li-extra { flex: 1 1 100%; padding-left: calc(1.8em + 10px); }
.inline-field { display: flex; align-items: center; gap: 10px; }
.inline-field > span { font-size: .85rem; font-weight: 600; color: var(--gray-500); white-space: nowrap; }
.inline-field select { min-height: 44px; padding: 6px 10px; max-width: 280px; }
.add-form { display: grid; gap: 8px; grid-template-columns: 1fr 6.5em auto; margin-bottom: 8px; }
@media (max-width: 520px) { .add-form { grid-template-columns: 1fr auto; } .add-form > :first-child { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 24px 12px; color: var(--gray-500); }
.empty .big { font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }

/* ------------------------------------------------------------- turni */
.round-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--purple-50); border-radius: 8px; padding: 6px; margin-bottom: 8px; }
.round-nav h2 { margin: 0; font-size: 1.25rem; color: var(--purple); text-align: center; }
.round-nav button { min-width: 48px; min-height: 48px; border: 0; border-radius: 8px; background: none; color: var(--purple); font-size: 1.5rem; font-weight: 800; cursor: pointer; }
.round-nav button:hover:not(:disabled) { background: var(--purple-100); }
.round-nav button:disabled { opacity: .25; cursor: default; }
.round-progress { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--gray-500); margin-bottom: 14px; }
.progress { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--purple); }

.match { background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; box-shadow: var(--shadow-sm); padding: 12px; }
.match-no { font-size: .72rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.sides > div { padding: 0 6px; min-width: 0; }
.sides > div:first-child { border-right: 1px solid var(--gray-100); }
.side-label { font-size: .72rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.side-name { font-weight: 700; overflow-wrap: anywhere; }
.side-info { font-size: .78rem; color: var(--gray-500); }
.side-bye { font-weight: 800; color: var(--green-800); }
.results { display: grid; grid-template-columns: 1fr 1fr 1fr 52px; gap: 6px; margin-top: 10px; }
.res {
  min-height: 52px; border-radius: 8px; border: 0; background: var(--gray-100); color: var(--text);
  font: inherit; font-size: 1.1rem; font-weight: 800; cursor: pointer;
}
.res:hover { background: var(--gray-200); }
.res[aria-pressed="true"][data-value="1-0"] { background: var(--green); color: #fff; }
.res[aria-pressed="true"][data-value="1/2-1/2"] { background: var(--yellow); color: var(--yellow-900); }
.res[aria-pressed="true"][data-value="0-1"] { background: var(--red-600); color: #fff; }
.res.more[aria-pressed="true"] { background: var(--orange); color: #fff; }
.res:disabled { cursor: default; }
.bye-result { margin-top: 10px; min-height: 52px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; padding: 6px 10px; flex-wrap: wrap; }
.bye-result.pab { background: var(--green-50); border: 1px solid var(--green-200); color: var(--green-800); }
.bye-result.req { background: var(--gray-50); border: 1px solid var(--gray-200); }
.bye-result.rest { background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-600); }
.bye-result select { width: auto; min-height: 44px; }

/* ------------------------------------------------------------- classifica */
.table-wrap { overflow-x: auto; }
table.standings { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.standings th, .standings td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.standings thead tr { background: var(--gray-100); border-bottom: 2px solid var(--gray-300); }
.standings th { font-size: .8rem; font-weight: 700; }
.standings th.l, .standings td.l { text-align: left; }
.standings td.pname { white-space: nowrap; }
.standings td.pos { font-weight: 700; }
.standings td.pts { font-weight: 800; background: var(--gray-50); }
.standings td.tb { color: var(--gray-600); }
.standings td.info { color: var(--gray-600); font-size: .85rem; white-space: nowrap; }
.standings .elo { display: block; font-size: .78rem; color: var(--gray-500); }
.standings tr.first td { background: var(--yellow-50); font-weight: 600; }
.standings tr.first td.pts { background: var(--yellow-100); }
.standings tr.out td { color: var(--gray-500); }
/* tutte le celle hanno uno sfondo, necessario per le colonne fisse su telefono */
.standings td { background: #fff; }
.standings thead th { background: var(--gray-100); }
.standings .elo { white-space: nowrap; }
.standings td.info.l { min-width: 8em; }
@media (max-width: 600px) {
  table.standings { font-size: .88rem; }
  .standings th, .standings td { padding: 8px 5px; }
  .standings th { font-size: .7rem; }

  /* posizione e nome restano visibili mentre si scorre verso destra */
  .standings th:nth-child(1), .standings td.pos { position: sticky; left: 0; z-index: 1; min-width: 2.6em; }
  .standings th:nth-child(2), .standings td.pname { position: sticky; left: 2.6em; z-index: 1; box-shadow: 1px 0 0 var(--gray-200); }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
}

/* ------------------------------------------------------------- dialoghi */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(520px, calc(100vw - 24px)); background: #fff; color: var(--text); box-shadow: 0 10px 40px rgb(0 0 0 / 30%); }
dialog::backdrop { background: rgb(17 24 39 / 55%); }
dialog form { padding: 20px; }
dialog h2 { margin-bottom: 12px; }
dialog .dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
dialog .menu-list { display: grid; gap: 8px; }
dialog .menu-list .btn { justify-content: flex-start; }

/* ------------------------------------------------------------- notifiche */
.toast-area { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: grid; gap: 8px; width: min(480px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgb(0 0 0 / 25%); pointer-events: none; display: flex; gap: 12px; align-items: center; white-space: pre-line; }
.toast.error { background: var(--red-text); }
.toast button { pointer-events: auto; margin-left: auto; background: none; border: 0; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; min-height: 36px; }

.busy { position: fixed; inset: 0; z-index: 60; background: rgb(17 24 39 / 35%); display: grid; place-items: center; }
.busy-box { background: #fff; padding: 18px 22px; border-radius: 12px; display: flex; gap: 12px; align-items: center; font-weight: 600; box-shadow: var(--shadow); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--purple-100); border-top-color: var(--purple); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.noscript { padding: 24px; text-align: center; }
.footer-note { text-align: center; font-size: .8rem; color: var(--gray-500); margin: 24px 0 8px; }

/* ------------------------------------------------------------- titoli
   FIDE: viola del marchio (più scuro = titolo più alto); femminili: fucsia;
   categorie FSI: blu. Testo con contrasto ≥ 4,5:1 su ogni sfondo. */
.tt { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; margin-right: 4px; white-space: nowrap; }
.tt-GM  { background: #2e0749; color: #fff; }
.tt-IM  { background: #5A1784; color: #fff; }
.tt-FM  { background: #8b5cb8; color: #fff; }
.tt-CM  { background: #ddc7f0; color: #3b0a5c; }
.tt-WGM { background: #70123d; color: #fff; }
.tt-WIM { background: #a3195b; color: #fff; }
.tt-WFM { background: #f5a3cd; color: #500724; }
.tt-WCM { background: #fde2f0; color: #831843; }
.tt-fsi-M  { background: #172f6e; color: #fff; }
.tt-fsi-CM { background: #1d4ed8; color: #fff; }
.tt-fsi-1N { background: #7cb3fb; color: #0b1d4d; }
.tt-fsi-2N { background: #bfdbfe; color: #0b1d4d; }
.tt-fsi-3N { background: #e0edff; color: #1e3a8a; }
.tt-fsi-NC { background: #eef2f6; color: #475569; }
.tt-other { background: var(--gray-200); color: var(--text); }

/* giocatori con FIDE ID: nome in blu FIDE, senza sottolineatura, apre il profilo */
a.fide-link { color: #0b57a8; text-decoration: none; }
a.fide-link:hover { color: #073e7a; }
.withdrawn-mark { color: var(--red-text); font-weight: 700; margin-left: 4px; }

/* ------------------------------------------------------------- scacchiere (due per riga su schermi larghi) */
.boards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .boards { grid-template-columns: 1fr 1fr; } }
.board { background: #fff; border: 1px solid var(--gray-200); border-left: 5px solid var(--red); border-radius: 10px; padding: 12px; box-shadow: var(--shadow-sm); }
.board.done { border-left-color: var(--purple); }
.board.other { border-left-color: var(--gray-300); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .74rem; color: var(--gray-500); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.side { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.side .piece { width: 16px; height: 16px; border-radius: 4px; border: 2px solid #222; flex: none; }
.side .piece.w { background: #fff; }
.side .piece.b { background: #222; }
.side .piece.none { border-style: dashed; border-color: var(--gray-300); }
.side .pname { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.side .pname.muted { font-weight: 700; color: var(--gray-500); }
.side .pelo { font-variant-numeric: tabular-nums; color: var(--gray-500); font-size: .78rem; min-width: 2.6em; text-align: right; }
.side .pscore { font-variant-numeric: tabular-nums; color: var(--text); font-size: .9rem; font-weight: 600; min-width: 1.8em; text-align: right; }
.side .pres { width: 2.4em; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* sesso: ♂ blu, ♀ rosa acceso */
.standings td.sexcol { text-align: center; }
svg.sex { width: 20px; height: 20px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.sex-m { stroke: #1d4ed8; }
svg.sex-f { stroke: #ff1493; }

/* tabellone sullo schermo (stessa tabella della stampa) */
.crosstable-screen .p-table { font-size: .85rem; }
.crosstable-screen .p-table td, .crosstable-screen .p-table th { padding: 6px 6px; }
.crosstable-screen .p-legend { margin: 8px 0 0; }
.table-wrap table { overflow-wrap: normal; }
.crosstable-screen .p-table td, .crosstable-screen .p-table th { white-space: nowrap; }
.crosstable-screen .p-table td { background: #fff; }
.crosstable-screen .p-table tbody tr:nth-child(even) td { background: #faf8fc; }
.crosstable-screen .p-table td.diag { background: #444 !important; }
@media (max-width: 600px) {
  /* posizione e nome fissi mentre si scorre il tabellone */
  .crosstable-screen .p-table th:nth-child(1), .crosstable-screen .p-table td:nth-child(1) { position: sticky; left: 0; z-index: 1; min-width: 2.4em; }
  .crosstable-screen .p-table th:nth-child(1) { background: #f0eaf5; }
}
