
.top-enrica { background: #339496!important; }

@media print {
    *, *:before, *:after { background: transparent none !important; }
    body { background: white none !important; font-size: 10px; }

    #top, #footer { display: none; }
    .q-page-container { padding:0!important; }
    .q-drawer, .q-tabs, .q-btn, .form-list-nav-row { display: none; }

    tbody>tr:nth-child(even)>td, .tbody .tr:nth-child(even)>.td { background-color: #EEEEEE !important; }
}

.ScreenTreeNested { margin: 4px 0 4px 12px; padding: 0 0 0 12px; border-left: 1px dashed lightgrey; }

.top-tvPaddingContainer{ height: auto !important;}
.navbar-tvPaddingContainer{ padding: 50px; padding-bottom: 0px; height: auto !important;}
.body-tvPaddingContainer{ padding: 50px; padding-top: 0px; }

.app-list-link { font-size: 1.5em; display: block; width: 500px; margin: 8px auto 8px auto; }
.app-list-link-100 { font-size: 1.5em; display: block; width: 100%; max-width: 500px; margin: 8px auto 8px auto; }
.app-list-link-max { font-size: 1.5em; display: block; width: 100%; margin: 8px auto 8px auto; }
.app-list-link-max-big { font-size: 3em; display: block; width: 100%; margin: 8px auto 8px auto; padding: 30px; }

.label-grey { background:#eceff1 !important ; color: #000000 !important }
.label-success { background:var(--q-color-positive) !important ; color: #ffffff !important }
.label-warning { background:var(--q-color-warning) !important ; color: #000000 !important }
.label-info { background:var(--q-light-blue-2) !important ; color: #000000 !important }
.label-danger { background:var(--q-color-negative) !important ; color: #ffffff !important }

.fc-content {
    padding: 3px;
}

.fa-6 {
    font-size: 20em !important;
}
.fa-5 {
    font-size: 12em !important;
}
.fa-4 {
    font-size: 7em !important;
}
.fa-3 {
    font-size: 4em !important;
}
.fa-2 {
    font-size: 2em !important;
}

.signature-pad {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 10px;
    border: 1px solid #e8e8e8;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.08) inset;
    border-radius: 4px;
    padding: 16px;
}

.signature-pad::before,
.signature-pad::after {
    position: absolute;
    z-index: -1;
    content: "";
    width: 40%;
    height: 10px;
    bottom: 10px;
    background: transparent;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.signature-pad::before {
    left: 20px;
    -webkit-transform: skew(-3deg) rotate(-3deg);
    transform: skew(-3deg) rotate(-3deg);
}

.signature-pad::after {
    right: 20px;
    -webkit-transform: skew(3deg) rotate(3deg);
    transform: skew(3deg) rotate(3deg);
}

.signature-pad--body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border: 1px solid #f4f4f4;
}

.signature-pad--body
canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

.signature-pad--footer {
    color: #C3C3C3;
    text-align: center;
    font-size: 1.2em;
    margin-top: 8px;
}

.signature-pad--actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 8px;
}

.signature-pad--actions .column {
    padding: .1em;
}

.signature-pad--actions .button {
    margin: .2em;
}

.sticky-header-table {
    
    max-height: 900px;
    
    
}
.sticky-header-table .q-table__top,
.sticky-header-table .q-table__bottom,
.sticky-header-table .thead .tr:first-child .th {
    
    background-color: #ffffff;
}
.sticky-header-table .thead .tr .th {
    position: sticky;
    z-index: 1;
}
.sticky-header-table .thead .tr:first-child .th {
    top: 0;
}
.sticky-header-table.q-table--loading .thead .tr:last-child .th {
    
    top: 48px;
}
.sticky-header-table .tbody {
    
    scroll-margin-top: 48px;
}

.fc-content {
    white-space: normal !important;
}
.fc-time-grid-event .fc-content, .fc-day-grid-event .fc-content {
    height: 100% !important;
}
.fc-day-grid-event .fc-content {
    white-space: normal !important;
    align-items: normal !important;
}

.manut-bg-fermo-attesa-componente {
    background: linear-gradient(to bottom right, transparent 0%, transparent 50%, transparent 50%, #ff8400 90%) !important;
}
.manut-bg-fermo-componente-ordinato {
    background: linear-gradient(to bottom right, transparent 0%, transparent 50%, transparent 50%, #1900ff 90%) !important;
}
.manut-bg-fermo-componente-arrivato {
    background: linear-gradient(to bottom right, transparent 0%, transparent 50%, transparent 50%, #00ff0d 90%) !important;
}
.manut-bg-fermo-attesa-macchinario {
    background: linear-gradient(to bottom right, transparent 0%, transparent 50%, transparent 50%, #009eff 90%) !important;
}
.manut-bg-fermo-attesa-generica {
    background: linear-gradient(to bottom right, transparent 0%, transparent 50%, transparent 50%, #e600ff 90%) !important;
}

.fc-list-item-title, .fc-list-item-title a {
    white-space: pre-line;
}
.fc-list-item-marker {
    vertical-align: top;
}
.fc-list-item-time {
    vertical-align: top;
    white-space: nowrap;
}

.fc-list-item:hover td {
    background-color: transparent;
}

@media (max-width: 767px) {
    .fc-toolbar .fc-left,
    .fc-toolbar .fc-center,
    .fc-toolbar .fc-right {
        float: none;
        display: block;
        text-align: center;
        margin-bottom: 6px;
    }
    .fc-toolbar h2 {
        font-size: 1.1em;
        line-height: 1.4;
    }
}

.programmazioneCalendar .fc-agendaWeek-view tr, .programmazioneCalendar .fc-agendaDay-view tr {
    height: 20px;
}
.registro-cella-qualita{
    background-color: #ababab !important;
    border: solid 1px #000 !important;
}

.registro-cella-width{
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    border: 1px solid #eee;
}
.scaffale-magazzino-width{
    width: 3000px !important;
    min-width: 3000px !important;
    max-width: 3000px !important;
}
.registro-scaffale-width{
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}

.production-display-main{
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}
.production-display-td{
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
}

.impasti-content{
    padding: 4px;
}
.production-line-row{
    color: #000;
    padding: 5px;
}
.production-bg-LINEA_1, .production-bg-LINEA_2, .production-bg-LINEA_3, .production-bg-LINEA_4{
    background-color: #e8e8e8;
    border: 1px solid #ddd;
}
.production-closed-bg{
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.production-date-container{
    font-size:1.2em;
    padding: 5px;
}
.production-event{
    height: 50px;
    margin:3px;
    border-radius: 8px;
}
.production-content{
    position: relative;
    cursor: pointer;
    height: 50px;
    padding: 4px;
}
.production-index{
    display: block;
    position: absolute;
    top: 0px;
    right: 2px;
}
.production-time{
    display: block;
    position: absolute;
    top: 20px;
    right: 2px;
}
.production-content a{
    color: #000000;
    font-weight: bold;
}
.prod-bg-has-external-facility {
    border-radius: 8px;
    background: linear-gradient(to bottom right, transparent 0%, transparent 50%, transparent 50%, #ede655 100%) !important;
}
.prod-bg-has-other-facility {
    border-radius: 8px;
    background: linear-gradient(to bottom right, transparent 0%, transparent 50%, transparent 50%, #22A699 100%) !important;
}
.prod-bg-is-shipped-today {
    border-radius: 8px;
    background: linear-gradient(to bottom right, #F24C3D 0%, transparent 50%, transparent 50%, transparent 100%) !important;
}
.prod-bg-has-external-facility-and-is-shipped {
    border-radius: 8px;
    background: linear-gradient(to bottom right, #F24C3D 0%, transparent 50%, transparent 50%, #ede655 100%) !important;
}
.prod-bg-has-other-facility-and-is-shipped {
    border-radius: 8px;
    background: linear-gradient(to bottom right, #F24C3D 0%, transparent 50%, transparent 50%, #22A699 100%) !important;
}
.prod-bg-completed {
    border-radius: 8px;
    background-color: #909090 !important;
}

.impasti-line-row{
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #000;
    padding: 5px;
}

.ordiniSettimanaliSettingsContainer input{
    width:70px;
}
.ordiniSettimanaliSettingsContainer .q-my-md{
    margin-bottom: 0px;
}
.ordiniSettimanaliSettingsContainer .q-my-sm{
    margin-bottom: 0px;
    margin-top: 0px;
}

#DemoMaintenancePanel-tabpanel .big-row-item{
    max-width: 230px;
}

.tox-promotion{
    display: none!important;
}

details.sezbox > summary{
    list-style: none;
}
details.sezbox > summary::-webkit-details-marker{
    display: none;
}
details.sezbox .sezcaret{
    display: inline-block;
    transition: transform .15s;
    font-size: 0.85em;
}
details.sezbox:not([open]) .sezcaret{
    transform: rotate(-90deg);
}

td.aig-cell.aig-nc,
td.aig-campo-cell.aig-nc{
    background: #f3b3b9 !important;
    outline: 2px solid #c62828;
    outline-offset: -2px;
}
td.aig-nc input.aig-in[type="text"],
td.aig-nc input.aig-campo[type="text"],
td.aig-nc select{
    color: #b71c1c;
    font-weight: 700;
    border: 2px solid #c62828;
    border-radius: 3px;
    background-color: #fff5f5;
}
td.aig-nc select option{
    color: #212121;
    font-weight: 400;
}

.mr-linee-bloccate-banner{
    color: #c62828;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 4px;
    padding: 8px;
}

.dir-deck{
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1c2430;
}
.dir-slide{
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-radius: 14px;
    padding: 44px 52px;
    margin: 0 0 28px 0;
    page-break-inside: avoid;
    break-inside: avoid;
}
.dir-slide h1{
    font-size: 44px;
    line-height: 1.12;
    margin: 0 0 18px 0;
    color: #0d47a1;
}
.dir-slide h2{
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 22px 0;
    color: #0d47a1;
}
.dir-slide h3{
    font-size: 21px;
    margin: 0 0 8px 0;
    color: #1c2430;
}
.dir-num{
    font-family: ui-monospace, Menlo, monospace;
    font-size: 14px;
    letter-spacing: .18em;
    color: #55637a;
    margin: 0 0 6px 0;
}
.dir-occhiello{
    font-size: 15px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #1565c0;
    margin: 0 0 14px 0;
}
.dir-sottotitolo{
    font-size: 22px;
    line-height: 1.5;
    color: #55637a;
    margin: 0;
    max-width: 34em;
}
.dir-copertina{
    background: #f6f8fb;
    border-left: 8px solid #0d47a1;
}
.dir-chiusura{
    background: #f6f8fb;
    border-left: 8px solid #0d47a1;
}
.dir-finale{
    font-size: 30px;
    line-height: 1.35;
    margin: 0;
}
.dir-punti{
    font-size: 23px;
    line-height: 1.5;
    margin: 0;
    padding-left: 26px;
}
.dir-punti li{ margin-bottom: 14px; }
.dir-elenco-fitto{
    font-size: 19px;
    line-height: 1.45;
    margin: 0;
    padding-left: 26px;
    columns: 2;
    column-gap: 40px;
}
.dir-elenco-fitto li{ margin-bottom: 7px; break-inside: avoid; }
.dir-domande{
    font-size: 24px;
    line-height: 1.45;
    margin: 0;
    padding-left: 26px;
}
.dir-domande li{ margin-bottom: 16px; }
.dir-delibere li{ margin-bottom: 16px; }
.dir-chiusa{
    margin: 26px 0 0 0;
    padding: 16px 20px;
    background: #f6f8fb;
    border-left: 4px solid #1565c0;
    border-radius: 0 8px 8px 0;
    font-size: 20px;
    line-height: 1.5;
}
.dir-tris{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.dir-tris > div{
    border-top: 4px solid #1565c0;
    padding-top: 12px;
}
.dir-verbo{
    display: block;
    font-size: 26px;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 8px;
}
.dir-tris p{ font-size: 18px; line-height: 1.5; margin: 0; }
.dir-tempi{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}
.dir-tempi > div{
    background: #fdf3e0;
    border-radius: 10px;
    padding: 18px 20px;
}
.dir-ora{
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: #a86400;
    margin-bottom: 6px;
}
.dir-tempi p{ font-size: 18px; line-height: 1.45; margin: 0; }
.dir-scenari{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}
.dir-scenari > div{
    background: #f6f8fb;
    border-radius: 10px;
    padding: 18px 20px;
}
.dir-scenari p{ font-size: 18px; line-height: 1.5; margin: 0; }
.dir-cifre{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}
.dir-cifre > div{
    text-align: center;
    background: #f6f8fb;
    border-radius: 10px;
    padding: 20px 12px;
}
.dir-cifra{
    display: block;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: #0d47a1;
}
.dir-etichetta{
    display: block;
    font-size: 15px;
    color: #55637a;
    margin-top: 8px;
}

.dir-traccia{ max-width: 860px; margin: 0 auto; color: #1c2430; }
.dir-traccia .dir-slide{ padding: 26px 30px; margin-bottom: 18px; }
.dir-traccia h2{ font-size: 24px; margin-bottom: 12px; }
.dir-traccia .dir-punti,
.dir-traccia .dir-domande{ font-size: 17px; }
.dir-traccia .dir-punti li,
.dir-traccia .dir-domande li{ margin-bottom: 8px; }
.dir-minuti{
    float: right;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
    color: #55637a;
    background: #eceef2;
    border-radius: 999px;
    padding: 3px 12px;
}
.dir-nota{
    margin-top: 14px;
    padding: 14px 18px;
    background: #fffbe6;
    border-left: 4px solid #a86400;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.6;
}
.dir-nota strong{ color: #a86400; }

@media print{
    .dir-deck, .dir-traccia{ max-width: none; }
    .dir-slide{ border: none; border-bottom: 1px solid #ccc; border-radius: 0; padding: 14px 0; }
    .dir-slide h1{ font-size: 26pt; }
    .dir-slide h2{ font-size: 17pt; }
    .dir-punti, .dir-domande{ font-size: 11pt; }
    .dir-nota{ background: none; border-left: 3px solid #999; }
}

.man-doc{ max-width: 860px; color: #1c2430; line-height: 1.65; font-size: 15.5px; }
.man-doc h2{ font-size: 25px; color: #0d47a1; margin: 34px 0 12px; padding-bottom: 7px; border-bottom: 2px solid #dde3ec; }
.man-doc h2:first-child{ margin-top: 4px; }
.man-doc h3{ font-size: 18px; margin: 22px 0 8px; }
.man-doc p{ margin: 0 0 12px; }
.man-doc ul, .man-doc ol{ margin: 0 0 14px; padding-left: 24px; }
.man-doc li{ margin-bottom: 7px; }
.man-doc code{ background: #eef1f5; padding: 1px 5px; border-radius: 3px; font-size: 13.5px; }
.man-nota{ background: #f6f8fb; border-left: 4px solid #1565c0; border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 0 0 14px; }
.man-limite{ background: #fdf3e0; border-left: 4px solid #a86400; border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 0 0 14px; }
.man-limite strong{ color: #a86400; }
.man-doc table{ border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14.5px; }
.man-doc th{ text-align: left; border-bottom: 2px solid #dde3ec; padding: 7px 10px 7px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #55637a; font-weight: 600; }
.man-doc td{ border-bottom: 1px solid #eef1f5; padding: 7px 10px 7px 0; vertical-align: top; }
.man-doc td.num{ text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.man-ok{ color: #1b7f4b; font-weight: 600; }
.man-ko{ color: #c62828; font-weight: 600; }

.sch-storyboard{ background: #f6f8fb; border: 1px solid #dde3ec; border-radius: 6px; padding: 12px 14px;
    font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.5; color: #1c2430;
    white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow-y: auto; margin: 0 0 12px; }

.pl-launcher { max-width: 940px; margin: 0 auto; padding: 20px 16px 40px; color: #1f2933; }
.pl-launcher [hidden] { display: none !important; }
.pl-launcher-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 8px; }
.pl-launcher-name { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #2e7d32;
    overflow-wrap: anywhere; }
.pl-launcher-search { display: flex; align-items: center; gap: 10px; flex: 0 1 420px; min-width: 0;
    box-sizing: border-box; height: 46px; padding: 0 14px; background: #fff; border: 1px solid #d5dae1; border-radius: 12px;
    cursor: text; transition: border-color .15s, box-shadow .15s; }
.pl-launcher-search .fa { color: #8a939e; }
.pl-launcher-search:focus-within { border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,.15); }
.pl-launcher-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px;
    color: inherit; }
.pl-launcher-group { margin-top: 22px; }
.pl-launcher-group-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; line-height: 1.4;
    letter-spacing: .08em; text-transform: uppercase; color: #6b7480; }
.pl-launcher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pl-app-card { --pl-accent: #546e7a; --pl-accent-soft: #eceff1;
    box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px;
    background: #fff; border: 1px solid #e1e5ea; border-radius: 12px; color: #1f2933 !important;
    text-decoration: none !important; box-shadow: 0 1px 2px rgba(16,24,40,.04);
    transition: border-color .15s, box-shadow .15s, transform .15s; }
.pl-app-card:hover { border-color: var(--pl-accent); box-shadow: 0 6px 18px rgba(16,24,40,.08); transform: translateY(-1px); }
.pl-app-card:focus-visible { outline: 3px solid var(--pl-accent); outline-offset: 2px; }
.pl-app-icon { flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 11px; background: var(--pl-accent-soft); color: var(--pl-accent); font-size: 20px; }
.pl-app-icon img { max-width: 24px; max-height: 24px; }
.pl-app-text { display: flex; flex-direction: column; min-width: 0; }
.pl-app-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pl-app-desc { font-size: 13px; line-height: 1.35; color: #6b7480; }
.pl-app-match { font-size: 12px; color: var(--pl-accent); font-weight: 600; }
.pl-app-match:empty { display: none; }
.pl-app-match:before { content: "Pagine: "; font-weight: 400; }
.pl-launcher-empty { margin-top: 32px; padding: 24px; text-align: center; color: #6b7480;
    border: 1px dashed #d5dae1; border-radius: 12px; }
.pl-grp-produzione   { --pl-accent: #2e7d32; --pl-accent-soft: #e8f5e9; }
.pl-grp-qualita      { --pl-accent: #1565c0; --pl-accent-soft: #e3f0fc; }
.pl-grp-manutenzione { --pl-accent: #d45d00; --pl-accent-soft: #fff1e3; }
.pl-grp-commerciale  { --pl-accent: #7b1fa2; --pl-accent-soft: #f4e8f8; }
.pl-grp-persone      { --pl-accent: #00838f; --pl-accent-soft: #e0f4f5; }
.pl-grp-controllo    { --pl-accent: #c62828; --pl-accent-soft: #fdecea; }
@media (max-width: 600px) {
    .pl-launcher-search { flex-basis: 100%; }
    .pl-launcher-name { font-size: 28px; }
}

.chs-app { max-width: 1200px; margin: 0 auto; padding: 8px 4px 24px; }
.chs-intro { color: #52606d; margin: 4px 0 14px; line-height: 1.5; }
.chs-box { background: #fff; border: 1px solid #d5dae1; border-radius: 14px; padding: 12px 14px 10px;
    box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.chs-box:focus-within { border-color: #7b1fa2; box-shadow: 0 0 0 3px rgba(123,31,162,.12); }
.chs-domanda { width: 100%; box-sizing: border-box; border: 0; outline: none; resize: vertical; min-height: 64px;
    font: inherit; font-size: 16px; line-height: 1.5; color: #1f2933; background: transparent; }
.chs-azioni { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.chs-suggerimento { font-size: 12px; color: #8a94a3; }
.chs-invia { background: #7b1fa2; color: #fff; border: 0; border-radius: 10px; padding: 8px 20px; font-size: 15px;
    font-weight: 600; cursor: pointer; }
.chs-invia:disabled { opacity: .5; cursor: wait; }
.chs-recenti { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.chs-recenti-titolo { font-size: 13px; color: #6b7480; margin-right: 4px; }
.chs-recente { border: 1px solid #e1e5ea; background: #f7f8fa; color: #334155; border-radius: 16px; padding: 4px 12px;
    font-size: 13px; cursor: pointer; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chs-recente:hover { border-color: #7b1fa2; color: #7b1fa2; }
.chs-stato { margin: 16px 0 0; color: #52606d; min-height: 1em; }
.chs-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #d5dae1; border-top-color: #7b1fa2;
    border-radius: 50%; vertical-align: -2px; margin-right: 6px; animation: chs-giro .8s linear infinite; }
@keyframes chs-giro { to { transform: rotate(360deg); } }
.chs-card { margin-top: 16px; background: #fff; border: 1px solid #e1e5ea; border-radius: 12px; padding: 14px 16px; }
.chs-titolo { font-size: 18px; font-weight: 600; color: #1f2933; }
.chs-spiegazione { margin-top: 4px; color: #52606d; line-height: 1.45; }
.chs-conteggio { margin: 8px 0; font-size: 13px; color: #6b7480; }
.chs-tabella-wrap { overflow: auto; max-height: 60vh; border: 1px solid #eef0f3; border-radius: 8px; }
.chs-tabella { border-collapse: collapse; width: 100%; font-size: 13px; }
.chs-tabella th { position: sticky; top: 0; background: #f4f5f7; text-align: left; font-weight: 600; color: #334155;
    padding: 7px 10px; border-bottom: 1px solid #e1e5ea; white-space: nowrap; }
.chs-tabella td { padding: 6px 10px; border-bottom: 1px solid #f0f2f5; vertical-align: top; }
.chs-tabella tr:hover td { background: #faf5fc; }
.chs-tabella td.chs-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chs-vuoto { padding: 12px 0; color: #6b7480; }
.chs-strumenti { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chs-btn { border: 1px solid #d5dae1; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chs-btn:hover { border-color: #7b1fa2; }
.chs-btn:disabled { opacity: .5; cursor: default; }
.chs-sql { margin-top: 12px; font-size: 13px; }
.chs-sql summary { cursor: pointer; color: #6b7480; }
.chs-sql pre { background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 8px; padding: 10px; white-space: pre-wrap;
    word-break: break-word; font-size: 12px; }
.chs-messaggio { border-left: 4px solid #1565c0; color: #1f2933; white-space: pre-wrap; }
.chs-errore { border-left: 4px solid #c62828; color: #7f1d1d; white-space: pre-wrap; }
.chs-esempi { max-width: 900px; line-height: 1.6; }
.chs-esempi h3 { margin: 18px 0 6px; font-size: 16px; }
.chs-esempi li { margin: 2px 0; }

.td:has(> .acc-cella-confermata), td.acc-cella-confermata { background-color: #e3f4e4 !important; }
.td:has(> .acc-cella-negata), td.acc-cella-negata { background-color: #fbe3e3 !important; }
.td:has(> .acc-cella-non-necessaria), td.acc-cella-non-necessaria { background-color: #e3eefb !important; }
.body--dark .td:has(> .acc-cella-confermata), .body--dark td.acc-cella-confermata { background-color: rgba(76, 175, 80, .22) !important; }
.body--dark .td:has(> .acc-cella-negata), .body--dark td.acc-cella-negata { background-color: rgba(229, 57, 53, .22) !important; }
.body--dark .td:has(> .acc-cella-non-necessaria), .body--dark td.acc-cella-non-necessaria { background-color: rgba(30, 136, 229, .22) !important; }

.cq-rapp-turni{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1100px){
    .cq-rapp-turni{ grid-template-columns: minmax(0, 1fr); }
}
.cq-rapp-turno{
    min-width: 0;
}
.cq-rapp-titolo{
    display: block;
    background: #455A64;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    margin: 0 0 8px 0;
}
.cq-rapp-stato{
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}
.cq-rapp-inviato{ background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.cq-rapp-bozza{ background: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }
.cq-rapp-mancante{ background: #F5F5F5; color: #9E9E9E; border: 1px solid #E0E0E0; }
.cq-rapp-addetto{ display: block; font-weight: bold; margin-bottom: 6px; }
.cq-rapp-sezione{
    display: block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
    margin: 8px 0 3px 0;
}
.cq-rapp-testo{
    display: block;
    white-space: pre-wrap;
    font-size: 13px;
    color: #555;
}

.fm-app { --fm-ink: #1c2833; --fm-muted: #5f6b76; --fm-line: #dde2e7; --fm-bg: #f4f6f8; --fm-amb: #c77712; --fm-gel: #1f7fa6;
  --fm-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  max-width: 1500px; margin: 0 auto; padding: 8px 4px 32px; color: var(--fm-ink); }
.fm-app *, .fm-app *::before, .fm-app *::after { box-sizing: border-box; }
.fm-c0 { --fm-col: #4e79a7; } .fm-c1 { --fm-col: #f28e2b; } .fm-c2 { --fm-col: #59a14f; } .fm-c3 { --fm-col: #e15759; }
.fm-c4 { --fm-col: #76b7b2; } .fm-c5 { --fm-col: #edc948; } .fm-c6 { --fm-col: #b07aa1; } .fm-c7 { --fm-col: #ff9da7; }
.fm-c8 { --fm-col: #9c755f; } .fm-c9 { --fm-col: #2f4b7c; } .fm-c10 { --fm-col: #8cd17d; } .fm-c11 { --fm-col: #d37295; }
.fm-c12 { --fm-col: #a0cbe8; } .fm-c13 { --fm-col: #86bcb6; } .fm-cx { --fm-col: #9aa5b1; }
.fm-caricamento, .fm-errore { padding: 40px 16px; text-align: center; color: var(--fm-muted); font-size: 15px; }
.fm-errore { color: #b3261e; background: #fdecea; border-radius: 8px; }
.fm-errore-piccolo { padding: 10px 14px; margin: 10px 0 0; text-align: left; font-size: 13px; }

.fm-appunti { position: fixed; top: -1000px; left: -1000px; opacity: 0; }
.fm-mono { font-family: var(--fm-mono); }
.fm-num { text-align: right; font-variant-numeric: tabular-nums; }

.fm-barra { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fm-magazzini { display: inline-flex; background: var(--fm-bg); border: 1px solid var(--fm-line); border-radius: 10px; padding: 3px; }
.fm-mag { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--fm-muted);
  padding: 7px 16px; border-radius: 8px; cursor: pointer; }
.fm-mag-n { font-weight: 500; font-size: 12px; opacity: .8; margin-left: 4px; font-variant-numeric: tabular-nums; }
.fm-mag.fm-attivo { color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.fm-mag-1.fm-attivo { background: var(--fm-amb); }
.fm-mag-2.fm-attivo { background: var(--fm-gel); }
.fm-cerca { position: relative; flex: 1 1 280px; max-width: 460px; }
.fm-cerca input { width: 100%; font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--fm-line); border-radius: 8px; background: #fff; }
.fm-cerca input:focus { outline: 2px solid var(--fm-gel); outline-offset: 0; border-color: transparent; }
.fm-risultati { display: none; }
.fm-risultati.fm-aperto { display: block; position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0; max-height: 360px; overflow-y: auto;
  background: #fff; border: 1px solid var(--fm-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,30,40,.16); }
.fm-ris-testa { padding: 8px 12px; font-size: 12px; color: var(--fm-muted); }
.fm-ris { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--fm-bg);
  background: #fff; padding: 8px 12px; cursor: pointer; font: inherit; }
.fm-ris:hover, .fm-ris:focus { background: #eef5fa; outline: none; }
.fm-ris-sscc { font-family: var(--fm-mono); font-size: 13px; }
.fm-ris-art { font-size: 13px; }
.fm-ris-pos { grid-column: 1 / -1; font-size: 12px; color: var(--fm-muted); }
.fm-azioni { display: flex; gap: 8px; margin-left: auto; }
.fm-btn { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--fm-line); background: #fff; color: var(--fm-ink);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.fm-btn:hover { background: var(--fm-bg); }
.fm-btn-pieno { background: var(--fm-ink); border-color: var(--fm-ink); color: #fff; }
.fm-btn-pieno:hover { background: #33475b; }
.fm-letto { font-size: 12px; color: var(--fm-muted); margin: 8px 2px 0; }

.fm-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.fm-kpi-box { background: #fff; border: 1px solid var(--fm-line); border-radius: 10px; padding: 12px 16px; }
.fm-kpi-val { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fm-kpi-val small { font-size: 15px; font-weight: 500; color: var(--fm-muted); }
.fm-kpi-lab { font-size: 13px; color: var(--fm-muted); }
.fm-kpi-nota { font-size: 12px; color: var(--fm-muted); margin-top: 4px; }

.fm-legenda-mappa { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--fm-muted); margin-bottom: 12px; align-items: center; }
.fm-legenda-mappa span { display: inline-flex; align-items: center; gap: 6px; }
.fm-legenda-mappa .fm-seg { width: 14px; height: 16px; flex: none; }
.fm-nota { font-style: italic; }
.fm-cella-es { display: inline-block; width: 18px; height: 14px; border-radius: 3px; border: 1.5px dashed #c62828; }

.fm-faccia { background: #fff; border: 1px solid var(--fm-line); border-radius: 12px; padding: 14px 16px 10px; margin-bottom: 16px; }
.fm-faccia-testa { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.fm-h3 { font-size: 17px; font-weight: 700; margin: 0; }
.fm-h3 small { font-size: 13px; font-weight: 500; color: var(--fm-muted); margin-left: 6px; }
.fm-sotto { font-size: 13px; color: var(--fm-muted); margin: 0; }
.fm-scaffale-wrap { overflow-x: auto; padding-bottom: 4px; }
.fm-scaffale { border-collapse: separate; border-spacing: 4px; }
.fm-scaffale td, .fm-scaffale th { padding: 0; }
.fm-asse { font-size: 11px; font-weight: 600; color: var(--fm-muted); text-align: center; font-variant-numeric: tabular-nums; }
.fm-asse-liv { text-align: right; padding-right: 6px; white-space: nowrap; }
.fm-asse-nota { font-size: 11px; color: var(--fm-muted); margin-top: 6px; }
.fm-cella { display: flex; flex-direction: column; gap: 4px; width: 74px; padding: 6px 5px 4px; border: 1px solid var(--fm-line); border-radius: 7px;
  background: #fafbfc; cursor: pointer; font: inherit; color: var(--fm-ink); transition: transform .08s, box-shadow .12s, opacity .12s; }
.fm-cella:hover { box-shadow: 0 3px 10px rgba(20,30,40,.15); transform: translateY(-1px); border-color: #b9c3cc; }
.fm-cella:focus-visible { outline: 2px solid var(--fm-gel); outline-offset: 1px; }
.fm-cella.fm-assente { visibility: hidden; cursor: default; }
.fm-cella.fm-vuota { background: #fff; }
.fm-cella.fm-spenta { opacity: .28; }
.fm-cella.fm-trovata { box-shadow: 0 0 0 2px var(--fm-ink); }

.fm-cella.fm-bloccato { border: 1.5px dashed #c62828; }
.fm-segmenti { display: flex; gap: 2px; height: 22px; }
.fm-seg { display: inline-block; flex: 1 1 0; border-radius: 2px; background: var(--fm-col, #cfd6dd); }
.fm-seg.fm-vuoto { background: #e9edf1; }
.fm-seg.fm-doppio { background: linear-gradient(to bottom, var(--fm-col) 0 42%, #fff 42% 58%, var(--fm-col) 58% 100%); }
.fm-seg.fm-fronte { box-shadow: inset -3px 0 0 rgba(20,30,40,.75); }
.fm-seg.fm-hit { outline: 2px solid var(--fm-ink); outline-offset: 1px; position: relative; z-index: 1; }
.fm-cella-n { font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.fm-cella-n small { font-weight: 500; color: var(--fm-muted); }

.fm-sezione { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.fm-articoli { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.fm-articolo { display: grid; grid-template-columns: 12px auto 1fr auto; gap: 10px; align-items: center; text-align: left; font: inherit; font-size: 13px;
  background: #fff; border: 1px solid var(--fm-line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.fm-articolo:hover { border-color: #b9c3cc; background: var(--fm-bg); }
.fm-articolo .fm-seg { height: 22px; width: 12px; }
.fm-art-cod { font-family: var(--fm-mono); font-weight: 600; }
.fm-art-des { color: var(--fm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-art-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.fm-tabella-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--fm-line); border-radius: 10px; }
.fm-tabella { width: 100%; border-collapse: collapse; font-size: 13px; }
.fm-tabella th, .fm-tabella td { padding: 7px 10px; border-bottom: 1px solid var(--fm-bg); text-align: left; }
.fm-tabella th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fm-muted); }

.fm-popup { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fm-popup[hidden] { display: none; }
.fm-popup-sfondo { position: absolute; inset: 0; background: rgba(15,25,35,.45); }
.fm-popup-box { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 780px; max-height: 88vh; overflow-y: auto;
  padding: 22px 24px 20px; box-shadow: 0 20px 60px rgba(10,20,30,.35); color: var(--fm-ink); }
.fm-popup-x { position: sticky; top: 0; float: right; margin: -8px -10px 0 0; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--fm-bg); font-size: 22px; line-height: 1; cursor: pointer; color: var(--fm-ink); z-index: 2; }
.fm-popup-x:hover { background: #e3e8ec; }
.fm-pop-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-muted); }
.fm-pop-titolo { font-size: 20px; font-weight: 700; margin: 2px 0 10px; line-height: 1.25; }
.fm-pop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fm-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef1f4; color: var(--fm-muted); white-space: nowrap; }
.fm-chip-rosso { background: #fdecea; color: #b3261e; }
.fm-chip-giallo { background: #fff4d6; color: #8a5a00; }
.fm-chip-viola { background: #efe7f7; color: #6a3d9a; }
.fm-pop-sotto { font-size: 13px; color: var(--fm-muted); margin: 10px 0 12px; }
.fm-pop-azioni { display: flex; justify-content: flex-end; margin-top: 14px; }
.fm-vuoto-msg { color: var(--fm-muted); font-size: 13px; }

.fm-tunnel { display: flex; align-items: center; gap: 8px; background: var(--fm-bg); border-radius: 10px; padding: 10px; overflow-x: auto; }
.fm-tunnel-lab { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fm-muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.fm-tunnel-posti { display: flex; gap: 6px; flex: 1; }
.fm-tposto { flex: 1 1 0; min-width: 78px; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 8px; border-radius: 6px; background: #fff;
  border: 1px solid var(--fm-line); border-top: 6px solid var(--fm-col, #cfd6dd); text-decoration: none; color: var(--fm-ink); font-size: 11px; position: relative; }
a.fm-tposto:hover { box-shadow: 0 2px 8px rgba(20,30,40,.15); }
.fm-tposto span { color: var(--fm-muted); font-weight: 600; }
.fm-tposto b { font-family: var(--fm-mono); font-size: 11px; font-weight: 600; word-break: break-all; }
.fm-tposto em { position: absolute; top: 4px; right: 6px; font-style: normal; font-weight: 700; color: #6a3d9a; }
.fm-tposto.fm-vuoto { border-top-color: #e3e8ec; background: transparent; border-style: dashed; }

.fm-g1 { flex-grow: 1; } .fm-g2 { flex-grow: 2; } .fm-g3 { flex-grow: 3; } .fm-g4 { flex-grow: 4; }
.fm-g5 { flex-grow: 5; } .fm-g6 { flex-grow: 6; } .fm-g7 { flex-grow: 7; } .fm-g8 { flex-grow: 8; }
.fm-g9 { flex-grow: 9; } .fm-g10 { flex-grow: 10; } .fm-g11 { flex-grow: 11; }
.fm-tposto.fm-g1, .fm-tposto.fm-g2, .fm-tposto.fm-g3 { min-width: 40px; }

.fm-seg.fm-f100 { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 2px, transparent 2px 5px); }
.fm-seg.fm-f100.fm-doppio { background: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 2px, transparent 2px 5px),
  linear-gradient(to bottom, var(--fm-col) 0 42%, #fff 42% 58%, var(--fm-col) 58% 100%); }
.fm-tposto.fm-f100 { background-image: repeating-linear-gradient(135deg, rgba(20,30,40,.06) 0 3px, transparent 3px 8px); }
.fm-seg.fm-avanzo { background: repeating-linear-gradient(90deg, #e9edf1 0 2px, transparent 2px 4px); }
.fm-cella.fm-oltre { outline: 2px solid #c62828; outline-offset: -2px; }
.fm-chip-blu { background: #e3eefb; color: #1f4e8c; }
.fm-regole { font-size: 12px; color: var(--fm-muted); margin: -4px 0 10px; }
.fm-avviso-capienza { background: #fdecea; color: #8e1c1c; border-radius: 8px; padding: 8px 12px; margin: 8px 0; font-size: 13px; }

.fm-posto { border-top: 1px solid var(--fm-line); padding: 12px 0 4px; scroll-margin-top: 40px; }
.fm-posto-testa { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.fm-posto-n { font-weight: 700; font-size: 14px; }
.fm-posto-meta { font-size: 12px; color: var(--fm-muted); margin-left: auto; }
.fm-bancale { display: flex; gap: 12px; border: 1px solid var(--fm-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.fm-bancale.fm-evidenziato { border-color: var(--fm-ink); box-shadow: 0 0 0 2px var(--fm-ink); }
.fm-bancale-colore { flex: none; width: 6px; border-radius: 3px; background: var(--fm-col); }
.fm-bancale-corpo { flex: 1; min-width: 0; }
.fm-bancale-riga { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fm-sscc { font-family: var(--fm-mono); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.fm-copia { font: inherit; font-size: 11px; border: 1px solid var(--fm-line); background: #fff; border-radius: 6px; padding: 1px 8px; cursor: pointer; color: var(--fm-muted); }
.fm-copia:hover { background: var(--fm-bg); }
.fm-bancale-art { font-size: 13px; margin: 4px 0 6px; }
.fm-bancale-art b { font-family: var(--fm-mono); }
.fm-dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px 16px; margin: 0; }
.fm-dati dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--fm-muted); }
.fm-dati dd { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.fm-dove { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; background: var(--fm-bg); border-radius: 10px; padding: 12px; }
.fm-dove span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--fm-muted); }
.fm-dove b { font-size: 17px; }
@media (max-width: 600px) {
  .fm-azioni { margin-left: 0; }
  .fm-popup-box { padding: 16px; max-height: 92vh; }
  .fm-cella { width: 60px; }
}
@media (prefers-reduced-motion: reduce) { .fm-cella { transition: none; } }
