﻿.newborder {
    border: 2px solid black !important;
    outline: 6px solid white !important;
    outline-offset: 0px !important;
}

/* Il contenitore principale */
.apm-group-separator {
    flex: 0 0 98% !important;
    margin: 35px 0 15px 0 !important;
    padding: 12px 18px;
    background-color: #e0e7ff; /* Azzurro polvere più visibile */
    border-radius: 6px;
    border-left: 5px solid #2271b1;
    box-shadow: inset 0 0 0 1px rgba(34, 113, 177, 0.1); /* Sottile bordo interno */
}

    .apm-group-separator h4 {
        color: #1e3a8a; /* Blu scuro per il testo */
    }

    .apm-group-separator .dashicons {
        background: #ffffff; /* Icona su fondo bianco per farla "staccare" */
        padding: 4px;
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
/* Container dello step label */
.apm-wizard-container .step-label {
    display: block;
    line-height: 1.2;
    font-size: 13px;
}
 
/* Badge dinamico per (Aggiornata) o (Importata) nel wizard */
.apm-wizard-container .step-label span.status-tag {
    display: block; /* Va a capo per non allargare lo step */
    font-size: 10px;
    font-weight: bold;
    color: #2271b1;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.8;
}

/* Titolo della pagina H1 */
.apm-wizard-container .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: #000;
    margin-bottom: 40px;
    letter-spacing: -1px;
}
.apm-wizard-container .step-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a; /* Blu scurissimo quasi nero */
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Sposta eventuali badge a destra */
}

    /* Stilizziamo la parte tra parentesi (Aggiornata/Importata) */
.apm-wizard-container .step-title span.status-badge {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #dcfce7; /* Verde chiaro */
    color: #166534; /* Verde scuro */
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 15px;
}
/* Stile per la label che fa da pulsante */
.apm-upload-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f6f7f7;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.4;
}

    .apm-upload-label:hover {
        background-color: #f0f6fb;
        border-color: #135e96;
        color: #135e96;
    }

/* Stile per il pulsante di invio (Primary) */
.apm-upload-trigger {
    padding: 8px 16px;
    background-color: #2271b1;
    color: white;
    border: 1px solid #135e96;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

    .apm-upload-trigger:disabled {
        background-color: #a7aaad;
        border-color: #8c8f94;
        cursor: not-allowed;
        opacity: 0.7;
    }

.apmdocempty{
    color: gray;

}
.apmdocpending{
    color:darkgoldenrod;
}
.apmdocrejected {
    color: red;
}
.apmdocvalid{
    color: green;
}
/* Container dei bottoni */
.apm-wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

/* Stile base comune per entrambi i bottoni */
.apm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    text-decoration: none;
    outline: none;
}

