﻿.rigaCercaAnagrafica {display: none;}


.divContatoriHome {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: flex-start;
}

.divContatoriHome .rigaContatore {
    flex: 1 1 auto;
    min-width: 90px;
    max-width: 350px;
    margin-bottom: 6px;
    margin-right: 6px;
}
.flexSeparator {
    flex-basis: 100%;
    height: 0;
}

.homeLayout0 .divMessaggiInterni .tabslide-tab-active,
.homeLayout0 .divTabSlideHome .tabslide-tab-active {
    min-height: 200px;
}
.homeLayout0 .widgetHome {
    max-height: 300px;
}

.homeLayout0 .loaderPratiche {
    font-size: .8em;
}

.rigaContatore a {
    background: #fff;
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    box-shadow: var(--wfShadow);
    padding: 10px 12px;
    min-height: 86px;
    display: grid;
    gap: 5px;
    box-sizing: border-box;
}

.rigaContatore a .lblDes {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.45px;
    color: #617286;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.rigaContatore a .lblVal {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #bb0000;
    display: flex;
    align-items: center;
}

.rigaContatore a .lblDes3 {
    font-size: 12px;
    font-weight: 600;
    color: #617286;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.rigaContatorePratiche a .lblVal {
    color: #e9730c;
}
.rigaContatoreLead a .lblVal {
    color: #107e3e;
}

.widgetFteDaInviare a {
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #81c784;
}

.widgetFteDaInviare a .lblDes,
.widgetFteDaInviare a .lblDes3 {
    color: #1b5e20;
}

.widgetFteDaInviare a .lblVal {
    color: #2e7d32;
}

