﻿.newborder {
    border: 2px solid black !important;
    outline: 6px solid white !important;
    outline-offset: 0px !important;
}
/* 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;
}

/* 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;
}