/* ── Barra fissa in fondo — visibile su tutte le pagine quando conto terzi è attivo ── */
.oct-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #b11a7f;
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
    font-size: 0.9rem;
}

.oct-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.oct-bar__info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oct-bar__label {
    opacity: 0.88;
}

.oct-bar__name {
    font-weight: 700;
    font-size: 1rem;
}

.oct-bar__cancel {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 5px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.oct-bar__cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    text-decoration: none;
}

.oct-bar__cancel-icon {
    font-size: 1.1rem;
    line-height: 1;
}

body.oct-active {
    padding-bottom: 56px;
}

body.oct-active::before {
    content: '';
    position: fixed;
    inset: 0;
    border: 10px solid #b11a7f;
    z-index: 99999;
    pointer-events: none;
}

/* Nasconde le azioni non consentite durante l'impersonazione */
body.oct-active #div_diventa_ibo,
body.oct-active #div_accedi_virtual_office,
body.oct-active #div_firstOrderIboNotAlreadyCompleted {
    display: none !important;
}

/* Nasconde le card account non accessibili durante l'impersonazione */
body.oct-active a.dashboard-card[href*="dati-personali"],
body.oct-active a.dashboard-card[href*="identity"],
body.oct-active a.dashboard-card[href*="blockwishlist"],
body.oct-active a.dashboard-card[href*="cartshare"] {
    display: none !important;
}

/* ── Block nella pagina account ── */
.oct-account-block {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 24px;
    margin-top: 24px;
}

.oct-account-block__title {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
}

.oct-account-block__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ── Modal ── */
.oct-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oct-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.oct-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.oct-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.oct-modal__header h4 {
    margin: 0;
    font-size: 1rem;
}

.oct-modal__close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0;
}

.oct-modal__close:hover {
    color: #000;
}

.oct-modal__body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Lista clienti ── */
.oct-customer-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oct-customer-list__item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.oct-customer-list__item:hover {
    background: #f0f6ff;
    border-color: #1a6ab1;
}

.oct-customer__name {
    font-weight: 600;
    font-size: 0.9rem;
}

.oct-customer__code {
    font-size: 0.78rem;
    color: #999;
    margin-top: 1px;
}

.oct-loading,
.oct-empty,
.oct-hint,
.oct-error {
    text-align: center;
    padding: 16px 0;
    color: #666;
    font-size: 0.9rem;
}

.oct-error {
    color: #c0392b;
}