.widgetFteDaInviare a:hover {
    background: linear-gradient(180deg, #dff3e1 0%, #b7dfba 100%);
    border-color: #66bb6a;
}

.widgetFteDaInviare.hasIssues a {
    background: linear-gradient(180deg, #fef3c7 0%, #fbbf24 100%);
    border-color: #f59e0b;
}

.widgetFteDaInviare.hasIssues a .lblDes,
.widgetFteDaInviare.hasIssues a .lblDes3 {
    color: #92400e;
}

.widgetFteDaInviare.hasIssues a .lblVal {
    color: #78350f;
}

.widgetFteDaInviare.hasIssues a:hover {
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
    border-color: #d97706;
}

.widgetFtePendenti a {
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #81c784;
}

.widgetFtePendenti a .lblDes,
.widgetFtePendenti a .lblDes3 {
    color: #1b5e20;
}
.widgetFtePendenti a .lblDes3 {
    color: #543516;
}
.widgetFtePendenti a .lblVal {
    color: #2e7d32;
}

/* Widget Fatture da Convalidare - numero blu */
.widgetFteDaConvalidare a .lblVal {
    color: var(--wfToolbarColor);
}

.widgetFtePendenti a:hover {
    background: linear-gradient(180deg, #dff3e1 0%, #b7dfba 100%);
    border-color: #66bb6a;
}

.widgetFtePendenti.hasIssues a {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    border-color: #b91c1c;
}

.widgetFtePendenti.hasIssues a .lblDes,
.widgetFtePendenti.hasIssues a .lblDes3,
.widgetFtePendenti.hasIssues a .lblVal {
    color: #ffffff;
}

.widgetFtePendenti.hasIssues a:hover {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    border-color: #991b1b;
}

.bloccoPulsantiHome,
.rigaCercaAnagrafica {
    width: 100%;
}


.divContatori .bloccoSottoContatori
{
    height: 20px;
    float: left;
    width: 100%;
    margin-top: 10px;
}



.widgetHome {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: top;    
 }


.divHPBottom {
    vertical-align: top;
    padding-top: 4px;
    box-sizing: border-box;
 }


.divContatori #txtRichiamaRagSoc {width: 100%;padding-bottom: 12px;padding-top: 12px;}
#loaderAttivita {
    padding-left: 10px;
    padding-right: 10px;
}
.rigaMessaggioInterno
{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 2px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 5px;
    border-radius: 5px;
    color: #214161;    
    border: 1px solid #bac9d7;
}
.rigaMessaggioInterno > div {
    flex: 0 0 auto; 
}
.rigaMessaggioInterno .divMsgI-Contenitore {
    flex: 1 1 auto;    
}


.rigaMessaggioInterno:hover
{
    cursor: pointer;
    background-color: #f1f5f8;
}

.rigaMessaggioInterno:hover .wfAvatar {
  opacity: 1;
}


.divMsgI-Messaggio {
    word-break: break-all;
    font-weight: normal;
    color: #262d47;
    font-size: .9em;
    max-height: 44px;
    overflow: hidden;
    opacity: 0.8;
}

.divMsgI-Mittente {
    display: flex;
    justify-content: space-between;
    font-weight: normal;
    color: #000829;
}

/* .divMsgI-content {margin-left:30px;} */
.rigaMessaggioInternoU .divMsgI-Mittente
{
    font-weight: bold;
}

.rigaMessaggioInternoU .divMsgI-Messaggio {
    font-weight: 500;
    opacity: 1;
}

.rigaMessaggioInternoR
{
    font-style: italic;
}

.rigaMessaggioInterno .icon
{
    width: 16px;
}
.rigaMessaggioInterno .iconDelete {
    width: 16px;
}


.divMsgI-Mittente .dataMessaggioInterno {
    display: inline-block;
    margin-right: 5px;
    font-size: .8em;
    color: #0072c6;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: right;
}

.divPulsantiMsgI
{
    padding-top: 6px;
}
.divPulsantiMsgI .pulsante
{
    margin-right: 4px;
}

.tooltipMessaggioInteno div
{
    display: block;
    float: left;
    width: 100%;
    padding-bottom: 2px;
}
.tooltipMessaggioInteno .lblTit, .tooltipMessaggioInteno .lblVal
{
    display: inline-block;    
}
.tooltipMessaggioInteno .lblTit
{
    width: 60px;
    font-weight: bold;
}
.tooltipMessaggioInteno .lblStatusPratica
{
    color: Red;
}


.bloccoUtentiTitolo, .bloccoRepartiTitolo
{
    font-weight: bold;
    font-size: 1.2em;
    padding: 2px;
    padding-left: 1px;
}
.rigaUtentiReparti
{
    margin-bottom: 2px;
    vertical-align: middle;
}
.rigaUtentiReparti .spanCheckbox, .rigaUtentiReparti .spanTesto
{
    padding: 1px;
    display: inline-block;
}

.rigaUtentiReparti .spanCheckbox
{
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

.rigaUtentiReparti .spanTesto
{
    margin-left: 3px;
}

#titAppEsterna {font-weight:bold;color:Red;}


/* Widget non autorizzati */
.wf-widget-unauthorized {
    background: #f8f9fb;
    opacity: 0.75;
}

.wf-widget-unauthorized .wf-drag-handle {
    visibility: hidden;
    pointer-events: none;
}

.wf-widget-badge-noauth {
    display: inline-block;
    margin-top: 3px;
    padding: 1px 7px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #c45a00;
    background: #fff3e6;
    border: 1px solid #f5c896;
    border-radius: 10px;
    align-self: flex-start;
    line-height: 1.6;
}

.wf-widget-toggle input:disabled+.wf-toggle-slider {
    background-color: #e0e5ea;
    cursor: not-allowed;
    opacity: 0.5;
}

.wf-widget-toggle input:disabled+.wf-toggle-slider::before {
    background: #f0f2f4;
}

.wf-widget-btn-container {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

#btnWidgetPanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 86px;
    min-width: 70px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1.5px dashed #b0c0cf;
    border-radius: 8px;
    box-shadow: var(--wfShadow);
    color: #7a9bb5;
    cursor: pointer;
    font-family: var(--wfFont);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
    outline: none;
    user-select: none;
}

#btnWidgetPanel:hover,
#btnWidgetPanel:focus {
    background: var(--wfBgColorHover);
    border-color: var(--wfToolbarColor);
    color: var(--wfToolbarColor);
    box-shadow: 0 4px 16px rgba(0, 66, 114, 0.13);
}

#btnWidgetPanel:active {
    background: #dceeff;
}

#btnWidgetPanel .wf-widget-btn-icon {
    font-size: 22px;
    line-height: 1;
}

