/* NF (PATCH-FS-0002): selettore modalita' di compilazione, sezione e popup
   del pacchetto cliente nel wizard di setup. Integra la palette di
   nf-setup.css (FS-0001). */

/* ── raffinamenti header/throbber (override di nf-setup.css e styles.css) ── */

/* barra vendor: brand staccato dal bordo sinistro, tagline dal destro */
.nf-vendor-bar {
    padding: 10px 36px;
}

/* wordmark SVG colorato "NetForges" al posto del testo, vicino al globo;
   il PNG interno al wordmark ha un filo di aria sotto: il nudge di 2px lo
   ricentra otticamente rispetto al globo */
.nf-vendor-brand {
    gap: 7px;
    align-items: center;
}

.nf-vendor-wordmark {
    height: 15px;
    width: auto;
    display: block;
    position: relative;
    top: 2px;
}

/* versione prodotto in evidenza sotto il logo: badge NfCommerce vX.Y.Z
   (fonte NfSetup.json Product.Version = file VERSION di root) + core muto */
.nf-version-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nf-version-badge {
    display: inline-block;
    background: rgba(56, 189, 248, .18);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, .45);
    border-radius: 999px;
    padding: 2px 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.nf-version-badge em {
    font-style: normal;
    font-weight: 500;
    color: #7dd3fc;
    margin-left: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.nf-version-core {
    color: #94a3b8;
    font-size: 12px;
}

/* logo prodotto NfCommerce piu' grande (upstream: 50px) */
.logo {
    height: 84px;
    background-size: auto 84px;
}

/* clessidra di setup centrata VERTICALMENTE nella viewport (upstream:
   curtain-content assoluto alto nel wrapper + padding fisso 250px) */
.throbber .curtain-content {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.throbber .curtain-content div {
    padding: 0;
}

/* ── selettore modalita' compilazione (manuale/demo/pacchetto) ──────────── */
.nf-fillmode-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
    padding: 10px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.nf-fillmode-label {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.nf-fillmode-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nf-fillmode-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
}

.nf-fillmode-option:hover {
    border-color: #0369a1;
}

.nf-fillmode-option:has(input:checked) {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff;
}

.nf-fillmode-option input {
    margin: 0;
    accent-color: #ffffff;
}

.nf-fillmode-bar .nf-hint {
    flex-basis: 100%;
    margin: 0;
}

/* ── sezione upload ─────────────────────────────────────────────────────── */
.nf-cust-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nf-cust-row .form-control-file {
    width: auto;
    flex: 1 1 260px;
}

.nf-btn-cust {
    background-color: #0369a1;
    color: #ffffff;
    white-space: nowrap;
}

.nf-btn-cust:hover:not(:disabled) {
    background-color: #075985;
    color: #ffffff;
}

.nf-cust-status {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* ── popup modale ───────────────────────────────────────────────────────── */
.nf-cust-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.nf-cust-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}

.nf-cust-modal-dialog {
    position: relative;
    margin: 6vh auto;
    width: min(760px, 94vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.nf-cust-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #0f172a;
    color: #ffffff;
}

.nf-cust-modal-header h4 {
    margin: 0;
    font-size: 17px;
}

.nf-cust-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.nf-cust-modal-close:hover { color: #ffffff; }

.nf-cust-modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.nf-cust-warnings { margin-bottom: 12px; font-size: 13px; }

.nf-cust-errors ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
}

.nf-cust-errors li { margin-bottom: 6px; }

/* ── tab (FS-0002 v2): riga SINGOLA compatta, icone, frecce se overflow ── */
.nf-cust-tabswrap {
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin: 0 0 12px;
    border-bottom: 2px solid #e2e8f0;
}

.nf-cust-tabarrow {
    flex: 0 0 auto;
    width: 24px;
    padding: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: #475569;
    font-size: 10px;
    cursor: pointer;
    user-select: none;
}

.nf-cust-tabarrow:hover { background: #e2e8f0; color: #0f172a; }

.nf-cust-tabs {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;              /* Firefox: niente scrollbar visibile */
}

.nf-cust-tabs::-webkit-scrollbar { display: none; }

.nf-cust-tabs li {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    user-select: none;
}

.nf-cust-tabs li:hover { background: #f1f5f9; }

.nf-cust-tabs li.active {
    background: #0369a1;
    color: #ffffff;
}

.nf-cust-tabicon {
    font-size: 13px;
    line-height: 1;
}

/* riga semplice nei pane elenco (tasse, spedizioni) */
.nf-cust-line {
    padding: 4px 2px;
    font-size: 13px;
    color: #0f172a;
    border-bottom: 1px dashed #e2e8f0;
}

.nf-cust-line:last-child { border-bottom: none; }

.nf-cust-pane { padding: 4px 2px; }

.nf-cust-dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 4px 14px;
    margin: 0;
    font-size: 13px;
}

.nf-cust-dl dt {
    color: #64748b;
    font-weight: 600;
    text-align: right;
}

.nf-cust-dl dd {
    margin: 0;
    color: #0f172a;
    word-break: break-word;
}

.nf-cust-plugins {
    margin: 0;
    padding-left: 18px;
}

/* nota nel tab Amministratore (azienda sempre NetForges) */
.nf-cust-note {
    margin: 0 0 10px;
    padding: 8px 12px;
    background: #e0f2fe;
    border-left: 3px solid #0369a1;
    color: #0c4a6e;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
}

/* intestazione di ogni contatto nel tab Contatti */
.nf-cust-subtitle {
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.nf-cust-subtitle:first-child { margin-top: 0; }

.nf-cust-password-note {
    margin-top: 14px;
    padding: 8px 12px;
    background: #fef3c7;
    border-left: 3px solid #b45309;
    color: #78350f;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
}

/* ── footer: spunta + Applica in basso a destra ─────────────────────────── */
.nf-cust-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.nf-cust-confirm { font-size: 13px; }

.nf-cust-confirm label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.nf-cust-modal-actions {
    display: flex;
    gap: 8px;
}

.nf-btn-cust-apply {
    background-color: #15803d;
    color: #ffffff;
    min-width: 110px;
}

.nf-btn-cust-apply:hover:not(:disabled) {
    background-color: #166534;
    color: #ffffff;
}

.nf-btn-cust-apply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
