/* Scheda hotel (EditHotel): barra di salvataggio e spaziatura della pagina.
 * Le regole del vecchio workspace a macroaree (.jo-ws) sono state tolte:
 * la scheda ora è ad accordion (form-standard.css). */
/* "Salva scheda hotel" / "Annulla" agganciati al fondo del viewport
 * (EditHotel): la scheda è lunga e i bottoni restano sempre a portata.
 * Sticky CSS puro e non il flag nativo $formActionsAreSticky, la cui
 * euristica JS su scrollY non si attivava al primo caricamento. Solo i
 * pulsanti, senza barra (form-standard.css, owner 22-ott-2026). */
.fi-resource-edit-record-page.fi-resource-hotels .fi-form-actions {
    position: sticky;
    bottom: 16px;
    z-index: 20;
}

/* Il grid della pagina distanzia i blocchi di 2rem e spingeva giù la barra. */
.fi-resource-edit-record-page.fi-resource-hotels .grid.flex-1.auto-cols-fr {
    row-gap: 0.25rem;
}

/* Gestionale: «Gestionale collegato» e le chiavi del gestionale push a metà riga
 * dal tablet in su, intere sul telefono. La tab Gestionale (sheetTabs) mette ogni
 * campo sciolto in un gruppo a riga intera: la metà la dà la classe (PmsTab). */
@media (min-width: 768px) {
    .fi-resource-hotels .jo-pms-half {
        max-width: 50%;
    }
}

/* Il testo della descrizione. */
.jo-room-text {
    margin: 0;
    color: var(--ds-text-primary);
    font-size: 13.5px;
    line-height: 1.55;
}

/* La riga tratteggiata col «+» (descrizione vuota); senza «+» non si apre. */
.jo-room-add {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 1px dashed var(--ds-divider-dashed);
    border-radius: 10px;
    background: none;
    color: var(--ds-text-tertiary);
    font-size: 12.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.jo-room-add svg,
.jo-room-add-ic {
    flex: none;
    width: 14px;
    height: 14px;
}

.jo-room-add:not(.is-static):hover {
    border-color: var(--ds-accent);
    color: var(--ds-text-link);
}

.jo-room-add.is-static {
    cursor: default;
}

/* Scheda hotel ▸ Camera nello scheletro (owner 13-nov-2026): nell'Anteprima le foto come le
 * vede l'ospite, la copertina grande a tutta larghezza e le altre in una griglia sotto;
 * sotto ancora, aperte dal pallino «Foto» o con la galleria vuota, libreria e caricamento. */
/* La descrizione per l'ospite: il nome sopra, il testo intero sotto a tutta riga. */
html body .fi-page .jo-sc-tile:not(.is-editing) .fi-fo-field-wrp:has(.jo-room-desc) > .grid { display: block !important; }
html body .fi-page .jo-sc-tile .jo-room-desc { margin-top: 6px; overflow: visible !important; text-align: left !important; white-space: normal !important; }
html body .fi-page .jo-sc-tile .jo-room-desc .jo-room-add { white-space: normal; }
html body .jo-sk-panel .jo-room-photos-note { color: var(--ds-text-tertiary); font-size: 12.5px; }
html body .jo-sk-panel .jo-room-photos > ul > div {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
}
html body .jo-sk-panel .jo-room-photos .fi-fo-repeater-item { width: auto; }
html body .jo-sk-panel .jo-room-photos .jo-room-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; }
html body .jo-sk-panel .jo-room-photos .fi-fo-repeater-item:has(.jo-room-cover) { grid-column: 1 / -1; }
html body .jo-sk-panel .jo-room-photos .fi-fo-repeater-item:has(.jo-room-cover) .jo-room-thumb { aspect-ratio: 2 / 1; border-radius: 12px; }
html body .jo-sk-panel .jo-room-addph { display: flex; flex-direction: column; gap: 8px; }
html body .jo-sk-panel .jo-room-addph > .fi-fo-component-ctn,
html body .jo-sk-panel .jo-room-addph > div { gap: 8px !important; }

/* Le foto: miniature 120×90, la copertina in basso a sinistra, trascina · stella · cestino in alto a destra. */
html body .jo-room-photos > ul > div {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
}

html body .jo-room-photos .fi-fo-repeater-item {
    position: relative;
    width: 120px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    --tw-ring-shadow: 0 0 #0000;
}