#btnWidgetPanel .wf-widget-btn-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#wfWidgetBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 36, 58, 0.35);
    z-index: 998;
    animation: wfFadeIn 0.2s ease;
}

@keyframes wfFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#wfWidgetPanel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 370px;
    max-width: 96vw;
    background: #ffffff;
    border-left: 1px solid var(--wfSectionHeaderBorderColor);
    box-shadow: -6px 0 32px rgba(16, 36, 58, 0.14);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    animation: wfSlideIn 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#wfWidgetPanel.wf-panel-open {
    display: flex;
}

@keyframes wfSlideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.wf-widget-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 13px;
    background: linear-gradient(180deg, #e5e9ed 0%, #e2e5e9 100%);
    border-bottom: 1px solid var(--wfSectionHeaderBorderColor);
    flex: 0 0 auto;
}

.wf-widget-panel-header h3 {
    margin: 0;
    font-family: var(--wfFont);
    font-size: 14px;
    font-weight: 700;
    color: var(--wfSectionHeaderColor);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-widget-panel-header h3 .wf-panel-title-icon {
    color: var(--wfToolbarColor);
    font-size: 15px;
}

.wf-widget-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #617286;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    outline: none;
}

.wf-widget-close-btn:hover {
    background: #d8e0e8;
    color: var(--wfSectionHeaderColor);
}

.wf-widget-panel-hint {
    padding: 9px 18px 8px;
    font-size: 11.5px;
    color: #7a8fa3;
    background: #f7f9fb;
    border-bottom: 1px solid #eaeef2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-widget-panel-hint .fa {
    color: #a0b3c5;
}

.wf-widget-panel-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 14px;
    background: var(--wfBodyBackgroundColor);
}

#wfWidgetList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cfd9e4;
    border-radius: 7px;
    padding: 9px 12px;
    box-shadow: 0 2px 6px rgba(16, 36, 58, 0.05);
    transition: box-shadow 0.15s, border-color 0.15s;
    cursor: default;
    box-sizing: border-box;
}

.wf-widget-item:not(.wf-widget-base) {
    cursor: grab;
}

.wf-widget-item:not(.wf-widget-base):hover {
    border-color: #a8c0d6;
    box-shadow: 0 3px 10px rgba(16, 36, 58, 0.1);
}

.wf-widget-item.ui-sortable-helper {
    box-shadow: 0 8px 24px rgba(0, 66, 114, 0.18);
    border-color: var(--wfToolbarColor);
    opacity: 0.95;
    cursor: grabbing;
}

.wf-widget-item.ui-sortable-placeholder {
    background: #e8f0f8;
    border: 2px dashed #a8c0d6;
    box-shadow: none;
    visibility: visible !important;
}

.wf-drag-handle {
    flex: 0 0 18px;
    text-align: center;
    color: #b0bfcc;
    font-size: 14px;
    line-height: 1;
    cursor: grab;
    transition: color 0.15s;
}

.wf-widget-item:not(.wf-widget-base):hover .wf-drag-handle {
    color: #7a9bb5;
}

.wf-widget-item[data-key="wf_separator1"],
.wf-widget-item[data-key="wf_separator2"],
.wf-widget-item[data-key="wf_separator3"] {
    background: #dce4ea;
}
.wf-widget-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wf-widget-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #2b4662;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-widget-desc {
    font-size: 11px;
    color: #7a8fa3;    
}

.wf-widget-badge-base {
    display: inline-block;
    margin-top: 3px;
    padding: 1px 7px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--wfToolbarColor);
    background: #dceeff;
    border: 1px solid #b4d0eb;
    border-radius: 10px;
    align-self: flex-start;
    line-height: 1.6;
}

.wf-widget-toggle {
    flex: 0 0 auto;
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.wf-widget-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.wf-toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #c5d0da;
    border-radius: 22px;
    transition: background-color 0.22s;
}