/* Tasto INDIETRO (Stile Secondario) */
.apm-btn-prev {
    background-color: #ffffff;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

    .apm-btn-prev:hover {
        background-color: #f8fafc;
        color: #1e293b;
        border-color: #94a3b8;
    }

    .apm-btn-prev .dashicons {
        font-size: 17px;
        width: 17px;
        height: 17px;
    }

/* Tasto AVANTI (Stile Primario / Call to Action) */
.apm-btn-next {
    background-color: #2271b1; /* Blu standard WordPress */
    color: #ffffff;
    border: 1px solid #2271b1;
    padding: 12px 32px; /* Leggermente più grande per enfasi */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .apm-btn-next:hover {
        background-color: #135e96;
        border-color: #135e96;
        box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
        transform: translateY(-1px);
    }

    .apm-btn-next:active {
        transform: translateY(0);
    }

    .apm-btn-next .dashicons {
        font-size: 19px;
        width: 19px;
        height: 19px;
    }

/* Responsive per dispositivi mobili */
@media (max-width: 480px) {
    .apm-wizard-footer {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .apm-btn {
        width: 100%;
        justify-content: center;
    }
}


/*firma*/
/* --- Box Principale della Firma SMS --- */
.apm-signature-sms-box {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Ombra morbida per profondità */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .apm-signature-sms-box:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Effetto al passaggio del mouse */
        transform: translateY(-2px);
    }

/* --- Header del Box --- */
.apm-signature-sms-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f4f7;
}

.apm-signature-sms-icon {
    font-size: 24px;
    margin-right: 15px;
    background: #e1f5fe; /* Sfondo chiaro per l'icona */
    padding: 10px;
    border-radius: 50%;
    line-height: 1;
}

.apm-signature-sms-header h4 {
    margin: 0;
    color: #1a202c;
    font-size: 18px;
    font-weight: 700;
}

/* --- Contenuto del Box --- */
.apm-signature-sms-content p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

/* --- Evidenziazione del Numero di Telefono --- */
.apm-signature-sms-number {
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
}

    .apm-signature-sms-number strong {
        font-size: 20px;
        letter-spacing: 1px;
        color: #0073aa; /* Colore primario WordPress */
        font-family: 'Courier New', Courier, monospace; /* Font monospace per i numeri */
    }

/* --- Area dell'Azione --- */
.apm-signature-sms-action {
    text-align: center;
}

/* --- Il Pulsante "Brillante" --- */
.apm-button.apm-button-brilliant {
    background: linear-gradient(135deg, #0073aa 0%, #00a0d2 100%); /* Gradiente vibrante */
    color: #ffffff;
    border: none;
    border-radius: 6px; /* Bordi molto arrotondati */
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
}

    .apm-button.apm-button-brilliant:hover {
        background: linear-gradient(135deg, #006699 0%, #008cc1 100%); /* Gradiente scuro al hover */
        box-shadow: 0 6px 15px rgba(0, 115, 170, 0.4);
        transform: translateY(-1px);
    }

    .apm-button.apm-button-brilliant:active {
        transform: translateY(1px); /* Effetto "pressione" */
        box-shadow: 0 2px 5px rgba(0, 115, 170, 0.3);
    }

/* --- Icona dentro il Pulsante --- */
.apm-button.apm-button-with-icon .apm-button-icon {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
}

    .apm-button.apm-button-with-icon .apm-button-icon svg {
        width: 100%;
        height: 100%;
    }

    /*tasti rimozione fase*/
/* Pulsante Rimuovi Smart */
.apm-btn-danger {
    border-color: #d63638 !important;
    color: #d63638 !important;
    background: #fff !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 30px;
    padding: 0 !important;
}

    .apm-btn-danger:hover {
        background: #d63638 !important;
        color: #fff !important;
        box-shadow: 0 2px 4px rgba(214, 54, 56, 0.3);
    }

    .apm-btn-danger .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    /* tabella fasi*/

/* Configurazione Tabella Fasi */
.apm-steps-table {
    width: 100%;
    border-collapse: separate; /* Fondamentale per il distanziamento */
    border-spacing: 0 10px; /* 0 orizzontale, 10px verticale tra le righe */
    background: #f0f2f5; /* Sfondo grigio per far risaltare il bianco delle righe */
    padding: 10px;
    border-radius: 8px;
}

    .apm-steps-table tr {
        background-color: transparent;
    }

    .apm-steps-table td {
        background-color: #fff; /* Sfondo bianco della riga */
        padding: 15px 10px;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        transition: transform 0.2s ease;
    }

        /* Arrotondiamo gli angoli della riga (solo prima e ultima cella) */
        .apm-steps-table td:first-child {
            border-left: 1px solid #e2e8f0;
            border-top-left-radius: 6px;
            border-bottom-left-radius: 6px;
        }

        .apm-steps-table td:last-child {
            border-right: 1px solid #e2e8f0;
            border-top-right-radius: 6px;
            border-bottom-right-radius: 6px;
        }

    /* Effetto hover per dare profondità */
    .apm-steps-table tr:hover td {
        background-color: #fafafa;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

.apm-builder-actions{
    padding:10px;
}

/* testate colonne fasi*/
/* Stile Testata Smart */
.apm-steps-thead th {
    background: transparent !important;
    border: none !important;
    padding: 15px 10px !important;
    color: #64748b !important; /* Grigio ardesia moderno */
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.apm-steps-thead .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: text-bottom;
    color: #94a3b8;
}

/* Gestione larghezze colonne */
.col-order {
    width: 80px;
}

.col-lock, .col-pdf-toggle {
    width: 100px;
    text-align: center;
}

.col-actions {
    width: 50px;
}

.col-config {
   /* width: 120px;*/
    text-align: center;
    width: 600px !important;
}
.asterisco {
    display: flex;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom:  0px;
    font-size: 12px;
}
/* Allineamento icone nei titoli */
.text-center {
    text-align: center !important;
}
/* bottoni piccoli per la delete dei dettagli*/
.remove-validate-row,
.remove-payment-row,
.remove-field,
.remove-upload-label,
.remove-pagopa {
    line-height: normal !important;
    color: darkred !important;
    border-color: darkred !important;
    background: #FFEEEE !important;
}

/* icona menu*/
.toplevel_page_apm_main_menu div img {
    max-width: 24px !important;
    padding-left: 4px !important;
    padding-top: 5px !important;
    margin-bottom: 4px !important;
}

/* Container dell'accordion */
.apm-accordion-container {
    position: relative;
    width: 100%;
}

/* Il pulsante trigger */
.apm-accordion-trigger {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: #f6f7f7 !important;
    border-color: #dcdcde !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

    .apm-accordion-trigger:hover {
        background: #fff !important;
        border-color: #0073aa !important;
        color: #0073aa !important;
    }

    /* Ruota la freccia quando attivo */
    .apm-accordion-trigger.is-open .dashicons {
        transform: rotate(180deg);
    }

/* L'area dei campi */
.apm-accordion-content {
    background: #fff;
    border: 1px solid #dcdcde;
    border-top: none;
    padding: 15px;
    margin-top: -1px;
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.colonna-config{
    width:600px !important;
}
.apm-step-conditional{
    display:none !important;
}

/* L'icona del punto di domanda */
.apm-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #0073aa; /* Blu WordPress */
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: help;
    position: relative;
}

    /* Il fumetto (Tooltip) */
    .apm-tooltip-icon::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%; /* Appare sopra l'icona */
        left: 50%;
        transform: translateX(-50%);
        background-color: #32373c;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: normal;
        white-space: normal; /* Permette il ritorno a capo */
        width: 200px;
        text-align: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s, visibility 0.2s;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* La freccetta del fumetto */
    .apm-tooltip-icon::before {
        content: "";
        position: absolute;
        bottom: 110%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #32373c transparent transparent transparent;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s, visibility 0.2s;
        z-index: 100;
    }

    /* Mostra al passaggio del mouse o al click (focus) */
    .apm-tooltip-icon:hover::after,
    .apm-tooltip-icon:hover::before {
        visibility: visible;
        opacity: 1;
    }

.apm-title-group {
    display: flex;
    align-items: center; /* Centra verticalmente l'icona col testo */
    gap: 10px; /* Spazio tra testo e icona */
    margin-bottom: 0px;
}
.apm-badge-required {
    font-size: 10px; /* Un filo più piccolo */
    color: #b32d2e; /* Un rosso più scuro e "istituzionale" */
    font-weight: 400;
    margin-left: 6px;
    letter-spacing: 0.2px;
    vertical-align: middle;
}

    .apm-badge-required::before {
        content: "•";
        margin-right: 3px;
        font-size: 14px; /* Il puntino leggermente più grande lo rende più iconico */
        vertical-align: sub;
    }