html body .jo-room-photos .fi-fo-repeater-item-header {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    gap: 2px;
    padding: 1px 2px;
    border: 0;
    border-radius: 6px;
    background: var(--ds-surface);
}

html body .jo-room-photos .fi-fo-repeater-item-header ul {
    gap: 2px;
}

html body .jo-room-photos .fi-fo-repeater-item-content {
    padding: 0;
    border: 0;
}

.jo-room-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ds-surface-sunken);
    color: var(--ds-text-tertiary);
}

.jo-room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jo-room-thumb svg {
    width: 22px;
    height: 22px;
}

.jo-room-cover {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ds-text-primary);
    color: var(--ds-surface);
    font-size: 11.5px;
    font-weight: 600;
}

/* «Aggiungi dalla libreria» e «Carica foto» affiancati (sul telefono uno sotto
 * l'altro), come righe tratteggiate col «+»: sono due campi, non colonne di
 * dati, quindi niente linea tratteggiata fra loro, 10px come nella tavola. */
html body .jo-sc-tile .jo-room-addph.jo-sc-cols > .fi-fo-component-ctn {
    column-gap: 10px !important;
    row-gap: 10px !important;
}

html body .jo-sc-tile .jo-room-addph.jo-sc-cols > .fi-fo-component-ctn > * + * {
    padding: 0;
    border: 0;
}

html body .jo-room-addph .fi-input-wrp {
    border: 1px dashed var(--ds-divider-dashed) !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body .jo-room-addph .fi-input-wrp:hover,
html body .jo-room-addph .filepond--root:hover .filepond--panel-root {
    border-color: var(--ds-accent) !important;
}

html body .jo-room-addph .fi-input-wrp-prefix {
    padding-inline-end: 0 !important;
    border-inline-end: 0 !important;
}

html body .jo-room-addph .fi-input-wrp-icon {
    width: 14px;
    height: 14px;
    color: var(--ds-text-tertiary);
}

html body .jo-room-addph .choices__inner {
    min-height: 36px;
    background: transparent !important;
}

html body .jo-room-addph .choices__input::placeholder,
html body .jo-room-addph .choices__placeholder {
    color: var(--ds-text-tertiary) !important;
    font-size: 12.5px;
    font-weight: 500;
    opacity: 1;
}

html body .jo-room-addph .filepond--root {
    margin-bottom: 0;
    background: transparent !important;
    box-shadow: none !important;
}

html body .jo-room-addph .filepond--panel-root {
    border: 1px dashed var(--ds-divider-dashed);
    border-radius: 10px;
    background: transparent;
}

html body .jo-room-addph .filepond--root:not(:has(.filepond--item)),
html body .jo-room-addph .filepond--root:not(:has(.filepond--item)) .filepond--drop-label {
    min-height: 38px !important;
    height: 38px !important;
}

html body .jo-room-addph .filepond--drop-label {
    justify-content: flex-start;
    color: var(--ds-text-tertiary);
}

html body .jo-room-addph .filepond--drop-label label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 500;
}

/* Riepilogo dell'hotel nella testata viola, sotto il titolo (owner
 * 10-nov-2026: «riepilogo sempre visibile», al posto del biglietto da visita;
 * filament.hotels.sheet-summary, sottotitolo di EditHotel ed EditGroupHotel):
 * una riga di dati separati da un puntino, a capo solo se non ci sta. */
.fi-header-subheading:has(.jo-hsum) { max-width: none !important; }
.jo-hsum { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.jo-hsum-item { white-space: nowrap; }
.jo-hsum-item + .jo-hsum-item::before { content: '·'; padding: 0 8px; }
.jo-hsum-status .jo-cell-dot { display: inline-block; margin-right: 5px; vertical-align: 1px; }
.jo-hsum-link svg { display: inline; width: 12px; height: 12px; vertical-align: -1px; }
.jo-hsum-link:hover { text-decoration: underline; }
/* Sul telefono va a capo: niente puntini, che aprirebbero le righe. */
@media (max-width: 640px) {
    .jo-hsum { column-gap: 12px; }
    .jo-hsum-item + .jo-hsum-item::before { content: none; }
}

/* Email automatiche › Canali di prenotazione (owner 10-nov-2026, «righe
 * pulite»; LifecycleSettingsTab::seenChannelsTable): una riga per canale,
 * nome · soggiorni · classe con pallino e testo, filetto fra le righe. */
.jo-chan-list { margin: 0; padding: 0; list-style: none; }
.jo-chan-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 7rem minmax(0, 2fr);
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ds-border-subtle, var(--ds-border));
    font-size: 13px;
}
.jo-chan-name { overflow: hidden; font-weight: 600; color: var(--ds-text-primary); text-overflow: ellipsis; white-space: nowrap; }
.jo-chan-count { color: var(--ds-text-tertiary); }
.jo-chan-class { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ds-text-secondary); }
.jo-chan-class .jo-cell-dot { display: inline-block; flex: none; }
.jo-chan-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ds-text-tertiary); }
@media (max-width: 640px) {
    .jo-chan-row { grid-template-columns: minmax(0, 1fr) auto; }
    .jo-chan-class { grid-column: 1 / -1; }
}