.wf-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s;
}

.wf-widget-toggle input:checked+.wf-toggle-slider {
    background-color: #107e3e;
}

.wf-widget-toggle input:checked+.wf-toggle-slider::before {
    transform: translateX(18px);
}

.wf-widget-toggle input:focus+.wf-toggle-slider {
    outline: 2px solid var(--wfBgColorHover);
    outline-offset: 1px;
}

.wf-widget-base .wf-drag-handle {
    visibility: hidden;
    pointer-events: none;
}

.wf-widget-base {
    background: #f9fbfd;
    border-color: #e2eaf1;
}

.wf-widget-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: #f4f7fa;
    border-top: 1px solid var(--wfSectionHeaderBorderColor);
    flex: 0 0 auto;
}

.wf-widget-panel-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--wfFont);
    transition: background 0.15s, border-color 0.15s;
    outline: none;
}

.wf-widget-panel-footer .btn-primary {
    background: var(--wfToolbarColor);
    color: #ffffff;
    border-color: var(--wfToolbarColor);
}

.wf-widget-panel-footer .btn-primary:hover {
    background: #005599;
    border-color: #005599;
}

.wf-widget-panel-footer .btn-default {
    background: #ffffff;
    color: #2b4662;
    border-color: #c4cfd8;
}

.wf-widget-panel-footer .btn-default:hover {
    background: #eaeff4;
}

#wfWidgetSaveMsg {
    font-size: 12px;
    color: #107e3e;
    margin-right: auto;
    display: none;
}

#wfWidgetSaveMsg.wf-msg-error {
    color: #bb0000;
}

@media (max-width: 480px) {
    #wfWidgetPanel {
        width: 100%;
    }
    #btnWidgetPanel {
        display: none;
    }
}
/* *********** Layout differenti per la pagina utente ************************/

.homeLayout0 .wfContenuto {
    display: grid;
    grid-template-columns: 4fr 4fr 2fr;
    grid-template-rows: minmax(0, auto) auto;
    gap: 10px; /* opzionale */
}


.homeLayout0 .divHPBottom {
  grid-column: 1 / -1; /* da prima a ultima colonna */
}


.homeLayout4 .divCorpoPagina {
    display: flex;
}

.homeLayout4 .wfContenuto {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    grid-template-rows: max-content minmax(0, 1fr);
    gap: 10px; /* opzionale */
    flex: 1 1 auto;
}

.homeLayout4 #contentMessaggiInterni {
    background-color: #f9f9f9;
}


.homeLayout4 .divMsgI-Messaggio {
    max-height: 70px;
    overflow: auto;
    scrollbar-width: none;
}

.homeLayout4 .divMsgI-Messaggio:hover {
    max-height: 130px;
    overflow: auto;
    scrollbar-width: thin;
    opacity: 1;
}

.homeLayout4 .divContatori {
    grid-row: 1; 
    grid-column: 1;
}
.homeLayout4 .divHPBottom {
  grid-row: 2; /* seconda riga */
  grid-column: 1; /* prima colonna */
}

.homeLayout4 .divMessaggiInterni {
  grid-row: 1 / -1; /* da prima a ultima riga */
  grid-column: 2;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.homeLayout4 .tabslide-buttons_bloccoSchedeHome {
    display: none;    
}

.homeLayout4 .rigaMessaggioInterno {
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 22px;
    text-overflow: ellipsis;
    font-size: 1.1em;    
    margin: 12px;
    background-color: #ffffff;
}

.homeLayout4 .rigaMessaggioInterno .wfAvatar {
    margin-left: 6px;
}

.homeLayout4  #tabMessaggiInterni {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0;
    right: 0;
}

.homeLayout0 #txtDestinatarioMessaggiInterni, .homeLayout3 #txtDestinatarioMessaggiInterni {width: 200px;} 


        

@media screen and (max-width: 950px) { 
    .homeLayout0 .wfContenuto {
        grid-template-columns: auto;
        grid-template-rows: auto;
    }
}

