/**
 * Gestione Scadenze360 - Frontend App
 * Scopo: layout professionale brandizzato per area riservata frontend.
 * Sviluppo: Domenico A. - SINTESI SRL
 * Versione storica origine file: 0.4.1-alpha
 * Revisione corrente: 0.6.43.7.0.164-alpha — CR-103.23.166
 * Ultimo intervento: login a due fattori password + OTP email; UI OTP isolata.
 * Impatto: autenticazione frontend; nessuna modifica DB e nessun impatto sulle altre UI.
 */
body.gs360-app-page{background:var(--gs360-bg)!important;overflow-x:hidden;}
body.gs360-app-page .entry-title,body.gs360-app-page .page-title,body.gs360-app-page .wp-block-post-title,body.gs360-app-page .post-title,body.gs360-app-page .site-title,body.gs360-app-page .site-description,body.gs360-app-page .site-header,body.gs360-app-page header:not(.gs360-topbar),body.gs360-app-page .site-footer,body.gs360-app-page footer:not(.gs360-sidebar-footer){display:none!important;}
body.gs360-app-page .site,body.gs360-app-page .site-content,body.gs360-app-page .content-area,body.gs360-app-page .entry-content,body.gs360-app-page article,body.gs360-app-page .page,body.gs360-app-page .wp-site-blocks{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;}
body.gs360-app-page .entry-content > *{max-width:none!important;}
:root{--gs360-bg:#F4F7FB;--gs360-panel:#FFFFFF;--gs360-text:#0D1B3D;--gs360-muted:#6B7280;--gs360-border:#DCE3EA;--gs360-primary:#0D1B3D;--gs360-success:#28A745;--gs360-success-soft:#7CC576;--gs360-danger:#DC3545;--gs360-soft:#F3FAF5;--gs360-shadow:0 14px 35px rgba(13,27,61,.08);}
body:has(.gs360-app),body:has(.gs360-login-wrap){background:var(--gs360-bg);}
.gs360-app{display:flex;min-height:calc(100vh - 32px);width:100vw;max-width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;background:var(--gs360-bg);color:var(--gs360-text);font-family:Montserrat,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box;}
.gs360-sidebar{width:292px;background:var(--gs360-primary);color:white;display:flex;flex-direction:column;padding:26px 18px;box-sizing:border-box;}
.gs360-brand{display:flex;gap:12px;align-items:center;margin-bottom:30px;}.gs360-brand-logo{width:54px;height:54px;border-radius:16px;background:#fff;box-shadow:var(--gs360-shadow);object-fit:contain;}.gs360-brand strong{display:block;font-size:18px;line-height:1.15}.gs360-brand span{font-size:12px;opacity:.76}.gs360-nav{display:flex;flex-direction:column;gap:6px}.gs360-nav a{color:rgba(255,255,255,.86);text-decoration:none;padding:12px 13px;border-radius:12px;font-weight:600;display:flex;align-items:center;gap:11px;transition:.18s ease}.gs360-nav a:hover,.gs360-nav a.active{background:rgba(40,167,69,.22);color:#fff}.gs360-nav a.gs360-subnav{margin-left:31px;padding:7px 10px;font-size:13px;font-weight:600;border-left:1px solid rgba(255,255,255,.14);border-radius:8px;color:rgba(255,255,255,.68)}.gs360-nav a.gs360-subnav:hover,.gs360-nav a.gs360-subnav.active{background:rgba(124,197,118,.14);color:#fff;border-left-color:var(--gs360-success-soft)}.gs360-nav a.active .gs360-icon{color:var(--gs360-success-soft)}.gs360-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:currentColor}.gs360-icon svg{width:100%;height:100%;display:block}.gs360-sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.15);padding-top:18px;display:flex;flex-direction:column;gap:6px}.gs360-sidebar-footer span{font-weight:700}.gs360-sidebar-footer small{opacity:.82;line-height:1.45}.gs360-sidebar-footer a{color:#fff;text-decoration:none;font-weight:700}.gs360-sidebar-footer a:hover{color:var(--gs360-success-soft)}
.gs360-main{flex:1;min-width:0;padding:28px 34px}.gs360-topbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.gs360-topbar h1,.gs360-card h2,.gs360-detail-head h2{margin:0;color:var(--gs360-text);display:flex;align-items:center;gap:10px}.gs360-topbar h1{font-size:31px}.gs360-topbar h1 .gs360-icon,.gs360-card h2 .gs360-icon,.gs360-detail-head h2 .gs360-icon{color:var(--gs360-success)}.gs360-topbar p{margin:5px 0 0;color:var(--gs360-muted)}.gs360-userbox{background:white;border:1px solid var(--gs360-border);padding:10px 14px;border-radius:999px;display:flex;gap:12px;align-items:center;box-shadow:0 5px 18px rgba(13,27,61,.04)}.gs360-userbox a{color:var(--gs360-success);font-weight:700;text-decoration:none}.gs360-content{max-width:1280px}.gs360-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}.gs360-kpi,.gs360-card{background:var(--gs360-panel);border:1px solid var(--gs360-border);border-radius:20px;box-shadow:var(--gs360-shadow)}.gs360-kpi{padding:22px}.gs360-kpi-head{display:flex;gap:10px;align-items:center;color:var(--gs360-muted);font-size:14px;margin-bottom:12px}.gs360-kpi-head .gs360-icon{color:var(--gs360-success)}.gs360-kpi strong{font-size:38px;line-height:1;color:var(--gs360-primary)}.gs360-card{padding:24px;margin-bottom:18px}.gs360-card h2{margin-bottom:12px}.gs360-form-help{margin:0 0 18px;color:var(--gs360-muted)}.gs360-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.gs360-search{display:flex;gap:10px}.gs360-search input,.gs360-form input,.gs360-form select,.gs360-form textarea{width:100%;border:1px solid var(--gs360-border);border-radius:10px;padding:12px 13px;background:#fff;color:var(--gs360-text);box-sizing:border-box;font-family:Montserrat,Inter,sans-serif}.gs360-search input:focus,.gs360-form input:focus,.gs360-form select:focus,.gs360-form textarea:focus{outline:0;border-color:var(--gs360-success);box-shadow:0 0 0 3px rgba(40,167,69,.15)}.gs360-search input::placeholder,.gs360-form input::placeholder,.gs360-form textarea::placeholder{color:var(--gs360-muted);font-style:italic;opacity:.85}.gs360-search input{min-width:430px}.gs360-search button,.gs360-btn,.gs360-btn-secondary{border:0;background:var(--gs360-success);color:white!important;padding:12px 17px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-flex;gap:8px;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap}.gs360-search button:hover,.gs360-btn:hover{background:var(--gs360-success-soft)}.gs360-btn-secondary{background:#fff;color:var(--gs360-primary)!important;border:1px solid var(--gs360-border)}.gs360-btn-secondary:hover{border-color:var(--gs360-success);color:var(--gs360-success)!important}.gs360-table{width:100%;border-collapse:collapse}.gs360-table th{text-align:left;color:var(--gs360-muted);font-size:13px;border-bottom:1px solid var(--gs360-border);padding:12px}.gs360-table td{border-bottom:1px solid var(--gs360-border);padding:14px 12px;vertical-align:middle}.gs360-table a{color:var(--gs360-primary);font-weight:700;text-decoration:none}.gs360-link-action{display:inline-flex;align-items:center;gap:5px;margin-right:12px}.gs360-link-action .gs360-icon{width:17px;height:17px;color:var(--gs360-success)}.gs360-badge{background:var(--gs360-soft);color:var(--gs360-success);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;text-transform:capitalize}.gs360-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gs360-form label{display:flex;flex-direction:column;gap:7px;color:var(--gs360-text);font-weight:700;font-size:13px}.gs360-form label em{color:var(--gs360-success);font-style:normal}.gs360-full{margin-top:16px}.gs360-actions{margin-top:18px;display:flex;align-items:center;gap:14px}.gs360-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.gs360-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.gs360-detail-grid div{background:#F8FAFC;border:1px solid var(--gs360-border);border-radius:14px;padding:13px}.gs360-detail-grid span{display:block;color:var(--gs360-muted);font-size:12px;margin-bottom:5px}.gs360-detail-grid strong{font-size:14px}.gs360-login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0D1B3D,#132B5E);padding:25px}.gs360-login-card{width:100%;max-width:460px;background:white;border-radius:26px;padding:34px;box-shadow:0 24px 70px rgba(0,0,0,.22);box-sizing:border-box;font-family:Montserrat,Inter,sans-serif}.gs360-login-logo{width:100%;max-width:310px;height:auto;margin-bottom:18px}.gs360-login-card h1{margin:0 0 8px;color:var(--gs360-primary)}.gs360-login-card p{color:var(--gs360-muted)}.gs360-login-card label{font-weight:700;color:var(--gs360-primary)}.gs360-login-card input[type=text],.gs360-login-card input[type=password]{width:100%;border:1px solid var(--gs360-border);border-radius:10px;padding:12px;box-sizing:border-box}.gs360-login-card input[type=submit]{width:100%;border:0;border-radius:10px;background:var(--gs360-success);color:white;padding:13px;font-weight:800;cursor:pointer}.gs360-login-card input[type=submit]:hover{background:var(--gs360-success-soft)}
@media(max-width:960px){.gs360-app{flex-direction:column;margin:0}.gs360-sidebar{width:100%;}.gs360-main{padding:22px}.gs360-topbar{flex-direction:column;align-items:flex-start}.gs360-kpi-grid,.gs360-form-grid,.gs360-detail-grid{grid-template-columns:1fr}.gs360-toolbar{flex-direction:column;align-items:stretch}.gs360-search{flex-direction:column}.gs360-search input{min-width:0}.gs360-table{display:block;overflow-x:auto}}

/* =====================================================
 * GESTIONE SCADENZE360
 * Modulo: Frontend App / Menu collassabile
 * Scopo: mantenere chiusi di default i sottomenu Aziende e Scadenze.
 * Versione: 0.4.2-alpha
 * Relazioni: SCAD360-SNIP-010B, class-gs360-frontend.php
 * ===================================================== */
.gs360-nav-group{display:flex;flex-direction:column;gap:4px}.gs360-nav-toggle{width:100%;border:0;background:transparent;color:rgba(255,255,255,.86);text-decoration:none;padding:12px 13px;border-radius:12px;font-weight:600;display:flex;align-items:center;gap:11px;transition:.18s ease;cursor:pointer;font-family:inherit;font-size:15px;text-align:left}.gs360-nav-toggle:hover,.gs360-nav-group.active>.gs360-nav-toggle{background:rgba(40,167,69,.22);color:#fff}.gs360-nav-toggle .gs360-nav-caret{margin-left:auto;font-size:14px;line-height:1;transition:transform .18s ease;opacity:.75}.gs360-nav-group.open>.gs360-nav-toggle .gs360-nav-caret{transform:rotate(180deg)}.gs360-subnav-panel{display:none;flex-direction:column;gap:3px}.gs360-nav-group.open>.gs360-subnav-panel{display:flex}.gs360-nav-group.active:not(.open)>.gs360-subnav-panel{display:none}.gs360-nav-group.active>.gs360-nav-toggle .gs360-icon{color:var(--gs360-success-soft)}

/* =====================================================
 * GESTIONE SCADENZE360
 * Modulo: Aziende / Referente principale / Dettaglio
 * Versione: 0.4.7-alpha
 * ===================================================== */
.gs360-section-title{margin:22px 0 14px;color:var(--gs360-primary);font-size:18px;border-top:1px solid var(--gs360-border);padding-top:18px}.gs360-card .gs360-section-title:first-child{border-top:0;padding-top:0}.gs360-alert{border:1px solid var(--gs360-border);border-radius:12px;padding:12px 14px;margin:12px 0 18px;background:#fff}.gs360-alert-error{border-color:#f1b5b5;background:#fff7f7;color:#8a1f1f}.gs360-btn-danger{border:0;background:#dc3545;color:white!important;padding:12px 17px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-flex;gap:8px;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap}.gs360-btn-danger:hover{background:#b02a37;color:white!important}.gs360-actions-inline{margin-top:0}.gs360-tabs{display:flex;gap:8px;margin:18px 0 8px;flex-wrap:wrap}.gs360-tabs span{border:1px solid var(--gs360-border);border-radius:999px;padding:8px 12px;color:var(--gs360-muted);background:#fff;font-weight:700;font-size:13px}.gs360-tabs span.active{background:var(--gs360-success);color:#fff;border-color:var(--gs360-success)}

/* =====================================================
 * GESTIONE SCADENZE360
 * Modulo: Aziende / Validazione Inline
 * Versione: 0.4.8-alpha
 * Scopo: evidenziare campi obbligatori, duplicati database e stati validi senza reload pagina.
 * ===================================================== */
.gs360-form input.gs360-field-error,
.gs360-form select.gs360-field-error,
.gs360-form textarea.gs360-field-error{border-color:#dc3545!important;box-shadow:0 0 0 3px rgba(220,53,69,.12)!important;background:#fffafa;}
.gs360-form input.gs360-field-ok,
.gs360-form select.gs360-field-ok,
.gs360-form textarea.gs360-field-ok{border-color:var(--gs360-success)!important;box-shadow:0 0 0 3px rgba(40,167,69,.10)!important;}
.gs360-field-message{min-height:16px;font-size:12px;font-weight:700;line-height:1.3;color:var(--gs360-muted);}
.gs360-field-message.error{color:#b02a37;}
.gs360-field-message.ok{color:var(--gs360-success);}
.gs360-field-loading{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(40,167,69,.08),rgba(255,255,255,0));}
/* v0.5.1-alpha - KPI compatti dettaglio azienda */
.gs360-kpi-grid-small{grid-template-columns:repeat(4,minmax(0,1fr));margin:10px 0 16px}.gs360-kpi-grid-small .gs360-kpi{padding:15px}.gs360-kpi-grid-small .gs360-kpi strong{font-size:26px}.gs360-kpi-grid-small .gs360-kpi-head{margin-bottom:8px}

/* =====================================================
 * GESTIONE SCADENZE360
 * SNIP-025 - Refactoring UI Globale + Tooltip Enterprise
 * Scopo: standard globale TAB + ACCORDION + TOOLTIP per dashboard,
 * aziende, referenti, utenti e futuri moduli operativi.
 * Versione target: 0.7.0-alpha
 * Relazioni: DECISION-048, DECISION-049, SCAD360-STD-002
 * ===================================================== */
.gs360-enterprise-tabs,
.gs360-dossier-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:16px 0 4px;
    align-items:center;
}
.gs360-enterprise-tabs a,
.gs360-dossier-tabs a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    border:1px solid var(--gs360-border);
    border-radius:999px;
    padding:8px 14px;
    background:#fff;
    color:var(--gs360-primary);
    text-decoration:none;
    font-weight:800;
    font-size:13px;
    box-shadow:0 3px 12px rgba(13,27,61,.04);
    transition:.18s ease;
}
.gs360-enterprise-tabs a:hover,
.gs360-dossier-tabs a:hover{
    border-color:var(--gs360-success);
    color:var(--gs360-success);
}
.gs360-enterprise-tabs a.active,
.gs360-dossier-tabs a.active{
    background:var(--gs360-success);
    color:#fff;
    border-color:var(--gs360-success);
}
.gs360-tabs-card{padding-bottom:18px;}
.gs360-accordion{
    border:1px solid var(--gs360-border);
    border-radius:14px;
    background:#fff;
    margin:12px 0;
    overflow:hidden;
}
.gs360-accordion summary{
    cursor:pointer;
    padding:16px 18px;
    font-weight:800;
    color:var(--gs360-primary);
    background:#F8FAFC;
    list-style:none;
}
.gs360-accordion summary::-webkit-details-marker{display:none;}
.gs360-accordion summary::before{
    content:'▸';
    display:inline-block;
    margin-right:9px;
    color:var(--gs360-success);
    transition:transform .18s ease;
}
.gs360-accordion[open] summary::before{transform:rotate(90deg);}
.gs360-accordion-body{padding:18px;}
.gs360-empty-note{
    padding:14px;
    border:1px dashed var(--gs360-border);
    border-radius:12px;
    background:#F8FAFC;
    color:var(--gs360-muted);
}
.gs360-field-label{
    display:inline-flex;
    align-items:center;
    gap:5px;
    line-height:1.25;
}
.gs360-tooltip-enterprise{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    min-width:18px;
    border-radius:50%;
    background:#F1F6FB;
    color:var(--gs360-primary);
    border:1px solid #C9D8EC;
    font-size:12px;
    font-weight:900;
    margin-left:5px;
    vertical-align:middle;
    cursor:help;
    line-height:1;
    box-shadow:0 2px 8px rgba(13,27,61,.05);
}
.gs360-tooltip-enterprise:hover,
.gs360-tooltip-enterprise:focus{
    background:var(--gs360-primary);
    color:#fff;
    border-color:var(--gs360-primary);
    outline:none;
}
.gs360-tooltip-enterprise::after{
    content:attr(data-tooltip);
    position:absolute;
    left:50%;
    bottom:calc(100% + 10px);
    transform:translateX(-50%) translateY(4px);
    width:max-content;
    max-width:320px;
    white-space:normal;
    background:var(--gs360-primary);
    color:#fff;
    border-radius:10px;
    padding:10px 12px;
    font-size:12px;
    font-weight:600;
    line-height:1.45;
    opacity:0;
    pointer-events:none;
    box-shadow:0 12px 28px rgba(13,27,61,.22);
    z-index:9999;
    transition:.16s ease;
    text-align:left;
}
.gs360-tooltip-enterprise::before{
    content:'';
    position:absolute;
    left:50%;
    bottom:calc(100% + 4px);
    transform:translateX(-50%);
    border:6px solid transparent;
    border-top-color:var(--gs360-primary);
    opacity:0;
    pointer-events:none;
    z-index:9999;
    transition:.16s ease;
}
.gs360-tooltip-enterprise:hover::after,
.gs360-tooltip-enterprise:focus::after,
.gs360-tooltip-enterprise:hover::before,
.gs360-tooltip-enterprise:focus::before{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}
.gs360-section-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}
@media(max-width:960px){
    .gs360-enterprise-tabs,
    .gs360-dossier-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}
    .gs360-enterprise-tabs a,
    .gs360-dossier-tabs a{white-space:nowrap;}
    .gs360-tooltip-enterprise::after{left:auto;right:0;transform:none;max-width:260px;}
    .gs360-tooltip-enterprise:hover::after,
    .gs360-tooltip-enterprise:focus::after{transform:none;}
}


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-025A
 * Modulo: UI Responsive Globale + Tooltip Enterprise Fix
 * Scopo: evitare overflow orizzontali, rendere dashboard e tabelle
 * adattive alla larghezza browser, mantenere tooltip sempre visibili
 * e in primo piano su desktop, tablet e mobile.
 * Relazioni: DECISION-048, DECISION-049, DECISION-050
 * Versione: 0.7.0-alpha
 * ===================================================== */
html,body{max-width:100%;overflow-x:hidden;}
body.gs360-app-page{width:100%;max-width:100%;}
.gs360-app,.gs360-main,.gs360-content,.gs360-card,.gs360-kpi,.gs360-table-card{box-sizing:border-box;max-width:100%;}
.gs360-app{overflow-x:hidden;}
.gs360-main{min-width:0;max-width:calc(100vw - 292px);overflow-x:hidden;}
.gs360-content{width:100%;max-width:min(1280px,100%);overflow:visible;}
.gs360-card{overflow:visible;}
.gs360-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.gs360-detail-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));}
.gs360-table-card{overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;}
.gs360-table-card::after{content:'Scorri orizzontalmente se necessario';display:block;margin-top:8px;color:var(--gs360-muted);font-size:11px;font-weight:600;}
.gs360-table{width:100%;max-width:100%;table-layout:auto;}
.gs360-table-wide{min-width:980px;}
.gs360-table th,.gs360-table td{word-break:normal;overflow-wrap:break-word;}
.gs360-table td:last-child,.gs360-table th:last-child{min-width:110px;}
.gs360-enterprise-tabs,.gs360-dossier-tabs,.gs360-tabs{max-width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:thin;}
.gs360-enterprise-tabs a,.gs360-dossier-tabs a,.gs360-tabs span{white-space:nowrap;}
.gs360-accordion{overflow:visible;}
.gs360-accordion-body{overflow:visible;}
.gs360-form-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));}
.gs360-search{max-width:100%;flex-wrap:wrap;}
.gs360-search input{min-width:min(430px,100%);}
.gs360-tooltip-enterprise{background:#F1F6FB!important;color:var(--gs360-primary)!important;border:1px solid #C9D8EC!important;z-index:50;}
.gs360-tooltip-enterprise span{display:inline-flex;align-items:center;justify-content:center;line-height:1;}
.gs360-tooltip-enterprise::before,.gs360-tooltip-enterprise::after{display:none!important;content:none!important;}
.gs360-tooltip-floating{position:fixed;z-index:2147483000;background:var(--gs360-primary);color:#fff;border-radius:12px;padding:10px 12px;font-size:12px;font-weight:600;line-height:1.45;box-shadow:0 18px 45px rgba(13,27,61,.30);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s ease,visibility .14s ease;max-width:340px;text-align:left;}
.gs360-tooltip-floating.visible{opacity:1;visibility:visible;}
@media(max-width:1200px){
  .gs360-main{padding:24px 22px;}
  .gs360-table-wide{min-width:900px;}
}
@media(max-width:960px){
  .gs360-app{width:100%;max-width:100%;left:auto;right:auto;margin-left:0;margin-right:0;}
  .gs360-sidebar{width:100%;position:relative;}
  .gs360-main{max-width:100%;width:100%;padding:20px 14px;}
  .gs360-topbar{gap:12px;}
  .gs360-topbar h1{font-size:25px;}
  .gs360-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;}
  .gs360-kpi{padding:16px;}
  .gs360-kpi strong{font-size:30px;}
  .gs360-detail-grid{grid-template-columns:1fr;}
  .gs360-table-wide{min-width:820px;}
  .gs360-card{padding:18px;border-radius:16px;}
}
@media(max-width:640px){
  .gs360-main{padding:16px 10px;}
  .gs360-topbar h1{font-size:22px;}
  .gs360-userbox{width:100%;justify-content:space-between;}
  .gs360-kpi-grid{grid-template-columns:1fr 1fr;}
  .gs360-form-grid{grid-template-columns:1fr;}
  .gs360-actions,.gs360-section-actions{flex-direction:column;align-items:stretch;}
  .gs360-btn,.gs360-btn-secondary,.gs360-btn-danger{width:100%;}
  .gs360-table-wide{min-width:760px;}
  .gs360-tooltip-floating{max-width:calc(100vw - 24px)!important;}
}


/* =====================================================
 * GESTIONE SCADENZE360
 * Modulo: SCAD360-SNIP-025B / Responsive Layout Enterprise
 * Scopo: adattare dashboard, tabelle e card alla larghezza del browser,
 * evitando scroll orizzontali non controllati e trasformando le tabelle
 * operative in card verticali su mobile.
 * Relazioni: DECISION-050, DECISION-051, Elementor Pro come livello sito.
 * ===================================================== */
body.gs360-app-page{min-width:0!important;}
.gs360-app{overflow-x:hidden!important;}
.gs360-main{width:calc(100vw - 292px);max-width:calc(100vw - 292px);padding:28px clamp(18px,2vw,36px)!important;}
.gs360-content{width:100%;max-width:min(1680px,100%)!important;margin:0 auto;}
.gs360-card,.gs360-kpi{min-width:0;}
.gs360-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;}
.gs360-detail-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;}
.gs360-form-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;}
.gs360-table-card{overflow:visible!important;max-width:100%;}
.gs360-table-card::after{display:none!important;content:none!important;}
.gs360-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;}
.gs360-table-wide{min-width:0!important;}
.gs360-table th,.gs360-table td{white-space:normal!important;word-break:break-word;overflow-wrap:anywhere;line-height:1.35;}
.gs360-table th{font-size:12px;padding:10px 8px;}
.gs360-table td{font-size:13px;padding:12px 8px;}
.gs360-table td:last-child,.gs360-table th:last-child{min-width:0!important;}
.gs360-link-action{display:inline-flex;margin:2px 6px 2px 0;white-space:normal;}
.gs360-tabs-enterprise,.gs360-tabs{max-width:100%;overflow:visible;}
.gs360-tooltip-floating{z-index:2147483647!important;}

@media (min-width: 1500px){
  .gs360-content{max-width:min(1760px,100%)!important;}
  .gs360-table th{font-size:12px;}
  .gs360-table td{font-size:13px;}
}

@media (max-width: 1180px){
  .gs360-sidebar{width:248px;}
  .gs360-main{width:calc(100vw - 248px);max-width:calc(100vw - 248px);}
  .gs360-table th{font-size:11px;padding:9px 6px;}
  .gs360-table td{font-size:12px;padding:10px 6px;}
}

@media (max-width: 960px){
  .gs360-app{flex-direction:column!important;width:100%!important;max-width:100%!important;left:auto!important;right:auto!important;margin:0!important;}
  .gs360-sidebar{width:100%!important;position:relative;}
  .gs360-main{width:100%!important;max-width:100%!important;padding:18px!important;}
  .gs360-content{width:100%;max-width:100%!important;}
  .gs360-topbar{align-items:stretch!important;}
  .gs360-userbox{align-self:flex-start;}
}

@media (max-width: 760px){
  .gs360-card{padding:16px!important;border-radius:16px;}
  .gs360-kpi{padding:16px!important;}
  .gs360-kpi strong{font-size:30px!important;}
  .gs360-topbar h1{font-size:26px!important;}
  .gs360-toolbar,.gs360-search,.gs360-actions{flex-direction:column!important;align-items:stretch!important;}
  .gs360-search input{min-width:0!important;width:100%!important;}
  .gs360-tabs-enterprise,.gs360-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px;}
  .gs360-tabs-enterprise a,.gs360-tabs a,.gs360-tabs span{flex:0 0 auto;}

  .gs360-responsive-table{display:block;width:100%!important;border-collapse:separate!important;}
  .gs360-responsive-table thead{display:none!important;}
  .gs360-responsive-table tbody{display:block;width:100%;}
  .gs360-responsive-table tr{display:block;background:#fff;border:1px solid var(--gs360-border);border-radius:16px;margin:0 0 14px;padding:10px 12px;box-shadow:0 8px 22px rgba(13,27,61,.05);}
  .gs360-responsive-table td{display:grid!important;grid-template-columns:minmax(108px,40%) 1fr;gap:10px;align-items:start;border:0!important;border-bottom:1px solid #EEF2F6!important;padding:10px 0!important;font-size:13px!important;min-height:0;}
  .gs360-responsive-table td:last-child{border-bottom:0!important;}
  .gs360-responsive-table td::before{content:attr(data-label);font-weight:800;color:var(--gs360-muted);font-size:11px;text-transform:none;line-height:1.3;}
  .gs360-responsive-table td[colspan]::before{display:none;content:none;}
  .gs360-responsive-table td[colspan]{display:block!important;}
  .gs360-responsive-table .gs360-link-action{display:inline-flex;margin:4px 8px 4px 0;}
  .gs360-badge{display:inline-flex;width:max-content;}
}

@media (max-width: 420px){
  .gs360-main{padding:12px!important;}
  .gs360-responsive-table td{grid-template-columns:1fr;gap:4px;}
  .gs360-detail-grid div{padding:11px;}
  .gs360-tooltip-floating{left:12px!important;right:auto!important;max-width:calc(100vw - 24px)!important;}
}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.2 - Richiedi Accesso Azienda
 * Scopo: form pubblico brandizzato a tab per richiesta utilizzo piattaforma.
 * Relazioni: [scad360_richiedi_accesso], onboarding, aziende, utenti azienda.
 * ===================================================== */
.gs360-public-access-wrap{min-height:100vh;background:linear-gradient(135deg,#0D1B3D 0%,#132B5E 100%);padding:42px 18px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;font-family:Montserrat,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--gs360-text);}
.gs360-public-access-shell{width:min(1080px,100%);display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:24px;align-items:start;}
.gs360-public-access-brand{background:#fff;border:1px solid rgba(255,255,255,.55);border-radius:26px;padding:30px;box-shadow:0 24px 70px rgba(0,0,0,.18);position:sticky;top:32px;}
.gs360-public-access-brand img{display:block;width:min(290px,100%);height:auto;margin:0 0 22px;}
.gs360-public-access-brand h1{margin:0 0 12px;color:var(--gs360-primary);font-size:32px;line-height:1.14;}
.gs360-public-access-brand p{margin:0;color:var(--gs360-muted);font-size:15px;line-height:1.65;}
.gs360-access-card{background:#fff;border:1px solid var(--gs360-border);border-radius:26px;box-shadow:0 24px 70px rgba(0,0,0,.18);padding:28px;box-sizing:border-box;}
.gs360-access-success h2,.gs360-access-panel h2{margin:0 0 18px;color:var(--gs360-primary);display:flex;align-items:center;gap:8px;}
.gs360-access-success p{color:var(--gs360-muted);line-height:1.6;}
.gs360-access-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px;padding:0 0 14px;border-bottom:1px solid var(--gs360-border);}
.gs360-access-tabs button{border:1px solid var(--gs360-border);background:#fff;color:var(--gs360-primary);border-radius:999px;padding:9px 14px;font-weight:900;cursor:pointer;font-family:inherit;box-shadow:0 4px 14px rgba(13,27,61,.04);transition:.18s ease;}
.gs360-access-tabs button:hover{border-color:var(--gs360-success);color:var(--gs360-success);}
.gs360-access-tabs button.active{background:var(--gs360-success);border-color:var(--gs360-success);color:#fff;}
.gs360-access-panel{display:none;}
.gs360-access-panel.active{display:block;}
.gs360-access-form .gs360-form-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));}
.gs360-access-form label{font-size:13px;font-weight:800;color:var(--gs360-primary);}
.gs360-access-textarea{display:flex;flex-direction:column;gap:7px;margin-top:16px;}
.gs360-access-consensi{display:flex;flex-direction:column;gap:12px;background:#F8FAFC;border:1px solid var(--gs360-border);border-radius:16px;padding:16px;margin-bottom:14px;}
.gs360-access-consensi label{display:flex;align-items:flex-start;gap:10px;line-height:1.45;}
.gs360-access-consensi input{width:18px;height:18px;margin-top:1px;accent-color:var(--gs360-success);}
@media(max-width:960px){.gs360-public-access-wrap{padding:22px 12px;align-items:flex-start;}.gs360-public-access-shell{grid-template-columns:1fr;}.gs360-public-access-brand{position:relative;top:auto;}.gs360-public-access-brand h1{font-size:27px;}.gs360-access-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:10px;}.gs360-access-tabs button{flex:0 0 auto;white-space:nowrap;}}
@media(max-width:560px){.gs360-public-access-brand,.gs360-access-card{padding:20px;border-radius:20px;}.gs360-public-access-brand h1{font-size:24px;}.gs360-section-actions{align-items:stretch;}.gs360-section-actions .gs360-btn,.gs360-section-actions .gs360-btn-secondary{width:100%;}}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.2A
 * Modulo: Richiedi Accesso / validazione inline, tooltip e dati azienda completi
 * Scopo: evidenziare campi obbligatori, preservare dati inseriti,
 * migliorare tooltip e rendere chiara la nota * dati obbligatori.
 * Relazioni: [scad360_richiedi_accesso], DECISION-049, DECISION-060.
 * ===================================================== */
.gs360-access-form .gs360-field-error{border-color:#dc3545!important;box-shadow:0 0 0 3px rgba(220,53,69,.12)!important;background:#fffafa!important;}
.gs360-access-form .gs360-field-ok{border-color:var(--gs360-success)!important;box-shadow:0 0 0 3px rgba(40,167,69,.10)!important;}
.gs360-access-form .gs360-field-message{display:block;min-height:16px;margin-top:6px;font-size:12px;font-weight:800;line-height:1.35;color:var(--gs360-muted);}
.gs360-access-form .gs360-field-message.error{color:#b02a37;}
.gs360-required-note{margin:14px 0 0;color:var(--gs360-muted);font-size:12px;font-weight:800;}
.gs360-access-form .gs360-tooltip-enterprise{position:relative;z-index:20;}
.gs360-public-access-wrap .gs360-tooltip-floating,.gs360-tooltip-floating{z-index:2147483647!important;}
.gs360-access-form .gs360-form-grid label{position:relative;}
.gs360-access-form input,.gs360-access-form textarea{font-size:15px;}
@media(max-width:760px){.gs360-access-form .gs360-form-grid{grid-template-columns:1fr!important;}.gs360-required-note{font-size:12px;}.gs360-public-access-wrap .gs360-tooltip-floating{max-width:calc(100vw - 24px)!important;}}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.3A
 * Modulo: Richieste Accesso Azienda / Dossier Professionale
 * Scopo: layout workflow approvazione con progress bar, verifiche,
 * timeline audit, date italiane e IP di provenienza.
 * Relazioni: DECISION-063, DECISION-069, SCAD360-SNIP-027.3
 * Versione: 0.7.0-alpha
 * ===================================================== */
.gs360-request-hero{position:relative;overflow:visible;}
.gs360-request-head{align-items:flex-start!important;margin-bottom:18px;}
.gs360-request-head .gs360-form-help{margin:7px 0 0;}
.gs360-request-workflow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 20px;}
.gs360-request-step{border:1px solid var(--gs360-border);border-radius:16px;background:#F8FAFC;padding:14px;display:grid;grid-template-columns:34px 1fr;column-gap:10px;row-gap:4px;align-items:start;min-width:0;}
.gs360-request-step span{grid-row:1 / span 2;width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#EEF2F6;color:var(--gs360-muted);font-weight:900;border:1px solid var(--gs360-border);}
.gs360-request-step strong{font-size:13px;color:var(--gs360-primary);line-height:1.25;}
.gs360-request-step small{font-size:11px;color:var(--gs360-muted);font-weight:700;line-height:1.35;}
.gs360-request-step.done span{background:var(--gs360-success);border-color:var(--gs360-success);color:#fff;}
.gs360-request-step.current{border-color:#8FB6F2;background:#F4F8FF;box-shadow:0 8px 20px rgba(13,27,61,.06);}
.gs360-request-step.current span{background:var(--gs360-primary);border-color:var(--gs360-primary);color:#fff;}
.gs360-request-summary-grid{margin-top:12px!important;}
.gs360-request-actions{padding-top:10px;border-top:1px solid var(--gs360-border);}
.gs360-request-dossier .gs360-accordion{margin-bottom:14px;}
.gs360-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;}
.gs360-check-item{display:flex;align-items:center;gap:10px;border:1px solid var(--gs360-border);border-radius:14px;padding:12px;background:#fff;}
.gs360-check-item span{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 auto;}
.gs360-check-item.ok span{background:var(--gs360-soft);color:var(--gs360-success);}
.gs360-check-item.ko span{background:#FFF2F2;color:var(--gs360-danger);}
.gs360-check-item strong{font-size:13px;color:var(--gs360-primary);}
.gs360-audit-timeline{display:flex;flex-direction:column;gap:12px;}
.gs360-audit-timeline-item{display:grid;grid-template-columns:170px 1fr;gap:14px;border:1px solid var(--gs360-border);border-radius:16px;padding:14px;background:#fff;}
.gs360-audit-date{font-weight:900;color:var(--gs360-primary);font-size:13px;}
.gs360-audit-content strong{display:block;color:var(--gs360-primary);margin-bottom:5px;}
.gs360-audit-content p{margin:0 0 6px;color:var(--gs360-text);line-height:1.45;}
.gs360-audit-content small{color:var(--gs360-muted);font-weight:700;line-height:1.45;}
@media(max-width:960px){.gs360-request-workflow{grid-template-columns:1fr 1fr;}.gs360-audit-timeline-item{grid-template-columns:1fr;gap:7px;}}
@media(max-width:560px){.gs360-request-workflow{grid-template-columns:1fr;}.gs360-request-step{grid-template-columns:30px 1fr;}.gs360-request-step span{width:30px;height:30px;}.gs360-check-grid{grid-template-columns:1fr;}}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.3B
 * Modulo: Richieste Accesso Azienda / Azioni con icone
 * Scopo: distinguere professionalmente le quattro azioni operative
 * Visualizza, Approva, Integrazione e Rifiuta con icona, colore,
 * testo e comportamento responsive/accessibile.
 * Relazioni: SCAD360-SNIP-027.3A, DECISION-071, UI Standard Globale.
 * ===================================================== */
.gs360-actions-cell{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:190px;}
.gs360-action-pill{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:6px 9px;border-radius:999px;border:1px solid var(--gs360-border);background:#fff;color:var(--gs360-primary)!important;text-decoration:none!important;font-size:12px;font-weight:900;line-height:1;box-shadow:0 3px 10px rgba(13,27,61,.04);transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;white-space:nowrap;}
.gs360-action-pill:hover{transform:translateY(-1px);box-shadow:0 6px 15px rgba(13,27,61,.08);}
.gs360-action-icon{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;}
.gs360-action-icon svg{width:14px;height:14px;display:block;fill:currentColor;}
.gs360-action-view{color:#1D4ED8!important;border-color:#BFDBFE;background:#EFF6FF;}
.gs360-action-view:hover{background:#DBEAFE;border-color:#93C5FD;color:#1E40AF!important;}
.gs360-action-approve{color:var(--gs360-success)!important;border-color:#BFE8C8;background:#F3FAF5;}
.gs360-action-approve:hover{background:#E6F6EA;border-color:var(--gs360-success);color:#168138!important;}
.gs360-action-integration{color:#B45309!important;border-color:#FCD9A6;background:#FFF7ED;}
.gs360-action-integration:hover{background:#FFEDD5;border-color:#F59E0B;color:#92400E!important;}
.gs360-action-reject{color:var(--gs360-danger)!important;border-color:#F5B5BD;background:#FFF5F6;}
.gs360-action-reject:hover{background:#FFE8EA;border-color:var(--gs360-danger);color:#B02A37!important;}
@media(max-width:760px){.gs360-actions-cell{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0;width:100%;}.gs360-action-pill{justify-content:flex-start;width:100%;white-space:normal;line-height:1.2;padding:9px 10px;}}
@media(max-width:420px){.gs360-actions-cell{grid-template-columns:1fr;}}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.3C
 * Modulo: Workflow Richiesta Integrazione
 * Scopo: form professionale per motivazione, messaggio personalizzato,
 * riepilogo destinatario e tracciamento audit/notifiche.
 * Relazioni: class-gs360-frontend.php, DECISION-071
 * ===================================================== */
.gs360-integration-hero{border-left:4px solid #f0ad4e;}
.gs360-integration-form{overflow:visible;}
.gs360-integration-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:18px;}
.gs360-integration-summary div{background:#F8FAFC;border:1px solid var(--gs360-border);border-radius:14px;padding:13px;}
.gs360-integration-summary span{display:block;color:var(--gs360-muted);font-size:12px;margin-bottom:5px;}
.gs360-integration-summary strong{display:block;color:var(--gs360-primary);font-size:14px;overflow-wrap:anywhere;}
.gs360-integration-form textarea{min-height:190px;resize:vertical;line-height:1.55;}
.gs360-integration-preview{margin-top:16px;background:#FFF9ED;border:1px solid #F3D291;border-radius:14px;padding:16px;}
.gs360-integration-preview h3{margin:0 0 10px;color:var(--gs360-primary);font-size:17px;}
.gs360-integration-preview p{margin:6px 0;color:var(--gs360-text);line-height:1.45;}
.gs360-required-note{margin:16px 0 0;color:var(--gs360-muted);font-size:12px;font-weight:700;}
.gs360-alert ul{margin:8px 0 0 18px;padding:0;}
.gs360-alert li{margin:4px 0;}
@media(max-width:760px){
  .gs360-integration-summary{grid-template-columns:1fr;}
  .gs360-integration-form textarea{min-height:220px;}
}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.3D
 * Modulo: Dashboard Super Admin / Stato aziende e Audit
 * Scopo: italianizzare date dashboard, aggiungere IP audit e uniformare
 * le azioni operative con icone professionali.
 * Relazioni: DECISION-066, DECISION-071, SNIP-027.3B/C
 * ===================================================== */
.gs360-action-company{color:#1D4ED8!important;border-color:#BFDBFE;background:#EFF6FF;}
.gs360-action-company:hover{background:#DBEAFE;border-color:#93C5FD;color:#1E40AF!important;}
.gs360-action-user{color:#047857!important;border-color:#A7F3D0;background:#ECFDF5;}
.gs360-action-user:hover{background:#D1FAE5;border-color:#34D399;color:#065F46!important;}
.gs360-action-state{color:#B45309!important;border-color:#FCD9A6;background:#FFF7ED;}
.gs360-action-state:hover{background:#FFEDD5;border-color:#F59E0B;color:#92400E!important;}
.gs360-action-audit{color:#374151!important;border-color:#D1D5DB;background:#F9FAFB;}
.gs360-action-audit:hover{background:#F3F4F6;border-color:#9CA3AF;color:#111827!important;}
.gs360-table td[data-label="IP"]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:12px;}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.3E
 * Modulo: Dashboard Super Admin / Tabella Stato aziende-accessi
 * Scopo: ottimizzare leggibilità tabella, ridurre ingombro colonne,
 * rifinire la colonna Azioni con pulsanti icona compatti e responsive.
 * Relazioni: SCAD360-SNIP-027.3D, DECISION-066, DECISION-071.
 * ===================================================== */
.gs360-access-table{
  table-layout:fixed!important;
  border-spacing:0;
}
.gs360-access-table th,
.gs360-access-table td{
  font-size:12px!important;
  line-height:1.32!important;
  padding:10px 8px!important;
  vertical-align:middle!important;
}
.gs360-access-table th{
  color:#4B5563;
  font-weight:900;
  background:#FBFCFE;
}
.gs360-access-table td{
  color:var(--gs360-primary);
}
.gs360-access-table td strong{
  font-size:12px;
  line-height:1.25;
}
.gs360-access-table .gs360-badge{
  font-size:11px;
  padding:5px 8px;
  line-height:1.15;
  white-space:normal;
  max-width:100%;
}
.gs360-access-table th:nth-child(1),
.gs360-access-table td:nth-child(1){width:38px;text-align:center;}
.gs360-access-table th:nth-child(2),
.gs360-access-table td:nth-child(2){width:78px;}
.gs360-access-table th:nth-child(3),
.gs360-access-table td:nth-child(3){width:118px;}
.gs360-access-table th:nth-child(4),
.gs360-access-table td:nth-child(4){width:92px;}
.gs360-access-table th:nth-child(5),
.gs360-access-table td:nth-child(5){width:82px;}
.gs360-access-table th:nth-child(6),
.gs360-access-table td:nth-child(6){width:105px;}
.gs360-access-table th:nth-child(7),
.gs360-access-table td:nth-child(7){width:100px;}
.gs360-access-table th:nth-child(8),
.gs360-access-table td:nth-child(8){width:112px;overflow-wrap:anywhere;}
.gs360-access-table th:nth-child(9),
.gs360-access-table td:nth-child(9){width:70px;text-align:center;}
.gs360-access-table th:nth-child(10),
.gs360-access-table td:nth-child(10){width:86px;text-align:center;}
.gs360-access-table th:nth-child(11),
.gs360-access-table td:nth-child(11){width:86px;}
.gs360-access-table th:nth-child(12),
.gs360-access-table td:nth-child(12){width:92px;}
.gs360-access-table th:nth-child(13),
.gs360-access-table td:nth-child(13){width:118px;}
.gs360-access-table th:nth-child(14),
.gs360-access-table td:nth-child(14){width:82px;}
.gs360-access-table th:nth-child(15),
.gs360-access-table td:nth-child(15){width:120px;text-align:center;}
.gs360-access-actions{
  display:grid!important;
  grid-template-columns:repeat(2,34px);
  gap:7px!important;
  min-width:0!important;
  width:max-content;
  margin:0 auto;
  justify-content:center;
  align-items:center;
}
.gs360-access-actions .gs360-action-pill{
  width:34px;
  height:34px;
  min-height:34px;
  padding:0!important;
  border-radius:12px;
  justify-content:center;
  align-items:center;
  box-shadow:0 3px 10px rgba(13,27,61,.05);
}
.gs360-access-actions .gs360-action-icon{
  width:20px;
  height:20px;
  flex-basis:20px;
  margin:0;
}
.gs360-access-actions .gs360-action-icon svg{
  width:15px;
  height:15px;
}
.gs360-access-actions .gs360-action-pill span{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.gs360-access-actions .gs360-action-pill:hover{
  transform:translateY(-1px) scale(1.03);
}
@media(max-width:1380px){
  .gs360-access-table th,
  .gs360-access-table td{font-size:11px!important;padding:9px 6px!important;}
  .gs360-access-table th:nth-child(6),
  .gs360-access-table td:nth-child(6){display:none;}
  .gs360-access-table th:nth-child(12),
  .gs360-access-table td:nth-child(12){display:none;}
}
@media(max-width:1180px){
  .gs360-access-table th:nth-child(1),
  .gs360-access-table td:nth-child(1),
  .gs360-access-table th:nth-child(9),
  .gs360-access-table td:nth-child(9){display:none;}
}
@media(max-width:760px){
  .gs360-access-table th,
  .gs360-access-table td{display:block!important;width:auto!important;text-align:left!important;font-size:13px!important;padding:10px 0!important;}
  .gs360-access-actions{grid-template-columns:1fr 1fr!important;width:100%!important;gap:8px!important;margin:0!important;}
  .gs360-access-actions .gs360-action-pill{
    width:100%!important;
    height:auto!important;
    min-height:38px!important;
    padding:9px 10px!important;
    border-radius:12px!important;
    justify-content:flex-start!important;
  }
  .gs360-access-actions .gs360-action-pill span{
    position:static!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    overflow:visible!important;
    clip:auto!important;
    white-space:normal!important;
  }
}
@media(max-width:420px){
  .gs360-access-actions{grid-template-columns:1fr!important;}
}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.3F
 * Modulo: UI Globale / Azioni operative icona + testo
 * Scopo: uniformare i pulsanti azione con icona e testo sempre visibile,
 * correggendo la colonna Azioni della dashboard Stato aziende/accessi
 * e fissando uno standard riutilizzabile su tutta la piattaforma.
 * Relazioni: DECISION-071, SCAD360-SNIP-027.3E.
 * ===================================================== */
.gs360-actions-cell{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:0;
}
.gs360-action-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center;
  gap:7px!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.gs360-action-pill span{
  display:inline-flex!important;
  align-items:center!important;
  position:static!important;
  width:auto!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  clip:auto!important;
  white-space:nowrap!important;
  border:0!important;
}
.gs360-action-icon{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
}
.gs360-action-icon svg{
  width:14px!important;
  height:14px!important;
}
.gs360-access-table th:nth-child(15),
.gs360-access-table td:nth-child(15){
  width:190px!important;
  min-width:190px!important;
  text-align:left!important;
}
.gs360-access-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(82px,1fr))!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  justify-content:stretch!important;
  align-items:stretch!important;
}
.gs360-access-actions .gs360-action-pill{
  width:100%!important;
  height:auto!important;
  min-height:34px!important;
  padding:8px 10px!important;
  border-radius:999px!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
.gs360-access-actions .gs360-action-icon{
  margin:0!important;
}
.gs360-access-actions .gs360-action-pill span{
  position:static!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  overflow:visible!important;
  clip:auto!important;
  white-space:nowrap!important;
}
.gs360-access-actions .gs360-action-pill:hover{
  transform:translateY(-1px)!important;
}
@media(max-width:1500px){
  .gs360-access-table th:nth-child(6),
  .gs360-access-table td:nth-child(6),
  .gs360-access-table th:nth-child(12),
  .gs360-access-table td:nth-child(12){display:none;}
  .gs360-access-table th:nth-child(15),
  .gs360-access-table td:nth-child(15){width:184px!important;min-width:184px!important;}
}
@media(max-width:1180px){
  .gs360-access-table th:nth-child(1),
  .gs360-access-table td:nth-child(1),
  .gs360-access-table th:nth-child(9),
  .gs360-access-table td:nth-child(9){display:none!important;}
  .gs360-access-actions{grid-template-columns:1fr!important;}
}
@media(max-width:760px){
  .gs360-actions-cell{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%;}
  .gs360-action-pill{width:100%!important;justify-content:flex-start!important;white-space:normal!important;}
  .gs360-action-pill span{white-space:normal!important;}
  .gs360-access-actions{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:420px){
  .gs360-actions-cell,
  .gs360-access-actions{grid-template-columns:1fr!important;}
}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-027.3G
 * Modulo: Dashboard / Registrazione / Notifiche onboarding
 * Scopo: uniformare nomenclatura registrazione, aggiungere azioni
 * alle aziende da attenzionare e stabilizzare layout azioni.
 * Relazioni: DECISION-072, SNIP-027.3F.
 * ===================================================== */
.gs360-attention-table th:last-child,
.gs360-attention-table td:last-child{
  width:230px!important;
  min-width:230px!important;
}
.gs360-attention-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(92px,1fr))!important;
  gap:8px!important;
  width:100%!important;
}
.gs360-attention-actions .gs360-action-pill{
  width:100%!important;
  justify-content:flex-start!important;
}
.gs360-table td .gs360-action-pill span,
.gs360-table td .gs360-action-icon{
  pointer-events:none;
}
@media(max-width:1180px){
  .gs360-attention-table th:last-child,
  .gs360-attention-table td:last-child{width:auto!important;min-width:0!important;}
  .gs360-attention-actions{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:760px){
  .gs360-attention-actions{grid-template-columns:1fr!important;}
}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-028
 * Modulo: Dashboard Azienda Cliente
 * Scopo: area aziendale dedicata, separata dal Centro Super Admin,
 * senza riferimenti CMS visibili agli utenti azienda.
 * ===================================================== */
body.gs360-app-page.admin-bar{
  margin-top:0!important;
}
body.gs360-app-page #wpadminbar{
  display:none!important;
}
.gs360-company-shell{
  min-height:100vh;
  background:#f3f6fa;
  color:#06163d;
  display:flex;
  font-family:inherit;
}
.gs360-company-sidebar{
  width:260px;
  background:#0d1b3d;
  color:#fff;
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  gap:22px;
  position:sticky;
  top:0;
  min-height:100vh;
}
.gs360-company-brand img{
  max-width:190px;
  height:auto;
  display:block;
  margin-bottom:10px;
}
.gs360-company-brand span{
  color:#c9d5e8;
  font-weight:700;
  font-size:13px;
}
.gs360-company-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.gs360-company-nav a{
  color:#f8fbff;
  text-decoration:none;
  border-radius:14px;
  padding:12px 13px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  transition:all .18s ease;
}
.gs360-company-nav a:hover,
.gs360-company-nav a.active{
  background:#143f3b;
  color:#fff;
}
.gs360-company-nav svg{
  width:18px;
  height:18px;
  fill:currentColor;
  flex:0 0 18px;
}
.gs360-company-footer{
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.18);
  padding-top:16px;
  color:#dce7f4;
  font-weight:800;
}
.gs360-company-footer small{
  color:#aebbd0;
  font-weight:600;
}
.gs360-company-main{
  flex:1;
  padding:36px clamp(18px,4vw,56px);
  max-width:1500px;
  margin:0 auto;
}
.gs360-company-topbar{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:24px;
}
.gs360-company-topbar h1{
  margin:0 0 6px 0;
  font-size:clamp(28px,3vw,42px);
  line-height:1.1;
  color:#06163d;
}
.gs360-company-topbar p{
  margin:0;
  color:#66748a;
  font-size:16px;
}
.gs360-company-hero{
  background:#fff;
  border:1px solid #dbe3ea;
  border-radius:24px;
  padding:28px;
  box-shadow:0 18px 46px rgba(13,27,61,.08);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}
.gs360-company-hero h2{
  margin:0 0 10px 0;
  color:#06163d;
  font-size:30px;
}
.gs360-company-hero p{
  margin:0;
  color:#5e6d84;
  font-size:16px;
  line-height:1.6;
  max-width:860px;
}
.gs360-company-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}
.gs360-company-card,
.gs360-company-modules article{
  background:#fff;
  border:1px solid #dbe3ea;
  border-radius:18px;
  padding:20px;
  box-shadow:0 12px 32px rgba(13,27,61,.06);
}
.gs360-company-card span{
  display:block;
  color:#6b7280;
  font-size:13px;
  margin-bottom:8px;
}
.gs360-company-card strong{
  display:block;
  color:#06163d;
  font-size:18px;
  line-height:1.35;
}
.gs360-company-modules{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.gs360-company-modules h3{
  margin:0 0 8px 0;
  color:#06163d;
  font-size:20px;
}
.gs360-company-modules p{
  margin:0;
  color:#66748a;
  line-height:1.55;
}
@media(max-width:1100px){
  .gs360-company-shell{display:block;}
  .gs360-company-sidebar{position:relative;width:auto;min-height:auto;border-radius:0 0 24px 24px;}
  .gs360-company-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
  .gs360-company-grid,.gs360-company-modules{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  .gs360-company-main{padding:22px 14px;}
  .gs360-company-topbar,.gs360-company-hero{display:block;}
  .gs360-company-topbar .gs360-btn-secondary{margin-top:12px;}
  .gs360-company-nav{grid-template-columns:1fr 1fr;}
  .gs360-company-grid,.gs360-company-modules{grid-template-columns:1fr;}
}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-028A
 * Modulo: Dashboard Azienda Cliente - Brand header, loghi e footer versione.
 * Scopo: allineare l'area azienda cliente al brand Scadenze360 con logo
 * orizzontale centrale, logo verticale nella sidebar e copyright SINTESI.
 * ===================================================== */
.gs360-company-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding-bottom:8px;
}
.gs360-company-brand-logo{
  width:170px!important;
  max-width:100%!important;
  height:auto!important;
  display:block;
  object-fit:contain;
}
.gs360-company-brand span{
  display:block;
  color:#dce7f4;
  font-weight:800;
  font-size:13px;
  letter-spacing:.01em;
}
.gs360-company-footer{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:auto;
  border-top:1px solid rgba(255,255,255,.22);
  padding-top:18px;
  color:#ffffff;
}
.gs360-company-footer strong{
  display:block;
  color:#ffffff;
  font-size:20px;
  line-height:1.15;
  font-weight:900;
}
.gs360-company-footer span{
  display:block;
  color:#ffffff;
  font-size:14px;
  font-weight:900;
}
.gs360-company-footer small{
  color:#ffffff;
  font-weight:700;
  font-size:13px;
  line-height:1.35;
}
.gs360-company-hero-brand{
  position:relative;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:260px;
  padding:34px 32px 30px;
  overflow:hidden;
}
.gs360-company-hero-brand::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 0%,rgba(108,192,74,.10),transparent 45%);
  pointer-events:none;
}
.gs360-company-status{
  position:absolute;
  top:28px;
  right:28px;
  z-index:1;
}
.gs360-company-hero-logo{
  position:relative;
  z-index:1;
  width:min(560px,78%);
  max-height:145px;
  object-fit:contain;
  display:block;
  margin:0 auto 18px;
}
.gs360-company-hero-copy{
  position:relative;
  z-index:1;
}
.gs360-company-hero-copy h2{
  margin:0 0 12px 0;
  color:#06163d;
  font-size:clamp(28px,3vw,40px);
  line-height:1.08;
  font-weight:900;
}
.gs360-company-hero-copy p{
  max-width:760px;
  margin:0 auto!important;
  color:#43536b;
  font-size:17px;
  line-height:1.55;
}
.gs360-company-topbar{
  display:none;
}
@media(max-width:1100px){
  .gs360-company-sidebar{position:relative;}
  .gs360-company-brand{align-items:center;text-align:center;}
  .gs360-company-footer{text-align:center;align-items:center;}
  .gs360-company-hero-brand{min-height:230px;}
  .gs360-company-status{position:static;align-self:flex-end;margin-bottom:14px;}
}
@media(max-width:700px){
  .gs360-company-hero-brand{padding:26px 18px;min-height:auto;}
  .gs360-company-hero-logo{width:92%;max-height:100px;margin-bottom:12px;}
  .gs360-company-hero-copy h2{font-size:26px;}
  .gs360-company-hero-copy p{font-size:15px;}
  .gs360-company-status{align-self:center;}
  .gs360-company-brand-logo{width:145px!important;}
}

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029A
 * Modulo: Dashboard Azienda Cliente - Navigazione sezioni e Modulo Scadenze Base.
 * Scopo: rendere navigabili Dashboard, Scadenze, Documenti, Notifiche, Report e Utenti;
 * predisporre KPI, filtri, lista base e viste operative del modulo Scadenze.
 * Relazioni: SNIP-028A, DECISION-075/076/077, futuro SNIP-029B Categorie / Servizi.
 * ===================================================== */
.gs360-company-view{display:none;animation:gs360FadeIn .18s ease both;}
.gs360-company-view.is-active{display:block;}
@keyframes gs360FadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.gs360-company-modules-clickable a{display:block;color:inherit;text-decoration:none;}
.gs360-company-modules-clickable a article{height:100%;transition:all .18s ease;}
.gs360-company-modules-clickable a:hover article{transform:translateY(-2px);border-color:#6cc04a;box-shadow:0 18px 42px rgba(13,27,61,.10);}
.gs360-company-module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;background:#fff;border:1px solid #dbe3ea;border-radius:24px;padding:26px 28px;margin-bottom:18px;box-shadow:0 18px 46px rgba(13,27,61,.08);}
.gs360-company-module-head h2{margin:0 0 8px;color:#06163d;font-size:clamp(30px,3vw,42px);line-height:1.08;font-weight:900;}
.gs360-company-module-head p{margin:0;color:#5e6d84;line-height:1.6;font-size:16px;max-width:850px;}
.gs360-kicker{margin:0 0 8px!important;color:#26a843!important;text-transform:uppercase;letter-spacing:.08em;font-size:12px!important;font-weight:900!important;}
.gs360-company-module-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;min-width:320px;}
.gs360-company-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:18px;}
.gs360-company-kpi{background:#fff;border:1px solid #dbe3ea;border-radius:18px;padding:18px 18px;box-shadow:0 12px 32px rgba(13,27,61,.06);}
.gs360-company-kpi span{display:block;color:#6b7280;font-size:13px;font-weight:700;margin-bottom:8px;}
.gs360-company-kpi strong{display:block;color:#06163d;font-size:32px;line-height:1;font-weight:900;}
.gs360-company-panel{background:#fff;border:1px solid #dbe3ea;border-radius:22px;padding:22px;box-shadow:0 16px 42px rgba(13,27,61,.07);margin-bottom:18px;}
.gs360-company-panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px;}
.gs360-company-panel-head h3{margin:0;color:#06163d;font-size:22px;font-weight:900;}
.gs360-company-panel-head p{margin:0;color:#66748a;line-height:1.55;max-width:720px;}
.gs360-company-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px;}
.gs360-company-filter-grid select,.gs360-company-filter-grid input{width:100%;height:44px;border:1px solid #d6e0ea;border-radius:12px;background:#f8fbff;color:#66748a;padding:0 12px;font-weight:700;}
.gs360-company-empty{background:#f8fbff;border:1px dashed #cfdbe8;border-radius:18px;padding:26px;text-align:center;color:#66748a;}
.gs360-company-empty h4{margin:0 0 8px;color:#06163d;font-size:20px;font-weight:900;}
.gs360-company-empty p{margin:0;line-height:1.6;}
.gs360-company-table th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:#43536b;background:#f8fbff;}
.gs360-company-table td{vertical-align:middle;}
.gs360-actions-compact{display:flex;gap:8px;flex-wrap:wrap;}
.gs360-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:8px 12px;border-radius:999px;border:1px solid #dbe3ea;background:#fff;color:#0d1b3d;text-decoration:none;font-weight:900;font-size:13px;line-height:1.1;white-space:nowrap;}
.gs360-action-btn svg{width:15px;height:15px;fill:currentColor;flex:0 0 15px;}
.gs360-action-btn.is-view{background:#eff6ff;color:#0f55d8;border-color:#bcd5ff;}
.gs360-action-btn.is-approve{background:#eefbf3;color:#159947;border-color:#bfeccd;}
.gs360-action-btn.is-audit{background:#f8fafc;color:#344256;border-color:#d7e0ea;}
.gs360-action-btn:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(13,27,61,.08);}
@media(max-width:1250px){.gs360-company-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.gs360-company-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.gs360-company-module-head{display:block}.gs360-company-module-actions{justify-content:flex-start;min-width:0;margin-top:18px}}
@media(max-width:800px){.gs360-company-kpi-grid,.gs360-company-filter-grid{grid-template-columns:1fr}.gs360-company-panel-head{display:block}.gs360-company-module-actions .gs360-action-btn{width:100%;}.gs360-company-table thead{display:none}.gs360-company-table,.gs360-company-table tbody,.gs360-company-table tr,.gs360-company-table td{display:block;width:100%}.gs360-company-table tr{border:1px solid #dbe3ea;border-radius:16px;margin-bottom:12px;overflow:hidden;background:#fff}.gs360-company-table td{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #eef3f7;padding:12px}.gs360-company-table td::before{content:attr(data-label);font-weight:900;color:#66748a}.gs360-company-table td:last-child{border-bottom:0}.gs360-actions-compact{justify-content:flex-end}.gs360-action-btn{white-space:normal;text-align:center}}
/* Fine SCAD360-SNIP-029A */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029A1
 * Modulo: Dashboard Azienda Cliente - Card Utenti e icone sezioni.
 * Scopo: completare la home azienda con la card Utenti e rendere
 * ogni card immediatamente riconoscibile tramite icona coerente.
 * Relazioni: SNIP-028A, SNIP-029A, DECISION-078.
 * ===================================================== */
.gs360-company-info-grid .gs360-company-card-iconed{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:86px;
}
.gs360-company-card-iconed > .gs360-company-card-icon{
  width:46px;
  height:46px;
  min-width:46px;
  border-radius:16px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  margin:0!important;
  background:#eefbf3;
  color:#21a844!important;
  box-shadow:inset 0 0 0 1px rgba(33,168,68,.16);
}
.gs360-company-card-iconed > .gs360-company-card-icon .gs360-icon{
  margin:0!important;
  color:inherit!important;
  width:22px;
  height:22px;
  display:inline-flex!important;
}
.gs360-company-card-iconed > .gs360-company-card-icon svg{
  width:22px;
  height:22px;
  fill:currentColor;
  stroke:currentColor;
}
.gs360-company-card-iconed > div > span{
  display:block;
  color:#6b7280;
  font-size:13px;
  margin-bottom:8px;
}
.gs360-company-card-iconed > div > strong{
  display:block;
}
.gs360-company-card-iconed > .gs360-company-card-icon.is-company{background:#eefbf3;color:#21a844!important;}
.gs360-company-card-iconed > .gs360-company-card-icon.is-code{background:#eff6ff;color:#0f55d8!important;}
.gs360-company-card-iconed > .gs360-company-card-icon.is-role{background:#f5f3ff;color:#6d4aff!important;}
.gs360-company-card-iconed > .gs360-company-card-icon.is-status{background:#ecfdf5;color:#149447!important;}
.gs360-company-module-cards{
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}
.gs360-company-module-cards article{
  display:flex;
  gap:16px;
  align-items:flex-start;
  min-height:132px;
  padding:22px;
}
.gs360-module-card-icon{
  width:54px;
  height:54px;
  min-width:54px;
  border-radius:18px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  margin:0!important;
  background:#eefbf3;
  color:#21a844!important;
  box-shadow:inset 0 0 0 1px rgba(33,168,68,.16),0 8px 20px rgba(13,27,61,.06);
}
.gs360-module-card-icon .gs360-icon{
  margin:0!important;
  color:inherit!important;
  display:inline-flex!important;
  width:26px;
  height:26px;
}
.gs360-module-card-icon svg{
  width:26px;
  height:26px;
  fill:currentColor;
  stroke:currentColor;
}
.gs360-module-card-icon.is-deadlines{background:#eefbf3;color:#21a844!important;}
.gs360-module-card-icon.is-documents{background:#eff6ff;color:#0f55d8!important;}
.gs360-module-card-icon.is-notices{background:#fff7ed;color:#f07800!important;}
.gs360-module-card-icon.is-report{background:#f5f3ff;color:#6d4aff!important;}
.gs360-module-card-icon.is-users{background:#ecfeff;color:#0891b2!important;}
.gs360-company-module-cards h3{
  margin-top:2px;
}
@media(max-width:700px){
  .gs360-company-info-grid .gs360-company-card-iconed,
  .gs360-company-module-cards article{align-items:flex-start;}
  .gs360-company-card-iconed > .gs360-company-card-icon{width:42px;height:42px;min-width:42px;border-radius:14px;}
  .gs360-module-card-icon{width:48px;height:48px;min-width:48px;border-radius:16px;}
}
/* Fine SCAD360-SNIP-029A1 */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029B
 * Modulo: Categorie / Servizi Scadenze.
 * Scopo: gestione catalogo standard e categorie aziendali personalizzate
 * nella Dashboard Azienda Cliente.
 * Relazioni: wpscad360_categorie_scadenza, SNIP-029A, DECISION-080.
 * ===================================================== */
.gs360-company-categories-layout{
  display:grid;
  grid-template-columns:minmax(300px,.82fr) minmax(360px,1.18fr);
  gap:22px;
  align-items:start;
}
.gs360-company-form{
  display:grid;
  gap:16px;
}
.gs360-company-form label{
  display:grid;
  gap:8px;
  font-weight:900;
  color:#06163d;
  font-size:13px;
}
.gs360-company-form input,
.gs360-company-form textarea,
.gs360-company-form select{
  width:100%;
  border:1px solid #dbe3ea;
  border-radius:14px;
  background:#fff;
  min-height:44px;
  padding:11px 13px;
  font-size:14px;
  color:#0d1b3d;
  outline:0;
  box-sizing:border-box;
}
.gs360-company-form textarea{
  min-height:92px;
  resize:vertical;
}
.gs360-company-form input:focus,
.gs360-company-form textarea:focus,
.gs360-company-form select:focus{
  border-color:#2faa4f;
  box-shadow:0 0 0 4px rgba(47,170,79,.12);
}
.gs360-company-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.gs360-company-help{
  margin:0;
  color:#66748a;
  font-size:13px;
  line-height:1.55;
}
.gs360-company-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.gs360-category-list{
  display:grid;
  gap:10px;
  max-height:560px;
  overflow:auto;
  padding-right:4px;
}
.gs360-category-item{
  display:grid;
  grid-template-columns:12px 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border:1px solid #dbe3ea;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 18px rgba(13,27,61,.04);
}
.gs360-category-item.is-system{
  background:linear-gradient(90deg,#f8fbff 0%,#ffffff 100%);
}
.gs360-category-item.is-custom{
  background:linear-gradient(90deg,#f4fff7 0%,#ffffff 100%);
}
.gs360-category-color{
  display:block;
  width:12px;
  height:38px;
  border-radius:999px;
  box-shadow:inset 0 0 0 1px rgba(13,27,61,.08);
}
.gs360-category-item strong{
  display:block;
  color:#06163d;
  font-size:14px;
  font-weight:900;
  margin-bottom:3px;
}
.gs360-category-item p{
  margin:0;
  color:#66748a;
  font-size:12px;
  line-height:1.45;
}
@media(max-width:1100px){
  .gs360-company-categories-layout{grid-template-columns:1fr;}
}
@media(max-width:700px){
  .gs360-company-form-row{grid-template-columns:1fr;}
  .gs360-category-item{grid-template-columns:10px 1fr;}
  .gs360-category-item .gs360-badge{grid-column:2;justify-self:start;}
  .gs360-company-form-actions .gs360-action-btn{width:100%;}
}
/* Fine SCAD360-SNIP-029B */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029B1
 * Modulo: Footer servizio azienda, logout e presenza online.
 * Scopo: mostrare nell'Area Azienda Cliente un riepilogo stabile del
 * servizio attivo, del piano provvisorio, degli utenti abilitati e
 * degli utenti online, con uscita dedicata dalla piattaforma.
 * Relazioni: wpscad360_aziende, wpscad360_utenti_aziende, SNIP-029B,
 * futura gestione piani/abbonamenti/sessioni SNIP-030.
 * ===================================================== */
.gs360-company-logout{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:38px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.22);
  color:#ffffff!important;
  text-decoration:none!important;
  font-weight:900;
  transition:all .18s ease;
}
.gs360-company-logout:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-1px);
}
.gs360-company-logout .gs360-action-icon,
.gs360-company-logout .gs360-icon{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.gs360-company-logout svg{
  width:16px;
  height:16px;
  fill:currentColor;
}
.gs360-company-service-footer{
  position:relative;
  display:grid;
  grid-template-columns:minmax(180px,.9fr) minmax(0,3.2fr) auto;
  gap:16px;
  align-items:center;
  margin-top:32px;
  padding:18px;
  background:#ffffff;
  border:1px solid #dbe3ea;
  border-radius:22px;
  box-shadow:0 16px 42px rgba(13,27,61,.07);
}
.gs360-service-footer-head{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.gs360-service-footer-kicker{
  color:#26a843;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.gs360-service-footer-head strong{
  color:#06163d;
  font-size:16px;
  line-height:1.25;
  font-weight:900;
}
.gs360-service-footer-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(120px,1fr));
  gap:10px;
}
.gs360-service-footer-grid > div{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  grid-template-areas:"icon label" "icon value";
  gap:2px 8px;
  align-items:center;
  min-height:52px;
  padding:10px 12px;
  background:#f8fbff;
  border:1px solid #e5edf5;
  border-radius:16px;
}
.gs360-service-footer-grid .gs360-icon,
.gs360-service-footer-grid .gs360-action-icon{
  grid-area:icon;
  width:20px;
  height:20px;
  color:#22a84b;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.gs360-service-footer-grid svg{
  width:20px;
  height:20px;
  fill:currentColor;
  stroke:currentColor;
}
.gs360-service-footer-grid span{
  grid-area:label;
  color:#66748a;
  font-size:11px;
  line-height:1.2;
  font-weight:800;
}
.gs360-service-footer-grid strong{
  grid-area:value;
  color:#06163d;
  font-size:13px;
  line-height:1.25;
  font-weight:900;
  overflow-wrap:anywhere;
}
.gs360-service-footer-user{
  grid-column:auto;
}
.gs360-service-footer-logout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:10px 16px;
  border-radius:999px;
  color:#ffffff!important;
  background:#0d1b3d;
  border:1px solid #0d1b3d;
  text-decoration:none!important;
  font-weight:900;
  white-space:nowrap;
  transition:all .18s ease;
}
.gs360-service-footer-logout:hover{
  background:#12295c;
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(13,27,61,.16);
}
.gs360-service-footer-logout .gs360-action-icon,
.gs360-service-footer-logout .gs360-icon{
  width:16px;
  height:16px;
  display:inline-flex;
}
.gs360-service-footer-logout svg{
  width:16px;
  height:16px;
  fill:currentColor;
}
@media(max-width:1350px){
  .gs360-company-service-footer{grid-template-columns:1fr;align-items:stretch;}
  .gs360-service-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .gs360-service-footer-logout{justify-self:start;}
}
@media(max-width:800px){
  .gs360-service-footer-grid{grid-template-columns:1fr;}
  .gs360-service-footer-logout{width:100%;}
}
/* Fine SCAD360-SNIP-029B1 */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029B1.1
 * Modulo: Footer servizio azienda sempre visibile.
 * Scopo: mantenere il riepilogo piano/servizio/utenti/sessioni
 * sempre disponibile nell'Area Azienda Cliente, senza costringere
 * l'utente a scorrere fino al fondo della pagina.
 * Relazioni: SNIP-029B1, DECISION-081, DECISION-082,
 * wpscad360_aziende, wpscad360_utenti_aziende.
 * Note developer: il footer rimane fuori dalle singole viste hash
 * (#dashboard, #scadenze, #documenti ecc.) e viene fissato in basso
 * all'area contenuti. Il padding del main evita sovrapposizioni.
 * ===================================================== */
.gs360-company-main{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  padding-bottom:150px!important;
}
.gs360-company-service-footer.gs360-company-service-footer-fixed{
  position:fixed;
  left:calc(260px + clamp(18px,4vw,56px));
  right:clamp(18px,4vw,56px);
  bottom:18px;
  z-index:50;
  max-width:calc(1500px - (clamp(18px,4vw,56px) * 2));
  margin-top:0;
  grid-template-columns:minmax(170px,.72fr) minmax(0,3fr) auto;
  backdrop-filter:blur(12px);
  background:rgba(255,255,255,.96);
  box-shadow:0 20px 55px rgba(13,27,61,.18);
}
.gs360-company-service-footer-fixed .gs360-service-footer-grid{
  grid-template-columns:repeat(7,minmax(100px,1fr));
}
.gs360-company-service-footer-fixed .gs360-service-footer-grid > div{
  min-height:46px;
  padding:8px 10px;
}
.gs360-company-service-footer-fixed .gs360-service-footer-head strong{
  font-size:14px;
}
.gs360-company-service-footer-fixed .gs360-service-footer-grid strong{
  font-size:12px;
}
.gs360-company-service-footer-fixed .gs360-service-footer-grid span{
  font-size:10px;
}
.gs360-company-service-footer-fixed .gs360-service-footer-logout{
  min-height:38px;
  padding:8px 14px;
}
@media(max-width:1350px){
  .gs360-company-main{padding-bottom:250px!important;}
  .gs360-company-service-footer.gs360-company-service-footer-fixed{
    left:calc(260px + 18px);
    right:18px;
    grid-template-columns:1fr;
  }
  .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:1000px){
  .gs360-company-service-footer.gs360-company-service-footer-fixed{
    position:static;
    left:auto;
    right:auto;
    bottom:auto;
    max-width:none;
    margin-top:28px;
  }
  .gs360-company-main{padding-bottom:24px!important;}
}
@media(max-width:800px){
  .gs360-company-service-footer-fixed .gs360-service-footer-grid{grid-template-columns:1fr;}
}
/* Fine SCAD360-SNIP-029B1.1 */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029B1.2
 * Modulo: Fix visibilità riepilogo servizio aziendale.
 * Scopo: forzare la visualizzazione del riepilogo servizio in area cliente.
 * Contesto: alcuni temi o layout possono interferire con elementi footer;
 * il markup è stato convertito in DIV role=contentinfo e qui si applica
 * display esplicito, z-index e dimensionamento sicuro.
 * Relazioni: SNIP-029B1, SNIP-029B1.1, DECISION-081/082/083.
 * Tabelle coinvolte indirettamente: wpscad360_aziende, wpscad360_utenti_aziende.
 * ===================================================== */
.gs360-company-service-footer.gs360-company-service-footer-fixed{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer{
  display:grid!important;
}
/* Fine SCAD360-SNIP-029B1.2 */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029D
 * Modulo: Form Nuova Scadenza - Area Azienda Cliente.
 * Scopo: definire layout, tab guidati, validazione visiva e sezioni
 * operative della scheda scadenza unica.
 * Contesto: Dashboard Azienda Cliente / Modulo Scadenze.
 * Relazioni: wpscad360_scadenze, wpscad360_categorie_scadenza,
 * wpscad360_scadenze_condivisioni, wpscad360_scadenze_alert,
 * futuro SNIP-029E salvataggio scadenza.
 * Note developer: questo CSS non abilita il salvataggio; gestisce solo
 * UI/UX del form predisposto. Mantenere icone, colori e responsive
 * coerenti con SCAD360-DECISION-079 e codice commentato DECISION-082.
 * ===================================================== */
.gs360-deadline-form-panel{
  padding:24px!important;
}
.gs360-deadline-stepper{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:0 0 22px;
  padding:8px;
  border:1px solid #dbe5f0;
  border-radius:18px;
  background:#f8fbff;
}
.gs360-deadline-stepper button{
  appearance:none;
  border:1px solid #dbe5f0;
  border-radius:999px;
  background:#fff;
  color:#0d1b3d;
  padding:9px 14px;
  font-weight:800;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  transition:.18s ease;
}
.gs360-deadline-stepper button span{
  width:24px;
  height:24px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#eef6ff;
  color:#1457b7;
  font-size:12px;
}
.gs360-deadline-stepper button:hover,
.gs360-deadline-stepper button.is-active{
  border-color:#2faa4f;
  background:#2faa4f;
  color:#fff;
  box-shadow:0 8px 18px rgba(47,170,79,.22);
}
.gs360-deadline-stepper button.is-active span{
  background:#fff;
  color:#2faa4f;
}
.gs360-deadline-tab{
  display:none;
}
.gs360-deadline-tab.is-active{
  display:block;
}
.gs360-form-grid{
  display:grid;
  gap:16px;
  margin:14px 0;
}
.gs360-form-grid.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.gs360-form-grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.gs360-deadline-form label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  font-weight:800;
  color:#0d1b3d;
}
.gs360-deadline-form label span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.gs360-deadline-form input,
.gs360-deadline-form select,
.gs360-deadline-form textarea{
  width:100%;
  border:1px solid #d6e1ee;
  border-radius:12px;
  background:#fff;
  min-height:44px;
  padding:10px 12px;
  color:#0d1b3d;
  font-weight:600;
  outline:none;
  box-shadow:0 8px 22px rgba(13,27,61,.04);
}
.gs360-deadline-form textarea{
  min-height:112px;
  resize:vertical;
}
.gs360-deadline-form input:focus,
.gs360-deadline-form select:focus,
.gs360-deadline-form textarea:focus{
  border-color:#2faa4f;
  box-shadow:0 0 0 4px rgba(47,170,79,.12);
}
.gs360-deadline-form .is-invalid{
  border-color:#e5484d!important;
  box-shadow:0 0 0 4px rgba(229,72,77,.12)!important;
}
.gs360-deadline-form small[data-gs360-error]{
  color:#e5484d;
  font-size:12px;
  min-height:14px;
  font-weight:700;
}
.gs360-upload-placeholder{
  border:1px dashed #b7c7da;
  background:#f7fbff;
  border-radius:16px;
  padding:22px;
  text-align:center;
  color:#58708d;
  margin:14px 0;
}
.gs360-upload-placeholder strong{
  display:block;
  color:#0d1b3d;
  font-size:15px;
  margin-bottom:6px;
}
.gs360-share-options{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:14px 0;
}
.gs360-share-options label{
  flex-direction:row;
  align-items:center;
  gap:8px;
  border:1px solid #dbe5f0;
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  box-shadow:0 8px 22px rgba(13,27,61,.04);
}
.gs360-share-options input{
  width:auto;
  min-height:auto;
  box-shadow:none;
}
.gs360-deadline-form-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #e3edf7;
}
.gs360-action-btn.is-disabled{
  opacity:.55;
  cursor:not-allowed;
  background:#eef2f7!important;
  color:#64748b!important;
  border-color:#d7e0ea!important;
}
@media(max-width:980px){
  .gs360-form-grid.two,
  .gs360-form-grid.three{
    grid-template-columns:1fr;
  }
  .gs360-deadline-stepper{
    align-items:stretch;
  }
  .gs360-deadline-stepper button{
    flex:1 1 180px;
    justify-content:center;
  }
  .gs360-deadline-form-actions{
    justify-content:stretch;
  }
  .gs360-deadline-form-actions .gs360-action-btn{
    width:100%;
    justify-content:center;
  }
}
/* Fine SCAD360-SNIP-029D */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029D1
 * Modulo: Rifinitura Form Nuova Scadenza.
 * Scopo: migliorare UX della validazione inline, pulire il pulsante bozza
 * e aumentare la distanza visiva dal riepilogo servizio aziendale.
 * Contesto: Dashboard Azienda Cliente / vista #nuova-scadenza.
 * Relazioni: SNIP-029D form nuova scadenza, SNIP-029E futuro salvataggio,
 * DECISION-082 standard codice commentato developer.
 * Tabelle coinvolte indirettamente: wpscad360_scadenze, wpscad360_categorie_scadenza,
 * wpscad360_utenti_aziende.
 * ===================================================== */
.gs360-deadline-form:not(.was-validated) .is-invalid{
  border-color:#d6e1ee!important;
  box-shadow:0 8px 22px rgba(13,27,61,.04)!important;
}
.gs360-deadline-form:not(.was-validated) small[data-gs360-error]{
  color:transparent;
}
.gs360-deadline-form.was-validated small[data-gs360-error]{
  color:#e5484d;
}
.gs360-company-view[data-gs360-company-view="nuova-scadenza"] + .gs360-company-service-footer,
.gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  transition:box-shadow .2s ease, transform .2s ease;
}
.gs360-deadline-form-actions .gs360-action-btn.is-disabled span{
  white-space:nowrap;
}
/* Fine SCAD360-SNIP-029D1 */

/* =============================================================================
   SCAD360-SNIP-029E - Feedback salvataggio scadenza e pulsante salva
   Scopo: rendere visibile all'utente azienda l'esito del salvataggio scadenza.
   Contesto: Dashboard Azienda Cliente / Modulo Scadenze / Form Nuova Scadenza.
   Relazioni: wpscad360_scadenze, audit scadenza_creata, DECISION-082 codice commentato.
   ============================================================================= */
.gs360-company-message{
  border-radius:16px;
  padding:14px 18px;
  margin:14px 0 18px;
  font-weight:800;
  line-height:1.45;
  box-shadow:0 14px 34px rgba(13,27,61,.06);
}
.gs360-company-message.is-success{
  border:1px solid rgba(47,170,79,.25);
  background:linear-gradient(135deg,rgba(47,170,79,.10),rgba(47,170,79,.04));
  color:#12602b;
}
.gs360-company-message.is-error{
  border:1px solid rgba(224,63,78,.25);
  background:linear-gradient(135deg,rgba(224,63,78,.10),rgba(224,63,78,.04));
  color:#9b1c2a;
}
.gs360-action-btn.is-save{
  border-color:#0e234f;
  background:#0e234f;
  color:#fff;
}
.gs360-action-btn.is-save svg{fill:currentColor;}
.gs360-action-btn.is-save:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(14,35,79,.18);
}

/* =============================================================================
   SCAD360-SNIP-029F - Dettaglio Scadenza e azioni elenco
   Scopo: rendere professionale la scheda dettaglio scadenza aziendale,
   uniformare le azioni dell'elenco e preparare i comandi modifica/completa/archivia.
   Contesto: Dashboard Azienda Cliente / Modulo Scadenze.
   Relazioni: wpscad360_scadenze, wpscad360_scadenze_alert,
   wpscad360_scadenze_condivisioni, wpscad360_audit_log, DECISION-082.
   ============================================================================= */
.gs360-actions-compact-wide{display:flex;flex-wrap:wrap;gap:7px;align-items:center;}
.gs360-actions-compact-wide .gs360-action-btn{min-height:32px;padding:7px 10px;font-size:12px;border-radius:999px;}
.gs360-action-btn.is-disabled,.gs360-action-btn[aria-disabled="true"]{opacity:.58;cursor:not-allowed;filter:saturate(.8);}
.gs360-action-btn.is-disabled:hover,.gs360-action-btn[aria-disabled="true"]:hover{transform:none;box-shadow:none;}
.gs360-deadline-detail-head{align-items:flex-start;}
.gs360-deadline-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0;}
.gs360-deadline-detail-summary>div{border:1px solid #d9e4f1;border-radius:16px;background:#fff;padding:14px 16px;box-shadow:0 16px 32px rgba(13,27,61,.06);}
.gs360-deadline-detail-summary span,.gs360-deadline-detail-card dt{display:block;margin:0 0 6px;color:#64748b;font-size:12px;font-weight:800;}
.gs360-deadline-detail-summary strong,.gs360-deadline-detail-card dd{margin:0;color:#071b4a;font-size:15px;font-weight:900;}
.gs360-deadline-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0;}
.gs360-deadline-detail-card{padding:18px!important;}
.gs360-deadline-detail-card h3{margin:0 0 14px;color:#071b4a;font-size:19px;font-weight:900;}
.gs360-deadline-detail-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;}
.gs360-deadline-detail-card dl>div{border:1px solid #e2eaf4;border-radius:14px;background:#f8fbff;padding:12px 14px;min-height:70px;}
.gs360-deadline-detail-text{margin-top:14px;border:1px solid #e2eaf4;border-radius:14px;background:#fff;padding:13px 15px;}
.gs360-deadline-detail-text span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:6px;}
.gs360-deadline-detail-text p{margin:0;color:#071b4a;line-height:1.6;font-weight:650;}
.gs360-company-empty.is-small{padding:18px;min-height:unset;}
@media (max-width:1100px){.gs360-deadline-detail-summary,.gs360-deadline-detail-grid{grid-template-columns:1fr;}}
@media (max-width:760px){.gs360-deadline-detail-card dl{grid-template-columns:1fr;}.gs360-actions-compact-wide .gs360-action-btn{width:100%;justify-content:center;}}
/* Fine SCAD360-SNIP-029F */

/* =============================================================================
   GESTIONE SCADENZE360
   SCAD360-SNIP-029F1 - Rifinitura Dettaglio Scadenza / Alert / Footer
   Scopo: migliorare leggibilità della scheda dettaglio scadenza, centrare il
   riepilogo servizio aziendale nell'area contenuti e rendere più chiara la sezione
   Alert programmati.
   Contesto: Dashboard Azienda Cliente / Modulo Scadenze.
   Relazioni: wpscad360_scadenze, wpscad360_scadenze_alert, footer servizio azienda,
   DECISION-082 codice commentato developer.
   ============================================================================= */
.gs360-company-view[data-gs360-company-view="dettaglio-scadenza"]{
  width:min(1180px,100%);
  margin:0 auto;
}
.gs360-company-view[data-gs360-company-view="dettaglio-scadenza"] .gs360-company-module-head{
  align-items:center;
  padding:22px 24px;
  border:1px solid #d8e4f1;
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 18px 44px rgba(13,27,61,.08);
}
.gs360-company-view[data-gs360-company-view="dettaglio-scadenza"] .gs360-company-module-head h2{
  font-size:clamp(25px,2vw,36px);
  letter-spacing:-.03em;
}
.gs360-deadline-detail-summary{
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:16px;
  margin:18px 0 18px;
}
.gs360-deadline-detail-summary>div{
  min-height:82px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-color:#d7e6f4;
  background:linear-gradient(180deg,#fff 0%,#f7fbff 100%);
}
.gs360-deadline-detail-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:18px;
  align-items:start;
}
.gs360-deadline-detail-card{
  border-radius:20px!important;
  overflow:hidden;
}
.gs360-deadline-detail-card h3{
  display:flex;
  align-items:center;
  gap:8px;
  padding-bottom:12px;
  border-bottom:1px solid #edf2f8;
}
.gs360-deadline-detail-card h3:before{
  content:"";
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:999px;
  background:#28a745;
  box-shadow:0 0 0 5px rgba(40,167,69,.12);
}
.gs360-deadline-detail-card dl>div{
  min-height:76px;
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gs360-deadline-detail-card dl>div:hover{
  border-color:#b9d6ef;
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(13,27,61,.06);
}
.gs360-deadline-detail-card .gs360-table-wrap{
  border-radius:16px;
  overflow:hidden;
}
.gs360-deadline-detail-card .gs360-table th,
.gs360-deadline-detail-card .gs360-table td{
  padding:12px 13px;
  vertical-align:middle;
}
.gs360-deadline-detail-card .gs360-table td[data-label="Anticipo"]{
  font-weight:900;
  color:#071b4a;
}
.gs360-deadline-detail-card .gs360-table td[data-label="Programmato"]{
  white-space:nowrap;
}
.gs360-company-service-footer.gs360-company-service-footer-fixed{
  left:260px!important;
  right:0!important;
  width:min(1180px,calc(100vw - 320px))!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  transform:none!important;
}
@media(max-width:1350px){
  .gs360-company-service-footer.gs360-company-service-footer-fixed{
    left:260px!important;
    right:18px!important;
    width:auto!important;
    max-width:none!important;
  }
}
@media(max-width:1100px){
  .gs360-deadline-detail-summary,
  .gs360-deadline-detail-grid{grid-template-columns:1fr;}
}
@media(max-width:1000px){
  .gs360-company-service-footer.gs360-company-service-footer-fixed{
    left:auto!important;
    right:auto!important;
    width:auto!important;
  }
}
/* Fine SCAD360-SNIP-029F1 */

/* =============================================================================
   GESTIONE SCADENZE360
   SCAD360-SNIP-029F2 - Fix footer servizio non sovrapposto
   Scopo: correggere il riepilogo servizio aziendale nell'Area Azienda Cliente,
   trasformandolo da elemento fisso sovrapposto a footer di pagina centrato.
   Contesto: dopo SNIP-029F1 il footer risultava visibile ma poteva coprire le
   sezioni basse del dettaglio scadenza, in particolare Condivisione, Alert e Audit.
   Relazioni: SNIP-029B1/B1.1/B1.2, SNIP-029F/F1, DECISION-082, DECISION-083,
   DECISION-084, DECISION-090.
   Tabelle coinvolte indirettamente: wpscad360_aziende, wpscad360_utenti_aziende.
   Note developer: il footer resta presente in tutte le viste aziendali, ma non è
   più position:fixed. In questo modo non copre contenuti e rimane centrato nella
   pagina, come vero piè di pagina operativo.
   ============================================================================= */
.gs360-company-main{
  padding-bottom:36px!important;
}
.gs360-company-service-footer.gs360-company-service-footer-fixed,
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:1!important;
  width:min(1180px,100%)!important;
  max-width:1180px!important;
  margin:36px auto 0!important;
  transform:none!important;
  box-sizing:border-box!important;
}
.gs360-company-view[data-gs360-company-view="dettaglio-scadenza"]{
  margin-bottom:0!important;
}
.gs360-company-view[data-gs360-company-view="dettaglio-scadenza"] .gs360-deadline-detail-grid:last-of-type{
  margin-bottom:18px;
}
@media(max-width:1350px){
  .gs360-company-main{padding-bottom:28px!important;}
  .gs360-company-service-footer.gs360-company-service-footer-fixed,
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    width:100%!important;
    max-width:none!important;
    margin:28px auto 0!important;
  }
}
@media(max-width:800px){
  .gs360-company-service-footer.gs360-company-service-footer-fixed,
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    margin-top:22px!important;
  }
}
/* Fine SCAD360-SNIP-029F2 */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029G - Azioni scadenza e calendario aziendale.
 *
 * Scopo:
 * definire lo stile delle azioni operative su scadenza e della nuova vista calendario mensile.
 *
 * Contesto:
 * Area Azienda Cliente / Modulo Scadenze.
 *
 * Relazioni:
 * - class-gs360-frontend.php, renderizza_dashboard_azienda();
 * - wpscad360_scadenze, calendario e dettaglio scadenza;
 * - SCAD360-DECISION-082: ogni codice creato deve dichiarare scopo, contesto e relazioni.
 */
.gs360-inline-action-form{
    display:inline-flex;
    margin:0;
    padding:0;
}
.gs360-inline-action-form .gs360-action-btn{
    border:0;
    cursor:pointer;
    font-family:inherit;
}
.gs360-calendar-highlight-panel,
.gs360-calendar-panel{
    margin-top:18px;
}
.gs360-calendar-highlight-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
}
.gs360-calendar-highlight-item{
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:14px 16px;
    border:1px solid #d9e4f1;
    border-radius:16px;
    background:#f8fbff;
    text-decoration:none;
    color:#071b4d;
}
.gs360-calendar-highlight-item:hover{
    border-color:#2faa4f;
    box-shadow:0 10px 24px rgba(9,31,75,.08);
}
.gs360-calendar-highlight-item span{
    font-size:12px;
    font-weight:800;
    color:#2faa4f;
}
.gs360-calendar-highlight-item strong{
    font-size:14px;
    line-height:1.25;
}
.gs360-calendar-highlight-item em{
    font-style:normal;
    font-size:12px;
    color:#64748b;
}
.gs360-calendar-weekdays,
.gs360-calendar-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:8px;
}
.gs360-calendar-weekdays{
    margin-bottom:8px;
}
.gs360-calendar-weekdays span{
    padding:8px 10px;
    border-radius:10px;
    background:#f3f7fb;
    color:#64748b;
    font-size:12px;
    font-weight:900;
    text-align:center;
    text-transform:uppercase;
}
.gs360-calendar-day{
    min-height:128px;
    border:1px solid #dde7f2;
    border-radius:16px;
    background:#fff;
    padding:12px;
    position:relative;
    overflow:hidden;
}
.gs360-calendar-day.is-empty{
    background:transparent;
    border-color:transparent;
}
.gs360-calendar-day.has-events{
    border-color:#2faa4f;
    background:linear-gradient(180deg,#f7fff9 0%,#ffffff 100%);
}
.gs360-calendar-day-number{
    font-size:22px;
    line-height:1;
    font-weight:900;
    color:#071b4d;
}
.gs360-calendar-day small{
    display:block;
    margin-top:8px;
    color:#94a3b8;
    font-weight:700;
}
.gs360-calendar-count{
    display:inline-flex;
    margin-top:8px;
    padding:3px 8px;
    border-radius:999px;
    background:#2faa4f;
    color:#fff;
    font-size:11px;
    font-weight:900;
}
.gs360-calendar-events{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-top:8px;
}
.gs360-calendar-event{
    display:inline-flex;
    align-items:center;
    width:max-content;
    max-width:100%;
    padding:4px 8px;
    border-radius:999px;
    background:#e8f1ff;
    color:#0b2a5b;
    font-size:11px;
    font-weight:900;
    text-decoration:none;
    white-space:nowrap;
}
.gs360-calendar-event.is-alta,
.gs360-calendar-event.is-critica{
    background:#fff1f2;
    color:#be123c;
}
.gs360-calendar-event:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 18px rgba(9,31,75,.12);
}
@media (max-width: 900px){
    .gs360-calendar-weekdays{display:none;}
    .gs360-calendar-grid{grid-template-columns:1fr;}
    .gs360-calendar-day{min-height:auto;}
    .gs360-calendar-day.is-empty{display:none;}
}


/* =============================================================================
   GESTIONE SCADENZE360
   SCAD360-SNIP-029G1 - Rifinitura Azioni Elenco + Alert Programmati
   Scopo: uniformare le azioni dell'elenco scadenze con lo standard icona+testo,
   aggiungere il comando Archivia anche in elenco e rendere più chiara la resa
   dei pulsanti operativi.
   Contesto: Dashboard Azienda Cliente / Modulo Scadenze.
   Relazioni: class-gs360-frontend.php, wpscad360_scadenze, DECISION-082, DECISION-093.
   ============================================================================= */
.gs360-action-btn.is-refuse{
    background:#fff1f2;
    color:#e11d48;
    border-color:#fecdd3;
}
.gs360-deadline-row-actions{
    align-items:center;
    justify-content:flex-start;
    min-width:280px;
}
.gs360-deadline-row-actions .gs360-inline-action-form{
    display:inline-flex;
}
.gs360-deadline-row-actions .gs360-action-btn{
    min-width:98px;
}
.gs360-deadline-row-actions .gs360-action-icon svg{
    width:15px;
    height:15px;
    fill:currentColor;
}
@media (max-width: 800px){
    .gs360-deadline-row-actions{
        width:100%;
        justify-content:stretch;
        display:grid;
        grid-template-columns:1fr;
    }
    .gs360-deadline-row-actions .gs360-action-btn,
    .gs360-deadline-row-actions .gs360-inline-action-form{
        width:100%;
    }
}
/* Fine SCAD360-SNIP-029G1 */

/* =============================================================================
   GESTIONE SCADENZE360
   SCAD360-SNIP-029G1.1 - Fix micro-layout azioni elenco e footer servizio
   Scopo: correggere la resa dei pulsanti operativi nell'elenco scadenze dopo
   SNIP-029G1, evitando link/testi fuori griglia e uniformando Completa/Archivia
   allo standard pill icona + testo. Migliora inoltre la leggibilita' del footer
   servizio impedendo lo spezzamento arbitrario di date e valori numerici.
   Contesto: Dashboard Azienda Cliente / Modulo Scadenze / Elenco + Footer.
   Relazioni: class-gs360-frontend.php, wpscad360_scadenze, DECISION-082,
   DECISION-093. Nessuna modifica database.
   ============================================================================= */
.gs360-company-table td[data-label="Azioni"]{
    min-width:268px;
    width:268px;
    overflow:visible;
}
.gs360-deadline-row-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(112px,1fr));
    gap:8px;
    align-items:stretch!important;
    justify-content:stretch!important;
    min-width:248px!important;
    max-width:260px;
}
.gs360-deadline-row-actions .gs360-action-btn,
.gs360-deadline-row-actions .gs360-inline-action-form{
    width:100%!important;
    box-sizing:border-box;
}
.gs360-deadline-row-actions .gs360-action-btn{
    min-width:0!important;
    min-height:34px;
    padding:8px 10px;
    border-radius:999px;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px;
    font-size:12px;
    line-height:1.1;
    white-space:nowrap;
}
.gs360-deadline-row-actions .gs360-inline-action-form .gs360-action-btn{
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    font-family:inherit;
}
.gs360-deadline-row-actions .gs360-inline-action-form .gs360-action-btn.is-approve{
    background:#eefbf3!important;
    color:#159947!important;
    border:1px solid #bfeccd!important;
}
.gs360-deadline-row-actions .gs360-inline-action-form .gs360-action-btn.is-refuse{
    background:#fff1f2!important;
    color:#e11d48!important;
    border:1px solid #fecdd3!important;
}
.gs360-company-service-footer-fixed .gs360-service-footer-grid strong,
.gs360-service-footer-grid strong{
    overflow-wrap:normal!important;
    word-break:normal!important;
}
.gs360-company-service-footer-fixed .gs360-service-footer-grid > div:not(.gs360-service-footer-user) strong{
    white-space:nowrap;
}
.gs360-company-service-footer-fixed .gs360-service-footer-user strong{
    font-size:11px;
    line-height:1.12;
}
@media(max-width:800px){
    .gs360-company-table td[data-label="Azioni"]{
        min-width:0;
        width:auto;
    }
    .gs360-deadline-row-actions{
        max-width:none;
        grid-template-columns:1fr;
    }
    .gs360-deadline-row-actions .gs360-action-btn{
        justify-content:center!important;
        white-space:normal;
    }
}
/* Fine SCAD360-SNIP-029G1.1 */

/* =============================================================================
   GESTIONE SCADENZE360
   SCAD360-SNIP-029G2 - UX Area Azienda: sidebar, footer e filtri notifiche
   Scopo: migliorare la leggibilità della Dashboard Azienda Cliente con sidebar
   chiara/collassabile, footer servizio più compatto e filtro operativo nella
   sezione Notifiche.
   Contesto: Dashboard Azienda Cliente / Moduli aziendali.
   Relazioni: class-gs360-frontend.php, DECISION-082, DECISION-095.
   Tabelle coinvolte indirettamente: wpscad360_aziende, wpscad360_utenti_aziende,
   wpscad360_audit_log. Nessuna modifica database.
   ============================================================================= */
.gs360-company-sidebar{
    background:#b6b4bf!important;
    color:#071b4d!important;
    box-shadow:inset -1px 0 0 rgba(7,27,77,.08), 18px 0 38px rgba(7,27,77,.08);
    transition:width .22s ease,padding .22s ease,background .22s ease;
    position:sticky;
}
.gs360-company-brand{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    padding:10px 8px 16px;
    border-radius:22px;
    background:rgba(255,255,255,.28);
}
.gs360-company-brand img{
    max-width:190px!important;
    width:100%;
    margin:0 auto 4px!important;
    filter:drop-shadow(0 8px 18px rgba(7,27,77,.12));
}
.gs360-company-brand span,
.gs360-company-footer,
.gs360-company-footer small{
    color:#071b4d!important;
}
.gs360-company-nav a{
    color:#071b4d!important;
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.22);
}
.gs360-company-nav a:hover,
.gs360-company-nav a.active{
    background:#143f3b!important;
    color:#ffffff!important;
    border-color:#143f3b!important;
    box-shadow:0 8px 18px rgba(20,63,59,.16);
}
.gs360-company-footer{
    border-top:1px solid rgba(7,27,77,.22)!important;
}
.gs360-company-logout{
    background:rgba(255,255,255,.24)!important;
    border-color:rgba(7,27,77,.24)!important;
    color:#071b4d!important;
}
.gs360-company-logout:hover{
    background:#071b4d!important;
    color:#ffffff!important;
}
.gs360-company-sidebar-toggle{
    position:absolute;
    top:18px;
    right:-16px;
    z-index:20;
    width:34px;
    height:34px;
    border-radius:999px;
    border:1px solid rgba(7,27,77,.18);
    background:#ffffff;
    color:#071b4d;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 22px rgba(7,27,77,.14);
    cursor:pointer;
    font-size:24px;
    line-height:1;
    font-weight:900;
    transition:all .18s ease;
}
.gs360-company-sidebar-toggle:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 28px rgba(7,27,77,.18);
}
.gs360-company-sidebar-toggle .gs360-toggle-closed{display:none;}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-sidebar{
    width:92px!important;
    padding-left:12px!important;
    padding-right:12px!important;
}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-sidebar-toggle .gs360-toggle-open{display:none;}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-sidebar-toggle .gs360-toggle-closed{display:inline;}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-brand{
    padding:10px 4px;
    background:rgba(255,255,255,.18);
}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-brand img{
    width:62px!important;
    max-width:62px!important;
    height:auto;
    object-fit:contain;
}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-brand span,
.gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a span,
.gs360-company-shell.is-sidebar-collapsed .gs360-company-footer span,
.gs360-company-shell.is-sidebar-collapsed .gs360-company-footer small,
.gs360-company-shell.is-sidebar-collapsed .gs360-company-logout span{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a{
    justify-content:center;
    padding:13px 10px;
}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-footer{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-logout{
    width:48px!important;
    min-height:42px;
    padding:0!important;
}

/* Footer servizio più compatto, centrato e con icone lineari. */
.gs360-company-service-footer.gs360-company-service-footer-fixed,
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
    width:min(1060px,100%)!important;
    max-width:1060px!important;
    padding:14px 16px!important;
    border-radius:22px!important;
}
.gs360-service-footer-head{
    min-width:170px;
    flex:0 0 auto;
}
.gs360-service-footer-head strong{
    font-size:15px!important;
}
.gs360-service-footer-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0;
}
.gs360-service-footer-grid > div{
    display:grid!important;
    grid-template-columns:18px minmax(0,1fr)!important;
    grid-template-areas:"icon label" "icon value"!important;
    gap:1px 7px!important;
    min-height:48px!important;
    min-width:92px!important;
    padding:8px 10px!important;
    border-radius:15px!important;
    background:#f9fbfd!important;
}
.gs360-service-footer-grid > div.gs360-service-footer-user{
    min-width:118px!important;
    max-width:138px!important;
}
.gs360-footer-line-icon{
    grid-area:icon;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    color:#1ca64a;
}
.gs360-footer-line-icon svg{
    width:18px;
    height:18px;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.gs360-service-footer-grid span{
    font-size:10px!important;
    line-height:1.05!important;
    letter-spacing:.01em;
}
.gs360-service-footer-grid strong{
    font-size:12px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.gs360-service-footer-user strong{
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.gs360-service-footer-logout{
    min-height:42px!important;
    padding:9px 15px!important;
    flex:0 0 auto;
}
.gs360-service-footer-logout .gs360-footer-line-icon,
.gs360-service-footer-logout .gs360-footer-line-icon svg{
    width:16px;
    height:16px;
    color:currentColor;
}

/* Filtri sezione Notifiche. */
.gs360-notification-filters{
    display:grid;
    grid-template-columns:190px 170px minmax(220px,1fr) auto;
    gap:10px;
    align-items:center;
    margin:0 0 14px;
}
.gs360-notification-filters select,
.gs360-notification-filters input{
    width:100%;
    min-height:42px;
    border:1px solid #dbe6f2;
    border-radius:14px;
    background:#f8fbff;
    color:#071b4d;
    padding:9px 12px;
    font-weight:800;
    outline:none;
}
.gs360-notification-filters select:focus,
.gs360-notification-filters input:focus{
    border-color:#2faa4f;
    box-shadow:0 0 0 3px rgba(47,170,79,.12);
}
.gs360-notification-table tr[hidden]{display:none!important;}

@media(max-width:1350px){
    .gs360-company-service-footer.gs360-company-service-footer-fixed,
    body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
        flex-wrap:wrap!important;
        justify-content:center!important;
    }
    .gs360-service-footer-grid{flex-wrap:wrap!important;}
}
@media(max-width:900px){
    .gs360-company-sidebar-toggle{display:none;}
    .gs360-company-sidebar{background:#b6b4bf!important;}
    .gs360-notification-filters{grid-template-columns:1fr;}
    .gs360-service-footer-head{min-width:0;}
}
@media(max-width:720px){
    .gs360-service-footer-grid{display:grid!important;grid-template-columns:1fr!important;width:100%;}
    .gs360-service-footer-grid > div,
    .gs360-service-footer-grid > div.gs360-service-footer-user{max-width:none!important;width:100%;}
    .gs360-service-footer-logout{width:100%;}
}
/* Fine SCAD360-SNIP-029G2 */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029H / 029I
 * Modulo: Profilo Azienda + Rifinitura UX Area Azienda
 * Scopo: aggiungere scheda profilo azienda, card calendario, icone lineari,
 * sidebar coerente, footer servizio fisso/interattivo e layout responsive.
 * Relazioni: wpscad360_aziende, wpscad360_utenti_aziende, wpscad360_audit_log,
 * SCAD360-DECISION-082, SCAD360-DECISION-096, SCAD360-DECISION-097.
 * ===================================================== */
:root{
  --gs360-azienda-sidebar-w:260px;
  --gs360-azienda-sidebar-collapsed-w:92px;
  --gs360-azienda-footer-h:104px;
}
body:has(.gs360-company-shell){
  padding-bottom:calc(var(--gs360-azienda-footer-h) + 24px)!important;
}
.gs360-company-shell{
  background:linear-gradient(180deg,#f5f8fc 0%,#edf2f8 100%)!important;
}
.gs360-company-sidebar{
  background:#b6b4bf!important;
  color:#071943!important;
  box-shadow:14px 0 34px rgba(6,22,61,.08);
}
.gs360-company-brand{
  background:rgba(255,255,255,.24);
  border:1px solid rgba(255,255,255,.34);
  border-radius:20px;
  padding:14px 10px;
  text-align:center;
}
.gs360-company-brand span,
.gs360-company-footer,
.gs360-company-footer small{
  color:#06163d!important;
}
.gs360-company-nav a{
  color:#06163d!important;
  background:rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24);
}
.gs360-company-nav a:hover,
.gs360-company-nav a.active{
  color:#fff!important;
  background:#123f3a!important;
  border-color:#123f3a!important;
  transform:translateX(2px);
}
.gs360-company-footer{
  border-top:1px solid rgba(6,22,61,.20)!important;
}
.gs360-stroke-icon,
.gs360-company-card-icon .gs360-stroke-icon,
.gs360-module-card-icon .gs360-stroke-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1em;
  height:1em;
  line-height:1;
}
.gs360-stroke-icon svg,
.gs360-company-nav .gs360-stroke-icon svg,
.gs360-company-card-icon .gs360-stroke-icon svg,
.gs360-module-card-icon .gs360-stroke-icon svg{
  width:22px!important;
  height:22px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.gs360-company-card-link,
.gs360-company-modules-clickable a article{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gs360-company-card-link{
  color:inherit!important;
  text-decoration:none!important;
}
.gs360-company-card-link:hover,
.gs360-company-modules-clickable a:hover article{
  transform:translateY(-3px);
  box-shadow:0 20px 46px rgba(6,22,61,.12)!important;
  border-color:#b8d7ff!important;
}
.gs360-company-module-cards{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
.gs360-module-card-icon.is-calendar{background:#eefbf3;color:#169a46!important;}
.gs360-module-card-icon,
.gs360-company-card-iconed > .gs360-company-card-icon{
  border:1px solid currentColor;
  border-color:color-mix(in srgb,currentColor 22%,transparent);
  background:color-mix(in srgb,currentColor 8%,#ffffff)!important;
}
.gs360-profile-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.gs360-profile-badges{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.gs360-profile-kpi{
  margin-top:18px;
  margin-bottom:18px;
}
.gs360-profile-layout{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);
  gap:18px;
  align-items:start;
}
.gs360-profile-layout .gs360-profile-panel:nth-child(1){grid-row:span 2;}
.gs360-profile-panel{
  margin-bottom:0!important;
}
.gs360-profile-fields{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.gs360-profile-fields.compact{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.gs360-profile-fields > div,
.gs360-profile-service-grid > div{
  background:#f8fbff;
  border:1px solid #dbe6f2;
  border-radius:16px;
  padding:12px 13px;
  min-height:66px;
}
.gs360-profile-fields span,
.gs360-profile-service-grid span{
  display:block;
  color:#65738c;
  font-size:12px;
  font-weight:800;
  margin-bottom:5px;
}
.gs360-profile-fields strong,
.gs360-profile-service-grid strong{
  color:#06163d;
  font-size:14px;
  line-height:1.25;
  word-break:break-word;
}
.gs360-profile-service-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.gs360-profile-service-grid > div{
  display:grid;
  grid-template-columns:24px 1fr;
  grid-template-areas:"icon label" "icon value";
  gap:2px 9px;
  align-items:center;
}
.gs360-profile-service-grid .gs360-footer-line-icon{grid-area:icon;}
.gs360-profile-modules{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.gs360-profile-modules span{
  display:flex;
  align-items:center;
  gap:8px;
  background:#f8fbff;
  border:1px solid #dbe6f2;
  border-radius:999px;
  padding:9px 12px;
  color:#06163d;
  font-weight:800;
}
.gs360-profile-modules strong{
  margin-left:auto;
  color:#16a34a;
  font-size:12px;
}
.gs360-service-footer-head-link{
  text-decoration:none!important;
  color:inherit!important;
  border-radius:16px;
  padding:8px 10px;
  transition:background .18s ease, transform .18s ease;
}
.gs360-service-footer-head-link:hover{
  background:#f3f9ff;
  transform:translateY(-1px);
}
.gs360-company-service-footer.gs360-company-service-footer-fixed,
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  position:fixed!important;
  left:calc(var(--gs360-azienda-sidebar-w) + 24px)!important;
  right:24px!important;
  bottom:16px!important;
  width:auto!important;
  max-width:none!important;
  z-index:9999!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  padding:12px 16px!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(188,204,226,.9)!important;
  box-shadow:0 18px 50px rgba(6,22,61,.16)!important;
  backdrop-filter:blur(12px);
}
.gs360-company-shell.is-sidebar-collapsed .gs360-company-service-footer.gs360-company-service-footer-fixed,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  left:calc(var(--gs360-azienda-sidebar-collapsed-w) + 24px)!important;
}
.gs360-service-footer-grid{
  flex:1 1 auto!important;
  max-width:980px;
  justify-content:center!important;
}
.gs360-service-footer-grid > div{
  min-width:110px!important;
  max-width:150px!important;
  min-height:54px!important;
  padding:8px 11px!important;
}
.gs360-service-footer-grid span{
  font-size:10px!important;
  line-height:1!important;
}
.gs360-service-footer-grid strong{
  font-size:12px!important;
  line-height:1.15!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.gs360-service-footer-user strong{
  -webkit-line-clamp:2;
}
.gs360-service-footer-logout{
  min-width:82px;
  border-radius:18px!important;
  justify-content:center;
}
.gs360-company-main{
  padding-bottom:calc(var(--gs360-azienda-footer-h) + 52px)!important;
}
@media (max-width:1280px){
  .gs360-company-module-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .gs360-profile-fields{grid-template-columns:repeat(2,minmax(0,1fr));}
  .gs360-company-service-footer.gs360-company-service-footer-fixed,
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{left:calc(var(--gs360-azienda-sidebar-w) + 14px)!important;right:14px!important;}
}
@media (max-width:980px){
  body:has(.gs360-company-shell){padding-bottom:0!important;}
  .gs360-company-main{padding-bottom:28px!important;}
  .gs360-profile-layout{grid-template-columns:1fr;}
  .gs360-profile-layout .gs360-profile-panel:nth-child(1){grid-row:auto;}
  .gs360-company-service-footer.gs360-company-service-footer-fixed,
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:100%!important;
    flex-direction:column!important;
    align-items:stretch!important;
    margin:24px auto 0!important;
  }
  .gs360-service-footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:none!important;}
  .gs360-service-footer-grid > div{max-width:none!important;width:100%!important;}
}
@media (max-width:760px){
  .gs360-company-module-cards{grid-template-columns:1fr!important;}
  .gs360-profile-fields,.gs360-profile-fields.compact,.gs360-profile-service-grid,.gs360-profile-modules{grid-template-columns:1fr;}
  .gs360-profile-hero{align-items:flex-start;flex-direction:column;}
  .gs360-service-footer-grid{grid-template-columns:1fr!important;}
}


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029L / CR-0.6.1-alpha / FASE 1A
 * Modulo: Area Azienda Cliente / Allineamento Dashboard-Footer
 * Versione: 0.6.1-alpha
 * Data aggiornamento: 22/06/2026
 *
 * Scopo:
 * Allineare il contenitore principale dell'Area Azienda Cliente con il
 * footer operativo fisso, eliminando il disallineamento visivo rilevato
 * nelle viste Dashboard, Profilo Azienda, Scadenze, Calendario, Documenti,
 * Notifiche, Report e Utenti.
 *
 * Contesto:
 * Questo blocco sostituisce lo snippet esterno proposto in fase preliminare:
 * lo sviluppo corrente lavora direttamente sul plugin dedicato
 * "Gestione Scadenze360", quindi la modifica viene integrata nel CSS
 * ufficiale del plugin e versionata con il resto della piattaforma.
 *
 * Relazioni funzionali:
 * - PHP: GS360_Frontend::renderizza_dashboard_azienda()
 * - UI: .gs360-company-shell, .gs360-company-sidebar, .gs360-company-main
 * - UI: .gs360-company-view, .gs360-company-service-footer-fixed
 * - Moduli: Dashboard, Profilo Azienda, Scadenze, Calendario, Documenti,
 *   Notifiche, Report, Utenti
 * - Documentazione: docs/changelog.md, docs/registro-snippet.md,
 *   docs/flussi-mermaid.md
 *
 * Tabelle coinvolte:
 * Nessuna. Intervento solo CSS/layout, senza ALTER TABLE, senza query
 * e senza impatto su wpscad360_scadenze o altre tabelle custom.
 *
 * Note developer:
 * - Blocco reversibile: per rollback rimuovere soltanto questa sezione CSS.
 * - Non modificare qui logica, query, permessi o output dati.
 * - Le variabili dedicate --gs360-cr061-* isolano la CR da altre regole.
 * ===================================================== */

/* Variabili di controllo della CR-0.6.1-alpha: centralizzano misure, gap e altezza footer per facilitare futuri adeguamenti responsive. */
:root{
  --gs360-cr061-sidebar-width:var(--gs360-azienda-sidebar-w,260px);
  --gs360-cr061-sidebar-collapsed-width:var(--gs360-azienda-sidebar-collapsed-w,92px);
  --gs360-cr061-page-gap:24px;
  --gs360-cr061-footer-height:104px;
}

/* Area principale azienda: rimuove il limite massimo precedente e permette ai moduli di allinearsi al footer fisso sullo stesso asse orizzontale. */
body .gs360-company-shell .gs360-company-main{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding-left:var(--gs360-cr061-page-gap)!important;
  padding-right:var(--gs360-cr061-page-gap)!important;
  padding-bottom:calc(var(--gs360-cr061-footer-height) + 56px)!important;
  box-sizing:border-box!important;
}

/* Viste applicative: ogni modulo usa la stessa larghezza disponibile dell'area principale per evitare rientri diversi tra Dashboard e moduli operativi. */
body .gs360-company-shell .gs360-company-view,
body .gs360-company-shell .gs360-company-hero,
body .gs360-company-shell .gs360-company-grid,
body .gs360-company-shell .gs360-company-modules,
body .gs360-company-shell .gs360-company-kpi-grid,
body .gs360-company-shell .gs360-company-module-head,
body .gs360-company-shell .gs360-company-panel,
body .gs360-company-shell .gs360-profile-kpi,
body .gs360-company-shell .gs360-profile-layout{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}

/* Footer servizio fisso: usa lo stesso gap laterale dell'area principale e rimane agganciato alla sidebar, così dashboard e footer risultano allineati. */
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  left:calc(var(--gs360-cr061-sidebar-width) + var(--gs360-cr061-page-gap))!important;
  right:var(--gs360-cr061-page-gap)!important;
  bottom:16px!important;
  box-sizing:border-box!important;
}

/* Stato sidebar collassata: mantiene l'allineamento corretto anche quando la barra laterale viene ridotta. */
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  left:calc(var(--gs360-cr061-sidebar-collapsed-width) + var(--gs360-cr061-page-gap))!important;
}

/* Sicurezza anti-sovrapposizione: evita che l'ultima riga dei moduli finisca sotto il footer fisso. */
body .gs360-company-shell .gs360-company-view:last-child{
  margin-bottom:calc(var(--gs360-cr061-footer-height) / 2)!important;
}

/* Breakpoint intermedio: riduce il gap laterale mantenendo proporzione con sidebar e footer. */
@media (max-width:1280px){
  :root{--gs360-cr061-page-gap:14px;}
  body .gs360-company-shell .gs360-company-main{
    padding-left:var(--gs360-cr061-page-gap)!important;
    padding-right:var(--gs360-cr061-page-gap)!important;
  }
}

/* Breakpoint mobile/tablet: il footer torna nel flusso pagina e non copre i contenuti quando la sidebar non è laterale. */
@media (max-width:980px){
  body .gs360-company-shell .gs360-company-main{
    padding-left:14px!important;
    padding-right:14px!important;
    padding-bottom:28px!important;
  }
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-029L / CR-0.6.1-alpha / FASE 1A
 * GESTIONE SCADENZE360
 * Esito atteso: Dashboard e footer allineati, nessuna modifica DB.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029M / CR-0.6.1-alpha / FASE 1B
 * Modulo: Dashboard Azienda Cliente / Card Moduli Principali
 * Versione: 0.6.1-alpha
 * Data aggiornamento: 22/06/2026
 *
 * Scopo:
 * Migliorare le card dei moduli principali della Dashboard Azienda
 * rendendo le icone stroke più grandi, centrali e leggibili, con testo
 * compatto sotto l'icona e card completamente interattiva.
 *
 * Contesto:
 * Intervento plugin-native sul CSS ufficiale del plugin dedicato.
 * La Fase 1B segue la Fase 1A già validata su allineamento
 * Dashboard/Footer e non modifica logica, dati o query.
 *
 * Relazioni funzionali:
 * - PHP: GS360_Frontend::renderizza_dashboard_azienda()
 * - Markup: sezione .gs360-company-module-cards
 * - Navigazione: attributo data-gs360-view-link
 * - Moduli collegati: #scadenze, #calendario-scadenze, #documenti,
 *   #notifiche, #report, #utenti
 * - CSS precedente: SCAD360-SNIP-029L / FASE 1A
 * - Documentazione: docs/changelog.md, docs/registro-snippet.md,
 *   docs/flussi-mermaid.md
 *
 * Tabelle coinvolte:
 * Nessuna. Intervento esclusivamente UI/CSS e microcopy markup.
 * Nessun ALTER TABLE, nessun INSERT, nessun UPDATE, nessuna query dati.
 *
 * Note developer:
 * - Blocco reversibile: per rollback rimuovere solo questa sezione CSS
 *   e ripristinare il markup precedente dei testi card se necessario.
 * - Le regole sono prefissate con body .gs360-company-shell per evitare
 *   impatti su admin WordPress, login e viste Super Admin.
 * - Eventuali nuovi moduli principali dovranno usare la stessa struttura:
 *   .gs360-company-module-cards > a > article > .gs360-module-card-icon + div.
 * ===================================================== */

/* Griglia card: mantiene 6 moduli in riga su desktop ampio e usa gap costante per leggibilità e allineamento. */
body .gs360-company-shell .gs360-company-module-cards{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(150px,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}

/* Link card: tutta l'area del modulo resta cliccabile e coerente con la navigazione interna data-gs360-view-link. */
body .gs360-company-shell .gs360-company-module-cards > a{
  display:block!important;
  height:100%!important;
  color:inherit!important;
  text-decoration:none!important;
  outline:none!important;
}

/* Struttura visuale card: icona centrale in alto, testo sotto, altezza uniforme e hit-area ampia per uso desktop/tablet. */
body .gs360-company-shell .gs360-company-module-cards > a > article{
  min-height:164px!important;
  height:100%!important;
  padding:22px 14px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  text-align:center!important;
  border-radius:18px!important;
  box-sizing:border-box!important;
}

/* Stato hover/focus: segnala chiaramente che la card è un'azione navigabile, senza alterare struttura o dati. */
body .gs360-company-shell .gs360-company-module-cards > a:hover > article,
body .gs360-company-shell .gs360-company-module-cards > a:focus-visible > article{
  transform:translateY(-3px)!important;
  border-color:rgba(32,168,74,.45)!important;
  box-shadow:0 18px 38px rgba(13,27,61,.12)!important;
}

/* Box icona: aumenta dimensione e centralità dell'icona mantenendo stile lineare/stroke e palette modulo. */
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon{
  width:66px!important;
  height:66px!important;
  min-width:66px!important;
  flex:0 0 66px!important;
  margin:0 auto 2px!important;
  border-radius:22px!important;
  display:grid!important;
  place-items:center!important;
}

/* Icona SVG interna: rende lo stroke più leggibile rispetto alla dimensione precedente, senza usare icone piene. */
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon svg,
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon .gs360-stroke-icon svg{
  width:34px!important;
  height:34px!important;
  stroke-width:1.9!important;
}

/* Contenitore testo: forza titolo e descrizione sotto l'icona, centrati e con larghezza controllata. */
body .gs360-company-shell .gs360-company-module-cards > a > article > div{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
}

/* Titolo modulo: più leggibile, compatto e coerente con lo stile dashboard. */
body .gs360-company-shell .gs360-company-module-cards h3{
  margin:0 0 6px!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:800!important;
  text-align:center!important;
}

/* Descrizione modulo: testo breve, non dispersivo, massimo due righe quando possibile. */
body .gs360-company-shell .gs360-company-module-cards p{
  max-width:148px!important;
  margin:0 auto!important;
  font-size:12.5px!important;
  line-height:1.32!important;
  text-align:center!important;
  color:#5e6e8a!important;
}

/* Accessibilità tastiera: evidenzia il focus senza dipendere solo dall'hover mouse. */
body .gs360-company-shell .gs360-company-module-cards > a:focus-visible{
  border-radius:18px!important;
  box-shadow:0 0 0 3px rgba(32,168,74,.22)!important;
}

/* Breakpoint notebook/tablet: passa a tre colonne per evitare card schiacciate. */
@media (max-width:1280px){
  body .gs360-company-shell .gs360-company-module-cards{
    grid-template-columns:repeat(3,minmax(170px,1fr))!important;
  }
}

/* Breakpoint mobile: usa una sola colonna per mantenere icone e testi leggibili. */
@media (max-width:760px){
  body .gs360-company-shell .gs360-company-module-cards{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-company-module-cards > a > article{
    min-height:142px!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-029M / CR-0.6.1-alpha / FASE 1B
 * GESTIONE SCADENZE360
 * Esito atteso: Card moduli principali con icone grandi centrali,
 * testo compatto, interazione chiara e nessuna modifica database.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029N / CR-0.6.1-alpha / FASE 1C
 * Modulo: Area Azienda Cliente / Footer Operativo Fisso
 * Versione: 0.6.1-alpha
 * Data aggiornamento: 22/06/2026
 *
 * Scopo:
 * Rendere chiaramente visibili le icone lineari/stroke del footer
 * operativo aziendale e migliorare la leggibilità di label, valori,
 * spaziature e pulsante Esci nelle viste Dashboard, Profilo Azienda,
 * Scadenze, Calendario, Documenti, Notifiche, Report e Utenti.
 *
 * Contesto:
 * Intervento plugin-native successivo alla Fase 1B. La criticità rilevata
 * in staging è che le icone SVG inline del footer sono presenti nel markup,
 * ma non vengono assegnate correttamente all'area "icon" della griglia
 * perché le regole generiche sui tag span le trattano come label.
 *
 * Relazioni funzionali:
 * - PHP: GS360_Frontend::icona_footer_servizio()
 * - PHP: GS360_Frontend::renderizza_dashboard_azienda()
 * - UI: .gs360-company-service-footer-fixed
 * - UI: .gs360-service-footer-grid
 * - UI: .gs360-footer-line-icon
 * - CSS precedente: SCAD360-SNIP-029L / FASE 1A
 * - CSS precedente: SCAD360-SNIP-029M / FASE 1B
 * - Documentazione: docs/changelog.md, docs/registro-snippet.md,
 *   docs/flussi-mermaid.md
 *
 * Tabelle coinvolte:
 * Nessuna. Intervento esclusivamente UI/CSS, senza ALTER TABLE,
 * senza INSERT, senza UPDATE e senza modifica query.
 *
 * Note developer:
 * - Blocco reversibile: per rollback rimuovere solo questa sezione CSS.
 * - Le icone footer sono SVG inline generate da icona_footer_servizio().
 * - Questa sezione usa selettori più specifici per neutralizzare regole
 *   generiche precedenti su .gs360-service-footer-grid span.
 * - Per nuovi elementi footer mantenere la struttura:
 *   <div><?php echo icona_footer_servizio(...); ?><span>Label</span><strong>Valore</strong></div>
 * ===================================================== */

/* Wrapper footer fisso: migliora densità visiva, allineamento interno e stabilità senza cambiare posizione definita in Fase 1A. */
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  min-height:86px!important;
  padding:14px 20px!important;
  gap:16px!important;
  align-items:center!important;
}

/* Griglia riepilogo: mantiene tutte le sezioni su desktop e introduce una larghezza minima più leggibile per evitare compressioni delle icone. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(112px,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}

/* Cella footer: assegna esplicitamente tre aree, rendendo l'icona separata da label e valore. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  grid-template-areas:"icon label" "icon value"!important;
  column-gap:8px!important;
  row-gap:2px!important;
  align-items:center!important;
  min-height:52px!important;
  padding:8px 11px!important;
  border-radius:15px!important;
  background:#fbfdff!important;
  border:1px solid #e0e9f4!important;
  overflow:hidden!important;
}

/* Icona footer: override fondamentale. Impedisce che .gs360-service-footer-grid span tratti l'icona come label e la rende visibile nello slot corretto. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > .gs360-footer-line-icon{
  grid-area:icon!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#18305f!important;
  opacity:1!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}

/* SVG footer: forza stile stroke/outline coerente con le scelte UI, evitando riempimenti pieni e aumentando la leggibilità del tratto. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > .gs360-footer-line-icon svg{
  width:23px!important;
  height:23px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.1!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  overflow:visible!important;
}

/* Label footer: applica l'area label solo agli span testuali, non agli span icona. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > span:not(.gs360-footer-line-icon){
  grid-area:label!important;
  display:block!important;
  color:#61708a!important;
  font-size:9.5px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:.015em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  margin:0!important;
}

/* Valore footer: mantiene date, piano e numeri su riga unica quando possibile e aumenta contrasto. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > strong{
  grid-area:value!important;
  display:block!important;
  color:#06163d!important;
  font-size:12.5px!important;
  line-height:1.12!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  margin:0!important;
}

/* Cella utente collegato: consente una larghezza leggermente superiore per nome/cognome senza spezzare eccessivamente il footer. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div.gs360-service-footer-user{
  min-width:132px!important;
}

/* Testata servizio aziendale: conserva la funzione link verso Profilo Azienda e migliora proporzioni rispetto al resto del footer. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-head{
  min-width:178px!important;
  text-decoration:none!important;
}

/* Kicker testata footer: mantiene evidenza corporate senza occupare troppo spazio verticale. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-kicker{
  font-size:10px!important;
  line-height:1!important;
  margin-bottom:3px!important;
}

/* Nome azienda nel footer: resta leggibile e non viene spezzato su desktop. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-head strong{
  font-size:13.5px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}

/* Pulsante Esci: separa graficamente l'azione di logout dal riepilogo informativo e mantiene icona visibile. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout{
  min-height:44px!important;
  min-width:86px!important;
  padding:9px 17px!important;
  gap:8px!important;
  border-radius:18px!important;
  align-self:center!important;
}

/* Icona logout: rende visibile lo stroke bianco sul bottone blu, senza dipendere dalle classi generiche gs360-icon. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout .gs360-footer-line-icon{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#ffffff!important;
  opacity:1!important;
}

/* SVG logout: forza lo stile outline anche per l'icona del pulsante Esci. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout .gs360-footer-line-icon svg{
  width:20px!important;
  height:20px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.15!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Breakpoint notebook: mantiene leggibilità riducendo leggermente le colonne invece di far scomparire le icone. */
@media (max-width:1350px){
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    grid-template-columns:repeat(4,minmax(120px,1fr))!important;
  }
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    align-items:stretch!important;
  }
}

/* Breakpoint tablet/mobile: le icone restano nello slot corretto anche quando il footer passa in verticale. */
@media (max-width:980px){
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Breakpoint mobile stretto: una colonna unica per evitare compressioni di label, valori e icone. */
@media (max-width:640px){
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    grid-template-columns:1fr!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-029N / CR-0.6.1-alpha / FASE 1C
 * GESTIONE SCADENZE360
 * Esito atteso: icone footer visibili, label e valori leggibili,
 * nessuna modifica database e nessuna modifica query.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029O / CR-0.6.1-alpha / FASE 1D
 * Modulo: Area Azienda Cliente / Sidebar + Footer + Card Dashboard.
 * Versione: 0.6.1-alpha
 * Scopo:
 * - ripristinare e rendere più evidenti le icone nella sidebar laterale;
 * - aumentare spaziatura e leggibilità del footer operativo con icone verdi;
 * - ingrandire ulteriormente le icone delle card moduli principali.
 *
 * Contesto:
 * raffinamento UI successivo alle fasi 1B e 1C, validato su staging
 * con evidenza screenshot utente relativa a sidebar compressa, footer
 * con elementi troppo ravvicinati e card dashboard da enfatizzare.
 *
 * Relazioni:
 * - UI: .gs360-company-sidebar, .gs360-company-nav, .gs360-company-footer
 * - UI: .gs360-company-service-footer-fixed, .gs360-service-footer-grid
 * - UI: .gs360-company-module-cards, .gs360-module-card-icon
 * - Nessuna modifica database / query / schema.
 *
 * Note developer:
 * usare solo override CSS per mantenere compatibilità con il markup già
 * distribuito nella release 0.6.1-alpha. Per futuri moduli replicare lo
 * standard icona-lineare + label + valore.
 * ===================================================== */

/* Sidebar: dimensioni e spaziature più generose per rendere le icone subito percepibili. */
body .gs360-company-shell .gs360-company-sidebar{
  padding:22px 16px 18px!important;
}
body .gs360-company-shell .gs360-company-nav{
  gap:10px!important;
}
body .gs360-company-shell .gs360-company-nav a{
  min-height:54px!important;
  padding:12px 16px!important;
  gap:12px!important;
  border-radius:16px!important;
  font-size:15px!important;
  font-weight:800!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-company-nav a .gs360-stroke-icon{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#0b214f!important;
  opacity:1!important;
}
body .gs360-company-shell .gs360-company-nav a .gs360-stroke-icon svg{
  width:22px!important;
  height:22px!important;
  stroke:currentColor!important;
  stroke-width:2.1!important;
  fill:none!important;
  display:block!important;
  overflow:visible!important;
}
body .gs360-company-shell .gs360-company-nav a:hover .gs360-stroke-icon,
body .gs360-company-shell .gs360-company-nav a.active .gs360-stroke-icon{
  color:#ffffff!important;
}
body .gs360-company-shell .gs360-company-sidebar .gs360-company-logout .gs360-action-icon{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
}
body .gs360-company-shell .gs360-company-sidebar .gs360-company-logout .gs360-action-icon svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Sidebar collassata: conserva icone ben leggibili anche quando il testo è nascosto. */
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-sidebar{
  width:var(--gs360-azienda-sidebar-collapsed-w)!important;
  padding-left:10px!important;
  padding-right:10px!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a{
  min-height:46px!important;
  padding:10px!important;
  justify-content:center!important;
  gap:0!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a .gs360-stroke-icon,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a .gs360-stroke-icon svg{
  width:24px!important;
  height:24px!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-footer{
  padding-left:0!important;
  padding-right:0!important;
}

/* Card principali dashboard: icone più grandi e più protagoniste. */
body .gs360-company-shell .gs360-company-module-cards > a > article{
  min-height:172px!important;
  padding:24px 16px 20px!important;
  gap:12px!important;
}
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon{
  width:78px!important;
  height:78px!important;
  min-width:78px!important;
  flex:0 0 78px!important;
  border-radius:24px!important;
}
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon svg,
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon .gs360-stroke-icon svg{
  width:40px!important;
  height:40px!important;
  stroke-width:2.05!important;
}
body .gs360-company-shell .gs360-company-module-cards h3{
  font-size:18px!important;
}
body .gs360-company-shell .gs360-company-module-cards p{
  max-width:156px!important;
  font-size:12.8px!important;
}

/* Footer operativo: maggiore respiro e icone verdi per coerenza con brand/status. */
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  min-height:96px!important;
  padding:16px 24px!important;
  gap:20px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-head{
  min-width:190px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
  grid-template-columns:repeat(7,minmax(126px,1fr))!important;
  gap:14px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div{
  grid-template-columns:32px minmax(0,1fr)!important;
  column-gap:10px!important;
  row-gap:3px!important;
  min-height:58px!important;
  padding:10px 13px!important;
  border-radius:16px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > .gs360-footer-line-icon{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  color:#27a844!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > .gs360-footer-line-icon svg{
  width:24px!important;
  height:24px!important;
  stroke-width:2.15!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > span:not(.gs360-footer-line-icon){
  font-size:10px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > strong{
  font-size:13px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div.gs360-service-footer-user{
  min-width:156px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout{
  min-width:98px!important;
  padding:10px 18px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout .gs360-footer-line-icon{
  color:#ffffff!important;
}

@media (max-width:1480px){
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    grid-template-columns:repeat(4,minmax(132px,1fr))!important;
  }
}
@media (max-width:1180px){
  body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
  }
  body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon svg,
  body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon .gs360-stroke-icon svg{
    width:36px!important;
    height:36px!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-029O / CR-0.6.1-alpha / FASE 1D
 * GESTIONE SCADENZE360
 * Esito atteso: sidebar con icone evidenti, footer più arioso con icone verdi,
 * card moduli principali con icone più grandi e leggibili, nessuna modifica DB.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029P / CR-0.6.1-alpha / FASE 1E
 * Modulo: Area Azienda Cliente / Fix visuale definitivo Sidebar-Footer-Card.
 * Versione: 0.6.1-alpha
 *
 * Scopo:
 * correggere i problemi rilevati dopo la Fase 1D:
 * - sidebar collassata con icone non visibili perché nascoste dalle regole sui <span>;
 * - footer operativo con date/nome utente troncati e intervalli ancora compressi;
 * - card moduli principali con box icona grande ma SVG interno ancora troppo piccolo.
 *
 * Contesto:
 * Dashboard Azienda Cliente in staging, layout desktop con sidebar collassata.
 *
 * Relazioni:
 * - SCAD360-SNIP-029M: card moduli principali;
 * - SCAD360-SNIP-029N: footer operativo con icone;
 * - SCAD360-SNIP-029O: prima rifinitura sidebar/footer/card;
 * - PHP: GS360_Frontend::icona_azienda_stroke();
 * - PHP: GS360_Frontend::icona_footer_servizio().
 *
 * Tabelle coinvolte:
 * nessuna. Intervento solo CSS/UI, senza query, senza ALTER TABLE e senza dati.
 *
 * Note developer:
 * il problema sidebar dipendeva dalla regola di collasso che nascondeva tutti gli
 * span, inclusi gli span usati come wrapper delle icone SVG. Da ora si nasconde
 * solo il testo e si forza la visibilità di .gs360-stroke-icon.
 * ===================================================== */

/* Sidebar collassata: mostra sempre le icone SVG e nasconde solo le label testuali. */
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a > .gs360-stroke-icon{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  color:#0b214f!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a.active > .gs360-stroke-icon,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:hover > .gs360-stroke-icon{
  color:#ffffff!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a > .gs360-stroke-icon svg{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:26px!important;
  height:26px!important;
  stroke:currentColor!important;
  stroke-width:2.25!important;
  fill:none!important;
  overflow:visible!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a > span:not(.gs360-stroke-icon){
  display:none!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a{
  min-height:50px!important;
  justify-content:center!important;
  padding:10px 8px!important;
}

/* Sidebar aperta: icone più leggibili anche prima del collasso. */
body .gs360-company-shell:not(.is-sidebar-collapsed) .gs360-company-nav a > .gs360-stroke-icon{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
}
body .gs360-company-shell:not(.is-sidebar-collapsed) .gs360-company-nav a > .gs360-stroke-icon svg{
  width:24px!important;
  height:24px!important;
  stroke-width:2.15!important;
}

/* Card dashboard: corregge il wrapper interno .gs360-stroke-icon, non solo lo SVG. */
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon .gs360-stroke-icon{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  font-size:46px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon .gs360-stroke-icon svg{
  width:46px!important;
  height:46px!important;
  stroke-width:2.1!important;
}
body .gs360-company-shell .gs360-company-module-cards .gs360-module-card-icon{
  width:82px!important;
  height:82px!important;
  min-width:82px!important;
  flex-basis:82px!important;
}

/* Footer: dà priorità di larghezza alla griglia dati e impedisce troncamenti su date e contatori. */
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  display:flex!important;
  align-items:center!important;
  width:auto!important;
  padding-left:28px!important;
  padding-right:28px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-head{
  flex:0 0 205px!important;
  min-width:205px!important;
  max-width:230px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(120px,.85fr) minmax(130px,.9fr) minmax(142px,1fr) minmax(142px,1fr) minmax(116px,.8fr) minmax(116px,.8fr) minmax(160px,1.15fr)!important;
  gap:16px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div{
  min-width:0!important;
  overflow:visible!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > strong{
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:12.8px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > span:not(.gs360-footer-line-icon){
  overflow:visible!important;
  text-overflow:clip!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div > .gs360-footer-line-icon{
  color:#20a84a!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout{
  flex:0 0 auto!important;
  margin-left:8px!important;
}

/* Notebook: se lo spazio non basta, il footer mantiene leggibilità con scroll orizzontale controllato invece di tagliare testi. */
@media (max-width:1500px){
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    overflow-x:auto!important;
    grid-template-columns:120px 130px 142px 142px 116px 116px 168px!important;
    padding-bottom:2px!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-029P / CR-0.6.1-alpha / FASE 1E
 * GESTIONE SCADENZE360
 * Esito atteso: icone sidebar visibili, footer senza troncamenti principali,
 * card dashboard con icone realmente ingrandite, nessuna modifica DB.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029Q / CR-0.6.1-alpha / FASE 1F
 * Modulo: Area Azienda Cliente / Sidebar collassata + tooltip + footer utente.
 * Versione: 0.6.1-alpha
 * Scopo:
 * - risolvere in modo definitivo la visibilità delle icone nella sidebar chiusa;
 * - mostrare al passaggio mouse/focus il testo di riferimento della voce menu;
 * - migliorare il box "Collegato" nel footer evitando tagli e compressioni.
 *
 * Contesto:
 * refinamento successivo ai feedback di test su staging dopo le fasi 1D e 1E.
 *
 * Relazioni:
 * - Markup nav azienda in includes/class-gs360-frontend.php;
 * - CSS sidebar/footer del frontend azienda;
 * - Nessuna modifica database, query o schema.
 *
 * Note developer:
 * si introduce .gs360-nav-label per separare semanticamente il testo dal wrapper
 * icona. I tooltip usano l'attributo data-nav-label, utile anche per accessibilità.
 * ===================================================== */

/* Sidebar collassata: nasconde solo la label, mai il wrapper icona. */
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a .gs360-nav-label{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a > .gs360-stroke-icon{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  color:#0b214f!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a > .gs360-stroke-icon svg{
  width:28px!important;
  height:28px!important;
  display:block!important;
  stroke:currentColor!important;
  stroke-width:2.2!important;
  fill:none!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a.active > .gs360-stroke-icon,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:hover > .gs360-stroke-icon,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:focus-visible > .gs360-stroke-icon{
  color:#ffffff!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a{
  position:relative!important;
  min-height:52px!important;
  justify-content:center!important;
  align-items:center!important;
  padding:10px 8px!important;
  overflow:visible!important;
}

/* Tooltip laterale sul menu chiuso. */
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a::after{
  content:attr(data-nav-label);
  position:absolute;
  left:calc(100% + 12px);
  top:50%;
  transform:translateY(-50%) translateX(-4px);
  background:#0b214f;
  color:#ffffff;
  padding:8px 12px;
  border-radius:10px;
  box-shadow:0 12px 24px rgba(7,27,77,.18);
  font-size:13px;
  font-weight:700;
  line-height:1.1;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:60;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a::before{
  content:"";
  position:absolute;
  left:calc(100% + 6px);
  top:50%;
  transform:translateY(-50%);
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  border-right:6px solid #0b214f;
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease, visibility .18s ease;
  z-index:59;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:hover::after,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:hover::before,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:focus-visible::after,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:focus-visible::before{
  opacity:1;
  visibility:visible;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:hover::after,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a:focus-visible::after{
  transform:translateY(-50%) translateX(0);
}

/* Footer: box utente collegato più largo e mai troncato in modo aggressivo. */
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
  grid-template-columns:repeat(6,minmax(118px,1fr)) minmax(190px,1.28fr)!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div.gs360-service-footer-user{
  min-width:190px!important;
  grid-template-columns:32px minmax(0,1fr)!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div.gs360-service-footer-user > strong{
  font-size:12.5px!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:break-word!important;
}

@media (max-width:1480px){
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    grid-template-columns:repeat(4,minmax(132px,1fr))!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div.gs360-service-footer-user{
    min-width:unset!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-029Q / CR-0.6.1-alpha / FASE 1F
 * GESTIONE SCADENZE360
 * Esito atteso: icone sempre visibili in sidebar chiusa, tooltip su hover/focus,
 * footer utente collegato leggibile e non troncato, nessuna modifica DB.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-029R / CR-0.6.1-alpha / FASE 1G
 * Modulo: Area Azienda Cliente / Tooltip sidebar sempre in primo piano.
 * Versione: 0.6.1-alpha
 * Scopo:
 * - garantire che i tooltip della sidebar collassata escano sempre sopra
 *   contenuto dashboard, card, hero e footer fisso;
 * - evitare che il footer fixed con z-index alto copra i tooltip laterali.
 *
 * Contesto:
 * intervento di rifinitura successivo alla Fase 1F, richiesto da verifica
 * visuale su ambiente staging.
 *
 * Relazioni:
 * - dipende dal markup menu aggiornato con data-nav-label nella Fase 1F;
 * - completa il comportamento UI di SCAD360-SNIP-029Q.
 *
 * Tabelle coinvolte:
 * nessuna. Intervento solo CSS/UI, nessuna query e nessun ALTER.
 * ===================================================== */

/* Crea un contesto di stacking controllato e rende la sidebar superiore al main. */
body .gs360-company-shell{
  isolation:isolate!important;
}
body .gs360-company-shell .gs360-company-sidebar{
  position:sticky!important;
  z-index:10020!important;
  overflow:visible!important;
}
body .gs360-company-shell .gs360-company-nav{
  position:relative!important;
  overflow:visible!important;
  z-index:10021!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a{
  overflow:visible!important;
  z-index:10022!important;
}

/* Tooltip e freccia sempre sopra a tutto, incluso footer fixed. */
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a::after{
  z-index:2147483646!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav a::before{
  z-index:2147483645!important;
}

/* Mantiene il footer alto ma sotto ai tooltip sidebar. */
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  z-index:10010!important;
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-029R / CR-0.6.1-alpha / FASE 1G
 * GESTIONE SCADENZE360
 * Esito atteso: tooltip della sidebar sempre visibili in overlay sopra tutto.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030A / CR-0.6.2-alpha / FASE 0.6.2A
 * Modulo: Area Azienda Cliente / Footer operativo responsive.
 * Versione: 0.6.2-alpha
 * Scopo:
 * - rendere il footer servizio realmente utilizzabile su tablet e mobile;
 * - mantenere desktop esteso invariato;
 * - introdurre su mobile un riepilogo compatto con dettagli espandibili;
 * - evitare che il footer occupi troppa altezza o generi overflow laterale.
 *
 * Contesto:
 * prima sottofase della CR-0.6.2-alpha, propedeutica ai moduli Profilo Azienda,
 * Calendario, Documenti, Report, Utenti e Notifiche.
 *
 * Relazioni:
 * - Markup: includes/class-gs360-frontend.php, blocco footer servizio;
 * - UI desktop: .gs360-company-service-footer-fixed;
 * - UI mobile: .gs360-service-footer-mobile-details;
 * - Nessuna relazione con schema database.
 *
 * Tabelle coinvolte:
 * nessuna. Il footer usa dati già disponibili in memoria applicativa.
 *
 * Note developer:
 * non rimuovere il footer desktop; su mobile viene nascosta solo la griglia estesa
 * e viene mostrato il details responsive con gli stessi valori. Il tag <details>
 * evita JS dedicato e mantiene accessibilità base nativa.
 * ===================================================== */

/* Desktop: il details mobile resta non visibile per non duplicare informazioni. */
body .gs360-company-shell .gs360-service-footer-mobile-details{
  display:none!important;
}

/* Tablet: footer ancora completo ma con scroll interno controllato e gap ridotto. */
@media (max-width:1024px){
  body .gs360-company-shell .gs360-company-main{
    padding-bottom:150px!important;
  }
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    left:12px!important;
    right:12px!important;
    bottom:10px!important;
    width:auto!important;
    max-width:none!important;
    padding:12px!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-head{
    min-width:170px!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:10px!important;
    min-width:max-content!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div{
    min-width:122px!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-grid > div.gs360-service-footer-user{
    min-width:180px!important;
  }
}

/* Mobile: footer compatto, due colonne principali e dettagli espandibili. */
@media (max-width:720px){
  body:has(.gs360-company-shell){
    padding-bottom:132px!important;
  }
  body .gs360-company-shell .gs360-company-main{
    padding-bottom:132px!important;
  }
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
    left:8px!important;
    right:8px!important;
    bottom:8px!important;
    width:auto!important;
    max-width:none!important;
    max-height:58vh!important;
    padding:10px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"head logout" "details details"!important;
    align-items:center!important;
    gap:8px!important;
    border-radius:18px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-head{
    grid-area:head!important;
    min-width:0!important;
    width:auto!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-kicker{
    font-size:9px!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-head strong{
    font-size:12.5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed > .gs360-service-footer-grid{
    display:none!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details{
    grid-area:details!important;
    display:block!important;
    width:100%!important;
    border:1px solid #dbe8f4!important;
    border-radius:14px!important;
    background:#fbfdff!important;
    overflow:hidden!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details > summary{
    min-height:42px!important;
    padding:9px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    cursor:pointer!important;
    list-style:none!important;
    color:#06163d!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details > summary::-webkit-details-marker{
    display:none!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details > summary::after{
    content:"+";
    width:24px;
    height:24px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#eef8f1;
    color:#20a84a;
    font-weight:900;
    flex:0 0 auto;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details[open] > summary::after{
    content:"−";
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details > summary span{
    font-size:10px!important;
    line-height:1!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.02em!important;
    color:#61708a!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details > summary strong{
    margin-left:auto!important;
    font-size:12px!important;
    line-height:1.1!important;
    font-weight:900!important;
    color:#06163d!important;
    white-space:nowrap!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    padding:0 10px 10px!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid > div{
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr)!important;
    grid-template-areas:"icon label" "icon value"!important;
    column-gap:8px!important;
    row-gap:2px!important;
    align-items:center!important;
    min-height:50px!important;
    padding:8px 9px!important;
    border:1px solid #e1ebf5!important;
    border-radius:13px!important;
    background:#ffffff!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid > div.gs360-service-footer-user{
    grid-column:1 / -1!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid .gs360-footer-line-icon{
    grid-area:icon!important;
    width:28px!important;
    height:28px!important;
    color:#20a84a!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid .gs360-footer-line-icon svg{
    width:22px!important;
    height:22px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2.1!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid span:not(.gs360-footer-line-icon){
    grid-area:label!important;
    font-size:9px!important;
    line-height:1!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    color:#61708a!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid strong{
    grid-area:value!important;
    font-size:11.5px!important;
    line-height:1.1!important;
    font-weight:900!important;
    color:#06163d!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-grid > div.gs360-service-footer-user strong{
    white-space:normal!important;
    word-break:break-word!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout{
    grid-area:logout!important;
    min-width:74px!important;
    min-height:44px!important;
    padding:8px 12px!important;
    border-radius:15px!important;
  }
}

/* Mobile stretto: una sola colonna nei dettagli per evitare compressione. */
@media (max-width:420px){
  body .gs360-company-shell .gs360-service-footer-mobile-grid{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details > summary{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:4px!important;
  }
  body .gs360-company-shell .gs360-service-footer-mobile-details > summary::after{
    position:absolute!important;
    right:12px!important;
    top:9px!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030A / CR-0.6.2-alpha / FASE 0.6.2A
 * GESTIONE SCADENZE360
 * Esito atteso: footer desktop invariato, tablet con scroll controllato,
 * mobile compatto con dettagli servizio espandibili e nessuna modifica DB.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030B / CR-0.6.2-alpha / FASE 0.6.2B
 * Modulo: Profilo Azienda / Tabs + modifica controllata.
 * Versione: 0.6.2-alpha
 * Scopo:
 * definire layout, tabulatore, form e blocchi protetti della sezione Profilo
 * Azienda, mantenendo la modifica limitata ai soli dati operativi consentiti.
 *
 * Contesto:
 * Area Azienda Cliente / sezione #profilo-azienda.
 *
 * Relazioni:
 * - PHP: renderizza_dashboard_azienda() profilo azienda;
 * - PHP: gestisci_post_profilo_azienda_030b();
 * - DB: wpscad360_aziende, wpscad360_utenti_aziende, wpscad360_referenti,
 *   wpscad360_audit_log.
 *
 * Note developer:
 * tab e pannelli sono gestiti da attributi data-gs360-profile-* e non richiedono
 * librerie esterne. I dati sensibili sono visualizzati in tab separato e non
 * fanno parte del form di aggiornamento.
 * ===================================================== */

body .gs360-company-shell .gs360-profile-tabs{
  display:block!important;
  margin-top:18px!important;
}
body .gs360-company-shell .gs360-profile-tablist{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin:0 0 16px!important;
  padding:8px!important;
  border:1px solid #dbe5f1!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 12px 28px rgba(7,27,77,.05)!important;
}
body .gs360-company-shell .gs360-profile-tablist button{
  min-height:38px!important;
  padding:9px 14px!important;
  border-radius:13px!important;
  border:1px solid #dce7f4!important;
  background:#ffffff!important;
  color:#071b4d!important;
  font-size:13px!important;
  font-weight:900!important;
  cursor:pointer!important;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease!important;
}
body .gs360-company-shell .gs360-profile-tablist button:hover,
body .gs360-company-shell .gs360-profile-tablist button.is-active{
  background:#123f3a!important;
  border-color:#123f3a!important;
  color:#ffffff!important;
  transform:translateY(-1px)!important;
}
body .gs360-company-shell .gs360-profile-tab-panel{
  display:none!important;
}
body .gs360-company-shell .gs360-profile-tab-panel.is-active{
  display:block!important;
}
body .gs360-company-shell .gs360-profile-edit-form{
  margin-top:6px!important;
}
body .gs360-company-shell .gs360-profile-edit-form input,
body .gs360-company-shell .gs360-profile-edit-form textarea,
body .gs360-company-shell .gs360-profile-edit-form select{
  width:100%!important;
  border:1px solid #d7e3f1!important;
  border-radius:13px!important;
  min-height:42px!important;
  padding:10px 12px!important;
  background:#f8fbff!important;
  color:#071b4d!important;
  font-weight:700!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-profile-edit-form textarea{
  min-height:96px!important;
  resize:vertical!important;
}
body .gs360-company-shell .gs360-profile-edit-form input:disabled,
body .gs360-company-shell .gs360-profile-edit-form textarea:disabled{
  opacity:.65!important;
  cursor:not-allowed!important;
}
body .gs360-company-shell .gs360-profile-wide-label{
  display:block!important;
  margin-top:12px!important;
}
body .gs360-company-shell .gs360-profile-wide-label span,
body .gs360-company-shell .gs360-profile-edit-form label span{
  display:block!important;
  margin-bottom:6px!important;
  color:#687995!important;
  font-size:11px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-profile-protected-note{
  margin-top:14px!important;
  padding:13px 15px!important;
  border:1px dashed #bfd1e8!important;
  border-radius:15px!important;
  background:#f7fbff!important;
  color:#50627f!important;
  font-size:13px!important;
  line-height:1.45!important;
}
body .gs360-company-shell .gs360-profile-protected-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
body .gs360-company-shell .gs360-profile-protected-grid > div{
  padding:14px!important;
  border:1px solid #dce7f4!important;
  border-radius:16px!important;
  background:#f8fbff!important;
}
body .gs360-company-shell .gs360-profile-protected-grid span{
  display:block!important;
  color:#687995!important;
  font-size:11px!important;
  font-weight:900!important;
  margin-bottom:6px!important;
}
body .gs360-company-shell .gs360-profile-protected-grid strong{
  display:block!important;
  color:#071b4d!important;
  font-size:14px!important;
  font-weight:900!important;
  overflow-wrap:anywhere!important;
}
body .gs360-company-shell .gs360-profile-protected-grid em{
  display:inline-block!important;
  margin-top:8px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#eef5ff!important;
  color:#586b88!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-profile-layout.is-single{
  grid-template-columns:1fr!important;
}
@media (max-width:1180px){
  body .gs360-company-shell .gs360-profile-protected-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-profile-tablist{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:10px!important;}
  body .gs360-company-shell .gs360-profile-tablist button{flex:0 0 auto!important;}
  body .gs360-company-shell .gs360-profile-protected-grid{grid-template-columns:1fr!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030B / CR-0.6.2-alpha / FASE 0.6.2B
 * GESTIONE SCADENZE360
 * Esito atteso: profilo azienda organizzato in tab con modifica sicura dei soli
 * dati operativi e separazione dei dati sensibili.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030C / CR-0.6.2-alpha / FASE 0.6.2C
 * Modulo: Calendario Scadenze evoluto.
 * Versione: 0.6.2-alpha
 * Scopo:
 * - introdurre viste Settimana, Mese e Anno;
 * - aggiungere barra filtri con ricerca testuale, categoria, stato,
 *   priorità, responsabile e data riferimento;
 * - migliorare leggibilità degli eventi calendario su desktop/tablet/mobile.
 *
 * Contesto:
 * Area Azienda Cliente / modulo Calendario.
 *
 * Relazioni:
 * - PHP: GS360_Frontend::renderizza_dashboard_azienda();
 * - Tabelle lette: wpscad360_scadenze, wpscad360_categorie_scadenza,
 *   wpscad360_utenti_aziende;
 * - Vista dettaglio scadenza collegata tramite data-gs360-view-link.
 *
 * Note developer:
 * nessuna modifica database. Le viste sono calcolate server-side in base
 * ai parametri GET prefissati gs360_cal_*.
 * ===================================================== */

body .gs360-company-shell .gs360-calendar-toolbar-panel{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
}
body .gs360-company-shell .gs360-calendar-view-tabs{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body .gs360-company-shell .gs360-calendar-view-tabs a{
  min-height:38px!important;
  padding:9px 16px!important;
  border:1px solid #d8e5f3!important;
  border-radius:999px!important;
  background:#ffffff!important;
  color:#071b4d!important;
  text-decoration:none!important;
  font-weight:900!important;
  font-size:13px!important;
}
body .gs360-company-shell .gs360-calendar-view-tabs a.is-active,
body .gs360-company-shell .gs360-calendar-view-tabs a:hover{
  background:#123f3a!important;
  border-color:#123f3a!important;
  color:#ffffff!important;
}
body .gs360-company-shell .gs360-calendar-filter-form{
  display:grid!important;
  grid-template-columns:1.5fr repeat(6,minmax(110px,1fr)) auto!important;
  gap:10px!important;
  align-items:end!important;
}
body .gs360-company-shell .gs360-calendar-filter-form label{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  margin:0!important;
}
body .gs360-company-shell .gs360-calendar-filter-form label span{
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  color:#687995!important;
}
body .gs360-company-shell .gs360-calendar-filter-form input,
body .gs360-company-shell .gs360-calendar-filter-form select{
  min-height:40px!important;
  width:100%!important;
  border:1px solid #d8e5f3!important;
  border-radius:13px!important;
  background:#f8fbff!important;
  color:#071b4d!important;
  font-weight:800!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-calendar-filter-actions{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-calendar-jump-actions{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body .gs360-company-shell .gs360-calendar-stage{
  position:relative!important;
  display:flex!important;
  align-items:stretch!important;
  gap:14px!important;
}
body .gs360-company-shell .gs360-calendar-stage > .gs360-company-panel{
  flex:1 1 auto!important;
  min-width:0!important;
}
body .gs360-company-shell .gs360-calendar-side-nav{
  width:48px!important;
  min-width:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:18px!important;
  border:1px solid #d8e5f3!important;
  background:#ffffff!important;
  color:#071b4d!important;
  text-decoration:none!important;
  font-size:22px!important;
  font-weight:900!important;
  box-shadow:0 10px 24px rgba(7,27,77,.06)!important;
}
body .gs360-company-shell .gs360-calendar-side-nav:hover{
  background:#123f3a!important;
  border-color:#123f3a!important;
  color:#ffffff!important;
}
body .gs360-company-shell .gs360-calendar-overview-panel{
  padding:18px!important;
}
body .gs360-company-shell .gs360-calendar-overview-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
body .gs360-company-shell .gs360-calendar-overview-grid.is-full-year{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body .gs360-company-shell .gs360-calendar-overview-month{
  border:1px solid #dce7f4!important;
  border-radius:18px!important;
  background:#ffffff!important;
  padding:12px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-calendar-overview-month.is-current{
  border-color:#8fd4a3!important;
  background:#fbfffc!important;
}
body .gs360-company-shell .gs360-calendar-overview-month header,
body .gs360-company-shell .gs360-calendar-overview-month footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
body .gs360-company-shell .gs360-calendar-overview-month header{
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-calendar-overview-month header a,
body .gs360-company-shell .gs360-calendar-overview-month footer a{
  color:#071b4d!important;
  text-decoration:none!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-calendar-overview-month header span,
body .gs360-company-shell .gs360-calendar-overview-month footer span{
  color:#6d7d97!important;
  font-size:11px!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-calendar-overview-days{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:4px!important;
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-calendar-overview-days .is-empty{
  display:block!important;
  min-height:11px!important;
}
body .gs360-company-shell .gs360-calendar-overview-day{
  display:block!important;
  width:100%!important;
  aspect-ratio:1/1!important;
  border-radius:4px!important;
  background:#ecf2f9!important;
  border:1px solid #ecf2f9!important;
}
body .gs360-company-shell .gs360-calendar-overview-day.is-level-1{
  background:#c9f1d5!important;
  border-color:#b4e7c2!important;
}
body .gs360-company-shell .gs360-calendar-overview-day.is-level-2{
  background:#86db9f!important;
  border-color:#6fcb8b!important;
}
body .gs360-company-shell .gs360-calendar-overview-day.is-level-3{
  background:#f4a3d1!important;
  border-color:#ef8ac5!important;
}
body .gs360-company-shell .gs360-calendar-overview-day:hover{
  transform:scale(1.08)!important;
}
body .gs360-company-shell .gs360-calendar-week-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:10px!important;
}
body .gs360-company-shell .gs360-calendar-week-day{
  min-height:210px!important;
  border:1px solid #dce7f4!important;
  border-radius:18px!important;
  background:#ffffff!important;
  padding:12px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-calendar-week-day.has-events{
  border-color:#94d7a7!important;
  background:#fbfffc!important;
}
body .gs360-company-shell .gs360-calendar-week-day-head{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:8px!important;
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-calendar-week-day-head strong{
  color:#071b4d!important;
  font-size:15px!important;
  font-weight:900!important;
  text-transform:capitalize!important;
}
body .gs360-company-shell .gs360-calendar-week-day-head span{
  color:#687995!important;
  font-size:11px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-calendar-week-event{
  display:block!important;
  margin-bottom:8px!important;
  padding:9px 10px!important;
  border-radius:13px!important;
  border:1px solid #dce7f4!important;
  background:#f8fbff!important;
  text-decoration:none!important;
  color:#071b4d!important;
}
body .gs360-company-shell .gs360-calendar-week-event span,
body .gs360-company-shell .gs360-calendar-week-event em{
  display:block!important;
  font-size:10px!important;
  font-weight:900!important;
  color:#687995!important;
  font-style:normal!important;
}
body .gs360-company-shell .gs360-calendar-week-event strong{
  display:block!important;
  margin:3px 0!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:900!important;
  color:#071b4d!important;
}
body .gs360-company-shell .gs360-calendar-year-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
body .gs360-company-shell .gs360-calendar-year-month{
  min-height:150px!important;
  border:1px solid #dce7f4!important;
  border-radius:18px!important;
  background:#ffffff!important;
  padding:14px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-calendar-year-month.has-events{
  border-color:#94d7a7!important;
  background:#fbfffc!important;
}
body .gs360-company-shell .gs360-calendar-year-month header{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:8px!important;
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-calendar-year-month header strong{
  font-size:16px!important;
  color:#071b4d!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-calendar-year-month header span{
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#e9fff0!important;
  color:#15943c!important;
  font-size:10px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-calendar-year-month a{
  display:flex!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:7px 0!important;
  border-top:1px solid #edf3fa!important;
  color:#071b4d!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-calendar-year-month a span{
  color:#687995!important;
}
body .gs360-company-shell .gs360-calendar-year-month small,
body .gs360-company-shell .gs360-calendar-week-day small{
  color:#7a8aa5!important;
  font-weight:800!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-calendar-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-calendar-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-calendar-year-grid,
  body .gs360-company-shell .gs360-calendar-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-calendar-stage{gap:10px!important;}
  body .gs360-company-shell .gs360-calendar-side-nav{width:42px!important;min-width:42px!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-calendar-filter-form{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-calendar-filter-actions,
  body .gs360-company-shell .gs360-calendar-jump-actions{flex-direction:column!important;align-items:stretch!important;}
  body .gs360-company-shell .gs360-calendar-week-grid,
  body .gs360-company-shell .gs360-calendar-year-grid,
  body .gs360-company-shell .gs360-calendar-overview-grid{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-calendar-stage{flex-direction:column!important;}
  body .gs360-company-shell .gs360-calendar-side-nav{width:100%!important;min-width:0!important;min-height:44px!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030C / CR-0.6.2-alpha / FASE 0.6.2C
 * GESTIONE SCADENZE360
 * Esito atteso: calendario con viste settimana/mese/anno, filtri e ricerca.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030D / CR-0.6.2-alpha / FASE 0.6.2D
 * Modulo: Area Azienda Cliente / Documenti con filtri e paginazione.
 * Versione: 0.6.2-alpha
 * Scopo:
 * migliorare la consultazione dell'archivio documenti aziendali con KPI,
 * filtri responsive, tabella leggibile e paginazione operativa.
 *
 * Contesto:
 * Dashboard Azienda Cliente, vista #documenti.
 *
 * Relazioni:
 * - PHP: SCAD360-SNIP-030D in includes/class-gs360-frontend.php;
 * - DB: wpscad360_documenti, wpscad360_scadenze;
 * - UI: futura fase upload allegati e versionamento documenti.
 *
 * Tabelle coinvolte:
 * nessuna modifica schema. Solo lettura dati.
 * ===================================================== */

body .gs360-company-shell .gs360-documents-kpi{
  margin-bottom:16px!important;
}
body .gs360-company-shell .gs360-documents-panel{
  overflow:visible!important;
}
body .gs360-company-shell .gs360-documents-filters{
  display:grid!important;
  grid-template-columns:minmax(220px,1.4fr) repeat(5,minmax(135px,1fr)) auto!important;
  gap:10px!important;
  align-items:end!important;
  margin:14px 0 18px!important;
}
body .gs360-company-shell .gs360-documents-filters label{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  margin:0!important;
}
body .gs360-company-shell .gs360-documents-filters label span{
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#52627c!important;
}
body .gs360-company-shell .gs360-documents-filters input,
body .gs360-company-shell .gs360-documents-filters select{
  min-height:42px!important;
  width:100%!important;
  border:1px solid #d8e4f0!important;
  border-radius:13px!important;
  background:#f8fbff!important;
  color:#06163d!important;
  padding:9px 12px!important;
  font-size:13px!important;
  font-weight:700!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-documents-filter-actions{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-end!important;
}
body .gs360-company-shell .gs360-documents-table-wrap{
  overflow-x:auto!important;
  border:1px solid #dbe6f2!important;
  border-radius:16px!important;
}
body .gs360-company-shell .gs360-documents-table{
  min-width:1120px!important;
}
body .gs360-company-shell .gs360-documents-table td strong{
  display:block!important;
  color:#06163d!important;
  font-size:13px!important;
  line-height:1.2!important;
}
body .gs360-company-shell .gs360-documents-table td small{
  display:block!important;
  margin-top:4px!important;
  color:#66748a!important;
  font-size:11px!important;
  font-weight:700!important;
}
body .gs360-company-shell .gs360-documents-table td a{
  color:#0b5ed7!important;
  font-weight:800!important;
  text-decoration:none!important;
}
body .gs360-company-shell .gs360-documents-table td a:hover{
  text-decoration:underline!important;
}
body .gs360-company-shell .gs360-documents-pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:14px!important;
  flex-wrap:wrap!important;
}
body .gs360-company-shell .gs360-documents-pagination > span{
  color:#61708a!important;
  font-size:13px!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-documents-pagination > div{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-documents-filters{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body .gs360-company-shell .gs360-documents-filter-actions{
    justify-content:flex-start!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-documents-filters{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-documents-filter-actions,
  body .gs360-company-shell .gs360-documents-pagination,
  body .gs360-company-shell .gs360-documents-pagination > div{
    width:100%!important;
    justify-content:stretch!important;
  }
  body .gs360-company-shell .gs360-documents-filter-actions .gs360-action-btn,
  body .gs360-company-shell .gs360-documents-pagination .gs360-action-btn{
    flex:1 1 auto!important;
    justify-content:center!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030D / CR-0.6.2-alpha / FASE 0.6.2D
 * GESTIONE SCADENZE360
 * Esito atteso: archivio documenti con KPI, filtri, tabella e paginazione.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030E / CR-0.6.2-alpha / FASE 0.6.2E
 * Modulo: Area Azienda Cliente / Report grafici operativi.
 * Versione: 0.6.2-alpha
 *
 * Scopo:
 * definire il layout dei primi grafici report senza librerie esterne,
 * usando barre CSS, KPI e card responsive.
 *
 * Contesto:
 * vista #report della Dashboard Azienda Cliente.
 *
 * Relazioni:
 * - PHP: GS360_Frontend::renderizza_dashboard_azienda(), sezione Report;
 * - DB: wpscad360_scadenze, wpscad360_categorie_scadenza in sola lettura;
 * - Moduli collegati: Scadenze, Calendario, Documenti.
 *
 * Tabelle coinvolte:
 * nessuna modifica database. Solo rappresentazione UI dei dati già disponibili.
 * ===================================================== */

body .gs360-company-shell .gs360-report-filters{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(160px,1fr)) auto!important;
  gap:12px!important;
  align-items:end!important;
  margin:14px 0 18px!important;
  padding:14px!important;
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  background:#ffffff!important;
  box-shadow:0 14px 32px rgba(7,27,77,.06)!important;
}
body .gs360-company-shell .gs360-report-filters label{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
}
body .gs360-company-shell .gs360-report-filters label span{
  font-size:11px!important;
  font-weight:900!important;
  color:#62708a!important;
}
body .gs360-company-shell .gs360-report-filters select{
  min-height:42px!important;
  border:1px solid #d6e2f0!important;
  border-radius:13px!important;
  padding:8px 11px!important;
  background:#f8fbff!important;
  color:#06163d!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-report-filter-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body .gs360-company-shell .gs360-report-kpi-grid{
  margin-bottom:18px!important;
}
body .gs360-company-shell .gs360-report-layout{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:start!important;
}
body .gs360-company-shell .gs360-report-panel{
  min-height:260px!important;
}
body .gs360-company-shell .gs360-report-panel.is-wide{
  grid-column:span 2!important;
}
body .gs360-company-shell .gs360-report-bars{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  margin-top:12px!important;
}
body .gs360-company-shell .gs360-report-bar-row{
  display:grid!important;
  grid-template-columns:minmax(105px,150px) minmax(0,1fr) 44px!important;
  gap:12px!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-report-bar-row > span{
  font-size:13px!important;
  font-weight:850!important;
  color:#10244f!important;
}
body .gs360-company-shell .gs360-report-bar-row > div{
  height:12px!important;
  border-radius:999px!important;
  background:#edf3fb!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-report-bar-row > div > i{
  display:block!important;
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#1bb04c,#0b7f3a)!important;
}
body .gs360-company-shell .gs360-report-bar-row > strong{
  font-size:13px!important;
  color:#06163d!important;
  text-align:right!important;
}
body .gs360-company-shell .gs360-report-category-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:12px!important;
}
body .gs360-company-shell .gs360-report-category-item{
  padding:13px!important;
  border:1px solid #dfe9f5!important;
  border-radius:15px!important;
  background:#f8fbff!important;
}
body .gs360-company-shell .gs360-report-category-item > div{
  display:flex!important;
  justify-content:space-between!important;
  gap:12px!important;
  align-items:flex-start!important;
  margin-bottom:9px!important;
}
body .gs360-company-shell .gs360-report-category-item strong{
  font-size:13px!important;
  color:#06163d!important;
}
body .gs360-company-shell .gs360-report-category-item span{
  font-size:12px!important;
  color:#5f6f89!important;
  white-space:nowrap!important;
}
body .gs360-company-shell .gs360-report-category-item em{
  display:block!important;
  height:10px!important;
  border-radius:999px!important;
  background:#eaf1fa!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-report-category-item em i{
  display:block!important;
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#1867d6,#4f8df7)!important;
}
body .gs360-company-shell .gs360-report-month-grid{
  min-height:220px!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(82px,1fr))!important;
  gap:12px!important;
  align-items:end!important;
  margin-top:14px!important;
}
body .gs360-company-shell .gs360-report-month-item{
  min-height:210px!important;
  display:grid!important;
  grid-template-rows:auto auto 1fr auto!important;
  gap:7px!important;
  align-items:end!important;
  text-align:center!important;
}
body .gs360-company-shell .gs360-report-month-item > span{
  font-size:11px!important;
  font-weight:900!important;
  color:#61708a!important;
}
body .gs360-company-shell .gs360-report-month-item > strong{
  font-size:17px!important;
  color:#06163d!important;
}
body .gs360-company-shell .gs360-report-month-item > em{
  width:100%!important;
  height:120px!important;
  display:flex!important;
  align-items:end!important;
  justify-content:center!important;
  border-radius:14px!important;
  background:#edf3fb!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-report-month-item > em > i{
  width:100%!important;
  min-height:6px!important;
  display:block!important;
  border-radius:14px 14px 0 0!important;
  background:linear-gradient(180deg,#1bb04c,#0f7e3d)!important;
}
body .gs360-company-shell .gs360-report-month-item > small{
  font-size:10px!important;
  color:#65748e!important;
  font-weight:800!important;
}
@media (max-width:1180px){
  body .gs360-company-shell .gs360-report-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .gs360-company-shell .gs360-report-filter-actions{
    grid-column:span 2!important;
  }
}
@media (max-width:780px){
  body .gs360-company-shell .gs360-report-filters,
  body .gs360-company-shell .gs360-report-layout,
  body .gs360-company-shell .gs360-report-category-list{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-report-panel.is-wide{
    grid-column:auto!important;
  }
  body .gs360-company-shell .gs360-report-filter-actions{
    grid-column:auto!important;
  }
  body .gs360-company-shell .gs360-report-bar-row{
    grid-template-columns:1fr 42px!important;
  }
  body .gs360-company-shell .gs360-report-bar-row > span{
    grid-column:span 2!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030E / CR-0.6.2-alpha / FASE 0.6.2E
 * GESTIONE SCADENZE360
 * Esito atteso: primi grafici Report leggibili, responsive e senza dipendenze esterne.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030F / CR-0.6.2-alpha / FASE 0.6.2F
 * Modulo: Area Azienda Cliente / Utenti azienda.
 * Versione: 0.6.2-alpha
 *
 * Scopo:
 * definire layout operativo per gestione utenti aziendali: KPI team,
 * filtri, tabella, form creazione/modifica, azioni stato e matrice permessi.
 *
 * Contesto:
 * vista #utenti della Dashboard Azienda Cliente.
 *
 * Relazioni:
 * - PHP: renderizza_dashboard_azienda(), gestione POST SCAD360-SNIP-030F;
 * - DB: wpscad360_utenti_aziende, wpscad360_ruoli, wpscad360_permessi,
 *   wpscad360_ruoli_permessi, wpscad360_audit_log.
 *
 * Tabelle coinvolte:
 * nessun ALTER TABLE. Solo lettura/scrittura controllata su tabelle esistenti.
 * ===================================================== */

body .gs360-company-shell .gs360-team-head{
  align-items:flex-start!important;
}
body .gs360-company-shell .gs360-team-kpi-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  margin-bottom:16px!important;
}
body .gs360-company-shell .gs360-team-panel,
body .gs360-company-shell .gs360-team-form-panel,
body .gs360-company-shell .gs360-team-permissions-panel{
  margin-top:16px!important;
}
body .gs360-company-shell .gs360-team-filters{
  display:grid!important;
  grid-template-columns:minmax(220px,1.35fr) minmax(160px,.8fr) minmax(150px,.7fr) auto auto!important;
  gap:10px!important;
  align-items:center!important;
  margin:0 0 14px!important;
}
body .gs360-company-shell .gs360-team-filters input,
body .gs360-company-shell .gs360-team-filters select,
body .gs360-company-shell .gs360-team-form input,
body .gs360-company-shell .gs360-team-form select,
body .gs360-company-shell .gs360-team-form textarea{
  width:100%!important;
  min-height:44px!important;
  border:1px solid #d9e5f2!important;
  border-radius:14px!important;
  background:#f8fbff!important;
  padding:10px 12px!important;
  color:#06163d!important;
  font-weight:700!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-team-table td .gs360-badge{
  margin-left:6px!important;
}
body .gs360-company-shell .gs360-team-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-team-actions .gs360-action-btn,
body .gs360-company-shell .gs360-team-actions button.gs360-action-btn{
  min-height:34px!important;
  padding:7px 10px!important;
  font-size:12px!important;
}
body .gs360-company-shell .gs360-team-check{
  display:flex!important;
  gap:10px!important;
  align-items:flex-start!important;
  margin:14px 0!important;
  color:#465875!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-team-check input{
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin-top:2px!important;
}
body .gs360-company-shell .gs360-team-permission-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
body .gs360-company-shell .gs360-team-permission-grid article{
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  background:#fbfdff!important;
  padding:16px!important;
  box-shadow:0 10px 24px rgba(13,27,61,.05)!important;
}
body .gs360-company-shell .gs360-team-permission-grid h4{
  margin:0 0 6px!important;
  color:#06163d!important;
  font-size:16px!important;
  line-height:1.2!important;
}
body .gs360-company-shell .gs360-team-permission-grid p{
  margin:0 0 10px!important;
  color:#61708a!important;
  font-size:13px!important;
  line-height:1.35!important;
}
body .gs360-company-shell .gs360-team-permission-grid ul{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
}
body .gs360-company-shell .gs360-team-permission-grid li{
  border:1px solid #e3edf7!important;
  border-radius:12px!important;
  padding:7px 9px!important;
  background:#ffffff!important;
  color:#43536d!important;
  font-size:12px!important;
  line-height:1.25!important;
}
body .gs360-company-shell .gs360-team-permission-grid li strong{
  color:#20a84a!important;
  text-transform:uppercase!important;
  font-size:10px!important;
  letter-spacing:.02em!important;
}
@media(max-width:1180px){
  body .gs360-company-shell .gs360-team-kpi-grid,
  body .gs360-company-shell .gs360-team-permission-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .gs360-company-shell .gs360-team-filters{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-team-kpi-grid,
  body .gs360-company-shell .gs360-team-permission-grid,
  body .gs360-company-shell .gs360-team-filters{
    grid-template-columns:1fr!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030F / CR-0.6.2-alpha / FASE 0.6.2F
 * GESTIONE SCADENZE360
 * Esito atteso: gestione utenti azienda leggibile, operativa e responsive.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030G / CR-0.6.2-alpha / FASE 0.6.2G
 * Modulo: Area Azienda Cliente / Centro Notifiche.
 * Versione: 0.6.2-alpha
 * Scopo:
 * migliorare layout del modulo Notifiche con tab, KPI, canali Mail/SMS,
 * alert scadenze, log invii, template e preferenze aziendali.
 *
 * Contesto:
 * frontend Dashboard Azienda Cliente, vista #notifiche.
 *
 * Relazioni:
 * - PHP: SCAD360-SNIP-030G in class-gs360-frontend.php;
 * - Tabelle: wpscad360_scadenze_alert, wpscad360_notifiche,
 *   wpscad360_audit_log, wpscad360_scadenze;
 * - Nessuna modifica database.
 * ===================================================== */

body .gs360-company-shell .gs360-notification-kpi-grid{
  grid-template-columns:repeat(5,minmax(150px,1fr))!important;
}
body .gs360-company-shell .gs360-notification-center{
  overflow:visible!important;
}
body .gs360-company-shell .gs360-notice-tabs-nav{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin:0 0 14px!important;
}
body .gs360-company-shell .gs360-notice-tabs-nav button{
  border:1px solid #d8e4f2!important;
  background:#ffffff!important;
  color:#06163d!important;
  border-radius:12px!important;
  padding:9px 13px!important;
  font-size:12.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
  transition:all .18s ease!important;
}
body .gs360-company-shell .gs360-notice-tabs-nav button:hover,
body .gs360-company-shell .gs360-notice-tabs-nav button.is-active{
  background:#123f3a!important;
  border-color:#123f3a!important;
  color:#ffffff!important;
  box-shadow:0 10px 22px rgba(18,63,58,.16)!important;
}
body .gs360-company-shell .gs360-notice-tab-panel{
  display:none!important;
  margin-top:14px!important;
}
body .gs360-company-shell .gs360-notice-tab-panel.is-active{
  display:block!important;
}
body .gs360-company-shell .gs360-notice-channel-grid,
body .gs360-company-shell .gs360-notice-template-grid,
body .gs360-company-shell .gs360-notice-preferences{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(180px,1fr))!important;
  gap:14px!important;
}
body .gs360-company-shell .gs360-notice-channel-grid article,
body .gs360-company-shell .gs360-notice-template-grid article,
body .gs360-company-shell .gs360-notice-preferences > div{
  border:1px solid #dbe6f3!important;
  background:#fbfdff!important;
  border-radius:16px!important;
  padding:16px!important;
  box-shadow:0 12px 26px rgba(7,27,77,.05)!important;
}
body .gs360-company-shell .gs360-notice-channel-grid article > span{
  width:48px!important;
  height:48px!important;
  border-radius:16px!important;
  background:#f1fff6!important;
  border:1px solid #ccefd8!important;
  color:#19a647!important;
  display:grid!important;
  place-items:center!important;
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-notice-channel-grid article > span svg{
  width:26px!important;
  height:26px!important;
  stroke:currentColor!important;
  fill:none!important;
}
body .gs360-company-shell .gs360-notice-channel-grid h4,
body .gs360-company-shell .gs360-notice-template-grid h4,
body .gs360-company-shell .gs360-notice-preferences strong{
  margin:0 0 7px!important;
  font-size:16px!important;
  line-height:1.15!important;
  color:#06163d!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-notice-channel-grid p,
body .gs360-company-shell .gs360-notice-template-grid p,
body .gs360-company-shell .gs360-notice-preferences p{
  margin:0 0 10px!important;
  color:#64728a!important;
  line-height:1.45!important;
  font-size:13px!important;
}
body .gs360-company-shell .gs360-notice-channel-grid article > strong{
  display:inline-flex!important;
  align-items:center!important;
  min-height:26px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#ecfff2!important;
  color:#159447!important;
  font-size:12px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-notification-table td small{
  color:#65738b!important;
  font-weight:700!important;
}

@media (max-width:1280px){
  body .gs360-company-shell .gs360-notification-kpi-grid{
    grid-template-columns:repeat(3,minmax(150px,1fr))!important;
  }
  body .gs360-company-shell .gs360-notice-channel-grid,
  body .gs360-company-shell .gs360-notice-template-grid,
  body .gs360-company-shell .gs360-notice-preferences{
    grid-template-columns:repeat(2,minmax(180px,1fr))!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-notification-kpi-grid,
  body .gs360-company-shell .gs360-notice-channel-grid,
  body .gs360-company-shell .gs360-notice-template-grid,
  body .gs360-company-shell .gs360-notice-preferences{
    grid-template-columns:1fr!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030G / CR-0.6.2-alpha / FASE 0.6.2G
 * GESTIONE SCADENZE360
 * Esito atteso: centro notifiche consultabile per Alert, Mail, SMS,
 * Log, Template e Preferenze senza modifiche database.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031A / CR-0.6.3-alpha / FASE 0.6.3A
 * Modulo: Area Azienda Cliente / Scadenze / Tabella estesa.
 * Versione: 0.6.3-alpha
 * Scopo:
 * - rendere leggibile l'elenco Scadenze con nuove colonne operative;
 * - gestire larghezza tabella, scroll orizzontale e azioni leggibili;
 * - mantenere dati e azioni già esistenti senza impatto database.
 *
 * Contesto:
 * Vista #scadenze della dashboard aziendale.
 *
 * Relazioni:
 * - PHP: SCAD360-SNIP-031A in includes/class-gs360-frontend.php;
 * - Tabelle: wpscad360_scadenze, wpscad360_scadenze_alert,
 *   wpscad360_scadenze_condivisioni, wpscad360_categorie_scadenza.
 *
 * Note developer:
 * la tabella usa min-width controllato perché le colonne sono numerose.
 * La paginazione server-side sarà introdotta in CR-0.6.3B.
 * ===================================================== */

body .gs360-company-shell .gs360-deadlines-panel-extended{
  overflow:visible!important;
}
body .gs360-company-shell .gs360-deadlines-filter-preview{
  grid-template-columns:repeat(6,minmax(145px,1fr))!important;
}
body .gs360-company-shell .gs360-deadlines-table-wrap{
  width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  border-radius:16px!important;
  border:1px solid #dfe8f3!important;
  background:#ffffff!important;
  -webkit-overflow-scrolling:touch!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended{
  min-width:1640px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended th,
body .gs360-company-shell .gs360-deadlines-table-extended td{
  vertical-align:middle!important;
  white-space:nowrap!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended td small{
  display:block!important;
  margin-top:4px!important;
  color:#687891!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:700!important;
  white-space:normal!important;
}
body .gs360-company-shell .gs360-deadline-meta-strong{
  display:block!important;
  max-width:170px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#06163d!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-deadlines-actions-head,
body .gs360-company-shell .gs360-deadlines-actions-cell{
  position:sticky!important;
  right:0!important;
  z-index:5!important;
  min-width:260px!important;
  background:#ffffff!important;
  box-shadow:-14px 0 24px rgba(7,27,77,.08)!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended thead .gs360-deadlines-actions-head{
  background:#f5f8fc!important;
  z-index:6!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-deadline-row-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(105px,1fr))!important;
  gap:8px!important;
  min-width:240px!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-inline-action-form{
  margin:0!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-action-btn{
  width:100%!important;
  min-height:34px!important;
  justify-content:center!important;
}
@media (max-width:1100px){
  body .gs360-company-shell .gs360-deadlines-filter-preview{
    grid-template-columns:repeat(2,minmax(145px,1fr))!important;
  }
}
@media (max-width:800px){
  body .gs360-company-shell .gs360-deadlines-table-extended{
    min-width:1180px!important;
  }
  body .gs360-company-shell .gs360-deadlines-actions-head,
  body .gs360-company-shell .gs360-deadlines-actions-cell{
    position:static!important;
    box-shadow:none!important;
    min-width:220px!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031A / CR-0.6.3-alpha / FASE 0.6.3A
 * GESTIONE SCADENZE360
 * Esito atteso: tabella scadenze estesa, leggibile, con azioni preservate
 * e nessuna modifica database.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031B / CR-0.6.3-alpha / FASE 0.6.3B
 * Modulo: Area Azienda Cliente / Scadenze / Paginazione server-side.
 * Versione: 0.6.3-alpha
 * Scopo:
 * - rendere leggibile e usabile la paginazione dell'elenco Scadenze;
 * - esporre selettori 10 / 25 / 50 righe;
 * - mantenere controlli Precedente / Successiva coerenti con il design.
 *
 * Contesto:
 * vista #scadenze della Dashboard Azienda Cliente.
 *
 * Relazioni:
 * - PHP: SCAD360-SNIP-031B in includes/class-gs360-frontend.php;
 * - Query: wpscad360_scadenze con LIMIT/OFFSET;
 * - UI: tabella estesa SCAD360-SNIP-031A.
 *
 * Tabelle coinvolte:
 * wpscad360_scadenze in sola lettura. Nessuna modifica database.
 * ===================================================== */
body .gs360-company-shell .gs360-deadlines-pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:14px!important;
  padding-top:12px!important;
  border-top:1px solid #e3ebf5!important;
  flex-wrap:wrap!important;
}
body .gs360-company-shell .gs360-deadlines-pagination > span{
  color:#61708a!important;
  font-size:13px!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-deadlines-pagination-controls{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body .gs360-company-shell .gs360-deadlines-per-page-label{
  color:#61708a!important;
  font-size:12px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
body .gs360-company-shell .gs360-deadlines-pagination .gs360-action-btn{
  min-height:34px!important;
  padding:7px 12px!important;
}
body .gs360-company-shell .gs360-deadlines-pagination .gs360-action-btn.is-current{
  background:#20a84a!important;
  color:#ffffff!important;
  border-color:#20a84a!important;
}
body .gs360-company-shell .gs360-deadlines-pagination .gs360-action-btn.is-disabled{
  opacity:.45!important;
  pointer-events:none!important;
  filter:grayscale(1)!important;
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-deadlines-pagination,
  body .gs360-company-shell .gs360-deadlines-pagination-controls{
    width:100%!important;
    justify-content:stretch!important;
  }
  body .gs360-company-shell .gs360-deadlines-pagination .gs360-action-btn{
    flex:1 1 auto!important;
    justify-content:center!important;
  }
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031B / CR-0.6.3-alpha / FASE 0.6.3B
 * GESTIONE SCADENZE360
 * Esito atteso: elenco Scadenze paginato server-side con controlli 10/25/50.
 * ===================================================== */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031B1 / CR-0.6.3-alpha / FIX 0.6.3B
 * Modulo: Area Azienda Cliente / Scadenze / Griglia adattiva senza scroll desktop.
 * Versione: 0.6.3-alpha
 * Scopo:
 * - eliminare lo scroll orizzontale della tabella Scadenze su desktop;
 * - rendere sempre interamente visibile la colonna Azioni;
 * - comprimere in modo controllato colonne, padding, badge e pulsanti senza
 *   alterare dati, query o logica di paginazione.
 *
 * Contesto:
 * Vista #scadenze della Dashboard Azienda Cliente, dopo introduzione tabella
 * estesa e paginazione server-side.
 *
 * Relazioni:
 * - SCAD360-SNIP-031A: tabella scadenze estesa;
 * - SCAD360-SNIP-031B: paginazione elenco scadenze;
 * - Tabelle in sola lettura: wpscad360_scadenze, wpscad360_scadenze_alert,
 *   wpscad360_scadenze_condivisioni, wpscad360_categorie_scadenza.
 *
 * Tabelle coinvolte:
 * nessuna modifica database. Nessun ALTER TABLE.
 *
 * Note developer:
 * il precedente min-width forzato a 1640px generava scroll orizzontale e taglio
 * della colonna Azioni. Questo fix usa table-layout:fixed e percentuali di
 * colonna per desktop; sotto i breakpoint la tabella può tornare a layout
 * responsivo/card senza perdere le azioni.
 * ===================================================== */

/* Contenitore tabella: su desktop non forza più lo scroll orizzontale. */
body .gs360-company-shell .gs360-deadlines-table-wrap{
  overflow-x:visible!important;
  overflow-y:visible!important;
}

/* Tabella adattiva: larghezza piena del pannello e colonne compresse in percentuale. */
body .gs360-company-shell .gs360-deadlines-table-extended{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}

/* Celle compatte: consentono wrap controllato e impediscono overflow laterale. */
body .gs360-company-shell .gs360-deadlines-table-extended th,
body .gs360-company-shell .gs360-deadlines-table-extended td{
  padding:10px 8px!important;
  font-size:11.5px!important;
  line-height:1.28!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

/* Larghezze operative per desktop: privilegia Azioni e campi più importanti. */
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(1),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(1){width:6.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(2),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(2){width:9%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(3),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(3){width:8%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(4),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(4){width:7.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(5),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(5){width:7.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(6),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(6){width:7.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(7),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(7){width:6.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(8),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(8){width:5.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(9),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(9){width:7.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(10),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(10){width:7.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(11),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(11){width:7.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(12),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(12){width:19%!important;}

/* Colonna Azioni: non sticky su desktop, sempre dentro la griglia e completamente visibile. */
body .gs360-company-shell .gs360-deadlines-actions-head,
body .gs360-company-shell .gs360-deadlines-actions-cell{
  position:static!important;
  right:auto!important;
  z-index:auto!important;
  min-width:0!important;
  width:auto!important;
  box-shadow:none!important;
  background:inherit!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended thead .gs360-deadlines-actions-head{
  background:#f5f8fc!important;
}

/* Pulsanti azioni: quattro azioni in due colonne, compatte ma leggibili. */
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-deadline-row-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  min-width:0!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-action-btn{
  min-height:32px!important;
  width:100%!important;
  padding:6px 8px!important;
  border-radius:999px!important;
  font-size:10.8px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  justify-content:center!important;
  gap:5px!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-action-btn .gs360-icon,
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-action-btn .gs360-action-icon{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
}

/* Badge e microtesti più compatti per non allargare la riga. */
body .gs360-company-shell .gs360-deadlines-table-extended .gs360-badge{
  font-size:10.5px!important;
  line-height:1.1!important;
  padding:5px 7px!important;
  white-space:normal!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended td small{
  font-size:10.5px!important;
  line-height:1.15!important;
}
body .gs360-company-shell .gs360-deadline-meta-strong{
  max-width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* Notebook/tablet: nasconde colonne meno critiche e conserva sempre Azioni. */
@media (max-width:1280px){
  body .gs360-company-shell .gs360-deadlines-table-extended th,
  body .gs360-company-shell .gs360-deadlines-table-extended td{
    font-size:11px!important;
    padding:9px 6px!important;
  }
  body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(7),
  body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(7){display:none!important;}
  body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(5),
  body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(5){display:none!important;}
  body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(12),
  body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(12){width:20%!important;}
}

/* Mobile: usa il layout card esistente del tema, senza scroll orizzontale. */
@media (max-width:800px){
  body .gs360-company-shell .gs360-deadlines-table-wrap{
    overflow-x:visible!important;
    border:0!important;
    background:transparent!important;
  }
  body .gs360-company-shell .gs360-deadlines-table-extended,
  body .gs360-company-shell .gs360-deadlines-table-extended tbody,
  body .gs360-company-shell .gs360-deadlines-table-extended tr,
  body .gs360-company-shell .gs360-deadlines-table-extended td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  body .gs360-company-shell .gs360-deadlines-table-extended thead{display:none!important;}
  body .gs360-company-shell .gs360-deadlines-table-extended tr{
    border:1px solid #dfe8f3!important;
    border-radius:16px!important;
    background:#fff!important;
    margin-bottom:12px!important;
    overflow:hidden!important;
  }
  body .gs360-company-shell .gs360-deadlines-table-extended td{
    display:flex!important;
    justify-content:space-between!important;
    gap:14px!important;
    border-bottom:1px solid #eef3f7!important;
    padding:12px!important;
  }
  body .gs360-company-shell .gs360-deadlines-table-extended td::before{
    content:attr(data-label)!important;
    font-weight:900!important;
    color:#66748a!important;
    flex:0 0 42%!important;
  }
  body .gs360-company-shell .gs360-deadlines-table-extended td:last-child{border-bottom:0!important;}
  body .gs360-company-shell .gs360-deadlines-table-extended .gs360-deadline-row-actions{
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031B1 / CR-0.6.3-alpha / FIX 0.6.3B
 * GESTIONE SCADENZE360
 * Esito atteso: tabella Scadenze senza scroll orizzontale su desktop,
 * colonna Azioni completamente visibile e layout mobile/card preservato.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031C / CR-0.6.3-alpha / FASE 0.6.3C
 * Modulo: Scadenze / Dettaglio scadenza a tab.
 * Scopo: migliorare organizzazione e leggibilità della scheda dettaglio
 * con tab tematici, spaziature coerenti e pannelli a griglia adattiva.
 * Relazioni: markup #dettaglio-scadenza in includes/class-gs360-frontend.php.
 * ===================================================== */
body .gs360-company-shell .gs360-deadline-tabs{
  margin-top:18px;
}
body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tablist{
  margin-bottom:14px!important;
}
body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tablist button{
  min-width:160px!important;
}
body .gs360-company-shell .gs360-deadline-detail-grid-single{
  grid-template-columns:minmax(0,1fr)!important;
}
body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tab-panel .gs360-deadline-detail-grid{
  margin-top:0!important;
}
body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tab-panel .gs360-deadline-detail-card{
  min-height:100%;
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tablist button{
    min-width:auto!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031C / CR-0.6.3-alpha / FASE 0.6.3C
 * GESTIONE SCADENZE360
 * Esito atteso: scheda dettaglio scadenza organizzata in tab
 * Panoramica, Documenti e alert, Condivisione e Audit.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-030E / CR-0.6.3-alpha / FASE 0.6.3F2
 * Modulo: Calendario / AJAX + panoramica annuale compatta.
 * Scopo: supportare il refresh asincrono della sezione calendario e
 * mostrare la panoramica annuale su una sola riga desktop, molto compatta.
 * Relazioni: endpoint AJAX gs360_calendario_async e markup panoramica annuale.
 * ===================================================== */
body .gs360-company-shell #calendario-scadenze.is-loading{
  opacity:.62!important;
  pointer-events:none!important;
  position:relative!important;
}
body .gs360-company-shell #calendario-scadenze.is-loading::after{
  content:'Aggiornamento calendario…'!important;
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:2147483000!important;
  background:#071b4d!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:12px 18px!important;
  font-size:13px!important;
  font-weight:900!important;
  box-shadow:0 18px 36px rgba(7,27,77,.22)!important;
}
body .gs360-company-shell .gs360-calendar-overview-panel .gs360-calendar-overview-grid,
body .gs360-company-shell .gs360-calendar-overview-grid.is-full-year{
  grid-template-columns:repeat(12,minmax(70px,1fr))!important;
  gap:7px!important;
}
body .gs360-company-shell .gs360-calendar-overview-month{
  padding:6px!important;
  border-radius:12px!important;
  min-width:0!important;
}
body .gs360-company-shell .gs360-calendar-overview-month header{
  margin-bottom:5px!important;
  gap:4px!important;
}
body .gs360-company-shell .gs360-calendar-overview-month header strong{
  font-size:10px!important;
  line-height:1!important;
}
body .gs360-company-shell .gs360-calendar-overview-month header span{
  display:none!important;
}
body .gs360-company-shell .gs360-calendar-overview-days{
  gap:2px!important;
  margin-bottom:5px!important;
}
body .gs360-company-shell .gs360-calendar-overview-days .is-empty{
  min-height:5px!important;
}
body .gs360-company-shell .gs360-calendar-overview-day{
  border-radius:2px!important;
  min-width:0!important;
}
body .gs360-company-shell .gs360-calendar-overview-month footer{
  gap:4px!important;
}
body .gs360-company-shell .gs360-calendar-overview-month footer span,
body .gs360-company-shell .gs360-calendar-overview-month footer a{
  font-size:8.5px!important;
  line-height:1!important;
}
body .gs360-company-shell .gs360-calendar-overview-month footer a{
  white-space:nowrap!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-calendar-overview-panel .gs360-calendar-overview-grid,
  body .gs360-company-shell .gs360-calendar-overview-grid.is-full-year{
    grid-template-columns:repeat(6,minmax(76px,1fr))!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-calendar-overview-panel .gs360-calendar-overview-grid,
  body .gs360-company-shell .gs360-calendar-overview-grid.is-full-year{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-030E / CR-0.6.3-alpha / FASE 0.6.3F2
 * GESTIONE SCADENZE360
 * Esito atteso: calendario aggiornato via AJAX e panoramica annuale compatta.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031G / CR-0.6.3-alpha / FASE 0.6.3G
 * Modulo: Documenti / Upload allegati.
 * Scopo: introdurre stile form upload documenti, notice esito e tabella
 * allegati collegata al dettaglio scadenza.
 * Relazioni: includes/class-gs360-frontend.php, wpscad360_documenti.
 * ===================================================== */
body .gs360-company-shell .gs360-company-notice{
  border:1px solid #bde8c9!important;
  background:#effdf3!important;
  color:#0b6f2f!important;
  border-radius:16px!important;
  padding:13px 16px!important;
  margin:14px 0!important;
  font-size:14px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-company-notice.is-error{
  border-color:#ffc7c7!important;
  background:#fff4f4!important;
  color:#a31515!important;
}
body .gs360-company-shell .gs360-documents-upload-panel{
  margin:16px 0!important;
}
body .gs360-company-shell .gs360-documents-upload-form{
  display:grid!important;
  grid-template-columns:minmax(220px,1.2fr) minmax(220px,1fr) auto!important;
  gap:12px!important;
  align-items:end!important;
}
body .gs360-company-shell .gs360-documents-upload-form label{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  margin:0!important;
}
body .gs360-company-shell .gs360-documents-upload-form label span{
  color:#687995!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  text-transform:uppercase!important;
}
body .gs360-company-shell .gs360-documents-upload-form input[type="file"],
body .gs360-company-shell .gs360-documents-upload-form select{
  width:100%!important;
  min-height:42px!important;
  border:1px solid #d8e5f3!important;
  border-radius:14px!important;
  background:#f8fbff!important;
  color:#071b4d!important;
  box-sizing:border-box!important;
  padding:8px 10px!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-documents-upload-actions{
  display:flex!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-documents-upload-form.is-compact{
  grid-template-columns:minmax(180px,1fr) auto!important;
  margin:14px 0!important;
  padding:12px!important;
  border:1px dashed #bad3ef!important;
  border-radius:16px!important;
  background:#f8fbff!important;
}
body .gs360-company-shell .gs360-deadline-documents-card .gs360-table-wrap{
  margin-top:12px!important;
}
@media (max-width:980px){
  body .gs360-company-shell .gs360-documents-upload-form,
  body .gs360-company-shell .gs360-documents-upload-form.is-compact{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-documents-upload-actions,
  body .gs360-company-shell .gs360-documents-upload-form .gs360-action-btn{
    width:100%!important;
    justify-content:center!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031G / CR-0.6.3-alpha / FASE 0.6.3G
 * GESTIONE SCADENZE360
 * Esito atteso: upload documenti visibile e usabile da Archivio Documenti
 * e da Dettaglio Scadenza, responsive desktop/mobile.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031H / CR-0.6.3-alpha / FASE 0.6.3H
 * Modulo: Documenti / Gestione avanzata documento.
 * Scopo: migliorare UX delle azioni documento con pannello Gestisci,
 *        modifica metadati, sostituzione file ed eliminazione controllata.
 * Contesto: Area Azienda Cliente / modulo Documenti.
 * Relazioni: includes/class-gs360-frontend.php, wpscad360_documenti.
 * Tabelle coinvolte: nessuna modifica schema database.
 * ===================================================== */
body .gs360-company-shell .gs360-documents-actions-cell{min-width:240px!important;}
body .gs360-company-shell .gs360-document-manage{margin-top:8px!important;}
body .gs360-company-shell .gs360-document-manage summary{
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:6px 12px!important;
  border:1px solid #d8e5f3!important;
  border-radius:999px!important;
  background:#f8fbff!important;
  color:#071b4d!important;
  font-size:12px!important;
  font-weight:900!important;
  list-style:none!important;
}
body .gs360-company-shell .gs360-document-manage summary::-webkit-details-marker{display:none!important;}
body .gs360-company-shell .gs360-document-manage[open] summary{background:#123f3a!important;color:#fff!important;border-color:#123f3a!important;}
body .gs360-company-shell .gs360-document-manage-panel{
  margin-top:10px!important;
  padding:12px!important;
  border:1px solid #dfe8f3!important;
  border-radius:16px!important;
  background:#ffffff!important;
  box-shadow:0 14px 28px rgba(7,27,77,.08)!important;
  display:grid!important;
  gap:12px!important;
}
body .gs360-company-shell .gs360-document-manage-panel form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto!important;
  gap:8px!important;
  align-items:end!important;
  padding-bottom:10px!important;
  border-bottom:1px solid #edf3fa!important;
}
body .gs360-company-shell .gs360-document-manage-panel form:last-child{border-bottom:0!important;padding-bottom:0!important;}
body .gs360-company-shell .gs360-document-manage-panel label{display:flex!important;flex-direction:column!important;gap:4px!important;margin:0!important;}
body .gs360-company-shell .gs360-document-manage-panel label span{font-size:10px!important;text-transform:uppercase!important;font-weight:900!important;color:#6d7d97!important;}
body .gs360-company-shell .gs360-document-manage-panel input,
body .gs360-company-shell .gs360-document-manage-panel select{
  min-height:36px!important;
  border:1px solid #d8e5f3!important;
  border-radius:12px!important;
  background:#f8fbff!important;
  color:#071b4d!important;
  font-weight:800!important;
  padding:7px 9px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-document-replace-form{grid-template-columns:minmax(0,1fr) auto!important;}
body .gs360-company-shell .gs360-document-delete-form{grid-template-columns:auto!important;justify-content:flex-start!important;}
@media(max-width:980px){
  body .gs360-company-shell .gs360-document-manage-panel form,
  body .gs360-company-shell .gs360-document-replace-form{grid-template-columns:1fr!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031H / CR-0.6.3-alpha / FASE 0.6.3H
 * GESTIONE SCADENZE360
 * Esito atteso: gestione documento avanzata senza alterare il database.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031H1 / CR-0.6.3-alpha / FIX Documenti responsive.
 * Modulo: Documenti / Colonna Azioni e pannello Gestisci.
 * Scopo: rendere sempre visibile la tabella documenti su desktop/tablet/mobile
 * e separare la colonna Azioni dal pannello gestione avanzata full-width.
 * Contesto: Area Azienda Cliente / vista #documenti.
 * Relazioni: markup gs360-documents-row, gs360-documents-manage-row,
 * data-gs360-document-open in includes/class-gs360-frontend.php.
 * Tabelle coinvolte: nessuna modifica schema database.
 * ===================================================== */
body .gs360-company-shell .gs360-documents-table-wrap{
  overflow-x:visible!important;
  max-width:100%!important;
}
body .gs360-company-shell .gs360-documents-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
body .gs360-company-shell .gs360-documents-table th,
body .gs360-company-shell .gs360-documents-table td{
  padding:11px 10px!important;
  vertical-align:top!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
body .gs360-company-shell .gs360-documents-table th:nth-child(1),
body .gs360-company-shell .gs360-documents-table td:nth-child(1){width:20%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(2),
body .gs360-company-shell .gs360-documents-table td:nth-child(2){width:10%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(3),
body .gs360-company-shell .gs360-documents-table td:nth-child(3){width:21%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(4),
body .gs360-company-shell .gs360-documents-table td:nth-child(4){width:14%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(5),
body .gs360-company-shell .gs360-documents-table td:nth-child(5){width:8%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(6),
body .gs360-company-shell .gs360-documents-table td:nth-child(6){width:12%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(7),
body .gs360-company-shell .gs360-documents-table td:nth-child(7){width:15%!important;}
body .gs360-company-shell .gs360-documents-actions-cell{
  min-width:0!important;
  width:auto!important;
}
body .gs360-company-shell .gs360-documents-action-stack{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-documents-action-stack .gs360-action-btn,
body .gs360-company-shell .gs360-documents-action-stack .gs360-badge{
  width:100%!important;
  min-height:34px!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.15!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-documents-manage-row td{
  padding:0 10px 14px!important;
  background:#f8fbff!important;
  border-top:0!important;
}
body .gs360-company-shell .gs360-document-manage{
  width:100%!important;
  margin:0!important;
}
body .gs360-company-shell .gs360-document-manage summary{
  width:100%!important;
  min-height:42px!important;
  justify-content:flex-start!important;
  border-radius:14px!important;
  padding:10px 14px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-document-manage-panel{
  width:100%!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-document-manage-panel form{
  grid-template-columns:minmax(180px,1.4fr) minmax(140px,.8fr) minmax(220px,1.4fr) auto!important;
}
body .gs360-company-shell .gs360-document-replace-form{
  grid-template-columns:minmax(0,1fr) auto!important;
}
body .gs360-company-shell .gs360-document-delete-form{
  grid-template-columns:auto!important;
}
@media(max-width:1180px){
  body .gs360-company-shell .gs360-documents-table th,
  body .gs360-company-shell .gs360-documents-table td{font-size:12px!important;padding:10px 8px!important;}
  body .gs360-company-shell .gs360-documents-action-stack .gs360-action-btn{font-size:11px!important;padding:7px 8px!important;}
  body .gs360-company-shell .gs360-document-manage-panel form,
  body .gs360-company-shell .gs360-document-replace-form{grid-template-columns:1fr!important;}
}
@media(max-width:860px){
  body .gs360-company-shell .gs360-documents-table,
  body .gs360-company-shell .gs360-documents-table thead,
  body .gs360-company-shell .gs360-documents-table tbody,
  body .gs360-company-shell .gs360-documents-table tr,
  body .gs360-company-shell .gs360-documents-table td{
    display:block!important;
    width:100%!important;
  }
  body .gs360-company-shell .gs360-documents-table thead{display:none!important;}
  body .gs360-company-shell .gs360-documents-row{
    border:1px solid #dfe8f3!important;
    border-radius:16px 16px 0 0!important;
    background:#fff!important;
    margin-top:12px!important;
    overflow:hidden!important;
  }
  body .gs360-company-shell .gs360-documents-row td{
    display:flex!important;
    justify-content:space-between!important;
    gap:14px!important;
    border-bottom:1px solid #eef3f7!important;
  }
  body .gs360-company-shell .gs360-documents-row td::before{
    content:attr(data-label)!important;
    flex:0 0 42%!important;
    color:#66748a!important;
    font-size:11px!important;
    font-weight:900!important;
  }
  body .gs360-company-shell .gs360-documents-row td:last-child{border-bottom:0!important;}
  body .gs360-company-shell .gs360-documents-actions-cell{
    display:block!important;
  }
  body .gs360-company-shell .gs360-documents-actions-cell::before{
    display:block!important;
    margin-bottom:8px!important;
  }
  body .gs360-company-shell .gs360-documents-action-stack{
    grid-template-columns:1fr 1fr!important;
  }
  body .gs360-company-shell .gs360-documents-manage-row{
    display:block!important;
    margin-bottom:14px!important;
  }
  body .gs360-company-shell .gs360-documents-manage-row td{
    display:block!important;
    padding:0!important;
    background:transparent!important;
  }
  body .gs360-company-shell .gs360-documents-manage-row .gs360-document-manage{
    border:1px solid #dfe8f3!important;
    border-top:0!important;
    border-radius:0 0 16px 16px!important;
    background:#f8fbff!important;
    padding:10px!important;
    box-sizing:border-box!important;
  }
  body .gs360-company-shell .gs360-documents-manage-row .gs360-document-manage summary{
    background:#fff!important;
  }
}
@media(max-width:520px){
  body .gs360-company-shell .gs360-documents-row td{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:6px!important;
  }
  body .gs360-company-shell .gs360-documents-row td::before{flex:0 0 auto!important;}
  body .gs360-company-shell .gs360-documents-action-stack{grid-template-columns:1fr!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031H1 / CR-0.6.3-alpha / FIX Documenti responsive.
 * GESTIONE SCADENZE360
 * Esito atteso: tabella Documenti sempre visibile, colonna Azioni leggibile
 * e pannello gestione avanzata su riga dedicata full-width.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031H2 / CR-0.6.3-alpha / FIX Documenti azioni leggibili.
 * Modulo: Documenti / Azioni documento e layout adattivo.
 * Scopo: migliorare ulteriormente la leggibilità della colonna Azioni,
 * ridurre altezza delle righe e rendere l'elenco sempre fruibile su desktop,
 * tablet e mobile senza scroll orizzontali non controllati.
 * Contesto: Area Azienda Cliente / vista #documenti.
 * Relazioni: SCAD360-SNIP-031H, SCAD360-SNIP-031H1.
 * Tabelle coinvolte: nessuna modifica database.
 * ===================================================== */
body .gs360-company-shell .gs360-documents-table-wrap{
  width:100%!important;
  overflow-x:hidden!important;
  border-radius:16px!important;
}
body .gs360-company-shell .gs360-documents-table{
  width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
body .gs360-company-shell .gs360-documents-table th,
body .gs360-company-shell .gs360-documents-table td{
  padding:10px 10px!important;
  line-height:1.35!important;
  vertical-align:top!important;
}
body .gs360-company-shell .gs360-documents-table th:nth-child(1),
body .gs360-company-shell .gs360-documents-table td:nth-child(1){width:20%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(2),
body .gs360-company-shell .gs360-documents-table td:nth-child(2){width:10%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(3),
body .gs360-company-shell .gs360-documents-table td:nth-child(3){width:21%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(4),
body .gs360-company-shell .gs360-documents-table td:nth-child(4){width:13%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(5),
body .gs360-company-shell .gs360-documents-table td:nth-child(5){width:8%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(6),
body .gs360-company-shell .gs360-documents-table td:nth-child(6){width:11%!important;}
body .gs360-company-shell .gs360-documents-table th:nth-child(7),
body .gs360-company-shell .gs360-documents-table td:nth-child(7){width:17%!important;}
body .gs360-company-shell .gs360-documents-actions-cell{
  background:#fbfdff!important;
}
body .gs360-company-shell .gs360-documents-action-card{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  width:100%!important;
  padding:8px!important;
  border:1px solid #dbe8f8!important;
  border-radius:16px!important;
  background:#f7fbff!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-documents-action-title{
  display:block!important;
  color:#60708a!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
body .gs360-company-shell .gs360-documents-action-card .gs360-documents-action-stack{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-documents-action-card .gs360-action-btn,
body .gs360-company-shell .gs360-documents-action-card .gs360-badge{
  width:100%!important;
  min-height:34px!important;
  padding:8px 9px!important;
  border-radius:14px!important;
  justify-content:center!important;
  align-items:center!important;
  gap:6px!important;
  font-size:12px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-documents-action-card .gs360-action-btn svg{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
}
body .gs360-company-shell .gs360-documents-row td[data-label="Documento"] strong{
  display:block!important;
  max-width:100%!important;
  line-height:1.25!important;
}
body .gs360-company-shell .gs360-documents-manage-row td{
  padding:0 10px 16px!important;
}
body .gs360-company-shell .gs360-document-manage summary{
  background:#123f3a!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-document-manage-panel{
  border-radius:0 0 18px 18px!important;
  border:1px solid #dbe8f8!important;
  border-top:0!important;
  background:#ffffff!important;
  padding:14px!important;
}
body .gs360-company-shell .gs360-document-manage-panel form{
  gap:10px!important;
}
body .gs360-company-shell .gs360-document-manage-panel .gs360-action-btn{
  min-height:38px!important;
}
@media(max-width:1320px){
  body .gs360-company-shell .gs360-documents-action-card .gs360-documents-action-stack{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-documents-action-title{
    text-align:center!important;
  }
}
@media(max-width:1100px){
  body .gs360-company-shell .gs360-documents-table,
  body .gs360-company-shell .gs360-documents-table thead,
  body .gs360-company-shell .gs360-documents-table tbody,
  body .gs360-company-shell .gs360-documents-table tr,
  body .gs360-company-shell .gs360-documents-table td{
    display:block!important;
    width:100%!important;
  }
  body .gs360-company-shell .gs360-documents-table thead{display:none!important;}
  body .gs360-company-shell .gs360-documents-row{
    border:1px solid #dfe8f3!important;
    border-radius:18px 18px 0 0!important;
    background:#fff!important;
    margin-top:14px!important;
    overflow:hidden!important;
    box-shadow:0 10px 28px rgba(7,27,77,.04)!important;
  }
  body .gs360-company-shell .gs360-documents-row td{
    display:grid!important;
    grid-template-columns:180px minmax(0,1fr)!important;
    gap:14px!important;
    align-items:start!important;
    padding:12px 14px!important;
    border-bottom:1px solid #edf3fa!important;
  }
  body .gs360-company-shell .gs360-documents-row td::before{
    content:attr(data-label)!important;
    color:#66748a!important;
    font-size:11px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
  }
  body .gs360-company-shell .gs360-documents-actions-cell{
    display:block!important;
  }
  body .gs360-company-shell .gs360-documents-actions-cell::before{
    display:block!important;
    margin-bottom:10px!important;
  }
  body .gs360-company-shell .gs360-documents-action-card{
    max-width:420px!important;
  }
  body .gs360-company-shell .gs360-documents-action-card .gs360-documents-action-stack{
    grid-template-columns:1fr 1fr!important;
  }
  body .gs360-company-shell .gs360-documents-manage-row{
    display:block!important;
    margin-bottom:16px!important;
  }
  body .gs360-company-shell .gs360-documents-manage-row td{
    display:block!important;
    width:100%!important;
    padding:0!important;
    background:transparent!important;
  }
  body .gs360-company-shell .gs360-document-manage{
    border:1px solid #dfe8f3!important;
    border-top:0!important;
    border-radius:0 0 18px 18px!important;
    background:#f8fbff!important;
    padding:10px!important;
  }
}
@media(max-width:640px){
  body .gs360-company-shell .gs360-documents-row td{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  body .gs360-company-shell .gs360-documents-action-card{
    max-width:none!important;
  }
  body .gs360-company-shell .gs360-documents-action-card .gs360-documents-action-stack{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-document-manage-panel{
    padding:10px!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031H2 / CR-0.6.3-alpha / FIX Documenti azioni leggibili.
 * GESTIONE SCADENZE360
 * Esito atteso: colonna Azioni più leggibile, tabella documenti visibile
 * e responsive su desktop, tablet e mobile.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031I1 / CR-0.6.3-alpha / FASE 0.6.3I1
 * Modulo: Notifiche / KPI una riga + interattività.
 * Scopo: mantenere le 6 card KPI notifiche su una sola riga desktop,
 * rendere le card cliccabili e migliorare responsive tablet/mobile.
 * Relazioni: #notifiche, data-gs360-notice-kpi, SCAD360-SNIP-031I.
 * Tabelle coinvolte: nessuna modifica database.
 * ===================================================== */
body .gs360-company-shell .gs360-notification-kpi-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
body .gs360-company-shell .gs360-notification-kpi-card{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:1px solid #dbe6f3!important;
  width:100%!important;
  min-width:0!important;
  min-height:120px!important;
  padding:16px!important;
  text-align:left!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease!important;
}
body .gs360-company-shell .gs360-notification-kpi-card .gs360-company-card-icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
}
body .gs360-company-shell .gs360-notification-kpi-card > div{
  min-width:0!important;
}
body .gs360-company-shell .gs360-notification-kpi-card > div > span{
  display:block!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.2!important;
}
body .gs360-company-shell .gs360-notification-kpi-card > div > strong{
  display:block!important;
  margin-top:7px!important;
}
body .gs360-company-shell .gs360-notification-kpi-card:hover,
body .gs360-company-shell .gs360-notification-kpi-card.is-active{
  transform:translateY(-2px)!important;
  border-color:#96c7ff!important;
  background:#fbfdff!important;
  box-shadow:0 16px 34px rgba(7,27,77,.10)!important;
}
body .gs360-company-shell .gs360-notification-kpi-card.is-active{
  outline:2px solid rgba(27,102,255,.16)!important;
}

@media (max-width:1500px){
  body .gs360-company-shell .gs360-notification-kpi-grid{
    gap:10px!important;
  }
  body .gs360-company-shell .gs360-notification-kpi-card{
    padding:13px!important;
    gap:9px!important;
    min-height:112px!important;
  }
  body .gs360-company-shell .gs360-notification-kpi-card .gs360-company-card-icon{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
}
@media (max-width:1180px){
  body .gs360-company-shell .gs360-notification-kpi-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-notification-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .gs360-company-shell .gs360-notification-kpi-card{
    min-height:102px!important;
  }
}
@media (max-width:520px){
  body .gs360-company-shell .gs360-notification-kpi-grid{
    grid-template-columns:1fr!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031I1 / CR-0.6.3-alpha / FASE 0.6.3I1
 * GESTIONE SCADENZE360
 * Esito atteso: 6 card KPI notifiche su una riga desktop,
 * card interattive e layout responsive su tablet/mobile.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031J / CR-0.6.3-alpha / FASE 0.6.3J
 * Modulo: Report evoluti e dashboard analitica.
 * Scopo: potenziare la vista Report con KPI cross-modulo,
 * collegamenti rapidi e grafici HTML/CSS su scadenze, documenti,
 * notifiche e audit senza dipendenze esterne.
 * Relazioni: includes/class-gs360-frontend.php sezione #report.
 * ===================================================== */
body .gs360-company-shell .gs360-report-filters-evolved{
  grid-template-columns:repeat(4,minmax(150px,1fr)) auto!important;
}
body .gs360-company-shell .gs360-report-kpi-grid-evolved{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:12px!important;
}
body .gs360-company-shell .gs360-report-kpi-grid-evolved .gs360-company-card{
  min-height:108px!important;
  text-decoration:none!important;
  color:inherit!important;
}
body .gs360-company-shell .gs360-report-kpi-link{
  cursor:pointer!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
body .gs360-company-shell .gs360-report-kpi-link:hover{
  transform:translateY(-2px)!important;
  border-color:#9fc3ff!important;
  box-shadow:0 18px 38px rgba(7,27,77,.10)!important;
}
body .gs360-company-shell .gs360-report-quicklinks{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0 0 18px!important;
}
body .gs360-company-shell .gs360-report-quicklinks a{
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border:1px solid #d7e5f6!important;
  border-radius:16px!important;
  background:#ffffff!important;
  color:#071b4d!important;
  text-decoration:none!important;
  font-weight:900!important;
  box-shadow:0 12px 26px rgba(7,27,77,.05)!important;
}
body .gs360-company-shell .gs360-report-quicklinks a:hover{
  background:#f4f8ff!important;
  border-color:#9fc3ff!important;
}
body .gs360-company-shell .gs360-report-quicklinks svg{
  width:18px!important;
  height:18px!important;
}
body .gs360-company-shell .gs360-report-layout-evolved{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body .gs360-company-shell .gs360-report-trend-list{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  margin-top:12px!important;
}
body .gs360-company-shell .gs360-report-trend-row{
  display:grid!important;
  grid-template-columns:minmax(78px,108px) minmax(0,1fr) 42px!important;
  gap:12px!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-report-trend-row > span,
body .gs360-company-shell .gs360-report-trend-row > strong{
  color:#071b4d!important;
  font-weight:900!important;
  font-size:12px!important;
}
body .gs360-company-shell .gs360-report-trend-row > strong{
  text-align:right!important;
}
body .gs360-company-shell .gs360-report-trend-bars{
  display:grid!important;
  grid-template-rows:repeat(3,9px)!important;
  gap:5px!important;
}
body .gs360-company-shell .gs360-report-trend-bars em{
  display:block!important;
  border-radius:999px!important;
  background:#edf3fb!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-report-trend-bars em i{
  display:block!important;
  height:100%!important;
  border-radius:999px!important;
}
body .gs360-company-shell .gs360-report-trend-bars em:nth-child(1) i{background:#169c45!important;}
body .gs360-company-shell .gs360-report-trend-bars em:nth-child(2) i{background:#1f6feb!important;}
body .gs360-company-shell .gs360-report-trend-bars em:nth-child(3) i{background:#7c3aed!important;}
body .gs360-company-shell .gs360-report-legend{
  display:flex!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-top:12px!important;
  color:#5f6f89!important;
  font-size:11px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-report-legend span:before{
  content:'';
  display:inline-block!important;
  width:10px!important;
  height:10px!important;
  border-radius:999px!important;
  margin-right:6px!important;
  vertical-align:-1px!important;
  background:#169c45!important;
}
body .gs360-company-shell .gs360-report-legend span:nth-child(2):before{background:#1f6feb!important;}
body .gs360-company-shell .gs360-report-legend span:nth-child(3):before{background:#7c3aed!important;}
body .gs360-company-shell .gs360-report-audit-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:12px!important;
}
body .gs360-company-shell .gs360-report-audit-list > div{
  border:1px solid #dfe8f4!important;
  border-radius:15px!important;
  background:#f8fbff!important;
  padding:12px!important;
}
body .gs360-company-shell .gs360-report-audit-list span,
body .gs360-company-shell .gs360-report-audit-list em{
  display:block!important;
  color:#64748b!important;
  font-size:10px!important;
  font-weight:900!important;
  font-style:normal!important;
  text-transform:uppercase!important;
}
body .gs360-company-shell .gs360-report-audit-list strong{
  display:block!important;
  margin:5px 0!important;
  color:#071b4d!important;
  font-size:13px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-report-audit-list p{
  margin:0 0 6px!important;
  color:#475569!important;
  font-size:12px!important;
  line-height:1.35!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-report-kpi-grid-evolved{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-report-quicklinks{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:980px){
  body .gs360-company-shell .gs360-report-filters-evolved{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-report-filters-evolved .gs360-report-filter-actions{grid-column:span 2!important;}
}
@media (max-width:780px){
  body .gs360-company-shell .gs360-report-kpi-grid-evolved,
  body .gs360-company-shell .gs360-report-quicklinks,
  body .gs360-company-shell .gs360-report-audit-list{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-report-trend-row{grid-template-columns:1fr 40px!important;}
  body .gs360-company-shell .gs360-report-trend-row > span{grid-column:span 2!important;}
  body .gs360-company-shell .gs360-report-filters-evolved .gs360-report-filter-actions{grid-column:auto!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031J / CR-0.6.3-alpha / FASE 0.6.3J
 * GESTIONE SCADENZE360
 * Esito atteso: report cross-modulo evoluto, responsive e navigabile.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031K / CR-0.6.3-alpha / FASE 0.6.3K
 * Modulo: Notifiche Scadenze / Email multi destinatario e test invio.
 * Scopo: rendere chiara la configurazione delle email multiple nella scheda
 * scadenza e aggiungere strumenti responsive per test/invio manuale alert.
 * Relazioni: includes/class-gs360-frontend.php, wp_mail(), scadenze_alert.
 * ===================================================== */
body .gs360-company-shell .gs360-alert-email-list textarea{
  min-height:92px!important;
}
body .gs360-company-shell .gs360-alert-email-list small{
  display:block!important;
  margin-top:7px!important;
  color:#6d7d97!important;
  font-size:12px!important;
  font-weight:700!important;
}
body .gs360-company-shell .gs360-mail-tools-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0 0 16px!important;
}
body .gs360-company-shell .gs360-mail-tool-card{
  display:grid!important;
  grid-template-columns:1.1fr 1fr 1fr auto!important;
  gap:12px!important;
  align-items:end!important;
  padding:16px!important;
  border:1px solid #dce7f4!important;
  border-radius:18px!important;
  background:#fbfdff!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-mail-tool-card h4{
  margin:0 0 5px!important;
  color:#071b4d!important;
  font-size:16px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-mail-tool-card p{
  margin:0!important;
  color:#66748a!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:650!important;
}
body .gs360-company-shell .gs360-mail-tool-card label{
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
}
body .gs360-company-shell .gs360-mail-tool-card label span,
body .gs360-company-shell .gs360-mail-tool-metric span{
  color:#6d7d97!important;
  font-size:10px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
body .gs360-company-shell .gs360-mail-tool-card input,
body .gs360-company-shell .gs360-mail-tool-card select{
  width:100%!important;
  min-height:40px!important;
  border:1px solid #d8e5f3!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#071b4d!important;
  font-weight:800!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-mail-tool-metric{
  min-height:40px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:3px!important;
  padding:8px 12px!important;
  border:1px solid #dce7f4!important;
  border-radius:13px!important;
  background:#ffffff!important;
}
body .gs360-company-shell .gs360-mail-tool-metric strong{
  color:#071b4d!important;
  font-size:18px!important;
  font-weight:900!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-mail-tools-grid{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-mail-tool-card{grid-template-columns:1fr 1fr!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-mail-tool-card{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-mail-tool-card .gs360-action-btn{width:100%!important;justify-content:center!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031K / CR-0.6.3-alpha / FASE 0.6.3K
 * GESTIONE SCADENZE360
 * Esito atteso: notifiche scadenze email verificabili, multi destinatario
 * e strumenti di invio manuale alert dovuti senza modifiche DB.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031K1 / CR-0.6.3-alpha / FASE 0.6.3K1
 * Modulo: Scadenze / Stato notifiche alert email.
 * Scopo: rendere visibile in elenco scadenze lo stato invio degli alert email
 * programmati, inviati, parziali o falliti, con layout responsive.
 * Relazioni: wpscad360_scadenze_alert, Centro Notifiche, Dettaglio Scadenza.
 * Nessuna modifica database.
 * ===================================================== */
body .gs360-company-shell .gs360-badge.rosso{
  background:#fff0f0!important;
  color:#d7193f!important;
  border:1px solid #ffc9d2!important;
}
body .gs360-company-shell .gs360-badge.giallo{
  background:#fff8e8!important;
  color:#a86b00!important;
  border:1px solid #f6dc9f!important;
}
body .gs360-company-shell .gs360-deadlines-notification-status{
  min-width:0!important;
}
body .gs360-company-shell .gs360-deadlines-notification-status small{
  display:block!important;
  margin-top:5px!important;
  color:#60708c!important;
  font-weight:800!important;
  line-height:1.18!important;
}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(1),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(1){width:6%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(2),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(2){width:8%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(3),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(3){width:7%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(4),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(4){width:6.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(5),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(5){width:7%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(6),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(6){width:7%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(7),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(7){width:6%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(8),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(8){width:5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(9),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(9){width:6.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(10),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(10){width:6.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(11),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(11){width:6.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(12),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(12){width:9.5%!important;}
body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(13),
body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(13){width:18%!important;}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(7),
  body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(7),
  body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(5),
  body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(5){display:none!important;}
  body .gs360-company-shell .gs360-deadlines-table-extended th:nth-child(13),
  body .gs360-company-shell .gs360-deadlines-table-extended td:nth-child(13){width:19%!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031K1 / CR-0.6.3-alpha / FASE 0.6.3K1
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031K2 / CR-0.6.3-alpha / FASE 0.6.3K2
 * Modulo: Centro Notifiche / Cruscotto notifiche scadenze.
 * Scopo: rendere leggibile lo stato invii alert email con KPI,
 * riepilogo per scadenza e azioni operative Invia dovuti/Reinvia falliti.
 * Relazioni: includes/class-gs360-frontend.php, wpscad360_scadenze_alert.
 * ===================================================== */
body .gs360-company-shell .gs360-alert-control-board{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:14px!important;
  align-items:stretch!important;
  margin-bottom:16px!important;
  padding:14px!important;
  border:1px solid #dbe7f5!important;
  border-radius:18px!important;
  background:#f8fbff!important;
}
body .gs360-company-shell .gs360-alert-control-kpis{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
}
body .gs360-company-shell .gs360-alert-control-kpis article{
  min-height:72px!important;
  padding:12px!important;
  border:1px solid #dbe7f5!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(7,27,77,.04)!important;
}
body .gs360-company-shell .gs360-alert-control-kpis span{
  display:block!important;
  color:#66748a!important;
  font-size:11px!important;
  font-weight:900!important;
  margin-bottom:8px!important;
}
body .gs360-company-shell .gs360-alert-control-kpis strong{
  display:block!important;
  color:#071b4d!important;
  font-size:22px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-alert-control-actions{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:8px!important;
  min-width:170px!important;
}
body .gs360-company-shell .gs360-alert-control-actions form,
body .gs360-company-shell .gs360-alert-control-actions .gs360-action-btn{
  width:100%!important;
}
body .gs360-company-shell .gs360-alert-control-actions .gs360-action-btn{
  justify-content:center!important;
}
body .gs360-company-shell .gs360-alert-summary-list{
  margin-bottom:18px!important;
}
body .gs360-company-shell .gs360-alert-summary-table th,
body .gs360-company-shell .gs360-alert-summary-table td{
  white-space:normal!important;
  vertical-align:middle!important;
}
body .gs360-company-shell .gs360-alert-summary-table td[data-label="Azioni"] .gs360-action-btn{
  width:100%!important;
  justify-content:center!important;
}
body .gs360-company-shell .gs360-badge.rosso{
  background:#ffe9ec!important;
  color:#d7193f!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-alert-control-board{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-alert-control-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-alert-control-actions{flex-direction:row!important;min-width:0!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-alert-control-kpis{grid-template-columns:1fr 1fr!important;}
  body .gs360-company-shell .gs360-alert-control-actions{flex-direction:column!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031K2 / CR-0.6.3-alpha / FASE 0.6.3K2
 * GESTIONE SCADENZE360
 * Esito atteso: stato notifiche scadenze consultabile e gestibile dal Centro Notifiche.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031K3 / CR-0.6.3-alpha / FASE 0.6.3K3
 * Modulo: Notifiche scadenze / Stato visuale alert.
 * Scopo: rendere immediata la comprensione degli alert email con colori
 * operativi: Futuro, Da inviare, Inviato, Fallito e Parziale.
 * Relazioni: wpscad360_scadenze_alert, elenco Scadenze, dettaglio Scadenza,
 * Centro Notifiche / Alert scadenze.
 * Nessuna modifica database.
 * ===================================================== */
body .gs360-company-shell .gs360-badge.arancio{
  background:#fff2dd!important;
  color:#b45700!important;
  border:1px solid #ffd39a!important;
}
body .gs360-company-shell .gs360-badge.viola{
  background:#f3efff!important;
  color:#5a3fc0!important;
  border:1px solid #d6cbff!important;
}
body .gs360-company-shell .gs360-alert-control-kpis article.is-due{
  border-color:#ffd39a!important;
  background:#fff9ef!important;
}
body .gs360-company-shell .gs360-alert-control-kpis article.is-sent{
  border-color:#b8edc9!important;
  background:#f2fff6!important;
}
body .gs360-company-shell .gs360-alert-control-kpis article.is-future{
  border-color:#d6cbff!important;
  background:#f8f5ff!important;
}
body .gs360-company-shell .gs360-alert-status-row.is-due td{
  background:#fff9ef!important;
}
body .gs360-company-shell .gs360-alert-status-row.is-failed td{
  background:#fff2f4!important;
}
body .gs360-company-shell .gs360-alert-status-row.is-sent td{
  background:#f7fff9!important;
}
body .gs360-company-shell .gs360-alert-status-row.is-future td{
  background:#fbfaff!important;
}
body .gs360-company-shell .gs360-alert-mini{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-alert-mini.is-due{
  background:#fff2dd!important;
  color:#b45700!important;
  border:1px solid #ffd39a!important;
}
body .gs360-company-shell .gs360-alert-mini.is-future{
  background:#f3efff!important;
  color:#5a3fc0!important;
  border:1px solid #d6cbff!important;
}
body .gs360-company-shell .gs360-alert-mini.is-sent{
  background:#e8fff0!important;
  color:#119042!important;
  border:1px solid #b8edc9!important;
}
body .gs360-company-shell .gs360-alert-summary-table td[data-label="Stato"] .gs360-badge,
body .gs360-company-shell .gs360-notification-table td[data-label="Stato / esito"] .gs360-badge,
body .gs360-company-shell .gs360-deadlines-notification-status .gs360-badge{
  min-width:94px!important;
  justify-content:center!important;
}
body .gs360-company-shell .gs360-notification-table td[data-label="Stato / esito"] small,
body .gs360-company-shell .gs360-deadlines-notification-status small{
  display:block!important;
  margin-top:5px!important;
  color:#687995!important;
  font-size:11px!important;
  font-weight:800!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-alert-control-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-alert-control-kpis{grid-template-columns:1fr 1fr!important;}
  body .gs360-company-shell .gs360-alert-summary-table td[data-label="Stato"] .gs360-badge,
  body .gs360-company-shell .gs360-notification-table td[data-label="Stato / esito"] .gs360-badge,
  body .gs360-company-shell .gs360-deadlines-notification-status .gs360-badge{
    min-width:0!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031K3 / CR-0.6.3-alpha / FASE 0.6.3K3
 * GESTIONE SCADENZE360
 * Esito atteso: stato alert email chiaro e colorato tra futuro,
 * da inviare, inviato, fallito e parziale, senza modifiche DB.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031K4 / CR-0.6.3-alpha / FASE 0.6.3K4
 * Modulo: Notifiche scadenze / KPI interattive + paginazione.
 * Scopo: allineare le card alert su una riga desktop, spostare le azioni
 * operative sotto le KPI e paginare la tabella alert 5/10/20/50/100.
 * Relazioni: includes/class-gs360-frontend.php, wpscad360_scadenze_alert.
 * Nessuna modifica database.
 * ===================================================== */
body .gs360-company-shell .gs360-alert-control-board{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  align-items:stretch!important;
}
body .gs360-company-shell .gs360-alert-control-kpis{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-alert-kpi-card,
body .gs360-company-shell .gs360-alert-control-kpis article{
  min-height:74px!important;
  padding:12px!important;
  border:1px solid #dbe7f5!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(7,27,77,.04)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  text-decoration:none!important;
  color:#071b4d!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-alert-kpi-card:hover,
body .gs360-company-shell .gs360-alert-kpi-card.is-active{
  border-color:#123f3a!important;
  box-shadow:0 16px 32px rgba(7,27,77,.09)!important;
  transform:translateY(-1px)!important;
}
body .gs360-company-shell .gs360-alert-kpi-card span,
body .gs360-company-shell .gs360-alert-control-kpis article span{
  display:block!important;
  margin:0 0 8px!important;
  color:#66748a!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-alert-kpi-card strong,
body .gs360-company-shell .gs360-alert-control-kpis article strong{
  display:block!important;
  color:#071b4d!important;
  font-size:22px!important;
  line-height:1!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-alert-kpi-card.is-due{border-color:#ffd39a!important;background:#fff9ef!important;}
body .gs360-company-shell .gs360-alert-kpi-card.is-future{border-color:#d6cbff!important;background:#f8f5ff!important;}
body .gs360-company-shell .gs360-alert-kpi-card.is-sent{border-color:#b8edc9!important;background:#f2fff6!important;}
body .gs360-company-shell .gs360-alert-kpi-card.is-failed{border-color:#ffc6d0!important;background:#fff4f6!important;}
body .gs360-company-shell .gs360-alert-kpi-card.is-partial{border-color:#ffe38a!important;background:#fffbe8!important;}
body .gs360-company-shell .gs360-alert-control-actions{
  display:flex!important;
  flex-direction:row!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  padding-top:2px!important;
}
body .gs360-company-shell .gs360-alert-control-actions form{
  width:auto!important;
  margin:0!important;
}
body .gs360-company-shell .gs360-alert-control-actions .gs360-action-btn{
  width:auto!important;
  min-width:150px!important;
  justify-content:center!important;
}
body .gs360-company-shell .gs360-alert-pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-top:12px!important;
  padding:12px!important;
  border:1px solid #dbe7f5!important;
  border-radius:16px!important;
  background:#f8fbff!important;
}
body .gs360-company-shell .gs360-alert-pagination>span{
  color:#071b4d!important;
  font-size:12px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-alert-pagination-controls{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
body .gs360-company-shell .gs360-alert-per-page-label{
  color:#66748a!important;
  font-size:11px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-alert-pagination .gs360-action-btn{
  min-height:34px!important;
  padding:7px 11px!important;
  font-size:12px!important;
}
body .gs360-company-shell .gs360-alert-pagination .gs360-action-btn.is-current{
  background:#123f3a!important;
  color:#fff!important;
  border-color:#123f3a!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-alert-control-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-alert-control-actions{justify-content:flex-start!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-alert-control-kpis{grid-template-columns:1fr 1fr!important;}
  body .gs360-company-shell .gs360-alert-control-actions{flex-direction:column!important;align-items:stretch!important;}
  body .gs360-company-shell .gs360-alert-control-actions form,
  body .gs360-company-shell .gs360-alert-control-actions .gs360-action-btn{width:100%!important;}
  body .gs360-company-shell .gs360-alert-pagination{align-items:stretch!important;}
  body .gs360-company-shell .gs360-alert-pagination-controls{justify-content:flex-start!important;}
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031K4 / CR-0.6.3-alpha / FASE 0.6.3K4
 * GESTIONE SCADENZE360
 * Esito atteso: cruscotto alert chiaro, KPI cliccabili e tabella alert paginata.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031I2 / CR-0.6.3-alpha / FASE 0.6.3I2
 * Modulo: Notifiche / Cruscotto interattivo 2x3 e tab ordinati.
 * Scopo: rimuovere il punto Template, distribuire le sezioni del centro
 * notifiche con uguale spazio e rendere le card cruscotto interattive.
 * Relazioni: #notifiche, data-gs360-notice-kpi, data-gs360-notice-tab.
 * Tabelle coinvolte: nessuna modifica database.
 * ===================================================== */
body .gs360-company-shell .gs360-notice-tabs-nav{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-notice-tabs-nav button{
  width:100%!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
}
body .gs360-company-shell .gs360-notice-channel-grid-2x3{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
body .gs360-company-shell .gs360-notice-channel-card{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:1px solid #dbe6f3!important;
  background:#fbfdff!important;
  border-radius:16px!important;
  padding:16px!important;
  min-height:160px!important;
  width:100%!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:0 12px 26px rgba(7,27,77,.05)!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease!important;
}
body .gs360-company-shell .gs360-notice-channel-card > span{
  width:48px!important;
  height:48px!important;
  border-radius:16px!important;
  background:#f1fff6!important;
  border:1px solid #ccefd8!important;
  color:#19a647!important;
  display:grid!important;
  place-items:center!important;
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-notice-channel-card > span svg{
  width:26px!important;
  height:26px!important;
  stroke:currentColor!important;
  fill:none!important;
}
body .gs360-company-shell .gs360-notice-channel-card h4{
  margin:0 0 7px!important;
  font-size:16px!important;
  line-height:1.15!important;
  color:#06163d!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-notice-channel-card p{
  margin:0 0 10px!important;
  color:#64728a!important;
  line-height:1.45!important;
  font-size:13px!important;
}
body .gs360-company-shell .gs360-notice-channel-card > strong{
  display:inline-flex!important;
  align-items:center!important;
  min-height:26px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#ecfff2!important;
  color:#159447!important;
  font-size:12px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-notice-channel-card:hover,
body .gs360-company-shell .gs360-notice-channel-card.is-active{
  transform:translateY(-2px)!important;
  border-color:#9fc6ff!important;
  background:#ffffff!important;
  box-shadow:0 18px 36px rgba(7,27,77,.10)!important;
}
body .gs360-company-shell .gs360-notice-channel-card.is-disabled-module{
  background:#f3f5f8!important;
  border-color:#d8dee8!important;
  color:#67758d!important;
}
body .gs360-company-shell .gs360-notice-channel-card.is-disabled-module > span{
  background:#eef1f5!important;
  border-color:#d7dee9!important;
  color:#8995a8!important;
}
body .gs360-company-shell .gs360-notice-channel-card.is-disabled-module h4,
body .gs360-company-shell .gs360-notice-channel-card.is-disabled-module p{
  color:#68758a!important;
}
body .gs360-company-shell .gs360-notice-channel-card.is-disabled-module > strong{
  background:#e6ebf1!important;
  color:#667287!important;
}
@media (max-width:1180px){
  body .gs360-company-shell .gs360-notice-tabs-nav{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body .gs360-company-shell .gs360-notice-channel-grid-2x3{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-notice-tabs-nav,
  body .gs360-company-shell .gs360-notice-channel-grid-2x3{
    grid-template-columns:1fr!important;
  }
}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031I2 / CR-0.6.3-alpha / FASE 0.6.3I2
 * GESTIONE SCADENZE360
 * Esito atteso: tab Template rimosso, sezioni Notifiche distribuite in modo
 * uniforme e cruscotto con 6 card interattive in griglia 2x3 desktop.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031L1 / CR-0.6.3-alpha / FASE 0.6.3L1
 * Modulo: Scadenze / Filtri attivi, icone rapide e KPI interattive.
 * Scopo: rendere più operativo il modulo Scadenze con azioni rapide
 * grandi e pulite, filtri server-side visibili e card KPI cliccabili.
 * Relazioni: includes/class-gs360-frontend.php, vista #scadenze.
 * ===================================================== */
body .gs360-company-shell .gs360-scadenze-header-actions .gs360-action-btn svg,
body .gs360-company-shell .gs360-scadenze-header-actions .gs360-action-btn .gs360-icon{
  width:18px!important;
  height:18px!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icons{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin:16px 0 18px!important;
  max-width:980px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icon{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:14px!important;
  min-height:96px!important;
  padding:16px 18px!important;
  border:1px solid #d8e6f5!important;
  border-radius:22px!important;
  background:#ffffff!important;
  box-shadow:0 16px 34px rgba(7,27,77,.07)!important;
  text-decoration:none!important;
  color:#071b4d!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icon:hover{
  transform:translateY(-2px)!important;
  border-color:#a9d6ba!important;
  box-shadow:0 22px 42px rgba(7,27,77,.11)!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icon>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:18px!important;
  background:#eefbf3!important;
  color:#15943c!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icon.is-calendar>span{background:#eef6ff!important;color:#0d63c7!important;}
body .gs360-company-shell .gs360-scadenze-quick-icon.is-categories>span{background:#f4f1ff!important;color:#6554d9!important;}
body .gs360-company-shell .gs360-scadenze-quick-icon svg,
body .gs360-company-shell .gs360-scadenze-quick-icon .gs360-icon{
  width:28px!important;
  height:28px!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icon strong,
body .gs360-company-shell .gs360-scadenze-quick-icon em{
  display:block!important;
  font-style:normal!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icon strong{
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-scadenze-quick-icon em{
  margin-top:4px!important;
  color:#6b7892!important;
  font-size:11px!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-company-kpi-grid-interactive .gs360-company-kpi-link{
  text-decoration:none!important;
  cursor:pointer!important;
  color:inherit!important;
  position:relative!important;
  border:1px solid #dfe9f6!important;
}
body .gs360-company-shell .gs360-company-kpi-grid-interactive .gs360-company-kpi-link:hover{
  transform:translateY(-2px)!important;
  border-color:#a9d6ba!important;
  box-shadow:0 18px 36px rgba(7,27,77,.1)!important;
}
body .gs360-company-shell .gs360-company-kpi-grid-interactive .gs360-company-kpi-link.is-active{
  border-color:#79c997!important;
  background:linear-gradient(180deg,#ffffff 0%,#f3fff7 100%)!important;
}
body .gs360-company-shell .gs360-company-kpi-grid-interactive .gs360-company-kpi-link em{
  display:block!important;
  margin-top:6px!important;
  color:#6b7892!important;
  font-size:11px!important;
  font-style:normal!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-deadlines-active-filter-form{
  display:grid!important;
  grid-template-columns:1.25fr 1fr .85fr 1.05fr 1.05fr 1.35fr auto!important;
  align-items:end!important;
  gap:10px!important;
  margin-bottom:14px!important;
}
body .gs360-company-shell .gs360-deadlines-active-filter-form label{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  margin:0!important;
}
body .gs360-company-shell .gs360-deadlines-active-filter-form label span{
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
  color:#62708a!important;
}
body .gs360-company-shell .gs360-deadlines-active-filter-form select,
body .gs360-company-shell .gs360-deadlines-active-filter-form input{
  width:100%!important;
  min-height:42px!important;
  border:1px solid #d7e4f3!important;
  border-radius:14px!important;
  background:#f8fbff!important;
  color:#071b4d!important;
  font-weight:850!important;
  padding:8px 11px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-deadlines-filter-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-scadenze-quick-icons{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:none!important;}
  body .gs360-company-shell .gs360-deadlines-active-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-deadlines-filter-actions{grid-column:1 / -1!important;justify-content:flex-end!important;}
}
@media (max-width:820px){
  body .gs360-company-shell .gs360-scadenze-quick-icons{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-deadlines-active-filter-form{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-deadlines-filter-actions{justify-content:stretch!important;flex-direction:column!important;}
  body .gs360-company-shell .gs360-deadlines-filter-actions .gs360-action-btn{width:100%!important;justify-content:center!important;}
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031L1 / CR-0.6.3-alpha / FASE 0.6.3L1
 * Esito atteso: filtri elenco Scadenze attivi, icone rapide grandi e KPI cliccabili.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031L2 / CR-0.6.3-alpha / FASE 0.6.3L2
 * Modulo: Scadenze / Azioni rapide centrali senza duplicati.
 * Scopo: mantenere un solo punto di accesso operativo con icone grandi,
 * eliminando i pulsanti piccoli duplicati nella testata del modulo.
 * Relazioni: includes/class-gs360-frontend.php / #scadenze.
 * Database: nessuna modifica.
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-scadenze-header-actions{
  display:none!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons{
  margin-top:10px!important;
  margin-bottom:20px!important;
  max-width:880px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icon{
  min-height:104px!important;
}
@media (min-width:1281px){
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons{
    transform:translateY(-2px);
  }
}
@media (max-width:820px){
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons{
    max-width:none!important;
    transform:none!important;
  }
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031L2 / CR-0.6.3-alpha / FASE 0.6.3L2
 * Esito atteso: testata Scadenze pulita, nessuna duplicazione dei pulsanti,
 * icone rapide centrali come unico blocco azioni principale.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031M / CR-0.6.3-alpha / FASE 0.6.3M
 * Modulo: Utenti azienda / Sezione rivisitata.
 * Scopo: introdurre accordion chiusi per Nuovo utente e Matrice permessi,
 * chiarire la colonna Invito, aggiungere invio/reinvio procedura attivazione
 * ed eliminazione logica utente con layout azioni più leggibile.
 * Relazioni: includes/class-gs360-frontend.php, #utenti.
 * Database: nessuna modifica.
 * ===================================================== */
body .gs360-company-shell .gs360-team-accordion{
  padding:0!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-team-accordion>summary{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-height:64px!important;
  padding:18px 20px!important;
  cursor:pointer!important;
  list-style:none!important;
  background:#ffffff!important;
  border-radius:18px!important;
}
body .gs360-company-shell .gs360-team-accordion>summary::-webkit-details-marker{display:none!important;}
body .gs360-company-shell .gs360-team-accordion>summary span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:14px!important;
  background:#eefbf3!important;
  color:#15943c!important;
}
body .gs360-company-shell .gs360-team-accordion>summary strong{
  color:#071b4d!important;
  font-size:17px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-accordion>summary em{
  margin-left:auto!important;
  color:#66748a!important;
  font-size:12px!important;
  font-style:normal!important;
  font-weight:850!important;
}
body .gs360-company-shell .gs360-team-accordion[open]>summary{
  border-bottom:1px solid #e5edf7!important;
  border-radius:18px 18px 0 0!important;
}
body .gs360-company-shell .gs360-team-accordion .gs360-company-panel-head,
body .gs360-company-shell .gs360-team-accordion form,
body .gs360-company-shell .gs360-team-accordion .gs360-team-permission-grid{
  margin:0!important;
  padding:18px 20px!important;
}
body .gs360-company-shell .gs360-team-table td[data-label="Invito"] small{
  display:block!important;
  margin-top:5px!important;
  color:#66748a!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
body .gs360-company-shell .gs360-team-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  min-width:260px!important;
}
body .gs360-company-shell .gs360-team-actions .gs360-action-btn{
  width:100%!important;
  min-height:34px!important;
  justify-content:center!important;
  padding:7px 10px!important;
  font-size:11px!important;
}
body .gs360-company-shell .gs360-team-actions .gs360-inline-action-form{
  width:100%!important;
  margin:0!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons{
  margin-top:-28px!important;
  margin-bottom:24px!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-team-actions{grid-template-columns:1fr!important;min-width:0!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons{margin-top:10px!important;}
}
@media (max-width:820px){
  body .gs360-company-shell .gs360-team-accordion>summary{align-items:flex-start!important;}
  body .gs360-company-shell .gs360-team-accordion>summary em{display:none!important;}
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031M / CR-0.6.3-alpha / FASE 0.6.3M
 * Esito atteso: Utenti più chiaro, inviti attivazione funzionanti,
 * eliminazione logica disponibile e accordion chiusi.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031L3 / CR-0.6.3-alpha / FASE 0.6.3L3
 * Modulo: Scadenze / Azioni centrali sopra KPI.
 * Scopo: posizionare le tre azioni operative principali dentro la testata
 * del modulo Scadenze, prima delle KPI, con icone grandi ma compatte.
 * Relazioni: includes/class-gs360-frontend.php / #scadenze.
 * Database: nessuna modifica.
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{
  align-items:center!important;
  gap:28px!important;
  margin-bottom:18px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-module-title{
  flex:1 1 46%!important;
  min-width:360px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head{
  flex:1 1 54%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
  max-width:760px!important;
  transform:none!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon{
  min-height:78px!important;
  padding:13px 15px!important;
  border-radius:20px!important;
  justify-content:flex-start!important;
  box-shadow:0 14px 30px rgba(7,27,77,.06)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon>span{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:16px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon svg,
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon .gs360-icon{
  width:24px!important;
  height:24px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon strong{
  font-size:14px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon em{
  font-size:10px!important;
}
@media(max-width:1250px){
  body .gs360-company-shell #scadenze .gs360-scadenze-module-title{
    min-width:0!important;
  }
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head{
    margin-top:18px!important;
    max-width:none!important;
  }
}
@media(max-width:820px){
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head{
    grid-template-columns:1fr!important;
  }
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031L3 / CR-0.6.3-alpha / FASE 0.6.3L3
 * Esito atteso: azioni Scadenze visibili sopra le KPI, nella testata del modulo,
 * senza pulsanti duplicati e con layout responsive preservato.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031M2 / CR-0.6.3-alpha / FASE 0.6.3M2
 * Modulo: Utenti azienda / Azioni e scheda registrazione professionale.
 * Scopo: migliorare la leggibilità della colonna Azioni, chiarire la
 * procedura di attivazione via email e rendere più professionale la scheda
 * Nuovo utente senza modifiche database.
 * Relazioni: includes/class-gs360-frontend.php, #utenti, inviti team.
 * Database: nessuna modifica.
 * ===================================================== */
body .gs360-company-shell .gs360-team-table{
  table-layout:fixed!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-team-table th:nth-child(1){width:12%!important;}
body .gs360-company-shell .gs360-team-table th:nth-child(2){width:14%!important;}
body .gs360-company-shell .gs360-team-table th:nth-child(3){width:17%!important;}
body .gs360-company-shell .gs360-team-table th:nth-child(4){width:13%!important;}
body .gs360-company-shell .gs360-team-table th:nth-child(5){width:10%!important;}
body .gs360-company-shell .gs360-team-table th:nth-child(6){width:12%!important;}
body .gs360-company-shell .gs360-team-table th:nth-child(7){width:14%!important;}
body .gs360-company-shell .gs360-team-table th:nth-child(8){width:18%!important;}
body .gs360-company-shell .gs360-team-actions-cell{
  min-width:240px!important;
  vertical-align:middle!important;
}
body .gs360-company-shell .gs360-team-actions{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  min-width:220px!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-team-actions-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:100%!important;
}
body .gs360-company-shell .gs360-team-actions-row .gs360-action-btn,
body .gs360-company-shell .gs360-team-actions-row button.gs360-action-btn{
  width:100%!important;
  min-height:36px!important;
  justify-content:center!important;
  white-space:nowrap!important;
  font-size:11px!important;
  padding:7px 9px!important;
}
body .gs360-company-shell .gs360-team-actions-row.is-danger-row{
  padding-top:6px!important;
  border-top:1px dashed #dbe6f3!important;
}
body .gs360-company-shell .gs360-team-onboarding-info{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  padding:0 20px 14px!important;
}
body .gs360-company-shell .gs360-team-onboarding-info article{
  display:grid!important;
  grid-template-columns:42px 1fr!important;
  column-gap:12px!important;
  row-gap:3px!important;
  align-items:center!important;
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  background:#f8fbff!important;
  padding:14px!important;
}
body .gs360-company-shell .gs360-team-onboarding-info article span{
  grid-row:1 / span 2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:42px!important;
  height:42px!important;
  border-radius:14px!important;
  background:#e9fff0!important;
  color:#15943c!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-onboarding-info article strong{
  color:#071b4d!important;
  font-size:14px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-onboarding-info article p{
  margin:0!important;
  color:#66748a!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:700!important;
}
body .gs360-company-shell .gs360-team-invite-note{
  margin:0 20px 16px!important;
  border:1px solid #bfe8ca!important;
  border-radius:18px!important;
  background:#f2fff6!important;
  padding:14px 16px!important;
}
body .gs360-company-shell .gs360-team-invite-note strong{
  display:block!important;
  margin-bottom:5px!important;
  color:#0f6b30!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-invite-note p{
  margin:0!important;
  color:#305843!important;
  font-size:13px!important;
  line-height:1.5!important;
  font-weight:750!important;
}
body .gs360-company-shell .gs360-team-check-pro{
  margin:16px 20px!important;
  border:1px solid #dbe6f3!important;
  border-radius:16px!important;
  background:#ffffff!important;
  padding:14px!important;
}
body .gs360-company-shell .gs360-team-check-pro span{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
body .gs360-company-shell .gs360-team-check-pro strong{
  color:#071b4d!important;
  font-size:14px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-check-pro small{
  color:#66748a!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
@media (max-width:1280px){
  body .gs360-company-shell .gs360-team-table{table-layout:auto!important;}
  body .gs360-company-shell .gs360-team-actions-cell{min-width:210px!important;}
  body .gs360-company-shell .gs360-team-actions{min-width:190px!important;}
  body .gs360-company-shell .gs360-team-actions-row{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-team-onboarding-info{grid-template-columns:1fr!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-team-actions-cell{min-width:0!important;}
  body .gs360-company-shell .gs360-team-actions{min-width:0!important;}
  body .gs360-company-shell .gs360-team-onboarding-info{padding:0 14px 14px!important;}
  body .gs360-company-shell .gs360-team-invite-note{margin:0 14px 14px!important;}
  body .gs360-company-shell .gs360-team-check-pro{margin:14px!important;}
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-031M2 / CR-0.6.3-alpha
 * Esito atteso: colonna Azioni Utenti più leggibile e scheda nuovo utente
 * più chiara/professionale per invito e attivazione.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064A / CR-0.6.4-alpha / Report evoluti UX + Dashboard impatto.
 * Moduli: Dashboard Azienda, Report evoluti.
 * Scopo: introdurre card centrale di impatto sulle scadenze, tab report,
 * grafici minimal/donut, accordion e audit paginato/filtrabile.
 * Relazioni: includes/class-gs360-frontend.php, wpscad360_scadenze,
 * wpscad360_documenti, wpscad360_notifiche, wpscad360_audit_log.
 * ===================================================== */
body .gs360-company-shell .gs360-dashboard-impact-card{
  display:grid!important;
  grid-template-columns:1.2fr 1fr 1.15fr!important;
  gap:18px!important;
  align-items:stretch!important;
  margin:18px 0!important;
  padding:22px!important;
  border:1px solid #d9e7f5!important;
  border-radius:26px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f6fbff 55%,#eefbf3 100%)!important;
  box-shadow:0 26px 55px rgba(7,27,77,.08)!important;
}
body .gs360-company-shell .gs360-dashboard-impact-copy h3{
  margin:4px 0 8px!important;
  color:#061b4a!important;
  font-size:26px!important;
  line-height:1.05!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-dashboard-impact-copy p{margin:0 0 12px!important;color:#63728d!important;font-weight:700!important;}
body .gs360-company-shell .gs360-dashboard-impact-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:12px!important;}
body .gs360-company-shell .gs360-dashboard-impact-actions a{
  padding:8px 12px!important;border:1px solid #cfe0f2!important;border-radius:999px!important;background:#fff!important;color:#071b4d!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important;
}
body .gs360-company-shell .gs360-dashboard-impact-actions a:hover{background:#123f3a!important;color:#fff!important;border-color:#123f3a!important;}
body .gs360-company-shell .gs360-dashboard-impact-metrics{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
}
body .gs360-company-shell .gs360-dashboard-impact-metrics div{
  display:flex!important;flex-direction:column!important;justify-content:center!important;gap:5px!important;min-height:82px!important;padding:14px!important;border:1px solid #dce9f6!important;border-radius:18px!important;background:rgba(255,255,255,.86)!important;
}
body .gs360-company-shell .gs360-dashboard-impact-metrics span{color:#71809a!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;}
body .gs360-company-shell .gs360-dashboard-impact-metrics strong{color:#061b4a!important;font-size:26px!important;font-weight:950!important;}
body .gs360-company-shell .gs360-dashboard-impact-chart{
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:7px!important;align-items:end!important;padding:14px 10px 8px!important;border:1px solid #dce9f6!important;border-radius:20px!important;background:#fff!important;min-height:170px!important;
}
body .gs360-company-shell .gs360-dashboard-impact-chart span{height:130px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;}
body .gs360-company-shell .gs360-dashboard-impact-chart i{display:block!important;width:100%!important;min-height:8px!important;border-radius:999px 999px 4px 4px!important;background:linear-gradient(180deg,#2faa4f,#12693a)!important;}
body .gs360-company-shell .gs360-dashboard-impact-chart em{font-style:normal!important;color:#687995!important;font-size:9px!important;font-weight:900!important;}
body .gs360-company-shell .gs360-report-tabs{margin-top:16px!important;}
body .gs360-company-shell .gs360-report-tablist{margin-bottom:14px!important;justify-content:center!important;}
body .gs360-company-shell .gs360-report-pro-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
body .gs360-company-shell .gs360-report-pro-card{padding:18px!important;}
body .gs360-company-shell{--gs360-donut-1:#16a34a;--gs360-donut-2:#2563eb;--gs360-donut-3:#7c3aed;--gs360-donut-4:#f59e0b;--gs360-donut-5:#ef4444;}
body .gs360-company-shell .gs360-report-donut-wrap{display:grid!important;grid-template-columns:180px 1fr!important;gap:18px!important;align-items:center!important;}
body .gs360-company-shell .gs360-report-donut{
  width:170px!important;height:170px!important;border-radius:50%!important;position:relative!important;display:grid!important;place-items:center!important;box-shadow:inset 0 0 0 1px rgba(7,27,77,.08)!important;
}
body .gs360-company-shell .gs360-report-donut:after{content:""!important;position:absolute!important;inset:34px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 0 0 1px #e4edf7!important;}
body .gs360-company-shell .gs360-report-donut span{position:relative!important;z-index:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;color:#061b4a!important;font-size:28px!important;font-weight:950!important;}
body .gs360-company-shell .gs360-report-donut span em{font-style:normal!important;font-size:10px!important;text-transform:uppercase!important;color:#6b7890!important;font-weight:900!important;}
body .gs360-company-shell .gs360-report-donut-legend{display:flex!important;flex-direction:column!important;gap:8px!important;}
body .gs360-company-shell .gs360-report-donut-legend span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;color:#071b4d!important;font-size:12px!important;font-weight:850!important;}
body .gs360-company-shell .gs360-report-donut-legend i{width:10px!important;height:10px!important;border-radius:50%!important;background:#16a34a!important;display:inline-block!important;}
body .gs360-company-shell .gs360-report-donut-legend span:nth-child(2) i{background:#2563eb!important;}body .gs360-company-shell .gs360-report-donut-legend span:nth-child(3) i{background:#7c3aed!important;}body .gs360-company-shell .gs360-report-donut-legend span:nth-child(4) i{background:#f59e0b!important;}body .gs360-company-shell .gs360-report-donut-legend span:nth-child(5) i{background:#ef4444!important;}
body .gs360-company-shell .gs360-report-accordion{grid-column:1/-1!important;padding:0!important;overflow:hidden!important;}
body .gs360-company-shell .gs360-report-accordion summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;cursor:pointer!important;list-style:none!important;padding:16px 18px!important;border-bottom:1px solid #e3edf8!important;background:#fbfdff!important;}
body .gs360-company-shell .gs360-report-accordion summary::-webkit-details-marker{display:none!important;}
body .gs360-company-shell .gs360-report-accordion summary strong{color:#061b4a!important;font-size:17px!important;font-weight:950!important;}
body .gs360-company-shell .gs360-report-accordion summary span{color:#6d7c94!important;font-size:12px!important;font-weight:800!important;}
body .gs360-company-shell .gs360-report-accordion[open] summary{background:#f6fbff!important;}
body .gs360-company-shell .gs360-report-accordion > :not(summary){margin:16px!important;}
body .gs360-company-shell .gs360-report-audit-filters{display:grid!important;grid-template-columns:1.5fr minmax(150px,.6fr) minmax(130px,.45fr) auto!important;gap:10px!important;align-items:end!important;margin:16px!important;}
body .gs360-company-shell .gs360-report-audit-filters label{display:flex!important;flex-direction:column!important;gap:5px!important;margin:0!important;}
body .gs360-company-shell .gs360-report-audit-filters label span{font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;color:#687995!important;}
body .gs360-company-shell .gs360-report-audit-filters input,body .gs360-company-shell .gs360-report-audit-filters select{width:100%!important;min-height:40px!important;border:1px solid #d8e5f3!important;border-radius:13px!important;background:#f8fbff!important;padding:8px 10px!important;font-weight:800!important;box-sizing:border-box!important;}
body .gs360-company-shell .gs360-report-audit-pagination{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin:16px!important;padding-top:12px!important;border-top:1px solid #e7eef7!important;}
body .gs360-company-shell .gs360-report-audit-pagination span{font-weight:900!important;color:#60708b!important;}
body .gs360-company-shell .gs360-report-audit-pagination div{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
@media(max-width:1280px){body .gs360-company-shell .gs360-dashboard-impact-card{grid-template-columns:1fr!important;}body .gs360-company-shell .gs360-report-pro-grid{grid-template-columns:1fr!important;}body .gs360-company-shell .gs360-report-donut-wrap{grid-template-columns:1fr!important;justify-items:center!important;}body .gs360-company-shell .gs360-report-audit-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:760px){body .gs360-company-shell .gs360-dashboard-impact-metrics{grid-template-columns:1fr!important;}body .gs360-company-shell .gs360-dashboard-impact-chart{grid-template-columns:repeat(6,minmax(0,1fr))!important;}body .gs360-company-shell .gs360-report-audit-filters{grid-template-columns:1fr!important;}body .gs360-company-shell .gs360-report-audit-pagination{align-items:stretch!important;}body .gs360-company-shell .gs360-report-audit-pagination div{flex-direction:column!important;width:100%!important;}}

/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-064A / CR-0.6.4-alpha
 * Esito atteso: report con tab/accordion/grafici minimal, audit filtrabile
 * e dashboard con card centrale riepilogo scadenze.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064B / CR-0.6.4-alpha / FASE 0.6.4B
 * Modulo: Utenti / Admin responsabile e Collaboratori.
 * Scopo: distinguere l'Admin unico dai collaboratori, proteggere le azioni
 * sensibili sull'Admin e presentare la matrice permessi con check visuali.
 * Relazioni: includes/class-gs360-frontend.php, #utenti, gestione ruoli/permessi.
 * Database: nessuna modifica.
 * ===================================================== */
body .gs360-company-shell .gs360-team-kpi-grid-admin{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
body .gs360-company-shell .gs360-team-kpi-grid-admin .gs360-company-card small{
  display:block!important;
  margin-top:6px!important;
  color:#66748a!important;
  font-size:11px!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-team-kpi-grid-admin .is-team-admin{
  border-color:#bde7c8!important;
  background:linear-gradient(180deg,#ffffff 0%,#f5fff7 100%)!important;
}
body .gs360-company-shell .gs360-team-admin-banner{
  display:grid!important;
  grid-template-columns:54px 1fr!important;
  gap:14px!important;
  align-items:center!important;
  margin:0 0 16px!important;
  padding:15px 17px!important;
  border:1px solid #bde7c8!important;
  border-radius:20px!important;
  background:#f3fff6!important;
  box-shadow:0 12px 26px rgba(20,148,60,.06)!important;
}
body .gs360-company-shell .gs360-team-admin-banner>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:54px!important;
  height:54px!important;
  border-radius:18px!important;
  background:#e5faec!important;
  color:#15943c!important;
}
body .gs360-company-shell .gs360-team-admin-banner strong{
  display:block!important;
  color:#071b4d!important;
  font-size:16px!important;
  font-weight:950!important;
  margin-bottom:4px!important;
}
body .gs360-company-shell .gs360-team-admin-banner p{
  margin:0!important;
  color:#385a46!important;
  font-size:13px!important;
  line-height:1.45!important;
  font-weight:750!important;
}
body .gs360-company-shell .gs360-team-admin-lock,
body .gs360-company-shell .gs360-team-role-note{
  display:block!important;
  margin-top:5px!important;
  color:#66748a!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-team-actions.is-admin-protected{
  min-width:250px!important;
}
body .gs360-company-shell .gs360-team-protected-chip{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  border:1px solid #bde7c8!important;
  border-radius:999px!important;
  background:#f2fff6!important;
  color:#14863a!important;
  font-size:11px!important;
  font-weight:950!important;
  text-align:center!important;
  padding:7px 10px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell .gs360-team-protected-help{
  display:block!important;
  color:#66748a!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:750!important;
  border-top:1px dashed #dbe6f3!important;
  padding-top:8px!important;
}
body .gs360-company-shell .gs360-team-form label small{
  display:block!important;
  margin-top:6px!important;
  color:#66748a!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:750!important;
}
body .gs360-company-shell .gs360-team-permissions-pro .gs360-company-panel-head{
  padding-bottom:10px!important;
}
body .gs360-company-shell .gs360-team-permission-explain{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  padding:0 20px 16px!important;
}
body .gs360-company-shell .gs360-team-permission-explain article{
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  background:#f8fbff!important;
  padding:14px!important;
}
body .gs360-company-shell .gs360-team-permission-explain strong{
  display:block!important;
  color:#071b4d!important;
  font-size:14px!important;
  font-weight:950!important;
  margin-bottom:5px!important;
}
body .gs360-company-shell .gs360-team-permission-explain p{
  margin:0!important;
  color:#66748a!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:750!important;
}
body .gs360-company-shell .gs360-team-permission-matrix-wrap{
  margin:0 20px 18px!important;
  overflow:auto!important;
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  background:#ffffff!important;
}
body .gs360-company-shell .gs360-team-permission-matrix{
  width:100%!important;
  min-width:760px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body .gs360-company-shell .gs360-team-permission-matrix th,
body .gs360-company-shell .gs360-team-permission-matrix td{
  padding:13px 14px!important;
  border-bottom:1px solid #edf3fa!important;
  border-right:1px solid #edf3fa!important;
  text-align:left!important;
  vertical-align:middle!important;
}
body .gs360-company-shell .gs360-team-permission-matrix th{
  background:#f6f9fd!important;
  color:#42516b!important;
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-permission-matrix td strong{
  display:block!important;
  color:#071b4d!important;
  font-size:13px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-permission-matrix td small{
  display:block!important;
  color:#66748a!important;
  font-size:11px!important;
  font-weight:750!important;
  margin-top:4px!important;
}
body .gs360-company-shell .gs360-team-permission-matrix td.is-allowed{
  background:#f5fff8!important;
}
body .gs360-company-shell .gs360-team-permission-matrix td.is-denied{
  background:#fbfcfe!important;
}
body .gs360-company-shell .gs360-permission-check{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  color:#071b4d!important;
  font-size:12px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-permission-check input{
  width:18px!important;
  height:18px!important;
  accent-color:#17a64b!important;
}
body .gs360-company-shell .gs360-team-collaborator-map{
  margin:0 20px 20px!important;
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  background:#ffffff!important;
  padding:16px!important;
}
body .gs360-company-shell .gs360-team-collaborator-map h4{
  margin:0 0 4px!important;
  color:#071b4d!important;
  font-size:16px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-collaborator-map>p{
  margin:0 0 14px!important;
  color:#66748a!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:750!important;
}
body .gs360-company-shell .gs360-team-collaborator-map>div{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
body .gs360-company-shell .gs360-team-collaborator-map article{
  border:1px solid #e2ebf5!important;
  border-radius:16px!important;
  background:#fbfdff!important;
  padding:13px!important;
}
body .gs360-company-shell .gs360-team-collaborator-map article>strong{
  display:block!important;
  color:#071b4d!important;
  font-size:14px!important;
  font-weight:950!important;
  margin-bottom:7px!important;
}
body .gs360-company-shell .gs360-team-collaborator-map article p{
  margin:8px 0!important;
  color:#66748a!important;
  font-size:12px!important;
  font-weight:750!important;
}
body .gs360-company-shell .gs360-team-module-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
body .gs360-company-shell .gs360-team-module-chips em{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#eef6ff!important;
  color:#0b5ec9!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-team-module-chips em.is-muted{
  background:#f3f6fa!important;
  color:#66748a!important;
}
@media(max-width:1280px){
  body .gs360-company-shell .gs360-team-kpi-grid-admin,
  body .gs360-company-shell .gs360-team-permission-explain,
  body .gs360-company-shell .gs360-team-collaborator-map>div{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-team-kpi-grid-admin,
  body .gs360-company-shell .gs360-team-permission-explain,
  body .gs360-company-shell .gs360-team-collaborator-map>div{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-team-admin-banner{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-team-permission-matrix-wrap,
  body .gs360-company-shell .gs360-team-collaborator-map{
    margin-left:14px!important;
    margin-right:14px!important;
  }
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-064B / CR-0.6.4-alpha
 * Esito atteso: sezione Utenti centrata su Admin unico e Collaboratori,
 * con privilegi protetti, creazione collaboratori e matrice permessi leggibile.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064B1 / CR-0.6.4-alpha / Utenti Admin unico + matrice collaboratori.
 * Modulo: Utenti / Admin responsabile e Collaboratori.
 * Scopo: rendere più chiara la separazione Admin unico/Collaboratori,
 * compattare la guida attivazione e aggiungere confronto permessi per collaboratore.
 * Relazioni: includes/class-gs360-frontend.php, #utenti, ruoli/permessi.
 * Database: nessuna modifica strutturale.
 * ===================================================== */
body .gs360-company-shell .gs360-team-admin-lock.is-warning{
  display:inline-flex!important;
  margin-top:6px!important;
  padding:4px 8px!important;
  border:1px solid #fed7aa!important;
  border-radius:999px!important;
  background:#fff7ed!important;
  color:#c2410c!important;
  font-size:10px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-invite-note-compact{
  margin:0 20px 14px!important;
  padding:0!important;
  border:1px solid #dbe6f3!important;
  border-radius:16px!important;
  background:#ffffff!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-team-invite-note-compact summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 14px!important;
  cursor:pointer!important;
  list-style:none!important;
  background:#f8fbff!important;
}
body .gs360-company-shell .gs360-team-invite-note-compact summary::-webkit-details-marker{display:none!important;}
body .gs360-company-shell .gs360-team-invite-note-compact summary strong{
  margin:0!important;
  color:#071b4d!important;
  font-size:13px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-invite-note-compact summary span{
  color:#0b5ec9!important;
  font-size:11px!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-team-invite-note-compact p{
  margin:0!important;
  padding:12px 14px!important;
  color:#52627b!important;
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:750!important;
  background:#ffffff!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare{
  margin:0 20px 18px!important;
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  background:#ffffff!important;
  padding:16px!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare h4{
  margin:0 0 4px!important;
  color:#071b4d!important;
  font-size:16px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare>p{
  margin:0 0 14px!important;
  color:#66748a!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:750!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare-wrap{
  overflow:auto!important;
  border:1px solid #e2ebf5!important;
  border-radius:16px!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare table{
  width:100%!important;
  min-width:760px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare th,
body .gs360-company-shell .gs360-team-collaborator-compare td{
  padding:12px 14px!important;
  border-bottom:1px solid #edf3fa!important;
  border-right:1px solid #edf3fa!important;
  text-align:center!important;
  vertical-align:middle!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare th:first-child,
body .gs360-company-shell .gs360-team-collaborator-compare td:first-child{
  text-align:left!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare th{
  background:#f6f9fd!important;
  color:#42516b!important;
  font-size:11px!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare th small,
body .gs360-company-shell .gs360-team-collaborator-compare td small{
  display:block!important;
  margin-top:4px!important;
  color:#66748a!important;
  font-size:10px!important;
  font-weight:800!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare td.is-allowed{
  background:#f4fff7!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare td.is-denied{
  background:#fbfcfe!important;
}
body .gs360-company-shell .gs360-team-checkmark{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:26px!important;
  height:26px!important;
  border-radius:999px!important;
  background:#e7f8ed!important;
  color:#14913f!important;
  font-size:15px!important;
  font-weight:950!important;
}
body .gs360-company-shell .gs360-team-collaborator-compare td.is-denied .gs360-team-checkmark{
  background:#f2f5f9!important;
  color:#8a96a8!important;
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-team-invite-note-compact,
  body .gs360-company-shell .gs360-team-collaborator-compare{
    margin-left:14px!important;
    margin-right:14px!important;
  }
}
/* =====================================================
 * Fine snippet/plugin-block: SCAD360-SNIP-064B1 / CR-0.6.4-alpha
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064B3 / CR-0.6.4-alpha
 * Modulo: Utenti / tab schede + azioni collaboratori.
 * Scopo: trasformare Elenco, Nuovo/Modifica collaboratore e Matrice
 * permessi in schede operative non accordion; rendere KPI cliccabili
 * e coerenti con la gestione Admin responsabile / Collaboratori.
 * Relazioni: wpscad360_utenti_aziende, ruoli/permessi, audit log.
 * Database: nessun ALTER TABLE; solo UI/CSS.
 * ===================================================== */
body .gs360-company-shell .gs360-team-kpi-interactive .gs360-company-card{
  text-decoration:none!important;
  color:inherit!important;
  cursor:pointer!important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease!important;
}
body .gs360-company-shell .gs360-team-kpi-interactive .gs360-company-card:hover{
  transform:translateY(-2px)!important;
  border-color:#9fd9b4!important;
  box-shadow:0 16px 34px rgba(13,27,61,.10)!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7fff9 100%)!important;
}
body .gs360-company-shell .gs360-team-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:14px 0!important;
}
body .gs360-company-shell .gs360-team-tabs a{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:50px!important;
  border:1px solid #D5E0EF!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#0D1B3D!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 8px 22px rgba(13,27,61,.05)!important;
  transition:all .16s ease!important;
}
body .gs360-company-shell .gs360-team-tabs a svg{
  width:18px!important;
  height:18px!important;
}
body .gs360-company-shell .gs360-team-tabs a:hover{
  transform:translateY(-1px)!important;
  border-color:#1FA65A!important;
  box-shadow:0 14px 28px rgba(13,27,61,.09)!important;
}
body .gs360-company-shell .gs360-team-tabs a.is-active{
  background:#0E4F43!important;
  color:#fff!important;
  border-color:#0E4F43!important;
  box-shadow:0 16px 30px rgba(14,79,67,.22)!important;
}
body .gs360-company-shell .gs360-team-tabs a.is-active svg,
body .gs360-company-shell .gs360-team-tabs a.is-active svg *{
  stroke:#fff!important;
}
body .gs360-company-shell .gs360-team-tab-section{
  margin-top:0!important;
}
body .gs360-company-shell .gs360-team-tab-section .gs360-company-panel-head{
  padding:0!important;
  margin-bottom:18px!important;
}
body .gs360-company-shell .gs360-team-form-panel.gs360-team-tab-section,
body .gs360-company-shell .gs360-team-permissions-panel.gs360-team-tab-section{
  padding:18px!important;
  border-radius:20px!important;
}
body .gs360-company-shell .gs360-team-form-panel .gs360-team-invite-note-compact{
  margin:12px 0 18px!important;
}
body .gs360-company-shell .gs360-team-form-panel .gs360-form-actions{
  padding-bottom:8px!important;
}
body .gs360-company-shell .gs360-team-actions-row.is-danger-row .gs360-action-btn.is-refuse{
  border-color:#FFD1D6!important;
  background:#FFF1F3!important;
}
body .gs360-company-shell .gs360-team-actions-row.is-danger-row .gs360-action-btn.is-approve{
  border-color:#BFEFD0!important;
  background:#ECFDF3!important;
}
body .gs360-company-shell .gs360-team-panel .gs360-team-filters input[type="hidden"]{
  display:none!important;
}
@media(max-width:1100px){
  body .gs360-company-shell .gs360-team-tabs{grid-template-columns:1fr!important;}
}
/* Fine plugin-block: SCAD360-SNIP-064B3 / Utenti tab schede + azioni collaboratori. */

/*
 * GESTIONE SCADENZE360
 * Plugin-block: SCAD360-SNIP-064B6
 * Versione: 0.6.4-alpha / CR-064B6
 * Scopo: evidenziare il superamento limite sessioni online e rendere chiaro il blocco accesso.
 * Relazioni: footer servizio, ajax_presence_ping_031m1(), controllo limite sessioni simultanee.
 * Tabelle: nessuna modifica DB; lettura wpscad360_aziende / wpscad360_utenti_aziende.
 */
body .gs360-company-shell [data-gs360-online-label].is-over-limit{
  color:#B42318!important;
  background:#FFF1F3!important;
  border:1px solid #FDA29B!important;
  border-radius:999px!important;
  padding:3px 9px!important;
}
body .gs360-company-shell-limit{
  min-height:70vh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:42px 18px!important;
  background:linear-gradient(180deg,#F5F8FC 0%,#EAF1F8 100%)!important;
}
body .gs360-access-limit-card{
  max-width:760px!important;
  text-align:center!important;
  padding:42px!important;
  border:1px solid #FECACA!important;
  box-shadow:0 24px 55px rgba(13,27,61,.12)!important;
}
body .gs360-access-limit-card h1{
  margin:8px 0 12px!important;
  font-size:34px!important;
  line-height:1.12!important;
  color:#0D1B3D!important;
}
body .gs360-access-limit-card p{
  max-width:620px!important;
  margin:10px auto!important;
  color:#53637F!important;
  font-size:15px!important;
  line-height:1.6!important;
}
body .gs360-access-limit-icon{
  width:64px!important;
  height:64px!important;
  margin:0 auto 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:22px!important;
  background:#FFF1F3!important;
  border:1px solid #FDA29B!important;
  color:#D92D20!important;
}
body .gs360-access-limit-icon svg{
  width:30px!important;
  height:30px!important;
}
body .gs360-access-limit-actions{
  display:flex!important;
  justify-content:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-top:22px!important;
}
/* Fine plugin-block: SCAD360-SNIP-064B6 / presenza online e limite sessioni. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064C / CR-0.6.4-alpha / Restyling operativo Scadenze e Documenti.
 * Scopo: applicare ai moduli Scadenze e Documenti il linguaggio visuale
 * approvato nei mockup: header puliti, azioni rapide a card, KPI professionali,
 * filtri ordinati, tabelle più leggibili e pannelli dettaglio compatti.
 * Contesto: Dashboard Azienda, viste #scadenze e #documenti.
 * Relazioni: SCAD360-SNIP-031L3, SCAD360-SNIP-030D, mockup CR-064C.
 * Database: nessuna modifica, solo CSS/markup frontend.
 */
#scadenze,#documenti{--gs360-pro-border:#dbe7f3;--gs360-pro-soft:#f7fbff;--gs360-pro-track:#edf4fb;--gs360-pro-navy:#061a44;--gs360-pro-muted:#64748b;--gs360-pro-green:#16a34a;--gs360-pro-blue:#2563eb;--gs360-pro-orange:#f97316;--gs360-pro-red:#ef4444;}
#scadenze .gs360-company-module-head,
#documenti .gs360-company-module-head{background:#fff;border:1px solid var(--gs360-pro-border);border-radius:26px;padding:28px 34px;margin-bottom:18px;box-shadow:0 18px 42px rgba(15,23,42,.055);align-items:center;gap:24px;}
#scadenze .gs360-scadenze-module-title h2,
#documenti .gs360-company-module-head h2{font-size:34px;line-height:1.05;margin:0 0 10px;color:var(--gs360-pro-navy);letter-spacing:-.025em;}
#scadenze .gs360-scadenze-module-title p,
#documenti .gs360-company-module-head p{font-size:15px;color:var(--gs360-pro-muted);margin:0;}
#scadenze .gs360-scadenze-module-title .gs360-kicker{display:none;}
#scadenze .gs360-scadenze-quick-icons,
#documenti .gs360-documents-quick-icons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:min(720px,52vw);}
#scadenze .gs360-scadenze-quick-icon,
#documenti .gs360-documents-quick-icon{display:grid;grid-template-columns:54px 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;background:#fff;border:1px solid var(--gs360-pro-border);border-radius:18px;padding:14px 18px;text-decoration:none;box-shadow:0 10px 26px rgba(15,23,42,.04);min-height:74px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;}
#scadenze .gs360-scadenze-quick-icon:hover,
#documenti .gs360-documents-quick-icon:hover{transform:translateY(-2px);border-color:#b6d2f4;box-shadow:0 18px 34px rgba(37,99,235,.10);}
#scadenze .gs360-scadenze-quick-icon span,
#documenti .gs360-documents-quick-icon>svg,
#documenti .gs360-documents-quick-icon>span{grid-row:1 / span 2;width:48px;height:48px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;background:#eef8f1;color:var(--gs360-pro-green);}
#scadenze .gs360-scadenze-quick-icon svg,
#documenti .gs360-documents-quick-icon svg{width:24px;height:24px;stroke:currentColor;}
#scadenze .gs360-scadenze-quick-icon.is-calendar span,
#documenti .gs360-documents-quick-icon.is-archive>svg{background:#eff6ff;color:var(--gs360-pro-blue);}
#scadenze .gs360-scadenze-quick-icon.is-categories span,
#documenti .gs360-documents-quick-icon.is-link>svg{background:#f3efff;color:#6d5dfc;}
#scadenze .gs360-scadenze-quick-icon strong,
#documenti .gs360-documents-quick-icon strong{font-size:14px;color:var(--gs360-pro-navy);font-weight:900;line-height:1.15;}
#scadenze .gs360-scadenze-quick-icon em,
#documenti .gs360-documents-quick-icon em{font-size:12px;color:var(--gs360-pro-muted);font-style:normal;margin-top:3px;}
#scadenze .gs360-pro-kpi-strip,
#documenti .gs360-documents-kpi-pro{grid-template-columns:repeat(6,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--gs360-pro-border);border-radius:22px;overflow:hidden;box-shadow:0 14px 34px rgba(15,23,42,.045);margin:0 0 20px;}
#scadenze .gs360-company-kpi,
#documenti .gs360-documents-kpi-pro .gs360-company-card{border:0;border-radius:0;box-shadow:none;background:transparent;min-height:104px;padding:22px 20px;display:flex;gap:14px;align-items:center;border-right:1px solid #e7eef6;}
#scadenze .gs360-company-kpi:last-child,
#documenti .gs360-documents-kpi-pro .gs360-company-card:last-child{border-right:0;}
#scadenze .gs360-company-kpi:before{content:"";width:46px;height:46px;border-radius:14px;background:#eef6ff;display:block;flex:0 0 46px;box-shadow:inset 0 0 0 1px #d7e7fb;}
#scadenze .gs360-company-kpi:nth-child(2):before{background:#fff7ed;box-shadow:inset 0 0 0 1px #fed7aa;}
#scadenze .gs360-company-kpi:nth-child(3):before,#scadenze .gs360-company-kpi:nth-child(4):before{background:#fff1f2;box-shadow:inset 0 0 0 1px #fecdd3;}
#scadenze .gs360-company-kpi:nth-child(5):before{background:#ecfdf5;box-shadow:inset 0 0 0 1px #bbf7d0;}
#scadenze .gs360-company-kpi:nth-child(6):before{background:#eff6ff;box-shadow:inset 0 0 0 1px #bfdbfe;}
#scadenze .gs360-company-kpi span,#documenti .gs360-documents-kpi-pro .gs360-company-card span{font-size:12px;text-transform:none;color:#475569;margin:0 0 4px;font-weight:800;}
#scadenze .gs360-company-kpi strong,#documenti .gs360-documents-kpi-pro .gs360-company-card strong{font-size:24px;color:var(--gs360-pro-navy);line-height:1;font-weight:950;display:block;margin-bottom:6px;}
#scadenze .gs360-company-kpi em,#documenti .gs360-documents-kpi-pro .gs360-company-card em{font-size:12px;color:var(--gs360-pro-muted);font-style:normal;display:block;font-weight:700;}
#documenti .gs360-documents-kpi-pro .gs360-company-card-icon{width:46px;height:46px;border-radius:14px;flex:0 0 46px;}
#scadenze .gs360-company-kpi.is-active{background:#f7fff9;box-shadow:inset 0 -3px 0 rgba(22,163,74,.42);}
#scadenze .gs360-deadlines-panel-extended,
#documenti .gs360-documents-panel{border-radius:22px;border:1px solid var(--gs360-pro-border);background:#fff;box-shadow:0 16px 38px rgba(15,23,42,.05);padding:0;overflow:hidden;}
#scadenze .gs360-deadlines-panel-extended>.gs360-company-panel-head,
#documenti .gs360-documents-panel>.gs360-company-panel-head{padding:18px 20px 12px;border-bottom:1px solid #edf2f7;align-items:center;}
#scadenze .gs360-company-panel-head h3,
#documenti .gs360-company-panel-head h3{font-size:20px;color:var(--gs360-pro-navy);letter-spacing:-.01em;}
#scadenze .gs360-company-panel-head h3 small,
#documenti .gs360-company-panel-head h3 small{font-size:15px;color:var(--gs360-pro-muted);font-weight:800;}
#scadenze .gs360-deadlines-active-filter-form,
#documenti .gs360-documents-filters{display:grid;grid-template-columns:1.05fr 1.05fr 1fr 1fr 1.55fr auto;gap:12px;padding:16px 18px;background:#fff;border:0;border-bottom:1px solid #edf2f7;align-items:end;}
#documenti .gs360-documents-filters{grid-template-columns:1.45fr 1fr 1fr .92fr .92fr 1fr auto;}
#scadenze .gs360-deadlines-active-filter-form label,
#documenti .gs360-documents-filters label{display:block;margin:0;}
#scadenze .gs360-deadlines-active-filter-form label span,
#documenti .gs360-documents-filters label span{font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#64748b;font-weight:900;display:block;margin:0 0 6px;}
#scadenze .gs360-deadlines-active-filter-form select,
#scadenze .gs360-deadlines-active-filter-form input,
#documenti .gs360-documents-filters select,
#documenti .gs360-documents-filters input{height:44px;border:1px solid #cfe0f2;border-radius:13px;background:#f8fbff;color:#061a44;font-weight:800;padding:0 14px;width:100%;box-shadow:none;}
#scadenze .gs360-deadlines-filter-actions,
#documenti .gs360-documents-filter-actions{display:flex;align-items:center;gap:8px;white-space:nowrap;}
#scadenze .gs360-deadlines-filter-actions .gs360-action-btn,
#documenti .gs360-documents-filter-actions .gs360-action-btn{height:44px;border-radius:16px;padding:0 16px;font-weight:900;}
#scadenze .gs360-table-wrap,
#documenti .gs360-table-wrap{border:0;border-radius:0;overflow-x:auto;margin:0;background:#fff;}
#scadenze table.gs360-table,
#documenti table.gs360-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;}
#scadenze table.gs360-table thead th,
#documenti table.gs360-table thead th{background:#f8fafc;color:#334155;text-transform:none;letter-spacing:.015em;font-size:11px;font-weight:900;border-bottom:1px solid #e4edf6;padding:14px 12px;white-space:nowrap;}
#scadenze table.gs360-table tbody td,
#documenti table.gs360-table tbody td{padding:13px 12px;border-bottom:1px solid #edf2f7;color:#10234b;vertical-align:middle;background:#fff;font-weight:650;}
#scadenze table.gs360-table tbody tr:hover td,
#documenti table.gs360-table tbody tr:hover td{background:#fbfdff;}
#scadenze .gs360-badge,#documenti .gs360-badge{border-radius:9px;padding:5px 9px;font-size:11px;font-weight:900;line-height:1.1;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
#scadenze .gs360-badge.verde,#documenti .gs360-badge.verde{background:#eafaf0;color:#159243;border:1px solid #bdecc9;}
#scadenze .gs360-badge.arancione,#documenti .gs360-badge.arancione{background:#fff7ed;color:#ea580c;border:1px solid #fed7aa;}
#scadenze .gs360-badge.rosso,#documenti .gs360-badge.rosso{background:#fff1f2;color:#e11d48;border:1px solid #fecdd3;}
#scadenze .gs360-badge.blu,#documenti .gs360-badge.blu{background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;}
#scadenze .gs360-badge.grigio,#documenti .gs360-badge.grigio{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;}
#scadenze .gs360-deadlines-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:178px;}
#scadenze .gs360-deadlines-actions-grid .gs360-action-btn{min-height:32px;border-radius:999px;font-size:11px;padding:0 10px;justify-content:center;}
#documenti .gs360-action-icon-btn{width:34px;height:34px;border:1px solid #d7e6f6;border-radius:11px;background:#fff;color:#061a44;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:950;transition:.18s ease;}
#documenti .gs360-action-icon-btn:hover{background:#eff6ff;border-color:#bfdbfe;color:#2563eb;transform:translateY(-1px);}
#documenti .gs360-action-icon-btn svg{width:16px;height:16px;stroke:currentColor;}
#documenti .gs360-documents-action-stack-pro{display:flex;align-items:center;justify-content:center;gap:8px;min-width:118px;}
#documenti .gs360-documents-table td[data-label="Documento"] strong{display:block;color:#061a44;font-weight:950;margin-bottom:3px;}
#documenti .gs360-documents-table td[data-label="Documento"] small{display:block;color:#64748b;font-weight:700;}
#documenti .gs360-documents-upload-panel-pro{border-radius:20px;border:1px dashed #bfd7f1;background:#fbfdff;margin-bottom:18px;}
#documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head{padding-bottom:8px;}
#documenti .gs360-documents-upload-form{display:grid;grid-template-columns:1.2fr 1.6fr auto;gap:12px;align-items:end;padding:0 18px 18px;}
#documenti .gs360-document-manage{border:1px solid #dbe7f3;border-radius:16px;background:#fbfdff;margin:10px;overflow:hidden;}
#documenti .gs360-document-manage summary{background:#fff;padding:14px 18px;color:#061a44;font-weight:950;cursor:pointer;}
#documenti .gs360-document-manage-panel{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:14px;padding:16px;background:#fff;border-top:1px solid #edf2f7;}
#documenti .gs360-document-meta-form{grid-column:1 / span 2;display:grid;grid-template-columns:1.2fr .8fr 1.3fr auto;gap:12px;align-items:end;}
#documenti .gs360-document-replace-form,#documenti .gs360-document-delete-form{display:grid;gap:10px;align-content:end;}
#scadenze .gs360-pagination,#documenti .gs360-pagination{padding:14px 18px;background:#fff;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf2f7;border-radius:0;}
#scadenze .gs360-pagination span,#documenti .gs360-pagination span{font-weight:800;color:#334155;}
#documenti .gs360-doc-per-page-field{max-width:120px;}
@media (max-width:1400px){#scadenze .gs360-scadenze-quick-icons,#documenti .gs360-documents-quick-icons{min-width:0;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));}#scadenze .gs360-company-module-head,#documenti .gs360-company-module-head{display:grid;grid-template-columns:1fr;}#scadenze .gs360-pro-kpi-strip,#documenti .gs360-documents-kpi-pro{grid-template-columns:repeat(3,minmax(0,1fr));}#scadenze .gs360-company-kpi:nth-child(3),#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(3){border-right:0;}#scadenze .gs360-company-kpi:nth-child(n+4),#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(n+4){border-top:1px solid #e7eef6;}}
@media (max-width:1100px){#scadenze .gs360-deadlines-active-filter-form,#documenti .gs360-documents-filters{grid-template-columns:repeat(2,minmax(0,1fr));}#documenti .gs360-documents-upload-form{grid-template-columns:1fr;}#documenti .gs360-document-manage-panel,#documenti .gs360-document-meta-form{grid-template-columns:1fr;grid-column:auto;}}
@media (max-width:760px){#scadenze .gs360-scadenze-quick-icons,#documenti .gs360-documents-quick-icons,#scadenze .gs360-pro-kpi-strip,#documenti .gs360-documents-kpi-pro,#scadenze .gs360-deadlines-active-filter-form,#documenti .gs360-documents-filters{grid-template-columns:1fr;}#scadenze .gs360-company-kpi,#documenti .gs360-documents-kpi-pro .gs360-company-card{border-right:0;border-top:1px solid #e7eef6;}#scadenze .gs360-company-kpi:first-child,#documenti .gs360-documents-kpi-pro .gs360-company-card:first-child{border-top:0;}#scadenze table.gs360-table tbody td,#documenti table.gs360-table tbody td{padding:11px 12px;}}
/* Fine plugin-block: SCAD360-SNIP-064C / Restyling operativo Scadenze e Documenti. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064C1 / CR-0.6.4-alpha / Restyling Scadenze aderente al mockup.
 *
 * Scopo:
 * allineare la pagina Scadenze al mockup approvato con icone KPI reali,
 * colorazioni semantiche, badge coerenti, tabella più pulita e azioni compatte.
 *
 * Contesto:
 * Area Azienda Cliente / vista #scadenze.
 *
 * Relazioni:
 * - SCAD360-SNIP-064C: primo restyling Scadenze/Documenti;
 * - SCAD360-SNIP-031L3: azioni rapide sopra KPI;
 * - SCAD360-SNIP-031K3: stato visuale notifiche;
 * - mockup approvato Scadenze360 pagina Scadenze.
 *
 * Database:
 * nessuna modifica. Solo CSS/markup presentazionale.
 */
body .gs360-company-shell #scadenze{--mock-navy:#061a44;--mock-muted:#64748b;--mock-border:#dbe7f3;--mock-soft:#f8fbff;--mock-green:#16a34a;--mock-blue:#2563eb;--mock-orange:#f97316;--mock-red:#ef4444;--mock-purple:#7c3aed;}
body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{background:#fff!important;border:1px solid var(--mock-border)!important;border-radius:24px!important;box-shadow:0 18px 40px rgba(15,23,42,.055)!important;padding:26px 30px!important;margin-bottom:18px!important;display:grid!important;grid-template-columns:minmax(260px,1fr) minmax(520px,auto)!important;gap:22px!important;align-items:center!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-module-title .gs360-kicker{display:none!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-module-title h2{display:block!important;font-size:38px!important;line-height:1!important;letter-spacing:-.04em!important;color:var(--mock-navy)!important;margin:0 0 12px!important;font-weight:950!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-module-title p{display:block!important;font-size:15px!important;color:var(--mock-muted)!important;margin:0!important;font-weight:650!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;min-width:640px!important;width:auto!important;margin:0!important;align-items:stretch!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon{background:#fff!important;border:1px solid #dce8f5!important;border-radius:18px!important;box-shadow:0 10px 24px rgba(15,23,42,.045)!important;min-height:74px!important;padding:14px 18px!important;display:grid!important;grid-template-columns:50px 1fr!important;grid-template-rows:auto auto!important;column-gap:14px!important;align-items:center!important;text-align:left!important;color:var(--mock-navy)!important;text-decoration:none!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon>span{grid-row:1 / span 2!important;width:44px!important;height:44px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#eafaf0!important;color:var(--mock-green)!important;box-shadow:inset 0 0 0 1px #c8f1d5!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon.is-calendar>span{background:#eff6ff!important;color:var(--mock-blue)!important;box-shadow:inset 0 0 0 1px #cfe0ff!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon.is-categories>span{background:#f5f3ff!important;color:var(--mock-purple)!important;box-shadow:inset 0 0 0 1px #ddd6fe!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head svg{width:24px!important;height:24px!important;stroke:currentColor!important;fill:none!important;stroke-width:2.25!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-icon svg{fill:currentColor!important;stroke:none!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head strong{font-size:14px!important;line-height:1.15!important;font-weight:950!important;color:var(--mock-navy)!important;letter-spacing:-.01em!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head em{font-size:11px!important;line-height:1.25!important;font-weight:750!important;color:var(--mock-muted)!important;font-style:normal!important;margin-top:3px!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;margin:0 0 18px!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi{position:relative!important;border:1px solid #e0eaf5!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 26px rgba(15,23,42,.045)!important;min-height:96px!important;padding:18px 18px 18px 82px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:0!important;transition:.18s ease!important;overflow:hidden!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi:before{display:none!important;content:none!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi:hover{transform:translateY(-2px)!important;box-shadow:0 18px 36px rgba(15,23,42,.08)!important;border-color:#c7dbef!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi.is-active{background:#f8fff9!important;border-color:#87d9a7!important;box-shadow:0 16px 32px rgba(22,163,74,.09), inset 0 0 0 1px rgba(22,163,74,.08)!important;}
body .gs360-company-shell #scadenze .gs360-mockup-icon{position:absolute!important;left:18px!important;top:50%!important;transform:translateY(-50%)!important;width:48px!important;height:48px!important;border-radius:15px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#eff6ff!important;color:var(--mock-blue)!important;box-shadow:inset 0 0 0 1px #cfe0ff!important;}
body .gs360-company-shell #scadenze .gs360-mockup-icon svg{width:27px!important;height:27px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.15!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
body .gs360-company-shell #scadenze .is-kpi-imminenti .gs360-mockup-icon{background:#fff7ed!important;color:var(--mock-orange)!important;box-shadow:inset 0 0 0 1px #fed7aa!important;}
body .gs360-company-shell #scadenze .is-kpi-scadute .gs360-mockup-icon,body .gs360-company-shell #scadenze .is-kpi-critiche .gs360-mockup-icon{background:#fff1f2!important;color:var(--mock-red)!important;box-shadow:inset 0 0 0 1px #fecdd3!important;}
body .gs360-company-shell #scadenze .is-kpi-completate .gs360-mockup-icon{background:#ecfdf5!important;color:var(--mock-green)!important;box-shadow:inset 0 0 0 1px #bbf7d0!important;}
body .gs360-company-shell #scadenze .is-kpi-bozze .gs360-mockup-icon{background:#eff6ff!important;color:var(--mock-blue)!important;box-shadow:inset 0 0 0 1px #bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi span{order:1!important;font-size:12px!important;font-weight:900!important;color:#475569!important;margin:0 0 6px!important;text-transform:none!important;letter-spacing:0!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi strong{order:2!important;font-size:25px!important;font-weight:950!important;color:var(--mock-navy)!important;line-height:1!important;margin:0 0 6px!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi em{order:3!important;font-size:12px!important;color:var(--mock-muted)!important;font-style:normal!important;font-weight:700!important;line-height:1.25!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended{border-radius:22px!important;border:1px solid var(--mock-border)!important;background:#fff!important;box-shadow:0 16px 36px rgba(15,23,42,.055)!important;overflow:hidden!important;padding:0!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended>.gs360-company-panel-head{padding:20px 22px 12px!important;border-bottom:1px solid #edf2f7!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended>.gs360-company-panel-head h3{font-size:21px!important;font-weight:950!important;color:var(--mock-navy)!important;margin:0!important;letter-spacing:-.02em!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended>.gs360-company-panel-head p{font-size:13px!important;line-height:1.35!important;color:var(--mock-muted)!important;margin:3px 0 0!important;font-weight:650!important;max-width:680px!important;text-align:right!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{grid-template-columns:1.05fr 1.05fr .95fr 1.12fr 1.12fr 1.45fr auto!important;gap:12px!important;padding:16px 18px!important;background:#fff!important;border-bottom:1px solid #edf2f7!important;align-items:end!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form select,body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form input{height:46px!important;border-radius:14px!important;background:#f8fbff!important;border:1px solid #cfe0f2!important;color:var(--mock-navy)!important;font-weight:850!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions .gs360-action-btn{height:46px!important;border-radius:16px!important;padding:0 16px!important;font-weight:950!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions .gs360-action-btn.is-view{background:#eff6ff!important;border-color:#bfd7ff!important;color:#0b63ce!important;}
body .gs360-company-shell #scadenze table.gs360-table thead th{background:#f8fafc!important;color:#334155!important;font-size:11px!important;font-weight:950!important;text-transform:none!important;letter-spacing:.012em!important;border-bottom:1px solid #e2ebf5!important;padding:14px 12px!important;}
body .gs360-company-shell #scadenze table.gs360-table tbody td{padding:15px 12px!important;border-bottom:1px solid #edf2f7!important;color:#10234b!important;font-weight:700!important;background:#fff!important;vertical-align:middle!important;}
body .gs360-company-shell #scadenze table.gs360-table tbody tr:hover td{background:#fbfdff!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip{display:inline-flex!important;align-items:center!important;gap:7px!important;font-weight:950!important;color:#1e3a5f!important;white-space:nowrap!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip:after{content:"";width:14px;height:14px;border-radius:50%;border:2px solid currentColor;display:inline-block;opacity:.9;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-expired{color:#ef4444!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-soon{color:#f97316!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-future{color:#334155!important;}
body .gs360-company-shell #scadenze .gs360-badge{border-radius:9px!important;padding:5px 9px!important;font-size:11px!important;font-weight:950!important;line-height:1.1!important;display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;}
body .gs360-company-shell #scadenze .gs360-badge.is-dot:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;display:inline-block;}
body .gs360-company-shell #scadenze .gs360-badge.verde{background:#eafaf0!important;color:#159243!important;border:1px solid #bdecc9!important;}
body .gs360-company-shell #scadenze .gs360-badge.rosso{background:#fff1f2!important;color:#e11d48!important;border:1px solid #fecdd3!important;}
body .gs360-company-shell #scadenze .gs360-badge.arancio,body .gs360-company-shell #scadenze .gs360-badge.arancione,body .gs360-company-shell #scadenze .gs360-badge.giallo{background:#fff7ed!important;color:#ea580c!important;border:1px solid #fed7aa!important;}
body .gs360-company-shell #scadenze .gs360-badge.blu{background:#eff6ff!important;color:#2563eb!important;border:1px solid #bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-badge.grigio{background:#f1f5f9!important;color:#475569!important;border:1px solid #e2e8f0!important;}
body .gs360-company-shell #scadenze .gs360-badge.viola{background:#f5f3ff!important;color:#7c3aed!important;border:1px solid #ddd6fe!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-notification-status small{display:block!important;margin-top:4px!important;color:#52637a!important;font-size:10.5px!important;line-height:1.25!important;font-weight:750!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions{display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-start!important;min-width:130px!important;flex-wrap:nowrap!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:11px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;border:1px solid #d7e6f6!important;color:#061a44!important;box-shadow:none!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn span:not(.gs360-icon):not(.gs360-action-icon){display:none!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn svg{width:16px!important;height:16px!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-refuse{background:#fff1f2!important;border-color:#fecdd3!important;color:#e11d48!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-approve{background:#eafaf0!important;border-color:#bdecc9!important;color:#159243!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-pagination{padding:15px 18px!important;background:#fff!important;border-top:1px solid #edf2f7!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-pagination>span{font-weight:850!important;color:#334155!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-pagination-controls{display:flex!important;align-items:center!important;gap:8px!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-pagination-controls .gs360-action-btn{height:32px!important;min-height:32px!important;border-radius:999px!important;padding:0 12px!important;font-size:12px!important;font-weight:950!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-pagination-controls .gs360-action-btn.is-current{background:#16a34a!important;color:#fff!important;border-color:#16a34a!important;box-shadow:0 8px 18px rgba(22,163,74,.22)!important;}
@media (max-width:1500px){body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{grid-template-columns:1fr!important;}body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head{min-width:0!important;width:100%!important;}body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{grid-template-columns:repeat(3,minmax(0,1fr))!important;}body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media (max-width:900px){body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup,body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head,body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{grid-template-columns:1fr!important;}body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended>.gs360-company-panel-head{display:block!important;}body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended>.gs360-company-panel-head p{text-align:left!important;max-width:none!important;}body .gs360-company-shell #scadenze .gs360-deadlines-pagination{display:grid!important;}body .gs360-company-shell #scadenze .gs360-deadlines-pagination-controls{flex-wrap:wrap!important;}}
/* Fine plugin-block: SCAD360-SNIP-064C1 / Restyling Scadenze aderente al mockup. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064C2 / CR-0.6.4-alpha / Icone light + export Scadenze.
 * Scopo: applicare regola globale icone lineari/stroke, rifinire KPI/colonne
 * Data scadenza, Condivisione, Azioni e aggiungere UI export CSV/ICS.
 * Contesto: Area Azienda Cliente, con applicazione principale su #scadenze.
 * Relazioni: class-gs360-frontend.php, SCAD360-SNIP-064C1, export CSV/iCalendar.
 * Database: nessuna modifica strutturale, nessun ALTER TABLE.
 */
body .gs360-company-shell svg,
body .gs360-company-shell .gs360-icon svg,
body .gs360-company-shell .gs360-stroke-icon svg,
body .gs360-company-shell .gs360-mockup-icon svg,
body .gs360-company-shell .gs360-action-icon svg{
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.65!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}
body .gs360-company-shell .gs360-action-icon svg,
body .gs360-company-shell .gs360-icon svg{stroke-width:1.55!important;}
body .gs360-company-shell #scadenze .gs360-mockup-icon{color:currentColor!important;}
body .gs360-company-shell #scadenze .gs360-mockup-icon svg{width:100%!important;height:100%!important;display:block!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icon>span{
    width:48px!important;height:48px!important;border-radius:16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icon>span .gs360-mockup-icon,
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icon>span .gs360-stroke-icon{width:25px!important;height:25px!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icon.is-create>span{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icon.is-calendar>span{background:#eff6ff!important;color:#2563eb!important;border:1px solid #bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icon.is-categories>span{background:#f5f3ff!important;color:#7c3aed!important;border:1px solid #ddd6fe!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-panel-head-export{align-items:center!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-panel-head-export>div:first-child{min-width:0!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-panel-head-export h3 small{font-size:.78em!important;color:#64748b!important;font-weight:850!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-export-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important;}
body .gs360-company-shell #scadenze .gs360-export-action{height:38px!important;padding:0 13px!important;border-radius:13px!important;border:1px solid #cfe0f2!important;background:#fff!important;color:#061a44!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;gap:8px!important;font-weight:900!important;font-size:12px!important;box-shadow:0 8px 18px rgba(15,23,42,.045)!important;}
body .gs360-company-shell #scadenze .gs360-export-action:hover{background:#f8fbff!important;border-color:#a9c7ef!important;color:#0b63ce!important;transform:translateY(-1px);}
body .gs360-company-shell #scadenze .gs360-export-action .gs360-mockup-icon{width:17px!important;height:17px!important;color:currentColor!important;background:transparent!important;border:0!important;box-shadow:none!important;}
body .gs360-company-shell #scadenze table.gs360-table thead th .gs360-mockup-icon.is-sort{width:16px!important;height:16px!important;display:inline-flex!important;vertical-align:middle!important;margin-left:5px!important;color:#0b1f4d!important;background:transparent!important;border:0!important;box-shadow:none!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip:after{display:none!important;content:none!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip{gap:8px!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip .gs360-deadline-date-text{font-weight:950!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip .gs360-mockup-icon.is-date{width:16px!important;height:16px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:currentColor!important;}
body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip{display:inline-flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;}
body .gs360-company-shell #scadenze .gs360-sharing-icons{display:inline-flex!important;align-items:center!important;gap:4px!important;color:#0b1f4d!important;}
body .gs360-company-shell #scadenze .gs360-sharing-icons .gs360-mockup-icon{width:17px!important;height:17px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:currentColor!important;}
body .gs360-company-shell #scadenze .gs360-sharing-count{min-width:24px!important;height:22px!important;padding:0 7px!important;border-radius:999px!important;background:#f1f5f9!important;border:1px solid #e2e8f0!important;color:#0b1f4d!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important;font-weight:900!important;}
body .gs360-company-shell #scadenze td[data-label="Condivisione"] small{display:block!important;margin-top:4px!important;color:#52637a!important;font-size:10.5px!important;font-weight:750!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn{color:#0b1f4d!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn svg{stroke-width:1.45!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn:hover{border-color:#a9c7ef!important;color:#0b63ce!important;background:#f8fbff!important;}
body .gs360-company-shell #scadenze .gs360-badge.rosso{background:#fff1f2!important;color:#dc2626!important;border-color:#fecaca!important;}
body .gs360-company-shell #scadenze .gs360-badge.arancio,
body .gs360-company-shell #scadenze .gs360-badge.arancione,
body .gs360-company-shell #scadenze .gs360-badge.giallo{background:#fff7ed!important;color:#f97316!important;border-color:#fed7aa!important;}
body .gs360-company-shell #scadenze .gs360-badge.verde{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}
body .gs360-company-shell #scadenze .gs360-badge.blu{background:#eff6ff!important;color:#2563eb!important;border-color:#bfdbfe!important;}
body .gs360-company-shell #scadenze .is-kpi-imminenti .gs360-mockup-icon{background:#fff7ed!important;color:#f97316!important;border:1px solid #fed7aa!important;}
body .gs360-company-shell #scadenze .is-kpi-scadute .gs360-mockup-icon{background:#fff1f2!important;color:#dc2626!important;border:1px solid #fecaca!important;}
body .gs360-company-shell #scadenze .is-kpi-critiche .gs360-mockup-icon{background:#fef2f2!important;color:#ef0000!important;border:1px solid #fecaca!important;}
body .gs360-company-shell #scadenze .is-kpi-completate .gs360-mockup-icon{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important;}
body .gs360-company-shell #scadenze .is-kpi-bozze .gs360-mockup-icon{background:#eff6ff!important;color:#2563eb!important;border:1px solid #bfdbfe!important;}
@media (max-width:900px){body .gs360-company-shell #scadenze .gs360-deadlines-export-actions{justify-content:flex-start!important;margin-top:12px!important;}body .gs360-company-shell #scadenze .gs360-export-action{width:100%!important;justify-content:center!important;}}
/* Fine plugin-block: SCAD360-SNIP-064C2 / Icone light + export Scadenze. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064C3 / CR-0.6.4-alpha / Rifinitura icone light, colori KPI, export label.
 * Scopo: completare il restyling Scadenze correggendo colori icone KPI,
 * label export, icona condivisione/numero utenti e icona priorità.
 * Contesto: Area Azienda Cliente / vista #scadenze.
 * Relazioni: SCAD360-SNIP-064C1, SCAD360-SNIP-064C2, export CSV/ICS.
 * Database: nessuna modifica strutturale, nessun ALTER TABLE.
 */
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi .gs360-mockup-icon{
    position:absolute!important;left:20px!important;top:50%!important;transform:translateY(-50%)!important;
    width:48px!important;height:48px!important;border-radius:16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    box-shadow:inset 0 0 0 1px currentColor!important;opacity:1!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi .gs360-mockup-icon svg{width:25px!important;height:25px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.55!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-total .gs360-mockup-icon{background:#eff6ff!important;color:#1d4ed8!important;box-shadow:inset 0 0 0 1px #bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-imminenti .gs360-mockup-icon{background:#fff7ed!important;color:#f97316!important;box-shadow:inset 0 0 0 1px #fed7aa!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-scadute .gs360-mockup-icon{background:#fff1f2!important;color:#dc2626!important;box-shadow:inset 0 0 0 1px #fecaca!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-critiche .gs360-mockup-icon{background:#fef2f2!important;color:#ef0000!important;box-shadow:inset 0 0 0 1px #fecaca!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-completate .gs360-mockup-icon{background:#ecfdf5!important;color:#16a34a!important;box-shadow:inset 0 0 0 1px #bbf7d0!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-bozze .gs360-mockup-icon{background:#eff6ff!important;color:#2563eb!important;box-shadow:inset 0 0 0 1px #bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-export-actions .gs360-export-label{font-size:12px!important;font-weight:950!important;color:#475569!important;margin-right:2px!important;}
body .gs360-company-shell #scadenze .gs360-export-action{background:#fff!important;color:#061a44!important;border-color:#d7e6f6!important;}
body .gs360-company-shell #scadenze .gs360-export-action .gs360-mockup-icon{color:#0b63ce!important;}
body .gs360-company-shell #scadenze .gs360-priority-badge{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:5px 9px!important;line-height:1!important;}
body .gs360-company-shell #scadenze .gs360-priority-badge .gs360-mockup-icon{width:13px!important;height:13px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:currentColor!important;display:inline-flex!important;position:static!important;transform:none!important;}
body .gs360-company-shell #scadenze .gs360-priority-badge .gs360-mockup-icon svg{width:13px!important;height:13px!important;stroke-width:1.55!important;}
body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;}
body .gs360-company-shell #scadenze .gs360-sharing-icons{display:inline-flex!important;align-items:center!important;color:#0b63ce!important;background:#eff6ff!important;border:1px solid #bfdbfe!important;border-radius:999px!important;padding:4px 6px!important;gap:3px!important;}
body .gs360-company-shell #scadenze .gs360-sharing-icons .gs360-mockup-icon{width:14px!important;height:14px!important;color:#0b63ce!important;background:transparent!important;border:0!important;box-shadow:none!important;display:inline-flex!important;}
body .gs360-company-shell #scadenze .gs360-sharing-text{font-size:11px!important;font-weight:900!important;color:#0b63ce!important;}
body .gs360-company-shell #scadenze .gs360-sharing-count{background:#eef2ff!important;border-color:#c7d2fe!important;color:#1e40af!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn{width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;border-radius:11px!important;background:#fff!important;border:1px solid #d7e6f6!important;color:#0b1f4d!important;box-shadow:none!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn span{display:none!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn svg{width:15px!important;height:15px!important;stroke-width:1.35!important;fill:none!important;stroke:currentColor!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-refuse{color:#ef4444!important;border-color:#fecaca!important;background:#fff7f7!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-approve{color:#16a34a!important;border-color:#bbf7d0!important;background:#f8fff9!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip .gs360-mockup-icon{color:currentColor!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-expired{color:#dc2626!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-soon{color:#f97316!important;}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-future{color:#1e3a8a!important;}
@media(max-width:900px){body .gs360-company-shell #scadenze .gs360-deadlines-export-actions .gs360-export-label{width:100%!important;margin:0 0 4px!important;}}
/* Fine plugin-block: SCAD360-SNIP-064C3 / Rifinitura icone light, colori KPI, export label. */


/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064C4 / CR-0.6.4-alpha / Fix finale icone Scadenze e label export.
 *
 * Scopo:
 * completare la corrispondenza della pagina Scadenze al mockup approvato,
 * correggendo icone azioni mancanti, icona Nuova scadenza, reset della posizione
 * globale delle icone mockup, label "Esporta dati:" e pulizia header tabella.
 *
 * Contesto:
 * Area Azienda Cliente / vista #scadenze.
 *
 * Relazioni:
 * - SCAD360-SNIP-064C1: restyling Scadenze mockup;
 * - SCAD360-SNIP-064C2: export CSV/ICS e icone light;
 * - SCAD360-SNIP-064C3: rifinitura colori KPI e icone tabella.
 *
 * Database:
 * nessuna modifica strutturale, nessun ALTER TABLE.
 * Note rollback:
 * rimuovere questo blocco CSS e ripristinare il pacchetto CR-064C3.
 */
body .gs360-company-shell #scadenze .gs360-mockup-icon{
    position:static!important;
    left:auto!important;
    top:auto!important;
    transform:none!important;
    width:1em!important;
    height:1em!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    color:currentColor!important;
    opacity:1!important;
}
body .gs360-company-shell #scadenze .gs360-mockup-icon svg{
    width:100%!important;
    height:100%!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.55!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi .gs360-mockup-icon{
    position:absolute!important;
    left:20px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:48px!important;
    height:48px!important;
    border-radius:16px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .gs360-company-kpi .gs360-mockup-icon svg{
    width:25px!important;
    height:25px!important;
    stroke-width:1.55!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-total .gs360-mockup-icon{background:#eff6ff!important;color:#1d4ed8!important;box-shadow:inset 0 0 0 1px #bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-imminenti .gs360-mockup-icon{background:#fff7ed!important;color:#f97316!important;box-shadow:inset 0 0 0 1px #fed7aa!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-scadute .gs360-mockup-icon{background:#fff1f2!important;color:#dc2626!important;box-shadow:inset 0 0 0 1px #fecaca!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-critiche .gs360-mockup-icon{background:#fef2f2!important;color:#ef0000!important;box-shadow:inset 0 0 0 1px #fecaca!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-completate .gs360-mockup-icon{background:#ecfdf5!important;color:#16a34a!important;box-shadow:inset 0 0 0 1px #bbf7d0!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup .is-kpi-bozze .gs360-mockup-icon{background:#eff6ff!important;color:#2563eb!important;box-shadow:inset 0 0 0 1px #bfdbfe!important;}

body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon>span{
    position:relative!important;
    overflow:hidden!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon>span .gs360-mockup-icon,
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon>span .gs360-stroke-icon{
    position:static!important;
    width:24px!important;
    height:24px!important;
    display:inline-flex!important;
    color:currentColor!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head .gs360-scadenze-quick-icon>span svg{
    width:24px!important;
    height:24px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.65!important;
}

body .gs360-company-shell #scadenze .gs360-deadlines-export-actions .gs360-export-label{
    font-size:14px!important;
    font-weight:950!important;
    color:#061a44!important;
    letter-spacing:-.01em!important;
    margin-right:6px!important;
}
body .gs360-company-shell #scadenze .gs360-export-action .gs360-mockup-icon{
    width:16px!important;
    height:16px!important;
    position:static!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    color:#0b63ce!important;
}
body .gs360-company-shell #scadenze .gs360-priority-badge .gs360-mockup-icon,
body .gs360-company-shell #scadenze .gs360-deadline-date-chip .gs360-mockup-icon,
body .gs360-company-shell #scadenze .gs360-sharing-icons .gs360-mockup-icon,
body .gs360-company-shell #scadenze table.gs360-table thead th .gs360-mockup-icon.is-sort{
    position:static!important;
    left:auto!important;
    top:auto!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
body .gs360-company-shell #scadenze table.gs360-table thead th:first-child .gs360-mockup-icon,
body .gs360-company-shell #scadenze table.gs360-table thead th:first-child .gs360-icon,
body .gs360-company-shell #scadenze table.gs360-table thead th:first-child .gs360-action-icon{
    display:none!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip .gs360-sharing-icons:before{
    content:'';
    width:14px;
    height:14px;
    display:inline-block;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3.8 20a5.2 5.2 0 0 1 10.4 0'/%3E%3Ccircle cx='17' cy='10' r='2.5'/%3E%3Cpath d='M15 20a4.3 4.3 0 0 1 5.2-3.8'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3.8 20a5.2 5.2 0 0 1 10.4 0'/%3E%3Ccircle cx='17' cy='10' r='2.5'/%3E%3Cpath d='M15 20a4.3 4.3 0 0 1 5.2-3.8'/%3E%3C/svg%3E") center/contain no-repeat;
}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn span:not(.gs360-icon):not(.gs360-action-icon):not(.gs360-mockup-icon){
    display:none!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn .gs360-icon,
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn .gs360-action-icon,
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn .gs360-mockup-icon{
    display:inline-flex!important;
    width:16px!important;
    height:16px!important;
    align-items:center!important;
    justify-content:center!important;
    color:currentColor!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    position:static!important;
    transform:none!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn svg{
    display:block!important;
    width:16px!important;
    height:16px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.45!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-view{color:#2563eb!important;background:#f8fbff!important;border-color:#bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-audit{color:#2563eb!important;background:#f8fbff!important;border-color:#bfdbfe!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-approve{color:#16a34a!important;background:#f0fdf4!important;border-color:#bbf7d0!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-refuse{color:#ef4444!important;background:#fff1f2!important;border-color:#fecaca!important;}
/* Fine plugin-block: SCAD360-SNIP-064C4 / Fix finale icone Scadenze e label export. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064C5 / CR-0.6.4-alpha / Rifinitura finale condivisione + azione completa.
 * Scopo: migliorare leggibilità colonna Condivisione mandando a capo la label
 * Amministratori/Amministratore e ripristinare l'icona light dell'azione Completa.
 * Contesto: Dashboard Azienda / Modulo Scadenze / Elenco scadenze.
 * Relazioni: SCAD360-SNIP-064C4, asset icone actions/approva.svg.
 * Database: nessuna modifica schema, nessuna modifica dati.
 */
body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip{
    display:inline-flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:4px 6px!important;
    white-space:normal!important;
    max-width:100%!important;
    line-height:1.15!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip .gs360-sharing-icons{
    display:inline-flex!important;
    align-items:center!important;
    gap:3px!important;
    flex:0 0 auto!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip .gs360-sharing-text{
    display:block!important;
    flex:1 1 100%!important;
    margin-top:2px!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
}
body .gs360-company-shell #scadenze td[data-label="Condivisione"] small{
    display:block!important;
    margin-top:4px!important;
    line-height:1.2!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .is-approve .gs360-icon-approva svg,
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .is-approve .gs360-icon-approva{
    color:#16a34a!important;
    stroke:currentColor!important;
    fill:none!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .is-approve .gs360-icon-approva svg *{
    vector-effect:non-scaling-stroke!important;
}
/* Fine plugin-block: SCAD360-SNIP-064C5 */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064D / CR-0.6.4-alpha / Restyling Documenti da mockup approvato.
 * Modulo: Dashboard Azienda / Documenti.
 * Scopo: portare la pagina Documenti allo stesso livello visuale della pagina Scadenze,
 *        con icone light/stroke, KPI professionali, filtri compatti, tabella leggibile
 *        e pannello dettaglio documento più ordinato.
 * Relazioni: SCAD360-SNIP-064C5, SCAD360-SNIP-030D, SCAD360-SNIP-031H.
 * Database: nessuna modifica strutturale, solo markup/CSS frontend.
 * ===================================================== */
#documenti .gs360-documents-module-head-pro{padding:26px 32px!important;}
#documenti .gs360-documents-quick-icons{min-width:min(660px,50vw)!important;}
#documenti .gs360-documents-quick-icon{border-radius:18px!important;min-height:78px!important;}
#documenti .gs360-documents-quick-icon svg,
#documenti .gs360-documents-quick-icon .gs360-stroke-icon{stroke-width:1.8!important;fill:none!important;}
#documenti .gs360-documents-quick-icon.is-upload>span,
#documenti .gs360-documents-quick-icon.is-upload>svg{background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important;}
#documenti .gs360-documents-quick-icon.is-archive>span,
#documenti .gs360-documents-quick-icon.is-archive>svg{background:#eff6ff!important;color:#2563eb!important;border:1px solid #bfdbfe!important;}
#documenti .gs360-documents-quick-icon.is-link>span,
#documenti .gs360-documents-quick-icon.is-link>svg{background:#f3efff!important;color:#6d5dfc!important;border:1px solid #ddd6fe!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card{position:relative!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card-icon{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card-icon svg{width:22px!important;height:22px!important;stroke-width:1.8!important;fill:none!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(2) .gs360-company-card-icon{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(3) .gs360-company-card-icon{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(4) .gs360-company-card-icon{background:#fff7ed!important;color:#f97316!important;border-color:#fed7aa!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(5) .gs360-company-card-icon{background:#fff1f2!important;color:#ef4444!important;border-color:#fecdd3!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(6) .gs360-company-card-icon{background:#eff6ff!important;color:#2563eb!important;border-color:#bfdbfe!important;}
#documenti .gs360-documents-upload-details{margin:0 0 18px!important;border-radius:20px!important;border:1px dashed #bfd7f1!important;background:#fbfdff!important;overflow:hidden!important;}
#documenti .gs360-documents-upload-details[open]{border-style:solid!important;background:#fff!important;box-shadow:0 16px 34px rgba(15,23,42,.055)!important;}
#documenti .gs360-documents-upload-summary{display:flex!important;align-items:center!important;gap:12px!important;padding:14px 18px!important;cursor:pointer!important;list-style:none!important;color:#061a44!important;font-weight:900!important;}
#documenti .gs360-documents-upload-summary::-webkit-details-marker{display:none!important;}
#documenti .gs360-documents-upload-summary-icon{width:40px!important;height:40px!important;border-radius:14px!important;background:#ecfdf5!important;color:#16a34a!important;border:1px solid #bbf7d0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
#documenti .gs360-documents-upload-summary-icon svg{width:20px!important;height:20px!important;stroke-width:1.8!important;fill:none!important;}
#documenti .gs360-documents-upload-summary strong{font-size:15px!important;}
#documenti .gs360-documents-upload-summary em{font-style:normal!important;color:#64748b!important;font-size:12px!important;font-weight:700!important;margin-left:auto!important;}
#documenti .gs360-documents-upload-body{border-top:1px solid #edf2f7!important;padding-top:4px!important;}
#documenti .gs360-documents-list-head-064d{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;}
#documenti .gs360-documents-export-tools{display:flex!important;align-items:center!important;gap:8px!important;white-space:nowrap!important;}
#documenti .gs360-documents-export-tools strong{font-size:13px!important;color:#061a44!important;font-weight:950!important;}
#documenti .gs360-documents-view-pill,
#documenti .gs360-documents-export-btn{height:34px!important;border:1px solid #d7e6f6!important;border-radius:12px!important;background:#fff!important;color:#0b2a62!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:0 12px!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important;}
#documenti .gs360-documents-view-pill{width:36px!important;padding:0!important;background:#f8fbff!important;}
#documenti .gs360-documents-export-btn:hover{background:#eff6ff!important;border-color:#bfdbfe!important;color:#2563eb!important;}
#documenti .gs360-documents-export-btn svg,
#documenti .gs360-documents-view-pill svg{width:15px!important;height:15px!important;stroke-width:1.8!important;fill:none!important;}
#documenti .gs360-documents-panel-064d{overflow:hidden!important;}
#documenti .gs360-documents-table{min-width:1180px!important;}
#documenti .gs360-document-file-cell{display:flex!important;align-items:center!important;gap:10px!important;min-width:260px!important;}
#documenti .gs360-document-file-icon{width:32px!important;height:32px!important;border-radius:11px!important;background:#eff6ff!important;color:#2563eb!important;border:1px solid #bfdbfe!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;}
#documenti .gs360-document-file-icon svg{width:16px!important;height:16px!important;stroke-width:1.8!important;fill:none!important;}
#documenti .gs360-documents-table tbody tr:nth-child(4n+1) .gs360-document-file-icon{background:#fff1f2!important;color:#ef4444!important;border-color:#fecdd3!important;}
#documenti .gs360-documents-table tbody tr:nth-child(4n+3) .gs360-document-file-icon{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}
#documenti .gs360-documents-table td[data-label="Scadenza collegata"] a{font-weight:950!important;color:#2563eb!important;text-decoration:none!important;}
#documenti .gs360-documents-table td[data-label="Scadenza collegata"] a:hover{text-decoration:underline!important;}
#documenti .gs360-documents-table td[data-label="Tipo"] .gs360-badge{font-weight:900!important;}
#documenti .gs360-documents-action-stack-pro{justify-content:flex-start!important;gap:8px!important;min-width:112px!important;}
#documenti .gs360-action-icon-btn{width:32px!important;height:32px!important;border-radius:11px!important;background:#fff!important;color:#2563eb!important;box-shadow:none!important;}
#documenti .gs360-action-icon-btn svg{stroke-width:1.7!important;fill:none!important;}
#documenti .gs360-action-icon-btn.is-doc-view{background:#eff6ff!important;border-color:#bfdbfe!important;color:#2563eb!important;}
#documenti .gs360-action-icon-btn.is-doc-edit{background:#f8fbff!important;border-color:#cfe0f2!important;color:#0b2a62!important;}
#documenti .gs360-action-icon-btn.is-doc-menu{background:#fff!important;border-color:#dbe7f3!important;color:#475569!important;font-size:18px!important;line-height:1!important;}
#documenti .gs360-documents-manage-row>td{padding:0!important;background:#fbfdff!important;}
#documenti .gs360-document-manage{margin:12px 14px!important;border:1px solid #dbe7f3!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.035)!important;}
#documenti .gs360-document-manage summary{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;justify-content:flex-start!important;min-height:46px!important;border:0!important;border-radius:18px 18px 0 0!important;background:#fff!important;color:#061a44!important;font-size:14px!important;font-weight:950!important;padding:14px 18px!important;}
#documenti .gs360-document-manage summary::before{content:"";width:28px;height:28px;border-radius:10px;background:#ecfdf5;border:1px solid #bbf7d0;display:inline-block;}
#documenti .gs360-document-manage[open] summary{background:#fff!important;color:#061a44!important;border-bottom:1px solid #edf2f7!important;}
#documenti .gs360-document-manage-panel{display:grid!important;grid-template-columns:1.4fr 1fr 1fr!important;gap:16px!important;padding:18px!important;border:0!important;border-top:1px solid #edf2f7!important;box-shadow:none!important;background:#fff!important;}
#documenti .gs360-document-meta-form{grid-column:1 / span 2!important;display:grid!important;grid-template-columns:1.15fr .85fr 1.25fr auto!important;gap:12px!important;align-items:end!important;border:0!important;padding:0!important;}
#documenti .gs360-document-replace-form,
#documenti .gs360-document-delete-form{border:0!important;padding:0!important;align-content:end!important;}
#documenti .gs360-document-delete-form .gs360-action-btn{background:#fff1f2!important;color:#e11d48!important;border-color:#fecdd3!important;}
@media(max-width:1300px){#documenti .gs360-documents-list-head-064d{flex-direction:column!important;}#documenti .gs360-documents-export-tools{align-self:flex-end!important;}#documenti .gs360-document-manage-panel,#documenti .gs360-document-meta-form{grid-template-columns:1fr!important;grid-column:auto!important;}}
@media(max-width:760px){#documenti .gs360-documents-export-tools{align-self:stretch!important;flex-wrap:wrap!important;}#documenti .gs360-documents-upload-summary{align-items:flex-start!important;flex-wrap:wrap!important;}#documenti .gs360-documents-upload-summary em{margin-left:0!important;width:100%!important;}#documenti .gs360-document-file-cell{min-width:0!important;}}
/* =====================================================
 * Fine plugin-block: SCAD360-SNIP-064D / Restyling Documenti da mockup approvato.
 * ===================================================== */

/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064D1 / CR-0.6.4-alpha
 * Modulo: Documenti azienda / Restyling fedele al mockup.
 * Scopo: riallineare la pagina Documenti al mockup approvato con
 * header, KPI, filtri, tabella, export, dettaglio documento e icone
 * light/stroke coerenti con la pagina Scadenze validata.
 * Relazioni: SCAD360-SNIP-064D, wpscad360_documenti, wpscad360_scadenze.
 * Database: nessuna modifica schema, nessun ALTER TABLE.
 * ===================================================== */
#documenti .gs360-documents-module-head-pro{
  display:grid!important;
  grid-template-columns:1fr minmax(520px, 44vw)!important;
  align-items:center!important;
  gap:22px!important;
  padding:28px 34px!important;
  border-radius:26px!important;
  background:#fff!important;
  box-shadow:0 18px 42px rgba(15,23,42,.055)!important;
}
#documenti .gs360-documents-module-head-pro h2{font-size:36px!important;letter-spacing:-.035em!important;}
#documenti .gs360-documents-module-head-pro p{font-size:15px!important;line-height:1.5!important;}
#documenti .gs360-documents-quick-icons{width:100%!important;min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
#documenti .gs360-documents-quick-icon{min-height:76px!important;padding:14px 16px!important;border-radius:18px!important;grid-template-columns:50px 1fr!important;background:#fff!important;box-shadow:0 10px 26px rgba(15,23,42,.035)!important;}
#documenti .gs360-documents-quick-icon>svg,
#documenti .gs360-documents-quick-icon>span{width:46px!important;height:46px!important;border-radius:15px!important;stroke-width:1.7!important;}
#documenti .gs360-documents-quick-icon strong{font-size:13px!important;}
#documenti .gs360-documents-quick-icon em{font-size:11.5px!important;}
#documenti .gs360-documents-kpi-pro{border-radius:22px!important;margin-bottom:18px!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card{min-height:106px!important;padding:20px 18px!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card-icon{width:48px!important;height:48px!important;border-radius:15px!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(1) .gs360-company-card-icon{background:#eff6ff!important;color:#1d4ed8!important;border-color:#bfdbfe!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(2) .gs360-company-card-icon{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(3) .gs360-company-card-icon{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(4) .gs360-company-card-icon{background:#fff7ed!important;color:#f97316!important;border-color:#fed7aa!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(5) .gs360-company-card-icon{background:#fff1f2!important;color:#ef4444!important;border-color:#fecdd3!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(6) .gs360-company-card-icon{background:#eff6ff!important;color:#2563eb!important;border-color:#bfdbfe!important;}
#documenti .gs360-documents-kpi-pro .gs360-company-card-icon svg{stroke-width:1.65!important;width:22px!important;height:22px!important;}
#documenti #gs360-document-upload-panel:not(:target){display:none!important;}
#documenti #gs360-document-upload-panel:target{display:block!important;}
#documenti .gs360-documents-panel-064d{border-radius:22px!important;overflow:hidden!important;padding:0!important;background:#fff!important;}
#documenti .gs360-documents-panel-064d .gs360-documents-filters{order:1!important;display:grid!important;grid-template-columns:1.55fr 1fr 1fr .9fr .9fr 1fr auto!important;gap:12px!important;padding:18px 20px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;align-items:end!important;}
#documenti .gs360-documents-filters label span{font-size:10px!important;color:#64748b!important;font-weight:950!important;text-transform:none!important;letter-spacing:.01em!important;}
#documenti .gs360-documents-filters input,
#documenti .gs360-documents-filters select{height:42px!important;border-radius:13px!important;background:#f8fbff!important;border:1px solid #cfe0f2!important;color:#061a44!important;font-weight:850!important;}
#documenti .gs360-documents-filter-actions .gs360-action-btn{height:42px!important;border-radius:999px!important;padding:0 15px!important;}
#documenti .gs360-documents-list-head-064d{order:2!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;padding:18px 20px 12px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;}
#documenti .gs360-documents-list-head-064d h3{font-size:20px!important;margin:0!important;}
#documenti .gs360-documents-list-head-064d h3 small{font-size:15px!important;color:#64748b!important;font-weight:800!important;}
#documenti .gs360-documents-list-head-064d p{display:none!important;}
#documenti .gs360-documents-export-tools{display:flex!important;align-items:center!important;gap:8px!important;white-space:nowrap!important;}
#documenti .gs360-documents-export-tools strong{display:none!important;}
#documenti .gs360-documents-export-btn{height:36px!important;border-radius:12px!important;background:#fff!important;border:1px solid #d7e6f6!important;color:#0b2a62!important;font-weight:950!important;padding:0 13px!important;}
#documenti .gs360-documents-view-pill{height:36px!important;width:36px!important;border-radius:12px!important;background:#f8fbff!important;border:1px solid #d7e6f6!important;color:#0b2a62!important;}
#documenti .gs360-documents-export-btn svg,
#documenti .gs360-documents-view-pill svg{width:16px!important;height:16px!important;stroke-width:1.65!important;fill:none!important;}
#documenti .gs360-documents-table-wrap{order:3!important;border:0!important;overflow-x:auto!important;background:#fff!important;}
#documenti table.gs360-documents-table{min-width:1180px!important;border-collapse:separate!important;border-spacing:0!important;}
#documenti table.gs360-documents-table thead th{font-size:11px!important;color:#475569!important;background:#f8fafc!important;text-transform:uppercase!important;letter-spacing:.025em!important;font-weight:950!important;padding:14px 12px!important;border-bottom:1px solid #e4edf6!important;}
#documenti table.gs360-documents-table tbody td{font-size:12px!important;padding:13px 12px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;color:#10234b!important;vertical-align:middle!important;}
#documenti .gs360-document-file-cell{min-width:278px!important;}
#documenti .gs360-document-file-icon{width:34px!important;height:34px!important;border-radius:10px!important;background:#eff6ff!important;color:#2563eb!important;border:1px solid #bfdbfe!important;}
#documenti .gs360-document-file-icon.is-pdf{background:#fff1f2!important;color:#ef4444!important;border-color:#fecdd3!important;}
#documenti .gs360-document-file-icon.is-doc{background:#eff6ff!important;color:#2563eb!important;border-color:#bfdbfe!important;}
#documenti .gs360-document-file-icon.is-xls{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}
#documenti .gs360-document-file-icon svg{width:17px!important;height:17px!important;stroke-width:1.65!important;fill:none!important;}
#documenti .gs360-documents-table td[data-label="Documento"] strong{font-weight:950!important;color:#061a44!important;}
#documenti .gs360-documents-table td[data-label="Documento"] small{font-size:11px!important;color:#64748b!important;font-weight:700!important;}
#documenti .gs360-documents-table td[data-label="Scadenza collegata"] a{display:block!important;line-height:1.25!important;color:#1d4ed8!important;font-weight:900!important;text-decoration:none!important;}
#documenti .gs360-documents-actions-cell{min-width:116px!important;}
#documenti .gs360-documents-action-stack-pro{display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-start!important;min-width:112px!important;}
#documenti .gs360-action-icon-btn{width:32px!important;height:32px!important;border-radius:11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;border:1px solid #d7e6f6!important;box-shadow:none!important;color:#0b2a62!important;}
#documenti .gs360-action-icon-btn svg{width:16px!important;height:16px!important;stroke-width:1.6!important;fill:none!important;}
#documenti .gs360-action-icon-btn.is-doc-view{background:#eff6ff!important;border-color:#bfdbfe!important;color:#2563eb!important;}
#documenti .gs360-action-icon-btn.is-doc-edit{background:#fff!important;border-color:#d7e6f6!important;color:#0b2a62!important;}
#documenti .gs360-action-icon-btn.is-doc-menu{background:#fff!important;border-color:#dbe7f3!important;color:#475569!important;}
#documenti .gs360-documents-pagination{order:4!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:14px 18px!important;background:#fff!important;border-top:1px solid #edf2f7!important;}
#documenti .gs360-documents-pagination>span{color:#475569!important;font-weight:800!important;}
#documenti .gs360-documents-manage-row>td{padding:0!important;background:#fff!important;border-bottom:0!important;}
#documenti .gs360-document-manage{margin:14px!important;border:1px solid #dbe7f3!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.035)!important;}
#documenti .gs360-document-manage summary{min-height:50px!important;border-radius:18px 18px 0 0!important;padding:15px 18px!important;font-size:15px!important;background:#fff!important;color:#061a44!important;}
#documenti .gs360-document-manage summary::before{content:""!important;width:30px!important;height:30px!important;border-radius:10px!important;background:#ecfdf5!important;border:1px solid #bbf7d0!important;display:inline-block!important;}
#documenti .gs360-document-manage-panel{display:grid!important;grid-template-columns:1.45fr 1fr 1fr!important;gap:16px!important;padding:18px!important;background:#fff!important;border-top:1px solid #edf2f7!important;}
@media(max-width:1400px){#documenti .gs360-documents-module-head-pro{grid-template-columns:1fr!important;}#documenti .gs360-documents-kpi-pro{grid-template-columns:repeat(3,minmax(0,1fr))!important;}#documenti .gs360-documents-panel-064d .gs360-documents-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important;}#documenti .gs360-documents-filter-actions{grid-column:1 / -1!important;justify-content:flex-end!important;}}
@media(max-width:760px){#documenti .gs360-documents-quick-icons,#documenti .gs360-documents-kpi-pro,#documenti .gs360-documents-panel-064d .gs360-documents-filters{grid-template-columns:1fr!important;}#documenti .gs360-documents-list-head-064d{flex-direction:column!important;align-items:flex-start!important;}#documenti .gs360-documents-export-tools{align-self:stretch!important;justify-content:flex-end!important;}}
/* Fine plugin-block: SCAD360-SNIP-064D1 */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064D3 / CR-0.6.4-alpha / Documenti restyling fedele al mockup.
 * Scopo: rifinire la pagina Documenti secondo mockup approvato con filtri,
 * tabella archivio senza righe dettaglio intermedie e scheda dettaglio separata.
 * Contesto: Dashboard Azienda / vista #documenti.
 * Relazioni: include class-gs360-frontend.php, wpscad360_documenti, wpscad360_scadenze.
 * Database: nessuna modifica. Solo markup/CSS frontend.
 */
body .gs360-company-shell #documenti{--doc-navy:#061a44;--doc-muted:#64748b;--doc-border:#dbe7f3;--doc-soft:#f8fbff;--doc-blue:#2563eb;--doc-green:#16a34a;--doc-orange:#f97316;--doc-red:#ef4444;--doc-purple:#7c3aed;}
body .gs360-company-shell #documenti .gs360-documents-upload-details{display:none!important;}
body .gs360-company-shell #documenti .gs360-documents-panel-mockup{border-radius:22px!important;border:1px solid var(--doc-border)!important;background:#fff!important;box-shadow:0 16px 38px rgba(15,23,42,.05)!important;padding:0!important;overflow:hidden!important;margin-top:0!important;}
body .gs360-company-shell #documenti .gs360-documents-filters-mockup{display:grid!important;grid-template-columns:1.35fr 1fr 1fr .9fr .9fr 1fr auto!important;gap:14px!important;align-items:end!important;padding:18px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-documents-filters-mockup label span{font-size:10px!important;letter-spacing:.025em!important;text-transform:none!important;color:#60708a!important;font-weight:900!important;margin-bottom:7px!important;}
body .gs360-company-shell #documenti .gs360-documents-filters-mockup input,
body .gs360-company-shell #documenti .gs360-documents-filters-mockup select{height:42px!important;border:1px solid #cfdded!important;border-radius:12px!important;background:#f9fcff!important;color:var(--doc-navy)!important;font-weight:800!important;padding:0 14px!important;box-shadow:none!important;}
body .gs360-company-shell #documenti .gs360-documents-filter-actions{display:flex!important;gap:10px!important;align-items:center!important;justify-content:flex-end!important;}
body .gs360-company-shell #documenti .gs360-documents-filter-actions .gs360-action-btn{height:42px!important;border-radius:999px!important;font-size:12px!important;}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:18px 20px 14px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup h3{font-size:19px!important;line-height:1.2!important;font-weight:950!important;color:var(--doc-navy)!important;margin:0!important;}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup h3 small{font-size:14px!important;color:var(--doc-muted)!important;font-weight:800!important;}
body .gs360-company-shell #documenti .gs360-documents-export-tools{display:flex!important;align-items:center!important;gap:10px!important;}
body .gs360-company-shell #documenti .gs360-documents-export-btn,
body .gs360-company-shell #documenti .gs360-documents-view-pill{height:36px!important;border:1px solid #d7e6f6!important;border-radius:11px!important;background:#fff!important;color:var(--doc-navy)!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:0 14px!important;font-size:12px!important;font-weight:900!important;box-shadow:0 6px 14px rgba(15,23,42,.035)!important;}
body .gs360-company-shell #documenti .gs360-documents-view-pill{width:36px!important;padding:0!important;}
body .gs360-company-shell #documenti .gs360-documents-export-btn svg,
body .gs360-company-shell #documenti .gs360-documents-view-pill svg{width:16px!important;height:16px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.7!important;}
body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{border:0!important;border-radius:0!important;overflow-x:visible!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup{table-layout:fixed!important;width:100%!important;border-collapse:separate!important;border-spacing:0!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th{background:#fbfdff!important;color:#334155!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.015em!important;border-bottom:1px solid #e6eef7!important;padding:13px 12px!important;white-space:nowrap!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup td{padding:12px!important;border-bottom:1px solid #edf2f7!important;background:#fff!important;color:#10234b!important;vertical-align:middle!important;font-weight:700!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup tr:hover td{background:#fbfdff!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(1),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(1){width:22%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(2),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(2){width:10%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(3),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(3){width:18%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(4),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(4){width:13%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(5),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(5){width:8%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(6),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(6){width:12%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(7),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(7){width:9%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(8),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(8){width:8%!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell strong{display:block!important;color:var(--doc-navy)!important;font-size:12px!important;font-weight:950!important;line-height:1.25!important;max-width:100%!important;overflow-wrap:anywhere!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell small{display:block!important;color:var(--doc-muted)!important;font-size:10px!important;line-height:1.25!important;font-weight:750!important;margin-top:2px!important;overflow-wrap:anywhere!important;}
body .gs360-company-shell #documenti .gs360-document-file-icon{width:30px!important;height:30px!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 30px!important;background:#eff6ff!important;border:1px solid #bfdbfe!important;color:var(--doc-blue)!important;}
body .gs360-company-shell #documenti .gs360-document-file-icon.is-pdf{background:#fff1f2!important;border-color:#fecdd3!important;color:var(--doc-red)!important;}
body .gs360-company-shell #documenti .gs360-document-file-icon.is-doc{background:#eff6ff!important;border-color:#bfdbfe!important;color:var(--doc-blue)!important;}
body .gs360-company-shell #documenti .gs360-document-file-icon.is-xls{background:#ecfdf5!important;border-color:#bbf7d0!important;color:var(--doc-green)!important;}
body .gs360-company-shell #documenti .gs360-document-file-icon svg{width:17px!important;height:17px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a{color:#2563eb!important;text-decoration:none!important;display:grid!important;gap:2px!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a strong{font-size:12px!important;font-weight:950!important;color:#2563eb!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a span{font-size:11px!important;color:#64748b!important;font-weight:750!important;}
body .gs360-company-shell #documenti .gs360-doc-muted{color:#94a3b8!important;font-weight:900!important;}
body .gs360-company-shell #documenti .gs360-documents-action-stack-pro{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:0!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn{width:32px!important;height:32px!important;border-radius:10px!important;background:#fff!important;border:1px solid #d7e6f6!important;color:#061a44!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn svg{width:15px!important;height:15px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.65!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn.is-disabled{opacity:.45!important;pointer-events:none!important;}
body .gs360-company-shell #documenti .gs360-documents-pagination-mockup{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:14px 18px!important;border-top:1px solid #edf2f7!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-documents-per-page,
body .gs360-company-shell #documenti .gs360-documents-pages{display:flex!important;align-items:center!important;gap:10px!important;color:#334155!important;font-weight:800!important;}
body .gs360-company-shell #documenti .gs360-documents-per-page a,
body .gs360-company-shell #documenti .gs360-documents-pages a{min-width:34px;height:32px;border:1px solid #dbe7f3;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#2563eb;background:#fff;font-weight:900;}
body .gs360-company-shell #documenti .gs360-documents-per-page a.is-active,
body .gs360-company-shell #documenti .gs360-documents-pages a.is-active{background:#061a44!important;color:#fff!important;border-color:#061a44!important;}
body .gs360-company-shell #documenti .gs360-document-detail-panel-mockup{border-radius:22px!important;border:1px solid var(--doc-border)!important;background:#fff!important;box-shadow:0 16px 38px rgba(15,23,42,.045)!important;padding:0!important;overflow:hidden!important;margin-top:16px!important;}
body .gs360-company-shell #documenti .gs360-document-detail-head{display:flex!important;align-items:center!important;gap:12px!important;padding:18px 20px!important;border-bottom:1px solid #edf2f7!important;}
body .gs360-company-shell #documenti .gs360-document-detail-head h3{font-size:17px!important;color:var(--doc-navy)!important;margin:0!important;font-weight:950!important;flex:1!important;}
body .gs360-company-shell #documenti .gs360-document-detail-head>a{width:34px!important;height:34px!important;border-radius:10px!important;text-decoration:none!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#061a44!important;font-size:24px!important;line-height:1!important;}
body .gs360-company-shell #documenti .gs360-document-detail-grid{display:grid!important;grid-template-columns:1.25fr 1fr 1fr 1.1fr!important;gap:0!important;}
body .gs360-company-shell #documenti .gs360-document-detail-grid>dl{margin:0!important;padding:20px!important;border-right:1px solid #edf2f7!important;display:grid!important;gap:16px!important;}
body .gs360-company-shell #documenti .gs360-document-detail-grid dt{font-size:11px!important;color:#64748b!important;font-weight:850!important;margin:0 0 4px!important;}
body .gs360-company-shell #documenti .gs360-document-detail-grid dd{margin:0!important;color:#061a44!important;font-weight:850!important;display:grid!important;gap:3px!important;}
body .gs360-company-shell #documenti .gs360-doc-detail-link{color:#2563eb!important;text-decoration:none!important;font-weight:950!important;}
body .gs360-company-shell #documenti .gs360-doc-audit-ok{display:inline-flex!important;align-items:center!important;gap:8px!important;color:#16a34a!important;font-weight:900!important;}
body .gs360-company-shell #documenti .gs360-doc-audit-ok svg{width:16px!important;height:16px!important;}
body .gs360-company-shell #documenti .gs360-document-detail-actions{padding:20px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;align-content:start!important;}
body .gs360-company-shell #documenti .gs360-document-detail-actions>strong{grid-column:1 / -1!important;color:var(--doc-navy)!important;font-size:13px!important;font-weight:950!important;}
body .gs360-company-shell #documenti .gs360-document-detail-actions form{margin:0!important;display:block!important;}
body .gs360-company-shell #documenti .gs360-document-detail-actions .gs360-action-btn{width:100%!important;min-height:40px!important;border-radius:12px!important;justify-content:center!important;font-size:12px!important;font-weight:900!important;}
@media(max-width:1400px){body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{overflow-x:auto!important;}body .gs360-company-shell #documenti .gs360-documents-table-mockup{min-width:1180px!important;}body .gs360-company-shell #documenti .gs360-document-detail-grid{grid-template-columns:1fr 1fr!important;}body .gs360-company-shell #documenti .gs360-document-detail-grid>dl:nth-child(2){border-right:0!important;}body .gs360-company-shell #documenti .gs360-document-detail-actions{border-top:1px solid #edf2f7!important;}}
@media(max-width:1100px){body .gs360-company-shell #documenti .gs360-documents-filters-mockup{grid-template-columns:1fr 1fr!important;}body .gs360-company-shell #documenti .gs360-documents-filter-actions{justify-content:flex-start!important;}body .gs360-company-shell #documenti .gs360-document-detail-grid{grid-template-columns:1fr!important;}body .gs360-company-shell #documenti .gs360-document-detail-grid>dl{border-right:0!important;border-bottom:1px solid #edf2f7!important;}body .gs360-company-shell #documenti .gs360-document-detail-actions{grid-template-columns:1fr!important;}}
/* Fine plugin-block: SCAD360-SNIP-064D3 / Documenti restyling fedele al mockup. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064D4 / CR-0.6.4-alpha / Documenti griglia mockup senza export.
 * Modulo: Dashboard Azienda / Documenti.
 * Scopo: rifinire la pagina Documenti secondo il mockup approvato eliminando il tasto export,
 * riallineando la griglia elenco documenti e normalizzando righe, colonne, icone e paginazione.
 * Relazioni: class-gs360-frontend.php, SCAD360-SNIP-064D3, wpscad360_documenti, wpscad360_scadenze.
 * Database: nessuna modifica. Solo markup/CSS frontend.
 */
body .gs360-company-shell #documenti .gs360-documents-view-tools-only{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:auto!important;}
body .gs360-company-shell #documenti .gs360-documents-export-btn{display:none!important;}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup{padding:18px 20px 12px!important;min-height:58px!important;}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup h3{display:flex!important;align-items:baseline!important;gap:6px!important;}
body .gs360-company-shell #documenti .gs360-documents-view-pill{width:36px!important;height:36px!important;border-radius:12px!important;background:#fff!important;border:1px solid #d7e6f6!important;color:#061a44!important;box-shadow:0 6px 14px rgba(15,23,42,.035)!important;}
body .gs360-company-shell #documenti .gs360-documents-view-pill.is-active{background:#f1f5f9!important;border-color:#cbd5e1!important;color:#061a44!important;}
body .gs360-company-shell #documenti .gs360-documents-view-pill svg{width:16px!important;height:16px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.6!important;}
body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{width:100%!important;overflow-x:visible!important;border-top:0!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup thead tr{height:44px!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup tbody tr{height:auto!important;min-height:58px!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th,
body .gs360-company-shell #documenti .gs360-documents-table-mockup td{height:auto!important;line-height:1.25!important;border-left:0!important;border-right:0!important;vertical-align:middle!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th{padding:13px 14px!important;background:#fbfdff!important;border-top:1px solid #edf2f7!important;border-bottom:1px solid #edf2f7!important;color:#32415c!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.02em!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup td{padding:13px 14px!important;background:#fff!important;border-bottom:1px solid #eef3f8!important;color:#10234b!important;font-size:12px!important;font-weight:750!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(1),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(1){width:23%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(2),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(2){width:10%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(3),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(3){width:17%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(4),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(4){width:13%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(5),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(5){width:8%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(6),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(6){width:11%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(7),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(7){width:9%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(8),body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(8){width:9%!important;text-align:center!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;min-width:0!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell>div{min-width:0!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell strong{font-size:12px!important;line-height:1.22!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;color:#061a44!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell small{font-size:10px!important;line-height:1.25!important;color:#64748b!important;white-space:normal!important;overflow-wrap:anywhere!important;}
body .gs360-company-shell #documenti .gs360-document-file-icon{width:30px!important;height:30px!important;flex:0 0 30px!important;border-radius:10px!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a{display:grid!important;gap:2px!important;line-height:1.2!important;max-width:100%!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a strong{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a span{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .gs360-company-shell #documenti .gs360-documents-action-stack-pro{display:inline-flex!important;justify-content:center!important;gap:7px!important;width:auto!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn{width:32px!important;height:32px!important;border-radius:10px!important;color:#0b2a62!important;background:#fff!important;border:1px solid #d7e6f6!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn svg{width:15px!important;height:15px!important;stroke-width:1.55!important;fill:none!important;stroke:currentColor!important;}
body .gs360-company-shell #documenti .gs360-documents-pagination-mockup{min-height:54px!important;padding:12px 18px!important;background:#fff!important;}
@media(max-width:1400px){body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{overflow-x:auto!important;}body .gs360-company-shell #documenti .gs360-documents-table-mockup{min-width:1120px!important;}}
/* Fine plugin-block: SCAD360-SNIP-064D4 / Documenti griglia mockup senza export. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-064D5 / CR-0.6.4-alpha / Documenti ottimizzazione griglia professionale.
 * Modulo: Dashboard Azienda / Documenti.
 * Scopo: ottimizzare la visualizzazione dell'elenco documenti secondo il mockup approvato,
 * evitando nomi file spezzati verticalmente, bilanciando le colonne e rifinendo KPI, filtri,
 * righe, paginazione e dettaglio documento.
 * Relazioni: SCAD360-SNIP-064D4, class-gs360-frontend.php, wpscad360_documenti, wpscad360_scadenze.
 * Database: nessuna modifica. Solo markup/CSS frontend.
 */
body .gs360-company-shell #documenti .gs360-documents-module-head-pro{
    align-items:center!important;
    gap:28px!important;
    padding:28px 32px!important;
}
body .gs360-company-shell #documenti .gs360-documents-quick-icons{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(210px,1fr))!important;
    gap:16px!important;
    max-width:780px!important;
}
body .gs360-company-shell #documenti .gs360-documents-quick-icon{
    min-height:68px!important;
    padding:15px 18px!important;
    border:1px solid #dbeafe!important;
    background:#fff!important;
    border-radius:18px!important;
    box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:0!important;
    overflow:hidden!important;
    border:1px solid #dbe7f4!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 12px 28px rgba(15,23,42,.045)!important;
}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card{
    min-height:96px!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    padding:18px 20px!important;
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr)!important;
    align-items:center!important;
    gap:14px!important;
    border-right:1px solid #e5edf6!important;
}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card:last-child{border-right:0!important;}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card-icon{
    width:42px!important;
    height:42px!important;
    border-radius:14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card-icon svg{
    width:20px!important;
    height:20px!important;
    stroke:currentColor!important;
    fill:none!important;
    stroke-width:1.55!important;
}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card span{font-size:12px!important;font-weight:850!important;color:#53627a!important;}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card strong{font-size:24px!important;line-height:1!important;color:#061a44!important;margin-top:4px!important;}
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card em{font-size:11px!important;line-height:1.25!important;color:#6b7890!important;font-style:normal!important;font-weight:750!important;margin-top:6px!important;}
body .gs360-company-shell #documenti .gs360-documents-panel-mockup{
    overflow:hidden!important;
    border-radius:20px!important;
    border:1px solid #dbe7f4!important;
    background:#fff!important;
    box-shadow:0 12px 30px rgba(15,23,42,.04)!important;
}
body .gs360-company-shell #documenti .gs360-documents-filters-mockup{
    grid-template-columns:minmax(260px,1.55fr) minmax(160px,.9fr) minmax(160px,.9fr) minmax(130px,.75fr) minmax(130px,.75fr) minmax(160px,.9fr) auto!important;
    gap:14px!important;
    align-items:end!important;
    padding:20px 20px 22px!important;
    border-bottom:1px solid #edf2f7!important;
}
body .gs360-company-shell #documenti .gs360-documents-filters-mockup label span{font-size:10px!important;text-transform:none!important;letter-spacing:0!important;color:#52617a!important;font-weight:900!important;}
body .gs360-company-shell #documenti .gs360-documents-filters-mockup input,
body .gs360-company-shell #documenti .gs360-documents-filters-mockup select{height:42px!important;border-radius:12px!important;font-size:12px!important;background:#fbfdff!important;}
body .gs360-company-shell #documenti .gs360-documents-filter-actions{gap:8px!important;align-items:center!important;}
body .gs360-company-shell #documenti .gs360-documents-filter-actions .gs360-action-btn{height:42px!important;border-radius:999px!important;padding:0 16px!important;font-size:12px!important;}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup{
    padding:18px 20px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
    border-bottom:1px solid #edf2f7!important;
}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup h3{font-size:19px!important;line-height:1.1!important;font-weight:950!important;color:#061a44!important;margin:0!important;}
body .gs360-company-shell #documenti .gs360-documents-list-head-mockup h3 small{font-size:13px!important;color:#6b7890!important;font-weight:850!important;}
body .gs360-company-shell #documenti .gs360-documents-view-tools-only{gap:8px!important;}
body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{
    overflow-x:visible!important;
    border:0!important;
    background:#fff!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-mockup,
body .gs360-company-shell #documenti .gs360-documents-table-064d5{
    table-layout:fixed!important;
    width:100%!important;
    min-width:0!important;
    border-collapse:collapse!important;
    border-spacing:0!important;
}
body .gs360-company-shell #documenti .gs360-doc-col-documento{width:27%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-tipo{width:10%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-scadenza{width:17%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-cantiere{width:12%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-dimensione{width:8%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-caricato{width:11%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-stato{width:8%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-azioni{width:7%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th,
body .gs360-company-shell #documenti .gs360-documents-table-mockup td{
    border-left:0!important;
    border-right:0!important;
    vertical-align:middle!important;
    text-align:left!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th{
    height:42px!important;
    padding:12px 14px!important;
    background:#fbfdff!important;
    border-bottom:1px solid #e8eef6!important;
    color:#33415c!important;
    font-size:10px!important;
    line-height:1.15!important;
    font-weight:950!important;
    text-transform:uppercase!important;
    letter-spacing:.025em!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-mockup td{
    height:64px!important;
    padding:10px 14px!important;
    background:#fff!important;
    border-bottom:1px solid #eef3f8!important;
    color:#10234b!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:750!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-mockup tbody tr:hover td{background:#fbfdff!important;}
body .gs360-company-shell #documenti .gs360-documents-table-mockup th:nth-child(8),
body .gs360-company-shell #documenti .gs360-documents-table-mockup td:nth-child(8){text-align:center!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell{
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
    min-width:0!important;
    max-width:100%!important;
}
body .gs360-company-shell #documenti .gs360-document-file-cell>div{min-width:0!important;max-width:100%!important;display:grid!important;gap:3px!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell strong{
    display:block!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    font-size:12px!important;
    line-height:1.25!important;
    color:#061a44!important;
    font-weight:950!important;
}
body .gs360-company-shell #documenti .gs360-document-file-cell small{
    display:block!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    font-size:10px!important;
    line-height:1.25!important;
    color:#64748b!important;
    font-weight:750!important;
}
body .gs360-company-shell #documenti .gs360-document-file-icon{width:28px!important;height:28px!important;border-radius:9px!important;}
body .gs360-company-shell #documenti .gs360-document-file-icon svg{width:15px!important;height:15px!important;stroke-width:1.55!important;fill:none!important;}
body .gs360-company-shell #documenti .gs360-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:22px!important;border-radius:8px!important;padding:3px 8px!important;font-size:10px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a{display:grid!important;gap:3px!important;text-decoration:none!important;min-width:0!important;max-width:100%!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a strong,
body .gs360-company-shell #documenti .gs360-document-linked-cell a span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a strong{font-size:12px!important;color:#2563eb!important;font-weight:950!important;}
body .gs360-company-shell #documenti .gs360-document-linked-cell a span{font-size:11px!important;color:#41516d!important;font-weight:800!important;}
body .gs360-company-shell #documenti .gs360-documents-actions-cell{padding-left:8px!important;padding-right:8px!important;}
body .gs360-company-shell #documenti .gs360-documents-action-stack-pro{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn{width:30px!important;height:30px!important;border-radius:10px!important;color:#0b2a62!important;background:#fff!important;border:1px solid #d8e6f6!important;box-shadow:0 4px 10px rgba(15,23,42,.025)!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn svg{width:14px!important;height:14px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.5!important;}
body .gs360-company-shell #documenti .gs360-documents-pagination-mockup{padding:13px 18px!important;min-height:52px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;border-top:1px solid #eef3f8!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-documents-per-page,
body .gs360-company-shell #documenti .gs360-documents-pages{display:flex!important;align-items:center!important;gap:8px!important;font-size:12px!important;color:#43516c!important;font-weight:850!important;}
body .gs360-company-shell #documenti .gs360-documents-per-page a,
body .gs360-company-shell #documenti .gs360-documents-pages a{min-width:30px!important;height:30px!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #d8e6f6!important;text-decoration:none!important;background:#fff!important;color:#2563eb!important;font-weight:950!important;}
body .gs360-company-shell #documenti .gs360-documents-per-page a.is-active,
body .gs360-company-shell #documenti .gs360-documents-pages a.is-active{background:#0b1e49!important;color:#fff!important;border-color:#0b1e49!important;}
body .gs360-company-shell #documenti .gs360-document-detail-card{border-radius:20px!important;border:1px solid #dbe7f4!important;box-shadow:0 12px 30px rgba(15,23,42,.04)!important;overflow:hidden!important;background:#fff!important;}
body .gs360-company-shell #documenti .gs360-document-detail-head{min-height:56px!important;padding:16px 20px!important;border-bottom:1px solid #eef3f8!important;}
body .gs360-company-shell #documenti .gs360-document-detail-head h3{font-size:16px!important;font-weight:950!important;color:#061a44!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .gs360-company-shell #documenti .gs360-document-detail-grid{grid-template-columns:1.25fr 1fr 1fr 1.1fr!important;}
@media(max-width:1500px){body .gs360-company-shell #documenti .gs360-documents-kpi-pro{grid-template-columns:repeat(3,1fr)!important;}body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(3n){border-right:0!important;}body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card:nth-child(n+4){border-top:1px solid #e5edf6!important;}}
@media(max-width:1320px){body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{overflow-x:auto!important;}body .gs360-company-shell #documenti .gs360-documents-table-mockup{min-width:1080px!important;}body .gs360-company-shell #documenti .gs360-documents-filters-mockup{grid-template-columns:1fr 1fr 1fr!important;}body .gs360-company-shell #documenti .gs360-documents-filter-actions{justify-content:flex-start!important;}body .gs360-company-shell #documenti .gs360-document-detail-grid{grid-template-columns:1fr 1fr!important;}}
@media(max-width:900px){body .gs360-company-shell #documenti .gs360-documents-quick-icons{grid-template-columns:1fr!important;max-width:none!important;}body .gs360-company-shell #documenti .gs360-documents-kpi-pro{grid-template-columns:1fr!important;}body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card{border-right:0!important;border-top:1px solid #e5edf6!important;}body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card:first-child{border-top:0!important;}body .gs360-company-shell #documenti .gs360-documents-filters-mockup{grid-template-columns:1fr!important;}body .gs360-company-shell #documenti .gs360-document-detail-grid{grid-template-columns:1fr!important;}}
/* Fine plugin-block: SCAD360-SNIP-064D5 / Documenti ottimizzazione griglia professionale. */

/*
 * Inizio plugin-block: SCAD360-SNIP-064D6 / CR-0.6.4-alpha / Documenti nome file completo leggibile.
 * Modulo: Dashboard Azienda / Documenti.
 * Scopo: correggere la colonna Documento dell'elenco documenti, evitando troncamenti e nomi file visualizzati
 * in verticale. La cella mantiene icona file, nome documento leggibile su più righe e metadati sotto al nome.
 * Relazioni: SCAD360-SNIP-064D5, vista #documenti, wpscad360_documenti, wpscad360_scadenze.
 * Database: nessuna modifica strutturale. Solo markup/CSS frontend.
 */
body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{
    overflow-x:visible!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-mockup,
body .gs360-company-shell #documenti .gs360-documents-table-064d5{
    table-layout:fixed!important;
    width:100%!important;
    min-width:0!important;
}
body .gs360-company-shell #documenti .gs360-doc-col-documento{width:34%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-tipo{width:10%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-scadenza{width:18%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-cantiere{width:11%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-dimensione{width:7%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-caricato{width:10%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-stato{width:6%!important;}
body .gs360-company-shell #documenti .gs360-doc-col-azioni{width:4%!important;}
body .gs360-company-shell #documenti .gs360-document-file-cell{
    display:table-cell!important;
    min-width:0!important;
    max-width:none!important;
    vertical-align:middle!important;
    padding-left:18px!important;
    padding-right:18px!important;
}
body .gs360-company-shell #documenti .gs360-document-file-entry{
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}
body .gs360-company-shell #documenti .gs360-document-file-text{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
}
body .gs360-company-shell #documenti .gs360-document-file-cell .gs360-document-file-name,
body .gs360-company-shell #documenti .gs360-document-file-cell strong.gs360-document-file-name{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    hyphens:auto!important;
    font-size:12.5px!important;
    line-height:1.32!important;
    color:#061a44!important;
    font-weight:950!important;
}
body .gs360-company-shell #documenti .gs360-document-file-cell .gs360-document-file-meta,
body .gs360-company-shell #documenti .gs360-document-file-cell small.gs360-document-file-meta{
    display:block!important;
    margin-top:4px!important;
    width:100%!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    font-size:10.5px!important;
    line-height:1.35!important;
    color:#64748b!important;
    font-weight:760!important;
}
body .gs360-company-shell #documenti .gs360-document-file-icon{
    flex:none!important;
    width:28px!important;
    height:28px!important;
    margin-top:1px!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-mockup td{
    height:auto!important;
    min-height:64px!important;
    padding-top:13px!important;
    padding-bottom:13px!important;
}
body .gs360-company-shell #documenti .gs360-document-linked-cell a strong,
body .gs360-company-shell #documenti .gs360-document-linked-cell a span{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
}
@media(max-width:1320px){
    body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{overflow-x:auto!important;}
    body .gs360-company-shell #documenti .gs360-documents-table-mockup,
    body .gs360-company-shell #documenti .gs360-documents-table-064d5{min-width:1180px!important;}
    body .gs360-company-shell #documenti .gs360-doc-col-documento{width:360px!important;}
}
/* Fine plugin-block: SCAD360-SNIP-064D6 / Documenti nome file completo leggibile. */

/*
 * Inizio plugin-block: SCAD360-SNIP-064E / CR-0.6.4-alpha / Responsive globale Scadenze + Documenti.
 * Modulo: Dashboard Azienda / viste #scadenze e #documenti.
 * Scopo: consolidare la resa responsive delle due viste operative già validate, evitando overflow orizzontali
 * non controllati, sovrapposizioni con footer fisso e disallineamenti di KPI, filtri, tabelle e detail card.
 * Contesto: prosecuzione dopo congelamento CR-064D6.
 * Relazioni: SCAD360-SNIP-064C5, SCAD360-SNIP-064D6, footer presenza online, dashboard azienda.
 * Database: nessuna modifica strutturale. Solo CSS frontend e documentazione.
 * Rollback: rimuovere questo plugin-block per tornare al comportamento CR-064D6.
 */
body .gs360-company-shell{
    max-width:100%!important;
    overflow-x:hidden!important;
}
body .gs360-company-shell .gs360-company-main,
body .gs360-company-shell .gs360-company-content{
    min-width:0!important;
    max-width:100%!important;
}
body .gs360-company-shell #scadenze,
body .gs360-company-shell #documenti{
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    padding-bottom:112px!important;
}
body .gs360-company-shell #scadenze .gs360-company-hero,
body .gs360-company-shell #documenti .gs360-company-hero,
body .gs360-company-shell #scadenze .gs360-company-card,
body .gs360-company-shell #documenti .gs360-company-card,
body .gs360-company-shell #scadenze .gs360-company-panel,
body .gs360-company-shell #documenti .gs360-company-panel{
    box-sizing:border-box!important;
    max-width:100%!important;
}
body .gs360-company-shell #scadenze .gs360-company-hero,
body .gs360-company-shell #documenti .gs360-company-hero{
    gap:18px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head,
body .gs360-company-shell #documenti .gs360-documents-quick-icons{
    max-width:min(760px,100%)!important;
    min-width:0!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup,
body .gs360-company-shell #documenti .gs360-documents-kpi-pro{
    width:100%!important;
    min-width:0!important;
}
body .gs360-company-shell #scadenze .gs360-company-kpi,
body .gs360-company-shell #documenti .gs360-documents-kpi-pro .gs360-company-card{
    min-width:0!important;
    overflow:hidden!important;
}
body .gs360-company-shell #scadenze .gs360-company-kpi strong,
body .gs360-company-shell #documenti .gs360-documents-kpi-pro strong,
body .gs360-company-shell #scadenze .gs360-company-kpi span,
body .gs360-company-shell #documenti .gs360-documents-kpi-pro span{
    overflow-wrap:anywhere!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap,
body .gs360-company-shell #scadenze .gs360-table-wrap,
body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup{
    max-width:100%!important;
    box-sizing:border-box!important;
    -webkit-overflow-scrolling:touch!important;
}
body .gs360-company-shell #scadenze table.gs360-table,
body .gs360-company-shell #documenti table.gs360-documents-table-mockup{
    box-sizing:border-box!important;
}
body .gs360-company-shell #documenti .gs360-document-detail-card,
body .gs360-company-shell #scadenze .gs360-company-panel{
    margin-bottom:18px!important;
}
body .gs360-company-shell #documenti .gs360-document-detail-grid,
body .gs360-company-shell #documenti .gs360-document-detail-head{
    min-width:0!important;
}
body .gs360-company-shell #documenti .gs360-document-detail-head h3{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.35!important;
}
body .gs360-company-shell #documenti .gs360-document-detail-actions,
body .gs360-company-shell #documenti .gs360-document-detail-actions .gs360-action-btn{
    min-width:0!important;
}
body .gs360-company-shell .gs360-company-footer,
body .gs360-company-shell .gs360-company-sticky-footer{
    max-width:calc(100vw - 24px)!important;
    box-sizing:border-box!important;
}
@media(max-width:1500px){
    body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head,
    body .gs360-company-shell #documenti .gs360-documents-quick-icons{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        width:100%!important;
    }
    body .gs360-company-shell #documenti .gs360-documents-kpi-pro,
    body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}
@media(max-width:1280px){
    body .gs360-company-shell #scadenze .gs360-company-hero,
    body .gs360-company-shell #documenti .gs360-company-hero{
        align-items:stretch!important;
    }
    body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head,
    body .gs360-company-shell #documenti .gs360-documents-quick-icons{
        max-width:none!important;
    }
    body .gs360-company-shell #documenti .gs360-documents-table-wrap-mockup,
    body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap,
    body .gs360-company-shell #scadenze .gs360-table-wrap{
        overflow-x:auto!important;
    }
    body .gs360-company-shell #documenti table.gs360-documents-table-mockup{
        min-width:1120px!important;
    }
    body .gs360-company-shell #scadenze table.gs360-table{
        min-width:1180px!important;
    }
}
@media(max-width:980px){
    body .gs360-company-shell #scadenze,
    body .gs360-company-shell #documenti{
        padding-bottom:150px!important;
    }
    body .gs360-company-shell #documenti .gs360-documents-filters-mockup,
    body .gs360-company-shell #scadenze .gs360-company-filter-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    body .gs360-company-shell #documenti .gs360-documents-filter-actions,
    body .gs360-company-shell #scadenze .gs360-company-filter-actions{
        grid-column:1/-1!important;
        justify-content:flex-start!important;
        flex-wrap:wrap!important;
    }
    body .gs360-company-shell #documenti .gs360-document-detail-grid{
        grid-template-columns:1fr 1fr!important;
    }
}
@media(max-width:760px){
    body .gs360-company-shell #scadenze,
    body .gs360-company-shell #documenti{
        padding-bottom:190px!important;
    }
    body .gs360-company-shell #scadenze .gs360-company-hero,
    body .gs360-company-shell #documenti .gs360-company-hero,
    body .gs360-company-shell #scadenze .gs360-documents-list-head-mockup,
    body .gs360-company-shell #documenti .gs360-documents-list-head-mockup{
        flex-direction:column!important;
        align-items:flex-start!important;
    }
    body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-head,
    body .gs360-company-shell #documenti .gs360-documents-quick-icons,
    body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup,
    body .gs360-company-shell #documenti .gs360-documents-kpi-pro,
    body .gs360-company-shell #documenti .gs360-documents-filters-mockup,
    body .gs360-company-shell #scadenze .gs360-company-filter-grid,
    body .gs360-company-shell #documenti .gs360-document-detail-grid{
        grid-template-columns:1fr!important;
    }
    body .gs360-company-shell #documenti .gs360-documents-pagination-mockup,
    body .gs360-company-shell #scadenze .gs360-company-pagination,
    body .gs360-company-shell #scadenze .gs360-deadlines-pagination{
        flex-direction:column!important;
        align-items:flex-start!important;
    }
    body .gs360-company-shell #documenti table.gs360-documents-table-mockup{
        min-width:980px!important;
    }
    body .gs360-company-shell #scadenze table.gs360-table{
        min-width:1080px!important;
    }
}
/* Fine plugin-block: SCAD360-SNIP-064E / Responsive globale Scadenze + Documenti. */

/*
 * Inizio plugin-block: SCAD360-SNIP-064E2 / CR-0.6.4-alpha / Responsive mobile Elenco Scadenze.
 * Modulo: Dashboard Azienda / Vista #scadenze / Elenco scadenze smartphone.
 * Scopo: convertire la tabella Scadenze in card verticali su smartphone, evitando compressioni,
 * testi spezzati lettera per lettera e overflow laterali. Desktop e tablet larghi mantengono
 * la griglia tabellare già validata.
 * Contesto: fix successivo a CR-064E1 dopo verifica reale su smartphone.
 * Relazioni: SCAD360-SNIP-031A, SCAD360-SNIP-031B1, SCAD360-SNIP-064C5, SCAD360-SNIP-064E.
 * Tabelle coinvolte: nessuna modifica database. Solo CSS frontend.
 * Rollback: rimuovere questo plugin-block per ripristinare il comportamento responsive precedente.
 */
@media(max-width:760px){
    body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended,
    body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap,
    body .gs360-company-shell #scadenze .gs360-table-wrap{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        overflow:visible!important;
        border:0!important;
        background:transparent!important;
        box-shadow:none!important;
    }

    body .gs360-company-shell #scadenze table.gs360-table,
    body .gs360-company-shell #scadenze table.gs360-table.gs360-deadlines-table-extended,
    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended{
        display:block!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        table-layout:auto!important;
        border:0!important;
        background:transparent!important;
        border-spacing:0!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended thead{
        display:none!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended tbody{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended tr{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        margin:0 0 14px!important;
        border:1px solid #dbe7f3!important;
        border-radius:18px!important;
        background:#ffffff!important;
        overflow:hidden!important;
        box-shadow:0 10px 26px rgba(15,23,42,.05)!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td{
        display:grid!important;
        grid-template-columns:minmax(94px,34%) minmax(0,1fr)!important;
        align-items:start!important;
        gap:8px 12px!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        padding:11px 13px!important;
        border:0!important;
        border-bottom:1px solid #edf3f8!important;
        background:#fff!important;
        color:#071b4d!important;
        font-size:13px!important;
        line-height:1.35!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:anywhere!important;
        box-sizing:border-box!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:last-child{
        border-bottom:0!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td::before{
        content:attr(data-label)!important;
        display:block!important;
        min-width:0!important;
        max-width:100%!important;
        color:#64748b!important;
        font-size:10.5px!important;
        line-height:1.2!important;
        font-weight:950!important;
        text-transform:uppercase!important;
        letter-spacing:.035em!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:normal!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td > *,
    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td strong,
    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td span,
    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td small{
        min-width:0!important;
        max-width:100%!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:anywhere!important;
        text-overflow:clip!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td[data-label="Codice"]{
        grid-template-columns:1fr!important;
        background:linear-gradient(135deg,#f8fbff 0%,#ffffff 100%)!important;
        padding:14px 15px!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td[data-label="Codice"]::before{
        margin-bottom:3px!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td[data-label="Codice"] strong{
        font-size:16px!important;
        letter-spacing:.01em!important;
        color:#061a44!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadline-date-chip,
    body .gs360-company-shell #scadenze .gs360-priority-badge,
    body .gs360-company-shell #scadenze .gs360-badge,
    body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip{
        display:inline-flex!important;
        width:auto!important;
        max-width:100%!important;
        align-items:center!important;
        justify-content:flex-start!important;
        gap:6px!important;
        white-space:normal!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadline-sharing-chip{
        flex-wrap:wrap!important;
    }
    body .gs360-company-shell #scadenze .gs360-sharing-icons{
        display:inline-flex!important;
        gap:4px!important;
        flex:0 0 auto!important;
    }
    body .gs360-company-shell #scadenze .gs360-sharing-text{
        display:block!important;
        font-weight:900!important;
        line-height:1.2!important;
    }

    body .gs360-company-shell #scadenze td.gs360-deadlines-notification-status{
        display:grid!important;
        grid-template-columns:minmax(94px,34%) minmax(0,1fr)!important;
    }
    body .gs360-company-shell #scadenze td.gs360-deadlines-notification-status .gs360-badge{
        justify-self:start!important;
    }
    body .gs360-company-shell #scadenze td.gs360-deadlines-notification-status small{
        grid-column:2!important;
        margin-top:3px!important;
        font-size:11.5px!important;
    }

    body .gs360-company-shell #scadenze td.gs360-deadlines-actions-cell{
        display:block!important;
        padding:13px!important;
        background:#f8fbff!important;
    }
    body .gs360-company-shell #scadenze td.gs360-deadlines-actions-cell::before{
        display:block!important;
        margin-bottom:10px!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadline-row-actions{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:9px!important;
        width:100%!important;
        max-width:100%!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn{
        min-height:42px!important;
        border-radius:14px!important;
        padding:9px 10px!important;
        font-size:12px!important;
        line-height:1.1!important;
        justify-content:center!important;
        width:100%!important;
        white-space:normal!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn svg,
    body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn .gs360-icon{
        width:15px!important;
        height:15px!important;
        min-width:15px!important;
        stroke-width:1.65!important;
    }

    body .gs360-company-shell #scadenze .gs360-company-filter-grid{
        grid-template-columns:1fr!important;
        gap:10px!important;
    }
    body .gs360-company-shell #scadenze .gs360-company-filter-grid input,
    body .gs360-company-shell #scadenze .gs360-company-filter-grid select,
    body .gs360-company-shell #scadenze .gs360-company-filter-grid .gs360-action-btn{
        width:100%!important;
        min-height:44px!important;
    }

    body .gs360-company-shell #scadenze .gs360-deadlines-pagination{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:10px!important;
        align-items:stretch!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-pagination-controls{
        display:grid!important;
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        width:100%!important;
        gap:8px!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-per-page-label{
        grid-column:1/-1!important;
    }
}
/* Fine plugin-block: SCAD360-SNIP-064E2 / Responsive mobile Elenco Scadenze. */

/*
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-065C / CR-065C / Fix pannelli Documenti operativi.
 * Scopo: rendere visibili i pannelli <details> di upload e tipologie quando aperti
 * da logica server-side gs360_doc_panel, superando le vecchie regole :target/mockup.
 * Relazioni: class-gs360-frontend.php, sezione #documenti, archivio documentale multi-azienda.
 */
body .gs360-company-shell #documenti .gs360-documents-upload-details[open],
body .gs360-company-shell #documenti #gs360-document-upload-panel[open],
body .gs360-company-shell #documenti #gs360-document-types-panel[open]{
    display:block!important;
    margin:0 0 18px!important;
    border-radius:20px!important;
    border:1px solid #bfd7f1!important;
    background:#fff!important;
    box-shadow:0 16px 34px rgba(15,23,42,.055)!important;
}
body .gs360-company-shell #documenti .gs360-documents-upload-details[open] .gs360-documents-upload-body{display:block!important;}
body .gs360-company-shell #documenti .gs360-upload-field-065c{display:flex!important;flex-direction:column!important;gap:8px!important;align-items:stretch!important;justify-content:center!important;min-height:92px!important;padding:18px!important;border:1px dashed #bfd7f1!important;border-radius:16px!important;background:#f8fbff!important;}
body .gs360-company-shell #documenti .gs360-upload-field-065c input[type=file]{height:auto!important;padding:10px!important;background:#fff!important;border:1px solid #dbe7f3!important;border-radius:12px!important;}
/* Fine plugin-block: SCAD360-SNIP-065C */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-031K / CR-065D / 0.6.8-alpha
 * Modulo: Report evoluti / Tab Scadenze e Documenti-Notifiche.
 * Scopo: allineare le sezioni analitiche al mockup approvato, evitando testi tagliati,
 * card disomogenee e grafici non leggibili su desktop/tablet/mobile.
 * Relazioni: vista #report, tab report-scadenze, tab report-operativo.
 * ===================================================== */
body .gs360-company-shell #report .gs360-report-section-mockup{
  min-width:0!important;
}
body .gs360-company-shell #report .gs360-report-section-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0 0 14px!important;
  padding:14px 18px!important;
  border:1px solid #dfe9f7!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 12px 26px rgba(7,27,77,.05)!important;
}
body .gs360-company-shell #report .gs360-report-section-head span{
  display:block!important;
  margin:0 0 3px!important;
  color:#19a84c!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1.1!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
body .gs360-company-shell #report .gs360-report-section-head h3{
  margin:0!important;
  color:#06163d!important;
  font-size:22px!important;
  line-height:1.08!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}
body .gs360-company-shell #report .gs360-report-section-head p{
  margin:0!important;
  max-width:520px!important;
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.4!important;
  font-weight:650!important;
  text-align:right!important;
}
body .gs360-company-shell #report .gs360-report-layout-evolved{
  gap:16px!important;
  align-items:stretch!important;
}
body .gs360-company-shell #report .gs360-report-panel{
  min-height:220px!important;
  padding:18px!important;
  border:1px solid #dfe9f7!important;
  border-radius:22px!important;
  background:#ffffff!important;
  box-shadow:0 14px 32px rgba(7,27,77,.055)!important;
  overflow:hidden!important;
}
body .gs360-company-shell #report .gs360-report-panel .gs360-company-panel-head{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:4px!important;
  margin:0 0 16px!important;
  min-width:0!important;
}
body .gs360-company-shell #report .gs360-report-panel .gs360-company-panel-head h3{
  margin:0!important;
  color:#06163d!important;
  font-size:20px!important;
  line-height:1.08!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body .gs360-company-shell #report .gs360-report-panel .gs360-company-panel-head p{
  margin:0!important;
  max-width:none!important;
  color:#728199!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:650!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
}
body .gs360-company-shell #report .gs360-report-bars{
  gap:14px!important;
  margin-top:8px!important;
}
body .gs360-company-shell #report .gs360-report-bar-row{
  grid-template-columns:minmax(120px,185px) minmax(0,1fr) 42px!important;
  gap:12px!important;
  min-width:0!important;
}
body .gs360-company-shell #report .gs360-report-bar-row > span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body .gs360-company-shell #report .gs360-report-bar-row > div{
  height:11px!important;
}
body .gs360-company-shell #report .gs360-report-accordion.is-wide{
  border:1px solid #dfe9f7!important;
  border-radius:22px!important;
  box-shadow:0 14px 32px rgba(7,27,77,.055)!important;
  overflow:hidden!important;
}
body .gs360-company-shell #report .gs360-report-accordion.is-wide summary{
  padding:18px!important;
  border-bottom:1px solid #edf3fb!important;
  background:#ffffff!important;
}
body .gs360-company-shell #report .gs360-report-category-list{
  padding:14px!important;
  gap:12px!important;
}
body .gs360-company-shell #report .gs360-report-category-item{
  border-radius:16px!important;
  background:#f8fbff!important;
}
@media (max-width:1100px){
  body .gs360-company-shell #report .gs360-report-layout-evolved,
  body .gs360-company-shell #report .gs360-report-category-list{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell #report .gs360-report-panel.is-wide,
  body .gs360-company-shell #report .gs360-report-accordion.is-wide{
    grid-column:auto!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell #report .gs360-report-section-head{
    display:block!important;
    padding:14px!important;
  }
  body .gs360-company-shell #report .gs360-report-section-head p{
    margin-top:6px!important;
    max-width:none!important;
    text-align:left!important;
  }
  body .gs360-company-shell #report .gs360-report-bar-row{
    grid-template-columns:1fr 40px!important;
    gap:8px!important;
  }
  body .gs360-company-shell #report .gs360-report-bar-row > span{
    grid-column:1 / -1!important;
    white-space:normal!important;
  }
}
/* Fine plugin-block: SCAD360-SNIP-031K / Report evoluti tab mockup. */

/* =====================================================
 * GESTIONE SCADENZE360
 * CR-066 / 0.6.9-alpha - UX Scadenze e Dashboard compatta
 * Scopo: rendere la pagina Scadenze consultabile senza scroll iniziale,
 * introdurre pannello azioni operativo, accordion elenco chiuso e dashboard più compatta.
 * Relazioni: includes/class-gs360-frontend.php, vista #scadenze e #dashboard.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-company-hero-brand{
  min-height:180px!important;
  padding:24px 22px!important;
  margin-bottom:14px!important;
}
body .gs360-company-shell #dashboard .gs360-company-hero-logo{
  max-height:96px!important;
  width:min(430px,58vw)!important;
  margin-bottom:8px!important;
}
body .gs360-company-shell #dashboard .gs360-company-hero-copy h2{font-size:32px!important;margin:0 0 6px!important;}
body .gs360-company-shell #dashboard .gs360-company-hero-copy p{font-size:14px!important;margin:0!important;}
body .gs360-company-shell #dashboard .gs360-company-info-grid{gap:12px!important;margin-bottom:14px!important;}
body .gs360-company-shell #dashboard .gs360-company-info-grid .gs360-company-card{min-height:72px!important;padding:14px 18px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-card{
  grid-template-columns:minmax(280px,1.25fr) minmax(260px,.9fr) minmax(320px,1fr)!important;
  gap:12px!important;
  padding:18px!important;
  margin-bottom:12px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-copy h3{font-size:24px!important;margin:0 0 6px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-copy p{font-size:13px!important;margin:0 0 8px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-actions{margin-top:8px!important;gap:7px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-actions a.is-primary{
  background:#e9fbef!important;
  border-color:#b9efc9!important;
  color:#087a35!important;
  box-shadow:0 8px 16px rgba(34,197,94,.12)!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-metrics{gap:8px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-metrics div{padding:12px!important;min-height:64px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-metrics strong{font-size:22px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart{min-height:128px!important;padding:10px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart span{height:104px!important;}

body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{
  display:block!important;
  padding:28px 32px!important;
  margin-bottom:12px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-module-title h2{font-size:34px!important;margin-bottom:6px!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-module-title p{font-size:15px!important;margin:0!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-operational-panel{
  border-radius:22px!important;
  padding:14px!important;
  margin-bottom:12px!important;
  background:#fff!important;
  border:1px solid var(--mock-border)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.045)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon{
  background:#fff!important;
  border:1px solid #dce8f5!important;
  border-radius:18px!important;
  min-height:76px!important;
  padding:14px 16px!important;
  display:grid!important;
  grid-template-columns:50px 1fr!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:13px!important;
  text-align:left!important;
  color:var(--mock-navy)!important;
  text-decoration:none!important;
  box-shadow:0 10px 22px rgba(15,23,42,.04)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon>span{
  grid-row:1 / span 2!important;
  width:44px!important;
  height:44px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#eafaf0!important;
  color:var(--mock-green)!important;
  box-shadow:inset 0 0 0 1px #c8f1d5!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .is-list>span{background:#eef7ff!important;color:#1d70d6!important;box-shadow:inset 0 0 0 1px #cbe2ff!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .is-calendar>span{background:#eff6ff!important;color:var(--mock-blue)!important;box-shadow:inset 0 0 0 1px #cfe0ff!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .is-categories>span{background:#f5f3ff!important;color:var(--mock-purple)!important;box-shadow:inset 0 0 0 1px #ddd6fe!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational strong{font-size:14px!important;font-weight:950!important;line-height:1.15!important;color:var(--mock-navy)!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational em{font-size:11px!important;font-weight:750!important;line-height:1.2!important;color:var(--mock-muted)!important;font-style:normal!important;margin-top:3px!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{margin-bottom:12px!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-accordion{margin-top:0!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-accordion>summary{cursor:pointer!important;list-style:none!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-accordion>summary::-webkit-details-marker{display:none!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-accordion>summary:after{
  content:'Apri elenco';
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  border:1px solid #cfe0ff!important;
  background:#f7fbff!important;
  color:#0759be!important;
  font-size:12px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-accordion[open]>summary:after{content:'Chiudi elenco';}
body .gs360-company-shell #scadenze .gs360-deadlines-accordion-body{border-top:1px solid #edf2f7!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th:first-child,
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:first-child{min-width:138px!important;}
@media(max-width:1280px){
  body .gs360-company-shell #dashboard .gs360-dashboard-impact-card{grid-template-columns:1fr!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-company-hero-brand{min-height:auto!important;padding:18px!important;}
  body .gs360-company-shell #dashboard .gs360-company-hero-logo{width:90%!important;max-height:78px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{grid-template-columns:1fr!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-accordion>summary:after{width:100%!important;margin-top:10px!important;}
}
/* Fine CR-066 / 0.6.9-alpha */


/* =====================================================
 * GESTIONE SCADENZE360
 * CR-066B / 0.6.10-alpha - Card operative Scadenze stile dashboard
 * Scopo: giustificare le 4 card operative Scadenze sull'intera larghezza
 * e rendere icone/layout coerenti con le card principali della dashboard.
 * Relazioni: CR-066, vista #scadenze, pannello Nuova Scadenza / Elenco / Calendario / Categorie.
 * Database: nessuna modifica, solo CSS/UX frontend.
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-scadenze-operational-panel{
  padding:18px!important;
  border-radius:24px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;
  max-width:none!important;
  align-items:stretch!important;
  justify-content:stretch!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon{
  min-height:150px!important;
  padding:22px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  text-align:center!important;
  border-radius:22px!important;
  border:1px solid #dbe7f4!important;
  box-shadow:0 14px 30px rgba(15,23,42,.055)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon:hover{
  transform:translateY(-3px)!important;
  border-color:#b9d7f6!important;
  box-shadow:0 22px 42px rgba(15,23,42,.09)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon>span{
  grid-row:auto!important;
  width:78px!important;
  height:78px!important;
  min-width:78px!important;
  border-radius:24px!important;
  margin:0 0 4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:inset 0 0 0 2px #c8f1d5, 0 12px 28px rgba(22,163,74,.10)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .is-list>span{
  box-shadow:inset 0 0 0 2px #cbe2ff, 0 12px 28px rgba(37,99,235,.10)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .is-calendar>span{
  box-shadow:inset 0 0 0 2px #cfe0ff, 0 12px 28px rgba(37,99,235,.10)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .is-categories>span{
  box-shadow:inset 0 0 0 2px #ddd6fe, 0 12px 28px rgba(109,93,252,.10)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon svg,
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon .gs360-icon{
  width:40px!important;
  height:40px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational strong{
  display:block!important;
  font-size:17px!important;
  line-height:1.12!important;
  font-weight:950!important;
  letter-spacing:-.01em!important;
  margin:0!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational em{
  display:block!important;
  max-width:190px!important;
  margin:0 auto!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:750!important;
}
@media(max-width:1280px){
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  body .gs360-company-shell #scadenze .gs360-scadenze-operational-panel{padding:12px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{grid-template-columns:1fr!important;gap:12px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon{min-height:126px!important;padding:18px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon>span{width:64px!important;height:64px!important;min-width:64px!important;border-radius:20px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon svg,
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon .gs360-icon{width:32px!important;height:32px!important;}
}
/* Fine CR-066B / 0.6.10-alpha */


/* =====================================================
 * GESTIONE SCADENZE360
 * SCAD360-SNIP-022A.4 / CR-071
 * Modulo: Dashboard amministrativa centrale read-only
 * Versione: 0.6.16-alpha
 * Scopo: dashboard professionale per aziende, servizio, utenti, risorse,
 * scadenze, canali e audit, senza azioni di scrittura.
 * ===================================================== */
.gs360-admin-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#ffffff 0%,#f5f9ff 100%);border-color:#d8e4f3;}
.gs360-admin-dashboard-hero h2{font-size:27px;margin:4px 0 8px;}
.gs360-admin-dashboard-hero p{margin:0;color:var(--gs360-muted);max-width:780px;line-height:1.55;}
.gs360-admin-dashboard-eyebrow{font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--gs360-success);}
.gs360-admin-dashboard-build{min-width:190px;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px;}
.gs360-admin-dashboard-build strong{font-size:20px;color:var(--gs360-primary);}
.gs360-admin-dashboard-build small{color:var(--gs360-muted);font-weight:700;}
.gs360-readonly-badge{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;background:#eef5ff;color:#285b94;border:1px solid #cfe0f3;font-size:11px;font-weight:900;white-space:nowrap;}
.gs360-admin-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:14px;margin:0 0 18px;}
.gs360-admin-kpi{position:relative;overflow:hidden;background:#fff;border:1px solid var(--gs360-border);border-radius:18px;padding:18px;box-shadow:var(--gs360-shadow);min-height:132px;display:flex;flex-direction:column;}
.gs360-admin-kpi::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:#9aabc1;}
.gs360-admin-kpi-success::before{background:#28a745}.gs360-admin-kpi-info::before{background:#2f80ed}.gs360-admin-kpi-warning::before{background:#f2a900}.gs360-admin-kpi-danger::before{background:#d9485f}.gs360-admin-kpi-neutral::before{background:#70839d}
.gs360-admin-kpi-head{display:flex;align-items:center;gap:8px;color:#61708a;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.025em;}
.gs360-admin-kpi-head .gs360-icon{width:19px;height:19px;color:var(--gs360-primary);}
.gs360-admin-kpi strong{display:block;margin:13px 0 8px;color:var(--gs360-primary);font-size:34px;line-height:1;font-weight:950;}
.gs360-admin-kpi strong.is-compact{font-size:23px;line-height:1.15;}
.gs360-admin-kpi small{margin-top:auto;color:#7b879a;font-size:11px;line-height:1.35;font-weight:650;}
.gs360-admin-dashboard-tabs-card{padding-top:18px;}
.gs360-admin-health{display:inline-flex;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;white-space:nowrap;}
.gs360-admin-health.is-ok{background:#ecfbf1;color:#16713c;border:1px solid #bfe8ce;}.gs360-admin-health.has-warning{background:#fff7e8;color:#9a5b00;border:1px solid #f1d197;}
.gs360-admin-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.gs360-admin-overview-card{display:flex;flex-direction:column;min-height:285px;}
.gs360-admin-overview-card h3{margin:0 0 15px;color:var(--gs360-primary);font-size:18px;}
.gs360-admin-overview-list{display:grid;gap:8px;margin-bottom:14px;}
.gs360-admin-overview-list div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f8fafc;border:1px solid #e4eaf2;border-radius:11px;}
.gs360-admin-overview-list span{color:#66758c;font-size:12px;font-weight:750;}.gs360-admin-overview-list strong{color:var(--gs360-primary);font-size:17px;}
.gs360-admin-read-link{display:inline-flex;align-items:center;gap:6px;color:#1c6b58!important;font-weight:900;text-decoration:none;margin-top:auto;}.gs360-admin-read-link:hover{text-decoration:underline;}
.gs360-admin-channel-list{display:grid;gap:10px;margin-bottom:12px;}
.gs360-admin-channel-list div{display:grid;grid-template-columns:12px 1fr auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f5;}
.gs360-admin-channel-list span:nth-child(2){font-weight:800;color:#35445c;}.gs360-admin-channel-list strong{font-size:11px;color:#65758b;}
.gs360-channel-dot{width:9px;height:9px;border-radius:50%;background:#8a98aa;}.gs360-channel-dot.is-active{background:#28a745}.gs360-channel-dot.is-pending{background:#f2a900}.gs360-channel-dot.is-off{background:#b5beca}
.gs360-admin-note{font-size:11px;color:#77859a;line-height:1.45;margin:auto 0 0;}
.gs360-admin-summary-table td:first-child small,.gs360-table td strong+small{display:block;margin-top:4px;color:#8590a1;font-size:10px;font-weight:700;}
.gs360-severity{display:inline-flex;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.03em;}
.gs360-severity-informativa{background:#eef5ff;color:#285b94}.gs360-severity-attenzione{background:#fff5dd;color:#9b5f00}.gs360-severity-critica{background:#fff0f2;color:#a6273d}.gs360-severity-ok{background:#ecfbf1;color:#16713c}
.gs360-admin-channel-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f8fbff;}
.gs360-admin-channel-banner>div:first-child{display:flex;flex-direction:column;gap:4px;}.gs360-admin-channel-banner strong{color:var(--gs360-primary);}.gs360-admin-channel-banner span{color:#718099;font-size:12px;}
.gs360-admin-channel-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}.gs360-admin-channel-badges span,.gs360-module-state{display:inline-flex;border-radius:999px;padding:6px 9px;background:#ecfbf1;color:#16713c;border:1px solid #c6ebd2;font-size:10px;font-weight:900;white-space:nowrap;}.gs360-admin-channel-badges span.is-off,.gs360-module-state.is-off{background:#f2f4f7;color:#68758a;border-color:#dce2ea}.gs360-module-state.is-pending{background:#fff5dd;color:#9b5f00;border-color:#f1d39a}
.gs360-audit-code{display:block;margin-top:4px;color:#8b96a6;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;}
.gs360-audit-readable-table td:nth-child(3){min-width:320px;}
@media(max-width:1100px){.gs360-admin-overview-grid{grid-template-columns:1fr 1fr}.gs360-admin-overview-grid>.gs360-admin-overview-card:last-child{grid-column:1/-1}}
@media(max-width:760px){.gs360-admin-dashboard-hero{align-items:flex-start;flex-direction:column}.gs360-admin-dashboard-build{align-items:flex-start;text-align:left;min-width:0}.gs360-admin-kpi-grid{grid-template-columns:1fr 1fr}.gs360-admin-overview-grid{grid-template-columns:1fr}.gs360-admin-overview-grid>.gs360-admin-overview-card:last-child{grid-column:auto}.gs360-admin-channel-banner{align-items:flex-start;flex-direction:column}.gs360-admin-channel-badges{justify-content:flex-start}.gs360-admin-health{white-space:normal}}
@media(max-width:480px){.gs360-admin-kpi-grid{grid-template-columns:1fr}.gs360-admin-kpi{min-height:115px}}
/* Fine plugin-block: SCAD360-SNIP-022A.4 / CR-071. */


/* =====================================================
 * SCAD360-SNIP-024.5 / CR-072 — Dossier Azienda 360
 * Ambiente: staging. Configurazione amministrativa piani/moduli.
 * Non applica restrizioni all'Area Azienda Cliente.
 * ===================================================== */
.gs360-dossier-eyebrow{display:block;color:var(--gs360-success);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.gs360-note-box{margin-top:18px;padding:15px 17px;border-radius:14px;border-left:4px solid #2563eb;background:#eff6ff;color:#1e3a5f;line-height:1.55}
.gs360-notice.success{margin:14px 0;padding:12px 15px;border-radius:12px;background:#ecfdf3;border:1px solid #b7ebc8;color:#126532;font-weight:700}
.gs360-checkbox-row{display:flex;gap:22px;flex-wrap:wrap;margin:18px 0}.gs360-checkbox-row label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.gs360-checkbox-row input{width:auto!important}
.gs360-module-admin-list{display:grid;gap:12px}.gs360-module-admin-row summary{display:flex;align-items:center;justify-content:space-between;gap:16px}.gs360-module-summary-meta{font-size:12px;color:var(--gs360-muted);font-weight:700}
.gs360-resource-progress{height:14px;background:#eef2f7;border:1px solid var(--gs360-border);border-radius:999px;overflow:hidden;margin-top:18px}.gs360-resource-progress span{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#16a34a);border-radius:inherit}
.gs360-dossier-072-head .gs360-detail-grid{margin-bottom:8px}
@media(max-width:760px){.gs360-module-admin-row summary{align-items:flex-start;flex-direction:column}.gs360-checkbox-row{flex-direction:column;gap:10px}}


/* =====================================================
 * SCAD360-SNIP-027.2 / CR-074B — Rubrica Contatti aziendale
 * Ambiente iniziale: STAGING2. Elenco, filtri, form, ruoli e soft delete.
 * ===================================================== */
.gs360-contacts-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.gs360-contacts-head h2{margin:2px 0 7px;font-size:30px}.gs360-contacts-head p{margin:0;color:#6b7890}.gs360-contacts-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:16px 0}.gs360-contacts-kpis>div{background:#fff;border:1px solid var(--gs360-border);border-radius:16px;padding:15px;box-shadow:var(--gs360-shadow)}.gs360-contacts-kpis span{display:block;color:#75839a;font-size:11px;font-weight:800}.gs360-contacts-kpis strong{display:block;margin-top:7px;color:var(--gs360-primary);font-size:27px}.gs360-contacts-filters{display:grid;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(160px,1fr)) auto auto;gap:10px;align-items:center;margin-bottom:16px}.gs360-contacts-filters input,.gs360-contacts-filters select,.gs360-contact-form input,.gs360-contact-form select,.gs360-contact-form textarea{width:100%;border:1px solid #cfd9e8;border-radius:11px;padding:11px 12px;background:#fff;color:#10244b}.gs360-contacts-table small{display:block;margin-top:4px;color:#7b8798}.gs360-contact-role-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.gs360-contact-role-badges em{font-style:normal;font-size:9px;font-weight:850;background:#eef5ff;color:#245b98;border:1px solid #d3e2f4;border-radius:999px;padding:4px 7px}.gs360-contact-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.gs360-contact-actions form{margin:0}.gs360-contact-form-card{margin-top:16px}.gs360-contact-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gs360-contact-form label{display:flex;flex-direction:column;gap:6px;color:#223657;font-size:12px;font-weight:800}.gs360-contact-form fieldset{margin:18px 0;border:1px solid #dbe3ef;border-radius:14px;padding:15px}.gs360-contact-form legend{padding:0 8px;font-weight:900;color:var(--gs360-primary)}.gs360-contact-role-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gs360-contact-role-options label,.gs360-contact-options label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.gs360-contact-role-options input,.gs360-contact-options input{width:auto}.gs360-contact-options{display:flex;gap:22px;flex-wrap:wrap;margin:14px 0}.gs360-form-actions{display:flex;gap:10px;align-items:center;margin-top:16px}.gs360-module-card-icon.is-contacts{background:#ecfeff;color:#0891b2;border-color:#bae6fd}
@media(max-width:1250px){.gs360-contacts-kpis{grid-template-columns:repeat(3,1fr)}.gs360-contacts-filters{grid-template-columns:1fr 1fr 1fr}.gs360-contact-form-grid,.gs360-contact-role-options{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.gs360-contacts-head{flex-direction:column}.gs360-contacts-kpis{grid-template-columns:repeat(2,1fr)}.gs360-contacts-filters,.gs360-contact-form-grid,.gs360-contact-role-options{grid-template-columns:1fr}.gs360-contact-options,.gs360-form-actions{align-items:stretch;flex-direction:column}}
/* Fine CR-074B */

/* CR-074B.3 — Rubrica: elenco separato, form a passaggi e campi dinamici. */
.gs360-contact-form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.gs360-contact-stepbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:20px 0}.gs360-contact-stepbar button{border:1px solid #d8e2ef;background:#f7f9fc;color:#53637c;border-radius:12px;padding:11px 8px;font-weight:800;cursor:pointer}.gs360-contact-stepbar button.is-active{background:#eaf8ef;border-color:#9adcb0;color:#13823a}.gs360-contact-step{display:none}.gs360-contact-step.is-active{display:block}.gs360-contact-step h3{margin:6px 0 7px;color:var(--gs360-primary)}.gs360-contact-form-nav{display:flex;gap:10px;align-items:center;border-top:1px solid #e1e8f1;margin-top:22px;padding-top:18px}.gs360-contact-final-actions{display:none;gap:10px;align-items:center;margin-left:auto}.gs360-contact-final-actions.is-visible{display:flex}.gs360-contact-role-options.is-card-select label{border:1px solid #dbe4ef;border-radius:12px;padding:13px;background:#fff;cursor:pointer}.gs360-contact-role-options.is-card-select label:has(input:checked){border-color:#7fd49a;background:#effbf3;color:#157a36}.gs360-contact-options.is-explained{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gs360-contact-options.is-explained label{align-items:flex-start;border:1px solid #dbe4ef;border-radius:12px;padding:13px;background:#f9fbfd}.gs360-contact-options.is-explained span{display:flex;flex-direction:column;gap:4px}.gs360-contact-options.is-explained small,.gs360-contact-form label small{font-weight:500;color:#6d7b90;line-height:1.35}.gs360-contact-form-card.is-person .gs360-field-org{display:none}.gs360-contact-form-card.is-organization .gs360-field-person{display:none}
@media(max-width:980px){.gs360-contact-stepbar{grid-template-columns:1fr 1fr}.gs360-contact-options.is-explained{grid-template-columns:1fr}.gs360-contact-form-heading{flex-direction:column}.gs360-contact-final-actions{flex-wrap:wrap}}
@media(max-width:640px){.gs360-contact-stepbar{grid-template-columns:1fr}.gs360-contact-form-nav{align-items:stretch;flex-direction:column}.gs360-contact-final-actions,.gs360-contact-final-actions.is-visible{margin-left:0;flex-direction:column;width:100%}.gs360-contact-form-nav .gs360-btn-primary,.gs360-contact-form-nav .gs360-btn-secondary{width:100%;text-align:center}}

/* CR-078A — Dashboard Configurazioni e Tipologie documento. */
.gs360-config-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}.gs360-config-kpis>div{background:#fff;border:1px solid #dfe7f1;border-radius:14px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}.gs360-config-kpis span{font-size:12px;color:#607087;font-weight:700}.gs360-config-kpis strong{font-size:24px;color:#09204d}.gs360-config-groups{display:grid;gap:16px}.gs360-config-group{background:#fff;border:1px solid #dfe7f1;border-radius:16px;padding:14px}.gs360-config-group-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 12px}.gs360-config-group-head h3{margin:0;color:#09204d}.gs360-config-group-head p{margin:0;color:#607087;font-size:13px}.gs360-config-group .gs360-company-module-cards{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.gs360-config-group article{height:100%;position:relative}.gs360-config-group article>em{position:absolute;right:10px;top:10px;font-style:normal;font-size:10px;font-weight:800;color:#138a3d;background:#eaf9ef;border-radius:999px;padding:4px 7px}.gs360-config-card-disabled{opacity:.65;cursor:not-allowed}.gs360-config-card-disabled>em{color:#6f7785!important;background:#eef1f5!important}.gs360-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 18px}.gs360-check-grid label{display:flex;gap:8px;align-items:center;background:#f6f8fc;border:1px solid #e1e7f0;border-radius:10px;padding:10px;font-size:12px;font-weight:700}.gs360-check-grid input{width:auto}.gs360-table td small{display:block;margin-top:4px;color:#69788e}
@media(max-width:1100px){.gs360-config-group .gs360-company-module-cards,.gs360-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.gs360-config-kpis,.gs360-config-group .gs360-company-module-cards,.gs360-check-grid{grid-template-columns:1fr}.gs360-config-group-head{display:block}.gs360-config-group-head p{margin-top:4px}}


/* =====================================================
 * CR-078A.1 / 0.6.24.1-alpha
 * Correzione isolata layout Dashboard Configurazioni.
 * Nessun impatto sulle altre viste o sui dati.
 * ===================================================== */
body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards{
  grid-template-columns:repeat(4,minmax(210px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards > a,
body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards > article{
  min-width:0!important;
  height:100%!important;
}
body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards > a > article,
body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards > article{
  position:relative!important;
  min-height:178px!important;
  height:100%!important;
  padding:46px 18px 20px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  text-align:center!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body .gs360-company-shell #configurazioni .gs360-config-group article > em{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  left:auto!important;
  max-width:calc(100% - 20px)!important;
  white-space:nowrap!important;
  line-height:1.1!important;
  z-index:2!important;
}
body .gs360-company-shell #configurazioni .gs360-config-group article > div{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
}
body .gs360-company-shell #configurazioni .gs360-config-group article h3{
  margin:0 0 6px!important;
  max-width:100%!important;
  font-size:16px!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}
body .gs360-company-shell #configurazioni .gs360-config-group article p{
  margin:0 auto!important;
  max-width:190px!important;
  font-size:12px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
body .gs360-company-shell #configurazioni .gs360-config-card-disabled{
  opacity:.72!important;
  border-style:dashed!important;
  background:#f8fafc!important;
}
body .gs360-company-shell #configurazioni .gs360-config-group-head{
  align-items:flex-start!important;
}
@media (max-width:1280px){
  body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards{grid-template-columns:repeat(3,minmax(200px,1fr))!important;}
}
@media (max-width:980px){
  body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(190px,1fr))!important;}
}
@media (max-width:640px){
  body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards{grid-template-columns:1fr!important;}
  body .gs360-company-shell #configurazioni .gs360-config-group-head{display:block!important;}
}


/* =====================================================
 * CR-078A.2 / 0.6.24.2-alpha
 * Dashboard Configurazioni a quattro tab.
 * CSS isolato alla sola vista #configurazioni.
 * ===================================================== */
body .gs360-company-shell #configurazioni .gs360-config-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:12px 0 14px;
  padding:6px;
  background:#eef3f9;
  border:1px solid #dce5f0;
  border-radius:14px;
}
body .gs360-company-shell #configurazioni .gs360-config-tab{
  min-height:48px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#17284d;
  font-weight:800;
  font-size:13px;
  line-height:1.25;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body .gs360-company-shell #configurazioni .gs360-config-tab:hover{
  background:#fff;
  border-color:#d5deea;
}
body .gs360-company-shell #configurazioni .gs360-config-tab.is-active{
  background:#fff;
  border-color:#1c9b55;
  box-shadow:0 4px 14px rgba(23,40,77,.08);
  color:#0a6f3a;
}
body .gs360-company-shell #configurazioni .gs360-config-group[hidden]{display:none!important;}
body .gs360-company-shell #configurazioni .gs360-config-group.is-active{display:block!important;}
body .gs360-company-shell #configurazioni .gs360-config-groups{display:block!important;}
body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards{
  grid-template-columns:repeat(4,minmax(210px,1fr))!important;
}
@media (max-width:1100px){
  body .gs360-company-shell #configurazioni .gs360-config-tabs{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  body .gs360-company-shell #configurazioni .gs360-config-tabs{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    flex:0 0 82%;
    scroll-snap-align:start;
  }
}


/* =====================================================
 * CR-078A.3 / 0.6.24.3-alpha
 * Tab Configurazioni evidenziati con icone e codifica colore.
 * CSS isolato alla sola vista #configurazioni.
 * ===================================================== */
body .gs360-company-shell #configurazioni .gs360-config-tabs{
  gap:12px;
  padding:0;
  background:transparent;
  border:0;
}
body .gs360-company-shell #configurazioni .gs360-config-tab{
  --gs360-tab-accent:#159947;
  --gs360-tab-bg:#effbf3;
  --gs360-tab-border:#9dddb4;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  padding:14px 18px;
  border:1px solid var(--gs360-tab-border);
  border-radius:14px;
  background:var(--gs360-tab-bg);
  color:var(--gs360-tab-accent);
  text-align:left;
  box-shadow:0 2px 8px rgba(23,40,77,.04);
}
body .gs360-company-shell #configurazioni .gs360-config-tab--organizzazione{
  --gs360-tab-accent:#0f8fa4;
  --gs360-tab-bg:#eefbfc;
  --gs360-tab-border:#9bd9e3;
}
body .gs360-company-shell #configurazioni .gs360-config-tab--documenti{
  --gs360-tab-accent:#2456c4;
  --gs360-tab-bg:#f1f5ff;
  --gs360-tab-border:#a9bced;
}
body .gs360-company-shell #configurazioni .gs360-config-tab--amministrazione{
  --gs360-tab-accent:#d66a10;
  --gs360-tab-bg:#fff6ee;
  --gs360-tab-border:#f2b27a;
}
body .gs360-company-shell #configurazioni .gs360-config-tab-icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:var(--gs360-tab-accent);
  box-shadow:0 6px 14px color-mix(in srgb,var(--gs360-tab-accent) 28%,transparent);
}
body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
  width:28px;
  height:28px;
  stroke:currentColor;
}
body .gs360-company-shell #configurazioni .gs360-config-tab-label{
  display:block;
  font-size:16px;
  line-height:1.28;
  font-weight:800;
  color:inherit;
}
body .gs360-company-shell #configurazioni .gs360-config-tab:hover{
  transform:translateY(-1px);
  background:var(--gs360-tab-bg);
  border-color:var(--gs360-tab-accent);
  box-shadow:0 8px 18px rgba(23,40,77,.08);
}
body .gs360-company-shell #configurazioni .gs360-config-tab.is-active{
  color:var(--gs360-tab-accent);
  background:var(--gs360-tab-bg);
  border:2px solid var(--gs360-tab-accent);
  box-shadow:0 10px 24px rgba(23,40,77,.12);
}
body .gs360-company-shell #configurazioni .gs360-config-tab:focus-visible{
  outline:3px solid color-mix(in srgb,var(--gs360-tab-accent) 35%,transparent);
  outline-offset:2px;
}
@media (max-width:1100px){
  body .gs360-company-shell #configurazioni .gs360-config-tab{min-height:74px;}
}
@media (max-width:640px){
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    flex:0 0 88%;
    min-height:78px;
  }
}


/* =====================================================
 * CR-078A.4 / 0.6.24.4-alpha
 * Responsive permanente Configurazioni: smartphone, tablet e desktop.
 * Regole isolate alla sola vista #configurazioni.
 * ===================================================== */
body .gs360-company-shell #configurazioni,
body .gs360-company-shell #configurazioni *{
  box-sizing:border-box;
}
body .gs360-company-shell #configurazioni{
  max-width:100%;
  overflow-x:hidden;
}
body .gs360-company-shell #configurazioni .gs360-config-tab{
  min-width:0;
}
body .gs360-company-shell #configurazioni .gs360-config-tab-label{
  overflow-wrap:anywhere;
}
body .gs360-company-shell #configurazioni .gs360-company-module-card,
body .gs360-company-shell #configurazioni .gs360-company-module-card *{
  min-width:0;
}

/* Tablet e notebook compatti */
@media (max-width:1180px){
  body .gs360-company-shell #configurazioni .gs360-config-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Tablet verticale */
@media (max-width:820px){
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    min-height:76px;
    padding:12px 14px;
    gap:11px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon{
    width:46px;
    height:46px;
    flex-basis:46px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
    width:24px;
    height:24px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-label{
    font-size:14px;
  }
}

/* Smartphone: tab impilati, nessuno scroll orizzontale obbligatorio */
@media (max-width:640px){
  body .gs360-company-shell #configurazioni .gs360-config-tabs{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    overflow:visible;
    scroll-snap-type:none;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    width:100%;
    min-height:66px;
    padding:10px 12px;
    flex:none;
    gap:10px;
    border-radius:12px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon{
    width:42px;
    height:42px;
    flex-basis:42px;
    box-shadow:0 4px 10px rgba(23,40,77,.12);
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
    width:22px;
    height:22px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-label{
    font-size:14px;
    line-height:1.2;
  }
  body .gs360-company-shell #configurazioni .gs360-config-group-head{
    display:block;
  }
  body .gs360-company-shell #configurazioni .gs360-config-group-head h3{
    font-size:20px;
    line-height:1.2;
    margin-bottom:5px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-group .gs360-company-module-cards{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell #configurazioni .gs360-company-module-card{
    min-height:132px;
  }
}

/* Smartphone molto piccoli */
@media (max-width:390px){
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    min-height:62px;
    padding:9px 10px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-label{
    font-size:13px;
  }
}


/* =====================================================
 * CR-078A.5 / 0.6.24.5-alpha
 * Tab Configurazioni come card di navigazione: icone grandi e centrali,
 * descrizione contestuale più evidente e responsive permanente.
 * Regole isolate alla sola vista #configurazioni.
 * ===================================================== */
body .gs360-company-shell #configurazioni .gs360-config-tabs{
  align-items:stretch;
}
body .gs360-company-shell #configurazioni .gs360-config-tab{
  min-height:136px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:18px 16px;
  text-align:center;
}
body .gs360-company-shell #configurazioni .gs360-config-tab-icon{
  width:68px;
  height:68px;
  flex:0 0 68px;
  margin:0 auto;
  box-shadow:0 8px 18px color-mix(in srgb,var(--gs360-tab-accent) 30%,transparent);
}
body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
  width:36px;
  height:36px;
}
body .gs360-company-shell #configurazioni .gs360-config-tab-label{
  max-width:100%;
  font-size:17px;
  line-height:1.25;
  text-align:center;
}
body .gs360-company-shell #configurazioni .gs360-config-group-head{
  display:block;
  margin:0 0 16px;
}
body .gs360-company-shell #configurazioni .gs360-config-group-head h3{
  margin:0 0 6px;
  font-size:25px;
  line-height:1.2;
}
body .gs360-company-shell #configurazioni .gs360-config-group-head p{
  margin:0;
  max-width:900px;
  color:#3f506b;
  font-size:16px;
  line-height:1.45;
  font-weight:650;
}
@media (max-width:1180px){
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    min-height:126px;
  }
}
@media (max-width:820px){
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    min-height:118px;
    padding:15px 12px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon{
    width:60px;
    height:60px;
    flex-basis:60px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
    width:32px;
    height:32px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-label{
    font-size:16px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-group-head h3{
    font-size:23px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-group-head p{
    font-size:15px;
  }
}
@media (max-width:640px){
  body .gs360-company-shell #configurazioni .gs360-config-tab{
    min-height:112px;
    padding:14px 12px;
    gap:8px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon{
    width:56px;
    height:56px;
    flex-basis:56px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
    width:30px;
    height:30px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-label{
    font-size:15px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-group-head h3{
    font-size:21px;
  }
  body .gs360-company-shell #configurazioni .gs360-config-group-head p{
    font-size:14px;
  }
}

/* =====================================================
 * CR-078A.6 / 0.6.24.6-alpha
 * Ingrandimento icone interne ai quattro tab Configurazioni.
 * Regole isolate alla sola vista #configurazioni.
 * ===================================================== */
body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
  width:48px!important;
  height:48px!important;
  max-width:none!important;
  max-height:none!important;
  stroke-width:2.35;
}
@media (max-width:820px){
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
    width:42px!important;
    height:42px!important;
  }
}
@media (max-width:640px){
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon svg{
    width:38px!important;
    height:38px!important;
  }
}

/* =====================================================
 * CR-078A.7 / 0.6.24.7-alpha
 * Correzione definitiva dimensione icone interne ai quattro tab.
 * Il markup contiene un wrapper .gs360-stroke-icon: viene dimensionato
 * esplicitamente per evitare che la regola globale width:1em riduca l'SVG.
 * Regole isolate alla sola vista #configurazioni.
 * ===================================================== */
body .gs360-company-shell #configurazioni .gs360-config-tab-icon > .gs360-stroke-icon{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  flex:0 0 48px!important;
  font-size:48px!important;
  line-height:1!important;
  overflow:visible!important;
}
body .gs360-company-shell #configurazioni .gs360-config-tab-icon > .gs360-stroke-icon > svg{
  display:block!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  stroke-width:2.25!important;
}
@media (max-width:820px){
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon > .gs360-stroke-icon{
    width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important;flex-basis:43px!important;font-size:43px!important;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon > .gs360-stroke-icon > svg{
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
  }
}
@media (max-width:640px){
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon > .gs360-stroke-icon{
    width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important;flex-basis:39px!important;font-size:39px!important;
  }
  body .gs360-company-shell #configurazioni .gs360-config-tab-icon > .gs360-stroke-icon > svg{
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  }
}

/* CR-079A */
.gs360-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}.gs360-pagination>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gs360-company-view .gs360-table td small{display:block;margin-top:4px;color:#64748b}.gs360-company-view .gs360-live-filter{align-items:stretch}
@media(max-width:760px){.gs360-pagination{align-items:flex-start;flex-direction:column}.gs360-company-view .gs360-live-filter>*{width:100%!important}.gs360-company-view .gs360-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}}
/* CR-080A.2.1 — KPI uniformi, allineati allo standard Rubrica Contatti */
body .gs360-company-shell .gs360-config-section-kpis{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  gap:12px!important;
  margin:16px 0!important;
  width:100%!important;
  align-items:stretch!important;
}
body .gs360-company-shell .gs360-config-section-kpis > .gs360-config-section-kpi{
  display:block!important;
  min-width:0!important;
  min-height:76px!important;
  background:#fff!important;
  border:1px solid var(--gs360-border,#dfe7f1)!important;
  border-radius:16px!important;
  padding:15px!important;
  box-shadow:var(--gs360-shadow,0 10px 28px rgba(13,27,61,.055))!important;
  margin:0!important;
}
body .gs360-company-shell .gs360-config-section-kpi span{
  display:block!important;
  color:#75839a!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-config-section-kpi strong{
  display:block!important;
  margin-top:7px!important;
  color:var(--gs360-primary,#09204d)!important;
  font-size:27px!important;
  line-height:1!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-config-section-kpi em{
  display:block!important;
  margin-top:5px!important;
  color:#7c8799!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-style:normal!important;
}
@media(max-width:1250px){
  body .gs360-company-shell .gs360-config-section-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-config-section-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
}
@media(max-width:480px){
  body .gs360-company-shell .gs360-config-section-kpis{grid-template-columns:1fr!important;}
}

/* CR-081A.2 */
.gs360-config-color-preview{display:inline-flex;align-items:center;gap:8px;min-height:24px;margin-top:7px;font-weight:700;font-size:12px;width:max-content;max-width:100%;color:#334155}.gs360-config-color-preview i{display:block;width:14px;height:14px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(15,23,42,.18)}.gs360-config-color-preview em{font-style:normal}.gs360-deadline-upload-box{margin-top:18px;border:1px dashed #8bb6e8;background:#f8fbff}.gs360-help-inline{margin-top:10px;padding:10px 12px;border-radius:10px;background:#eef7ff;color:#244665;font-size:13px}.gs360-deadline-stepper{grid-template-columns:repeat(7,minmax(120px,1fr))}@media(max-width:1100px){.gs360-deadline-stepper{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.gs360-deadline-stepper{grid-template-columns:1fr}.gs360-config-color-preview{width:max-content;justify-content:flex-start}}

/* CR-081A.2.2 — indicatore colore compatto per Stato e Priorità */
.gs360-config-color-preview{display:inline-flex;align-items:center;gap:0;margin-top:8px;min-height:14px;padding:0;background:transparent!important;color:inherit!important}.gs360-config-color-preview i{display:block;width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(15,23,42,.2)}.gs360-config-color-preview em{display:none!important}


/* CR-082A — configurazione ricorrenza operativa */
.gs360-recurrence-card{grid-column:1/-1;border:1px solid #d9e5f4;border-radius:16px;padding:16px;background:linear-gradient(180deg,#fbfdff,#f5f9ff)}
.gs360-recurrence-card.is-active{border-color:#8dd3a4;background:linear-gradient(180deg,#fbfffc,#f2fbf5)}
.gs360-recurrence-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid #dce6f2}
.gs360-recurrence-options[hidden]{display:none!important}.gs360-inline-unit{display:flex;align-items:center;gap:8px}.gs360-inline-unit input{max-width:110px}.gs360-inline-unit select{min-width:120px}.gs360-inline-unit>span{font-size:12px;font-weight:700;color:#52647f;white-space:nowrap}
@media(max-width:1100px){.gs360-recurrence-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.gs360-recurrence-options{grid-template-columns:1fr}.gs360-inline-unit{align-items:stretch;flex-direction:column}.gs360-inline-unit input,.gs360-inline-unit select{max-width:none;width:100%}}


/* =====================================================
 * CR-083A — Dashboard Azienda professionale
 * Sola lettura; selettori isolati alla vista #dashboard.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-year-panel{margin:16px 0 14px;padding:20px;border:1px solid #d8e5f3;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f8fbff 62%,#f2fbf5 100%);box-shadow:0 18px 45px rgba(7,27,77,.07)}
body .gs360-company-shell #dashboard .gs360-dashboard-year-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:16px}
body .gs360-company-shell #dashboard .gs360-dashboard-year-head h3,body .gs360-company-shell #dashboard .gs360-dashboard-panel-head h3{margin:2px 0 5px;color:#061b4a;font-size:24px;line-height:1.1;font-weight:950}
body .gs360-company-shell #dashboard .gs360-dashboard-year-head p,body .gs360-company-shell #dashboard .gs360-dashboard-panel-head p{margin:0;color:#65748e;font-weight:700}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis a{position:relative;display:flex;flex-direction:column;gap:4px;min-height:92px;padding:14px 15px;border:1px solid #dde7f2;border-radius:17px;background:#fff;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis a:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 6px 6px 0;background:#2563eb}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(7,27,77,.1)}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis span{color:#65748e;font-size:11px;font-weight:900;text-transform:uppercase}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis strong{color:#071b4d;font-size:28px;font-weight:950}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis small{color:#7a879c;font-weight:750}
body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis .is-upcoming:before{background:#f59e0b}body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis .is-overdue:before{background:#ef4444}body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis .is-critical:before{background:#991b1b}body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis .is-completed:before{background:#16a34a}
body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(360px,.9fr);gap:14px;margin-bottom:16px}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card,body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{padding:18px;border:1px solid #dbe6f2;border-radius:22px;background:#fff;box-shadow:0 16px 36px rgba(7,27,77,.06)}
body .gs360-company-shell #dashboard .gs360-dashboard-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
body .gs360-company-shell #dashboard .gs360-dashboard-panel-head>a{padding:8px 12px;border:1px solid #cbdcf0;border-radius:999px;text-decoration:none;color:#0b4ab8;font-weight:900;white-space:nowrap}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary span{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:14px;background:#f7f9fc;color:#6c7a91;font-size:11px;font-weight:850}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary strong{font-size:21px;color:#071b4d}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-list{display:flex;flex-direction:column;gap:7px}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item{display:grid;grid-template-columns:64px 1fr 14px 18px;gap:11px;align-items:center;padding:10px 12px;border:1px solid #e2eaf3;border-radius:15px;text-decoration:none;background:#fff}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item:hover{border-color:#9fc0e8;background:#f8fbff}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item time{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;border-radius:12px;background:#eef5ff;color:#0b4ab8;font-size:17px;font-weight:950}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item time small{font-size:9px}.gs360-dashboard-upcoming-item div{min-width:0}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item div strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#071b4d;font-size:14px}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item div span{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6e7d95;font-size:11px;font-weight:700}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item>i{width:10px;height:10px;border-radius:50%;background:#3b82f6}.gs360-dashboard-upcoming-item>i.is-bassa{background:#22c55e!important}.gs360-dashboard-upcoming-item>i.is-alta{background:#f59e0b!important}.gs360-dashboard-upcoming-item>i.is-urgente{background:#ef4444!important}.gs360-dashboard-upcoming-item>i.is-critica{background:#991b1b!important}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item>b{color:#2563eb;font-size:18px}.gs360-dashboard-upcoming-empty{padding:24px;text-align:center;border:1px dashed #cbd9e8;border-radius:16px}.gs360-dashboard-upcoming-empty strong,.gs360-dashboard-upcoming-empty span{display:block}.gs360-dashboard-upcoming-empty span{margin-top:4px;color:#71809a}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:6px!important;min-height:220px!important;padding:16px 10px 8px!important}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a{display:grid;grid-template-rows:22px 1fr 18px;align-items:end;height:175px;text-decoration:none;border-radius:10px;padding:3px}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a:hover,body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a.is-current{background:#eff6ff}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>strong{text-align:center;color:#53647e;font-size:10px}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>span{height:126px!important;display:flex!important;align-items:flex-end!important}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a i{width:100%!important}.gs360-dashboard-impact-chart a em{text-align:center!important}
body .gs360-company-shell #dashboard .gs360-company-module-cards a:first-child article{border-color:#a8d9b7;background:linear-gradient(180deg,#fff,#f5fcf7)}
@media(max-width:1280px){body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid{grid-template-columns:1fr}}
@media(max-width:760px){body .gs360-company-shell #dashboard .gs360-dashboard-year-head{align-items:flex-start;flex-direction:column}body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary{grid-template-columns:repeat(2,minmax(0,1fr))}body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{overflow-x:auto;grid-template-columns:repeat(12,42px)!important}body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item{grid-template-columns:58px 1fr 12px 16px}}
@media(max-width:480px){body .gs360-company-shell #dashboard .gs360-dashboard-year-kpis{grid-template-columns:1fr}body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary{grid-template-columns:1fr 1fr}}


/* =====================================================
 * CR-083A.2 — Rifinitura Dashboard, grafico tradizionale
 * e card Configurazioni. Selettori isolati a #dashboard.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid{
  grid-template-columns:minmax(0,1.45fr) minmax(420px,1fr)!important;
  gap:20px!important;
  align-items:stretch!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card,
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{
  min-width:0!important;
  min-height:390px!important;
  padding:22px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-panel-head{
  position:relative!important;
  min-height:74px!important;
  margin-bottom:18px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card .gs360-dashboard-panel-head{
  padding-right:108px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-panel-head>a{
  position:absolute!important;
  top:0!important;
  right:0!important;
  z-index:2!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary{
  gap:10px!important;
  margin-bottom:16px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary span{
  min-height:68px!important;
  justify-content:center!important;
  padding:12px 14px!important;
  font-size:12px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary strong{
  font-size:25px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item{
  min-height:68px!important;
  padding:12px 14px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{
  overflow:hidden!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{
  position:relative!important;
  display:grid!important;
  grid-template-columns:repeat(12,minmax(24px,1fr))!important;
  gap:9px!important;
  min-height:260px!important;
  padding:28px 12px 8px 42px!important;
  border-left:1px solid #cfd9e6!important;
  border-bottom:1px solid #cfd9e6!important;
  background:
    repeating-linear-gradient(to top, transparent 0, transparent 49px, rgba(148,163,184,.20) 50px)!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart:before{
  content:"Totale scadenze"!important;
  position:absolute!important;
  left:-38px!important;
  top:112px!important;
  transform:rotate(-90deg)!important;
  color:#6b7a91!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a{
  display:grid!important;
  grid-template-rows:28px 1fr 24px!important;
  align-items:end!important;
  height:220px!important;
  min-width:0!important;
  padding:3px 2px!important;
  border-radius:8px 8px 0 0!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a:hover,
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a.is-current{
  background:rgba(239,246,255,.78)!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>strong{
  display:block!important;
  min-height:24px!important;
  text-align:center!important;
  color:#17305c!important;
  font-size:12px!important;
  line-height:24px!important;
  font-weight:950!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>span{
  height:160px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a i{
  width:min(32px,82%)!important;
  min-height:5px!important;
  border-radius:6px 6px 1px 1px!important;
  background:linear-gradient(180deg,#36b65d 0%,#15803d 100%)!important;
  box-shadow:0 5px 12px rgba(21,128,61,.18)!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a.is-current i{
  background:linear-gradient(180deg,#2f80ed 0%,#1756b7 100%)!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a em{
  display:block!important;
  text-align:center!important;
  color:#53647e!important;
  font-size:10px!important;
  line-height:20px!important;
  font-weight:900!important;
  font-style:normal!important;
}
body .gs360-company-shell #dashboard .gs360-company-module-cards{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
body .gs360-company-shell #dashboard .gs360-company-module-cards a:last-child article{
  border-color:#b9d7f3!important;
  background:linear-gradient(180deg,#fff,#f5f9ff)!important;
}
@media(max-width:1440px){
  body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid{grid-template-columns:minmax(0,1.25fr) minmax(390px,1fr)!important;}
  body .gs360-company-shell #dashboard .gs360-company-module-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:1180px){
  body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid{grid-template-columns:1fr!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card,
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{min-height:auto!important;}
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-dashboard-panel-head{min-height:auto!important;display:block!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card .gs360-dashboard-panel-head{padding-right:0!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-panel-head>a{position:static!important;display:inline-flex!important;margin-top:12px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{
    grid-template-columns:repeat(12,48px)!important;
    gap:8px!important;
    overflow-x:auto!important;
    padding-left:36px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:520px){
  body .gs360-company-shell #dashboard .gs360-company-module-cards{grid-template-columns:1fr!important;}
}


/* =====================================================
 * CR-083A.3 — Grafico mensile ampliato e baseline corretta.
 * Selettori isolati alla Dashboard Azienda.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{
  min-height:430px!important;
  display:flex!important;
  flex-direction:column!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-panel-head{
  min-height:auto!important;
  margin-bottom:12px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-panel-head h3{
  font-size:26px!important;
  line-height:1.12!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-panel-head p{
  font-size:13px!important;
  line-height:1.45!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{
  flex:1 1 auto!important;
  width:100%!important;
  min-height:320px!important;
  padding:32px 18px 12px 50px!important;
  gap:12px!important;
  align-items:end!important;
  background:
    repeating-linear-gradient(to top, transparent 0, transparent 59px, rgba(148,163,184,.20) 60px)!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart:before{
  left:-35px!important;
  top:145px!important;
  font-size:11px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a{
  height:275px!important;
  grid-template-rows:32px 1fr 28px!important;
  padding:4px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>strong{
  min-height:30px!important;
  font-size:14px!important;
  line-height:30px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>span{
  height:210px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:0!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a i{
  display:block!important;
  width:min(42px,84%)!important;
  min-height:0!important;
  margin:0!important;
  align-self:flex-end!important;
  transform:none!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a i[style*="height:0%"]{
  height:0!important;
  min-height:0!important;
  box-shadow:none!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a em{
  font-size:12px!important;
  line-height:24px!important;
}
@media(max-width:1440px){
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{min-height:400px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{min-height:290px!important;padding-left:44px!important;gap:9px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a{height:245px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>span{height:180px!important;}
}
@media(max-width:1180px){
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{min-height:420px!important;}
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{min-height:auto!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{
    min-height:310px!important;
    padding:28px 12px 10px 40px!important;
    grid-template-columns:repeat(12,54px)!important;
  }
}


/* =====================================================
 * CR-083A.4 — Card Nuova scadenza, riga rapida a 7 moduli
 * e scorrimento verticale delle scadenze prossime.
 * Intervento isolato alla Dashboard Azienda.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-list{
  max-height:270px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable!important;
  padding-right:5px!important;
  overscroll-behavior:contain!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-list::-webkit-scrollbar{
  width:8px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-list::-webkit-scrollbar-track{
  background:#eef3f8!important;
  border-radius:999px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-list::-webkit-scrollbar-thumb{
  background:#b7c5d8!important;
  border-radius:999px!important;
}
body .gs360-company-shell #dashboard .gs360-company-module-cards .is-new-deadline{
  border-color:#a9e2b9!important;
  background:linear-gradient(180deg,#f5fff7,#ffffff)!important;
}
body .gs360-company-shell #dashboard .gs360-company-module-cards .is-new-deadline .gs360-module-card-icon{
  color:#169447!important;
  border-color:#b8e8c5!important;
  background:#effcf3!important;
}
@media(min-width:1200px){
  body .gs360-company-shell #dashboard .gs360-company-module-cards{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards > a > article{
    min-width:0!important;
    padding:16px 8px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards h3{
    font-size:15px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards p{
    font-size:10px!important;
    line-height:1.25!important;
  }
}
@media(max-width:1199px) and (min-width:761px){
  body .gs360-company-shell #dashboard .gs360-company-module-cards{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-list{
    max-height:340px!important;
  }
}


/* CR-084A/B — picker visuale condiviso configurazioni */
.gs360-visual-picker{border:1px solid #d9e4ef;border-radius:16px;padding:18px;margin:16px 0;background:#f8fbff;min-width:0}.gs360-visual-picker legend{font-weight:800;color:#0e234f;padding:0 8px}.gs360-visual-picker-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:22px}.gs360-visual-picker strong{display:block;color:#0e234f;font-size:14px}.gs360-visual-picker p{margin:3px 0 12px;color:#64748b;font-size:12px}.gs360-color-palette{display:flex;flex-wrap:wrap;gap:9px}.gs360-color-swatch{width:34px;height:34px;border-radius:10px;background:var(--swatch);border:3px solid #fff;box-shadow:0 0 0 1px #cbd5e1;cursor:pointer}.gs360-color-swatch.is-selected{box-shadow:0 0 0 3px #0e234f;transform:scale(1.05)}.gs360-color-custom{display:grid;grid-template-columns:58px 1fr;gap:10px;margin-top:13px}.gs360-color-custom input[type=color]{width:58px;height:42px;padding:3px;border-radius:10px}.gs360-icon-search{width:100%;margin-bottom:10px}.gs360-icon-grid{display:grid;grid-template-columns:repeat(5,minmax(72px,1fr));gap:8px;max-height:230px;overflow-y:auto;padding:3px}.gs360-icon-choice{min-height:68px;border:1px solid #d6e1ed;background:#fff;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#0e234f;cursor:pointer}.gs360-icon-choice span{font-size:23px;line-height:1}.gs360-icon-choice small{font-size:10px}.gs360-icon-choice.is-selected{border-color:#2faa4f;box-shadow:0 0 0 2px rgba(47,170,79,.2);background:#f0fff4}.gs360-visual-preview{--preview-color:#2faa4f;margin-top:16px;border-left:6px solid var(--preview-color);background:#fff;border-radius:12px;padding:11px 14px;display:flex;align-items:center;gap:12px;box-shadow:0 5px 18px rgba(15,35,79,.07)}.gs360-visual-preview>span{width:38px;height:38px;border-radius:10px;background:color-mix(in srgb,var(--preview-color) 14%,white);color:var(--preview-color);display:grid;place-items:center;font-size:22px}.gs360-visual-preview small{display:block;color:#64748b}.gs360-visual-preview strong{font-size:14px}@media(max-width:900px){.gs360-visual-picker-grid{grid-template-columns:1fr}.gs360-icon-grid{grid-template-columns:repeat(4,minmax(64px,1fr))}}@media(max-width:520px){.gs360-icon-grid{grid-template-columns:repeat(3,minmax(60px,1fr))}.gs360-visual-picker{padding:14px}}

/* CR-084C — cataloghi aziendali: azioni uniformi e icone lineari professionali */
.gs360-icon-choice span,.gs360-visual-preview>span{display:grid;place-items:center}.gs360-icon-choice svg,.gs360-visual-preview svg{width:24px;height:24px;stroke:currentColor;fill:none}.gs360-icon-choice{min-height:76px;padding:8px}.gs360-icon-choice small{font-size:11px;font-weight:700;color:#334155}.gs360-icon-choice:hover{border-color:#94a3b8;background:#f8fafc}.gs360-color-swatch{position:relative}.gs360-color-swatch span{position:absolute;left:50%;top:calc(100% + 7px);transform:translateX(-50%);font-size:9px;font-weight:700;color:#475569;white-space:nowrap;opacity:0;pointer-events:none;background:#fff;border:1px solid #dbe4ee;border-radius:6px;padding:3px 5px;z-index:5}.gs360-color-swatch:hover span,.gs360-color-swatch:focus span{opacity:1}.gs360-category-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.gs360-category-actions form{margin:0}.gs360-category-used{font-size:11px;font-weight:700;color:#64748b;padding:5px 8px;border:1px solid #dbe4ee;border-radius:999px;background:#f8fafc}.gs360-category-item>div:not(.gs360-category-actions){min-width:0;flex:1}.gs360-category-item .gs360-action-btn{min-height:30px;padding:5px 9px;font-size:11px}.gs360-category-item{gap:10px}.gs360-category-color{flex:0 0 auto}@media(max-width:760px){.gs360-category-item{align-items:flex-start;flex-wrap:wrap}.gs360-category-actions{width:100%;justify-content:flex-start;padding-left:22px}.gs360-icon-grid{grid-template-columns:repeat(3,minmax(78px,1fr))}}

/* CR-083B — Elenco Scadenze professionale */
.gs360-deadlines-active-filter-form{grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;align-items:end}
.gs360-deadlines-viewbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:14px 0 10px;padding:10px 12px;border:1px solid #d9e4ef;border-radius:12px;background:#f8fbff}
.gs360-deadlines-view-switch{display:flex;gap:8px;flex-wrap:wrap}
.gs360-deadlines-view-switch .is-current{box-shadow:0 0 0 2px rgba(37,99,235,.16);font-weight:800}
.gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(8),
.gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(8),
.gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(9),
.gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(9),
.gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(10),
.gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(10){display:none}
.gs360-deadlines-view-compatta .gs360-deadlines-table-extended td,.gs360-deadlines-view-compatta .gs360-deadlines-table-extended th{padding:10px 9px}
.gs360-deadlines-table-extended tbody tr{border-left:4px solid transparent}
.gs360-deadlines-table-extended tbody tr:has(.gs360-priority-badge.rosso){border-left-color:#dc2626;background:rgba(254,242,242,.45)}
.gs360-deadlines-table-extended tbody tr:has(.gs360-priority-badge.arancione){border-left-color:#f59e0b}
.gs360-deadlines-table-wrap{overflow-x:auto;scrollbar-gutter:stable}
@media(max-width:1180px){.gs360-deadlines-active-filter-form{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:760px){.gs360-deadlines-active-filter-form{grid-template-columns:1fr 1fr}.gs360-deadlines-viewbar{align-items:flex-start;flex-direction:column}.gs360-deadlines-view-switch{width:100%}.gs360-deadlines-view-switch a{flex:1;justify-content:center}}
@media(max-width:520px){.gs360-deadlines-active-filter-form{grid-template-columns:1fr}.gs360-deadlines-filter-actions{grid-column:1}.gs360-deadlines-table-wrap{overflow:visible}.gs360-deadlines-table-extended,.gs360-deadlines-table-extended tbody,.gs360-deadlines-table-extended tr,.gs360-deadlines-table-extended td{display:block;width:100%}.gs360-deadlines-table-extended thead{display:none}.gs360-deadlines-table-extended tr{margin-bottom:12px;border:1px solid #dbe5ef;border-left:5px solid #2faa4f;border-radius:14px;background:#fff;padding:8px}.gs360-deadlines-table-extended td{display:flex!important;justify-content:space-between;gap:12px;border:0;padding:7px 6px!important}.gs360-deadlines-table-extended td:before{content:attr(data-label);font-weight:800;color:#46566b}.gs360-deadlines-actions-cell{display:block!important}.gs360-deadline-row-actions{justify-content:flex-end}}

/* CR-085 — gestione professionale delle serie ricorrenti */
.gs360-action-btn.is-series{background:#eef2ff;border-color:#c7d2fe;color:#4338ca}.gs360-action-btn.is-series>span:first-child{font-size:1.15rem;font-weight:800}.gs360-series-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 18px}.gs360-series-summary article{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.gs360-series-summary span{display:block;color:#64748b;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px}.gs360-series-summary strong{display:block;color:#0f172a;font-size:1.08rem}.gs360-series-controls{display:flex;align-items:center;justify-content:space-between;gap:20px}.gs360-series-controls h3{margin:0 0 5px}.gs360-series-controls p{margin:0;color:#64748b}.gs360-series-table td small{display:block;color:#64748b;margin-top:3px}.gs360-series-table tr:hover{background:#f8fafc}@media(max-width:1180px){.gs360-series-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.gs360-series-summary{grid-template-columns:1fr 1fr}.gs360-series-controls{align-items:flex-start;flex-direction:column}.gs360-series-controls .gs360-076b-actions{width:100%}}@media(max-width:480px){.gs360-series-summary{grid-template-columns:1fr}}


/* CR-085.2 — uniformità card riepilogo serie ricorrente */
.gs360-series-summary{gap:16px;margin:4px 0 20px;}
.gs360-series-summary article{min-height:84px;padding:18px 20px;display:flex;flex-direction:column;justify-content:center;border-radius:14px;}
.gs360-series-summary span{margin:0 0 8px;line-height:1.25;}
.gs360-series-summary strong{line-height:1.3;}
.gs360-series-summary strong .gs360-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 11px;}
@media(max-width:760px){.gs360-series-summary article{min-height:78px;padding:16px 17px;}}
@media(max-width:480px){.gs360-series-summary{gap:12px}.gs360-series-summary article{min-height:auto;padding:15px 16px;}}

/* CR-086 — Nuova scadenza compatta e guidata */
.gs360-deadline-stepper-compact{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  overflow-x:auto!important;
  padding:8px!important;
  scrollbar-width:thin;
}
.gs360-deadline-stepper-compact button{
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:7px 12px!important;
  white-space:nowrap!important;
  font-size:12px!important;
}
.gs360-essential-head{margin-bottom:10px!important;}
.gs360-essential-layout{
  display:grid;
  grid-template-columns:1.25fr .9fr .95fr;
  grid-template-areas:
    "ident priority more"
    "ident schedule more";
  gap:12px;
}
.gs360-essential-card{
  min-width:0;
  padding:14px 16px;
  border:1px solid #dbe5ef;
  border-radius:15px;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,35,79,.045);
}
.gs360-essential-card h4{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 12px;
  color:#0e234f;
  font-size:16px;
  line-height:1.2;
}
.gs360-essential-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 30px;
  border-radius:9px;
  background:#effbf3;
  border:1px solid #c9ecd4;
  color:#20a653;
  font-size:16px;
  font-weight:900;
}
.gs360-essential-card label{display:block;margin:0 0 9px!important;}
.gs360-essential-card label:last-child{margin-bottom:0!important;}
.gs360-essential-card label>span:first-child{margin-bottom:4px!important;font-size:11px!important;}
.gs360-essential-card input,
.gs360-essential-card select,
.gs360-essential-card textarea{min-height:38px!important;padding:8px 10px!important;font-size:12px!important;}
.gs360-essential-card textarea{min-height:78px!important;resize:vertical;}
.gs360-essential-identification{grid-area:ident;}
.gs360-essential-status{grid-area:priority;}
.gs360-essential-document{grid-area:document;}
.gs360-essential-schedule{grid-area:schedule;}
.gs360-essential-description{grid-area:description;}
.gs360-essential-more{grid-area:more;background:linear-gradient(145deg,#f6faff,#fff);border-color:#cfe0f5;}
.gs360-essential-inline-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.gs360-essential-inline-three{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:8px;}
.gs360-essential-note,.gs360-essential-info,.gs360-essential-more p{
  margin:8px 0 0;
  padding:9px 11px;
  border-radius:10px;
  background:#f6f9fd;
  color:#55657a;
  font-size:11px;
  line-height:1.45;
}
.gs360-essential-info{border:1px solid #d6e5f7;background:#f7fbff;color:#335a8d;}
.gs360-recurrence-card-dedicated{max-width:none!important;width:100%!important;padding:18px!important;}
.gs360-recurrence-card-dedicated>.gs360-recurrence-options{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
.gs360-detail-payment-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;}
.gs360-detail-payment-card{padding:18px!important;}
.gs360-detail-payment-card h4{margin:0 0 14px;color:#0e234f;font-size:17px;}
.gs360-detail-payment-card textarea{min-height:92px;}
@media(min-width:1280px) and (min-height:760px){
  .gs360-essential-tab{padding-bottom:4px!important;}
  .gs360-essential-layout{gap:10px;}
  .gs360-essential-card{padding:12px 14px;}
  .gs360-essential-card h4{margin-bottom:9px;font-size:15px;}
  .gs360-essential-card label{margin-bottom:7px!important;}
  .gs360-deadline-form-actions{margin-top:12px!important;}
}
@media(max-width:1180px){
  .gs360-essential-layout{grid-template-columns:1fr 1fr;grid-template-areas:"ident priority" "ident schedule" "more more";}
  .gs360-detail-payment-layout{grid-template-columns:1fr;}
}
@media(max-width:760px){
  .gs360-essential-layout{grid-template-columns:1fr;grid-template-areas:"ident" "priority" "schedule" "more";}
  .gs360-essential-inline-two,.gs360-essential-inline-three{grid-template-columns:1fr;}
  .gs360-recurrence-card-dedicated>.gs360-recurrence-options{grid-template-columns:1fr!important;}
  .gs360-deadline-stepper-compact{margin-left:-4px;margin-right:-4px;}
}


/* CR-087 — Collegamenti contestuali alle Configurazioni nei form */
.gs360-config-context-link{
    display:inline-flex;align-items:center;gap:5px;margin-left:7px;padding:3px 7px 3px 4px;
    border:1px solid #bfd2ef;border-radius:999px;background:#f5f9ff;color:#174b9a!important;
    font-size:11px!important;font-weight:800!important;line-height:1;text-decoration:none!important;
    vertical-align:middle;white-space:nowrap;transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.gs360-config-context-link>span{display:grid!important;place-items:center;width:18px;height:18px;border-radius:50%;background:#2474d2;color:#fff!important;font-size:15px!important;font-weight:800!important;line-height:1!important}
.gs360-config-context-link em{font-style:normal;color:inherit;font-size:11px;font-weight:800}
.gs360-config-context-link:hover,.gs360-config-context-link:focus{background:#eaf3ff;border-color:#7eaae3;transform:translateY(-1px);outline:2px solid rgba(36,116,210,.14);outline-offset:2px}
.gs360-deadline-form label>span:has(.gs360-config-context-link){display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.gs360-config-context-link em{display:none}.gs360-config-context-link{padding:3px;margin-left:4px}.gs360-config-context-link>span{width:20px;height:20px}.gs360-deadline-form label>span:has(.gs360-config-context-link){flex-wrap:nowrap}}

/* CR-088 — Rifinitura spazi/padding Nuova scadenza */
body .gs360-company-shell .gs360-deadline-form-panel{
  padding:18px 20px!important;
}
body .gs360-company-shell .gs360-deadline-form .gs360-company-panel-head{
  margin-bottom:12px!important;
  gap:16px!important;
}
body .gs360-company-shell .gs360-deadline-form .gs360-company-panel-head h3{
  line-height:1.18!important;
}
body .gs360-company-shell .gs360-deadline-form .gs360-company-panel-head p{
  line-height:1.4!important;
}
body .gs360-company-shell .gs360-essential-layout{
  grid-template-columns:1.25fr .9fr .95fr;
  grid-template-areas:
    "ident priority more"
    "ident schedule more";
  gap:14px;
  align-items:stretch;
}
body .gs360-company-shell .gs360-essential-card{
  padding:16px 18px!important;
}
body .gs360-company-shell .gs360-essential-identification{
  display:flex;
  flex-direction:column;
}
body .gs360-company-shell .gs360-essential-description-inline{
  margin-top:2px!important;
}
body .gs360-company-shell .gs360-essential-description-inline textarea{
  min-height:82px!important;
}
body .gs360-company-shell .gs360-detail-payment-layout{
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:18px;
  align-items:start;
}
body .gs360-company-shell .gs360-detail-payment-card{
  margin:0!important;
  padding:18px 20px!important;
  border-radius:16px!important;
  min-height:0!important;
}
body .gs360-company-shell .gs360-detail-payment-card h4{
  margin:0 0 12px!important;
  line-height:1.2!important;
}
body .gs360-company-shell .gs360-detail-payment-card label{
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-detail-payment-card textarea{
  min-height:78px!important;
  padding:10px 12px!important;
  resize:vertical;
}
body .gs360-company-shell .gs360-detail-payment-card .gs360-form-grid.two{
  grid-template-columns:.8fr 1fr 1fr!important;
  gap:12px!important;
  align-items:end;
}
body .gs360-company-shell .gs360-detail-payment-card .gs360-company-help{
  margin:10px 0 0!important;
  line-height:1.4!important;
}
@media(max-width:1180px){
  body .gs360-company-shell .gs360-essential-layout{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "ident priority"
      "ident schedule"
      "more more";
  }
  body .gs360-company-shell .gs360-detail-payment-layout{grid-template-columns:1fr;}
  body .gs360-company-shell .gs360-detail-payment-card .gs360-form-grid.two{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-deadline-form-panel{padding:14px 12px!important;}
  body .gs360-company-shell .gs360-essential-layout{
    grid-template-columns:1fr;
    grid-template-areas:"ident" "priority" "schedule" "more";
    gap:10px;
  }
  body .gs360-company-shell .gs360-essential-card,
  body .gs360-company-shell .gs360-detail-payment-card{padding:14px!important;}
  body .gs360-company-shell .gs360-detail-payment-card .gs360-form-grid.two{grid-template-columns:1fr!important;}
}


/* CR-089.1 — Centro Notifiche: tab più leggibili e WhatsApp condizionale. */
body .gs360-company-shell .gs360-notice-tabs-nav{
  grid-template-columns:repeat(var(--gs360-notice-tab-count,6),minmax(0,1fr))!important;
}
body .gs360-company-shell .gs360-notice-tabs-nav button{
  min-height:48px!important;
  padding:10px 14px!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
body .gs360-company-shell .gs360-notification-kpi-grid{
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
}
body .gs360-company-shell .gs360-notice-channel-grid-2x3{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;
}
@media (max-width:1180px){
  body .gs360-company-shell .gs360-notice-tabs-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-notice-tabs-nav{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-notice-tabs-nav button{font-size:15px!important;}
}


/* CR-089.2 — Cruscotto Notifiche: card responsive, testi contenuti e badge allineati. */
body .gs360-company-shell .gs360-notice-channel-grid-2x3{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
body .gs360-company-shell .gs360-notice-channel-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  min-width:0!important;
  min-height:178px!important;
  height:100%!important;
  overflow:hidden!important;
  padding:16px!important;
}
body .gs360-company-shell .gs360-notice-channel-card h4{
  width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body .gs360-company-shell .gs360-notice-channel-card p{
  width:100%!important;
  min-width:0!important;
  margin-bottom:12px!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-notice-channel-card > strong{
  margin-top:auto!important;
  flex:0 0 auto!important;
}
@media (max-width:1180px){
  body .gs360-company-shell .gs360-notice-channel-grid-2x3{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell .gs360-notice-channel-grid-2x3{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell .gs360-notice-channel-card{
    min-height:160px!important;
  }
}


/* =====================================================
 * CR-091.1 — Calendario mensile completo e compatto
 * dentro Scadenze prossime. Andamento annuale invariato.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules{margin:16px 0 14px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid-calendar{grid-template-columns:minmax(0,1.45fr) minmax(360px,.75fr)!important;align-items:start!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card{min-width:0!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:20px 0 10px;padding-top:16px;border-top:1px solid #e2e8f0;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head h4{margin:2px 0 0;color:#071b4d;font-size:18px;line-height:1.2;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head>a{flex:0 0 auto;padding:8px 12px;border:1px solid #b9d3f4;border-radius:999px;color:#0757bd;background:#fff;text-decoration:none;font-size:11px;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll{max-width:100%;overflow:visible;border:1px solid #d9e5f2;border-radius:16px;background:#f8fbff;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar{width:100%;min-width:0;padding:8px;box-sizing:border-box;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays,body .gs360-company-shell #dashboard .gs360-dashboard-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays{margin-bottom:4px;background:#f8fbff;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays span{display:grid;place-items:center;min-height:25px;border-radius:7px;background:#eef3f9;color:#52647f;font-size:9px;font-weight:900;text-transform:uppercase;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day{min-width:0;min-height:72px;padding:6px;border:1px solid #d6e2ef;border-radius:9px;background:#fff;color:#071b4d;overflow:hidden;box-sizing:border-box;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day.is-empty{border-color:transparent;background:transparent;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day.has-events{border-color:#35a853;background:#f7fff9;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day.is-today{box-shadow:inset 0 0 0 2px #2563eb;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day>strong{display:block;font-size:14px;line-height:1;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span{display:block;margin-top:4px;color:#8090a6;font-size:8px;font-weight:800;white-space:nowrap;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-events{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:5px;min-width:0;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-events a{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:2px 4px;border-radius:999px;background:#e7f0ff;color:#0757bd;text-decoration:none;white-space:nowrap;font-size:7px;font-weight:900;box-sizing:border-box;}
@media(max-width:1180px){body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid-calendar{grid-template-columns:1fr!important;}body .gs360-company-shell #dashboard .gs360-dashboard-month-day{min-height:82px;}body .gs360-company-shell #dashboard .gs360-dashboard-month-events a{font-size:8px;}}
@media(max-width:760px){body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head{align-items:flex-start;flex-direction:column;}body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll{overflow-x:auto;}body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar{min-width:700px;}body .gs360-company-shell #dashboard .gs360-dashboard-month-day{min-height:76px;}}


/* =====================================================
 * CR-091.3 — Dashboard desktop in singola videata
 * Calendario mensile completo senza scroll verticale pagina.
 * Andamento annuale solo riallineato dimensionalmente.
 * ===================================================== */
@media (min-width:1181px) and (min-height:760px){
  body .gs360-company-shell #dashboard{
    padding-bottom:78px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-hero-brand{
    min-height:112px!important;
    padding:10px 18px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-hero-logo{
    max-height:64px!important;
    width:auto!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-hero-copy h2{
    margin:0 0 2px!important;
    font-size:26px!important;
    line-height:1.05!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-hero-copy p{
    font-size:11px!important;
    line-height:1.2!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules{
    margin:8px 0!important;
    gap:7px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards > a > article{
    min-height:94px!important;
    padding:9px 7px!important;
    gap:6px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards .gs360-module-card-icon{
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards h3{
    margin:0 0 2px!important;
    font-size:12px!important;
  }
  body .gs360-company-shell #dashboard .gs360-company-module-cards p{
    font-size:8px!important;
    line-height:1.15!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid-calendar{
    grid-template-columns:minmax(0,1.48fr) minmax(350px,.78fr)!important;
    align-items:stretch!important;
    gap:10px!important;
    margin-bottom:0!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card,
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{
    min-height:0!important;
    height:466px!important;
    padding:12px!important;
    border-radius:18px!important;
    overflow:hidden!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-panel-head{
    margin-bottom:8px!important;
    gap:8px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-panel-head h3{
    margin:1px 0 2px!important;
    font-size:19px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-panel-head p{
    font-size:10px!important;
    line-height:1.15!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-panel-head>a{
    padding:6px 10px!important;
    font-size:10px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary{
    gap:6px!important;
    margin-bottom:7px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary span{
    min-height:44px!important;
    padding:6px 9px!important;
    font-size:8px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary strong{
    font-size:17px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-list{
    max-height:55px!important;
    min-height:55px!important;
    overflow-y:auto!important;
    gap:4px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item{
    grid-template-columns:52px 1fr 10px 14px!important;
    min-height:50px!important;
    padding:5px 8px!important;
    gap:7px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item time{
    min-height:40px!important;
    font-size:14px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item div strong{
    font-size:11px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item div span{
    margin-top:1px!important;
    font-size:8px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head{
    margin:7px 0 5px!important;
    padding-top:7px!important;
    align-items:center!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head h4{
    font-size:14px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head>a{
    padding:5px 9px!important;
    font-size:8px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar{
    padding:5px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-grid{
    gap:2px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays{
    margin-bottom:2px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays span{
    min-height:18px!important;
    font-size:7px!important;
    border-radius:5px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day{
    min-height:43px!important;
    height:43px!important;
    padding:3px 4px!important;
    border-radius:6px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day>strong{
    font-size:10px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span{
    margin-top:2px!important;
    font-size:6px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-events{
    gap:1px!important;
    margin-top:2px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-events a{
    padding:1px 3px!important;
    font-size:5.5px!important;
    line-height:1.15!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{
    min-height:350px!important;
    height:350px!important;
    padding:10px 8px 4px 34px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a{
    height:300px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>span{
    height:225px!important;
  }
}
@media (min-width:1181px) and (max-height:820px){
  body .gs360-company-shell #dashboard .gs360-company-hero-brand{min-height:96px!important;}
  body .gs360-company-shell #dashboard .gs360-company-hero-logo{max-height:54px!important;}
  body .gs360-company-shell #dashboard .gs360-company-module-cards > a > article{min-height:82px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card,
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{height:430px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day{min-height:38px!important;height:38px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{min-height:315px!important;height:315px!important;}
}


/* =====================================================
 * CR-092 — Calendari cliccabili e ottimizzazione andamento annuale
 * ===================================================== */
body .gs360-company-shell [data-gs360-new-deadline-url]{cursor:pointer;position:relative;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
body .gs360-company-shell [data-gs360-new-deadline-url]:hover,
body .gs360-company-shell [data-gs360-new-deadline-url]:focus-visible{border-color:#27a94f!important;box-shadow:0 0 0 2px rgba(39,169,79,.13)!important;outline:none}
body .gs360-company-shell [data-gs360-new-deadline-url] a{position:relative;z-index:2}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{display:flex!important;flex-direction:column!important}
body .gs360-company-shell #dashboard .gs360-dashboard-chart-card .gs360-dashboard-impact-chart{flex:1!important;align-content:end!important;background:
 linear-gradient(to top,rgba(139,158,184,.16) 1px,transparent 1px) 0 100%/100% 25%,#fff!important;border:1px solid #dce7f5!important;border-radius:14px!important}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>span{border-bottom:1px solid #cbd8e9!important}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a i{max-width:24px!important;margin:0 auto!important;box-shadow:0 5px 12px rgba(20,105,58,.13)!important}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a.is-current i{background:linear-gradient(180deg,#348bf2,#0b5fc7)!important}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a>strong{font-size:11px!important;color:#0b2858!important}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart a em{font-size:9px!important;color:#516681!important}


/* =====================================================
 * CR-092.1 — Calendario Dashboard completo e scorrevole
 * Riquadri Scadenze prossime / Andamento annuale allineati.
 * ===================================================== */
@media (min-width:1181px){
  body .gs360-company-shell #dashboard .gs360-dashboard-focus-grid-calendar{
    align-items:stretch!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card,
  body .gs360-company-shell #dashboard .gs360-dashboard-chart-card{
    height:100%!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-card{
    display:flex!important;
    flex-direction:column!important;
    min-height:430px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:258px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-gutter:stable!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll::-webkit-scrollbar{
    width:8px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll::-webkit-scrollbar-thumb{
    background:#b8c8dc!important;
    border:2px solid #f8fbff!important;
    border-radius:999px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll::-webkit-scrollbar-track{
    background:#f8fbff!important;
    border-radius:999px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-grid{
    grid-auto-rows:minmax(38px,auto)!important;
    align-items:stretch!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day{
    min-height:38px!important;
    height:auto!important;
  }
}
@media (min-width:1181px) and (max-height:820px){
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll{
    max-height:210px!important;
  }
}


/* =====================================================
 * CR-092.3 — Frecce di navigazione Dashboard coerenti
 * con il calendario grande (laterali sinistra/destra).
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-actions .gs360-dashboard-month-open{flex:0 0 auto;padding:8px 12px;border:1px solid #b9d3f4;border-radius:999px;color:#0757bd;background:#fff;text-decoration:none;font-size:11px;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-stage{display:flex;align-items:stretch;gap:10px;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-side-nav{width:42px;min-width:42px;display:flex;align-items:center;justify-content:center;border-radius:16px;border:1px solid #d8e5f3;background:#ffffff;color:#071b4d;text-decoration:none;font-size:22px;font-weight:900;box-shadow:0 10px 24px rgba(7,27,77,.06);transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-side-nav:hover{background:#123f3a;border-color:#123f3a;color:#ffffff;transform:translateY(-1px);}
body .gs360-company-shell #dashboard .gs360-dashboard-month-side-nav.is-disabled{color:#aab7c8;border-color:#e0e7ef;background:#f4f7fa;box-shadow:none;cursor:not-allowed;transform:none;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-stage .gs360-dashboard-month-calendar-scroll{flex:1 1 auto;}
@media (min-width:1181px) and (min-height:760px){body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-actions .gs360-dashboard-month-open{padding:5px 9px;font-size:8px;}body .gs360-company-shell #dashboard .gs360-dashboard-month-side-nav{width:34px;min-width:34px;font-size:18px;border-radius:14px;}}
@media(max-width:760px){body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;}body .gs360-company-shell #dashboard .gs360-dashboard-month-stage{gap:6px;}body .gs360-company-shell #dashboard .gs360-dashboard-month-side-nav{width:34px;min-width:34px;font-size:18px;border-radius:12px;}}


/* =====================================================
 * CR-093 — STEP 2: Profilo Azienda e Tabelle unificate
 * ===================================================== */
body .gs360-company-shell .gs360-profile-legacy-kpi,
body .gs360-company-shell .gs360-profile-tablist-legacy{display:none!important;}
body .gs360-company-shell .gs360-profile-hero-step2{align-items:center!important;}
body .gs360-company-shell .gs360-profile-step2-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px;}
body .gs360-company-shell .gs360-profile-step2-kpis>div{display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto auto;align-items:center;gap:2px 10px;padding:14px 16px;background:#fff;border:1px solid #dce6f1;border-radius:16px;}
body .gs360-company-shell .gs360-profile-step2-kpis svg{width:25px;height:25px;}
body .gs360-company-shell .gs360-profile-step2-kpis strong{font-size:22px;color:#071b4d;}
body .gs360-company-shell .gs360-profile-step2-kpis span:not(.gs360-profile-step2-kpi-icon){font-weight:800;color:#17305e;}
body .gs360-company-shell .gs360-profile-step2-kpis small{grid-column:2/4;color:#667993;}
body .gs360-company-shell .gs360-profile-step2-kpi-icon{grid-row:1/3;color:#11a849;}
body .gs360-company-shell .gs360-profile-step2-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px;background:#fff;border:1px solid #dce6f1;border-radius:18px;margin-bottom:18px;}
body .gs360-company-shell .gs360-profile-step2-nav>a,body .gs360-company-shell .gs360-profile-step2-nav>button{appearance:none;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:20px;background:#fff;border:1px solid #dce6f1;border-radius:15px;text-align:left;text-decoration:none;color:#071b4d;cursor:pointer;}
body .gs360-company-shell .gs360-profile-step2-nav>a:hover,body .gs360-company-shell .gs360-profile-step2-nav>button:hover,body .gs360-company-shell .gs360-profile-step2-nav>.is-active{border-color:#18a84b;box-shadow:inset 0 -3px 0 #18a84b;}
body .gs360-company-shell .gs360-profile-step2-nav svg{width:34px;height:34px;color:#16a34a;}
body .gs360-company-shell .gs360-profile-step2-nav strong{display:block;font-size:15px;}
body .gs360-company-shell .gs360-profile-step2-nav small{display:block;margin-top:4px;color:#657590;}
body .gs360-company-shell .gs360-profile-step2-nav b{font-size:24px;}
body .gs360-company-shell .gs360-tables-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:24px!important;}
body .gs360-company-shell .gs360-tables-summary{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;min-width:min(620px,55%);}
body .gs360-company-shell .gs360-tables-summary>div{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;padding:14px 16px;border:1px solid #dce6f1;border-radius:15px;background:#fff;}
body .gs360-company-shell .gs360-tables-summary strong{grid-row:1/3;font-size:23px;color:#071b4d;}
body .gs360-company-shell .gs360-tables-summary span{font-weight:800;color:#17305e;}
body .gs360-company-shell .gs360-tables-summary small{color:#657590;}
body .gs360-company-shell .gs360-config-groups-all{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group{display:block!important;padding:18px!important;border:1px solid #dce6f1!important;border-radius:18px!important;background:#fff!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group[hidden]{display:block!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
body .gs360-company-shell .gs360-config-groups-all #gs360-config-panel-persone .gs360-company-module-cards,body .gs360-company-shell .gs360-config-groups-all #gs360-config-panel-documenti .gs360-company-module-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body .gs360-company-shell .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body .gs360-company-shell .gs360-profile-exclusive-banner{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 16px;border:1px solid #bfe8cf;border-radius:15px;background:#f3fcf6;}
body .gs360-company-shell .gs360-profile-exclusive-banner>span svg{width:28px;height:28px;color:#0f9f43;}
body .gs360-company-shell .gs360-profile-exclusive-banner div{flex:1;}
body .gs360-company-shell .gs360-profile-exclusive-banner strong{display:block;color:#071b4d;}
body .gs360-company-shell .gs360-profile-exclusive-banner p{margin:3px 0 0;color:#60728c;}
body .gs360-company-shell .gs360-profile-exclusive-banner a{padding:9px 12px;border:1px solid #9bd5b0;border-radius:10px;color:#087c35;text-decoration:none;font-weight:800;background:#fff;}
@media(max-width:1180px){body .gs360-company-shell .gs360-profile-step2-kpis,body .gs360-company-shell .gs360-profile-step2-nav{grid-template-columns:repeat(2,minmax(0,1fr));}body .gs360-company-shell .gs360-tables-head{display:block!important;}body .gs360-company-shell .gs360-tables-summary{min-width:0;margin-top:14px;}body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:680px){body .gs360-company-shell .gs360-profile-step2-kpis,body .gs360-company-shell .gs360-profile-step2-nav,body .gs360-company-shell .gs360-tables-summary,body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards{grid-template-columns:1fr!important;}body .gs360-company-shell .gs360-profile-exclusive-banner{align-items:flex-start;flex-wrap:wrap;}}


/* =====================================================
 * CR-093.1 — Allineamento fedele ai mockup approvati
 * Profilo Azienda + Tabelle
 * ===================================================== */
body .gs360-company-shell .gs360-profile-step2-nav{padding:20px 24px 8px;background:#fff;border:1px solid #dce6f1;border-radius:18px 18px 0 0;margin-bottom:0;}
body .gs360-company-shell .gs360-profile-step2-nav>button{padding:18px 22px;border-radius:18px;}
body .gs360-company-shell .gs360-profile-tabs{background:#fff;border:1px solid #dce6f1;border-top:0;border-radius:0 0 18px 18px;padding:18px 18px 6px;margin-bottom:18px;}
body .gs360-company-shell .gs360-profile-tab-panel{display:none;}
body .gs360-company-shell .gs360-profile-tab-panel.is-active{display:block;}
body .gs360-company-shell .gs360-profile-panel-step2{border:0;box-shadow:none;padding:0;background:transparent;}
body .gs360-company-shell .gs360-profile-step2-cards.is-anagrafica{display:grid;grid-template-columns:1.15fr 1fr 1fr .68fr;gap:16px;align-items:stretch;}
body .gs360-company-shell .gs360-profile-card-block,body .gs360-company-shell .gs360-profile-status-card,body .gs360-company-shell .gs360-profile-service-card,body .gs360-company-shell .gs360-profile-summary-card,body .gs360-company-shell .gs360-sede-card{background:#fff;border:1px solid #dce6f1;border-radius:18px;padding:18px;box-shadow:0 10px 24px rgba(7,27,77,.04);} 
body .gs360-company-shell .gs360-profile-card-block-head{display:flex;align-items:center;gap:12px;margin:0 0 14px;}
body .gs360-company-shell .gs360-profile-card-block-head h4{margin:0;font-size:17px;color:#071b4d;}
body .gs360-company-shell .gs360-profile-card-block-icon{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;border:1px solid #dce6f1;background:#f7fbff;color:#2563eb;}
body .gs360-company-shell .gs360-profile-card-block-icon svg{width:28px;height:28px;}
body .gs360-company-shell .gs360-profile-card-block-icon.is-green{background:#f1fbf4;color:#16a34a;}
body .gs360-company-shell .gs360-profile-card-block-icon.is-violet{background:#f7f3ff;color:#7c3aed;}
body .gs360-company-shell .gs360-profile-card-block-icon.is-soft-green{background:#f3fcf6;color:#16a34a;}
body .gs360-company-shell .gs360-profile-card-block-icon.is-soft-blue{background:#eff6ff;color:#2563eb;}
body .gs360-company-shell .gs360-profile-data-list{display:grid;gap:10px;}
body .gs360-company-shell .gs360-profile-data-list>div{display:flex;justify-content:space-between;gap:14px;padding-bottom:10px;border-bottom:1px solid #edf2f7;}
body .gs360-company-shell .gs360-profile-data-list>div:last-child{border-bottom:0;padding-bottom:0;}
body .gs360-company-shell .gs360-profile-data-list span{color:#60728c;font-size:13px;font-weight:700;}
body .gs360-company-shell .gs360-profile-data-list strong{color:#071b4d;font-size:15px;text-align:right;}
body .gs360-company-shell .gs360-profile-card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}
body .gs360-company-shell .gs360-outline-btn,body .gs360-company-shell .gs360-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:1px solid #cfd9e8;border-radius:12px;background:#fff;color:#17305e;text-decoration:none;font-weight:800;}
body .gs360-company-shell .gs360-icon-btn{width:44px;padding:0;font-size:18px;}
body .gs360-company-shell .gs360-outline-btn[disabled],body .gs360-company-shell .gs360-btn-primary[disabled],body .gs360-company-shell .gs360-icon-btn[disabled]{opacity:.72;cursor:not-allowed;}
body .gs360-company-shell .gs360-profile-status-card{display:flex;flex-direction:column;}
body .gs360-company-shell .gs360-profile-status-card p{margin:0 0 14px;color:#60728c;}
body .gs360-company-shell .gs360-profile-status-card ul{list-style:none;padding:0;margin:0;display:grid;gap:12px;}
body .gs360-company-shell .gs360-profile-status-card li{padding-left:28px;position:relative;color:#60728c;font-weight:700;}
body .gs360-company-shell .gs360-profile-status-card li:before{content:'•';position:absolute;left:10px;top:0;color:#b6c2d1;}
body .gs360-company-shell .gs360-profile-status-card li.is-ok:before{color:#16a34a;}
body .gs360-company-shell .gs360-profile-status-footer{margin-top:auto;padding-top:14px;border-top:1px solid #edf2f7;display:grid;gap:12px;}
body .gs360-company-shell .gs360-profile-section-top-actions{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px;}
body .gs360-company-shell .gs360-profile-inline-actions{display:flex;gap:10px;flex-wrap:wrap;}
body .gs360-company-shell .gs360-profile-inline-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px;}
body .gs360-company-shell .gs360-profile-inline-kpis>div{display:flex;align-items:center;gap:12px;padding:18px;background:#fff;border:1px solid #dce6f1;border-radius:16px;}
body .gs360-company-shell .gs360-profile-inline-kpis strong{font-size:28px;color:#071b4d;}
body .gs360-company-shell .gs360-profile-inline-kpis small{color:#60728c;line-height:1.4;}
body .gs360-company-shell .gs360-profile-mini-icon{width:50px;height:50px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#f7fbff;color:#16a34a;border:1px solid #dce6f1;}
body .gs360-company-shell .gs360-profile-mini-icon.is-blue{color:#2563eb;background:#eff6ff;} body .gs360-company-shell .gs360-profile-mini-icon.is-violet{color:#7c3aed;background:#f7f3ff;}
body .gs360-company-shell .gs360-profile-step2-cards.is-sedi-grid{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start;}
body .gs360-company-shell .gs360-sedi-cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
body .gs360-company-shell .gs360-sede-card-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap;}
body .gs360-company-shell .gs360-sede-card h4{margin:0 0 12px;color:#071b4d;font-size:22px;}
body .gs360-company-shell .gs360-sede-card dl{margin:0;display:grid;gap:8px;}
body .gs360-company-shell .gs360-sede-card dl>div{display:grid;grid-template-columns:100px 1fr;gap:12px;padding-bottom:8px;border-bottom:1px solid #edf2f7;}
body .gs360-company-shell .gs360-sede-card dt{color:#60728c;font-size:13px;font-weight:700;}body .gs360-company-shell .gs360-sede-card dd{margin:0;color:#071b4d;font-weight:700;}
body .gs360-company-shell .gs360-sede-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}
body .gs360-company-shell .gs360-panorama-list{display:grid;gap:12px;}
body .gs360-company-shell .gs360-panorama-list div{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center;padding:8px 0;border-bottom:1px solid #edf2f7;}
body .gs360-company-shell .gs360-panorama-list div:last-child{border-bottom:0;}
body .gs360-company-shell .gs360-panorama-list strong{color:#071b4d;}body .gs360-company-shell .gs360-panorama-list small{grid-column:2;color:#60728c;}
body .gs360-company-shell .gs360-panorama-dot{width:12px;height:12px;border-radius:999px;display:block;background:#16a34a;}body .gs360-company-shell .gs360-panorama-dot.is-blue{background:#2563eb;}body .gs360-company-shell .gs360-panorama-dot.is-violet{background:#7c3aed;}
body .gs360-company-shell .gs360-profile-step2-cards.is-triple{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
body .gs360-company-shell .gs360-profile-summary-card{display:flex;flex-direction:column;gap:12px;}
body .gs360-company-shell .gs360-profile-summary-card p{margin:0;color:#60728c;}
body .gs360-company-shell .gs360-profile-summary-card ul{margin:0;padding-left:18px;display:grid;gap:8px;color:#17305e;}
body .gs360-company-shell .gs360-profile-summary-card .gs360-btn-primary{margin-top:auto;justify-content:center;}
body .gs360-company-shell .gs360-btn-primary.is-blue{background:#2563eb;border-color:#2563eb;} body .gs360-company-shell .gs360-btn-primary.is-violet{background:#7c3aed;border-color:#7c3aed;}
body .gs360-company-shell .gs360-profile-service-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px;}
body .gs360-company-shell .gs360-profile-service-kpis>div{padding:18px;border:1px solid #dce6f1;border-radius:16px;background:#fff;display:grid;gap:4px;}
body .gs360-company-shell .gs360-profile-service-kpis span{font-size:13px;color:#60728c;font-weight:700;}body .gs360-company-shell .gs360-profile-service-kpis strong{font-size:26px;color:#071b4d;}body .gs360-company-shell .gs360-profile-service-kpis small{color:#60728c;}
body .gs360-company-shell .gs360-profile-step2-cards.is-service-grid{display:grid;grid-template-columns:1fr 1.08fr .95fr;gap:16px;}
body .gs360-company-shell .gs360-profile-service-card h4{margin:0 0 14px;color:#071b4d;font-size:24px;}
body .gs360-company-shell .gs360-plan-box{padding:18px;border:1px solid #dce6f1;border-radius:16px;background:#fbfdfb;display:grid;gap:10px;margin-bottom:14px;}body .gs360-company-shell .gs360-plan-box strong{font-size:38px;color:#071b4d;}body .gs360-company-shell .gs360-plan-box p{margin:0;color:#60728c;}
body .gs360-company-shell .gs360-moduli-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
body .gs360-company-shell .gs360-moduli-list li{display:grid;grid-template-columns:120px 1fr auto;gap:10px;padding:10px 0;border-bottom:1px solid #edf2f7;align-items:center;}
body .gs360-company-shell .gs360-moduli-list li:last-child{border-bottom:0;}body .gs360-company-shell .gs360-moduli-list strong{color:#071b4d;}body .gs360-company-shell .gs360-moduli-list span{color:#60728c;font-size:13px;}body .gs360-company-shell .gs360-moduli-list em{font-style:normal;background:#eaf9ef;color:#138a3d;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;}
body .gs360-company-shell .gs360-limit-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin:0 0 8px;}body .gs360-company-shell .gs360-limit-row strong{display:block;color:#071b4d;}body .gs360-company-shell .gs360-limit-row small{display:block;color:#60728c;}body .gs360-company-shell .gs360-limit-row span{color:#60728c;font-size:13px;font-weight:700;}
body .gs360-company-shell .gs360-limit-bar{height:7px;border-radius:999px;background:#e4ecf4;overflow:hidden;margin:0 0 14px;}body .gs360-company-shell .gs360-limit-bar i{display:block;height:100%;background:#16a34a;border-radius:999px;}body .gs360-company-shell .gs360-limit-bar.is-blue i{background:#2563eb;}body .gs360-company-shell .gs360-limit-bar.is-violet i{background:#7c3aed;}body .gs360-company-shell .gs360-limit-bar.is-green i{background:#16a34a;}
/* Tabelle: compatta come mockup approvato */
body .gs360-company-shell .gs360-config-groups-all{gap:16px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group{padding:18px 18px 16px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group-head{margin:0 0 14px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group-head h3{font-size:18px!important;line-height:1.2!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group-head p{font-size:13px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards{gap:14px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards > a > article{min-height:auto!important;height:auto!important;padding:18px 18px!important;display:grid!important;grid-template-columns:58px 1fr 22px!important;gap:14px!important;align-items:center!important;text-align:left!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards article > em{top:9px!important;right:10px!important;font-size:10px!important;padding:4px 8px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards article > div{align-items:flex-start!important;min-width:0;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards article h3{font-size:17px!important;margin:0 0 4px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards article p{max-width:none!important;margin:0!important;font-size:12px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards > a > article:after{content:'›';font-size:26px;font-weight:900;color:#17305e;justify-self:end;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards .gs360-module-card-icon{width:58px!important;height:58px!important;min-width:58px!important;border-radius:18px!important;}
body .gs360-company-shell .gs360-config-groups-all #gs360-config-panel-persone .gs360-config-group-head h3{color:#179b4a!important;}body .gs360-company-shell .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-config-group-head h3{color:#0891b2!important;}body .gs360-company-shell .gs360-config-groups-all #gs360-config-panel-documenti .gs360-config-group-head h3{color:#2563eb!important;}body .gs360-company-shell .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-config-group-head h3{color:#ea6b00!important;}
@media(max-width:1400px){body .gs360-company-shell .gs360-profile-step2-cards.is-anagrafica{grid-template-columns:repeat(2,minmax(0,1fr));}body .gs360-company-shell .gs360-profile-step2-cards.is-sedi-grid{grid-template-columns:1fr;}body .gs360-company-shell .gs360-sedi-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));}body .gs360-company-shell .gs360-profile-step2-cards.is-service-grid{grid-template-columns:1fr;} }
@media(max-width:1180px){body .gs360-company-shell .gs360-profile-step2-cards.is-triple,body .gs360-company-shell .gs360-profile-inline-kpis,body .gs360-company-shell .gs360-profile-service-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}body .gs360-company-shell .gs360-moduli-list li{grid-template-columns:1fr auto;} }
@media(max-width:860px){body .gs360-company-shell .gs360-profile-step2-cards.is-anagrafica,body .gs360-company-shell .gs360-sedi-cards-grid,body .gs360-company-shell .gs360-profile-step2-cards.is-triple,body .gs360-company-shell .gs360-profile-inline-kpis,body .gs360-company-shell .gs360-profile-service-kpis{grid-template-columns:1fr;}body .gs360-company-shell .gs360-profile-section-top-actions{display:block;}body .gs360-company-shell .gs360-profile-inline-actions{margin-top:12px;}body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards > a > article{grid-template-columns:58px 1fr 16px!important;} }

/* =====================================================
 * CR-093.2 — Allineamento grafico definitivo ai mockup
 * Tabelle + Profilo Azienda / desktop, tablet e mobile
 * ===================================================== */
body .gs360-company-shell #configurazioni{padding-bottom:110px!important;}
body .gs360-company-shell #profilo-azienda{padding-bottom:110px!important;}

/* TABELLE: override ad alta specificità per neutralizzare il layout verticale precedente */
body .gs360-company-shell #configurazioni .gs360-config-groups-all{gap:12px!important;}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group{
  padding:16px 18px!important;
  border-radius:16px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group-head{
  display:block!important;
  margin:0 0 12px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group-head h3{
  margin:0 0 3px!important;
  font-size:18px!important;
  line-height:1.2!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group-head p{
  margin:0!important;
  font-size:12px!important;
  line-height:1.35!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards{
  gap:12px!important;
  align-items:stretch!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-persone .gs360-company-module-cards,
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-documenti .gs360-company-module-cards{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-company-module-cards{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  max-width:65%!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a{
  display:block!important;
  height:100%!important;
  min-width:0!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article{
  position:relative!important;
  min-height:86px!important;
  height:100%!important;
  padding:14px 42px 14px 14px!important;
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  justify-content:initial!important;
  gap:12px!important;
  text-align:left!important;
  overflow:visible!important;
  border-radius:14px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article>.gs360-module-card-icon{
  grid-column:1!important;
  grid-row:1!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  margin:0!important;
  border-radius:16px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article>div{
  grid-column:2!important;
  grid-row:1!important;
  width:auto!important;
  min-width:0!important;
  display:block!important;
  text-align:left!important;
  align-items:initial!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article h3{
  margin:0 0 4px!important;
  font-size:14px!important;
  line-height:1.2!important;
  text-align:left!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article p{
  margin:0!important;
  max-width:none!important;
  font-size:10px!important;
  line-height:1.3!important;
  text-align:left!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article>em{
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  left:auto!important;
  font-size:8px!important;
  line-height:1!important;
  padding:3px 6px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article:after{
  content:'›'!important;
  position:absolute!important;
  right:14px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  font-size:22px!important;
  font-weight:900!important;
  color:#071b4d!important;
}

/* PROFILO AZIENDA: margini, respirazione e coerenza con i mockup */
body .gs360-company-shell #profilo-azienda .gs360-profile-hero-step2{
  padding:22px 24px!important;
  margin-bottom:14px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-kpis{
  gap:12px!important;
  margin-bottom:14px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-kpis>div{
  padding:16px 18px!important;
  min-height:72px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-nav{
  padding:14px!important;
  gap:12px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-nav>button{
  min-height:70px!important;
  padding:14px 18px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-tabs{
  padding:20px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-panel-step2>.gs360-company-panel-head,
body .gs360-company-shell #profilo-azienda .gs360-profile-section-top-actions{
  margin-bottom:16px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-panel-step2>.gs360-company-panel-head h3,
body .gs360-company-shell #profilo-azienda .gs360-profile-section-top-actions h3{
  font-size:22px!important;
  line-height:1.2!important;
  margin-bottom:4px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-cards{
  gap:14px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-card-block,
body .gs360-company-shell #profilo-azienda .gs360-profile-status-card,
body .gs360-company-shell #profilo-azienda .gs360-profile-summary-card,
body .gs360-company-shell #profilo-azienda .gs360-profile-service-card,
body .gs360-company-shell #profilo-azienda .gs360-sede-card{
  padding:18px!important;
  border-radius:16px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-data-list>div{
  min-height:34px!important;
  align-items:center!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-data-list span{
  font-size:11px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-data-list strong{
  font-size:12px!important;
  overflow-wrap:anywhere!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-card-actions{
  margin-top:16px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-summary-card{
  min-height:260px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-summary-card .gs360-btn-primary{
  display:inline-flex!important;
  width:auto!important;
  min-width:130px!important;
  max-width:max-content!important;
  padding:10px 18px!important;
  border-radius:12px!important;
  align-self:flex-end!important;
  text-decoration:none!important;
  color:#fff!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-summary-card.is-users .gs360-btn-primary{background:#0d9f49!important;border-color:#0d9f49!important;}
body .gs360-company-shell #profilo-azienda .gs360-profile-summary-card.is-roles .gs360-btn-primary{background:#2563eb!important;border-color:#2563eb!important;}
body .gs360-company-shell #profilo-azienda .gs360-profile-summary-card.is-invites .gs360-btn-primary{background:#7c3aed!important;border-color:#7c3aed!important;}
body .gs360-company-shell #profilo-azienda .gs360-profile-inline-kpis>div{
  min-height:74px!important;
  padding:14px 16px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sedi-cards-grid{
  align-items:start!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sede-card{
  min-height:300px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-status-card.is-panorama{
  min-height:300px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-service-kpis>div{
  padding:16px 18px!important;
  min-height:78px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-cards.is-service-grid{
  align-items:stretch!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-service-card{
  min-height:360px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-service-card .gs360-profile-card-actions{
  margin-top:auto!important;
}

@media(max-width:1280px){
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{max-width:none!important;}
}
@media(max-width:980px){
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-persone .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-documenti .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:680px){
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-persone .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-documenti .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{grid-template-columns:1fr!important;}
  body .gs360-company-shell #profilo-azienda .gs360-profile-tabs{padding:12px!important;}
}


/* =====================================================
 * CR-093.3 — Torna a Tabelle su tutte le viste operative
 * ===================================================== */
body .gs360-company-shell .gs360-company-module-head-with-back{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
}
body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-back-to-tables{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:10px 14px!important;
  border:1px solid #cfd9e8!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#17305e!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:850!important;
  white-space:nowrap!important;
  box-shadow:0 5px 14px rgba(7,27,77,.04)!important;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease!important;
}
body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-back-to-tables:hover,
body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-back-to-tables:focus-visible{
  background:#123f3a!important;
  border-color:#123f3a!important;
  color:#fff!important;
  transform:translateY(-1px)!important;
  outline:none!important;
}
body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-back-to-tables span{
  font-size:18px!important;
  line-height:1!important;
}
body .gs360-company-shell .gs360-company-module-head-with-back>div{
  min-width:0!important;
}
@media(max-width:820px){
  body .gs360-company-shell .gs360-company-module-head-with-back{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }
  body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-back-to-tables{
    justify-self:start!important;
  }
  body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-btn-primary,
  body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-company-module-actions{
    justify-self:start!important;
  }
}


/* =====================================================
 * CR-093.4 — Box azioni Tabelle + footer comprimibile
 * ===================================================== */
body .gs360-company-shell .gs360-table-context-actions{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin:14px 0 16px;padding:14px 16px;background:#fff;
  border:1px solid #dce6f1;border-radius:16px;box-shadow:0 8px 22px rgba(7,27,77,.04);
}
body .gs360-company-shell .gs360-table-context-back,
body .gs360-company-shell .gs360-table-context-create{
  min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border-radius:11px;text-decoration:none;font-weight:850;line-height:1;
}
body .gs360-company-shell .gs360-table-context-back{
  padding:0 15px;border:1px solid #b9c8db;background:#fff;color:#17305e;
}
body .gs360-company-shell .gs360-table-context-back:hover{background:#f4f8fc;border-color:#8fa8c4;}
body .gs360-company-shell .gs360-table-context-create{
  margin:0!important;padding:0 18px!important;background:#155eef!important;border:1px solid #155eef!important;color:#fff!important;box-shadow:0 7px 16px rgba(21,94,239,.18)!important;
}
body .gs360-company-shell .gs360-table-context-create:hover{background:#0f4fd1!important;border-color:#0f4fd1!important;}
body .gs360-company-shell .gs360-company-module-head-with-back>.gs360-back-to-tables{display:none!important;}
body .gs360-company-shell .gs360-company-service-footer-fixed{transition:max-height .2s ease,padding .2s ease;}
body .gs360-company-shell .gs360-service-footer-toggle{
  width:42px;height:42px;min-width:42px;display:flex;align-items:center;justify-content:center;
  border:1px solid #d1deec;border-radius:12px;background:#fff;color:#17305e;
  font-size:21px;font-weight:900;cursor:pointer;align-self:center;
}
body .gs360-company-shell .gs360-service-footer-toggle:hover{background:#f4f8fc;border-color:#9fb3ca;}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed{
  min-height:52px!important;max-height:52px!important;padding-top:7px!important;padding-bottom:7px!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed .gs360-service-footer-grid,
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed .gs360-service-footer-mobile-details{
  display:none!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed .gs360-service-footer-head{
  min-width:190px;margin:0;
}
body .gs360-company-shell .gs360-service-footer-logout{display:none!important;}
@media(max-width:760px){
  body .gs360-company-shell .gs360-table-context-actions{flex-direction:column;align-items:stretch;padding:12px;}
  body .gs360-company-shell .gs360-table-context-back,body .gs360-company-shell .gs360-table-context-create{width:100%;box-sizing:border-box;}
  body .gs360-company-shell .gs360-service-footer-toggle{margin-left:auto;}
}


/* =====================================================
 * CR-093.7 — Barra servizio aziendale orizzontale consolidata
 * ===================================================== */
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed{
  transition:width .22s ease,right .22s ease,padding .22s ease,box-shadow .22s ease!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-toggle{
  order:99!important;
  margin-left:auto!important;
  width:42px!important;height:42px!important;min-width:42px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid #d1deec!important;border-radius:12px!important;
  background:#fff!important;color:#17305e!important;
  font-size:25px!important;line-height:1!important;font-weight:900!important;
  cursor:pointer!important;align-self:center!important;z-index:2!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-toggle:hover,
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-toggle:focus-visible{
  background:#f4f8fc!important;border-color:#9fb3ca!important;outline:none!important;
}
body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed.is-collapsed-horizontal{
  right:auto!important;
  width:340px!important;
  max-width:calc(100vw - 28px)!important;
  min-height:66px!important;
  padding:10px 12px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
  grid-template-areas:"head toggle"!important;
  align-items:center!important;
  gap:12px!important;
  overflow:hidden!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed-horizontal .gs360-service-footer-head{
  grid-area:head!important;
  min-width:0!important;width:auto!important;margin:0!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed-horizontal .gs360-service-footer-toggle{
  grid-area:toggle!important;margin-left:0!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed-horizontal .gs360-service-footer-grid,
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed-horizontal .gs360-service-footer-mobile-details{
  display:none!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed-horizontal .gs360-service-footer-kicker,
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed-horizontal .gs360-service-footer-head strong{
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed-horizontal .gs360-service-footer-head strong{
  font-size:13px!important;
}
@media(max-width:720px){
  body .gs360-company-shell .gs360-company-main .gs360-company-service-footer.gs360-company-service-footer-fixed.is-collapsed-horizontal{
    left:8px!important;right:auto!important;width:300px!important;max-width:calc(100vw - 16px)!important;
    grid-template-columns:minmax(0,1fr) 42px!important;grid-template-areas:"head toggle"!important;
    overflow:hidden!important;
  }
}


/* =====================================================
 * CR-093.8 — Profilo compatto, limiti trasparenti, Dashboard leggibile
 * ===================================================== */
/* Profilo Azienda: altezza aderente al contenuto, senza min-height dimostrative. */
body .gs360-company-shell #profilo-azienda .gs360-profile-summary-card,
body .gs360-company-shell #profilo-azienda .gs360-sede-card,
body .gs360-company-shell #profilo-azienda .gs360-profile-status-card.is-panorama,
body .gs360-company-shell #profilo-azienda .gs360-profile-service-card{
  min-height:0!important;
  height:auto!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-tab-panel.is-active,
body .gs360-company-shell #profilo-azienda .gs360-profile-panel-step2{
  min-height:0!important;
  height:auto!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-cards.is-service-grid{align-items:start!important;}
body .gs360-company-shell #profilo-azienda .gs360-profile-service-card .gs360-profile-card-actions{margin-top:18px!important;}
body .gs360-company-shell #profilo-azienda .gs360-limit-row-unavailable{align-items:center!important;}
body .gs360-company-shell #profilo-azienda .gs360-limit-row-unavailable span{color:#6b778c!important;font-weight:750!important;}
body .gs360-company-shell #profilo-azienda .gs360-limit-bar.is-neutral{background:#edf1f6!important;}
body .gs360-company-shell #profilo-azienda .gs360-limit-bar.is-neutral i{background:#a8b3c2!important;}

/* Dashboard: numeri, scadenze e calendario più leggibili senza alterare il layout. */
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary span{font-size:12px!important;line-height:1.25!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary strong{font-size:25px!important;line-height:1!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item time{font-size:15px!important;line-height:1.05!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item time small{font-size:10px!important;margin-top:3px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item strong{font-size:13px!important;line-height:1.25!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item span{font-size:10.5px!important;line-height:1.3!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays span{font-size:10px!important;font-weight:900!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day{font-size:11px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span:first-child,
body .gs360-company-shell #dashboard .gs360-dashboard-month-day-number{font-size:13px!important;font-weight:900!important;line-height:1!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-month-events a,
body .gs360-company-shell #dashboard .gs360-dashboard-month-events span{font-size:8.5px!important;line-height:1.2!important;font-weight:800!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart strong{font-size:12px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-impact-chart small{font-size:9px!important;}
@media(max-width:1100px){
  body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary strong{font-size:22px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span:first-child,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day-number{font-size:12px!important;}
}

/* =====================================================
 * CR-093.9 — Scroll verticale controllato + Dashboard leggibile
 * ===================================================== */
/* Evita la somma di riserve verticali duplicate introdotte dalle vecchie baseline. */
body:has(.gs360-company-shell){
  padding-bottom:0!important;
}
body .gs360-company-shell .gs360-company-main{
  min-height:100vh!important;
  padding-bottom:118px!important;
}
body .gs360-company-shell .gs360-company-view:last-child{
  margin-bottom:0!important;
}
/* Quando la barra servizio è compatta, riserva solo lo spazio realmente occupato. */
body:has(.gs360-company-service-footer-fixed.is-collapsed-horizontal) .gs360-company-main{
  padding-bottom:86px!important;
}
/* Profilo Azienda: niente altezza artificiale oltre il contenuto. */
body .gs360-company-shell #profilo-azienda,
body .gs360-company-shell #profilo-azienda .gs360-profile-tab-panel,
body .gs360-company-shell #profilo-azienda .gs360-profile-tab-panel.is-active,
body .gs360-company-shell #profilo-azienda .gs360-profile-panel-step2{
  min-height:0!important;
  height:auto!important;
  padding-bottom:0!important;
  margin-bottom:0!important;
}
/* Dashboard: calendario mensile e scadenze prossime più leggibili. */
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary strong{
  font-size:28px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-summary span{
  font-size:13px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item time{
  font-size:17px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item strong{
  font-size:14px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item span{
  font-size:11.5px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays span{
  font-size:11.5px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day,
body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span:first-child,
body .gs360-company-shell #dashboard .gs360-dashboard-month-day-number{
  font-size:14px!important;
  line-height:1.1!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-events a,
body .gs360-company-shell #dashboard .gs360-dashboard-month-events span{
  font-size:10px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
@media(max-width:1100px){
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span:first-child,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day-number{font-size:13px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-month-events a,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-events span{font-size:9.5px!important;}
}
@media(max-width:980px){
  body .gs360-company-shell .gs360-company-main,
  body:has(.gs360-company-service-footer-fixed.is-collapsed-horizontal) .gs360-company-main{
    min-height:auto!important;
    padding-bottom:24px!important;
  }
}


/* CR-094 — Gestione inline Categoria / Servizio nella scheda Scadenza. */
.gs360-config-context-link[type="button"]{font-family:inherit;cursor:pointer}
body.gs360-inline-manager-open{overflow:hidden}
.gs360-inline-manager[hidden]{display:none!important}
.gs360-inline-manager{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:24px}
.gs360-inline-manager-backdrop{position:absolute;inset:0;background:rgba(7,24,51,.58);backdrop-filter:blur(2px)}
.gs360-inline-manager-dialog{position:relative;width:min(720px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 40px));overflow:auto;background:#fff;border:1px solid #cbd9ea;border-radius:18px;box-shadow:0 28px 80px rgba(7,24,51,.28)}
.gs360-inline-manager-head{display:flex;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid #dce6f2}.gs360-inline-manager-head h3{margin:2px 0 4px;font-size:24px;color:#071f4d}.gs360-inline-manager-head p{margin:0;color:#5d708b}.gs360-inline-manager-x{flex:0 0 38px;width:38px;height:38px;border:1px solid #cbd9ea;border-radius:10px;background:#fff;color:#071f4d;font-size:24px;line-height:1;cursor:pointer}
.gs360-inline-manager-body{padding:20px 24px 24px}.gs360-inline-manager-toolbar{display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:16px}.gs360-inline-manager-toolbar input{min-height:44px;border:1px solid #bdcde0;border-radius:10px;padding:0 14px}
.gs360-inline-manager-list{display:grid;gap:8px;max-height:420px;overflow:auto}.gs360-inline-manager-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border:1px solid #d6e2ef;border-radius:11px;background:#fff;text-align:left;cursor:pointer}.gs360-inline-manager-row:hover,.gs360-inline-manager-row:focus{border-color:#2e78d2;background:#f3f8ff;outline:none}.gs360-inline-manager-row.is-new{border-color:#55b975;background:#effbf3}.gs360-inline-manager-row span{display:grid;gap:3px}.gs360-inline-manager-row strong{color:#071f4d}.gs360-inline-manager-row small{color:#6b7d96}.gs360-inline-manager-row em{font-style:normal;font-weight:800;color:#2474d2;font-size:12px}
.gs360-inline-manager-form{display:grid;gap:16px}.gs360-inline-manager-form label{display:grid;gap:7px}.gs360-inline-manager-form label>span,.gs360-inline-manager-status>span{font-weight:800;color:#071f4d}.gs360-inline-manager-form input,.gs360-inline-manager-form textarea{width:100%;border:1px solid #bdcde0;border-radius:10px;padding:11px 12px;background:#fff}.gs360-inline-manager-back{justify-self:start;border:0;background:transparent;color:#2474d2;font-weight:800;cursor:pointer;padding:0}.gs360-inline-manager-status{display:flex;justify-content:space-between;padding:12px 14px;border-radius:10px;background:#effbf3;color:#16853c}.gs360-inline-manager-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}.gs360-inline-manager-message{padding:11px 13px;margin-bottom:14px;border-radius:10px;font-weight:700}.gs360-inline-manager-message.is-error{background:#fff0f0;color:#b42318}.gs360-inline-manager-message.is-success{background:#effbf3;color:#16733a}.gs360-inline-manager-message.is-info{background:#eef5ff;color:#205ea8}
@media(max-width:640px){.gs360-inline-manager{padding:10px}.gs360-inline-manager-dialog{width:100%;max-height:calc(100vh - 20px);border-radius:14px}.gs360-inline-manager-head,.gs360-inline-manager-body{padding:16px}.gs360-inline-manager-toolbar{grid-template-columns:1fr}.gs360-inline-manager-toolbar .gs360-action-btn{justify-content:center}.gs360-inline-manager-actions{display:grid;grid-template-columns:1fr 1fr}.gs360-inline-manager-actions .gs360-action-btn{justify-content:center}}

/* =====================================================
 * CR-095 / 0.6.39.0-alpha — Utenti e accessi semplificati
 * Ambito: solo Profilo Azienda > Utenti e accessi.
 * ===================================================== */
body .gs360-company-shell [data-gs360-company-view="profilo-azienda"] .gs360-profile-card-block-icon,
body .gs360-company-shell [data-gs360-company-view="profilo-azienda"] [data-gs360-profile-card-tab] > span{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body .gs360-company-shell [data-gs360-company-view="profilo-azienda"] .gs360-profile-card-block-icon svg,
body .gs360-company-shell [data-gs360-company-view="profilo-azienda"] [data-gs360-profile-card-tab] > span svg{
  width:23px!important;
  height:23px!important;
  stroke-width:1.9!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-head h2{
  letter-spacing:-.02em;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-kpi-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-kpi-grid .gs360-company-card{
  min-height:108px!important;
  padding:18px!important;
  align-items:center!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-kpi-grid .gs360-company-card-icon{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  border-radius:14px!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-kpi-grid .gs360-company-card-icon svg{
  width:26px!important;
  height:26px!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-kpi-grid .gs360-company-card strong{
  font-size:27px!important;
  line-height:1!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-admin-note{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:15px 17px;
  margin:14px 0;
  border:1px solid #cfe1ff;
  border-radius:14px;
  background:#f5f9ff;
  color:#0c285d;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-admin-note > span{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#e7f0ff;
  color:#1e5ad7;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-admin-note svg{width:24px;height:24px;}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-admin-note p{margin:4px 0 0;line-height:1.5;}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-tabs{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  margin:16px 0!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-tabs a{
  min-height:50px!important;
  font-size:14px!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-table th:first-child,
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-table td:first-child{
  display:none!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-table th,
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-table td{
  vertical-align:middle!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-table td:nth-child(2){font-weight:700;}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-permission-explain{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-form-panel .gs360-team-onboarding-info article{
  min-height:112px;
}
@media (max-width:1100px){
  body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:720px){
  body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-kpi-grid,
  body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-tabs,
  body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-permission-explain{grid-template-columns:1fr!important;}
}

/* CR-095.1 - Accessi semplificati */
.gs360-simple-access-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;padding:18px;border:1px solid #dbe5f0;border-radius:16px;background:#f8fbff}.gs360-simple-access-grid h4,.gs360-simple-access-grid p{grid-column:1/-1;margin:0}.gs360-simple-access-grid p{color:#607086;margin-top:-6px}.gs360-access-profile-cards{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px;margin-top:18px}.gs360-access-profile-cards article{padding:22px;border:1px solid #dbe5f0;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,44,77,.06)}.gs360-access-profile-cards strong{display:block;font-size:18px;color:#123b66;margin-bottom:8px}.gs360-access-profile-cards p{margin:0 0 12px;color:#566a80}.gs360-access-profile-cards span{font-weight:700;color:#1673d1}@media(max-width:900px){.gs360-simple-access-grid{grid-template-columns:1fr 1fr}.gs360-access-profile-cards{grid-template-columns:1fr}}@media(max-width:620px){.gs360-simple-access-grid{grid-template-columns:1fr}}


/* CR-095.2 - Box azione Nuovo utente separato */
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-action-box{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;padding:16px 18px;border:1px solid #dbe5f0;border-radius:15px;background:#fff;box-shadow:0 6px 18px rgba(15,44,77,.045)}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-action-box>div{display:flex;flex-direction:column;gap:3px;min-width:0}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-action-box strong{font-size:15px;color:#102b55}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-action-box span{color:#62738a;line-height:1.35}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-action-box>a{flex:0 0 auto;min-height:42px;padding:0 18px}
@media(max-width:720px){body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-action-box{align-items:stretch;flex-direction:column}body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-access-action-box>a{width:100%;justify-content:center}}


/* =====================================================
 * CR-095.2.1 — Dashboard: calendario mensile più leggibile
 * Intervento circoscritto a titolo mese, intestazioni, giorni ed eventi.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head h4{
  font-size:22px!important;
  line-height:1.15!important;
  font-weight:900!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays span{
  font-size:13px!important;
  min-height:30px!important;
  letter-spacing:.02em!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day{
  min-height:46px!important;
  padding:7px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day>strong,
body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span:first-child,
body .gs360-company-shell #dashboard .gs360-dashboard-month-day-number{
  font-size:16px!important;
  line-height:1.05!important;
  font-weight:900!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span{
  font-size:10.5px!important;
  line-height:1.2!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-events a,
body .gs360-company-shell #dashboard .gs360-dashboard-month-events span{
  font-size:11px!important;
  line-height:1.25!important;
  padding:3px 5px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-month-side-nav{
  font-size:24px!important;
}
@media(max-width:1180px){
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head h4{font-size:20px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays span{font-size:12px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day>strong,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day>span:first-child,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day-number{font-size:15px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-month-events a,
  body .gs360-company-shell #dashboard .gs360-dashboard-month-events span{font-size:10.5px!important;}
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-head h4{font-size:19px!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day{min-height:72px!important;}
}

/* =====================================================
 * CR-095.2.2 — Calendario Dashboard adattivo senza scroll verticale
 * Ambito esclusivo: calendario mensile incorporato nella Dashboard Azienda.
 * ===================================================== */
@media (min-width:761px){
  body .gs360-company-shell #dashboard .gs360-dashboard-month-stage{
    min-height:0!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll{
    height:clamp(218px,28vh,258px)!important;
    max-height:none!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:hidden!important;
    scrollbar-gutter:auto!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar{
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-weekdays{
    flex:0 0 auto!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-grid{
    flex:1 1 auto!important;
    min-height:0!important;
    grid-auto-rows:minmax(0,1fr)!important;
    align-content:stretch!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day{
    min-height:0!important;
    height:auto!important;
    padding:4px 6px!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-events{
    min-height:0!important;
    overflow:hidden!important;
  }
}
@media (min-width:1181px) and (max-height:820px){
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll{
    height:210px!important;
    max-height:none!important;
    overflow-y:hidden!important;
  }
  body .gs360-company-shell #dashboard .gs360-dashboard-month-day{
    min-height:0!important;
    height:auto!important;
    padding:3px 5px!important;
  }
}
@media (max-width:760px){
  body .gs360-company-shell #dashboard .gs360-dashboard-month-calendar-scroll{
    overflow-x:auto!important;
    overflow-y:hidden!important;
  }
}

/* =====================================================
 * CR-095.2.3 — Ottimizzazione Sedi e unità operative
 * ===================================================== */
body .gs360-company-shell #profilo-azienda .gs360-profile-panel-step2.is-sedi > .gs360-company-panel-head{
  margin-bottom:12px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:14px 16px!important;
  margin:0 0 14px!important;
  border:1px solid #dce6f1!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(7,27,77,.035)!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box>div:first-child{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  min-width:0!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box strong{font-size:14px!important;color:#071b4d!important;}
body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box small{font-size:11px!important;color:#60728c!important;}
body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box .gs360-profile-inline-actions{flex-wrap:nowrap!important;align-items:center!important;}
body .gs360-company-shell #profilo-azienda .gs360-sedi-export-btn,
body .gs360-company-shell #profilo-azienda .gs360-sedi-new-btn{
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:10px 16px!important;
  border-radius:11px!important;
  font-size:13px!important;
  font-weight:800!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sedi-new-btn{background:#0d9f49!important;border-color:#0d9f49!important;color:#fff!important;}
body .gs360-company-shell #profilo-azienda .gs360-sedi-new-btn:hover{background:#087b39!important;border-color:#087b39!important;}
body .gs360-company-shell #profilo-azienda .gs360-profile-step2-cards.is-sedi-grid{
  grid-template-columns:minmax(0,1fr) minmax(250px,310px)!important;
  align-items:start!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sedi-cards-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sede-card{
  min-height:0!important;
  padding:18px!important;
  display:flex!important;
  flex-direction:column!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sede-details-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  margin-top:2px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sede-details-grid section{min-width:0!important;}
body .gs360-company-shell #profilo-azienda .gs360-sede-details-grid h5{
  margin:0 0 8px!important;
  font-size:12px!important;
  color:#0d9f49!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sede-card dl>div{
  grid-template-columns:92px minmax(0,1fr)!important;
  gap:10px!important;
}
body .gs360-company-shell #profilo-azienda .gs360-sede-card dd{overflow-wrap:anywhere!important;}
body .gs360-company-shell #profilo-azienda .gs360-sede-actions{
  margin-top:auto!important;
  padding-top:14px!important;
  display:flex!important;
  gap:8px!important;
  border-top:1px solid #edf2f7!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-status-card.is-panorama{
  min-height:0!important;
  height:auto!important;
  position:sticky!important;
  top:12px!important;
}
@media(max-width:1300px){
  body .gs360-company-shell #profilo-azienda .gs360-profile-step2-cards.is-sedi-grid{grid-template-columns:1fr!important;}
  body .gs360-company-shell #profilo-azienda .gs360-profile-status-card.is-panorama{position:static!important;}
}
@media(max-width:920px){
  body .gs360-company-shell #profilo-azienda .gs360-sedi-cards-grid,
  body .gs360-company-shell #profilo-azienda .gs360-sede-details-grid{grid-template-columns:1fr!important;}
  body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box{align-items:stretch!important;flex-direction:column!important;}
  body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box .gs360-profile-inline-actions{width:100%!important;}
  body .gs360-company-shell #profilo-azienda .gs360-sedi-export-btn,
  body .gs360-company-shell #profilo-azienda .gs360-sedi-new-btn{flex:1 1 0!important;}
}
@media(max-width:560px){
  body .gs360-company-shell #profilo-azienda .gs360-sedi-action-box .gs360-profile-inline-actions{flex-direction:column!important;}
  body .gs360-company-shell #profilo-azienda .gs360-sedi-export-btn,
  body .gs360-company-shell #profilo-azienda .gs360-sedi-new-btn{width:100%!important;}
}

/* CR-095.2.4 — Nuovo utente: wizard compatto in 3 passaggi */
body .gs360-company-shell .gs360-user-wizard-head{align-items:center;gap:18px}
body .gs360-company-shell .gs360-user-wizard{display:block}
body .gs360-company-shell .gs360-user-wizard-progress{display:grid;grid-template-columns:minmax(190px,1fr) 42px minmax(190px,1fr) 42px minmax(190px,1fr);align-items:center;gap:8px;margin:0 0 18px;padding:14px;border:1px solid #dce7f2;border-radius:16px;background:#f8fbff}
body .gs360-company-shell .gs360-user-wizard-progress button{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;border:0;background:transparent;color:#64748b;padding:8px 10px;border-radius:12px;cursor:pointer}
body .gs360-company-shell .gs360-user-wizard-progress button span{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#edf2f7;color:#52657a;font-weight:800}
body .gs360-company-shell .gs360-user-wizard-progress button strong{font-size:14px;color:#334155}
body .gs360-company-shell .gs360-user-wizard-progress button small{font-size:12px;color:#7a899a;margin-top:2px}
body .gs360-company-shell .gs360-user-wizard-progress button.is-active{background:#ecfdf3}
body .gs360-company-shell .gs360-user-wizard-progress button.is-active span,body .gs360-company-shell .gs360-user-wizard-progress button.is-complete span{background:#16a34a;color:#fff}
body .gs360-company-shell .gs360-user-wizard-progress button.is-active strong{color:#0f5132}
body .gs360-company-shell .gs360-user-wizard-progress i{height:2px;background:#d7e2ed;border-radius:999px}
body .gs360-company-shell .gs360-user-wizard-step{padding:22px;border:1px solid #dbe6f1;border-radius:16px;background:#fff}
body .gs360-company-shell .gs360-user-wizard-step[hidden]{display:none!important}
body .gs360-company-shell .gs360-user-step-heading{margin-bottom:18px}
body .gs360-company-shell .gs360-user-step-heading>span{display:inline-block;margin-bottom:6px;color:#138a46;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
body .gs360-company-shell .gs360-user-step-heading h4{margin:0 0 6px;font-size:22px;color:#0f2f57}
body .gs360-company-shell .gs360-user-step-heading p{margin:0;color:#64748b}
body .gs360-company-shell .gs360-user-data-grid{max-width:920px}
body .gs360-company-shell .gs360-user-data-grid .gs360-grid-wide{grid-column:1/-1}
body .gs360-company-shell .gs360-user-profile-note{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 16px;margin-bottom:14px;border:1px solid #bde8cb;border-radius:12px;background:#f0fdf4;color:#0f5132}
body .gs360-company-shell .gs360-user-access-grid{margin:0;padding:16px}
body .gs360-company-shell .gs360-user-note-field{display:block;max-width:760px;margin-top:16px}
body .gs360-company-shell .gs360-user-note-field em{font-style:normal;font-weight:400;color:#7b8794}
body .gs360-company-shell .gs360-user-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body .gs360-company-shell .gs360-user-review-grid article{padding:18px;border:1px solid #dbe6f1;border-radius:14px;background:#f8fbff}
body .gs360-company-shell .gs360-user-review-grid h5{margin:0 0 14px;font-size:17px;color:#123b66}
body .gs360-company-shell .gs360-user-review-grid dl{margin:0}
body .gs360-company-shell .gs360-user-review-grid dl div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:8px 0;border-bottom:1px solid #e4edf5}
body .gs360-company-shell .gs360-user-review-grid dt{font-weight:700;color:#66778a}
body .gs360-company-shell .gs360-user-review-grid dd{margin:0;font-weight:700;color:#172f4d;word-break:break-word}
body .gs360-company-shell .gs360-user-review-profile{font-weight:800;color:#0f5132}
body .gs360-company-shell .gs360-user-review-grid ul{margin:10px 0 0;padding:0;list-style:none}
body .gs360-company-shell .gs360-user-review-grid li{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid #e4edf5}
body .gs360-company-shell .gs360-link-button{margin-top:14px;padding:0;border:0;background:transparent;color:#1673d1;font-weight:800;cursor:pointer}
body .gs360-company-shell .gs360-user-invite-check{margin-top:16px}
body .gs360-company-shell .gs360-user-wizard-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:16px}
body .gs360-company-shell .gs360-user-step-counter{margin-right:auto;color:#64748b}
body .gs360-company-shell .gs360-user-wizard .gs360-field-error{border-color:#dc2626!important;box-shadow:0 0 0 3px rgba(220,38,38,.10)!important}
body .gs360-company-shell .gs360-user-wizard .gs360-inline-error{display:block;margin-top:6px;color:#b91c1c;font-size:12px;font-weight:700}
@media(max-width:980px){body .gs360-company-shell .gs360-user-wizard-progress{grid-template-columns:1fr 18px 1fr 18px 1fr}body .gs360-company-shell .gs360-user-wizard-progress button{grid-template-columns:32px 1fr;padding:7px 5px}body .gs360-company-shell .gs360-user-wizard-progress button span{width:30px;height:30px}body .gs360-company-shell .gs360-user-wizard-progress button small{display:none}}
@media(max-width:700px){body .gs360-company-shell .gs360-user-wizard-progress{display:flex;gap:6px}body .gs360-company-shell .gs360-user-wizard-progress i{flex:1}body .gs360-company-shell .gs360-user-wizard-progress button{display:block;padding:4px;background:transparent!important}body .gs360-company-shell .gs360-user-wizard-progress button span{margin:auto}body .gs360-company-shell .gs360-user-wizard-progress button strong,body .gs360-company-shell .gs360-user-wizard-progress button small{display:none}body .gs360-company-shell .gs360-user-review-grid{grid-template-columns:1fr}body .gs360-company-shell .gs360-user-profile-note{display:block}body .gs360-company-shell .gs360-user-wizard-actions{flex-wrap:wrap}body .gs360-company-shell .gs360-user-step-counter{width:100%;order:-1;text-align:center;margin:0}body .gs360-company-shell .gs360-user-wizard-actions button{flex:1}}


/* CR-095.2.5 — Wizard Nuovo utente allineato allo standard Nuova scadenza */
body .gs360-company-shell .gs360-user-wizard-progress{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 12px;background:#f8fbff}
body .gs360-company-shell .gs360-user-wizard-progress>i{display:none}
body .gs360-company-shell .gs360-user-wizard-progress button{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid #dbe7f3!important;border-radius:999px!important;background:#fff!important;box-shadow:none;transition:.18s ease}
body .gs360-company-shell .gs360-user-wizard-progress button:hover{border-color:#9bc6ee!important;transform:translateY(-1px)}
body .gs360-company-shell .gs360-user-wizard-progress button span{flex:0 0 30px;width:30px;height:30px;border-radius:50%;font-size:14px}
body .gs360-company-shell .gs360-user-wizard-progress button strong{font-size:14px;line-height:1.15}
body .gs360-company-shell .gs360-user-wizard-progress button small{display:block;font-size:11px;line-height:1.15}
body .gs360-company-shell .gs360-user-wizard-progress button.is-active{border-color:#22a447!important;background:#eaf8ef!important;box-shadow:0 5px 16px rgba(34,164,71,.12)}
body .gs360-company-shell .gs360-user-wizard-progress button.is-complete{border-color:#a7dfb7!important;background:#f5fff8!important}
body .gs360-company-shell .gs360-user-wizard-actions{position:relative;border-top:1px solid #e2ebf3;margin-top:14px;padding:16px 0 0;gap:10px}
body .gs360-company-shell .gs360-user-wizard-actions .gs360-btn-secondary,body .gs360-company-shell .gs360-user-wizard-actions .gs360-btn-primary{min-height:40px;border-radius:999px;padding:9px 16px;font-weight:800}
body .gs360-company-shell .gs360-user-wizard-actions .gs360-user-next-btn{background:#ecfdf3!important;color:#16813d!important;border:1px solid #a8e3bc!important}
body .gs360-company-shell .gs360-user-wizard-actions .gs360-user-verify-btn{background:#fff!important;color:#334155!important;border:1px solid #cbd8e5!important}
body .gs360-company-shell .gs360-user-wizard-actions .gs360-user-submit-btn{background:#0b2555!important;color:#fff!important;border-color:#0b2555!important}
body .gs360-company-shell .gs360-user-wizard-actions button:disabled{opacity:.45;cursor:not-allowed;transform:none!important}
body .gs360-company-shell .gs360-user-validation-status{flex-basis:100%;text-align:right;min-height:18px;font-size:12px;font-weight:800}
body .gs360-company-shell .gs360-user-validation-status.is-success{color:#138a46}
body .gs360-company-shell .gs360-user-validation-status.is-error{color:#b91c1c}
body .gs360-company-shell .gs360-access-action-box:has(+ .gs360-access-tabs + #gs360-team-form){display:none!important}
@media(max-width:760px){body .gs360-company-shell .gs360-user-wizard-progress{grid-template-columns:1fr;gap:7px}body .gs360-company-shell .gs360-user-wizard-progress button small{display:none}body .gs360-company-shell .gs360-user-wizard-actions{justify-content:stretch}body .gs360-company-shell .gs360-user-wizard-actions button{flex:1 1 46%}body .gs360-company-shell .gs360-user-validation-status{text-align:center}}


/* CR-095.2.6 — visibilità e isolamento wizard Nuovo utente */
body .gs360-company-shell .gs360-user-wizard [hidden],
body .gs360-company-shell .gs360-user-wizard-step[hidden],
body .gs360-company-shell .gs360-user-submit-btn[hidden],
body .gs360-company-shell .gs360-user-next-btn[hidden]{display:none!important}
body .gs360-company-shell .gs360-user-wizard-progress button[aria-disabled="true"]{opacity:.58;cursor:not-allowed}
body .gs360-company-shell .gs360-user-wizard-actions{z-index:2}
body .gs360-company-shell .gs360-user-wizard-actions .gs360-user-validation-status:not(:empty){padding-top:4px}

/* CR-095.2.9 — Utenti e accessi: profilo, ruoli operativi e form compatto */
.gs360-user-data-grid-compact{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.45fr);
  gap:14px;
  align-items:start;
}
.gs360-user-data-grid-compact label{min-width:0}
.gs360-user-role-field{margin:0 0 16px;padding:14px;border:1px solid #dbe7f3;border-radius:14px;background:#fbfdff}
.gs360-user-role-field label{display:grid;gap:7px}
.gs360-user-role-field small{color:#60728a}
.gs360-user-profile-panel{margin-bottom:16px}
.gs360-user-profile-head{align-items:flex-start}
.gs360-section-eyebrow{display:block;color:#13a34a;font-size:11px;font-weight:800;letter-spacing:.08em;margin-bottom:4px}
.gs360-user-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gs360-user-profile-grid article{border:1px solid #dce7f2;border-radius:14px;padding:16px;background:#fff}
.gs360-user-profile-grid article.is-wide{grid-column:1/-1}
.gs360-user-profile-grid h4{margin:0 0 12px}
.gs360-user-profile-grid dl{margin:0;display:grid;gap:0}
.gs360-user-profile-grid dl div{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr);gap:12px;padding:9px 0;border-bottom:1px solid #eef3f8}
.gs360-user-profile-grid dl div:last-child{border-bottom:0}
.gs360-user-profile-grid dt{color:#60728a;font-weight:700}
.gs360-user-profile-grid dd{margin:0;font-weight:700;color:#0d2448}
.gs360-user-profile-access-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.gs360-user-profile-access-list>span{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #dce7f2;border-radius:10px;padding:10px 12px;background:#f8fbfe;font-size:12px}
.gs360-user-profile-access-list .is-gestisce,.gs360-user-profile-access-list .is-manage{background:#edf9f1;border-color:#bfe8cc;color:#087832}
.gs360-user-profile-access-list .is-visualizza{background:#eef5ff;border-color:#c8dcff;color:#1558b0}
.gs360-user-profile-access-list .is-nessuno{color:#75849a}
.gs360-role-principles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.gs360-role-principles article{border:1px solid #dce7f2;border-radius:12px;padding:14px;background:#fff}
.gs360-role-principles strong{display:block;margin-bottom:4px}
.gs360-operational-roles-table td,.gs360-operational-roles-table th{vertical-align:middle}
.gs360-company-info-note{margin-top:14px;padding:13px 15px;border:1px solid #cfe1f5;border-radius:12px;background:#f5f9ff;color:#39516e}
.gs360-team-role-note{display:block;margin-top:4px;color:#60728a;line-height:1.25}
.gs360-team-actions-row.is-primary-row{flex-wrap:wrap}
@media (max-width:1100px){
  .gs360-user-data-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gs360-user-profile-access-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .gs360-user-data-grid-compact,.gs360-user-profile-grid,.gs360-role-principles,.gs360-user-profile-access-list{grid-template-columns:1fr}
  .gs360-user-profile-grid article.is-wide{grid-column:auto}
  .gs360-user-profile-grid dl div{grid-template-columns:1fr;gap:3px}
}

/* CR-095.3.1 — gestione ruoli operativi aziendali */
.gs360-role-form{margin:14px 0 18px;padding:16px;border:1px solid #dbe6f3;border-radius:16px;background:#f9fcff}
.gs360-role-form .is-wide{grid-column:1/-1}
.gs360-operational-roles-table td small{display:block;margin-top:4px;color:#6b7890}
.gs360-operational-roles-table .gs360-table-actions{display:flex;flex-wrap:wrap;gap:8px}
.gs360-user-role-field small a{font-weight:700;text-decoration:none}

/* CR-095.3.2 — standard azioni creazione e ruolo operativo inline */
body .gs360-company-shell .gs360-role-action-box{margin:0 0 14px}
body .gs360-company-shell .gs360-role-action-box .gs360-action-btn{min-width:150px;justify-content:center}
body .gs360-company-shell .gs360-inline-text-action{display:inline-flex;align-items:center;border:0;background:transparent;color:#e11d48;font:inherit;font-weight:800;padding:0 2px;cursor:pointer;text-decoration:none}
body .gs360-company-shell .gs360-inline-text-action:hover{text-decoration:underline}
@media(max-width:720px){body .gs360-company-shell .gs360-role-action-box .gs360-action-btn{width:100%}}


/* CR-095.3.3 — Dati Nuovo utente su una riga e recapito unico */
body .gs360-company-shell .gs360-user-data-grid-compact{
  max-width:none!important;
  grid-template-columns:minmax(125px,.9fr) minmax(125px,.9fr) minmax(210px,1.35fr) minmax(145px,.95fr) minmax(185px,1.05fr)!important;
  gap:12px;
  align-items:start;
}
body .gs360-company-shell .gs360-user-data-grid-compact label{min-width:0}
body .gs360-company-shell .gs360-user-data-grid-compact input,
body .gs360-company-shell .gs360-user-data-grid-compact select{width:100%}
body .gs360-company-shell .gs360-user-data-grid-compact small{font-size:10px;line-height:1.25}
body .gs360-company-shell .gs360-user-admin-access{display:grid;gap:6px;margin-bottom:14px;padding:18px;border:1px solid #bde8cb;border-radius:14px;background:#f0fdf4;color:#0f5132}
body .gs360-company-shell .gs360-user-admin-access strong{font-size:17px}
@media(max-width:1180px){body .gs360-company-shell .gs360-user-data-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:820px){body .gs360-company-shell .gs360-user-data-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body .gs360-company-shell .gs360-user-data-grid-compact{grid-template-columns:1fr!important}}


/* CR-095.3.4 — Limite utenti del piano e messaggi dedicati */
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-company-card.is-limit-reached{border-color:#f2b7bd!important;background:#fff7f8!important}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-company-card.is-limit-reached strong,
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-company-card.is-limit-reached small{color:#b42336!important}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-action-btn.is-disabled{opacity:.55;cursor:not-allowed;pointer-events:none;filter:grayscale(.25)}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-message strong{display:block;margin-bottom:3px}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-block{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:22px;border:1px solid #f1b7bf;border-radius:16px;background:#fff7f8}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-block>span{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#ffe8eb;color:#b42336}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-block h3{margin:0 0 5px;color:#7f1726}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-block p{margin:0;color:#76525a}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-actions{display:flex;gap:10px;align-items:center}
@media(max-width:760px){body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-block{grid-template-columns:1fr}body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-actions{flex-direction:column;align-items:stretch}body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-user-limit-actions a{justify-content:center}}


/* CR-096.4.1 — tab Utenti/Ruoli/Inviti/Sessioni: griglia responsive definitiva */
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-tabs.gs360-access-tabs{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:10px!important;
  margin:10px 0 8px!important;
  align-items:stretch!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-tabs.gs360-access-tabs>a{
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  height:44px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-tabs.gs360-access-tabs + .gs360-team-tab-section,
body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-tabs.gs360-access-tabs + *{
  margin-top:0!important;
}
@media (max-width:1024px){
  body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-tabs.gs360-access-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:600px){
  body .gs360-company-shell [data-gs360-company-view="utenti"] .gs360-team-tabs.gs360-access-tabs{grid-template-columns:1fr!important;}
}


/* CR-099.2.1 — FIX griglia reale Moduli e limiti nel Dossier Azienda */
body .gs360-admin-app .gs360-modules-0992 form[data-gs360-module-form],
body .gs360-modules-0992 form[data-gs360-module-form]{display:block!important;width:100%!important;max-width:none!important;}
body .gs360-admin-app .gs360-modules-0992 .gs360-module-admin-grid,
body .gs360-modules-0992 .gs360-module-admin-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  align-items:start!important;
}
body .gs360-admin-app .gs360-modules-0992 .gs360-module-card,
body .gs360-modules-0992 .gs360-module-card{
  display:block;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  border:1px solid #dbe4ee!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 3px 12px rgba(18,42,78,.055)!important;
}
body .gs360-admin-app .gs360-modules-0992 .gs360-module-card[hidden],
body .gs360-modules-0992 .gs360-module-card[hidden]{display:none!important;}
body .gs360-admin-app .gs360-modules-0992 .gs360-module-card>summary,
body .gs360-modules-0992 .gs360-module-card>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:64px!important;
  padding:13px 15px!important;
  cursor:pointer!important;
  list-style:none!important;
}
body .gs360-modules-0992 .gs360-module-card>summary::-webkit-details-marker{display:none!important;}
body .gs360-modules-0992 .gs360-module-card>summary>span:first-child{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;}
body .gs360-modules-0992 .gs360-module-card>summary strong{white-space:normal!important;line-height:1.25!important;}
body .gs360-modules-0992 .gs360-module-card>summary small{display:block!important;color:#6d7b90!important;font-size:11px!important;font-weight:600!important;}
body .gs360-modules-0992 .gs360-module-card-body{padding:16px!important;border-top:1px solid #e5ebf2!important;background:#fbfcfe!important;}
@media (max-width:980px){
 body .gs360-admin-app .gs360-modules-0992 .gs360-module-admin-grid,
 body .gs360-modules-0992 .gs360-module-admin-grid{grid-template-columns:1fr!important;}
}
/* CR-100 — Catalogo piani e matrice moduli */
.gs360-plan-grid-cr100{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.gs360-plan-card-cr100{border:1px solid #dbe4ef;border-radius:14px;padding:16px;background:#fff;box-shadow:0 5px 16px rgba(15,35,65,.05)}.gs360-plan-card-head-cr100{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:12px}.gs360-plan-card-head-cr100>div{display:grid;grid-template-columns:120px 1fr;gap:10px;flex:1}.gs360-plan-card-head-cr100 label,.gs360-plan-limits-cr100 label{font-size:12px;color:#52647a}.gs360-plan-card-head-cr100 input,.gs360-plan-limits-cr100 input{width:100%;margin-top:4px}.gs360-switch-line{white-space:nowrap}.gs360-plan-modules-cr100{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e7edf4}.gs360-plan-modules-cr100>strong{grid-column:1/-1}.gs360-plan-modules-cr100 label{font-size:12px}.gs360-plan-summary-cr100{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;padding:12px;border:1px solid #d9e7f7;border-radius:12px;background:#f7fbff}.gs360-plan-summary-cr100 strong{width:100%}.gs360-plan-summary-cr100 span{border:1px solid #dce5ef;border-radius:999px;background:#fff;padding:5px 9px;font-size:12px}@media(max-width:1000px){.gs360-plan-grid-cr100{grid-template-columns:1fr}.gs360-plan-modules-cr100{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.gs360-plan-card-head-cr100{display:block}.gs360-plan-card-head-cr100>div,.gs360-plan-modules-cr100{grid-template-columns:1fr}.gs360-switch-line{display:block;margin-top:10px}}


/* CR-100.1 — Semantica esplicita limiti e matrice moduli */
.gs360-plan-legend-cr1001{display:flex;flex-wrap:wrap;gap:8px 14px;padding:10px 12px;margin:8px 0 12px;border:1px solid #dbe6f2;border-radius:10px;background:#f8fbff;font-size:12px}.gs360-plan-limit-field-cr1001{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(90px,.75fr);gap:8px;align-items:end;padding:8px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.gs360-plan-limit-field-cr1001 label{margin:0}.gs360-plan-limit-value-cr1001.is-disabled{opacity:.55}.gs360-plan-modules-cr100>small{display:block;margin:4px 0 9px;color:#64748b}.gs360-plan-modules-cr100 label{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(130px,.7fr);align-items:center;gap:8px}.gs360-plan-modules-cr100 select{width:100%;min-height:34px}@media(max-width:760px){.gs360-plan-limit-field-cr1001,.gs360-plan-modules-cr100 label{grid-template-columns:1fr}}


/* CR-100.2 — Catalogo piani a tab singolo */
.gs360-plan-tabs-form-cr1002{width:100%}.gs360-plan-tabs-cr1002{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0 14px;padding:6px;border:1px solid #dbe5ef;border-radius:14px;background:#f5f8fc}.gs360-plan-tab-cr1002{min-height:42px;border:1px solid transparent;border-radius:10px;background:transparent;color:#1c2f4a;font-weight:700;cursor:pointer;padding:9px 12px;transition:.18s ease}.gs360-plan-tab-cr1002:hover{background:#fff;border-color:#d6e1ed}.gs360-plan-tab-cr1002.is-active{background:#168f45;color:#fff;border-color:#168f45;box-shadow:0 5px 14px rgba(22,143,69,.18)}.gs360-plan-panels-cr1002{width:100%}.gs360-plan-panel-cr1002{display:none!important;width:100%;margin:0}.gs360-plan-panel-cr1002.is-active{display:block!important}.gs360-plan-panel-cr1002[hidden]{display:none!important}.gs360-plan-actions-cr1002{position:sticky;bottom:0;z-index:4;margin-top:14px;padding:12px 0 2px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 28%)}@media(max-width:980px){.gs360-plan-tabs-cr1002{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.gs360-plan-tabs-cr1002{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.gs360-plan-tab-cr1002{flex:0 0 auto;min-width:145px;scroll-snap-align:start}.gs360-plan-card-head-cr100>div{grid-template-columns:1fr}.gs360-plan-actions-cr1002{position:static}}

/* CR-100.3 — Semplificazione wizard Nuova scadenza */
.gs360-simple-step-card{position:relative;margin:14px 0;padding:18px 18px 18px 64px;border:1px solid #dbe5f0;border-radius:16px;background:#fff}.gs360-simple-step-card h4{margin:0 0 4px;font-size:16px}.gs360-simple-step-card>div>p{margin:0 0 14px;color:#68788d}.gs360-simple-step-number{position:absolute;left:18px;top:18px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e9f8ee;color:#159447;font-weight:800}.gs360-choice-grid{display:grid;gap:10px;margin-top:14px}.gs360-choice-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.gs360-choice-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.gs360-choice-card{display:flex!important;align-items:flex-start;gap:10px;padding:13px;border:1px solid #dbe5f0;border-radius:12px;background:#f9fbfd;cursor:pointer}.gs360-choice-card:has(input:checked){border-color:#32b45d;background:#effbf3;box-shadow:0 0 0 2px rgba(50,180,93,.08)}.gs360-choice-card.is-disabled{opacity:.55;cursor:not-allowed}.gs360-choice-card input{width:auto!important;margin-top:3px}.gs360-choice-card span{display:flex;flex-direction:column;gap:3px}.gs360-choice-card small{font-weight:400;color:#68788d}.gs360-reminder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gs360-days-input{display:flex;align-items:center;border:1px solid #dbe5f0;border-radius:10px;overflow:hidden;background:#fff}.gs360-days-input input{border:0!important;border-radius:0!important}.gs360-days-input em{padding:0 12px;color:#5e6d80;font-style:normal;white-space:nowrap}.gs360-simple-details{margin-top:14px;border-top:1px solid #e7edf4;padding-top:12px}.gs360-simple-details summary{cursor:pointer;font-weight:700;color:#153b69}.gs360-sharing-pick-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.gs360-sharing-selection-summary,.gs360-sharing-final-summary{padding:12px 14px;border-radius:10px;background:#f5f9fd;color:#34465d}.gs360-sharing-final-summary{margin-top:14px;border-left:4px solid #32b45d;font-weight:700}.gs360-simple-recipient-grid [hidden],.gs360-simple-step-card[hidden]{display:none!important}
@media(max-width:1000px){.gs360-choice-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}.gs360-choice-grid-three,.gs360-reminder-grid{grid-template-columns:1fr 1fr}}@media(max-width:680px){.gs360-simple-step-card{padding:56px 14px 14px}.gs360-choice-grid-four,.gs360-choice-grid-three,.gs360-reminder-grid{grid-template-columns:1fr}}

/* CR-100.3.1 — passaggi wizard ordinati e sottosezione condivisione */
.gs360-simple-step-card{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  column-gap:12px;
  row-gap:12px;
  padding:16px 18px;
}
.gs360-simple-step-card>.gs360-simple-step-number{
  position:static;
  width:30px;
  height:30px;
  align-self:start;
}
.gs360-simple-step-card>.gs360-choice-grid,
.gs360-simple-step-card>.gs360-form-grid,
.gs360-simple-step-card>.gs360-reminder-grid,
.gs360-simple-step-card>.gs360-simple-details,
.gs360-simple-step-card>input[type="hidden"]{
  grid-column:1/-1;
}
.gs360-simple-step-card>div:nth-child(2)>p{margin:0;color:#68788d}
.gs360-sharing-subpanel{margin:10px 0;padding:14px 16px;border:1px dashed #b8cce2;border-radius:14px;background:#f8fbff}
.gs360-sharing-subpanel[hidden]{display:none!important}
@media(max-width:680px){.gs360-simple-step-card{grid-template-columns:32px minmax(0,1fr);padding:14px}.gs360-simple-step-card>.gs360-simple-step-number{width:28px;height:28px}}

/* =====================================================
 * CR-101.5 — Dashboard calendario stabile e navigazione inline
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-area{display:grid;gap:14px;margin-bottom:18px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-area.is-loading{opacity:.58;pointer-events:none;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-top{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,.72fr);gap:12px;align-items:start;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming{padding:16px;border:1px solid #dce6f1;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(7,27,77,.045);overflow:visible;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:10px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head h3{margin:2px 0 3px;font-size:20px;color:#071b4d;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head p{margin:0;color:#657590;font-size:10px;line-height:1.25;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-stage{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;align-items:stretch;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-nav{display:flex;align-items:center;justify-content:center;border:1px solid #d8e5f3;border-radius:13px;background:#fff;color:#071b4d;text-decoration:none;font-size:19px;font-weight:900;min-height:100%;transition:.15s ease;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-nav:hover{background:#123f3a;border-color:#123f3a;color:#fff;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-wrap{min-width:0;border:1px solid #d9e5f2;border-radius:15px;background:#f8fbff;padding:7px;overflow:hidden;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays{margin-bottom:3px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays span{display:grid;place-items:center;min-height:24px;border-radius:6px;background:#edf3f9;color:#53657d;font-size:8px;font-weight:900;text-transform:uppercase;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-grid{grid-auto-rows:minmax(74px,auto);}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day{min-width:0;min-height:74px;padding:6px;border:1px solid #d6e2ef;border-radius:8px;background:#fff;overflow:hidden;box-sizing:border-box;cursor:pointer;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-empty{border-color:transparent;background:transparent;cursor:default;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.has-events{border-color:#35a853;background:#f8fff9;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-today{box-shadow:inset 0 0 0 2px #2563eb;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-head{display:flex;justify-content:space-between;gap:5px;align-items:flex-start;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-head strong{font-size:13px;line-height:1;color:#071b4d;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-head span{display:inline-flex;min-width:17px;height:17px;align-items:center;justify-content:center;padding:0 4px;border-radius:999px;background:#e7f0ff;color:#0757bd;font-size:8px;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events{display:flex;flex-direction:column;gap:3px;margin-top:5px;min-width:0;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events a{display:flex;align-items:center;gap:4px;min-width:0;padding:3px 5px;border-radius:6px;background:#e9f2ff;color:#0b2a5b;text-decoration:none;font-size:7px;font-weight:900;line-height:1.15;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events a.is-alta,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events a.is-critica{background:#fff1f2;color:#9f1239;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events em{font-style:normal;flex:0 0 auto;font-size:7px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events small{font-size:7px;color:#667993;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-chart-card{height:auto!important;min-height:410px!important;padding:14px!important;display:flex!important;flex-direction:column!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-chart-card .gs360-dashboard-impact-chart{flex:1!important;min-height:320px!important;height:320px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming{height:auto!important;min-height:0!important;display:block!important;overflow:visible!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary>a,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:72px;padding:10px 13px;border:1px solid #d9e5f2;border-radius:13px;background:#f8fbff;color:#071b4d;text-decoration:none;box-sizing:border-box;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary>a:hover{border-color:#22a84c;box-shadow:0 8px 18px rgba(7,27,77,.07);}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary strong{font-size:21px;line-height:1;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary span{margin-top:5px;font-size:10px;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary small{margin-top:3px;font-size:8px;color:#6d7e94;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:none!important;min-height:0!important;overflow:visible!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item{min-height:58px!important;}

body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-event-text{display:flex;align-items:flex-start;gap:6px;width:100%;max-width:100%;white-space:normal;padding:6px 8px;border-radius:9px;box-sizing:border-box;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-event-text em{font-style:normal;flex:0 0 auto;font-size:9px;color:#0757bd;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-event-text strong{font-size:10px;line-height:1.2;overflow-wrap:anywhere;}

@media(max-width:1250px){
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-top{grid-template-columns:1fr;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head{flex-direction:column;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-wrap{overflow-x:auto;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays,
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-grid{min-width:760px;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-summary,
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list{grid-template-columns:1fr;}
}


/* =====================================================
 * CR-101.6 — Dashboard/Calendario viste giorno-settimana-mese-anno
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card{padding:20px 22px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head{margin-bottom:14px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-head-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-view-tabs{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-view-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:6px 10px;border:1px solid #cbd9e9;border-radius:999px;background:#fff;color:#23436e;text-decoration:none;font-size:9px;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-view-tabs a.is-active{border-color:#1eaa4f;background:#eefbf2;color:#087333;box-shadow:inset 0 -2px 0 #1eaa4f;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-period-stage{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:10px;align-items:stretch;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view{min-height:390px;padding:18px;border:1px solid #d9e5f2;border-radius:16px;background:#f8fbff;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:12px;border-bottom:1px solid #dbe5f0;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view>header strong{font-size:22px;color:#071b4d;text-transform:capitalize;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view>header span{font-size:13px;font-weight:900;color:#53657d;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-list{display:grid;gap:10px;margin-top:14px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-list>a{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:start;padding:12px 14px;border:1px solid #dce6f1;border-radius:13px;background:#fff;color:#0b2a5b;text-decoration:none;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-list>a em{font-style:normal;font-size:14px;font-weight:900;color:#0757bd;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-list>a strong{display:block;font-size:14px;line-height:1.25;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-list>a span{display:block;margin-top:4px;font-size:11px;color:#667993;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-empty-day{display:grid;place-items:center;align-content:center;gap:12px;min-height:290px;color:#6b7d94;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-empty-day a{padding:9px 14px;border-radius:999px;background:#1aa64a;color:#fff;text-decoration:none;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-view{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;min-height:390px;padding:8px;border:1px solid #d9e5f2;border-radius:16px;background:#f8fbff;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day{min-width:0;padding:10px;border:1px solid #d6e2ef;border-radius:12px;background:#fff;cursor:pointer;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>header{display:flex;justify-content:space-between;gap:6px;margin-bottom:8px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>header strong{font-size:13px;color:#071b4d;text-transform:capitalize;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>header span{font-size:10px;font-weight:900;color:#6a7c93;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>a{display:flex;align-items:flex-start;gap:5px;margin-top:5px;padding:6px;border-radius:8px;background:#eaf3ff;color:#0b2a5b;text-decoration:none;font-size:9px;font-weight:800;line-height:1.2;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>a em{font-style:normal;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-sunday,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day.is-sunday,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view.is-sunday{border-color:#efb3b8!important;background:#fff8f8!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-sunday .gs360-dashboard-inline-day-head strong,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day.is-sunday>header strong,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view.is-sunday>header strong{color:#c81e32!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events a{font-size:9px!important;padding:5px 6px!important;gap:6px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events em{font-size:9px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events span{font-size:9px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays span:last-child{color:#c81e32;background:#fff1f2;}

body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-open-current{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border:1px solid #bcd4ef;border-radius:999px;background:#fff;color:#0757bd;text-decoration:none;font-size:11px;font-weight:900;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day.is-sunday,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day.is-sunday,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-panel.is-sunday{border-color:#efb3b8!important;background:#fff8f8!important;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day.is-sunday .gs360-calendar-day-number,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day.is-sunday .gs360-calendar-week-day-head strong,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-panel.is-sunday .gs360-calendar-day-detail-head strong{color:#c81e32!important;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-weekdays span:last-child{color:#c81e32;background:#fff1f2;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-event-text{font-size:12px!important;padding:8px 9px!important;gap:8px!important;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-event-text em{font-size:11px!important;min-width:36px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-event-text strong{font-size:12px!important;line-height:1.25!important;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-panel{padding:20px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid #dce6f1;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-head strong{display:block;font-size:24px;color:#071b4d;text-transform:capitalize;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-head span{display:block;margin-top:4px;font-size:13px;color:#657590;font-weight:800;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-list{display:grid;gap:10px;margin-top:16px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-list>a{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:14px;align-items:start;padding:14px 16px;border:1px solid #dce6f1;border-radius:14px;background:#fff;color:#0b2a5b;text-decoration:none;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-list time{font-size:16px;font-weight:900;color:#0757bd;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-list strong{font-size:15px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-list p{margin:4px 0 0;color:#657590;font-size:12px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-list>a>span{padding:4px 8px;border-radius:999px;background:#eef4fb;font-size:10px;font-weight:900;}

@media(max-width:900px){
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-head-actions{align-items:flex-start;width:100%;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head{flex-direction:column;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-view{grid-template-columns:1fr;}
 body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-toolbar-top{align-items:flex-start;flex-direction:column;}
}

/* =====================================================
 * CR-101.7 — Riferimenti giorno/settimana, festività italiane e settimane ISO
 * ===================================================== */
body .gs360-company-shell .gs360-calendar-holiday-label{display:inline-flex;align-items:center;max-width:100%;margin-top:5px;padding:3px 7px;border-radius:999px;background:#fff0f1;color:#c62828;font-size:10px;font-style:normal;font-weight:900;line-height:1.2;white-space:normal;}
body .gs360-company-shell .gs360-calendar-week-number{display:inline-flex;align-items:center;margin-left:auto;padding:2px 6px;border-radius:999px;background:#edf3fb;color:#4a607e;font-size:9px;font-weight:900;white-space:nowrap;}
body .gs360-company-shell .gs360-dashboard-inline-week-day header,
body .gs360-company-shell .gs360-calendar-week-day-head{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-height:58px;}
body .gs360-company-shell .gs360-dashboard-inline-week-day header strong,
body .gs360-company-shell .gs360-calendar-week-day-head strong{font-size:14px;line-height:1.15;text-transform:capitalize;}
body .gs360-company-shell .gs360-dashboard-inline-week-day header span,
body .gs360-company-shell .gs360-calendar-week-day-head span{font-size:11px;font-weight:800;color:#667892;}
body .gs360-company-shell .gs360-dashboard-inline-day-view>header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
body .gs360-company-shell .gs360-dashboard-inline-day-view>header strong{font-size:20px;text-transform:capitalize;}
body .gs360-company-shell .gs360-dashboard-inline-day-view>header span{font-size:13px;font-weight:800;color:#667892;}
body .gs360-company-shell .gs360-dashboard-inline-day-head,
body .gs360-company-shell .gs360-calendar-day-number{display:flex;align-items:flex-start;gap:5px;}
body .gs360-company-shell .gs360-dashboard-inline-day.is-sunday,
body .gs360-company-shell .gs360-calendar-day.is-sunday,
body .gs360-company-shell .gs360-dashboard-inline-week-day.is-sunday,
body .gs360-company-shell .gs360-calendar-week-day.is-sunday{background:#fff7f7!important;border-color:#f1aaaa!important;}
body .gs360-company-shell .gs360-dashboard-inline-day.is-sunday .gs360-dashboard-inline-day-head strong,
body .gs360-company-shell .gs360-calendar-day.is-sunday .gs360-calendar-day-number,
body .gs360-company-shell .gs360-dashboard-inline-week-day.is-sunday header strong,
body .gs360-company-shell .gs360-calendar-week-day.is-sunday .gs360-calendar-week-day-head strong{color:#c62828!important;}
@media(max-width:1100px){body .gs360-company-shell .gs360-dashboard-inline-week-view{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body .gs360-company-shell .gs360-calendar-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}


/* =====================================================
 * CR-101.8 — Riferimenti visibili e navigazione calendario reattiva
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>header,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day-head{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:4!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-height:82px!important;margin:0 0 10px!important;padding:9px!important;border:1px solid #dce6f1!important;border-radius:10px!important;background:#f3f7fc!important;box-sizing:border-box!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>header strong,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day-head strong{display:block!important;font-size:15px!important;line-height:1.15!important;color:#071b4d!important;text-transform:capitalize!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>header span,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day-head span{display:block!important;font-size:12px!important;line-height:1.2!important;font-weight:900!important;color:#536780!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day>header .gs360-calendar-week-number,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day-head .gs360-calendar-week-number{margin:1px 0 0!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view>header,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-head{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:4!important;background:#f3f7fc!important;padding:12px 14px!important;border:1px solid #dce6f1!important;border-radius:12px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view>header strong,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-head strong{font-size:21px!important;line-height:1.15!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view>header span,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-head span{font-size:13px!important;font-weight:900!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day.is-sunday>header,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day.is-sunday .gs360-calendar-week-day-head{background:#fff0f1!important;border-color:#efb3b8!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-area.is-loading,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"].is-loading{opacity:.68!important;pointer-events:none!important;transition:opacity .12s ease!important;}


/* =====================================================
 * CR-102.1 — Rifinitura scheda scadenza + Stampa/PDF
 * ===================================================== */
body .gs360-company-shell [data-gs360-company-view="dettaglio-scadenza"]{width:100%!important;max-width:none!important;padding:0 14px 110px!important;box-sizing:border-box;}
body .gs360-company-shell [data-gs360-company-view="dettaglio-scadenza"] .gs360-deadline-detail-head{margin:0 0 16px!important;}
body .gs360-company-shell [data-gs360-company-view="dettaglio-scadenza"] .gs360-deadline-detail-summary{margin:0 0 18px!important;gap:14px!important;}
body .gs360-company-shell .gs360-deadline-tabs{margin-top:0!important;padding:14px!important;border:1px solid #d9e5f2;border-radius:20px;background:#fff;box-shadow:0 14px 34px rgba(7,27,77,.05);}
body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tablist{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin:0 0 18px!important;padding:8px!important;border:1px solid #e0e9f3!important;border-radius:15px!important;background:#f8fbff!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tablist button{min-width:170px!important;min-height:40px!important;padding:9px 18px!important;border-radius:12px!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tab-panel{padding:0!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-deadline-detail-grid{gap:18px!important;margin:0!important;align-items:stretch!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-deadline-detail-card{min-height:0!important;height:auto!important;padding:20px!important;border:1px solid #dbe6f2!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important;overflow:visible!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-deadline-detail-card h3{margin:0 0 16px!important;padding:0 0 13px!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-deadline-detail-card dl{gap:10px!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-deadline-detail-card dl>div{min-height:64px!important;padding:11px 13px!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-table-wrap{margin-top:6px!important;border:1px solid #dfe8f2!important;border-radius:13px!important;}
body .gs360-company-shell .gs360-deadline-tabs .gs360-company-empty.is-small{margin-top:8px!important;border-radius:13px!important;}
body .gs360-company-shell .gs360-action-btn.is-print{border-color:#8b5cf6!important;background:#f5f3ff!important;color:#5b21b6!important;}
body .gs360-company-shell .gs360-action-btn.is-print:hover{background:#5b21b6!important;color:#fff!important;}
.gs360-deadline-print-sheet{display:none;}
@media(max-width:1100px){body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tablist button{min-width:calc(50% - 5px)!important;}}
@media(max-width:650px){body .gs360-company-shell [data-gs360-company-view="dettaglio-scadenza"]{padding-left:6px!important;padding-right:6px!important;}body .gs360-company-shell .gs360-deadline-tabs .gs360-profile-tablist button{min-width:100%!important;}}

@media print{
  @page{size:A4 portrait;margin:12mm;}
  html,body{background:#fff!important;height:auto!important;overflow:visible!important;}
  body.gs360-print-deadline *{visibility:hidden!important;}
  body.gs360-print-deadline .gs360-deadline-print-sheet,
  body.gs360-print-deadline .gs360-deadline-print-sheet *{visibility:visible!important;}
  body.gs360-print-deadline .gs360-deadline-print-sheet{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;padding:0!important;background:#fff!important;color:#111827!important;font-family:Arial,sans-serif!important;}
  .gs360-print-header{display:flex!important;justify-content:space-between!important;gap:20px!important;padding-bottom:10px!important;border-bottom:2px solid #16a34a!important;}
  .gs360-print-header div{display:flex!important;flex-direction:column!important;gap:3px!important;}
  .gs360-print-header strong{font-size:18px!important;color:#071b4d!important;}.gs360-print-header span,.gs360-print-header small{font-size:10px!important;color:#475569!important;}
  .gs360-deadline-print-sheet h1{margin:16px 0 3px!important;font-size:24px!important;color:#071b4d!important;}.gs360-print-subtitle{margin:0 0 13px!important;font-size:11px!important;color:#475569!important;}
  .gs360-print-kpis{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:7px!important;margin-bottom:12px!important;}.gs360-print-kpis div{padding:8px!important;border:1px solid #cbd5e1!important;border-radius:6px!important;}.gs360-print-kpis span{display:block!important;font-size:8px!important;color:#64748b!important;}.gs360-print-kpis strong{font-size:11px!important;color:#071b4d!important;}
  .gs360-print-section{break-inside:avoid!important;margin:0 0 11px!important;padding:9px!important;border:1px solid #cbd5e1!important;border-radius:7px!important;}.gs360-print-section h2{margin:0 0 8px!important;padding-bottom:5px!important;border-bottom:1px solid #e2e8f0!important;font-size:14px!important;color:#071b4d!important;}.gs360-print-section dl{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:5px 12px!important;margin:0!important;}.gs360-print-section dl div{display:grid!important;grid-template-columns:42% 58%!important;padding:4px 0!important;border-bottom:1px dotted #e2e8f0!important;}.gs360-print-section dt{font-size:9px!important;color:#64748b!important;}.gs360-print-section dd{margin:0!important;font-size:9px!important;font-weight:700!important;color:#111827!important;}.gs360-print-description{margin-top:7px!important;padding:7px!important;background:#f8fafc!important;}.gs360-print-description strong,.gs360-print-description p{font-size:9px!important;}.gs360-print-section table{width:100%!important;border-collapse:collapse!important;font-size:8px!important;}.gs360-print-section th,.gs360-print-section td{padding:5px!important;border:1px solid #cbd5e1!important;text-align:left!important;}.gs360-print-section p{font-size:9px!important;}.gs360-print-footer{margin-top:12px!important;padding-top:7px!important;border-top:1px solid #cbd5e1!important;text-align:center!important;font-size:8px!important;color:#64748b!important;}

  body.gs360-print-deadlines-list *{visibility:hidden!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze,
  body.gs360-print-deadlines-list #gs360-elenco-scadenze *{visibility:visible!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze>summary{display:block!important;padding:0 0 10px!important;border-bottom:2px solid #16a34a!important;list-style:none!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze .gs360-deadlines-export-actions,
  body.gs360-print-deadlines-list #gs360-elenco-scadenze form,
  body.gs360-print-deadlines-list #gs360-elenco-scadenze .gs360-deadlines-viewbar,
  body.gs360-print-deadlines-list #gs360-elenco-scadenze .gs360-pagination,
  body.gs360-print-deadlines-list #gs360-elenco-scadenze th:last-child,
  body.gs360-print-deadlines-list #gs360-elenco-scadenze td:last-child{display:none!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze .gs360-deadlines-accordion-body{display:block!important;padding:10px 0!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze .gs360-table-wrap{overflow:visible!important;border:0!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze table{width:100%!important;border-collapse:collapse!important;font-size:7px!important;}
  body.gs360-print-deadlines-list #gs360-elenco-scadenze th,body.gs360-print-deadlines-list #gs360-elenco-scadenze td{padding:4px!important;border:1px solid #cbd5e1!important;vertical-align:top!important;}
}

/* =====================================================
 * CR-102.2 — Panoramica annuale Dashboard e Centro stampa
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-annual-overview{padding:16px;border:1px solid #dce6f1;border-radius:20px;background:#fff;box-shadow:0 14px 30px rgba(7,27,77,.05);}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;}
body .gs360-company-shell .gs360-print-center-filter form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end;}
body .gs360-company-shell .gs360-print-center-filter label{display:grid;gap:6px;font-weight:800;color:#17305e;}
body .gs360-company-shell .gs360-print-center-filter input,body .gs360-company-shell .gs360-print-center-filter select{min-height:42px;border:1px solid #cddbea;border-radius:10px;padding:8px 10px;background:#fff;}
body .gs360-company-shell .gs360-print-center-filter .gs360-print-search-field{grid-column:span 2;}
body .gs360-company-shell .gs360-print-center-filter .gs360-print-filter-submit{display:flex;align-items:flex-end;justify-content:flex-start;}
body .gs360-company-shell .gs360-print-center-filter .gs360-print-filter-submit .gs360-action-btn{min-width:170px;justify-content:center;}
body .gs360-company-shell .gs360-print-center-results-head{align-items:center!important;}
body .gs360-company-shell .gs360-print-center-results-head h3{margin:0!important;}
body .gs360-company-shell .gs360-print-center-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
body .gs360-company-shell .gs360-print-center-actions button,body .gs360-company-shell .gs360-print-center-actions select{min-height:36px;border:1px solid #cddbea;border-radius:999px;padding:7px 12px;background:#fff;font-weight:800;}
body .gs360-company-shell .gs360-print-center-actions select{min-width:220px;}
body .gs360-company-shell .gs360-print-center-cards{display:none;}
body .gs360-company-shell .gs360-print-center-cards article{padding:18px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;}
body .gs360-company-shell .gs360-print-center-cards dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body .gs360-company-shell .gs360-print-center-cards dl div{padding:8px;border:1px solid #e2e8f0;border-radius:8px;}
body .gs360-company-shell .gs360-print-center-cards dt{font-size:11px;color:#64748b;font-weight:800;}
body .gs360-company-shell .gs360-print-center-cards dd{margin:3px 0 0;font-weight:800;}
@media(max-width:1280px){body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid{grid-template-columns:repeat(4,minmax(0,1fr));}body .gs360-company-shell .gs360-print-center-filter form{grid-template-columns:repeat(2,minmax(0,1fr));}body .gs360-company-shell .gs360-print-center-filter .gs360-print-search-field{grid-column:span 2;}body .gs360-company-shell .gs360-print-center-filter .gs360-print-filter-submit{grid-column:1 / -1;}body .gs360-company-shell .gs360-print-center-results-head{align-items:flex-start!important;}}
@media(max-width:760px){body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid{grid-template-columns:repeat(2,minmax(0,1fr));}body .gs360-company-shell .gs360-print-center-filter form{grid-template-columns:1fr;}body .gs360-company-shell .gs360-print-center-filter .gs360-print-search-field{grid-column:auto;}body .gs360-company-shell .gs360-print-center-filter .gs360-print-filter-submit{grid-column:auto;}body .gs360-company-shell .gs360-print-center-actions{justify-content:flex-start;}body .gs360-company-shell .gs360-print-center-actions select{min-width:100%;}}

@media print{
  @page{size:A4;margin:8mm;}
  html,body{margin:0!important;padding:0!important;min-height:0!important;height:auto!important;background:#fff!important;}
  body.gs360-print-deadline .gs360-deadline-print-sheet{position:fixed!important;inset:0 auto auto 0!important;transform:none!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important;page-break-before:avoid!important;break-before:avoid-page!important;}
  body.gs360-print-center *{visibility:hidden!important;}
  body.gs360-print-center #centro-stampa,body.gs360-print-center #centro-stampa *{visibility:visible!important;}
  body.gs360-print-center #centro-stampa{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important;}
  body.gs360-print-center #centro-stampa .gs360-company-module-head,body.gs360-print-center #centro-stampa .gs360-print-center-filter,body.gs360-print-center #centro-stampa .gs360-company-panel-head,body.gs360-print-center #centro-stampa input[type=checkbox]{display:none!important;}
  body.gs360-print-center #centro-stampa .gs360-print-center-results{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;}
  body.gs360-print-center #centro-stampa .is-print-excluded{display:none!important;}
  body.gs360-print-center:not(.gs360-print-center-cards-mode) .gs360-print-center-cards{display:none!important;}
  body.gs360-print-center:not(.gs360-print-center-cards-mode) .gs360-print-center-table{display:table!important;width:100%!important;border-collapse:collapse!important;font-size:8px!important;}
  body.gs360-print-center:not(.gs360-print-center-cards-mode) .gs360-print-center-table th,body.gs360-print-center:not(.gs360-print-center-cards-mode) .gs360-print-center-table td{padding:5px!important;border:1px solid #cbd5e1!important;}
  body.gs360-print-center-cards-mode .gs360-print-center-table{display:none!important;}
  body.gs360-print-center-cards-mode .gs360-print-center-cards{display:block!important;}
  body.gs360-print-center-cards-mode .gs360-print-center-cards article{display:block!important;margin:0 0 10mm!important;border:1px solid #94a3b8!important;break-inside:avoid-page!important;page-break-inside:avoid!important;}
}


/* =====================================================
 * CR-102.3 — Stampa in alto e panoramica annuale Dashboard compatta
 * ===================================================== */
@media print{
  @page{size:A4;margin:8mm!important;}
  body.gs360-print-deadline{margin:0!important;padding:0!important;}
  body.gs360-print-deadline > .gs360-deadline-print-sheet{
    display:block!important;
    visibility:visible!important;
    position:static!important;
    inset:auto!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    min-height:0!important;
    height:auto!important;
    break-before:auto!important;
    page-break-before:auto!important;
  }
  body.gs360-print-deadline > .gs360-deadline-print-sheet *{visibility:visible!important;}
  body.gs360-print-deadline > *:not(.gs360-deadline-print-sheet){display:none!important;}
  body.gs360-print-deadline .gs360-print-header{margin-top:0!important;padding-top:0!important;}
  body.gs360-print-deadline .gs360-deadline-print-sheet h1{margin-top:10px!important;}
}

body .gs360-company-shell #dashboard .gs360-dashboard-annual-overview{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:14px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-overview .gs360-dashboard-panel-head{
  margin-bottom:10px!important;
  align-items:center!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:6px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-month{
  min-width:0!important;
  width:auto!important;
  padding:6px!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-month header{
  margin-bottom:5px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-month header strong{
  font-size:9px!important;
  white-space:nowrap!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-days{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:2px!important;
  width:100%!important;
  min-width:0!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-day,
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-days>span{
  width:100%!important;
  min-width:0!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  border-radius:2px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-month footer{
  margin-top:5px!important;
  gap:3px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-month footer span,
body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid .gs360-calendar-overview-month footer a{
  font-size:7px!important;
  white-space:nowrap!important;
}
@media(max-width:1280px){
  body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-dashboard-annual-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}


/* =====================================================
 * CR-103.1 — Consolidamento UI Dashboard, Calendario e Tabelle
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-annual-overview{display:none!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card .gs360-dashboard-panel-head h3{font-size:24px!important;line-height:1.12!important;font-weight:950!important;color:#071b4d!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card .gs360-dashboard-month-weekdays span{min-height:30px!important;font-size:11px!important;font-weight:950!important;letter-spacing:.04em!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card .gs360-dashboard-month-day>strong{font-size:18px!important;font-weight:950!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card .gs360-dashboard-month-events a{font-size:11px!important;line-height:1.25!important;}
body .gs360-company-shell .gs360-calendar-view-tabs a,body .gs360-company-shell .gs360-dashboard-inline-view-tabs a,body .gs360-company-shell #dashboard .gs360-dashboard-inline-open-calendar,body .gs360-company-shell .gs360-action-btn{min-height:36px!important;padding:8px 14px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:11px!important;font-weight:900!important;line-height:1!important;box-sizing:border-box!important;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-overview-day.is-sunday{background:#fff1f2!important;box-shadow:inset 0 0 0 1px rgba(225,29,72,.20)!important;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-overview-day.is-holiday{background:#fee2e2!important;box-shadow:inset 0 0 0 1px rgba(220,38,38,.42)!important;position:relative!important;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-overview-day.is-holiday:after{content:"";position:absolute;width:3px;height:3px;border-radius:50%;background:#dc2626;right:2px;top:2px;}
body .gs360-company-shell .gs360-tables-summary{grid-template-columns:repeat(2,minmax(190px,1fr))!important;min-width:min(440px,45%)!important;}
body .gs360-company-shell .gs360-config-groups-all{display:grid!important;gap:14px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group{margin:0!important;padding:16px!important;border:1px solid #dce6f1!important;border-radius:18px!important;background:#fff!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group-head{margin:0 0 12px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group-head h3{margin:0 0 3px!important;font-size:16px!important;line-height:1.2!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group-head p{margin:0!important;font-size:11px!important;line-height:1.35!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards{gap:10px!important;align-items:stretch!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards>a{height:100%!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards>a>article{min-height:82px!important;height:100%!important;padding:13px 14px!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;border-radius:14px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards .gs360-module-card-icon{width:46px!important;height:46px!important;min-width:46px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards h3{font-size:14px!important;line-height:1.2!important;margin:0 0 3px!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-company-module-cards p{font-size:10px!important;line-height:1.3!important;margin:0!important;}
body .gs360-company-shell .gs360-config-groups-all .gs360-config-group:last-child .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
@media(max-width:1180px){body .gs360-company-shell .gs360-tables-summary{min-width:0!important;width:100%!important;}body .gs360-company-shell .gs360-config-groups-all .gs360-config-group:last-child .gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:680px){body .gs360-company-shell .gs360-config-groups-all .gs360-config-group:last-child .gs360-company-module-cards{grid-template-columns:1fr!important;}}


/* =====================================================
 * CR-103.2 — Calendario Dashboard conforme al mockup approvato
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card{min-width:0!important;overflow:visible!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head{align-items:flex-start!important;gap:18px!important;margin-bottom:12px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-card .gs360-dashboard-panel-head h3,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head h3{font-size:28px!important;line-height:1.08!important;font-weight:950!important;color:#071b4d!important;letter-spacing:-.02em!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-calendar-head>div:first-child>p:last-child{font-size:11px!important;line-height:1.45!important;color:#61728c!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-stage{grid-template-columns:42px minmax(0,1fr) 42px!important;gap:10px!important;align-items:stretch!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-nav{width:42px!important;min-width:42px!important;min-height:100%!important;border-radius:14px!important;font-size:25px!important;font-weight:900!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-wrap{padding:8px!important;overflow:hidden!important;border-radius:16px!important;background:#fbfdff!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-grid{grid-template-columns:48px repeat(7,minmax(0,1fr))!important;gap:3px!important;min-width:0!important;width:100%!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays{margin-bottom:3px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays span{min-height:34px!important;border-radius:7px!important;font-size:13px!important;line-height:1!important;font-weight:950!important;color:#071b4d!important;letter-spacing:.025em!important;background:#f0f5fb!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays span.is-week-label{font-size:10px!important;color:#4f6380!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays span:last-child{color:#d7192d!important;background:#fff0f1!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-grid{grid-auto-rows:minmax(86px,1fr)!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-index{display:flex!important;align-items:center!important;justify-content:center!important;min-height:86px!important;border:1px solid #dce6f1!important;border-radius:8px!important;background:#f5f8fc!important;color:#18345f!important;font-weight:950!important;box-sizing:border-box!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-index span{font-size:12px!important;line-height:1!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day{min-height:86px!important;padding:8px!important;border-radius:9px!important;overflow:hidden!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-empty{background:#fff!important;border-color:#edf2f7!important;opacity:.66!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-head strong{font-size:20px!important;line-height:1!important;font-weight:950!important;color:#071b4d!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-head span{min-width:20px!important;height:20px!important;font-size:9px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-sunday{background:#fff7f7!important;border-color:#f1b1b7!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-sunday .gs360-dashboard-inline-day-head strong{color:#df152b!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day.is-holiday{background:#fff8f8!important;}
body .gs360-company-shell #dashboard .gs360-calendar-holiday-label{margin-top:5px!important;padding:3px 7px!important;font-size:9px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events{margin-top:5px!important;gap:3px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events a{min-height:19px!important;padding:3px 5px!important;border-radius:5px!important;font-size:10px!important;line-height:1.15!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events a em{font-size:9px!important;font-weight:950!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-events a span{font-size:10px!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
@media(max-width:1320px){
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays span{font-size:11px!important;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-head strong{font-size:18px!important;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-grid{grid-auto-rows:minmax(78px,1fr)!important;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-index,body .gs360-company-shell #dashboard .gs360-dashboard-inline-day{min-height:78px!important;}
}
@media(max-width:980px){
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-wrap{overflow-x:auto!important;}
 body .gs360-company-shell #dashboard .gs360-dashboard-inline-weekdays,body .gs360-company-shell #dashboard .gs360-dashboard-inline-month-grid{min-width:820px!important;}
}

/* =====================================================
 * CR-103.3 — Tabelle: layout a quattro colonne conforme al mockup
 * ===================================================== */
body .gs360-company-shell #configurazioni .gs360-tables-head{
  padding:24px 26px!important;
  min-height:112px!important;
  align-items:center!important;
}
body .gs360-company-shell #configurazioni .gs360-tables-head h2{
  font-size:34px!important;
  line-height:1.05!important;
  margin:3px 0 8px!important;
  letter-spacing:-.025em!important;
}
body .gs360-company-shell #configurazioni .gs360-tables-head>div:first-child>p:last-child{
  font-size:14px!important;
  line-height:1.45!important;
}
body .gs360-company-shell #configurazioni .gs360-tables-summary{
  grid-template-columns:repeat(2,minmax(170px,1fr))!important;
  width:min(430px,42%)!important;
  min-width:390px!important;
  gap:14px!important;
}
body .gs360-company-shell #configurazioni .gs360-tables-summary>div{
  min-height:66px!important;
  padding:13px 16px!important;
  border-radius:14px!important;
  align-content:center!important;
}
body .gs360-company-shell #configurazioni .gs360-tables-summary strong{
  font-size:25px!important;
}
body .gs360-company-shell #configurazioni .gs360-tables-summary span{
  font-size:13px!important;
}
body .gs360-company-shell #configurazioni .gs360-tables-summary small{
  font-size:10px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all{
  gap:10px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group{
  padding:16px 22px 18px!important;
  border-radius:16px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group-head{
  margin:0 0 12px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group-head h3{
  font-size:18px!important;
  line-height:1.15!important;
  margin:0 0 3px!important;
  font-weight:900!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-config-group-head p{
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:650!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards,
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-persone .gs360-company-module-cards,
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-company-module-cards,
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-documenti .gs360-company-module-cards,
body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  max-width:none!important;
  align-items:stretch!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a{
  min-width:0!important;
  height:100%!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article{
  min-height:104px!important;
  height:100%!important;
  padding:18px 17px!important;
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) 18px!important;
  gap:14px!important;
  align-items:center!important;
  border-radius:15px!important;
  box-sizing:border-box!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article>.gs360-module-card-icon{
  width:62px!important;
  height:62px!important;
  min-width:62px!important;
  border-radius:19px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article>.gs360-module-card-icon svg{
  width:39px!important;
  height:39px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article>div{
  min-width:0!important;
  align-self:center!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article h3{
  font-size:16px!important;
  line-height:1.22!important;
  margin:0 0 6px!important;
  font-weight:900!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article p{
  font-size:12px!important;
  line-height:1.42!important;
  margin:0!important;
  color:#5f7190!important;
  max-width:24ch!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article>em{
  top:9px!important;
  right:10px!important;
  font-size:9px!important;
  line-height:1!important;
  padding:4px 7px!important;
  border-radius:999px!important;
}
body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article:after{
  font-size:28px!important;
  line-height:1!important;
  align-self:center!important;
  justify-self:end!important;
}
@media(max-width:1280px){
  body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-persone .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-documenti .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body .gs360-company-shell #configurazioni .gs360-tables-head{padding:20px!important;}
  body .gs360-company-shell #configurazioni .gs360-tables-summary{width:100%!important;min-width:0!important;grid-template-columns:1fr 1fr!important;}
  body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-persone .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-organizzazione .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-documenti .gs360-company-module-cards,
  body .gs360-company-shell #configurazioni .gs360-config-groups-all #gs360-config-panel-amministrazione .gs360-company-module-cards{
    grid-template-columns:1fr!important;
  }
  body .gs360-company-shell #configurazioni .gs360-config-groups-all .gs360-company-module-cards>a>article{
    min-height:96px!important;
  }
}


/* CR-103.4 — Rubrica semplificata: codice tecnico nascosto e campo unico nominativo. */
.gs360-contacts-help{margin:0 0 14px;font-size:13px;line-height:1.5}
.gs360-contacts-table th:first-child,.gs360-contacts-table td:first-child{min-width:230px}
.gs360-contacts-table td:first-child strong{font-size:14px}
.gs360-contact-form .gs360-field-denominazione{grid-column:span 2}
@media(max-width:900px){.gs360-contact-form .gs360-field-denominazione{grid-column:span 1}}

/* CR-103.5 — Rubrica: Nome e Cognome separati per le persone; Denominazione per organizzazioni. */
.gs360-contact-form .gs360-field-person{display:none}
.gs360-contact-form.is-person .gs360-field-person{display:flex}
.gs360-contact-form.is-person .gs360-field-org{display:none}
.gs360-contact-form.is-organization .gs360-field-person{display:none}
.gs360-contact-form.is-organization .gs360-field-org{display:flex}
.gs360-contact-form .gs360-field-nome,.gs360-contact-form .gs360-field-cognome{grid-column:span 1}
.gs360-contact-form .gs360-field-denominazione{grid-column:span 2}
@media(max-width:900px){.gs360-contact-form .gs360-field-denominazione{grid-column:span 1}}

/* CR-103.6 — Fix visualizzazione dinamica campi Rubrica.
 * Le classi di stato vengono applicate al contenitore del wizard; i campi
 * Nome/Cognome o Denominazione devono quindi reagire anche a tale contenitore. */
.gs360-contact-form-card.is-person .gs360-contact-form .gs360-field-person{display:flex}
.gs360-contact-form-card.is-person .gs360-contact-form .gs360-field-org{display:none}
.gs360-contact-form-card.is-organization .gs360-contact-form .gs360-field-person{display:none}
.gs360-contact-form-card.is-organization .gs360-contact-form .gs360-field-org{display:flex}

/* =====================================================
 * CR-103.7 — Categorie / Servizi uniformata alle Tabelle
 * ===================================================== */
.gs360-category-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}
.gs360-category-kpi-grid .gs360-company-card{min-height:76px;padding:14px 16px}
.gs360-category-kpi-grid .gs360-company-card span{font-size:12px;font-weight:800;color:#65728a}
.gs360-category-kpi-grid .gs360-company-card strong{font-size:24px;color:#07163e}
.gs360-category-action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;margin-bottom:12px}
.gs360-category-form-panel{margin-bottom:12px}
.gs360-category-form-panel .gs360-company-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.gs360-category-table-panel{padding:14px}
.gs360-category-filters{display:grid;grid-template-columns:minmax(280px,1.8fr) minmax(160px,.7fr) minmax(160px,.7fr) auto;gap:10px;align-items:center;margin-bottom:12px}
.gs360-category-filters input,.gs360-category-filters select{width:100%;min-height:42px;border:1px solid #cbd8e8;border-radius:10px;background:#fff;padding:9px 12px;color:#0d1b3d;font-size:13px;box-sizing:border-box}
.gs360-category-help{display:flex;flex-wrap:wrap;gap:5px 8px;margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#f7faff;color:#40516e;font-size:12px;line-height:1.45}
.gs360-category-help strong{color:#07163e}
.gs360-category-table-wrap{overflow:auto;border:1px solid #d6e0ec;border-radius:10px;background:#fff}
.gs360-category-table{width:100%;min-width:1040px;border-collapse:collapse;table-layout:fixed}
.gs360-category-table th,.gs360-category-table td{padding:11px 10px;border-bottom:1px solid #dbe4ef;border-right:1px solid #e2e9f2;text-align:left;vertical-align:middle;font-size:12px;color:#253552}
.gs360-category-table th:last-child,.gs360-category-table td:last-child{border-right:0}
.gs360-category-table tbody tr:last-child td{border-bottom:0}
.gs360-category-table th{background:#f8fafc;color:#4a5870;font-size:11px;font-weight:900}
.gs360-category-table th:nth-child(1){width:19%}.gs360-category-table th:nth-child(2){width:10%}.gs360-category-table th:nth-child(3){width:25%}.gs360-category-table th:nth-child(4){width:15%}.gs360-category-table th:nth-child(5){width:10%}.gs360-category-table th:nth-child(6){width:21%}
.gs360-category-table td>strong{display:block;color:#07163e;font-size:13px;font-weight:900;line-height:1.3}
.gs360-category-table td>small{display:block;margin-top:4px;color:#66748a;font-size:10px}
.gs360-category-visual{display:flex;align-items:center;gap:8px}
.gs360-category-visual i{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:color-mix(in srgb,var(--gs360-category-color) 12%,white);color:var(--gs360-category-color);border:1px solid color-mix(in srgb,var(--gs360-category-color) 35%,white);font-style:normal;flex:0 0 auto}
.gs360-category-visual i svg{width:20px;height:20px}.gs360-category-visual code{font-size:10px;color:#596984;background:#f5f7fa;padding:4px 6px;border-radius:6px}
.gs360-status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:68px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}
.gs360-status-pill.is-active{background:#ecfbf1;color:#16833a}.gs360-status-pill.is-inactive{background:#f1f3f6;color:#667085}
.gs360-category-actions-table{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gs360-category-actions-table .gs360-action-btn{min-height:30px;padding:6px 9px;border-radius:999px;font-size:10px}
.gs360-category-locked{font-size:10px;color:#6c788d;font-weight:700}
.gs360-category-table tr[hidden]{display:none}
@media(max-width:1200px){.gs360-category-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gs360-category-filters{grid-template-columns:1fr 1fr}.gs360-category-filters input{grid-column:1/-1}}
@media(max-width:700px){.gs360-category-kpi-grid{grid-template-columns:1fr 1fr}.gs360-category-action-bar{align-items:stretch;flex-direction:column}.gs360-category-action-bar .gs360-action-btn{justify-content:center}.gs360-category-filters{grid-template-columns:1fr}.gs360-category-filters input{grid-column:auto}.gs360-category-form-panel .gs360-company-panel-head{flex-direction:column}.gs360-category-kpi-grid .gs360-company-card{min-height:66px}}


/* CR-103.10 — Modale categorie: chiusura affidabile e barra azioni sempre visibile. */
[data-gs360-inline-modal="categoria"] .gs360-inline-manager-dialog{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
[data-gs360-inline-modal="categoria"] .gs360-inline-manager-head{
  flex:0 0 auto;
  background:#fff;
  z-index:3;
}
[data-gs360-inline-modal="categoria"] .gs360-inline-manager-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
}
[data-gs360-inline-modal="categoria"] .gs360-inline-manager-form .gs360-inline-manager-actions{
  position:sticky;
  bottom:-24px;
  z-index:4;
  margin:2px -24px -24px;
  padding:14px 24px 16px;
  border-top:1px solid #dce6f2;
  background:#fff;
  box-shadow:0 -10px 24px rgba(7,31,77,.08);
}
@media(max-width:640px){
  [data-gs360-inline-modal="categoria"] .gs360-inline-manager-form .gs360-inline-manager-actions{
    bottom:-16px;
    margin:2px -16px -16px;
    padding:12px 16px 14px;
  }
}

/* CR-103.11 — Ricerca modale categorie corretta tramite filtro JS inline. */

/* CR-103.13 — Calendario: elenchi giornalieri paginati e indicatori eccedenza */
.gs360-calendar-list-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:10px 12px;border:1px solid #dbe5f2;border-radius:12px;background:#f8fbff}.gs360-calendar-list-tools label{display:flex;align-items:center;gap:8px;font-weight:700}.gs360-calendar-list-tools select{min-width:76px;padding:7px 28px 7px 10px;border:1px solid #cbd8ea;border-radius:9px;background:#fff}.gs360-calendar-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 12px;border-top:1px solid #dbe5f2}.gs360-calendar-pagination>span{font-weight:700;color:#51627a}.gs360-calendar-pagination>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.gs360-calendar-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border:1px solid #cbd8ea;border-radius:9px;background:#fff;color:#08245c;text-decoration:none;font-weight:700}.gs360-calendar-pagination a.is-active{background:#0a8f3f;color:#fff;border-color:#0a8f3f}.gs360-calendar-more-link{display:block!important;margin-top:5px!important;padding:5px 7px!important;border:1px dashed #9db4d2!important;border-radius:8px!important;background:#f4f8fd!important;color:#075ec7!important;font-weight:800!important;text-align:center!important;text-decoration:none!important}.gs360-dashboard-inline-day-list{max-height:420px;overflow:auto}.gs360-calendar-day-detail-list{max-height:none;overflow:visible}@media(max-width:780px){.gs360-calendar-list-tools,.gs360-calendar-pagination{align-items:flex-start;flex-direction:column}.gs360-calendar-pagination>div{width:100%}}


/* CR-103.18 — consolidamento Dashboard e Profilo Azienda */
.gs360-company-hero-no-logo{min-height:106px!important;padding:24px 34px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.gs360-company-hero-no-logo .gs360-company-hero-copy{margin:0!important}
.gs360-company-hero-no-logo .gs360-company-hero-copy h2{margin:0 0 4px!important}
.gs360-profile-step2-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.gs360-profile-step2-cards.is-anagrafica{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.gs360-profile-step2-cards.is-sedi{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.gs360-profile-inline-editor{margin-top:14px}.gs360-profile-inline-editor summary{display:inline-flex;cursor:pointer;list-style:none}.gs360-profile-inline-editor summary::-webkit-details-marker{display:none}
.gs360-profile-quick-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #e2eaf2}
.gs360-profile-quick-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#31445f}.gs360-profile-quick-form input{min-height:40px;border:1px solid #ccd8e6;border-radius:9px;padding:8px 10px;background:#fff}.gs360-profile-quick-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.gs360-moduli-list li.is-inactive{opacity:.72}.gs360-moduli-list li.is-inactive em{background:#f1f3f6;color:#667085}
.gs360-calendar-list-tools-compact{margin-top:0!important}.gs360-calendar-list-tools-compact>div{display:flex;align-items:center;gap:10px}.gs360-calendar-day-detail-panel>.gs360-calendar-day-detail-head{display:none!important}
.gs360-dashboard-inline-day-view>.gs360-dashboard-inline-day-head{display:none!important}
@media(max-width:900px){.gs360-profile-step2-kpis,.gs360-profile-step2-cards.is-anagrafica,.gs360-profile-step2-cards.is-sedi{grid-template-columns:1fr!important}.gs360-profile-quick-form{grid-template-columns:1fr}}


/* CR-103.19 — Testata Dashboard uniformata alla tipografia delle sezioni principali */
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-hero-copy h2{
  font-size:34px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-.025em!important;
  color:#06163d!important;
  margin:0 0 10px!important;
}
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-hero-copy p{
  font-size:15px!important;
  line-height:1.6!important;
  color:#5e6d84!important;
  margin:0!important;
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-hero-copy h2{font-size:30px!important;}
}


/* CR-103.20 — Standard unico testate + vista giorno compatta e paginazione inferiore */
body .gs360-company-shell .gs360-unified-page-head,
body .gs360-company-shell .gs360-company-module-head{
  min-height:112px!important;
  padding:24px 30px!important;
  margin:0 0 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  background:#fff!important;
  border:1px solid #dce6f1!important;
  border-radius:18px!important;
  box-shadow:0 10px 28px rgba(7,27,77,.045)!important;
  text-align:left!important;
}
body .gs360-company-shell .gs360-unified-page-head>div:first-child,
body .gs360-company-shell .gs360-company-module-head>div:first-child{min-width:0!important;flex:1 1 auto!important}
body .gs360-company-shell .gs360-unified-page-head .gs360-kicker,
body .gs360-company-shell .gs360-company-module-head .gs360-kicker{
  margin:0 0 8px!important;font-size:12px!important;line-height:1.2!important;font-weight:900!important;letter-spacing:.055em!important;text-transform:uppercase!important;color:#159447!important
}
body .gs360-company-shell .gs360-unified-page-head h2,
body .gs360-company-shell .gs360-company-module-head h2{
  margin:0 0 8px!important;font-size:34px!important;line-height:1.08!important;font-weight:900!important;letter-spacing:-.025em!important;color:#06163d!important
}
body .gs360-company-shell .gs360-unified-page-head p,
body .gs360-company-shell .gs360-company-module-head p{
  margin:0!important;font-size:15px!important;line-height:1.55!important;color:#5e6d84!important
}
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo{
  justify-content:space-between!important;text-align:left!important
}
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-hero-copy{
  margin:0!important;order:1!important;flex:1 1 auto!important
}
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-status{
  position:static!important;order:2!important;flex:0 0 auto!important;margin-left:auto!important
}
.gs360-dashboard-inline-day-view>header{display:none!important}
.gs360-calendar-list-tools-total{min-height:44px!important;margin:0 0 10px!important;padding:8px 12px!important}
.gs360-dashboard-inline-day-list{max-height:none!important;overflow:visible!important}
.gs360-calendar-pagination-with-size{display:grid!important;grid-template-columns:auto minmax(180px,auto) 1fr!important;align-items:center!important;gap:12px!important;margin-top:12px!important;padding:12px!important;border:1px solid #dbe5f2!important;border-radius:12px!important;background:#f8fbff!important}
.gs360-calendar-page-size{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;font-size:12px!important;font-weight:800!important;color:#263b59!important;white-space:nowrap!important}
.gs360-calendar-page-size select{min-width:76px!important;padding:7px 28px 7px 10px!important;border:1px solid #cbd8ea!important;border-radius:9px!important;background:#fff!important}
.gs360-calendar-page-links{justify-content:flex-end!important}
@media(max-width:900px){
 body .gs360-company-shell .gs360-unified-page-head,body .gs360-company-shell .gs360-company-module-head{min-height:auto!important;padding:20px!important;align-items:flex-start!important;flex-direction:column!important}
 body .gs360-company-shell .gs360-unified-page-head h2,body .gs360-company-shell .gs360-company-module-head h2{font-size:30px!important}
 body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-status{margin-left:0!important}
 .gs360-calendar-pagination-with-size{grid-template-columns:1fr!important;align-items:stretch!important}
 .gs360-calendar-page-size{justify-content:flex-start!important}
 .gs360-calendar-page-links{justify-content:flex-start!important}
}

/* CR-103.21 — Dashboard, Scadenze, Profilo e Calendario: rifinitura testate e vista Giorno */
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo{
  min-height:112px!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-hero-copy{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
body .gs360-company-shell #dashboard .gs360-company-hero-no-logo .gs360-company-status{display:none!important;}

/* Profilo: nessuna etichetta verde ridondante in testata. */
body .gs360-company-shell #profilo-azienda .gs360-profile-hero .gs360-kicker{display:none!important;}

/* Calendario: titolo di sezione stabile; periodo selezionato secondario e verde. */
body .gs360-company-shell .gs360-calendar-main-head .gs360-calendar-selected-period{
  margin:2px 0 5px!important;
  color:#159447!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:850!important;
  text-transform:none!important;
}
body .gs360-company-shell .gs360-calendar-main-head h2{color:#06163d!important;}

/* Vista Giorno Dashboard: altezza preservata, elenco completo iniziale in area interna controllata. */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-view{
  min-height:350px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-day-list{
  max-height:270px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
body .gs360-company-shell #dashboard .gs360-calendar-pagination-with-size{
  margin-top:8px!important;
}

/* Card rapide Scadenze uniformate alle card operative della Dashboard e più compatte. */
body .gs360-company-shell #scadenze .gs360-scadenze-operational-panel{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon{
  min-height:112px!important;
  padding:12px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  text-align:center!important;
  border:1px solid #dbe5f2!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(7,27,77,.035)!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon>span{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:17px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 0 2px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational .gs360-scadenze-quick-icon>span svg{
  width:29px!important;
  height:29px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational strong{
  font-size:14px!important;
  line-height:1.2!important;
  margin:0!important;
  color:#071b4d!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational em{
  font-size:10px!important;
  line-height:1.25!important;
  margin:0!important;
  color:#63758d!important;
  font-style:normal!important;
}
@media(max-width:1100px){
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:620px){
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{grid-template-columns:1fr!important;}
}

/* CR-103.22 — default Tutte con contenitori ad altezza stabile */
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-day-detail-list{max-height:420px;overflow:auto;align-content:start;}
body .gs360-company-shell [data-gs360-company-view="scadenze"] .gs360-table-wrap{max-height:520px;overflow:auto;}


/* CR-103.23 — Viste Giorno compatte, elenco Scadenze aperto e Calendario senza evidenza */
.gs360-deadlines-accordion[open] > .gs360-deadlines-accordion-body{display:block}
.gs360-compact-deadline-table{border:1px solid #d8e3ee;border-radius:12px;background:#fff;overflow:hidden;width:100%}
.gs360-compact-deadline-head,.gs360-compact-deadline-row{display:grid;align-items:center;column-gap:14px}
.gs360-dashboard-day-table .gs360-compact-deadline-head,.gs360-dashboard-day-table .gs360-compact-deadline-row{grid-template-columns:72px minmax(210px,1.1fr) minmax(240px,1.8fr) 18px}
.gs360-calendar-full-day-table .gs360-compact-deadline-head,.gs360-calendar-full-day-table .gs360-compact-deadline-row{grid-template-columns:72px minmax(190px,1.35fr) minmax(210px,2fr) minmax(105px,.8fr) minmax(95px,.7fr) minmax(85px,.65fr) minmax(125px,.9fr)}
.gs360-compact-deadline-head{min-height:36px;padding:0 14px;background:#f7fafc;border-bottom:1px solid #d8e3ee;color:#233b5a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
.gs360-compact-deadline-body{display:block}
.gs360-compact-deadline-row{min-height:37px;padding:4px 14px;border-bottom:1px solid #e5edf5;color:#536980;text-decoration:none;line-height:1.2;transition:background .14s ease}
.gs360-compact-deadline-row:last-child{border-bottom:0}
.gs360-compact-deadline-row:hover{background:#f5faf7}
.gs360-compact-deadline-row time{color:#0662c8;font-weight:850;font-style:normal}
.gs360-compact-deadline-row strong{color:#092558;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs360-compact-deadline-row span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs360-compact-deadline-row b{color:#092558;font-size:20px;text-align:right}
.gs360-dashboard-inline-day-view{overflow:visible!important}
.gs360-dashboard-day-table .gs360-compact-deadline-body{max-height:410px;overflow:auto;scrollbar-width:thin}
.gs360-calendar-day-detail-panel{padding:14px!important}
.gs360-calendar-day-table-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.gs360-calendar-day-table-title h3{margin:0;color:#071b4d;font-size:19px}
.gs360-calendar-day-table-title p{margin:3px 0 0;color:#159447;font-weight:800;font-size:12px}
.gs360-calendar-full-day-table .gs360-compact-deadline-body{max-height:480px;overflow:auto;scrollbar-width:thin}
.gs360-calendar-highlight-panel{display:none!important}
@media(max-width:1100px){.gs360-calendar-full-day-table{overflow-x:auto}.gs360-calendar-full-day-table .gs360-compact-deadline-head,.gs360-calendar-full-day-table .gs360-compact-deadline-row{min-width:1050px}}
@media(max-width:760px){.gs360-dashboard-day-table .gs360-compact-deadline-head{display:none}.gs360-dashboard-day-table .gs360-compact-deadline-row{grid-template-columns:58px minmax(0,1fr) 16px}.gs360-dashboard-day-table .gs360-compact-deadline-row span{grid-column:2}.gs360-dashboard-day-table .gs360-compact-deadline-row b{grid-column:3;grid-row:1/3}}


/* =====================================================
 * GESTIONE SCADENZE360
 * CR-103.23.1 — Fix contenitore, bordi e footer Elenco Scadenze
 * Baseline: 0.6.43.7.0-alpha — CR-103.23
 * Scopo: chiudere correttamente il riquadro risultati, contenere la tabella,
 * riallineare il selettore vista e proteggere la paginazione dal pulsante Aiuto.
 * Database: nessuna modifica.
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-deadlines-panel-extended{
    overflow:hidden!important;
    box-sizing:border-box!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-accordion-body{
    padding:0 14px 16px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-filter-preview{
    margin-left:0!important;
    margin-right:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-viewbar{
    width:100%!important;
    max-width:100%!important;
    margin:14px 0 10px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-view-switch{
    margin-left:auto!important;
    padding-right:2px!important;
    flex:0 0 auto!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    border:1px solid #d9e4ef!important;
    border-radius:14px 14px 0 0!important;
    background:#fff!important;
    box-shadow:none!important;
    scrollbar-gutter:stable both-edges!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended{
    margin:0!important;
    border:0!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    min-width:1180px!important;
    width:100%!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th:first-child,
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:first-child{
    border-left:0!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th:last-child,
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:last-child{
    border-right:0!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended tbody tr:last-child td{
    border-bottom:0!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-actions-head,
body .gs360-company-shell #scadenze .gs360-deadlines-actions-cell{
    right:0!important;
    box-sizing:border-box!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-pagination{
    width:100%!important;
    max-width:100%!important;
    min-height:58px!important;
    margin:-1px 0 0!important;
    padding:12px 92px 12px 14px!important;
    box-sizing:border-box!important;
    border:1px solid #d9e4ef!important;
    border-top:1px solid #e4ebf3!important;
    border-radius:0 0 14px 14px!important;
    background:#f8fbff!important;
    position:relative!important;
    z-index:2!important;
    overflow:visible!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-pagination-controls{
    justify-content:flex-end!important;
    margin-left:auto!important;
    max-width:100%!important;
}
@media (max-width:1100px){
    body .gs360-company-shell #scadenze .gs360-deadlines-pagination{
        padding-right:76px!important;
    }
}
@media (max-width:760px){
    body .gs360-company-shell #scadenze .gs360-deadlines-accordion-body{
        padding:0 10px 18px!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-viewbar{
        overflow:visible!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-view-switch{
        width:100%!important;
        margin-left:0!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-pagination{
        padding:12px 12px 76px!important;
        align-items:flex-start!important;
    }
    body .gs360-company-shell #scadenze .gs360-deadlines-pagination-controls{
        width:100%!important;
        justify-content:flex-start!important;
        margin-left:0!important;
    }
}
/* Fine CR-103.23.1 */


/* =====================================================
 * GESTIONE SCADENZE360
 * CR-103.23.2 — Elenco Scadenze: “Tutte” realmente completo
 * Baseline: 0.6.43.7.0.1-alpha — CR-103.23.1
 * Scopo: rimuovere il limite di altezza e qualsiasi clipping quando
 * il selettore Righe è impostato su Tutte; i valori numerici restano paginati.
 * Database: nessuna modifica.
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap.is-show-all{
    max-height:none!important;
    height:auto!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap.is-show-all .gs360-deadlines-table-extended{
    height:auto!important;
    max-height:none!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap.is-show-all tbody{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap.is-show-all tr{
    visibility:visible!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap.is-paginated{
    max-height:520px!important;
    overflow-x:auto!important;
    overflow-y:auto!important;
}
/* Fine CR-103.23.2 */

/* =====================================================
 * CR-103.23.3 — Standard globale tab più leggibili
 * Regola trasversale: aumenta leggibilità, area cliccabile e coerenza
 * visiva dei tab senza alterare ordine, collegamenti o logica funzionale.
 * ===================================================== */
body .gs360-company-shell :is(
  .gs360-calendar-view-tabs a,
  .gs360-dashboard-inline-view-tabs a,
  .gs360-tabs a,
  .gs360-tabs span,
  .gs360-access-tabs a,
  .gs360-access-tabs button,
  .gs360-notice-tabs-nav button,
  .gs360-team-tabs a,
  .gs360-profile-tablist button,
  .gs360-plan-tab-cr1002,
  .gs360-report-tabs a,
  .gs360-report-tabs button,
  [role="tab"]
){
  min-height:44px!important;
  padding:10px 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:999px!important;
  font-family:Montserrat,Inter,sans-serif!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  text-align:center!important;
  box-sizing:border-box!important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}

body .gs360-company-shell :is(
  .gs360-calendar-view-tabs,
  .gs360-dashboard-inline-view-tabs,
  .gs360-tabs,
  .gs360-access-tabs,
  .gs360-notice-tabs-nav,
  .gs360-team-tabs,
  .gs360-profile-tablist,
  .gs360-plan-tabs-cr1002,
  .gs360-report-tabs
){
  gap:10px!important;
}

body .gs360-company-shell :is(
  .gs360-calendar-view-tabs a,
  .gs360-dashboard-inline-view-tabs a
):hover{
  transform:translateY(-1px);
  box-shadow:0 5px 14px rgba(13,43,82,.10)!important;
}

/* Stato attivo uniforme e chiaramente distinguibile. */
body .gs360-company-shell :is(
  .gs360-calendar-view-tabs a.is-active,
  .gs360-dashboard-inline-view-tabs a.is-active,
  .gs360-tabs .active,
  .gs360-access-tabs .active,
  .gs360-access-tabs .is-active,
  .gs360-notice-tabs-nav .is-active,
  .gs360-team-tabs .is-active,
  .gs360-profile-tablist .is-active,
  .gs360-plan-tab-cr1002.is-active,
  .gs360-report-tabs .is-active,
  [role="tab"][aria-selected="true"]
){
  font-weight:900!important;
}

/* Dashboard e Calendario: priorità alla leggibilità dei tab vista. */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-view-tabs a,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-view-tabs a{
  min-height:46px!important;
  padding:11px 20px!important;
  font-size:14px!important;
  font-weight:900!important;
}

@media(max-width:760px){
  body .gs360-company-shell :is(
    .gs360-calendar-view-tabs,
    .gs360-dashboard-inline-view-tabs,
    .gs360-tabs,
    .gs360-access-tabs,
    .gs360-notice-tabs-nav,
    .gs360-team-tabs,
    .gs360-profile-tablist,
    .gs360-plan-tabs-cr1002,
    .gs360-report-tabs
  ){
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:thin!important;
    padding-bottom:6px!important;
  }
  body .gs360-company-shell :is(
    .gs360-calendar-view-tabs a,
    .gs360-dashboard-inline-view-tabs a,
    .gs360-tabs a,
    .gs360-tabs span,
    .gs360-access-tabs a,
    .gs360-access-tabs button,
    .gs360-notice-tabs-nav button,
    .gs360-team-tabs a,
    .gs360-profile-tablist button,
    .gs360-plan-tab-cr1002,
    .gs360-report-tabs a,
    .gs360-report-tabs button,
    [role="tab"]
  ){
    flex:0 0 auto!important;
    min-height:44px!important;
    padding:10px 16px!important;
    font-size:13.5px!important;
  }
}
/* Fine CR-103.23.3 */

/* CR-103.23.5 — Ambito operativo limitato alle sedi. */
body .gs360-company-shell .gs360-sede-only-picker{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:100%!important;
}
body .gs360-company-shell .gs360-sede-only-picker > label{
  width:100%!important;
  max-width:none!important;
}
/* Fine CR-103.23.5 */

/* CR-103.23.6 — Menu moduli, Cantieri non attivo e Centro Notifiche semplificato. */
.gs360-company-nav .gs360-company-nav-disabled{
    display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;
    color:#7b8497;background:rgba(255,255,255,.28);border:1px dashed #cfd6e3;
    cursor:not-allowed;opacity:.72;position:relative;
}
.gs360-company-nav .gs360-company-nav-disabled svg{width:20px;height:20px;opacity:.65}
.gs360-company-nav .gs360-company-nav-disabled small{margin-left:auto;font-size:10px;font-weight:800;text-transform:uppercase;white-space:nowrap}
.gs360-company-sidebar.is-collapsed .gs360-company-nav-disabled .gs360-nav-label,
.gs360-company-sidebar.is-collapsed .gs360-company-nav-disabled small{display:none}
.gs360-module-card-disabled{min-width:0}
.gs360-module-card-disabled article{opacity:.58;filter:grayscale(.35);cursor:not-allowed;border-style:dashed!important;background:#f7f8fb!important}
.gs360-module-card-disabled article em{background:#eef0f4!important;color:#687086!important}
.gs360-notice-tabs-single{grid-template-columns:minmax(220px,360px)!important;justify-content:flex-start}
.gs360-notice-panel-retired{display:none!important}
.gs360-filter-labeled{display:flex;flex-direction:column;gap:5px;min-width:180px}
.gs360-filter-labeled>span{font-size:11px;font-weight:800;text-transform:uppercase;color:#59657b;letter-spacing:.02em}
.gs360-notification-filters{align-items:flex-end}
@media(max-width:900px){.gs360-notice-tabs-single{grid-template-columns:1fr!important}.gs360-filter-labeled{min-width:100%}}
/* Fine CR-103.23.6 */

/* =====================================================
 * CR-103.23.7 — Gestione Cantieri: pagina informativa, modulo non attivo
 * ===================================================== */
.gs360-company-nav .gs360-company-nav-planned{
    position:relative;
    opacity:.82;
}
.gs360-company-nav .gs360-company-nav-planned small{
    margin-left:auto;
    padding:3px 7px;
    border-radius:999px;
    background:#eef1f5;
    color:#657086;
    font-size:9px;
    font-weight:900;
    line-height:1;
    text-transform:uppercase;
    white-space:nowrap;
}
.gs360-company-nav .gs360-company-nav-planned.active small{
    background:rgba(255,255,255,.18);
    color:#fff;
}
.gs360-company-sidebar.is-collapsed .gs360-company-nav-planned small{display:none}
.gs360-cantieri-disabled-head{align-items:center!important}
.gs360-module-status-disabled{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:8px 14px;
    border:1px solid #d3dae5;
    border-radius:999px;
    background:#f3f5f8;
    color:#626d80;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}
.gs360-cantieri-disabled-panel{
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    gap:24px;
    align-items:start;
    margin-top:16px;
    padding:30px;
    border:1px solid #dbe3ed;
    border-radius:18px;
    background:linear-gradient(135deg,#ffffff 0%,#f7f9fc 100%);
    box-shadow:0 8px 24px rgba(21,48,83,.05);
}
.gs360-cantieri-disabled-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:82px;
    height:82px;
    border:1px dashed #b8c2d2;
    border-radius:20px;
    background:#eef2f7;
    color:#758095;
}
.gs360-cantieri-disabled-icon svg{width:42px;height:42px}
.gs360-cantieri-disabled-copy h3{
    margin:2px 0 10px;
    color:#0b234f;
    font-size:24px;
    line-height:1.25;
}
.gs360-cantieri-disabled-copy>p:not(.gs360-kicker){
    max-width:920px;
    margin:0;
    color:#59667a;
    font-size:14px;
    line-height:1.65;
}
.gs360-cantieri-future-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:24px;
}
.gs360-cantieri-future-grid article{
    padding:16px;
    border:1px solid #e0e6ef;
    border-radius:14px;
    background:#fff;
}
.gs360-cantieri-future-grid strong{
    display:block;
    margin-bottom:5px;
    color:#142a52;
    font-size:14px;
}
.gs360-cantieri-future-grid span{
    color:#68758a;
    font-size:12px;
    line-height:1.45;
}
.gs360-cantieri-disabled-note{
    margin-top:18px;
    padding:13px 15px;
    border-left:4px solid #9aa6b8;
    border-radius:8px;
    background:#eef2f6;
    color:#536075;
    font-size:13px;
}
@media(max-width:760px){
    .gs360-cantieri-disabled-panel{grid-template-columns:1fr;padding:20px}
    .gs360-cantieri-disabled-icon{width:66px;height:66px}
    .gs360-cantieri-future-grid{grid-template-columns:1fr}
    .gs360-module-status-disabled{margin-top:10px}
}
/* Fine CR-103.23.7 */

/* CR-103.23.10 — Notifiche essenziali e tabella alert semplificata. */
.gs360-notification-kpi-grid-simple{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gs360-notification-kpi-grid-simple .gs360-notification-kpi-card{cursor:default;min-height:82px}
.gs360-notification-kpi-grid-simple .gs360-notification-kpi-card.is-total{border-color:#9bb9ff;background:#f7f9ff}
.gs360-notification-kpi-grid-simple .gs360-notification-kpi-card.is-due{border-color:#f5c06f;background:#fffaf1}
.gs360-notification-kpi-grid-simple .gs360-notification-kpi-card.is-future{border-color:#cbb9ff;background:#faf8ff}
.gs360-notification-kpi-grid-simple .gs360-notification-kpi-card.is-sent{border-color:#9de0b0;background:#f4fff7}
.gs360-notification-kpi-grid-simple .gs360-notification-kpi-card.is-failed{border-color:#ffb3b3;background:#fff6f6}
.gs360-notification-center .gs360-notification-filters{grid-template-columns:minmax(170px,220px) minmax(320px,1fr) auto}
.gs360-notification-center .gs360-alert-control-board{justify-content:flex-end}
.gs360-notification-center .gs360-notification-table th:nth-child(1){width:25%}
.gs360-notification-center .gs360-notification-table th:nth-child(2){width:12%}
.gs360-notification-center .gs360-notification-table th:nth-child(3){width:21%}
.gs360-notification-center .gs360-notification-table th:nth-child(4){width:25%}
.gs360-notification-center .gs360-notification-table th:nth-child(5){width:17%}
@media(max-width:980px){.gs360-notification-kpi-grid-simple{grid-template-columns:repeat(2,minmax(0,1fr))}.gs360-notification-center .gs360-notification-filters{grid-template-columns:1fr}}

/* CR-103.23.11 - Notifiche essenziali: 3 KPI e nessuna azione manuale ridondante */

/* CR-103.23.12 - Report scadenze semplificato */
.gs360-report-filters-simple{
  grid-template-columns:minmax(180px,.65fr) minmax(280px,1.35fr) auto;
  align-items:end;
}
.gs360-report-kpi-grid-simple{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.gs360-report-kpi-grid-simple .gs360-company-card small{
  display:block;
  margin-top:4px;
  color:var(--gs360-muted,#60708a);
  font-size:12px;
  font-weight:600;
}
.gs360-report-kpi-text{
  font-size:18px !important;
  line-height:1.2;
}
.gs360-report-quicklinks-simple{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.gs360-report-simple-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.gs360-report-summary-table-panel{
  grid-column:1 / -1;
}
.gs360-report-panel-categories,
.gs360-report-panel-months,
.gs360-report-summary-table-panel{
  min-width:0;
}
.gs360-report-month-bars .gs360-report-bar-row > span{
  min-width:128px;
}
.gs360-report-summary-layout{
  display:grid;
  grid-template-columns:minmax(320px,420px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.gs360-report-summary-chart-card,
.gs360-report-summary-table-card{
  min-width:0;
}
.gs360-report-donut-card{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:8px 0 2px;
}
.gs360-report-donut-ring{
  --gs360-report-donut: conic-gradient(#e8eef7 0 100%);
  width:220px;
  height:220px;
  border-radius:50%;
  margin:0 auto;
  position:relative;
  background:var(--gs360-report-donut);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.08);
}
.gs360-report-donut-ring::before{
  content:'';
  position:absolute;
  inset:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 8px 30px rgba(15,23,42,.08);
}
.gs360-report-donut-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:1;
  text-align:center;
}
.gs360-report-donut-center strong{
  font-size:40px;
  line-height:1;
  color:var(--gs360-text-strong,#10224f);
}
.gs360-report-donut-center span{
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--gs360-muted,#60708a);
}
.gs360-report-donut-copy{
  text-align:left;
}
.gs360-report-donut-copy strong{
  display:block;
  font-size:16px;
  color:var(--gs360-text-strong,#10224f);
}
.gs360-report-donut-copy p{
  margin:8px 0 0;
  color:var(--gs360-muted,#60708a);
  line-height:1.55;
}
.gs360-report-reset-link{
  display:inline-flex;
  margin-top:12px;
  font-size:13px;
  font-weight:700;
  color:#2563eb;
  text-decoration:none;
}
.gs360-report-reset-link.is-static{
  color:var(--gs360-muted,#60708a);
}
.gs360-report-summary-table th:nth-child(2),
.gs360-report-summary-table td:nth-child(2),
.gs360-report-summary-table th:nth-child(3),
.gs360-report-summary-table td:nth-child(3){
  width:180px;
  text-align:center;
}
.gs360-report-summary-table tbody tr.is-active{
  background:#f5f9ff;
}
.gs360-report-category-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}
.gs360-report-category-link.is-static{
  cursor:default;
}
.gs360-report-color-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--gs360-report-color,#2563eb);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--gs360-report-color,#2563eb) 18%, white);
  flex:0 0 12px;
}
@media (max-width:980px){
  .gs360-report-filters-simple,
  .gs360-report-kpi-grid-simple,
  .gs360-report-simple-grid,
  .gs360-report-quicklinks-simple,
  .gs360-report-summary-layout{grid-template-columns:1fr;}
  .gs360-report-summary-table-panel{grid-column:auto;}
}

/* CR-103.23.16 — Report essenziale e Step 1 Nuova scadenza allineato al mockup approvato */
body .gs360-company-shell .gs360-essential-layout{
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr)!important;
  grid-template-areas:
    "ident priority"
    "ident schedule"!important;
  gap:18px!important;
  align-items:stretch!important;
}
body .gs360-company-shell .gs360-essential-identification{grid-area:ident!important;}
body .gs360-company-shell .gs360-essential-status{grid-area:priority!important;}
body .gs360-company-shell .gs360-essential-schedule{grid-area:schedule!important;}
body .gs360-company-shell .gs360-essential-card{border-radius:18px!important;padding:20px!important;}
body .gs360-company-shell .gs360-essential-identification textarea{min-height:108px!important;}
body .gs360-company-shell .gs360-essential-status,
body .gs360-company-shell .gs360-essential-schedule{min-height:0!important;}
.gs360-report-summary-strip{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin:14px 0;padding:13px 16px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fbff;color:#53637b;
}
.gs360-report-summary-strip strong{font-size:15px;color:#10224f;}
.gs360-report-summary-strip span{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;}
.gs360-report-summary-strip span::before{content:'•';color:#20a653;}
.gs360-report-overview-panel{margin-bottom:16px!important;}
.gs360-report-months-full{width:100%;}
.gs360-report-months-full .gs360-report-month-bars{display:grid;gap:9px;}
.gs360-report-months-full .gs360-report-bar-row{grid-template-columns:150px minmax(0,1fr) 38px;align-items:center;gap:12px;}
.gs360-report-months-full .gs360-report-bar-row>div{height:10px;border-radius:999px;background:#edf2f8;overflow:hidden;}
.gs360-report-months-full .gs360-report-bar-row i{display:block;height:100%;border-radius:999px;background:#20a653;}
.gs360-report-months-full .gs360-report-bar-row.is-peak i{background:#087f3f;}
.gs360-report-months-full .gs360-report-bar-row strong{text-align:right;}
@media(max-width:1100px){
  body .gs360-company-shell .gs360-essential-layout{grid-template-columns:1fr 1fr!important;grid-template-areas:"ident priority" "ident schedule"!important;}
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-essential-layout{grid-template-columns:1fr!important;grid-template-areas:"ident" "priority" "schedule"!important;}
  .gs360-report-months-full .gs360-report-bar-row{grid-template-columns:110px minmax(0,1fr) 30px;}
}


/* CR-103.23.17 — Report: distribuzione categorie e andamento mensile sulla stessa riga */
.gs360-report-analysis-row{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(420px,.82fr);
  gap:16px;
  align-items:stretch;
}
.gs360-report-analysis-row > .gs360-report-panel{
  min-width:0;
  height:100%;
  margin:0!important;
}
.gs360-report-analysis-row .gs360-report-overview-panel,
.gs360-report-analysis-row .gs360-report-months-full{
  display:flex;
  flex-direction:column;
}
.gs360-report-analysis-row .gs360-report-summary-layout,
.gs360-report-analysis-row .gs360-report-month-bars{
  flex:1 1 auto;
}
.gs360-report-analysis-row .gs360-report-summary-layout{
  grid-template-columns:minmax(200px,280px) minmax(0,1fr);
  gap:14px;
}
.gs360-report-analysis-row .gs360-report-donut-ring{
  width:180px;
  height:180px;
}
.gs360-report-analysis-row .gs360-report-donut-ring::before{inset:20px;}
.gs360-report-analysis-row .gs360-report-donut-center strong{font-size:34px;}
.gs360-report-analysis-row .gs360-report-summary-table th:nth-child(2),
.gs360-report-analysis-row .gs360-report-summary-table td:nth-child(2),
.gs360-report-analysis-row .gs360-report-summary-table th:nth-child(3),
.gs360-report-analysis-row .gs360-report-summary-table td:nth-child(3){
  width:92px;
}
.gs360-report-analysis-row .gs360-report-months-full .gs360-report-bar-row{
  grid-template-columns:118px minmax(0,1fr) 30px;
  gap:9px;
}
.gs360-report-analysis-row .gs360-report-months-full .gs360-report-month-bars{gap:8px;}
@media(max-width:1280px){
  .gs360-report-analysis-row{grid-template-columns:1fr;}
  .gs360-report-analysis-row .gs360-report-summary-layout{grid-template-columns:minmax(240px,320px) minmax(0,1fr);}
}
@media(max-width:760px){
  .gs360-report-analysis-row .gs360-report-summary-layout{grid-template-columns:1fr;}
  .gs360-report-analysis-row .gs360-report-months-full .gs360-report-bar-row{grid-template-columns:96px minmax(0,1fr) 26px;}
}

/* CR-103.23.18 — Stampa Report e collegamento Centro stampa per categoria */
.gs360-report-head-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.gs360-report-category-print{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid #bfd2ef;
  border-radius:9px;
  background:#f7fbff;
  color:#174b9a;
  text-decoration:none;
  font-size:16px;
  font-weight:900;
}
.gs360-report-category-print:hover,
.gs360-report-category-print:focus{background:#eaf3ff;border-color:#7eaae3;outline:2px solid rgba(36,116,210,.14);outline-offset:2px;}
.gs360-report-print-category-head,
.gs360-report-print-category-cell{width:76px!important;text-align:center!important;}

@media print{
  body.gs360-print-report *{visibility:hidden!important;}
  body.gs360-print-report #report,
  body.gs360-print-report #report *{visibility:visible!important;}
  body.gs360-print-report #report{
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    color:#0b1f4b!important;
  }
  body.gs360-print-report #report .gs360-report-head-actions,
  body.gs360-print-report #report .gs360-report-filter-actions,
  body.gs360-print-report #report .gs360-report-print-category-head,
  body.gs360-print-report #report .gs360-report-print-category-cell,
  body.gs360-print-report #report .gs360-report-reset-link{display:none!important;}
  body.gs360-print-report #report .gs360-company-module-head,
  body.gs360-print-report #report .gs360-report-filters,
  body.gs360-print-report #report .gs360-report-summary-strip,
  body.gs360-print-report #report .gs360-report-panel{
    box-shadow:none!important;
    border:1px solid #cbd5e1!important;
    background:#fff!important;
  }
  body.gs360-print-report #report .gs360-company-module-head{padding:10px 12px!important;margin:0 0 8px!important;}
  body.gs360-print-report #report .gs360-report-filters{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;padding:9px 12px!important;margin:0 0 8px!important;}
  body.gs360-print-report #report .gs360-report-filters label{display:block!important;}
  body.gs360-print-report #report .gs360-report-filters select{border:0!important;padding:0!important;min-height:0!important;background:transparent!important;appearance:none!important;font-weight:800!important;}
  body.gs360-print-report #report .gs360-report-summary-strip{display:flex!important;padding:8px 12px!important;margin:0 0 8px!important;}
  body.gs360-print-report #report .gs360-report-analysis-row{display:grid!important;grid-template-columns:1.15fr .85fr!important;gap:8px!important;}
  body.gs360-print-report #report .gs360-report-panel{padding:10px!important;break-inside:avoid!important;page-break-inside:avoid!important;}
  body.gs360-print-report #report .gs360-report-summary-layout{grid-template-columns:190px minmax(0,1fr)!important;gap:8px!important;}
  body.gs360-print-report #report .gs360-report-donut-ring{width:150px!important;height:150px!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}
  body.gs360-print-report #report .gs360-report-donut-ring::before{inset:17px!important;}
  body.gs360-print-report #report .gs360-report-donut-center strong{font-size:28px!important;}
  body.gs360-print-report #report .gs360-report-summary-table{font-size:8px!important;}
  body.gs360-print-report #report .gs360-report-summary-table th,
  body.gs360-print-report #report .gs360-report-summary-table td{padding:5px!important;border:1px solid #cbd5e1!important;}
  body.gs360-print-report #report .gs360-report-color-dot,
  body.gs360-print-report #report .gs360-report-bar-row i{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}
  body.gs360-print-report #report .gs360-report-month-bars{gap:5px!important;}
  body.gs360-print-report #report .gs360-report-bar-row{grid-template-columns:90px minmax(0,1fr) 22px!important;font-size:8px!important;}
  body.gs360-print-report #report .gs360-company-panel-head h3{font-size:13px!important;}
  body.gs360-print-report #report .gs360-company-panel-head p,
  body.gs360-print-report #report .gs360-report-donut-copy p{font-size:8px!important;}
}

/* CR-103.23.19 — Report classico dedicato alla stampa/PDF */
.gs360-report-print-sheet{display:none;}
@media print{
  @page{size:A4 portrait;margin:0;}
  html,body{background:#fff!important;}
  body.gs360-print-report *{visibility:hidden!important;}
  body.gs360-print-report>.gs360-report-print-sheet,
  body.gs360-print-report>.gs360-report-print-sheet *{visibility:visible!important;}
  /* CR-103.23.20: il report dedicato viene spostato direttamente nel body.
   * Nasconde completamente la Dashboard originale durante la stampa, evitando
   * pagine duplicate, URL degli anchor spezzati e tabelle residue dopo l'elenco. */
  body.gs360-print-report [data-gs360-company-shell]{display:none!important;}
  body.gs360-print-report>.gs360-report-print-sheet{
    display:block!important;
    position:absolute!important;
    inset:0 auto auto 0!important;
    width:210mm!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    color:#10224f!important;
    font-family:Arial,Helvetica,sans-serif!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body.gs360-print-report>.gs360-report-print-sheet .gs360-report-print-page{
    box-sizing:border-box!important;
    position:relative!important;
    width:210mm!important;
    min-height:297mm!important;
    padding:17mm 16mm 18mm!important;
    background:#fff!important;
    break-after:page!important;
    page-break-after:always!important;
    overflow:hidden!important;
  }
  body.gs360-print-report>.gs360-report-print-sheet .gs360-report-print-page:last-child{break-after:auto!important;page-break-after:auto!important;}
  .gs360-report-print-brand{display:flex!important;align-items:center!important;justify-content:space-between!important;padding-bottom:8mm!important;border-bottom:1px solid #d8e2ef!important;}
  .gs360-report-print-brand>div:last-child{text-align:right!important;display:flex!important;flex-direction:column!important;gap:2mm!important;}
  .gs360-report-print-brand small{font-size:9pt!important;color:#64748b!important;}
  .gs360-report-print-logo{display:flex!important;align-items:center!important;gap:3mm!important;font-size:18pt!important;color:#10224f!important;}
  .gs360-report-print-logo>span{display:grid!important;place-items:center!important;width:13mm!important;height:13mm!important;border:2px solid #16a34a!important;border-radius:50%!important;font-size:18pt!important;color:#10224f!important;}
  .gs360-report-print-logo strong span{color:#16a34a!important;}
  .gs360-report-print-title{margin-top:34mm!important;}
  .gs360-report-print-title p,.gs360-report-print-page-head p{margin:0 0 3mm!important;font-size:9pt!important;letter-spacing:.08em!important;font-weight:800!important;color:#16a34a!important;}
  .gs360-report-print-title h1{margin:0!important;font-size:30pt!important;line-height:1.1!important;color:#10224f!important;}
  .gs360-report-print-title>span{display:block!important;margin-top:4mm!important;font-size:12pt!important;color:#64748b!important;}
  .gs360-report-print-meta-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5mm!important;margin-top:18mm!important;}
  .gs360-report-print-meta-grid>div{padding:6mm!important;border:1px solid #d8e2ef!important;border-radius:4mm!important;background:#f8fbff!important;}
  .gs360-report-print-meta-grid span{display:block!important;font-size:8pt!important;text-transform:uppercase!important;color:#64748b!important;margin-bottom:2mm!important;}
  .gs360-report-print-meta-grid strong{font-size:14pt!important;color:#10224f!important;}
  .gs360-report-print-cover-note{position:absolute!important;left:16mm!important;bottom:34mm!important;font-size:9pt!important;color:#64748b!important;}
  .gs360-report-print-page footer{position:absolute!important;left:16mm!important;right:16mm!important;bottom:9mm!important;display:flex!important;justify-content:space-between!important;padding-top:3mm!important;border-top:1px solid #d8e2ef!important;font-size:8pt!important;color:#64748b!important;}
  .gs360-report-print-page-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;padding-bottom:5mm!important;border-bottom:1px solid #d8e2ef!important;margin-bottom:8mm!important;}
  .gs360-report-print-page-head h2{margin:0!important;font-size:20pt!important;color:#10224f!important;}
  .gs360-report-print-page-head>span{font-size:10pt!important;font-weight:700!important;color:#64748b!important;}
  .gs360-report-print-distribution{display:grid!important;grid-template-columns:68mm 1fr!important;gap:8mm!important;align-items:start!important;}
  .gs360-report-print-chart svg{width:64mm!important;height:64mm!important;display:block!important;}
  .gs360-report-print-svg-total{font-size:32px!important;font-weight:800!important;fill:#10224f!important;}
  .gs360-report-print-svg-label{font-size:11px!important;font-weight:800!important;fill:#64748b!important;letter-spacing:1px!important;}
  .gs360-report-print-table{width:100%!important;border-collapse:collapse!important;font-size:9pt!important;table-layout:fixed!important;}
  .gs360-report-print-table th{background:#edf4fb!important;color:#10224f!important;font-size:8pt!important;text-transform:uppercase!important;letter-spacing:.03em!important;}
  .gs360-report-print-table th,.gs360-report-print-table td{padding:3.2mm!important;border:1px solid #cbd5e1!important;vertical-align:middle!important;}
  .gs360-report-print-table th:nth-child(n+2),.gs360-report-print-table td:nth-child(n+2){text-align:center!important;width:25mm!important;}
  .gs360-report-print-table td i{display:inline-block!important;width:3mm!important;height:3mm!important;border-radius:50%!important;background:var(--print-color)!important;margin-right:2.5mm!important;vertical-align:middle!important;}
  .gs360-report-print-months{display:flex!important;flex-direction:column!important;gap:5mm!important;margin-top:3mm!important;}
  .gs360-report-print-months>div{display:grid!important;grid-template-columns:37mm 1fr 10mm!important;gap:4mm!important;align-items:center!important;font-size:10pt!important;}
  .gs360-report-print-months b{display:block!important;height:5mm!important;background:#edf3f9!important;border-radius:999px!important;overflow:hidden!important;}
  .gs360-report-print-months b i{display:block!important;height:100%!important;background:#16a34a!important;border-radius:999px!important;}
  .gs360-report-print-months .is-peak b i{background:#0f7f3c!important;}
  .gs360-report-print-months strong{text-align:right!important;}
  .gs360-report-print-list-page{overflow:visible!important;min-height:auto!important;}
  .gs360-report-print-deadlines{font-size:8.5pt!important;}
  .gs360-report-print-deadlines th:nth-child(1),.gs360-report-print-deadlines td:nth-child(1){width:26mm!important;text-align:left!important;}
  .gs360-report-print-deadlines th:nth-child(2),.gs360-report-print-deadlines td:nth-child(2){width:45mm!important;text-align:left!important;}
  .gs360-report-print-deadlines th:nth-child(3),.gs360-report-print-deadlines td:nth-child(3){width:auto!important;text-align:left!important;}
  .gs360-report-print-deadlines th:nth-child(4),.gs360-report-print-deadlines td:nth-child(4){width:24mm!important;text-align:center!important;}
  .gs360-report-print-deadlines tr{break-inside:avoid!important;page-break-inside:avoid!important;}

  body.gs360-print-report>.gs360-report-print-sheet a::after{content:none!important;display:none!important;}
  body.gs360-print-report>.gs360-report-print-sheet a{color:inherit!important;text-decoration:none!important;}
  body.gs360-print-report>.gs360-report-print-sheet .gs360-report-print-table,
  body.gs360-print-report>.gs360-report-print-sheet .gs360-report-print-table tbody,
  body.gs360-print-report>.gs360-report-print-sheet .gs360-report-print-table tr,
  body.gs360-print-report>.gs360-report-print-sheet .gs360-report-print-table td,
  body.gs360-print-report>.gs360-report-print-sheet .gs360-report-print-table th{overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;}
}

/* CR-103.23.21 — Gerarchia menu Gestione Scadenze e vista settimana completa. */
body .gs360-company-shell .gs360-company-nav .gs360-company-nav-child{margin-left:5mm;width:calc(100% - 5mm);}
body .gs360-company-shell .gs360-company-nav .gs360-company-nav-parent{font-weight:900;}
body .gs360-company-shell .gs360-company-nav-separator{height:1px;margin:8px 10px;background:#c9cbd4;opacity:.9;}
body .gs360-company-shell .gs360-company-nav .gs360-company-nav-profile{margin-top:2px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day{display:flex;flex-direction:column;max-height:390px;overflow:hidden;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events{min-height:0;max-height:285px;overflow-y:auto;overflow-x:hidden;padding-right:3px;scrollbar-width:thin;scrollbar-color:#9fb5ce #eef4fa;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events>a{display:flex;align-items:flex-start;gap:5px;margin-top:5px;padding:6px;border-radius:8px;background:#eaf3ff;color:#0b2a5b;text-decoration:none;font-size:9px;font-weight:800;line-height:1.2;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events>a em{font-style:normal;font-weight:900;flex:0 0 auto;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events>a span{min-width:0;overflow-wrap:anywhere;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events::-webkit-scrollbar{width:7px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events::-webkit-scrollbar-thumb{background:#9fb5ce;border-radius:8px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events::-webkit-scrollbar-track{background:#eef4fa;border-radius:8px;}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-nav .gs360-company-nav-child{margin-left:0;width:100%;}

/* CR-103.23.22 — Scadenze essenziali e calendario settimanale con scroll interno. */
body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-day{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-events-scroll{
  min-height:0!important;
  max-height:360px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:4px!important;
  scrollbar-width:thin;
  scrollbar-color:#9fb5ce #eef4fa;
}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-events-scroll::-webkit-scrollbar{width:7px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-events-scroll::-webkit-scrollbar-thumb{background:#9fb5ce;border-radius:8px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-events-scroll::-webkit-scrollbar-track{background:#eef4fa;border-radius:8px;}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-toolbar-panel{
  margin-top:14px!important;
}
@media(max-width:760px){
  body .gs360-company-shell #scadenze .gs360-scadenze-quick-icons-operational{grid-template-columns:1fr!important;}
  body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-week-events-scroll{max-height:300px!important;}
}

/* CR-103.23.23 — Aiuto contestuale trasversale delle sezioni aziendali. */
body .gs360-company-shell .gs360-unified-page-head{overflow:visible!important;}
body .gs360-company-shell .gs360-section-help{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  z-index:40;
}
body .gs360-company-shell .gs360-section-help-trigger{
  width:38px;
  height:38px;
  border:1px solid #bdd3ee;
  border-radius:50%;
  background:#f7fbff;
  color:#0b5fc6;
  font:900 18px/1 Arial,sans-serif;
  cursor:help;
  box-shadow:0 3px 10px rgba(15,47,91,.08);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
body .gs360-company-shell .gs360-section-help-trigger:hover,
body .gs360-company-shell .gs360-section-help-trigger:focus-visible{
  background:#eaf5ff;
  border-color:#3b82f6;
  transform:translateY(-1px);
  outline:3px solid rgba(59,130,246,.18);
  outline-offset:2px;
}
body .gs360-company-shell .gs360-section-help-tooltip{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(390px,calc(100vw - 42px));
  padding:15px 16px;
  border:1px solid #bfd3ec;
  border-radius:14px;
  background:#fff;
  color:#42526b;
  box-shadow:0 16px 40px rgba(15,37,70,.18);
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  text-align:left;
  white-space:normal;
  z-index:9999;
}
body .gs360-company-shell .gs360-section-help-tooltip::before{
  content:"";
  position:absolute;
  right:12px;
  top:-7px;
  width:12px;
  height:12px;
  background:#fff;
  border-left:1px solid #bfd3ec;
  border-top:1px solid #bfd3ec;
  transform:rotate(45deg);
}
body .gs360-company-shell .gs360-section-help-tooltip strong{
  display:block;
  margin:0 0 7px;
  color:#0c2451;
  font-size:15px;
  line-height:1.25;
}
body .gs360-company-shell .gs360-section-help-tooltip>span{
  display:block;
  font-size:13px;
  line-height:1.55;
}
body .gs360-company-shell .gs360-section-help:hover .gs360-section-help-tooltip,
body .gs360-company-shell .gs360-section-help:focus-within .gs360-section-help-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
body .gs360-company-shell .gs360-page-head-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  margin-left:auto;
}
body .gs360-company-shell .gs360-company-module-actions .gs360-section-help{margin-right:3px;}
body .gs360-company-shell .gs360-scadenze-module-head-enhanced>.gs360-section-help,
body .gs360-company-shell .gs360-profile-hero-step2>.gs360-section-help{margin-left:auto;}
@media(max-width:760px){
  body .gs360-company-shell .gs360-section-help-trigger{width:36px;height:36px;font-size:17px;}
  body .gs360-company-shell .gs360-section-help-tooltip{position:fixed;right:16px;left:16px;top:auto;bottom:78px;width:auto;}
  body .gs360-company-shell .gs360-section-help-tooltip::before{display:none;}
  body .gs360-company-shell .gs360-page-head-tools{width:100%;justify-content:space-between;align-items:flex-start;}
}
@media print{
  body .gs360-company-shell .gs360-section-help{display:none!important;}
}


/* CR-103.23.24 — Uniformazione testate, aiuto contestuale globale e KPI Scadenze. */
body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced .gs360-page-head-tools{
  margin-left:auto!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
body .gs360-company-shell #documenti .gs360-documents-module-head-pro{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
}
body .gs360-company-shell #documenti .gs360-documents-head-tools{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:14px!important;
}
body .gs360-company-shell #documenti .gs360-documents-head-tools .gs360-documents-quick-icons{
  margin-left:0!important;
}
@media(max-width:1400px){
  body .gs360-company-shell #documenti .gs360-documents-module-head-pro,
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{align-items:flex-start!important;}
  body .gs360-company-shell #documenti .gs360-documents-head-tools{width:auto!important;max-width:100%;flex-wrap:wrap!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:900px){
  body .gs360-company-shell #documenti .gs360-documents-module-head-pro,
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{flex-direction:column!important;}
  body .gs360-company-shell #documenti .gs360-documents-head-tools,
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced .gs360-page-head-tools{width:100%!important;margin-left:0!important;justify-content:flex-end!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:620px){
  body .gs360-company-shell #scadenze .gs360-scadenze-kpi-mockup{grid-template-columns:1fr!important;}
}


/* CR-103.23.25 — Uniformazione testata Scadenze e navigazione annuale Calendario. */
body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{
  position:relative!important;
  width:100%!important;
  min-height:112px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  padding-right:28px!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced .gs360-scadenze-module-title{
  flex:1 1 auto!important;
  min-width:0!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced .gs360-page-head-tools{
  position:absolute!important;
  top:24px!important;
  right:24px!important;
  width:auto!important;
  margin:0!important;
  justify-content:flex-end!important;
}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-toolbar-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-year-jump-inline{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-left:auto!important;
}
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-open-current,
body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-jump-actions{display:none!important;}
@media(max-width:900px){
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{min-height:104px!important;padding-right:20px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced .gs360-page-head-tools{top:18px!important;right:18px!important;}
  body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-toolbar-top{align-items:flex-start!important;flex-wrap:wrap!important;}
  body .gs360-company-shell [data-gs360-company-view="calendario-scadenze"] .gs360-calendar-year-jump-inline{width:100%!important;justify-content:flex-end!important;}
}


/* CR-103.23.26 — Azioni Scadenze nella testata superiore. */
body .gs360-company-shell #scadenze .gs360-scadenze-head-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
body .gs360-company-shell #scadenze .gs360-scadenze-head-actions .gs360-section-help{order:0!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-head-actions .gs360-action-btn{min-height:38px!important;}
body .gs360-company-shell #scadenze .gs360-scadenze-operational-panel{display:none!important;}
@media(max-width:900px){
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{min-height:150px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-head-actions{max-width:calc(100% - 36px)!important;}
}
@media(max-width:620px){
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{min-height:210px!important;}
  body .gs360-company-shell #scadenze .gs360-scadenze-head-actions{left:18px!important;right:18px!important;top:100px!important;max-width:none!important;justify-content:flex-start!important;}
}

/* CR-103.23.27 — Ricorrenza e sede integrate nello Step 1 Dati essenziali */
body .gs360-company-shell .gs360-essential-location-inline{margin-top:2px;}
body .gs360-company-shell .gs360-recurrence-card-inline{
  margin-top:14px;
  padding:14px;
  border:1px solid #d7e4f2;
  border-radius:14px;
  background:#f8fbff;
}
body .gs360-company-shell .gs360-recurrence-card-inline .gs360-recurrence-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
body .gs360-company-shell .gs360-recurrence-card-inline .gs360-inline-unit{display:flex;gap:8px;align-items:center;}
body .gs360-company-shell .gs360-recurrence-card-inline .gs360-inline-unit>*{min-width:0;}
@media(max-width:760px){
  body .gs360-company-shell .gs360-recurrence-card-inline .gs360-recurrence-options{grid-template-columns:1fr;}
}

/* CR-103.23.29 — Alert e notifiche: promemoria più chiari e guidati. */
body .gs360-company-shell .gs360-alert-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
body .gs360-company-shell .gs360-alert-panel-head>.gs360-section-help{margin-left:auto;flex:0 0 auto}
body .gs360-company-shell .gs360-reminder-list{display:grid;gap:10px;margin-top:14px}
body .gs360-company-shell .gs360-reminder-row{display:grid!important;grid-template-columns:auto minmax(170px,1fr) minmax(250px,320px);align-items:center;gap:14px;padding:12px 14px;border:1px solid #dbe5f0;border-radius:12px;background:#fff}
body .gs360-company-shell .gs360-reminder-row>input[type=checkbox]{width:18px!important;height:18px;margin:0}
body .gs360-company-shell .gs360-reminder-row.is-disabled{opacity:.55;background:#f5f7fa}
body .gs360-company-shell .gs360-reminder-row .gs360-days-input{margin:0}
body .gs360-company-shell .gs360-reminder-label{display:flex;align-items:center;gap:8px}
body .gs360-company-shell .gs360-message-step-card .gs360-simple-details{margin:0;padding:0;border-top:0}
body .gs360-company-shell .gs360-message-step-card .gs360-simple-details>p{margin:8px 0 12px;color:#68788d}
body .gs360-company-shell .gs360-message-step-card textarea+small{display:block;text-align:right;margin-top:5px}
@media(max-width:760px){body .gs360-company-shell .gs360-alert-panel-head{align-items:center}body .gs360-company-shell .gs360-reminder-row{grid-template-columns:auto 1fr}body .gs360-company-shell .gs360-reminder-row .gs360-days-input{grid-column:1/-1}}


/* CR-103.23.30 — Testata Scadenze: azioni complete e centratura verticale */
body .gs360-company-shell .gs360-scadenze-module-head-enhanced{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
}
body .gs360-company-shell .gs360-scadenze-module-title{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:48px;
}
body .gs360-company-shell .gs360-scadenze-head-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
}
body .gs360-company-shell .gs360-scadenze-head-actions>*{
  align-self:center!important;
}
body .gs360-company-shell .gs360-scadenze-head-actions .gs360-action-btn,
body .gs360-company-shell .gs360-scadenze-head-actions .gs360-section-help{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
}
@media(max-width:1100px){
  body .gs360-company-shell .gs360-scadenze-module-head-enhanced{align-items:flex-start!important;flex-direction:column!important;}
  body .gs360-company-shell .gs360-scadenze-head-actions{margin-left:0!important;justify-content:flex-start!important;width:100%!important;}
}


/* CR-103.23.31 — Elenco Scadenze semplificato e selettore vista coerente */
body .gs360-company-shell #scadenze .gs360-deadlines-view-switch .gs360-view-mode-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:38px!important;padding:8px 16px!important;border:1px solid #cfe0f5!important;
  border-radius:999px!important;background:#fff!important;color:#0e234f!important;
  box-shadow:none!important;font-weight:800!important;text-decoration:none!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-view-switch .gs360-view-mode-btn.is-current,
body .gs360-company-shell #scadenze .gs360-deadlines-view-switch .gs360-view-mode-btn[aria-current="true"]{
  background:#0f5b4f!important;color:#fff!important;border-color:#0f5b4f!important;
  box-shadow:0 7px 16px rgba(15,91,79,.20)!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-view-switch .gs360-view-mode-btn:not(.is-current):hover{
  background:#f3f8ff!important;border-color:#8ebcf4!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{
  grid-template-columns:repeat(7,minmax(135px,1fr))!important;
}
body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended{
  min-width:1050px!important;
}
@media(max-width:1280px){
 body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{grid-template-columns:repeat(4,minmax(150px,1fr))!important;}
}
@media(max-width:760px){
 body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{grid-template-columns:1fr 1fr!important;}
}


/* CR-103.23.33 — Aiuto contestuale per ogni tab del wizard e promemoria allineati. */
body .gs360-company-shell .gs360-wizard-panel-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important}
body .gs360-company-shell .gs360-wizard-panel-head>div:first-child{min-width:0;flex:1 1 auto}
body .gs360-company-shell .gs360-wizard-panel-head>.gs360-section-help{margin-left:auto;flex:0 0 auto}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"check label" "days days"!important;align-content:start!important;align-items:center!important;gap:10px 12px!important;height:100%!important;min-width:0!important;padding:14px!important}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-row>input[type=checkbox]{grid-area:check!important}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-label{grid-area:label!important;min-width:0!important}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-row .gs360-days-input{grid-area:days!important;width:100%!important;min-width:0!important}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-row .gs360-days-input input{min-width:0!important;width:100%!important}
@media(max-width:980px){body .gs360-company-shell .gs360-alert-simple .gs360-reminder-list{grid-template-columns:1fr 1fr!important}}
@media(max-width:680px){body .gs360-company-shell .gs360-wizard-panel-head{align-items:center!important}body .gs360-company-shell .gs360-alert-simple .gs360-reminder-list{grid-template-columns:1fr!important}}

/* CR-103.23.33.1 — Fix layout promemoria Step 3 */
body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  width:100%;
  min-width:0;
}
body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list .gs360-reminder-row{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"check label" "days days";
  align-content:start;
  gap:10px 12px;
  min-width:0;
  width:100%;
  margin:0;
}
body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list .gs360-reminder-row>input[type=checkbox]{grid-area:check;align-self:center}
body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list .gs360-reminder-label{grid-area:label;min-width:0}
body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list .gs360-days-input{grid-area:days;width:100%;min-width:0}
body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list .gs360-days-input input{min-width:0;width:100%}
@media(max-width:1000px){
  body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  body .gs360-company-shell .gs360-simple-step-card>.gs360-reminder-list{grid-template-columns:1fr}
}

/* CR-103.23.34 — Affinamento UI Step 3 Alert e notifiche + Step 6 Condivisione */
body .gs360-company-shell .gs360-alert-simple{
  display:grid;
  gap:14px;
}
body .gs360-company-shell .gs360-alert-simple>.gs360-simple-step-card,
body .gs360-company-shell .gs360-alert-simple>.gs360-message-step-card{
  margin:0!important;
  padding:18px 18px 18px 58px!important;
  border-radius:15px!important;
  box-shadow:0 2px 10px rgba(15,35,79,.035);
}
body .gs360-company-shell .gs360-alert-simple .gs360-simple-step-number{
  left:16px!important;
  top:16px!important;
  width:28px!important;
  height:28px!important;
  font-size:14px!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-simple-step-card h4,
body .gs360-company-shell .gs360-alert-simple .gs360-message-step-card h4{
  font-size:17px!important;
  line-height:1.25!important;
  margin-bottom:5px!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-simple-step-card>div>p,
body .gs360-company-shell .gs360-alert-simple .gs360-message-step-card p{
  font-size:14px!important;
  line-height:1.45!important;
  margin-bottom:12px!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-choice-card{
  min-height:104px!important;
  padding:16px!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-choice-card strong{
  font-size:15px!important;
  line-height:1.25!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-choice-card small{
  font-size:12.5px!important;
  line-height:1.4!important;
}
body .gs360-company-shell .gs360-alert-simple label>span,
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-label{
  font-size:14px!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-list{
  gap:14px!important;
  margin-top:14px!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-row{
  padding:16px!important;
  min-height:112px!important;
  border-radius:13px!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-reminder-label strong{
  font-size:14px!important;
  line-height:1.25!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-days-input{
  min-height:42px!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-days-input input{
  font-size:15px!important;
  font-weight:700!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-days-input em{
  font-size:13px!important;
  font-weight:700!important;
}
body .gs360-company-shell .gs360-alert-simple .gs360-message-step-card textarea{
  min-height:128px!important;
  font-size:14px!important;
  line-height:1.5!important;
}

body .gs360-company-shell .gs360-sharing-simple{
  display:grid;
  gap:14px;
}
body .gs360-company-shell .gs360-sharing-simple>.gs360-simple-step-card{
  margin:0!important;
  padding:16px 16px 16px 56px!important;
  border-radius:15px!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-simple-step-number{
  left:16px!important;
  top:15px!important;
  width:28px!important;
  height:28px!important;
  font-size:14px!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-simple-step-card h4{
  font-size:16px!important;
  margin-bottom:4px!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-simple-step-card>div>p{
  font-size:13.5px!important;
  line-height:1.4!important;
  margin-bottom:10px!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-choice-grid{
  gap:12px!important;
  margin-top:10px!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-choice-card{
  min-height:88px!important;
  padding:14px 16px!important;
  align-items:center!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-choice-card strong{
  font-size:14px!important;
  line-height:1.25!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-choice-card small{
  font-size:12px!important;
  line-height:1.35!important;
}
body .gs360-company-shell .gs360-sharing-simple>.gs360-simple-step-card:nth-of-type(2) .gs360-choice-grid-three{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  max-width:none!important;
}
body .gs360-company-shell .gs360-sharing-simple .gs360-sharing-final-summary{
  margin-top:0!important;
  padding:11px 14px!important;
  font-size:13.5px!important;
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-alert-simple>.gs360-simple-step-card,
  body .gs360-company-shell .gs360-alert-simple>.gs360-message-step-card,
  body .gs360-company-shell .gs360-sharing-simple>.gs360-simple-step-card{
    padding:54px 14px 14px!important;
  }
  body .gs360-company-shell .gs360-alert-simple .gs360-simple-step-number,
  body .gs360-company-shell .gs360-sharing-simple .gs360-simple-step-number{
    left:14px!important;top:14px!important;
  }
  body .gs360-company-shell .gs360-sharing-simple>.gs360-simple-step-card:nth-of-type(2) .gs360-choice-grid-three{
    grid-template-columns:1fr!important;
  }
}



/* =====================================================
 * GESTIONE SCADENZE360
 * CR-103.23.35 — Filtri Elenco Scadenze su una sola riga
 * Baseline: 0.6.43.7.0.34-alpha — CR-103.23.34
 * Scopo: allineare Filtra e Reset alla stessa riga dei filtri,
 * distribuendo in modo uniforme l'intera barra su desktop.
 * Database: nessuna modifica.
 * ===================================================== */
@media (min-width: 1381px){
  body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{
    display:grid!important;
    grid-template-columns:minmax(150px,1.05fr) minmax(130px,.9fr) minmax(145px,.95fr) minmax(145px,.95fr) minmax(190px,1.18fr) minmax(155px,1fr) minmax(155px,1fr) auto!important;
    gap:10px!important;
    align-items:end!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions{
    grid-column:auto!important;
    justify-content:flex-start!important;
    align-self:end!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
    min-width:max-content!important;
    padding:0!important;
    margin:0!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions .gs360-action-btn{
    height:46px!important;
    min-width:auto!important;
    width:auto!important;
    justify-content:center!important;
    margin:0!important;
  }
}
@media (min-width:1101px) and (max-width:1380px){
  body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions{
    grid-column:4!important;
    justify-content:flex-end!important;
    align-self:end!important;
  }
}
/* Fine CR-103.23.35 */

/* =====================================================
 * CR-103.23.36 — Logout globale riposizionato
 * - rimosso dal footer della sidebar;
 * - azione fissa in alto a destra;
 * - azione duplicata nella barra servizio inferiore.
 * ===================================================== */
body .gs360-company-shell .gs360-company-logout-fixed{
  position:fixed!important;
  top:16px!important;
  right:22px!important;
  z-index:10050!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:0 16px!important;
  border:1px solid #0d1b3d!important;
  border-radius:999px!important;
  background:#0d1b3d!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:0 10px 24px rgba(13,27,61,.22)!important;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease!important;
}
body .gs360-company-shell .gs360-company-logout-fixed:hover,
body .gs360-company-shell .gs360-company-logout-fixed:focus-visible{
  background:#17346f!important;
  border-color:#17346f!important;
  transform:translateY(-1px)!important;
  box-shadow:0 13px 28px rgba(13,27,61,.28)!important;
  outline:none!important;
}
body .gs360-company-shell .gs360-company-logout-fixed .gs360-action-icon,
body .gs360-company-shell .gs360-company-logout-fixed .gs360-icon,
body .gs360-company-shell .gs360-company-logout-fixed svg{
  width:16px!important;
  height:16px!important;
  color:currentColor!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:84px!important;
  min-height:42px!important;
  margin-left:4px!important;
  padding:0 14px!important;
  border-radius:12px!important;
  background:#0d1b3d!important;
  border:1px solid #0d1b3d!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  order:98!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout:hover,
body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout:focus-visible{
  background:#17346f!important;
  border-color:#17346f!important;
  outline:none!important;
}
body .gs360-company-shell .gs360-company-service-footer-fixed.is-collapsed .gs360-service-footer-logout{
  display:inline-flex!important;
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-company-logout-fixed{
    top:10px!important;
    right:10px!important;
    width:42px!important;
    min-width:42px!important;
    padding:0!important;
  }
  body .gs360-company-shell .gs360-company-logout-fixed span{display:none!important;}
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout{
    min-width:42px!important;
    width:42px!important;
    padding:0!important;
  }
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout span{display:none!important;}
}
@media print{
  body .gs360-company-shell .gs360-company-logout-fixed,
  body .gs360-company-shell .gs360-company-service-footer-fixed .gs360-service-footer-logout{display:none!important;}
}


/* =====================================================
 * CR-103.23.37 — Centratura azioni testata Scadenze
 * - barra azioni centrata verticalmente rispetto alla testata;
 * - altezza uniforme di tutti i comandi;
 * - spazio riservato al logout fisso in alto a destra.
 * ===================================================== */
@media(min-width:1101px){
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{
    position:relative!important;
    min-height:118px!important;
    padding:24px 235px 24px 24px!important;
    align-items:center!important;
  }
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced .gs360-page-head-tools.gs360-scadenze-head-actions{
    position:absolute!important;
    top:50%!important;
    right:24px!important;
    transform:translateY(-50%)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:10px!important;
    width:auto!important;
    max-width:calc(100% - 430px)!important;
    margin:0!important;
  }
  body .gs360-company-shell #scadenze .gs360-scadenze-head-actions>*{
    align-self:center!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  body .gs360-company-shell #scadenze .gs360-scadenze-head-actions .gs360-action-btn,
  body .gs360-company-shell #scadenze .gs360-scadenze-head-actions .gs360-section-help,
  body .gs360-company-shell #scadenze .gs360-scadenze-head-actions .gs360-section-help-trigger{
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
  }
}
@media(max-width:1100px){
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced{
    padding-right:20px!important;
  }
  body .gs360-company-shell #scadenze .gs360-scadenze-module-head-enhanced .gs360-page-head-tools.gs360-scadenze-head-actions{
    position:static!important;
    transform:none!important;
    max-width:none!important;
  }
}

/* CR-103.23.39 — Tooltip aiuto sempre in primo piano e versione sidebar più discreta. */
body .gs360-company-shell .gs360-unified-page-head,
body .gs360-company-shell .gs360-company-hero,
body .gs360-company-shell .gs360-page-head-tools{
  overflow:visible!important;
}
body .gs360-company-shell .gs360-section-help:hover,
body .gs360-company-shell .gs360-section-help:focus-within{
  z-index:2147483646!important;
}
body .gs360-company-shell .gs360-section-help-tooltip{
  z-index:2147483647!important;
}
body .gs360-company-shell .gs360-unified-page-head:has(.gs360-section-help:hover),
body .gs360-company-shell .gs360-unified-page-head:has(.gs360-section-help:focus-within),
body .gs360-company-shell .gs360-company-hero:has(.gs360-section-help:hover),
body .gs360-company-shell .gs360-company-hero:has(.gs360-section-help:focus-within){
  position:relative!important;
  z-index:2147483645!important;
}
body .gs360-company-shell .gs360-company-footer>strong{
  font-size:12px!important;
  line-height:1.15!important;
  letter-spacing:.01em!important;
}

/* CR-103.23.40 — Versione sidebar sopra il separatore e dicitura utente collegato. */
body .gs360-company-shell .gs360-company-brand{display:flex;flex-direction:column;align-items:center;gap:10px;}
body .gs360-company-shell .gs360-company-brand-meta{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;}
body .gs360-company-shell .gs360-company-version{
  margin-top:0;
  padding:2px 7px;
  color:#ffffff;
  background:rgba(11,31,75,.28);
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  font-size:11px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.015em;
  white-space:nowrap;
  opacity:1;
  text-shadow:0 1px 2px rgba(0,0,0,.22);
}
body .gs360-company-shell .gs360-company-footer{
  margin-top:auto!important;
  padding-top:12px!important;
}
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-version,
body .gs360-company-shell.is-sidebar-collapsed .gs360-company-brand-meta{
  display:none!important;
}
body .gs360-company-shell .gs360-service-footer-user span{
  white-space:nowrap;
}

/* CR-103.23.46 — Scheda scadenza allineata ai 6 step del wizard. */
body .gs360-company-shell .gs360-deadline-tabs-wizard .gs360-profile-tablist{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}
body .gs360-company-shell .gs360-deadline-tabs-wizard .gs360-profile-tablist button{
  min-height:42px;
  padding:8px 10px;
  font-size:11px;
  line-height:1.2;
  white-space:normal;
}
body .gs360-company-shell .gs360-deadline-alert-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
}
body .gs360-company-shell .gs360-deadline-alert-summary>div{
  padding:13px 14px;
  border:1px solid #dce6f1;
  border-radius:13px;
  background:#f8fbff;
}
body .gs360-company-shell .gs360-deadline-alert-summary span{display:block;margin-bottom:4px;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;}
body .gs360-company-shell .gs360-deadline-alert-summary strong{color:#0b1f4b;font-size:14px;}
@media(max-width:1300px){body .gs360-company-shell .gs360-deadline-tabs-wizard .gs360-profile-tablist{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:760px){body .gs360-company-shell .gs360-deadline-tabs-wizard .gs360-profile-tablist,body .gs360-company-shell .gs360-deadline-alert-summary{grid-template-columns:1fr;}}

/* CR-103.23.49 — Testata scheda scadenza essenziale e senza duplicazioni. */
body .gs360-company-shell .gs360-deadline-detail-head{
  align-items:center!important;
}
body .gs360-company-shell .gs360-deadline-detail-head .gs360-deadline-title-row{
  display:flex;
  align-items:baseline;
  gap:16px;
  flex-wrap:wrap;
}
body .gs360-company-shell .gs360-deadline-detail-head .gs360-deadline-title-row h2{
  margin:0!important;
}
body .gs360-company-shell .gs360-deadline-detail-head .gs360-deadline-title-row time{
  color:#42526a;
  font-size:15px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
}
body .gs360-company-shell .gs360-deadline-detail-head .gs360-deadline-head-description{
  margin:8px 0 0!important;
  color:#159447!important;
  font-size:16px!important;
  line-height:1.35!important;
  font-weight:900!important;
  max-width:900px!important;
}
body .gs360-company-shell [data-gs360-company-view="dettaglio-scadenza"] .gs360-deadline-tabs{
  margin-top:0!important;
}
body .gs360-company-shell .gs360-print-center-card-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
body .gs360-company-shell .gs360-print-center-card-title h2{margin:0!important;}
body .gs360-company-shell .gs360-print-center-card-title time{font-weight:900;color:#42526a;}
body .gs360-company-shell .gs360-print-center-card-description{margin:8px 0 12px!important;color:#159447!important;font-weight:900!important;}
@media(max-width:760px){
  body .gs360-company-shell .gs360-deadline-detail-head .gs360-deadline-title-row{gap:8px;}
  body .gs360-company-shell .gs360-deadline-detail-head .gs360-deadline-title-row time{width:100%;}
}
@media print{
  body.gs360-print-deadline .gs360-print-deadline-title-row{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:10mm!important;border-bottom:1px solid #d8e2ef!important;padding-bottom:3mm!important;}
  body.gs360-print-deadline .gs360-print-deadline-title-row h1{margin:10px 0 0!important;}
  body.gs360-print-deadline .gs360-print-deadline-title-row time{font-size:11pt!important;font-weight:800!important;color:#475569!important;white-space:nowrap!important;}
  body.gs360-print-deadline .gs360-print-deadline-description{margin:3mm 0 5mm!important;color:#159447!important;font-size:11pt!important;font-weight:900!important;}
}


/* =====================================================
 * CR-103.23.53 — Oggi sempre visibile + annullamento wizard
 * ===================================================== */
body .gs360-company-shell .gs360-dashboard-inline-day.is-today,
body .gs360-company-shell .gs360-calendar-day.is-today,
body .gs360-company-shell .gs360-calendar-week-day.is-today,
body .gs360-company-shell .gs360-calendar-day-detail-panel.is-today{border:2px solid #168a43!important;box-shadow:0 0 0 3px rgba(22,138,67,.12)!important;background:#f3fff7!important;position:relative!important;}
body .gs360-company-shell .gs360-dashboard-inline-day.is-today::after,
body .gs360-company-shell .gs360-calendar-day.is-today::after{content:'OGGI';position:absolute;top:6px;right:6px;padding:2px 6px;border-radius:999px;background:#168a43;color:#fff;font-size:8px;font-weight:950;line-height:1.2;letter-spacing:.04em;z-index:3;}
body .gs360-company-shell .gs360-calendar-overview-day.is-today{outline:2px solid #168a43!important;outline-offset:1px!important;background:#168a43!important;box-shadow:0 0 0 2px rgba(22,138,67,.15)!important;}
body .gs360-company-shell .gs360-today-badge{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;background:#168a43;color:#fff;font-size:10px;font-weight:950;vertical-align:middle;}
body .gs360-company-shell .gs360-form-cancel-btn{margin-right:auto!important;}


/* =====================================================
 * CR-103.23.54 — OGGI riferimento temporale centrale
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day.is-today{border:2px solid #168a43!important;background:#f3fff7!important;box-shadow:0 0 0 3px rgba(22,138,67,.12)!important;}
body .gs360-company-shell .gs360-dashboard-inline-week-day>header,
body .gs360-company-shell .gs360-calendar-week-day-head{align-items:flex-start!important;}
body .gs360-company-shell .gs360-day-title-stack,
body .gs360-company-shell .gs360-day-meta-stack{display:flex;flex-direction:column;gap:3px;min-width:0;}
body .gs360-company-shell .gs360-day-meta-stack{align-items:flex-end;margin-left:auto;}
body .gs360-company-shell .gs360-today-badge.is-inline{margin:0!important;padding:3px 8px!important;font-size:9px!important;line-height:1.15!important;position:static!important;z-index:auto!important;}
body .gs360-company-shell .gs360-today-jump{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #83d9a3;border-radius:999px;background:#effcf4;color:#0d6d35;text-decoration:none;font-weight:900;white-space:nowrap;box-shadow:0 1px 2px rgba(15,23,42,.04);}
body .gs360-company-shell .gs360-today-jump strong{font-size:11px;text-transform:uppercase;letter-spacing:.03em;}
body .gs360-company-shell .gs360-today-jump span{font-size:11px;font-weight:800;color:#355f48;}
body .gs360-company-shell .gs360-today-jump:hover{background:#dcf8e6;border-color:#38b865;color:#075c2a;}
body .gs360-company-shell .gs360-today-jump.is-compact{padding:7px 10px;}
body .gs360-company-shell .gs360-dashboard-inline-head-actions{align-items:center!important;}
body .gs360-company-shell .gs360-calendar-year-jump-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
body .gs360-company-shell .gs360-calendar-week-day.is-today .gs360-calendar-week-events-scroll{margin-top:4px;}
@media(max-width:900px){body .gs360-company-shell .gs360-today-jump span{display:none;}}


/* CR-103.23.55 — Azioni scadenze: icone semantiche distinte.
 * Visualizza=occhio, Modifica=matita, Completa=check, Archivia=box archivio, Elimina=cestino.
 * Nessuna modifica funzionale alle azioni. */
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-archive{color:#b45309!important;background:#fffaf0!important;border-color:#fed7aa!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-delete{color:#dc2626!important;background:#fff1f2!important;border-color:#fecaca!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-archive:hover{color:#92400e!important;background:#fffbeb!important;border-color:#fdba74!important;}
body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn.is-delete:hover{color:#b91c1c!important;background:#ffe4e6!important;border-color:#fda4af!important;}

/* =====================================================
 * CR-103.23.56 — Gestione Documentale operativa e semplificata
 * ===================================================== */
body .gs360-company-shell #documenti .gs360-documents-kpi-simple{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-simple{
  table-layout:fixed!important;
  min-width:1080px!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(1),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(1){width:30%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(2),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(2){width:12%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(3),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(3){width:19%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(4),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(4){width:11%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(5),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(5){width:11%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(6),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(6){width:9%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(7),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(7){width:8%!important;text-align:center!important;}
body .gs360-company-shell #documenti .gs360-document-detail-grid-simple{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body .gs360-company-shell #documenti .gs360-document-detail-head>div{min-width:0;flex:1;}
body .gs360-company-shell #documenti .gs360-document-detail-head small{display:block;margin-top:3px;color:#718096;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body .gs360-company-shell #documenti .gs360-document-detail-actions-simple{display:flex!important;align-items:center!important;gap:10px!important;padding:16px 20px!important;border-top:1px solid #e9eff7!important;}
body .gs360-company-shell #documenti .gs360-document-detail-actions-simple>strong{margin-right:auto;color:#0b1e49;font-size:13px;}
body .gs360-company-shell #documenti .gs360-document-edit-area{margin:0 18px 18px;padding:18px;border:1px solid #dce7f4;border-radius:16px;background:#fbfdff;}
body .gs360-company-shell #documenti .gs360-document-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body .gs360-company-shell #documenti .gs360-document-edit-grid label{display:flex;flex-direction:column;gap:6px;font-weight:850;color:#243653;font-size:12px;}
body .gs360-company-shell #documenti .gs360-document-edit-grid label.is-wide{grid-column:1/-1;}
body .gs360-company-shell #documenti .gs360-document-edit-grid input,
body .gs360-company-shell #documenti .gs360-document-edit-grid select,
body .gs360-company-shell #documenti .gs360-document-edit-grid textarea{width:100%;border:1px solid #cfdceb;border-radius:10px;background:#fff;padding:10px 12px;font-size:13px;color:#0b1e49;}
body .gs360-company-shell #documenti .gs360-document-edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;}
body .gs360-company-shell #documenti .gs360-document-replace-box{margin-top:16px;border-top:1px solid #e6edf6;padding-top:14px;}
body .gs360-company-shell #documenti .gs360-document-replace-box summary{cursor:pointer;font-weight:900;color:#0b1e49;}
body .gs360-company-shell #documenti .gs360-document-replace-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px;}
body .gs360-company-shell #documenti .gs360-document-replace-form small{grid-column:1/-1;color:#69778e;}
body .gs360-company-shell #documenti .gs360-document-danger-zone{margin-top:18px;padding:14px 16px;border:1px solid #ffd5d8;border-radius:12px;background:#fff8f8;}
body .gs360-company-shell #documenti .gs360-document-danger-zone strong{color:#b4232f;}
body .gs360-company-shell #documenti .gs360-document-danger-zone p{margin:5px 0 10px;color:#6b3940;font-size:12px;}
@media(max-width:1200px){
 body .gs360-company-shell #documenti .gs360-documents-kpi-simple{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 body .gs360-company-shell #documenti .gs360-document-detail-grid-simple{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:760px){
 body .gs360-company-shell #documenti .gs360-documents-kpi-simple,
 body .gs360-company-shell #documenti .gs360-document-detail-grid-simple,
 body .gs360-company-shell #documenti .gs360-document-edit-grid{grid-template-columns:1fr!important;}
 body .gs360-company-shell #documenti .gs360-document-edit-grid label.is-wide{grid-column:auto;}
 body .gs360-company-shell #documenti .gs360-document-replace-form{grid-template-columns:1fr;}
}

/* CR-103.23.57 — Gestione Documentale: form compatto e semplificato. */
body .gs360-company-shell #documenti .gs360-document-edit-grid-compact{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:18px;align-items:start;}
body .gs360-company-shell #documenti .gs360-document-edit-column{display:grid;gap:12px;}
body .gs360-company-shell #documenti .gs360-document-edit-dates{padding:14px;border:1px solid #e1eaf4;border-radius:12px;background:#f8fbff;}
body .gs360-company-shell #documenti .gs360-document-edit-grid label small{font-weight:600;color:#718096;font-size:11px;}
body .gs360-company-shell #documenti .gs360-document-edit-notes{margin-top:0;}
body .gs360-company-shell #documenti .gs360-document-file-management{margin-top:18px;padding-top:16px;border-top:1px solid #e5edf6;}
body .gs360-company-shell #documenti .gs360-document-file-management>strong{display:block;font-size:14px;color:#0b1e49;margin-bottom:3px;}
body .gs360-company-shell #documenti .gs360-document-file-management>p{margin:0 0 10px;color:#6a7890;font-size:12px;}
body .gs360-company-shell #documenti .gs360-document-detail-notes{grid-column:1/-1;}
@media(max-width:900px){body .gs360-company-shell #documenti .gs360-document-edit-grid-compact{grid-template-columns:1fr;}}

/* =====================================================
 * CR-103.23.58 — Documentale: Tipologia ≠ Formato file
 * ===================================================== */
body .gs360-company-shell #documenti .gs360-documents-filters-mockup{
  grid-template-columns:minmax(260px,1.35fr) minmax(190px,.8fr) minmax(170px,.65fr) minmax(190px,.8fr) auto!important;
  align-items:end!important;
}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(1),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(1){width:27%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(2),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(2){width:14%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(3),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(3){width:9%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(4),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(4){width:18%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(5),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(5){width:11%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(6),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(6){width:9%!important;}
body .gs360-company-shell #documenti .gs360-documents-table-simple th:nth-child(7),
body .gs360-company-shell #documenti .gs360-documents-table-simple td:nth-child(7){width:12%!important;}
body .gs360-company-shell #documenti .gs360-doc-independent{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-weight:800;font-size:11px;}
body .gs360-company-shell #documenti .gs360-documents-action-stack-pro{display:flex!important;gap:6px!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn.is-archive{color:#b45309!important;background:#fffaf0!important;border-color:#fed7aa!important;}
body .gs360-company-shell #documenti .gs360-action-icon-btn.is-delete{color:#dc2626!important;background:#fff1f2!important;border-color:#fecaca!important;}
body .gs360-company-shell #documenti .gs360-document-edit-grid-professional{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 18px!important;}
body .gs360-company-shell #documenti .gs360-document-edit-grid-professional .is-wide{grid-column:1/-1!important;}
body .gs360-company-shell #documenti .gs360-document-edit-grid-professional input[readonly]{background:#f4f7fb!important;color:#475569!important;font-weight:800;}
@media(max-width:1100px){body .gs360-company-shell #documenti .gs360-documents-filters-mockup{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body .gs360-company-shell #documenti .gs360-documents-filter-actions{grid-column:1/-1;}}
@media(max-width:760px){body .gs360-company-shell #documenti .gs360-documents-filters-mockup,body .gs360-company-shell #documenti .gs360-document-edit-grid-professional{grid-template-columns:1fr!important;}}

/* CR-103.23.59 — Download documentale e azioni uniformi */
.gs360-documents-action-stack-pro .gs360-action-icon-btn.is-download{border-color:#b9d6ff;background:#f3f8ff;color:#1f67c1}
.gs360-documents-action-stack-pro .gs360-action-icon-btn.is-download:hover{background:#e8f2ff;border-color:#8bbcff}
.gs360-document-detail-actions .gs360-action-btn.is-download{border-color:#b9d6ff;background:#f3f8ff;color:#1f67c1}
.gs360-document-detail-actions .gs360-action-btn.is-download:hover{background:#e8f2ff}


/* SCAD360-SNIP-065E / CR-103.23.62 — Documentale pannelli temporanei e form uniforme */
body .gs360-company-shell #documenti .gs360-document-detail-card{position:relative!important;}
body .gs360-company-shell #documenti .gs360-document-panel-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;border:1px solid #d7e3f1!important;border-radius:50%!important;background:#fff!important;color:#07183f!important;text-decoration:none!important;font-size:22px!important;font-weight:700!important;line-height:1!important;}
body .gs360-company-shell #documenti .gs360-document-panel-close:hover{background:#f6f9fd!important;border-color:#a9c5e5!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-unified-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important;align-items:start!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-card{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:15px!important;border:1px solid #dce7f3!important;border-radius:16px!important;background:#fbfdff!important;min-width:0!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-card h4{margin:0 0 2px!important;color:#07183f!important;font-size:15px!important;font-weight:900!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-card label,body .gs360-company-shell #documenti .gs360-doc-upload-notes{display:grid!important;gap:5px!important;min-width:0!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-card label>span,body .gs360-company-shell #documenti .gs360-doc-upload-notes>span{font-size:11px!important;font-weight:900!important;color:#253652!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-card input,body .gs360-company-shell #documenti .gs360-doc-upload-card select,body .gs360-company-shell #documenti .gs360-doc-upload-notes textarea{width:100%!important;min-height:40px!important;border-radius:10px!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-card small{font-size:10.5px!important;line-height:1.25!important;color:#6b7c93!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-dates{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-notes{grid-column:1/-1!important;}
body .gs360-company-shell #documenti .gs360-doc-upload-notes textarea{min-height:82px!important;resize:vertical!important;}
body .gs360-company-shell #documenti .gs360-form-actions-bar{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;margin-top:14px!important;padding-top:12px!important;border-top:1px solid #e5edf6!important;}
body .gs360-company-shell #documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head{margin-bottom:12px!important;}
@media(max-width:900px){body .gs360-company-shell #documenti .gs360-doc-upload-unified-grid{grid-template-columns:1fr!important;}body .gs360-company-shell #documenti .gs360-doc-upload-dates{grid-template-columns:1fr!important;}}
/* Fine SCAD360-SNIP-065E */


/* SCAD360-SNIP-065F / CR-103.23.63 — Documentale form upload compatto 2 colonne */
body .gs360-company-shell #documenti .gs360-documents-upload-form.gs360-documents-upload-form-unified{
  display:block!important;
  grid-template-columns:none!important;
  gap:0!important;
  align-items:initial!important;
  padding:0 18px 18px!important;
}
body .gs360-company-shell #documenti .gs360-documents-upload-body{
  padding:8px 18px 4px!important;
}
body .gs360-company-shell #documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head{
  display:grid!important;
  grid-template-columns:minmax(0,.75fr) minmax(360px,1.25fr)!important;
  align-items:start!important;
  gap:24px!important;
  padding:0 0 10px!important;
  margin:0 0 10px!important;
}
body .gs360-company-shell #documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head h3,
body .gs360-company-shell #documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head p{margin:0!important;}
body .gs360-company-shell #documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head p{
  max-width:760px!important;
  justify-self:end!important;
  line-height:1.45!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-unified-grid{
  width:100%!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  column-gap:16px!important;
  row-gap:12px!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-card{
  height:100%!important;
  padding:14px 16px!important;
  gap:8px!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-card h4{
  padding-bottom:6px!important;
  margin-bottom:2px!important;
  border-bottom:1px solid #e8eef6!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-notes{
  padding:12px 16px!important;
  border:1px solid #dce7f3!important;
  border-radius:14px!important;
  background:#fbfdff!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-notes textarea{
  min-height:70px!important;
}
body .gs360-company-shell #documenti .gs360-form-actions-bar{
  margin-top:10px!important;
  padding-top:10px!important;
}
@media(max-width:900px){
  body .gs360-company-shell #documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head{grid-template-columns:1fr!important;gap:8px!important;}
  body .gs360-company-shell #documenti .gs360-documents-upload-panel-pro .gs360-company-panel-head p{justify-self:start!important;max-width:none!important;}
  body .gs360-company-shell #documenti .gs360-doc-upload-unified-grid{grid-template-columns:1fr!important;}
}
/* Fine SCAD360-SNIP-065F */


/* SCAD360-SNIP-065G / CR-103.23.64 — Fix parsing CSS e layout Documentale 2 colonne */
body .gs360-company-shell #documenti .gs360-doc-upload-unified-grid{
  display:grid!important;
  width:100%!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px 16px!important;
  align-items:start!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-card{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  min-width:0!important;
  padding:14px 16px!important;
  border:1px solid #dce7f3!important;
  border-radius:14px!important;
  background:#fbfdff!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-dates{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body .gs360-company-shell #documenti .gs360-doc-upload-notes{
  display:grid!important;
  grid-column:1/-1!important;
  gap:5px!important;
  padding:12px 16px!important;
  border:1px solid #dce7f3!important;
  border-radius:14px!important;
  background:#fbfdff!important;
}
body .gs360-company-shell #documenti .gs360-documents-upload-actions.gs360-form-actions-bar{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid #e5edf6!important;
}
@media(max-width:900px){
  body .gs360-company-shell #documenti .gs360-doc-upload-unified-grid,
  body .gs360-company-shell #documenti .gs360-doc-upload-dates{grid-template-columns:1fr!important;}
}
/* Fine SCAD360-SNIP-065G */

/* CR-103.23.67 — Spazio documentale aziendale */
body .gs360-company-shell #documenti .gs360-document-storage-card{margin:14px 0 16px;padding:16px 18px;border:1px solid #d8e5f2;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(8,31,73,.04)}
body .gs360-company-shell #documenti .gs360-document-storage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:12px;border-bottom:1px solid #e7eef6}
body .gs360-company-shell #documenti .gs360-document-storage-kicker{display:block;color:#16a34a;font-size:10px;font-weight:900;letter-spacing:.05em;margin-bottom:3px}
body .gs360-company-shell #documenti .gs360-document-storage-head h3{margin:0;color:#07183f;font-size:17px;font-weight:950}
body .gs360-company-shell #documenti .gs360-document-storage-head p{margin:4px 0 0;color:#65758b;font-size:12px}
body .gs360-company-shell #documenti .gs360-document-storage-percent{padding:7px 11px;border-radius:999px;background:#effaf3;color:#13783a;border:1px solid #bfe8cd;font-size:11px;white-space:nowrap}
body .gs360-company-shell #documenti .gs360-document-storage-body{display:grid;grid-template-columns:170px minmax(0,1fr);gap:22px;align-items:center;padding-top:14px}
body .gs360-company-shell #documenti .gs360-document-storage-chart{--gs360-storage-used:0;width:144px;height:144px;border-radius:50%;background:conic-gradient(#2563eb calc(var(--gs360-storage-used)*1%),#e8eef6 0);display:grid;place-items:center;position:relative;margin:auto}
body .gs360-company-shell #documenti .gs360-document-storage-chart:after{content:"";position:absolute;inset:16px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #edf2f7}
body .gs360-company-shell #documenti .gs360-document-storage-chart>div{position:relative;z-index:1;text-align:center;display:grid;gap:2px}
body .gs360-company-shell #documenti .gs360-document-storage-chart strong{font-size:16px;color:#07183f}
body .gs360-company-shell #documenti .gs360-document-storage-chart span{font-size:10px;color:#6b7a90;font-weight:800}
body .gs360-company-shell #documenti .gs360-document-storage-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body .gs360-company-shell #documenti .gs360-document-storage-metrics>div{padding:12px 14px;border:1px solid #e0e9f4;border-radius:13px;background:#f9fbfe;display:grid;gap:3px}
body .gs360-company-shell #documenti .gs360-document-storage-metrics span{font-size:10px;color:#63748b;font-weight:850;text-transform:uppercase;letter-spacing:.025em}
body .gs360-company-shell #documenti .gs360-document-storage-metrics strong{font-size:16px;color:#07183f}
body .gs360-company-shell #documenti .gs360-document-storage-metrics small{font-size:10px;color:#607087;font-weight:700}
body .gs360-company-shell #documenti .gs360-document-storage-card.is-warning .gs360-document-storage-percent{background:#fff8e6;color:#9a6500;border-color:#f7d58a}
body .gs360-company-shell #documenti .gs360-document-storage-card.is-warning .gs360-document-storage-chart{background:conic-gradient(#f59e0b calc(var(--gs360-storage-used)*1%),#e8eef6 0)}
body .gs360-company-shell #documenti .gs360-document-storage-card.is-critical .gs360-document-storage-percent{background:#fff0f1;color:#b4232f;border-color:#ffc5ca}
body .gs360-company-shell #documenti .gs360-document-storage-card.is-critical .gs360-document-storage-chart{background:conic-gradient(#dc2626 calc(var(--gs360-storage-used)*1%),#e8eef6 0)}
body .gs360-company-shell #documenti .gs360-document-storage-unassigned{padding:14px 0 2px;display:flex;gap:10px;align-items:center;color:#66758b;font-size:12px}.gs360-document-storage-unassigned strong{color:#07183f}
.gs360-detail-grid>div>small{display:block;margin-top:4px;color:#6b7a90;font-size:11px;font-weight:650}
@media(max-width:900px){body .gs360-company-shell #documenti .gs360-document-storage-body{grid-template-columns:1fr}body .gs360-company-shell #documenti .gs360-document-storage-metrics{grid-template-columns:1fr}body .gs360-company-shell #documenti .gs360-document-storage-head{flex-direction:column}}


/* CR-103.23.69 — Profilo Azienda / Piani e licenze: gerarchia visiva e moduli allineati */
body .gs360-company-shell #profilo-azienda .gs360-profile-service-card > h4{
    color:#0b9f3b!important;
    font-weight:800!important;
}
body .gs360-company-shell #profilo-azienda .gs360-moduli-list li > strong{
    color:#0b9f3b!important;
    font-weight:800!important;
}
body .gs360-company-shell #profilo-azienda .gs360-profile-service-kpis .gs360-profile-modules-count{
    color:#0b9f3b!important;
    font-weight:800!important;
}


/* CR-103.23.101 — Stato visibile, filtri automatici e azioni massive Scadenze */
body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th:nth-child(4),body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:nth-child(4){display:table-cell!important;visibility:visible!important;}
body .gs360-company-shell #scadenze .gs360-deadlines-bulkbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:10px 0;padding:11px 12px;border:1px solid #d8e5ef;border-radius:12px;background:#f7fbff;}
body .gs360-company-shell #scadenze .gs360-deadlines-bulkbar .gs360-bulk-summary{min-width:210px;margin-right:auto;display:flex;flex-direction:column;gap:2px;}
body .gs360-company-shell #scadenze .gs360-deadlines-bulkbar .gs360-bulk-summary small{color:#64748b;}
body .gs360-company-shell #scadenze .gs360-deadlines-bulkbar label{display:flex;flex-direction:column;gap:4px;min-width:220px;font-weight:700;}
body .gs360-company-shell #scadenze .gs360-deadlines-bulkbar select{min-height:38px;border:1px solid #cbdbea;border-radius:9px;background:#fff;padding:6px 9px;}
body .gs360-company-shell #scadenze .gs360-deadline-select-head,body .gs360-company-shell #scadenze .gs360-deadline-date-with-select{display:flex;align-items:center;gap:8px;}
body .gs360-company-shell #scadenze .gs360-deadline-select,#gs360-select-all-scadenze{width:17px;height:17px;flex:0 0 auto;accent-color:#0f766e;}
body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions{justify-content:flex-end;}
@media(max-width:760px){body .gs360-company-shell #scadenze .gs360-deadlines-bulkbar{align-items:stretch}body .gs360-company-shell #scadenze .gs360-deadlines-bulkbar label{min-width:100%}}


/* =====================================================
 * CR-103.23.102 — Dashboard operativa e filtri compatti
 * - filtri Scadenze tutti inline con Oggi + Reset;
 * - contenitore icone rettangolare senza cambiare le icone;
 * - toggle ordine orario asc/desc;
 * - box Prossime scadenze sotto il grafico annuale.
 * ===================================================== */
@media (min-width:1381px){
  body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{
    grid-template-columns:minmax(125px,1fr) minmax(105px,.72fr) minmax(120px,.86fr) minmax(118px,.82fr) minmax(145px,.94fr) minmax(150px,1.08fr) minmax(118px,.78fr) minmax(118px,.78fr) auto!important;
    gap:8px!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions{grid-column:auto!important;justify-content:flex-end!important;gap:6px!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions .gs360-today-jump.is-compact{min-width:84px!important;padding:6px 9px!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions .gs360-action-btn{padding:0 11px!important;}
}
body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules .gs360-module-card-icon{
  width:68px!important;min-width:68px!important;height:48px!important;border-radius:15px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules .gs360-module-card-icon svg,
body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules .gs360-module-card-icon .gs360-stroke-icon svg{
  width:34px!important;height:34px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-side-stack{display:grid;grid-template-columns:1fr;gap:12px;min-width:0;align-self:stretch;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-chart-card{min-height:0!important;height:auto!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-chart-card .gs360-dashboard-impact-chart{min-height:235px!important;height:235px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming{padding:14px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-panel-head h3{margin:2px 0 2px;font-size:18px;color:#071b4d;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-panel-head p{margin:0;color:#657590;font-size:10px;line-height:1.25;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-all{flex:0 0 auto;padding:6px 9px;border:1px solid #bfe7cb;border-radius:999px;background:#f0fff4;color:#13723c;text-decoration:none;font-size:9px;font-weight:900;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 8px;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid #e0e8f1;border-radius:10px;background:#f8fbff;text-decoration:none;color:#607089;font-size:9px;font-weight:850;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary strong{font-size:17px;color:#071b4d;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list{display:flex!important;flex-direction:column!important;gap:6px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item{grid-template-columns:52px minmax(0,1fr) 9px 14px!important;min-height:48px!important;padding:6px 8px!important;border-radius:11px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item time{min-height:40px!important;font-size:12px!important;border-radius:9px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item time small{font-size:8px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item div strong{font-size:11px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item div span{font-size:9px!important;}
body .gs360-company-shell .gs360-time-sort-btn{appearance:none;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:4px;}
body .gs360-company-shell .gs360-time-sort-btn b{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:#eef5ff;color:#0b63ce;font-size:11px;}
@media(max-width:1379px){body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules .gs360-module-card-icon{width:60px!important;min-width:60px!important;height:46px!important;}body .gs360-company-shell #dashboard .gs360-dashboard-inline-side-stack{grid-template-columns:1fr;}}
@media(max-width:760px){body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary{grid-template-columns:1fr 1fr 1fr;}body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules .gs360-module-card-icon{width:58px!important;min-width:58px!important;}}


/* =====================================================
 * CR-103.23.103 — rifinitura Dashboard + Scadenze
 * - sort ORA robusto via JS delegato;
 * - Agenda operativa più ariosa e leggibile;
 * - OGGI + Reset sempre inline su desktop.
 * ===================================================== */
@media (min-width:1180px){
  body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{
    display:grid!important;
    grid-template-columns:minmax(112px,1.05fr) minmax(88px,.68fr) minmax(108px,.88fr) minmax(103px,.8fr) minmax(122px,.96fr) minmax(145px,1.18fr) minmax(108px,.82fr) minmax(108px,.82fr) max-content!important;
    column-gap:7px!important;row-gap:7px!important;align-items:end!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions{
    grid-column:9!important;grid-row:1!important;display:flex!important;flex-wrap:nowrap!important;align-items:end!important;justify-content:flex-end!important;gap:5px!important;min-width:max-content!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions .gs360-today-jump.is-compact{min-width:76px!important;padding:5px 7px!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions .gs360-action-btn{min-width:auto!important;padding:0 9px!important;white-space:nowrap!important;}
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming{
  padding:18px 18px 20px!important;box-sizing:border-box!important;overflow:visible!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-panel-head{margin-bottom:14px!important;padding:0 2px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-panel-head h3{margin-top:3px!important;line-height:1.15!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-panel-head p{margin-top:3px!important;line-height:1.35!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary{gap:9px!important;margin:0 0 12px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary a{padding:9px 11px!important;min-height:42px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list{gap:9px!important;padding:0 1px 2px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item{
  grid-template-columns:56px minmax(0,1fr) 10px 16px!important;min-height:54px!important;padding:8px 10px!important;border-radius:12px!important;column-gap:9px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item time{min-height:42px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item div{min-width:0!important;padding:1px 0!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item div strong{line-height:1.25!important;display:block!important;margin-bottom:3px!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item div span{line-height:1.25!important;}
body .gs360-company-shell .gs360-time-sort-btn{padding:4px 7px!important;margin:-4px -7px!important;border-radius:8px!important;transition:background .15s ease,color .15s ease!important;}
body .gs360-company-shell .gs360-time-sort-btn:hover,body .gs360-company-shell .gs360-time-sort-btn:focus-visible{background:#f1f7ff!important;color:#075ab7!important;outline:none!important;}
body .gs360-company-shell .gs360-time-sort-btn b{font-size:12px!important;font-weight:900!important;}
@media(max-width:1179px){body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming{padding:15px!important;}}


/* =====================================================
 * CR-103.23.104 — fix verificato Dashboard giorno + Agenda operativa
 * - ordinamento ORA server-side/AJAX, non dipendente dal riordino DOM;
 * - Agenda operativa realmente più alta e ariosa;
 * - preserva filtri Scadenze inline della .103.
 * ===================================================== */
body .gs360-company-shell #dashboard .gs360-dashboard-inline-side-stack{
  display:grid!important;
  grid-template-rows:minmax(245px,auto) minmax(285px,auto)!important;
  gap:16px!important;
  align-content:start!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-chart-card .gs360-dashboard-impact-chart{
  min-height:205px!important;
  height:205px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming{
  min-height:285px!important;
  padding:22px 22px 24px!important;
  border-radius:20px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-panel-head{
  margin:0 0 16px!important;
  padding:0 2px 2px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary{
  gap:10px!important;
  margin:0 0 16px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming .gs360-dashboard-upcoming-summary a{
  min-height:46px!important;
  padding:10px 12px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:0 2px 4px!important;
}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list .gs360-dashboard-upcoming-item{
  min-height:60px!important;
  padding:9px 11px!important;
  column-gap:10px!important;
}
body .gs360-company-shell .gs360-time-sort-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:4px 7px!important;
  margin:-4px -7px!important;
  border-radius:8px!important;
  color:inherit!important;
  text-decoration:none!important;
  font-weight:900!important;
}
body .gs360-company-shell .gs360-time-sort-link:hover,
body .gs360-company-shell .gs360-time-sort-link:focus-visible{
  background:#f1f7ff!important;
  color:#075ab7!important;
  outline:none!important;
}
body .gs360-company-shell .gs360-time-sort-link b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  background:#eef5ff!important;
  color:#0b63ce!important;
  font-size:12px!important;
}
@media(max-width:1250px){
  body .gs360-company-shell #dashboard .gs360-dashboard-inline-side-stack{grid-template-rows:auto auto!important;}
}
@media(max-width:760px){
  body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming{padding:16px!important;min-height:0!important;}
  body .gs360-company-shell #dashboard .gs360-dashboard-inline-upcoming-list{grid-template-columns:1fr!important;}
}

/* =====================================================
 * CR-103.23.109 — Centro Notifiche operativo / query inline ottimizzate
 * ===================================================== */
body .gs360-company-shell .gs360-notification-kpi-grid-simple{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107{
  display:grid;
  grid-template-columns:minmax(130px,.72fr) minmax(140px,.78fr) minmax(155px,.88fr) minmax(280px,1.65fr) minmax(125px,.72fr) minmax(125px,.72fr) auto;
  gap:10px;
  align-items:end;
  margin-bottom:12px;
}
body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107 .gs360-filter-labeled{
  min-width:0;
}
body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107 .gs360-filter-labeled>span{
  display:block;
  margin:0 0 5px;
  color:#50627b;
  font-size:10px;
  font-weight:850;
  letter-spacing:.02em;
  text-transform:uppercase;
}
body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107 select,
body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107 input{
  width:100%;
  min-width:0;
}
body .gs360-company-shell .gs360-notification-inline-status{
  grid-column:1/-1;
  min-height:16px;
  margin-top:-4px;
  color:#52637a;
  font-size:10.5px;
  font-weight:700;
}
body .gs360-company-shell .gs360-notification-inline-status.is-error{color:#b42318;}
body .gs360-company-shell .gs360-notification-results-107{
  position:relative;
}
body .gs360-company-shell .gs360-notification-results-107:after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.58);
  border-radius:14px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .14s ease;
}
body .gs360-company-shell .gs360-notification-center.is-loading-inline .gs360-notification-results-107:after{
  opacity:1;
  visibility:visible;
}
body .gs360-company-shell .gs360-notification-result-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:8px 2px 10px;
}
body .gs360-company-shell .gs360-notification-result-head strong{color:#0b234a;font-size:12px;}
body .gs360-company-shell .gs360-notification-result-head small{color:#64748b;font-size:10.5px;}
body .gs360-company-shell .gs360-notification-table-107 th:nth-child(1){width:20%;}
body .gs360-company-shell .gs360-notification-table-107 th:nth-child(2){width:9%;}
body .gs360-company-shell .gs360-notification-table-107 th:nth-child(3){width:15%;}
body .gs360-company-shell .gs360-notification-table-107 th:nth-child(4){width:19%;}
body .gs360-company-shell .gs360-notification-table-107 th:nth-child(5){width:13%;}
body .gs360-company-shell .gs360-notification-table-107 th:nth-child(6){width:12%;}
body .gs360-company-shell .gs360-notification-table-107 th:nth-child(7){width:12%;}
body .gs360-company-shell .gs360-notification-table-107 td small{
  display:block;
  margin-top:3px;
  line-height:1.25;
  color:#607089;
}
body .gs360-company-shell .gs360-notification-deadline-link{
  display:flex;
  flex-direction:column;
  gap:1px;
  color:#0b234a;
  text-decoration:none;
}
body .gs360-company-shell .gs360-notification-deadline-link:hover strong{text-decoration:underline;}
body .gs360-company-shell .gs360-notification-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
body .gs360-company-shell .gs360-notification-actions .gs360-action-btn{
  min-height:28px;
  padding:5px 8px;
  font-size:10px;
}
body .gs360-company-shell .gs360-alert-pagination button.gs360-action-btn{
  font-family:inherit;
}
body .gs360-company-shell .gs360-notification-detail-modal[hidden]{display:none!important;}
body .gs360-company-shell .gs360-notification-detail-modal{
  position:fixed;
  inset:0;
  z-index:100030;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
body .gs360-company-shell .gs360-notification-modal-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(7,25,55,.48);
}
body .gs360-company-shell .gs360-notification-detail-modal>section{
  position:relative;
  z-index:1;
  width:min(620px,96vw);
  max-height:min(720px,88vh);
  overflow:auto;
  border:1px solid #dbe5f3;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 70px rgba(5,27,61,.24);
  padding:20px;
}
body .gs360-company-shell .gs360-notification-modal-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:16px;
}
body .gs360-company-shell .gs360-notification-modal-head span{
  display:block;
  color:#0a9b55;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}
body .gs360-company-shell .gs360-notification-modal-head h4{
  margin:3px 0 0;
  color:#0b234a;
  font-size:20px;
}
body .gs360-company-shell .gs360-notification-detail-modal dl{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
body .gs360-company-shell .gs360-notification-detail-modal dl>div,
body .gs360-company-shell .gs360-notification-modal-message{
  border:1px solid #e1e8f2;
  border-radius:12px;
  background:#f9fbfe;
  padding:11px 12px;
}
body .gs360-company-shell .gs360-notification-detail-modal dt{
  color:#65758d;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
body .gs360-company-shell .gs360-notification-detail-modal dd{
  margin:4px 0 0;
  color:#0b234a;
  font-size:12px;
  font-weight:800;
  overflow-wrap:anywhere;
}
body .gs360-company-shell .gs360-notification-modal-message p{
  margin:7px 0 0;
  white-space:pre-wrap;
  color:#31445f;
  line-height:1.5;
}
@media(max-width:1180px){
  body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  body .gs360-company-shell .gs360-notification-search-107{grid-column:span 2;}
}
@media(max-width:900px){
  body .gs360-company-shell .gs360-notification-kpi-grid-simple{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107{grid-template-columns:1fr 1fr;}
  body .gs360-company-shell .gs360-notification-search-107{grid-column:1/-1;}
  body .gs360-company-shell .gs360-notification-detail-modal dl{grid-template-columns:1fr;}
}
@media(max-width:620px){
  body .gs360-company-shell .gs360-notification-center .gs360-notification-filters-107{grid-template-columns:1fr;}
  body .gs360-company-shell .gs360-notification-search-107{grid-column:auto;}
  body .gs360-company-shell .gs360-notification-result-head{align-items:flex-start;flex-direction:column;}
}


/* CR-103.23.116 — Rifinitura finale wizard Nuova scadenza: spazi bilanciati e leggibilità uniforme */
body .gs360-company-shell .gs360-essential-layout{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:16px!important;
}
body .gs360-company-shell .gs360-essential-card{
  padding:18px!important;
}
body .gs360-company-shell .gs360-deadline-form .gs360-company-panel-head h3,
body .gs360-company-shell .gs360-deadline-form .gs360-wizard-panel-head h3{
  font-size:20px!important;
  line-height:1.22!important;
  font-weight:850!important;
  letter-spacing:-.015em!important;
}
body .gs360-company-shell .gs360-deadline-form .gs360-company-panel-head p,
body .gs360-company-shell .gs360-deadline-form .gs360-wizard-panel-head p{
  font-size:13px!important;
  line-height:1.45!important;
}
body .gs360-company-shell .gs360-deadline-form .gs360-essential-card h4,
body .gs360-company-shell .gs360-deadline-form .gs360-company-panel h3,
body .gs360-company-shell .gs360-deadline-form .gs360-alert-section-title{
  font-size:16px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
body .gs360-company-shell .gs360-deadline-form label>span:first-child{
  font-size:12.5px!important;
  line-height:1.3!important;
  font-weight:800!important;
}
body .gs360-company-shell .gs360-deadline-form input,
body .gs360-company-shell .gs360-deadline-form select,
body .gs360-company-shell .gs360-deadline-form textarea{
  font-size:13.5px!important;
}
body .gs360-company-shell .gs360-deadline-form label>small,
body .gs360-company-shell .gs360-deadline-form .gs360-essential-note,
body .gs360-company-shell .gs360-deadline-form small{
  font-size:11.5px!important;
  line-height:1.4!important;
}
body .gs360-company-shell .gs360-deadline-stepper button{
  font-size:12.5px!important;
  font-weight:800!important;
}
@media(max-width:1100px){
  body .gs360-company-shell .gs360-essential-layout{
    grid-template-columns:1fr 1fr!important;
    grid-template-areas:"ident priority" "ident schedule"!important;
  }
}
@media(max-width:760px){
  body .gs360-company-shell .gs360-essential-layout{
    grid-template-columns:1fr!important;
    grid-template-areas:"ident" "priority" "schedule"!important;
  }
}

/* CR-103.23.117 — priorità/stati più leggibili e ?Aiuto spostabile */
.gs360-config-color-preview{display:inline-flex!important;align-items:center!important;gap:7px!important;width:max-content!important;max-width:100%;padding:5px 9px!important;border:1px solid #dbe5ef!important;border-radius:999px!important;background:#fff!important;color:#23344d!important;font-size:12px!important;font-weight:800!important;line-height:1!important}
.gs360-config-color-preview i{width:12px!important;height:12px!important;flex:0 0 12px}
.gs360-config-color-preview em{display:inline!important;font-style:normal!important;color:inherit!important}
.gs360-config-color-preview.is-empty{opacity:.72;background:#f8fafc!important;border-color:#dbe5ef!important}
.gs360-deadline-meta-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}
.gs360-deadline-meta-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #dbe5ef;border-radius:999px;background:#fff;color:#334155;font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap}
.gs360-deadline-meta-chip i{display:block;width:9px;height:9px;border-radius:50%;background:var(--gs360-meta-color,#64748b);box-shadow:0 0 0 1px rgba(100,116,139,.18)}
.s360-help-button-v046[data-gs360-draggable="1"]{cursor:grab;user-select:none;-webkit-user-select:none}
.s360-help-button-v046[data-gs360-draggable="1"]:active{cursor:grabbing}

/* CR-103.23.121 — Assistenza / Ticket azienda */
.gs360-ticket-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:18px;margin:18px 0 90px}
.gs360-ticket-grid-single{grid-template-columns:minmax(0,860px);justify-content:start}
.gs360-ticket-card{background:#fff;border:1px solid #dbe6f2;border-radius:16px;padding:20px;box-shadow:0 10px 28px rgba(13,27,61,.04)}
.gs360-ticket-card h3{margin:0 0 6px;color:#0d1b3d;font-size:20px}
.gs360-ticket-muted{margin:0 0 16px;color:#667085}
.gs360-ticket-form{display:grid;gap:13px}
.gs360-ticket-form label{display:grid;gap:6px;font-weight:700;color:#0d1b3d}
.gs360-ticket-form input,.gs360-ticket-form select,.gs360-ticket-form textarea{width:100%;border:1px solid #cbd8e7;border-radius:9px;padding:10px 12px;background:#fff;color:#0d1b3d;font:inherit}
.gs360-ticket-form input[readonly]{background:#f6f8fb;color:#667085}
.gs360-ticket-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gs360-ticket-submit{justify-self:start;border:0;border-radius:10px;padding:11px 18px;background:#18a84b;color:#fff;font-weight:800;cursor:pointer}
.gs360-ticket-notice{margin:16px 0;padding:13px 15px;border-radius:10px}.gs360-ticket-notice.success{background:#effaf2;border:1px solid #b7e6c4;color:#116b2b}
.gs360-ticket-list{display:grid;gap:9px}.gs360-ticket-list article{display:flex;justify-content:space-between;gap:15px;align-items:center;border:1px solid #e1e8f0;border-radius:11px;padding:12px 13px;background:#fbfcfe}.gs360-ticket-list article>div{display:grid;gap:3px}.gs360-ticket-list article strong{color:#0d1b3d}.gs360-ticket-list article span{font-weight:700}.gs360-ticket-list article small{color:#667085}.gs360-ticket-list article em{font-style:normal;font-size:12px;font-weight:800;padding:5px 8px;border-radius:999px;white-space:nowrap;background:#eef2ff;color:#3743a5}.gs360-ticket-list article em.is-risolto,.gs360-ticket-list article em.is-chiuso{background:#ecfdf3;color:#027a48}.gs360-ticket-list article em.is-attesa_cliente{background:#fff7e6;color:#a15c00}.gs360-ticket-empty{padding:18px;border:1px dashed #cbd8e7;border-radius:10px;color:#667085;text-align:center}
.gs360-help-ticket-link{display:inline-flex;margin-top:14px;padding:9px 14px;border-radius:9px;background:#0d2a67;color:#fff!important;text-decoration:none!important;font-weight:800}
@media(max-width:950px){.gs360-ticket-grid{grid-template-columns:1fr}.gs360-ticket-two{grid-template-columns:1fr}}


/* CR-103.23.125 — Guida draggabile + conferma invio assistenza */
.s360-help-header-v046[data-gs360-drag-handle="1"]{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}
.s360-help-header-v046[data-gs360-drag-handle="1"].is-gs360-dragging{cursor:grabbing}
@media(max-width:760px){.s360-help-header-v046[data-gs360-drag-handle="1"]{cursor:default;touch-action:auto}}
.gs360-support-success-modal{position:fixed;inset:0;z-index:100500;display:grid;place-items:center;padding:20px;opacity:1;transition:opacity .16s ease}
.gs360-support-success-modal.is-closed{opacity:0;pointer-events:none}
.gs360-support-success-backdrop{position:absolute;inset:0;background:rgba(6,21,54,.48);backdrop-filter:blur(2px)}
.gs360-support-success-dialog{position:relative;width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;background:#fff;border:1px solid #d9e4ef;border-radius:18px;box-shadow:0 28px 85px rgba(7,27,77,.3)}
.gs360-support-success-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 16px;background:#0d2a67;color:#fff}
.gs360-support-success-head span{display:block;margin-bottom:4px;font-size:11px;font-weight:850;letter-spacing:.08em;opacity:.82}
.gs360-support-success-head h3{margin:0;color:#fff;font-size:22px;line-height:1.2}
.gs360-support-success-head button{width:34px;height:34px;border:1px solid rgba(255,255,255,.3);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.gs360-support-success-body{padding:22px;color:#334155;font-size:14px;line-height:1.62}
.gs360-support-success-body p{margin:0 0 13px}.gs360-support-success-body p:last-of-type{margin-bottom:0}
.gs360-support-success-ref{margin-top:18px;padding:10px 12px;border:1px solid #dce6f1;border-radius:10px;background:#f7f9fc;color:#0d2a67}
.gs360-support-success-actions{display:flex;justify-content:flex-end;padding:0 22px 22px}
@media(max-width:600px){.gs360-support-success-dialog{width:calc(100vw - 20px)}.gs360-support-success-head,.gs360-support-success-body{padding-left:16px;padding-right:16px}.gs360-support-success-actions{padding-left:16px;padding-right:16px}}

/* =====================================================
 * CR-103.23.129 — Stati, Scadenze, Report e Login
 * ===================================================== */

/* Login: collegamento registrazione e versione applicativa. */
body .gs360-login-register-link{
  font-weight:900;
  color:#11883e;
  text-decoration:underline;
  text-underline-offset:2px;
}
body .gs360-login-version{
  margin:10px 0 0!important;
  padding-top:9px!important;
  border-top:1px solid #e3e9f2!important;
  font-size:11px!important;
  font-weight:800!important;
  color:#6b7890!important;
  text-align:center!important;
}

/* Tabelle > Stati: descrizione e istruzioni direttamente sulla riga. */
body .gs360-company-shell .gs360-states-table-wrap{overflow-x:visible!important;}
body .gs360-company-shell .gs360-states-help-table{width:100%!important;table-layout:fixed!important;}
body .gs360-company-shell .gs360-states-help-table th,
body .gs360-company-shell .gs360-states-help-table td{vertical-align:top!important;padding:12px 10px!important;line-height:1.35!important;}
body .gs360-company-shell .gs360-states-help-table th{font-size:12px!important;font-weight:900!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(1){width:10%!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(2){width:11%!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(3){width:20%!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(4){width:31%!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(5){width:6%!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(6){width:6%!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(7){width:8%!important;}
body .gs360-company-shell .gs360-states-help-table th:nth-child(8){width:8%!important;}
body .gs360-company-shell .gs360-state-name{font-size:12px!important;color:#07183e!important;}
body .gs360-company-shell .gs360-state-description,
body .gs360-company-shell .gs360-state-usage{display:block!important;font-size:11.5px!important;color:#53627c!important;white-space:normal!important;}
body .gs360-company-shell .gs360-state-usage{color:#243755!important;font-weight:650!important;}
body .gs360-company-shell .gs360-state-color{display:inline-block!important;width:20px!important;height:20px!important;border-radius:50%!important;background:var(--gs360-state-color)!important;box-shadow:0 0 0 3px rgba(15,35,72,.06)!important;}

/* Scadenze: testata più leggibile e tooltip Stato più ampio. */
body .gs360-company-shell .gs360-deadlines-table-extended thead th{
  font-size:12.5px!important;
  font-weight:900!important;
  line-height:1.2!important;
  color:#11244b!important;
  padding-top:11px!important;
  padding-bottom:11px!important;
}
body .gs360-company-shell .gs360-status-head-tooltip{cursor:help!important;display:inline-flex!important;align-items:center!important;gap:4px!important;}
body .gs360-company-shell .gs360-status-badge-tooltip{cursor:help!important;}
body .gs360-tooltip-floating{
  max-width:420px!important;
  padding:12px 14px!important;
  border-radius:12px!important;
  font-size:13px!important;
  line-height:1.42!important;
  font-weight:700!important;
}

/* Compatta: sei colonne, nessuno scroll orizzontale desktop. */
body .gs360-company-shell .gs360-deadlines-view-compatta{overflow-x:visible!important;}
body .gs360-company-shell .gs360-deadlines-view-compatta .gs360-deadlines-table-extended{width:100%!important;min-width:0!important;table-layout:fixed!important;}
body .gs360-company-shell .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(1){width:14%!important;}
body .gs360-company-shell .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(2){width:16%!important;}
body .gs360-company-shell .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(3){width:22%!important;}
body .gs360-company-shell .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(4){width:14%!important;}
body .gs360-company-shell .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(5){width:12%!important;}
body .gs360-company-shell .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(6){width:22%!important;}

/* Dettagliata: contenuti su più righe e colonne bilanciate, senza min-width forzata. */
body .gs360-company-shell .gs360-deadlines-view-dettagliata{overflow-x:visible!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended{width:100%!important;min-width:0!important;table-layout:fixed!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th,
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td{white-space:normal!important;overflow-wrap:anywhere!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(1){width:12%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(2){width:12%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(3){width:17%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(4){width:10%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(5){width:10%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(6){width:9%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(7){width:11%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(8){width:10%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(9){width:9%!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-deadline-row-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;}
body .gs360-company-shell .gs360-deadlines-view-dettagliata .gs360-action-btn{padding:5px 6px!important;font-size:10px!important;}

/* Report: grafico principale Stati con drill-down. */
body .gs360-company-shell .gs360-report-main-state-chart{margin-bottom:18px!important;}
body .gs360-company-shell .gs360-report-main-state-chart .gs360-company-panel-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;}
body .gs360-company-shell .gs360-report-state-chart{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:10px!important;margin-top:14px!important;}
body .gs360-company-shell .gs360-report-state-bar{display:grid!important;grid-template-rows:auto 64px auto auto!important;gap:7px!important;padding:12px!important;border:1px solid #dfe8f4!important;border-radius:16px!important;background:#fff!important;text-decoration:none!important;color:#0b1d46!important;transition:.15s ease!important;}
body .gs360-company-shell .gs360-report-state-bar:hover,
body .gs360-company-shell .gs360-report-state-bar.is-active{border-color:#2b74df!important;box-shadow:0 8px 22px rgba(26,80,160,.12)!important;transform:translateY(-1px)!important;}
body .gs360-company-shell .gs360-report-state-bar-label{font-size:11px!important;font-weight:900!important;min-height:28px!important;}
body .gs360-company-shell .gs360-report-state-bar-track{height:64px!important;border-radius:10px!important;background:#edf3fb!important;display:flex!important;align-items:flex-end!important;overflow:hidden!important;}
body .gs360-company-shell .gs360-report-state-bar-track i{display:block!important;width:100%!important;height:100%!important;max-height:100%!important;background:linear-gradient(180deg,#37b765,#168840)!important;transform-origin:bottom!important;}
body .gs360-company-shell .gs360-report-state-bar strong{font-size:20px!important;line-height:1!important;}
body .gs360-company-shell .gs360-report-state-bar small{font-size:10px!important;color:#65748e!important;font-weight:800!important;}

/* Il valore percentuale governa l'altezza effettiva via custom property JS-free: ruotiamo la barra. */
body .gs360-company-shell .gs360-report-state-bar-track{position:relative!important;}
body .gs360-company-shell .gs360-report-state-bar-track i{position:absolute!important;left:0!important;bottom:0!important;}

/* Filtri inline del dettaglio report e paginazione standard. */
body .gs360-company-shell .gs360-report-inline-filters{display:grid!important;grid-template-columns:1.2fr 1.1fr 1fr .65fr auto!important;gap:10px!important;align-items:end!important;padding:12px!important;margin:12px 0!important;border:1px solid #e0e8f3!important;border-radius:14px!important;background:#f8fbff!important;}
body .gs360-company-shell .gs360-report-inline-filters label{display:flex!important;flex-direction:column!important;gap:5px!important;}
body .gs360-company-shell .gs360-report-inline-filters label>span:first-child{font-size:10px!important;font-weight:900!important;color:#64728a!important;text-transform:uppercase!important;letter-spacing:.02em!important;}
body .gs360-company-shell .gs360-report-inline-filters select{min-height:36px!important;border:1px solid #cedbeb!important;border-radius:10px!important;background:#fff!important;padding:6px 9px!important;font-weight:750!important;color:#0b1d46!important;}
body .gs360-company-shell .gs360-report-inline-check>span:last-child{min-height:36px!important;display:flex!important;align-items:center!important;gap:7px!important;padding:0 8px!important;border:1px solid #cedbeb!important;border-radius:10px!important;background:#fff!important;font-size:11px!important;font-weight:750!important;}
body .gs360-company-shell .gs360-report-inline-actions{display:flex!important;gap:6px!important;align-items:center!important;flex-wrap:wrap!important;}
body .gs360-company-shell .gs360-report-result-count{white-space:nowrap!important;font-size:12px!important;color:#18416f!important;}
body .gs360-company-shell .gs360-report-pagination{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin-top:12px!important;padding-top:10px!important;border-top:1px solid #e5ebf4!important;font-size:11px!important;font-weight:800!important;color:#617089!important;}
body .gs360-company-shell .gs360-report-pagination nav{display:flex!important;align-items:center!important;gap:5px!important;}
body .gs360-company-shell .gs360-report-analytic-table{width:100%!important;table-layout:fixed!important;}
body .gs360-company-shell .gs360-report-analytic-table th,
body .gs360-company-shell .gs360-report-analytic-table td{white-space:normal!important;overflow-wrap:anywhere!important;}

@media (max-width:1280px){
  body .gs360-company-shell .gs360-report-state-chart{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-report-inline-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-report-inline-actions{grid-column:span 2!important;}
}
@media (max-width:900px){
  body .gs360-company-shell .gs360-report-state-chart{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .gs360-company-shell .gs360-states-help-table{min-width:900px!important;}
  body .gs360-company-shell .gs360-states-table-wrap{overflow-x:auto!important;}
}
@media (max-width:700px){
  body .gs360-company-shell .gs360-report-state-chart,
  body .gs360-company-shell .gs360-report-inline-filters{grid-template-columns:1fr!important;}
  body .gs360-company-shell .gs360-report-inline-actions{grid-column:auto!important;}
  body .gs360-company-shell .gs360-report-pagination{align-items:flex-start!important;flex-direction:column!important;}
}

/* =====================================================
 * CR-103.23.130 — Rifinitura tabella Scadenze desktop
 * Corregge compressione intestazione Stato, conflitti legacy nth-child,
 * scroll orizzontale e sovrapposizione paginazione / Aiuto.
 * ===================================================== */
@media (min-width:761px){
  body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap,
  body .gs360-company-shell #scadenze .gs360-table-wrap{
    overflow-x:hidden!important;
    scrollbar-gutter:auto!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th,
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td{
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th:first-child,
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:first-child{
    min-width:0!important;
  }
  body .gs360-company-shell #scadenze .gs360-status-head-tooltip,
  body .gs360-company-shell #scadenze .gs360-status-badge-tooltip,
  body .gs360-company-shell #scadenze .gs360-badge{
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }
  body .gs360-company-shell #scadenze .gs360-status-head-tooltip{
    font-size:12.5px!important;
    line-height:1.2!important;
  }

  /* Vista compatta: 6 colonne reali. */
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(1),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(1){width:14%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(2),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(2){width:15%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(3),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(3){width:25%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(4),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(4){width:15%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(5),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(5){width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(6),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(6){width:20%!important;}

  /* Vista dettagliata: 9 colonne reali. */
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(1),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(1){width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(2),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(2){width:10%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(3),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(3){width:16%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(4),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(4){width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(5),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(5){width:9%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(6),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(6){width:8%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(7),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(7){width:10%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(8),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(8){width:10%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(9),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(9){width:15%!important;}

  body .gs360-company-shell #scadenze .gs360-deadlines-actions-cell{
    overflow:visible!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadline-row-actions{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:4px!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn{
    flex:0 0 29px!important;
    width:29px!important;
    min-width:29px!important;
    height:29px!important;
    min-height:29px!important;
    padding:4px!important;
    justify-content:center!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn>span:not(.gs360-icon):not(.gs360-action-icon){
    display:none!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-pagination,
  body .gs360-company-shell #scadenze .gs360-company-pagination{
    padding-right:92px!important;
    box-sizing:border-box!important;
  }
}

@media (min-width:761px) and (max-width:1280px){
  body .gs360-company-shell #scadenze table.gs360-table{
    min-width:0!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn{
    flex-basis:27px!important;
    width:27px!important;
    min-width:27px!important;
    height:27px!important;
    min-height:27px!important;
  }
}


/* CR-103.23.131 — Report Scadenze: grafico principale unico + dettaglio senza colonna Condizione */
body .gs360-company-shell .gs360-report-main-state-chart{padding:18px 20px!important;}
body .gs360-company-shell .gs360-report-state-overview{display:grid!important;grid-template-columns:minmax(240px,32%) minmax(0,1fr)!important;gap:28px!important;align-items:center!important;margin-top:12px!important;}
body .gs360-company-shell .gs360-report-state-donut-wrap{display:flex!important;align-items:center!important;justify-content:center!important;min-height:270px!important;}
body .gs360-company-shell .gs360-report-state-donut{width:230px!important;height:230px!important;border-radius:50%!important;background:var(--gs360-state-donut)!important;position:relative!important;box-shadow:inset 0 0 0 1px rgba(15,35,70,.04)!important;}
body .gs360-company-shell .gs360-report-state-donut:after{content:""!important;position:absolute!important;inset:44px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 0 0 1px #e6edf6!important;}
body .gs360-company-shell .gs360-report-state-donut-center{position:absolute!important;inset:0!important;z-index:2!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;pointer-events:none!important;}
body .gs360-company-shell .gs360-report-state-donut-center strong{font-size:38px!important;line-height:1!important;color:#0b1d46!important;}
body .gs360-company-shell .gs360-report-state-donut-center span{margin-top:7px!important;text-transform:uppercase!important;letter-spacing:.08em!important;font-size:11px!important;font-weight:900!important;color:#65748e!important;}
body .gs360-company-shell .gs360-report-state-legend{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 14px!important;}
body .gs360-company-shell .gs360-report-state-legend-row{display:grid!important;grid-template-columns:13px minmax(0,1fr) auto auto!important;align-items:center!important;gap:9px!important;min-height:48px!important;padding:9px 11px!important;border:1px solid #e0e8f3!important;border-radius:11px!important;background:#fff!important;text-decoration:none!important;color:#0b1d46!important;transition:.15s ease!important;}
body .gs360-company-shell .gs360-report-state-legend-row:hover,body .gs360-company-shell .gs360-report-state-legend-row.is-active{border-color:#2b74df!important;background:#f7fbff!important;box-shadow:0 5px 15px rgba(30,78,145,.08)!important;}
body .gs360-company-shell .gs360-report-state-dot{width:11px!important;height:11px!important;border-radius:50%!important;background:var(--gs360-state-color)!important;}
body .gs360-company-shell .gs360-report-state-name{font-size:13px!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .gs360-company-shell .gs360-report-state-legend-row strong{font-size:16px!important;color:#0b1d46!important;}
body .gs360-company-shell .gs360-report-state-legend-row small{font-size:11px!important;color:#65748e!important;min-width:38px!important;text-align:right!important;}
body .gs360-company-shell .gs360-report-overdue-note{display:block!important;margin-top:4px!important;font-size:10px!important;font-weight:850!important;color:#dc2626!important;}
body .gs360-company-shell .gs360-report-analytic-table{table-layout:fixed!important;width:100%!important;}
body .gs360-company-shell .gs360-report-analytic-table th:nth-child(1){width:13%!important;}
body .gs360-company-shell .gs360-report-analytic-table th:nth-child(2){width:23%!important;}
body .gs360-company-shell .gs360-report-analytic-table th:nth-child(3){width:17%!important;}
body .gs360-company-shell .gs360-report-analytic-table th:nth-child(4){width:13%!important;}
body .gs360-company-shell .gs360-report-analytic-table th:nth-child(5){width:11%!important;}
body .gs360-company-shell .gs360-report-analytic-table th:nth-child(6){width:15%!important;}
body .gs360-company-shell .gs360-report-analytic-table th:nth-child(7){width:8%!important;}
@media(max-width:1100px){body .gs360-company-shell .gs360-report-state-overview{grid-template-columns:1fr!important;}body .gs360-company-shell .gs360-report-state-donut-wrap{min-height:220px!important;}body .gs360-company-shell .gs360-report-state-donut{width:195px!important;height:195px!important;}body .gs360-company-shell .gs360-report-state-donut:after{inset:38px!important;}}
@media(max-width:720px){body .gs360-company-shell .gs360-report-state-legend{grid-template-columns:1fr!important;}}

/* =====================================================
 * CR-103.23.132 — Elenco Scadenze: riallineamento strutturale tabella
 * Colgroup esplicito, allineamenti coerenti, stato leggibile e azioni
 * compatte senza scroll orizzontale desktop.
 * ===================================================== */
@media (min-width:761px){
  body .gs360-company-shell #scadenze .gs360-deadlines-table-wrap{
    overflow-x:hidden!important;
  }
  body .gs360-company-shell #scadenze table.gs360-deadlines-table-extended{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th,
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td{
    box-sizing:border-box!important;
    vertical-align:middle!important;
    padding:10px 10px!important;
    line-height:1.28!important;
    min-width:0!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended thead th{
    height:44px!important;
    font-size:12.5px!important;
    font-weight:900!important;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  /* Le larghezze sono governate dal colgroup: evita divergenze TH/TD. */
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-compact .col-date{width:14%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-compact .col-category{width:15%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-compact .col-title{width:25%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-compact .col-status{width:14%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-compact .col-priority{width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-compact .col-actions{width:21%!important;}

  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-date{width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-category{width:10%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-title{width:16%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-status{width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-unit{width:9%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-priority{width:8%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-sharing{width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-notifications{width:11%!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-colgroup-detail .col-actions{width:13%!important;}

  /* Neutralizza le vecchie larghezze nth-child: il colgroup è la fonte unica. */
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th,
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td{
    width:auto!important;
  }

  /* Stato: intestazione e badge perfettamente centrati nella stessa colonna. */
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th:nth-child(4),
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:nth-child(4){
    text-align:center!important;
  }
  body .gs360-company-shell #scadenze .gs360-status-head-tooltip{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    justify-content:center!important;
    align-items:center!important;
    white-space:nowrap!important;
    font-size:12.5px!important;
  }
  body .gs360-company-shell #scadenze .gs360-status-badge-tooltip,
  body .gs360-company-shell #scadenze td[data-label="Stato scadenza"] .gs360-badge{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:78px!important;
    max-width:100%!important;
    padding:5px 9px!important;
    border-radius:999px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    margin:0 auto!important;
    font-size:11px!important;
    font-weight:850!important;
  }

  /* Priorità centrata e contenuto uniforme. */
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended th:nth-child(5),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadlines-table-extended td:nth-child(5),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended th:nth-child(6),
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadlines-table-extended td:nth-child(6){
    text-align:center!important;
  }

  /* Azioni: sempre dentro la cella; dettagliata su due righe ordinate. */
  body .gs360-company-shell #scadenze .gs360-deadlines-actions-head,
  body .gs360-company-shell #scadenze .gs360-deadlines-actions-cell{
    text-align:center!important;
    overflow:hidden!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadline-row-actions{
    margin:0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadline-row-actions{
    display:flex!important;
    flex-wrap:nowrap!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-view-dettagliata .gs360-deadline-row-actions{
    display:grid!important;
    grid-template-columns:repeat(4,28px)!important;
    justify-content:center!important;
    gap:5px!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-action-btn{
    width:28px!important;
    min-width:28px!important;
    height:28px!important;
    min-height:28px!important;
    flex:0 0 28px!important;
    padding:4px!important;
    border-radius:9px!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadline-row-actions .gs360-inline-action-form{
    margin:0!important;
    padding:0!important;
    width:28px!important;
  }

  /* Celle testuali: niente rotture arbitrarie delle parole. */
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td:not(.gs360-deadlines-actions-cell){
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-notification-status small{
    display:block!important;
    margin-top:3px!important;
    line-height:1.22!important;
  }
}

@media (min-width:761px) and (max-width:1180px){
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended th,
  body .gs360-company-shell #scadenze .gs360-deadlines-table-extended td{
    padding-left:7px!important;
    padding-right:7px!important;
    font-size:10.5px!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-view-compatta .gs360-deadline-row-actions{
    display:grid!important;
    grid-template-columns:repeat(4,27px)!important;
    justify-content:center!important;
  }
}

/* =====================================================
 * CR-103.23.133 — Tooltip Stato + ordine/spaziatura Report
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-status-head-label{
  display:inline!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  box-shadow:none!important;
  color:inherit!important;
}
body .gs360-company-shell #scadenze .gs360-status-head-tooltip{
  display:inline-flex!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  margin-left:6px!important;
  vertical-align:middle!important;
  border-radius:50%!important;
}
body .gs360-company-shell #scadenze .gs360-status-badge-tooltip{
  cursor:help!important;
}
body .gs360-company-shell #report > .gs360-report-panel,
body .gs360-company-shell #report > .gs360-report-analysis-row{
  margin-top:18px!important;
  margin-bottom:0!important;
}
body .gs360-company-shell #report > .gs360-report-main-state-chart{
  margin-top:18px!important;
}
body .gs360-company-shell #report > .gs360-report-status-analysis{
  margin-top:18px!important;
}
body .gs360-company-shell #report > .gs360-report-analysis-row{
  margin-top:18px!important;
  gap:18px!important;
}
body .gs360-company-shell #report .gs360-report-analysis-row > .gs360-report-panel{
  margin-bottom:0!important;
}


/* =====================================================
 * CR-103.23.134 — Report inline + Categoria visibile + tooltip Stato robusto
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-status-head-tooltip{
  position:relative!important;
  overflow:visible!important;
  cursor:help!important;
  color:#28486f!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font-size:14px!important;
  line-height:1!important;
}
body .gs360-company-shell #scadenze .gs360-status-head-tooltip::after{
  content:attr(data-tooltip);
  position:absolute;
  z-index:2147483646;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  width:320px;
  max-width:min(320px,70vw);
  padding:11px 13px;
  border-radius:10px;
  background:#0b1d46;
  color:#fff;
  font-size:12.5px;
  font-weight:700;
  line-height:1.45;
  text-align:left;
  white-space:normal;
  box-shadow:0 14px 32px rgba(11,29,70,.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
body .gs360-company-shell #scadenze .gs360-status-head-tooltip:hover::after,
body .gs360-company-shell #scadenze .gs360-status-head-tooltip:focus::after{
  opacity:1;
  visibility:visible;
}

/* Report: filtri principali compatti, tutti sulla stessa riga quando lo spazio lo consente. */
body .gs360-company-shell #report .gs360-report-filters-simple{
  display:grid!important;
  grid-template-columns:minmax(120px,.75fr) minmax(210px,1.15fr) minmax(170px,.95fr) minmax(170px,.95fr) minmax(150px,.72fr) auto!important;
  gap:8px!important;
  align-items:end!important;
  padding:10px 12px!important;
}
body .gs360-company-shell #report .gs360-report-filter-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  align-self:end!important;
  white-space:nowrap!important;
}
body .gs360-company-shell #report .gs360-report-filter-actions .gs360-action-btn{
  min-height:34px!important;
  padding:6px 10px!important;
}
body .gs360-company-shell #report .gs360-report-summary-strip{
  margin:10px 0!important;
  padding:9px 12px!important;
}

/* Dettaglio: filtri realmente inline/automatici, senza pulsante Applica. */
body .gs360-company-shell #report .gs360-report-inline-filters{
  grid-template-columns:minmax(180px,1.15fr) minmax(180px,1fr) minmax(185px,.95fr) minmax(110px,.55fr) auto!important;
  gap:8px!important;
  margin:10px 0!important;
  padding:9px 10px!important;
}
body .gs360-company-shell #report .gs360-report-inline-actions{
  justify-content:flex-end!important;
  align-items:end!important;
  flex-wrap:nowrap!important;
}

/* Tre blocchi principali: Stato -> Dettaglio -> Categoria/Mesi con ritmo uniforme. */
body .gs360-company-shell #report > .gs360-report-main-state-chart,
body .gs360-company-shell #report > .gs360-report-status-analysis,
body .gs360-company-shell #report > .gs360-report-analysis-row{
  margin-top:12px!important;
  margin-bottom:0!important;
}
body .gs360-company-shell #report > .gs360-report-analysis-row{gap:12px!important;}
body .gs360-company-shell #report .gs360-report-panel{border-radius:14px!important;}
body .gs360-company-shell #report .gs360-company-panel-head{margin-bottom:8px!important;}

@media(max-width:1360px){
  body .gs360-company-shell #report .gs360-report-filters-simple{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .gs360-company-shell #report .gs360-report-filter-actions{justify-content:flex-start!important;}
}
@media(max-width:980px){
  body .gs360-company-shell #report .gs360-report-filters-simple,
  body .gs360-company-shell #report .gs360-report-inline-filters{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:640px){
  body .gs360-company-shell #report .gs360-report-filters-simple,
  body .gs360-company-shell #report .gs360-report-inline-filters{grid-template-columns:1fr!important;}
}


/* =====================================================
 * CR-103.23.135 — Tooltip Stato sempre sopra + allineamento etichette Report
 * ===================================================== */
body .gs360-company-shell #scadenze .gs360-status-head-tooltip::after{content:none!important;display:none!important;}
body .gs360-tooltip-floating{
  position:fixed!important;
  z-index:2147483647!important;
  isolation:isolate!important;
  pointer-events:none!important;
  transform:none!important;
}
body .gs360-company-shell #scadenze .gs360-status-head-tooltip,
body .gs360-company-shell #scadenze .gs360-status-badge-tooltip{
  position:relative!important;
  z-index:auto!important;
  cursor:help!important;
}


/* CR-103.23.139 — Report stabile: grafici SVG interattivi, filtri inline e tooltip in top layer visivo. */
body .gs360-company-shell .gs360-report-svg-donut{position:relative!important;background:none!important;overflow:visible!important;}
body .gs360-company-shell .gs360-report-svg-donut>svg{display:block!important;width:100%!important;height:100%!important;overflow:visible!important;}
body .gs360-company-shell .gs360-report-svg-track{fill:none!important;stroke:#e8eef6!important;stroke-width:16!important;}
body .gs360-company-shell .gs360-report-svg-segment{transition:opacity .15s ease,stroke-width .15s ease!important;cursor:pointer!important;}
body .gs360-company-shell .gs360-report-svg-link:hover .gs360-report-svg-segment,
body .gs360-company-shell .gs360-report-svg-link:focus .gs360-report-svg-segment{opacity:.82!important;stroke-width:18!important;}
body .gs360-company-shell .gs360-report-category-svg-donut{width:150px!important;height:150px!important;}
body .gs360-company-shell .gs360-report-category-svg-donut .gs360-report-donut-center{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;pointer-events:none!important;}
body .gs360-company-shell .gs360-report-condition-tip{display:inline-flex!important;vertical-align:middle!important;margin-left:4px!important;cursor:help!important;}
body #gs360CompanyFloatingTooltip.gs360-tooltip-floating{position:fixed!important;z-index:2147483647!important;pointer-events:none!important;max-width:min(420px,calc(100vw - 24px))!important;}
body .gs360-company-shell #report .gs360-report-filter-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;}
body .gs360-company-shell #report .gs360-report-filter-actions>*{margin:0!important;}


/* CR-103.23.141 — Stati UX: KPI allineate, Report a 3 card, filtro Stato Calendario. */
body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
body .gs360-company-shell #scadenze .is-kpi-da-fare .gs360-mockup-icon{background:#eff6ff!important;color:#2563eb!important;box-shadow:inset 0 0 0 1px #bfdbfe!important;}
body .gs360-company-shell .gs360-report-state-cards-panel .gs360-company-panel-head{margin-bottom:14px!important;}
body .gs360-company-shell .gs360-report-state-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
body .gs360-company-shell .gs360-report-state-card{display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;min-height:92px!important;padding:16px 18px!important;border:1px solid #dfe8f3!important;border-radius:17px!important;background:#fff!important;text-decoration:none!important;color:#0b1d46!important;box-shadow:0 10px 24px rgba(15,23,42,.045)!important;transition:.16s ease!important;}
body .gs360-company-shell .gs360-report-state-card:hover{transform:translateY(-2px)!important;box-shadow:0 16px 30px rgba(15,23,42,.08)!important;}
body .gs360-company-shell .gs360-report-state-card.is-active{box-shadow:inset 0 0 0 2px currentColor,0 14px 28px rgba(15,23,42,.06)!important;}
body .gs360-company-shell .gs360-report-state-card-icon{width:48px!important;height:48px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#eff6ff!important;color:#2563eb!important;box-shadow:inset 0 0 0 1px #bfdbfe!important;}
body .gs360-company-shell .gs360-report-state-card.is-completata .gs360-report-state-card-icon{background:#ecfdf5!important;color:#16a34a!important;box-shadow:inset 0 0 0 1px #bbf7d0!important;}
body .gs360-company-shell .gs360-report-state-card.is-scaduta .gs360-report-state-card-icon{background:#fff1f2!important;color:#dc2626!important;box-shadow:inset 0 0 0 1px #fecdd3!important;}
body .gs360-company-shell .gs360-report-state-card-icon svg{width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
body .gs360-company-shell .gs360-report-state-card-copy strong{display:block!important;font-size:14px!important;font-weight:950!important;color:#0b1d46!important;margin-bottom:5px!important;}
body .gs360-company-shell .gs360-report-state-card-copy small{display:block!important;font-size:11px!important;font-weight:700!important;color:#64748b!important;}
body .gs360-company-shell .gs360-report-state-card-value{font-size:28px!important;line-height:1!important;font-weight:950!important;color:#0b1d46!important;text-align:right!important;}
body .gs360-company-shell .gs360-report-state-card-value small{display:block!important;font-size:10px!important;line-height:1.2!important;color:#64748b!important;margin-top:7px!important;font-weight:800!important;}
@media(max-width:1100px){body .gs360-company-shell .gs360-report-state-cards{grid-template-columns:1fr!important;}body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:760px){body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis{grid-template-columns:1fr!important;}}


/* CR-103.23.143 — Regola Report: grafico principale sempre affiancato alle card KPI/stato. */
body .gs360-company-shell .gs360-report-state-overview{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;gap:22px!important;align-items:center!important;}
body .gs360-company-shell .gs360-report-state-chart-wrap{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;}
body .gs360-company-shell .gs360-report-state-svg-donut{width:156px!important;height:156px!important;position:relative!important;}
body .gs360-company-shell .gs360-report-state-svg-donut .gs360-report-donut-center{position:absolute!important;inset:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;pointer-events:none!important;}
body .gs360-company-shell .gs360-report-state-svg-donut .gs360-report-donut-center strong{font-size:28px!important;line-height:1!important;font-weight:950!important;color:#0b1d46!important;}
body .gs360-company-shell .gs360-report-state-svg-donut .gs360-report-donut-center span{margin-top:6px!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;color:#64748b!important;letter-spacing:.04em!important;}
body .gs360-company-shell .gs360-report-state-chart-wrap>p{margin:8px 0 0!important;text-align:center!important;font-size:11px!important;line-height:1.35!important;color:#64748b!important;font-weight:700!important;}
body .gs360-company-shell .gs360-report-state-card.is-da_fare{border-left:4px solid #2b74df!important;}
body .gs360-company-shell .gs360-report-state-card.is-completata{border-left:4px solid #16a34a!important;}
body .gs360-company-shell .gs360-report-state-card.is-scaduta{border-left:4px solid #dc2626!important;}
@media(max-width:1100px){body .gs360-company-shell .gs360-report-state-overview{grid-template-columns:1fr!important;}body .gs360-company-shell .gs360-report-state-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:760px){body .gs360-company-shell .gs360-report-state-cards{grid-template-columns:1fr!important;}}


/* CR-103.23.144 — elenco operativo risultati filtri Calendario */
.gs360-calendar-filter-results{margin-top:14px}
.gs360-calendar-filter-results-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gs360-calendar-filter-results-head h3{margin:0 0 3px}.gs360-calendar-filter-results-head p{margin:0;color:#64748b}
.gs360-calendar-filter-results-table td small,.gs360-calendar-filter-results-table td a small{display:block;margin-top:2px;color:#64748b}
.gs360-calendar-filter-results-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:10px}
.gs360-calendar-filter-results-footer .gs360-pagination-inline{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gs360-calendar-filter-results-footer .is-current{background:#0f766e;color:#fff;border-color:#0f766e}
@media(max-width:900px){.gs360-calendar-filter-results-head{align-items:flex-start;flex-direction:column}.gs360-calendar-filter-results-footer{align-items:flex-start}}


/* CR-103.23.145 — KPI Notifiche interattivi + richiamo discreto prossime scadenze. */
body .gs360-company-shell .gs360-notification-kpi-grid-simple{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
body .gs360-company-shell .gs360-notification-kpi-grid-simple .gs360-notification-kpi-card{
  min-height:92px!important;
  cursor:pointer!important;
  border-radius:16px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px 16px!important;
}
body .gs360-company-shell .gs360-notification-kpi-card > div > small{
  display:block!important;margin-top:4px!important;color:#71809a!important;font-size:10px!important;font-weight:750!important;line-height:1.2!important;
}
body .gs360-company-shell .gs360-notification-kpi-card.is-active{
  box-shadow:0 0 0 2px rgba(21,94,117,.10),0 10px 22px rgba(7,27,77,.08)!important;
  transform:translateY(-1px)!important;
}
body .gs360-company-shell .gs360-notification-kpi-card:focus-visible{outline:3px solid rgba(37,99,235,.24)!important;outline-offset:2px!important;}
@media(max-width:980px){body .gs360-company-shell .gs360-notification-kpi-grid-simple{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:560px){body .gs360-company-shell .gs360-notification-kpi-grid-simple{grid-template-columns:1fr!important;}}

@keyframes gs360DeadlineAttention{
  0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0);}
  50%{box-shadow:0 0 0 5px rgba(245,158,11,.16);}
}
@keyframes gs360DeadlineAttentionUrgent{
  0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0);}
  50%{box-shadow:0 0 0 6px rgba(239,68,68,.17);}
}
body .gs360-company-shell .is-attention:not(.is-attention-urgent){animation:gs360DeadlineAttention 1.65s ease-in-out 4;}
body .gs360-company-shell .is-attention-urgent{animation:gs360DeadlineAttentionUrgent 1.35s ease-in-out 4;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item.is-attention,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day.is-attention,
body .gs360-company-shell .gs360-calendar-week-day.is-attention,
body .gs360-company-shell .gs360-calendar-day.is-attention{border-color:#f2bd58!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-upcoming-item.is-attention-urgent,
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-day.is-attention-urgent,
body .gs360-company-shell .gs360-calendar-week-day.is-attention-urgent,
body .gs360-company-shell .gs360-calendar-day.is-attention-urgent{border-color:#ef8a8a!important;}
body .gs360-company-shell #dashboard .gs360-dashboard-inline-week-events>a.is-attention,
body .gs360-company-shell .gs360-calendar-week-event.is-attention,
body .gs360-company-shell .gs360-calendar-event.is-attention{position:relative;z-index:1;}
@media(prefers-reduced-motion:reduce){
  body .gs360-company-shell .is-attention,body .gs360-company-shell .is-attention-urgent{animation:none!important;}
}
/* Fine CR-103.23.145 */


/* CR-103.23.146 — Elenco Scadenze: stesso richiamo imminenze di Dashboard/Calendario. */
body .gs360-company-shell #scadenze .gs360-deadline-attention-row > td:first-child{
  box-shadow:inset 3px 0 0 #f2bd58!important;
  background:linear-gradient(90deg,rgba(245,158,11,.055),rgba(255,255,255,0) 72%)!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-attention-row.is-attention-row-urgent > td:first-child{
  box-shadow:inset 3px 0 0 #ef8a8a!important;
  background:linear-gradient(90deg,rgba(239,68,68,.06),rgba(255,255,255,0) 72%)!important;
}
body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-attention,
body .gs360-company-shell #scadenze .gs360-status-badge-tooltip.is-attention{
  position:relative!important;z-index:1!important;
}
@media(prefers-reduced-motion:reduce){
  body .gs360-company-shell #scadenze .gs360-deadline-date-chip.is-attention,
  body .gs360-company-shell #scadenze .gs360-status-badge-tooltip.is-attention{animation:none!important;}
}
/* Fine CR-103.23.146 */

/* CR-103.23.161 — KPI Notifiche 5-col desktop, Profilo Moduli compatto uniforme, quota Scadenze */
body .gs360-company-shell .gs360-notification-kpi-grid-simple{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
body .gs360-company-shell .gs360-notification-kpi-grid-simple .gs360-notification-kpi-card{min-width:0!important;width:100%!important}
@media(max-width:900px){body .gs360-company-shell .gs360-notification-kpi-grid-simple{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body .gs360-company-shell .gs360-notification-kpi-grid-simple{grid-template-columns:1fr!important}}

/* =====================================================
 * GESTIONE SCADENZE360
 * CR-103.23.166 — OTP obbligatorio accesso
 * Release: 0.6.43.7.0.164-alpha
 * Data: 31/08/2026
 * Scopo: stile del secondo fattore OTP nel solo login frontend.
 * Impatto: solo UI login; nessuna modifica DB/query/altre aree.
 * ===================================================== */
body:has(.gs360-login-wrap){margin:0!important;padding:0!important;background:linear-gradient(135deg,#0D1B3D,#132B5E)!important;}
body:has(.gs360-login-wrap) .gs360-login-wrap{width:100vw!important;max-width:100vw!important;min-height:100vh!important;min-height:100dvh!important;box-sizing:border-box!important;}
.gs360-login-form{display:grid;gap:12px;margin-top:18px;}
.gs360-login-form p{margin:0!important;}
.gs360-login-form label{display:block;margin-bottom:6px;font-size:13px;font-weight:800;color:var(--gs360-primary);}
.gs360-login-form input[type=text],
.gs360-login-form input[type=password]{width:100%;border:1px solid var(--gs360-border);border-radius:10px;padding:12px;box-sizing:border-box;font-family:inherit;font-size:15px;color:var(--gs360-primary);background:#fff;}
.gs360-login-form input:focus{outline:0;border-color:var(--gs360-success);box-shadow:0 0 0 3px rgba(40,167,69,.15);}
.gs360-login-form input[type=submit]{width:100%;border:0;border-radius:10px;background:var(--gs360-success);color:#fff;padding:13px;font-weight:850;cursor:pointer;}
.gs360-login-form input[type=submit]:hover{background:var(--gs360-success-soft);}
.gs360-login-form .login-remember label{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--gs360-muted);cursor:pointer;}
.gs360-login-form .login-remember input{accent-color:var(--gs360-success);}
.gs360-login-feedback{margin:16px 0 4px;padding:11px 13px;border-radius:11px;font-size:13px;font-weight:750;line-height:1.45;}
.gs360-login-feedback.is-error{background:#fff5f5;border:1px solid #f2c7c7;color:#9f2d2d;}
.gs360-login-feedback.is-success{background:#f1fbf4;border:1px solid #c7e8cf;color:#16743a;}
.gs360-otp-intro{margin:0 0 2px!important;padding:12px 13px;border:1px solid #dce7f4;border-radius:12px;background:#f8fbff;color:#5e6e86!important;font-size:13px;line-height:1.5;}
.gs360-login-card .gs360-otp-input{font-size:26px!important;letter-spacing:10px!important;text-align:center!important;font-weight:900!important;font-variant-numeric:tabular-nums;}
.gs360-otp-resend-form{margin-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.gs360-login-link-button{appearance:none;border:0;background:transparent;color:var(--gs360-success);padding:0;font:inherit;font-size:13px;font-weight:850;cursor:pointer;text-decoration:none;}
.gs360-login-link-button:hover{text-decoration:underline;text-underline-offset:3px;}
.gs360-login-cancel-link{color:var(--gs360-muted)!important;font-size:13px;font-weight:750;text-decoration:none!important;}
.gs360-login-cancel-link:hover{color:var(--gs360-primary)!important;}
@media(max-width:560px){.gs360-login-wrap{padding:18px 12px!important}.gs360-login-card{padding:26px 20px}.gs360-login-card .gs360-otp-input{font-size:23px!important;letter-spacing:7px!important}.gs360-otp-resend-form{align-items:flex-start;flex-direction:column}}
/* Fine CR-103.23.166 — OTP accesso. */

/* =====================================================
 * GESTIONE SCADENZE360
 * CR-103.23.167 — Email per conoscenza / TAB 2 Notifica
 * Versione plugin: 0.6.43.7.0.166-alpha
 * Scopo: layout inline fino a 5 destinatari occasionali con due flag indipendenti; micro-revisione limite 5/5.
 * Impatto: solo wizard Scadenza; nessuna esposizione degli indirizzi tra destinatari.
 * DB: nuova tabella additiva scadenze_email_conoscenza, schema 1.2.18.
 * ===================================================== */
.gs360-knowledge-email-box{margin-top:22px;padding:18px;border:1px solid #dbe6f2;border-radius:18px;background:#fbfdff}.gs360-knowledge-email-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:10px}.gs360-knowledge-email-head h4{margin:0 0 5px;color:#071b4d;font-size:17px}.gs360-knowledge-email-head p{margin:0;color:#617085;line-height:1.5;max-width:820px}.gs360-knowledge-email-list{display:grid;gap:8px}.gs360-knowledge-email-row{display:grid;grid-template-columns:minmax(230px,1.35fr) minmax(220px,1fr) minmax(250px,1.15fr) auto;gap:10px;align-items:end;padding:12px 0;border-top:1px solid #e5edf5}.gs360-knowledge-email-row.is-hidden{display:none}.gs360-knowledge-email-check{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;min-height:46px;padding:9px 10px;border:1px solid #dce6f2;border-radius:12px;background:#fff}.gs360-knowledge-email-check input{width:auto!important;min-height:auto!important;box-shadow:none!important;accent-color:#28a745}.gs360-knowledge-email-check span{display:flex;flex-direction:column;gap:2px}.gs360-knowledge-email-check strong{font-size:12px;color:#071b4d}.gs360-knowledge-email-check small{font-size:11px;font-weight:500;color:#617085}.gs360-knowledge-email-address input{min-height:46px}.gs360-knowledge-email-row [data-gs360-remove-knowledge-email]{min-height:46px}@media(max-width:1180px){.gs360-knowledge-email-row{grid-template-columns:1fr 1fr}.gs360-knowledge-email-row [data-gs360-remove-knowledge-email]{width:100%}}@media(max-width:700px){.gs360-knowledge-email-head{flex-direction:column}.gs360-knowledge-email-row{grid-template-columns:1fr}}
.gs360-knowledge-email-box [data-gs360-add-knowledge-email]:disabled{opacity:.48!important;cursor:not-allowed!important;transform:none!important;box-shadow:none!important;filter:saturate(.65)}.gs360-knowledge-email-limit{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid #f0c36a;border-radius:999px;background:#fff8e7;color:#8a5a00!important;font-weight:900!important}.gs360-knowledge-email-limit[hidden]{display:none!important}
/* Fine CR-103.23.167 */


/* =====================================================
 * CR-103.23.186 — Assistenza cliente / storico ticket
 * ===================================================== */
body .gs360-company-shell .gs360-company-nav-support{margin-top:6px!important;}
body .gs360-company-shell .gs360-ticket-kpi-customer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 18px;}
body .gs360-company-shell .gs360-ticket-kpi-customer article{background:#fff;border:1px solid #dbe6f2;border-radius:14px;padding:15px 16px;box-shadow:0 8px 24px rgba(13,27,61,.035);}
body .gs360-company-shell .gs360-ticket-kpi-customer span{display:block;color:#64748b;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;}
body .gs360-company-shell .gs360-ticket-kpi-customer strong{display:block;margin-top:4px;color:#0d1b3d;font-size:24px;line-height:1;}
body .gs360-company-shell .gs360-ticket-kpi-customer small{display:block;margin-top:6px;color:#667085;font-size:11px;}
body .gs360-company-shell .gs360-ticket-list-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px;}
body .gs360-company-shell .gs360-ticket-list-head>span{padding:5px 9px;border:1px solid #d9e5f1;border-radius:999px;background:#f7f9fc;color:#0d2a67;font-size:11px;font-weight:850;white-space:nowrap;}
body .gs360-company-shell .gs360-ticket-list article{align-items:flex-start;}
body .gs360-company-shell .gs360-ticket-row-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
body .gs360-company-shell .gs360-ticket-row-actions .gs360-action-btn{min-width:auto!important;padding:7px 10px!important;}
body .gs360-company-shell .gs360-ticket-detail-customer{margin:0 0 18px;}
body .gs360-company-shell .gs360-ticket-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:15px;}
body .gs360-company-shell .gs360-ticket-detail-head span{display:block;color:#15803d;font-size:10px;font-weight:900;letter-spacing:.07em;}
body .gs360-company-shell .gs360-ticket-detail-head h3{margin:3px 0 0;}
body .gs360-company-shell .gs360-ticket-detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 15px;}
body .gs360-company-shell .gs360-ticket-detail-meta>div{padding:10px 12px;border:1px solid #e1e8f0;border-radius:10px;background:#f9fbfd;}
body .gs360-company-shell .gs360-ticket-detail-meta span{display:block;color:#667085;font-size:10px;font-weight:800;}
body .gs360-company-shell .gs360-ticket-detail-meta strong{display:block;margin-top:3px;color:#0d1b3d;font-size:12px;}
body .gs360-company-shell .gs360-ticket-customer-description{padding:14px;border:1px solid #e1e8f0;border-radius:10px;background:#fbfcfe;}
body .gs360-company-shell .gs360-ticket-customer-description h4,
body .gs360-company-shell .gs360-ticket-customer-timeline h4{margin:0 0 9px;color:#0d1b3d;font-size:14px;}
body .gs360-company-shell .gs360-ticket-customer-description p{margin:0;color:#344054;line-height:1.55;}
body .gs360-company-shell .gs360-ticket-customer-timeline{margin-top:15px;}
body .gs360-company-shell .gs360-ticket-customer-timeline article{margin:9px 0;padding:11px 13px;border-left:3px solid #2563eb;border-radius:8px;background:#f7f9fc;}
body .gs360-company-shell .gs360-ticket-customer-timeline article strong{color:#0d1b3d;}
body .gs360-company-shell .gs360-ticket-customer-timeline article span{display:block;margin-top:2px;color:#667085;font-size:10px;}
body .gs360-company-shell .gs360-ticket-customer-timeline article p{margin:7px 0 0;color:#344054;line-height:1.5;}
@media(max-width:950px){body .gs360-company-shell .gs360-ticket-kpi-customer{grid-template-columns:1fr 1fr 1fr;}body .gs360-company-shell .gs360-ticket-detail-meta{grid-template-columns:1fr 1fr;}}
@media(max-width:650px){body .gs360-company-shell .gs360-ticket-kpi-customer{grid-template-columns:1fr;}body .gs360-company-shell .gs360-ticket-detail-meta{grid-template-columns:1fr;}body .gs360-company-shell .gs360-ticket-list article,body .gs360-company-shell .gs360-ticket-detail-head{flex-direction:column;}body .gs360-company-shell .gs360-ticket-row-actions{width:100%;justify-content:space-between;}}


/* =====================================================
 * CR-103.23.187 — Filtro Sede / Unità operativa in Elenco Scadenze
 * Scopo: mantenere su desktop una barra filtri leggibile dopo l'aggiunta
 * del nuovo filtro tenant-safe sulla sede_id canonica. Nessuna modifica DB.
 * ===================================================== */
@media (min-width:1381px){
  body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{
    grid-template-columns:minmax(120px,1fr) minmax(86px,.62fr) minmax(105px,.82fr) minmax(132px,1fr) minmax(100px,.72fr) minmax(116px,.86fr) minmax(138px,1.06fr) minmax(102px,.72fr) minmax(102px,.72fr) max-content!important;
    column-gap:6px!important;
  }
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions{grid-column:10!important;grid-row:1!important;}
}
@media (min-width:1180px) and (max-width:1380px){
  body .gs360-company-shell #scadenze .gs360-deadlines-active-filter-form{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  body .gs360-company-shell #scadenze .gs360-deadlines-filter-actions{grid-column:5!important;grid-row:auto!important;}
}
/* Fine CR-103.23.187 */


/* =====================================================
 * CR-103.23.194 — Uniformazione Centro Controllo / KPI Operatività
 * Versione: 0.6.43.7.0.188-alpha
 * Scopo:
 * - standard unico per card KPI, hero, filtri e tabelle dell'area /app/;
 * - dashboard Aziende coerente con Dashboard, Ticket e Operatività;
 * - layout stabile su desktop, tablet e mobile.
 * Nota: solo UI; nessuna modifica dati o schema DB.
 * ===================================================== */
.gs360-section-hero-194{margin-bottom:16px}
.gs360-section-hero-194 h2{margin:4px 0 7px}
.gs360-section-kpis-194{margin-bottom:16px}
.gs360-section-toolbar-194{background:#fff;border:1px solid var(--gs360-border);border-radius:16px;padding:14px;box-shadow:var(--gs360-shadow);margin-bottom:16px}
.gs360-section-filters-194{width:100%;display:grid!important;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:center}
.gs360-section-filters-194 input,.gs360-section-filters-194 select{min-height:42px;border:1px solid #cfd9e8;border-radius:10px;padding:9px 11px;background:#fff}
.gs360-section-filters-194 button{min-height:42px;border-radius:10px}

/* KPI condivise dell'Area Riservata amministrativa. */
.gs360-app-kpi{position:relative;overflow:hidden;background:#fff!important;border:1px solid var(--gs360-border)!important;border-radius:16px!important;padding:16px 17px!important;box-shadow:var(--gs360-shadow);min-height:118px;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box}
.gs360-app-kpi::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:#70839d}
.gs360-app-kpi-success::before{background:#28a745}.gs360-app-kpi-warning::before{background:#f2a900}.gs360-app-kpi-danger::before{background:#d9485f}.gs360-app-kpi-info::before{background:#2f80ed}.gs360-app-kpi-neutral::before{background:#70839d}
.gs360-app-kpi>span{display:block;color:#61708a!important;font-size:12px!important;font-weight:850!important;line-height:1.25;min-height:30px}
.gs360-app-kpi>strong{display:block!important;color:var(--gs360-primary)!important;font-size:31px!important;line-height:1!important;margin:8px 0 7px!important;font-weight:950!important}
.gs360-app-kpi>small{display:block!important;color:#7b879a!important;font-size:11px!important;line-height:1.35!important;margin-top:auto}

/* Monitor: griglia KPI stabile e coerente con Ticket/Aziende. */
.gs360-monitor-kpis-192{gap:12px!important;margin:14px 0 16px!important;align-items:stretch}
.gs360-monitor-kpis-192 .gs360-app-kpi{height:100%}
.gs360-monitor-kpis-192 .gs360-app-kpi.is-ok,.gs360-monitor-kpis-192 .gs360-app-kpi.is-warning,.gs360-monitor-kpis-192 .gs360-app-kpi.is-error,.gs360-monitor-kpis-192 .gs360-app-kpi.is-progress{border-left:1px solid var(--gs360-border)!important}

/* Ticket: stesso ritmo visivo delle KPI operative. */
.gs360-ticket-app-kpis{gap:12px!important;align-items:stretch}
.gs360-ticket-app-kpis .gs360-app-kpi{height:100%}

/* Tabelle amministrative: comportamento prevedibile e testi sempre contenuti. */
.gs360-main .gs360-table-card,.gs360-main>.gs360-card{border-radius:16px}
.gs360-main .gs360-table th{background:#f7f9fc;color:#43536d;font-size:11px;font-weight:850;vertical-align:middle}
.gs360-main .gs360-table td{vertical-align:top;overflow-wrap:anywhere}

@media(max-width:1200px){
  .gs360-section-filters-194{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gs360-section-filters-194 input[type="search"]{grid-column:1/-1}
  .gs360-monitor-kpis-192,.gs360-ticket-app-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .gs360-section-filters-194{grid-template-columns:1fr}
  .gs360-section-filters-194 input[type="search"]{grid-column:auto}
  .gs360-monitor-kpis-192,.gs360-ticket-app-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gs360-app-kpi{min-height:108px}
}
@media(max-width:480px){
  .gs360-monitor-kpis-192,.gs360-ticket-app-kpis{grid-template-columns:1fr!important}
}
/* Fine CR-103.23.194. */


/* =====================================================
 * CR-103.23.194.1 — Rifinitura UI KPI Operatività
 * Versione: 0.6.43.7.0.189-alpha
 * Scopo:
 * - eliminare l'effetto visivo di card "tagliata" sul bordo sinistro;
 * - aumentare lo spazio interno tra indicatore di stato e contenuti;
 * - mantenere altezza, ritmo tipografico e responsive uniformi.
 * Nota: solo UI; nessuna modifica dati, logica o schema DB.
 * ===================================================== */
.gs360-main .gs360-app-kpi{
  padding:18px 20px 16px 24px!important;
  min-height:120px;
  overflow:hidden;
}
.gs360-main .gs360-app-kpi::before{
  width:2px!important;
  border-radius:16px 0 0 16px;
}
.gs360-main .gs360-app-kpi>span{
  min-height:26px;
  line-height:1.3!important;
  padding-right:4px;
}
.gs360-main .gs360-app-kpi>strong{
  margin:7px 0 8px!important;
}
.gs360-main .gs360-app-kpi>small{
  padding-right:4px;
  line-height:1.4!important;
}
.gs360-monitor-kpis-192 .gs360-app-kpi,
.gs360-ticket-app-kpis .gs360-app-kpi,
.gs360-section-kpis-194 .gs360-app-kpi{
  height:100%;
}
@media(max-width:760px){
  .gs360-main .gs360-app-kpi{padding:16px 18px 15px 22px!important;min-height:112px}
}
/* Fine CR-103.23.194.1. */


/* =====================================================
 * CR-103.23.195 — Restyling professionale Sistema & Report /app/
 * Versione: 0.6.43.7.0.190-alpha
 * Scopo: gerarchia visiva, KPI report, card sistema e tabelle uniformi.
 * Solo UI/lettura: nessuna modifica dati o schema DB.
 * ===================================================== */
.gs360-section-hero-195{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px;padding:20px 22px!important}
.gs360-section-hero-195 h2{margin:4px 0 7px;font-size:25px;line-height:1.15}.gs360-section-hero-195 p:last-child{margin-bottom:0;color:#526078}
.gs360-report-kpis-195{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 16px;align-items:stretch}.gs360-report-kpis-195 .gs360-app-kpi{height:100%}
.gs360-report-table-195{padding:18px!important}.gs360-report-table-195 .gs360-section-head-inline{margin-bottom:14px}.gs360-report-table-195 td small{display:block;color:#718096;margin-top:3px}
.gs360-report-status-195{display:inline-flex;align-items:center;justify-content:center;min-width:86px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}
.gs360-report-status-195.is-ok{background:#ecfdf3;color:#166534}.gs360-report-status-195.is-warning{background:#fff7e6;color:#9a6700}.gs360-report-status-195.is-critical{background:#fef2f2;color:#b42318}
.gs360-system-grid-195{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.gs360-system-card-195{position:relative;display:flex;gap:16px;min-height:170px;padding:20px;background:#fff;border:1px solid var(--gs360-border);border-radius:16px;box-shadow:var(--gs360-shadow);overflow:hidden}
.gs360-system-card-195:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#70839d}.gs360-system-card-195.is-info:before{background:#2f80ed}.gs360-system-card-195.is-success:before{background:#28a745}.gs360-system-card-195.is-warning:before{background:#f2a900}
.gs360-system-card-icon-195{flex:0 0 44px;width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#123d91;font-size:18px;font-weight:900}
.gs360-system-card-body-195{display:flex;flex-direction:column;min-width:0}.gs360-system-card-meta-195{color:#6b7a90;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.gs360-system-card-195 h3{margin:5px 0 7px;font-size:19px;color:#0d1b3d}.gs360-system-card-195 p{margin:0 0 16px;color:#56657a;line-height:1.45}.gs360-system-action-195{margin-top:auto;display:inline-flex;align-items:center;gap:7px;font-weight:850;color:#0b63ce;text-decoration:none}.gs360-system-action-195:hover{text-decoration:underline}
.gs360-system-note-195{padding:16px 18px!important;border-left:3px solid #2f80ed!important}.gs360-system-note-195 strong{display:block;color:#0d1b3d}.gs360-system-note-195 p{margin:5px 0 0;color:#61708a}
@media(max-width:1250px){.gs360-report-kpis-195{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.gs360-system-grid-195{grid-template-columns:1fr}.gs360-section-hero-195{flex-direction:column}.gs360-report-kpis-195{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.gs360-report-kpis-195{grid-template-columns:1fr}.gs360-system-card-195{padding:17px;gap:12px}.gs360-system-card-icon-195{flex-basis:40px;width:40px;height:40px}}
/* Fine CR-103.23.195. */

/* CR-103.23.197 — Riepilogo serie: spaziature, stato, termine, tooltip */
.gs360-series-summary{align-items:stretch;gap:16px}
.gs360-series-summary article{position:relative;min-width:0;min-height:104px;padding:19px 20px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;overflow:visible}
.gs360-series-summary .gs360-series-label{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0;color:#475569;font-size:.77rem;font-weight:800;line-height:1.35;text-transform:uppercase;letter-spacing:.035em}
.gs360-series-summary article>strong{display:block;margin:0;font-size:1.04rem;line-height:1.4;overflow-wrap:anywhere}
.gs360-series-help{display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 22px;padding:0;border:1px solid #a9c4e9;border-radius:50%;background:#eff6ff;color:#1e40af;font-size:12px;font-weight:800;cursor:help;line-height:1}
.gs360-series-help:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.gs360-series-tooltip{display:none;position:absolute;z-index:30;top:calc(100% - 4px);left:12px;width:min(290px,calc(100vw - 55px));padding:11px 13px;border-radius:10px;background:#142b4c;color:#fff!important;box-shadow:0 8px 22px #0f172a33;font-size:12px!important;line-height:1.5!important;font-weight:500!important;letter-spacing:normal!important;text-transform:none!important;white-space:normal}
.gs360-series-help:hover+.gs360-series-tooltip,.gs360-series-help:focus+.gs360-series-tooltip,.gs360-series-help:active+.gs360-series-tooltip{display:block}
.gs360-series-status{display:inline-flex!important;align-items:center;min-height:30px;padding:5px 12px;border:1px solid #a7e4c2;border-radius:9px;background:#e9f9ef;color:#166534!important;font-size:.86rem!important;font-weight:900!important;letter-spacing:.025em;line-height:1.25;text-transform:uppercase}
.gs360-series-status-sospesa{border-color:#f5c58a;background:#fff3df;color:#9a4b08!important}
.gs360-series-status-terminata{border-color:#f3ad65;background:#ffedd5;color:#9a3412!important;box-shadow:inset 3px 0 0 #ea580c}
.gs360-series-end{display:inline-block!important;color:#0f172a!important;font-size:.98rem!important;font-weight:800!important;line-height:1.35}
.gs360-series-end-open{padding:6px 9px;border:1px solid #f4cb86;border-radius:8px;background:#fffbeb;color:#92400e!important}
@media(max-width:760px){.gs360-series-summary article{min-height:94px;padding:16px}}
@media(max-width:480px){.gs360-series-summary article{min-height:82px;padding:15px}}

/* CR-103.23.197.1 — Tooltip esclusivo su attivazione esplicita, sopra le card */
.gs360-series-summary .gs360-series-help:hover+.gs360-series-tooltip,
.gs360-series-summary .gs360-series-help:focus+.gs360-series-tooltip,
.gs360-series-summary .gs360-series-help:active+.gs360-series-tooltip{display:none}
.gs360-series-summary article.gs360-series-tip-open{z-index:50}
.gs360-series-summary article.gs360-series-tip-open .gs360-series-tooltip{display:block;top:auto;bottom:calc(100% + 9px);left:8px;width:min(285px,calc(100vw - 44px));max-width:calc(100vw - 44px)}
.gs360-series-summary article.gs360-series-tip-open .gs360-series-help{background:#dbeafe;border-color:#2563eb}
@media(max-width:760px){.gs360-series-summary article.gs360-series-tip-open .gs360-series-tooltip{left:0}}

/* CR-103.23.197.2 — Correzione specificita CSS e tooltip nel flusso: nessuna sovrapposizione */
.gs360-series-summary{gap:18px!important;margin:10px 0 24px!important;align-items:stretch!important}
.gs360-series-summary > article{box-sizing:border-box!important;min-width:0!important;min-height:116px!important;padding:22px 24px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;gap:14px!important;border-radius:15px!important}
.gs360-series-summary > article > .gs360-series-label{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;line-height:1.45!important;margin:0!important}
.gs360-series-summary > article > strong{display:block!important;margin:0!important;line-height:1.5!important}
.gs360-series-summary > article > .gs360-series-tooltip{display:none!important;position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;box-sizing:border-box!important;flex:none!important;margin:0!important;padding:13px 14px!important;box-shadow:none!important;border-radius:9px!important;background:#152e51!important;color:#fff!important;font-size:12px!important;font-weight:500!important;line-height:1.55!important;text-transform:none!important;letter-spacing:normal!important;white-space:normal!important;overflow-wrap:break-word!important}
.gs360-series-summary > article.gs360-series-tip-open > .gs360-series-tooltip{display:block!important;position:static!important;inset:auto!important;width:auto!important;max-width:100%!important}
.gs360-series-summary > article > .gs360-series-label > .gs360-series-help{cursor:pointer!important}
.gs360-series-summary > article > strong > .gs360-series-status,.gs360-series-summary > article > strong > .gs360-series-end{margin:0!important}
@media(max-width:760px){.gs360-series-summary > article{min-height:104px!important;padding:19px 20px!important}}
@media(max-width:480px){.gs360-series-summary > article{min-height:92px!important;padding:18px!important}}

/* CR-103.23.197.3 — Rientro contenuti KPI serie (STAGING2) */
/* Il rientro viene applicato anche ai figli per neutralizzare regole globali che azzerano il padding dell'article. */
.gs360-series-summary > article {box-sizing:border-box!important;padding:18px 0!important;min-width:0!important;}
.gs360-series-summary > article > .gs360-series-label,
.gs360-series-summary > article > strong {box-sizing:border-box!important;width:100%!important;padding-left:22px!important;padding-right:22px!important;margin-left:0!important;margin-right:0!important;}
.gs360-series-summary > article > .gs360-series-tooltip {box-sizing:border-box!important;width:calc(100% - 44px)!important;max-width:calc(100% - 44px)!important;margin-left:22px!important;margin-right:22px!important;}
.gs360-series-summary > article > strong > .gs360-series-status,
.gs360-series-summary > article > strong > .gs360-series-end {max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;}
@media(max-width:760px){.gs360-series-summary > article > .gs360-series-label,.gs360-series-summary > article > strong{padding-left:18px!important;padding-right:18px!important}.gs360-series-summary > article > .gs360-series-tooltip{width:calc(100% - 36px)!important;max-width:calc(100% - 36px)!important;margin-left:18px!important;margin-right:18px!important}}

/* CR-103.23.197.5 — intestazioni KPI serie e filtri scadenze compatti */
.gs360-series-summary > article {padding-top:25px!important; padding-bottom:15px!important; min-height:116px!important; gap:10px!important;}
.gs360-series-summary > article > .gs360-series-label {padding-top:0!important;}
.gs360-deadlines-active-filter-form {gap:7px 9px!important; padding-top:10px!important; padding-bottom:10px!important; align-items:end!important;}
.gs360-deadlines-active-filter-form > label {min-width:0!important; margin:0!important; gap:3px!important;}
.gs360-deadlines-active-filter-form > label > span {font-size:10px!important; line-height:1.2!important;}
.gs360-deadlines-active-filter-form select,.gs360-deadlines-active-filter-form input {height:34px!important; min-height:34px!important; padding-top:4px!important; padding-bottom:4px!important; font-size:12px!important; box-sizing:border-box!important; min-width:0!important; width:100%!important;}
.gs360-deadlines-active-filter-form input[type=date] {min-width:125px!important;}
@media(max-width:760px){.gs360-series-summary > article {padding-top:22px!important;min-height:104px!important}.gs360-deadlines-active-filter-form{gap:9px!important}}

/* CR-103.23.197.6 — Scadenze: due righe bilanciate e leggibili su desktop. */
@media (min-width: 1400px) {
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form {
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:13px 12px!important;padding:18px 20px!important;align-items:end!important;
 }
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label {min-width:0!important;grid-column:span 2;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-has-series > label:nth-of-type(7),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(6){grid-column:span 3;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-has-series > label:nth-of-type(8),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(7){grid-column:span 4;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(3),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(4){grid-column:span 3;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > .gs360-deadlines-filter-actions{grid-column:span 1!important;display:flex!important;flex-direction:column!important;gap:5px!important;align-items:stretch!important;justify-content:end!important;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > .gs360-deadlines-filter-actions a{min-width:0!important;width:100%!important;justify-content:center!important;padding:5px 3px!important;font-size:10px!important;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > .gs360-deadlines-filter-actions .gs360-today-jump span{display:none!important;}
}
body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label > span{display:block!important;font-size:11px!important;letter-spacing:.015em!important;line-height:1.35!important;margin-bottom:6px!important;white-space:normal!important;}
body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label > select,
body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label > input{width:100%!important;min-width:0!important;height:40px!important;box-sizing:border-box!important;font-size:12px!important;padding:7px 9px!important;text-overflow:ellipsis;}
@media (min-width: 901px) and (max-width:1399px){body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
@media (min-width: 601px) and (max-width:900px){body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media (max-width:600px){body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form{grid-template-columns:minmax(0,1fr)!important;}}


/* CR-103.23.197.7 — Layout filtri scadenze: due righe complete, DAL/AL affiancati.
   Override finale mirato: non modifica query, submit automatico o valori dei filtri. */
@media (min-width: 1100px) {
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form {
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:12px 12px!important;
  padding:16px 18px!important;
  align-items:end!important;
 }
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label {
  grid-column:span 2!important;grid-row:auto!important;min-width:0!important;
 }
 /* Riga 1: categoria, anno, responsabile, sede, serie (se presente), priorità. */
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-has-series > label:nth-of-type(-n+6) {grid-row:1!important;}
 /* Senza serie: i primi cinque campi si distribuiscono sulla prima riga. */
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(-n+5) {grid-row:1!important;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(1),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(3) {grid-column:span 3!important;}
 /* Riga 2: stato, ricerca, DAL, AL e azioni. */
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-has-series > label:nth-of-type(7),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(6) {grid-column:span 2!important;grid-row:2!important;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-has-series > label:nth-of-type(8),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(7) {grid-column:span 3!important;grid-row:2!important;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-has-series > label:nth-of-type(9),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-has-series > label:nth-of-type(10),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(8),
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form.gs360-no-series > label:nth-of-type(9) {grid-column:span 2!important;grid-row:2!important;}
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > .gs360-deadlines-filter-actions {
  grid-column:span 3!important;grid-row:2!important;
  display:flex!important;flex-direction:row!important;gap:8px!important;
  align-items:end!important;justify-content:flex-end!important;
 }
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > .gs360-deadlines-filter-actions a {
  width:auto!important;min-width:75px!important;min-height:40px!important;
  padding:6px 10px!important;font-size:11px!important;
 }
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label > span {
  font-size:11px!important;line-height:1.3!important;margin-bottom:6px!important;
 }
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label > select,
 body .gs360-company-shell #scadenze form.gs360-deadlines-active-filter-form > label > input {
  min-width:0!important;width:100%!important;height:40px!important;
 }
}

/* CR-103.23.199 — Report dettaglio: sei controlli su una riga desktop. */
@media(min-width:981px){
 body .gs360-company-shell #report .gs360-report-inline-filters{
  grid-template-columns:minmax(125px,1fr) minmax(125px,.9fr) minmax(175px,1.25fr) minmax(155px,1.1fr) minmax(80px,.5fr) auto!important;
  gap:8px!important;align-items:end!important;
 }
 body .gs360-company-shell #report .gs360-report-inline-filters > label{min-width:0!important;}
 body .gs360-company-shell #report .gs360-report-inline-filters select{width:100%!important;min-width:0!important;}
 body .gs360-company-shell #report .gs360-report-inline-actions{white-space:nowrap!important;}
}

/* CR-103.23.198 F1.1 — otto moduli su una riga nei desktop, larghezza fluida. */
@media (min-width:1100px){
 body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules.gs360-company-module-cards{
  display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important;width:100%!important;
 }
 body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules > a{min-width:0!important;width:auto!important;}
 body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules > a > article{min-width:0!important;width:100%!important;padding:9px 4px!important;}
 body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules h3{font-size:clamp(10px,.82vw,13px)!important;overflow-wrap:anywhere;}
 body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules p{font-size:clamp(8px,.65vw,10px)!important;max-width:100%!important;overflow-wrap:anywhere;}
}
@media (min-width:761px) and (max-width:1099px){
 body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules.gs360-company-module-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media (min-width:481px) and (max-width:760px){
 body .gs360-company-shell #dashboard .gs360-dashboard-primary-modules.gs360-company-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}


/* CR-103.23.198 F1.2 — cinque KPI Scadenze su una riga desktop, responsive su schermi ridotti. */
@media (min-width:1101px){
 body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
 body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis .gs360-company-kpi{min-width:0!important;padding-left:clamp(54px,5vw,82px)!important;padding-right:clamp(8px,1vw,18px)!important;}
}
@media (min-width:701px) and (max-width:1100px){
 body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:700px){
 body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
body .gs360-company-shell #scadenze .gs360-scadenze-state-kpis .is-kpi-serie-198 .gs360-mockup-icon{background:#eff6ff!important;color:#0f766e!important;box-shadow:inset 0 0 0 1px #99f6e4!important;}

/* CR-103.23.198 F1.3 — Elenco serie: standard filtri inline e paginazione */
#serie-elenco .gs360-series-198-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 22px}
#serie-elenco .gs360-series-198-kpi{background:#fff;border:1px solid #dbe5ee;border-radius:13px;padding:18px 20px;min-width:0;box-shadow:0 3px 12px rgba(18,40,74,.035)}
#serie-elenco .gs360-series-198-kpi span{display:block;font-size:12px;font-weight:700;color:#52647a}
#serie-elenco .gs360-series-198-kpi strong{display:block;font-size:28px;line-height:1.3;margin-top:6px;color:#0e2447}
#serie-elenco .gs360-series-204-panel{background:#fff;border:1px solid #dbe5ee;border-radius:14px;overflow:hidden}
#serie-elenco .gs360-series-204-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 20px;border-bottom:1px solid #e4ebf2}
#serie-elenco .gs360-series-204-panel-head h3{margin:0 0 3px;font-size:17px;color:#0e2447}
#serie-elenco .gs360-series-204-panel-head p{margin:0;font-size:12px;color:#62738a}
#serie-elenco .gs360-series-204-count{font-size:12px;font-weight:700;color:#0e2447;white-space:nowrap}
#serie-elenco .gs360-series-204-filters{display:grid;grid-template-columns:minmax(150px,2fr) minmax(120px,1fr) minmax(170px,1.35fr) minmax(105px,.85fr) auto;gap:10px;align-items:end;padding:16px 20px;background:#f8fbff;border-bottom:1px solid #e4ebf2}
#serie-elenco .gs360-series-204-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;line-height:1.25;font-weight:750;text-transform:uppercase;color:#53677f;min-width:0}
#serie-elenco .gs360-series-204-filters input,#serie-elenco .gs360-series-204-filters select{box-sizing:border-box;width:100%;height:38px;min-width:0;border:1px solid #cfdff0;border-radius:9px;background:#fff;padding:0 10px;font-size:12px;font-weight:500;color:#132d51;text-transform:none}
#serie-elenco .gs360-series-204-reset{height:38px;padding:0 14px;border:1px solid #cfdff0;border-radius:9px;background:#fff;color:#0c3769;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}
#serie-elenco .gs360-series-204-table-wrap{overflow-x:auto}
#serie-elenco .gs360-series-204-table{border-collapse:collapse;width:100%;min-width:650px;font-size:12px}
#serie-elenco .gs360-series-204-table th{background:#f4f8fc;text-align:left;color:#1a3355;font-size:11px;font-weight:750;padding:13px 16px;border-bottom:1px solid #dce5ef}
#serie-elenco .gs360-series-204-table td{padding:13px 16px;border-bottom:1px solid #e6edf4;color:#18314e}
#serie-elenco .gs360-series-204-table tbody tr:last-child td{border-bottom:0}
#serie-elenco .gs360-series-204-status{display:inline-block;border-radius:20px;padding:4px 10px;font-size:11px;font-weight:750;background:#e9f8ed;color:#117438}
#serie-elenco .gs360-series-204-status.is-sospesa{background:#fff4db;color:#9a5d05}
#serie-elenco .gs360-series-204-status.is-terminata{background:#fff0e6;color:#a44d11}
#serie-elenco .gs360-series-204-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;border-top:1px solid #e5edf5;font-size:12px;color:#53677f}
#serie-elenco .gs360-series-204-pagination>div{display:flex;align-items:center;gap:9px}
#serie-elenco .gs360-series-204-pagination button{border:1px solid #cfdfef;border-radius:9px;padding:8px 12px;background:#fff;color:#0c3769;font-size:12px;font-weight:700;cursor:pointer}
#serie-elenco .gs360-series-204-pagination button:disabled{opacity:.4;cursor:default}
#serie-elenco .gs360-series-204-empty{padding:24px;text-align:center;color:#5a6e84;font-size:13px}
#serie-elenco [hidden]{display:none!important}
@media(max-width:1000px){#serie-elenco .gs360-series-204-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#serie-elenco .gs360-series-204-reset{justify-self:start}}
@media(max-width:650px){#serie-elenco .gs360-series-198-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#serie-elenco .gs360-series-204-filters{grid-template-columns:1fr}#serie-elenco .gs360-series-204-pagination{flex-wrap:wrap}}