/* ── Canali › WhatsApp (owner 10-nov-2026) ──
   Il numero e la sua modalità affiancati, alti uguali; sotto le due tendine
   vicine; in fondo la nota e le azioni secondarie a icona. */
.jo-wa-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (min-width: 1024px) {
    .jo-wa-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.jo-wa-head > * { min-width: 0; margin: 0 !important; }
.jo-wa-number { padding: 16px 20px; }
.jo-wa-more { display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.jo-wa-more svg { flex: none; }
.jo-wa-more-open { transform: rotate(90deg); }
.jo-wa-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jo-wa-foot > * { min-width: 0; }
.jo-wa-foot .fi-fo-placeholder { font-size: 13.5px; color: var(--ds-text-secondary); }
/* Le due tendine una sotto l'altra, 16px come fra la card e la prima. */
html body .fi-section.jo-part-tone[data-jo-part="whatsapp"] .fi-fo-component-ctn:has(> div > .fi-section.jo-sub-untitled) { row-gap: 16px !important; }

/* Parti della Scheda hotel: l'icona viola su un tassello lilla tenue, come
   le tessere delle schede e Configurazione canali (owner 11-nov-2026: i
   tasselli pieni in sette colori erano «troppo confondenti e impattanti»),
   blocchi dentro a tessere (HotelResource::SHEET_PART_ICONS, SHEET_TILES). */
/* Niente fascia dietro il titolo (owner 10-nov-2026: con un titolo corto
   restava una striscia colorata vuota): il colore sta solo nel tassello, sul
   bordo dei riquadri sotto (rientrato col testo provato e scartato, owner 10-nov-2026). */
html body .jo-wheel--parts .fi-section.fi-section.fi-section.fi-section.jo-part-tone[data-jo-wheel]:not(#jo-tabs):not(#jo-part) > .fi-section-header {
    margin-bottom: 12px;
    padding: 0 !important;
    background: none !important;
}
html body .jo-wheel--parts .fi-section.fi-section.fi-section.fi-section.jo-part-tone[data-jo-wheel]:not(#jo-tabs):not(#jo-part) > .fi-section-header .fi-section-header-icon {
    display: block !important;
    box-sizing: content-box;
    width: var(--ds-icon-tile-svg) !important;
    height: var(--ds-icon-tile-svg) !important;
    padding: calc((var(--ds-icon-tile) - var(--ds-icon-tile-svg)) / 2);
    border-radius: 8px;
    background: var(--ds-accent-soft);
    color: var(--ds-auto-fg) !important;
}
/* Le icone d'azione della parte restano sulla riga del titolo anche sul
   telefono (Filament le porta sotto, in una riga tutta loro). */
@media (max-width: 639px) {
    html body .jo-wheel--parts .fi-section.jo-part-tone > .fi-section-header > div > div.hidden:has(> .fi-ac) { display: block; }
    html body .jo-wheel--parts .fi-section.jo-part-tone > .fi-section-header > div.sm\:hidden { display: none; }
}
/* Tessere: i blocchi della parte come i riquadri di Prenotazione e ospiti
   (.jo-form-tile, form-standard.css), il titolo del blocco dentro. */
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div > .fi-section.fi-section.fi-section.fi-section.fi-section.jo-wheel-sub:not(#jo-sub):not(#jo-tabs) {
    padding: 16px 18px 18px !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-card) !important;
    background: var(--ds-surface) !important;
    box-shadow: none !important;
}
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div > .fi-section.fi-section.fi-section.fi-section.fi-section.jo-wheel-sub:not(#jo-sub):not(#jo-tabs) > .fi-section-header { padding: 0 !important; }
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div > .fi-section.fi-section.fi-section.fi-section.fi-section.jo-wheel-sub:not(#jo-sub):not(#jo-tabs) > .fi-section-header .fi-section-header-heading { font-size: var(--ds-fs-h4) !important; font-weight: 600 !important; }
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn { row-gap: 16px !important; }
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div:has(> .fi-section.jo-wheel-sub) { margin-top: 0 !important; }
/* Un blocco che è solo una tendina (Storico abbonamenti) non ha riquadro:
   la tendina è già un riquadro (owner 10-nov-2026, come «Mostra le email inviate»). */
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div > .fi-section.fi-section.fi-section.fi-section.fi-section.jo-wheel-sub.jo-tile-bare:not(#jo-sub):not(#jo-tabs) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
html body .jo-wheel--parts .fi-section.jo-part-tiles .fi-section.jo-tile-bare > .fi-section-header { display: none !important; }
html body .jo-wheel--parts .fi-section.jo-part-tiles .fi-section.jo-tile-bare > .fi-section-content-ctn,
html body .jo-wheel--parts .fi-section.jo-part-tiles .fi-section.jo-tile-bare > .fi-section-content-ctn > .fi-section-content { padding: 0 !important; border: 0 !important; }
/* Dentro una tessera (Canali › Email) i blocchi annidati restano piani: niente
   secondo riquadro; quelli senza titolo stanno subito sotto il titolo della tessera. */
html body .jo-wheel--parts .fi-section.jo-part-tiles .jo-wheel-sub .fi-section.fi-section.fi-section.jo-wheel-sub:not(#jo-sub) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body .jo-wheel--parts .fi-section.jo-part-tiles .jo-wheel-sub .fi-section.jo-sub-untitled > .fi-section-content-ctn,
html body .jo-wheel--parts .fi-section.jo-part-tiles .jo-wheel-sub .fi-section.jo-sub-untitled > .fi-section-content-ctn > .fi-section-content { padding-top: 0 !important; }
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div > .fi-section.fi-section.fi-section.fi-section.fi-section.jo-wheel-sub:not(#jo-sub):not(#jo-tabs) > .fi-section-header { border-bottom: 0 !important; }
html .jo-legacy-tw .jo-wa-head { margin-top: 0 !important; }


/* Stato del dominio di invio = pallino dentro il campo, testo nel tooltip
   (Canali › Email › Campagne e automazioni, owner 10-nov-2026). */
.jo-domain-dot { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; cursor: default; }
/* SMTP | IMAP nella tendina: niente margine sopra i titoli. */
html body .jo-disclosure-wrap .fi-fo-component-ctn > div:has(> .fi-section) { margin-top: 0 !important; }
/* Dominio di invio da verificare (Canali › Email › Campagne e automazioni):
   i due passi, con i record da aggiungere nel DNS fra il primo e il secondo. */
.jo-dns-steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding-left: 20px; list-style: decimal; font-size: 13.5px; color: var(--ds-text-secondary); }
.jo-dns-steps strong { color: var(--ds-text-primary); font-weight: 600; }
.jo-dns-steps .jo-dns-table { margin-top: 10px; }
.jo-dns-steps .jo-inline-icon { display: inline; width: 14px; height: 14px; vertical-align: -2px; }
/* Servizio di invio: Joorna | Brevo in riga, ognuna larga quanto il suo testo. */
.jo-service-choice .fi-fo-radio { column-gap: 32px; row-gap: 8px; }
@media (min-width: 1024px) { .jo-service-choice .fi-fo-radio > * { white-space: nowrap; } }
/* Email inviate: la tabella apre sotto la sua tendina, staccata di un passo. */
.jo-disclosure-wrap > .jo-disclosure-body { margin-top: 12px; }

/* Stato della casella in una riga (Canali › Email › Casella dell'hotel, owner
   10-nov-2026): icona nel colore dello stato, il dettaglio nel tooltip. */
.jo-sync-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ds-text-secondary); }
.jo-sync-row li { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.jo-sync-icon { width: 18px; height: 18px; flex: none; }
.jo-sync-row .is-ok .jo-sync-icon { color: var(--ds-ok-fg); }
.jo-sync-row .is-warn .jo-sync-icon { color: var(--ds-warn-fg); }
.jo-sync-row .is-err .jo-sync-icon { color: var(--ds-err-fg); }
.jo-sync-row .is-empty .jo-sync-icon { color: var(--ds-text-tertiary); }
/* Moduli (Piano e moduli, owner 11-nov-2026): su due colonne dal computer;
   in ogni riga nome · pallino e stato, le azioni a icona in fondo alla riga;
   i campi di un'azione si aprono sotto. Righe basse, divise dal tratteggio
   (SubscriptionModulesTab). */
html .fi-section.jo-fcard .jo-fgrid.jo-mod-grid > .fi-fo-component-ctn { gap: 0 32px; }
.jo-mod-row { border-bottom: 1px dashed var(--ds-divider-dashed); padding: 8px 0; }
.jo-mod-row .fi-fo-field-wrp-label { flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
.jo-mod-row .fi-fo-field-wrp-label > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
.jo-mod-name { font-weight: 500; color: var(--ds-text-primary); }
.jo-mod-row .fi-fo-placeholder:not(:has(*)) { display: none; }
/* Stato nel colore del suo significato, come le celle di stato delle tabelle
   (segnalazione 17-nov-2026: in grigio la scadenza si perdeva). */
.jo-mod-state { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ds-text-secondary); }
.jo-mod-state--ok { color: var(--ds-ok-fg); }
.jo-mod-state--warn { color: var(--ds-warn-fg); }
.jo-mod-state--err { color: var(--ds-err-fg); }
.jo-mod-note { display: block; margin: 0; font-size: 13px; color: var(--ds-text-secondary); }
.jo-mod-invoice--warn { color: var(--ds-warn-fg); }
.jo-mod-panel { margin-top: 8px; }

/* Prenotazione e ospiti (owner 10-nov-2026: «troppi titoli, titoletti»,
   poi «come in Canali»): sotto la testata colorata ogni gruppo
   (Tiles::formTile) nel suo riquadro, senza titolo: il nome lo dice il
   primo campo (HotelResource::SHEET_ONE_BOX). 16px fra i riquadri, come le
   tessere di Canali. */
html body .jo-wheel--parts .jo-part-one .fi-fo-component-ctn:has(> div > .fi-section.jo-wheel-sub) { row-gap: 16px !important; }
html body .jo-part-one .jo-wheel-sub .fi-fo-component-ctn:has(> div > .jo-form-tile) { row-gap: 16px !important; }
/* Le parti con la testata colorata non hanno bisogno della linea tratteggiata
   fra l'una e l'altra: ognuna è la sua card, con lo stesso margine in alto
   della prima (owner 11-nov-2026: «hai tagliato i titoli»). */
html body .jo-wheel--parts .fi-section.fi-section.fi-section.fi-section.jo-part-tone.jo-wheel-next[data-jo-wheel]:not(#jo-tabs):not(#jo-part) {
    margin-top: 32px !important;
    padding-top: 18px !important;
    border-top: 0 !important;
}
@media (max-width: 640px) {
    html body .jo-wheel--parts .fi-section.fi-section.fi-section.fi-section.jo-part-tone.jo-wheel-next[data-jo-wheel]:not(#jo-tabs):not(#jo-part) { padding-top: 14px !important; }
}

/* Scheda hotel: la sezione aperta senza la sua testata (owner 10-nov-2026):
   ripeteva la voce accesa nella fascia viola e il suo violetto stonava con
   le testate colorate delle parti. Via anche il filo colorato a sinistra e
   il bordo tinto: la card resta neutra. Uguale nella Scheda struttura dei gruppi
   (strutture-del-gruppo, owner 13-nov-2026: «come la Scheda hotel»). */
html body .fi-page.jo-sec-page:is(.fi-resource-hotels, .fi-resource-strutture-del-gruppo) .fi-section.fi-section.fi-section.fi-section.jo-fcard.jo-sec-current > .fi-section-header { display: none !important; }
html body .fi-page.jo-sec-page:is(.fi-resource-hotels, .fi-resource-strutture-del-gruppo) .fi-section.fi-section.fi-section.fi-section.jo-fcard.jo-sec-current::before { content: none; }
html body .fi-page.jo-sec-page:is(.fi-resource-hotels, .fi-resource-strutture-del-gruppo) .fi-section.fi-section.fi-section.fi-section.jo-fcard.jo-sec-current { border-color: var(--ds-border) !important; }
html body .fi-page.jo-sec-page:is(.fi-resource-hotels, .fi-resource-strutture-del-gruppo) .fi-section.fi-section.fi-section.fi-section.jo-fcard.jo-sec-current > .fi-section-content-ctn { border-top: 0 !important; }

/* Configurazione canali, una pagina sola a tessere (owner 11-nov-2026,
   ChannelsSettingsPage). Campi a righe (FormRows) in una tessera senza
   matita, come le ore di silenzio: i campi della stessa riga restano
   affiancati («22:00 – 08:00»), mentre in lettura una tessera mette ogni campo
   su tutta la riga (scheda.css). Consensi: la riga dei numeri senza la linea
   sotto (un riquadro per livello). */
html body .jo-sc-tile .jo-row-ctl.jo-row-ctl > .fi-fo-component-ctn > * { grid-column: auto !important; }
html body .jo-sc-tile .jo-lset-intro { margin-bottom: 12px; padding-bottom: 0; border-bottom: 0; }

/* Ogni parte della Scheda hotel è una card sua (owner 11-nov-2026: «quando finisci
   Prenotazione una card, quando finisci Regole per gli ospiti una card»): la card
   della sezione diventa trasparente e le parti stanno una sotto l'altra, ognuna
   arrotondata col suo filo e la sua ombra. */
/* Più forte delle regole della card della sezione (jo-fcard): sotto le card delle
   parti si vede il fondo della pagina, non un bianco. */
html body .fi-section.fi-section.fi-section.jo-fcard.jo-fcard:not(#jo-a):not(#jo-b):has(.fi-section.jo-part-tone[data-jo-wheel]) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body .fi-section.fi-section.fi-section.jo-fcard.jo-fcard:not(#jo-a):not(#jo-b):has(.fi-section.jo-part-tone[data-jo-wheel])::before,
html body .fi-section.fi-section.fi-section.jo-fcard.jo-fcard:not(#jo-a):not(#jo-b):has(.fi-section.jo-part-tone[data-jo-wheel])::after { display: none !important; }
html body .fi-section.fi-section.fi-section.jo-fcard.jo-fcard:not(#jo-a):not(#jo-b):has(.fi-section.jo-part-tone[data-jo-wheel]) > .fi-section-content-ctn { border-top: 0 !important; background: transparent !important; }
html body .fi-section.fi-section.fi-section.jo-fcard.jo-fcard:not(#jo-a):not(#jo-b):has(.fi-section.jo-part-tone[data-jo-wheel]) > .fi-section-content-ctn > .fi-section-content { padding: 0 !important; background: transparent !important; }
html body .jo-wheel--parts .fi-section.fi-section.fi-section.fi-section.jo-part-tone[data-jo-wheel]:not(#jo-tabs):not(#jo-part) {
    padding: 18px 20px 20px !important;
    border-radius: 14px !important;
    background: var(--ds-surface) !important;
    box-shadow: 0 0 0 1px var(--ds-border), var(--ds-shadow-card) !important;
}
@media (max-width: 640px) {
    html body .jo-wheel--parts .fi-section.fi-section.fi-section.fi-section.jo-part-tone[data-jo-wheel]:not(#jo-tabs):not(#jo-part) { padding: 14px 12px 16px !important; }
}

/* Una tessera che contiene già un gruppo di righe (FormRows, owner 11-nov-2026)
   non disegna il suo riquadro: il riquadro è il gruppo, niente riquadro dentro
   un riquadro. */
html body .jo-wheel--parts .fi-section.jo-part-tiles > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div > .fi-section.fi-section.fi-section.fi-section.fi-section.jo-wheel-sub:not(#jo-sub):not(#jo-tabs):has(> .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div > .jo-rows) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Shop online (VoucherSettingsPage, owner 11-nov-2026): i gruppi di «Cosa
   vendi» separati dallo spazio, senza la linea tratteggiata delle vecchie
   parti (.jo-fpart-next); «Aggiungi · Testi dello shop · Aspetto dello shop»
   come le righe facoltative della Scheda hotel (.jo-rows-add). */
html .fi-section .fi-section-content .fi-fieldset.jo-fpart.jo-shop-next { margin-top: 18px !important; }
html .jo-shop-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
html .jo-shop-add .jo-rows-add-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; color: var(--ds-accent-fg); }
/* «Note per chi gestisce il sito» dentro il riquadro dei link: una linea piena, non tratteggiata. */
html .jo-rows details.jo-fpart-more { border-top-style: solid !important; }