@media screen and (min-width: 810px) {    
    .homeLayout4 .rigaCercaAnagrafica {display: none;}
}

@media screen and (max-width: 1300px) { 
    .homeLayout4 #txtDestinatarioMessaggiInterni {width: 200px;} 
}


@media screen and (min-width: 810px) {  /* si aggancia agli stili che cambiano a 810 su styleMediaQuery.css */
    
    .homeLayout4 .divCorpoPagina , .homeLayout4 .centerToolbarWF {width:100%;box-sizing: border-box;}    
}

@media screen and (min-width: 1200px) { 
    .homeLayout4 #txtDestinatarioMessaggiInterni {width: 200px;} 
}


@media screen and (min-width: 1620px) {
    .divCorpoPagina {
        width: 90%;
        max-width: 2100px;
        margin: 0 auto;
    }
    .homeLayout4 .widgetHome  .bloccoPulsanti .button {
        background-position: 8px center;
    }

    .homeLayout4 .widgetHome .bloccoPulsanti .buttonText {
        padding-left: 30px;
        padding-right: 6px;        
    }
}

/* WIDGET FATTURATO BI - STILE PREMIUM */
.rigaContatoreBI a {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #d4dce6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    padding: 10px 12px;
}

.rigaContatoreBI a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.rigaContatoreBI a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    border-color: #b8c5d6;
}

.rigaContatoreBI a:hover::before {
    opacity: 1;
}

.rigaContatoreBI .lblDes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #4a5f7a;
    margin-bottom: 4px;
}

.rigaContatoreBI .iconBI {
    opacity: 0.7;
}

/* ===================================================================
   WIDGET SETTINGS BUTTON & PARAMS FORM
   =================================================================== */

/* Container per toggle e pulsante settings */
.wf-widget-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* Pulsante settings (gear icon) */
.wf-widget-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    padding: 4px 2px;
    cursor: pointer;
    color: #7a8fa3;
    font-size: 20px;
    line-height: 1;
    transition: all 0.18s ease;
    outline: none;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: 8px;
}

.wf-widget-settings-btn:hover {
    background: #eaeff4;
    border-color: #a8c0d6;
    color: #2b4662;
}

.wf-widget-settings-btn:active {
    background: #d8e0e8;
    transform: scale(0.96);
}

.wf-widget-settings-btn:focus {
    outline: 2px solid var(--wfBgColorHover);
    outline-offset: 2px;
}

.wf-widget-settings-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e2eaf1;
    color: #b0bfcc;
}

.wf-widget-settings-btn:disabled:hover {
    background: transparent;
    border-color: #e2eaf1;
    color: #b0bfcc;
    transform: none;
}

.wf-widget-settings-btn i {
    pointer-events: none;
    display: block;
}

/* Form parametri widget nel dialog */
.widgetParams {
    padding: 18px 20px;
    background: var(--wfBodyBackgroundColor);
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 10px;
}

.widgetParams label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--wfFont);
    font-size: 12px;
    font-weight: 600;
    color: #2b4662;
    letter-spacing: 0.2px;
}

.widgetParams label .required {
    color: #bb0000;
    margin-left: 2px;
}

.widgetParams .param {
    display: block;
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #cfd9e4;
    border-radius: 5px;
    font-family: var(--wfFont);
    font-size: 13px;
    color: #2b4662;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.widgetParams .param:hover {
    border-color: #a8c0d6;
}

.widgetParams .param:focus {
    border-color: #107e3e;
    box-shadow: 0 0 0 3px rgba(16, 126, 62, 0.1);
}

.widgetParams .param::placeholder {
    color: #b0bfcc;
    opacity: 1;
}

.widgetParams .param:disabled {
    background: #f4f7fa;
    color: #7a8fa3;
    cursor: not-allowed;
    border-color: #e2eaf1;
}

/* Checkbox nel form parametri */
.widgetParams input[type="checkbox"].param {
    width: auto;
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 0;
    vertical-align: middle;
    cursor: pointer;
}

.widgetParams input[type="checkbox"].param:focus {
    box-shadow: 0 0 0 2px rgba(16, 126, 62, 0.2);
}

/* Select nel form parametri */
.widgetParams select.param {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a8fa3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    cursor: pointer;
}

.widgetParams select.param:disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b0bfcc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Textarea nel form parametri */
.widgetParams textarea.param {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

/* Hint text nei form parametri */
.widgetParams .param-hint {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #7a8fa3;
    font-style: italic;
}



/* Stati validazione */
.widgetParams .param.error {
    border-color: #bb0000;
    background: #fff5f5;
}

.widgetParams .param.error:focus {
    border-color: #bb0000;
    box-shadow: 0 0 0 3px rgba(187, 0, 0, 0.1);
}

.widgetParams .param-error-msg {
    display: block;
    margin-top: -12px;
    margin-bottom: 16px;
    font-size: 11px;
    color: #bb0000;
    font-weight: 600;
}

.rigaContatoreBI .lblValBI {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #1a1a2e;
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 6px;
}

.rigaContatoreBI .currencySymbol {
    font-size: 0.55em;
    font-weight: 700;
    color: #0078d4;
    opacity: 0.85;
    margin-right: 2px;
}

.rigaContatoreBI .mainValue {
    letter-spacing: -0.5px;
}

.rigaContatoreBI .decimals {
    font-size: 0.5em;
    font-weight: 600;
    color: #617286;
    opacity: 0.7;
}

.trendIndicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 1px solid;
    width: fit-content;
}

.trendPositive {
    background: linear-gradient(135deg, #e6f7ed 0%, #f0fdf4 100%);
    border-color: #86d6a8;
    color: #0d753d;
}

.trendNegative {
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
    border-color: #f5a5a5;
    color: #c53030;
}

.trendArrow {
    animation: trendPulse 2s ease-in-out infinite;
}

.trendPositive .trendArrow {
    color: #16a34a;
}

.trendNegative .trendArrow {
    color: #dc2626;
}

@keyframes trendPulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-2px); opacity: 0.8; }
}

.trendArrowDown {
    animation: trendPulseDown 2s ease-in-out infinite;
}

@keyframes trendPulseDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(2px); opacity: 0.8; }
}

.trendPercentage {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.trendDelta {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.75;
}

.rigaContatoreBI .lblComparison {
    font-size: 10px;
    font-weight: 500;
    color: #617286;
    margin-bottom: 3px;
}

.rigaContatoreBI .lblComparison strong {
    font-weight: 700;
    color: #4a5f7a;
}

.progressBar {
    width: 100%;
    height: 3px;
    background: #e5ebf1;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.progressFill {
    height: 100%;
    background: linear-gradient(90deg, #0078d4 0%, #00bcf2 100%);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rigaContatoreFatturato a .lblValBI {
    color: #0078d4;
}

.rigaContatoreFatturato a::before {
    background: linear-gradient(180deg, #0078d4 0%, #005a9e 100%);
}

@media (max-width: 768px) {
    .rigaContatoreBI .lblValBI {
        font-size: 26px;
    }
    
    .rigaContatoreBI a {
        min-height: 92px;
        padding: 12px 14px;
    }
    
    .trendPercentage {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rigaContatoreBI a,
    .trendArrow,
    .progressFill {
        animation: none;
        transition: none;
    }
}

/* ====================================================
   HOME MOBILE UNIFICATA — max-width: 900px
   I tab vengono riorganizzati via JS in #wfMobileUnifiedTabs
   I container originali vengono nascosti
   ==================================================== */
@media (max-width: 900px) {
    /* Nasconde i container tab originali (svuotati da JS) */
    
    /* Container unificato a piena larghezza */
    #wfMobileUnifiedTabs {
        width: 100%;
        box-sizing: border-box;
        margin-top: 8px !important;
    }

    /* Reduce gap layout */
    .homeLayout0 .wfContenuto,
    .homeLayout4 .wfContenuto,
    .homeLayout3 .wfContenuto,
    .homeLayout5 .wfContenuto {
        gap: 6px;
    }
}