/*
 * MASTER SUITE — COMP-ARCH-002
 * Company Explorer Enterprise
 *
 * Regola permanente:
 * - nessun colore business fissato nel componente;
 * - palette derivata dai token ufficiali del Theme Engine;
 * - compatibilità con il futuro Theme / Template Generator.
 */

#company-explorer-enterprise[hidden] {
    display: none !important;
}

#company-explorer-enterprise {
    --company-explorer-bg:
        var(--theme-background, var(--bg, #f3f5f8));

    --company-explorer-surface:
        var(--theme-surface, var(--surface, #ffffff));

    --company-explorer-surface-soft:
        var(--theme-surface-soft, var(--surface-soft, #f8fafc));

    --company-explorer-surface-hover:
        var(--theme-surface-hover, var(--surface-hover, #f1f5f9));

    --company-explorer-text:
        var(--theme-text, var(--text, #12243a));

    --company-explorer-muted:
        var(--theme-muted, var(--muted, #66768a));

    --company-explorer-border:
        var(--theme-border, var(--line, #dce3eb));

    --company-explorer-primary:
        var(--theme-primary, var(--navy, #07233e));

    --company-explorer-primary-strong:
        var(--theme-primary-strong, var(--navy-dark, #03172b));

    --company-explorer-accent:
        var(--theme-accent, var(--gold, #f4bd2b));

    --company-explorer-accent-strong:
        var(--theme-accent-strong, var(--gold-deep, #d99a00));

    --company-explorer-success:
        var(--theme-success, var(--green, #15945a));

    --company-explorer-shadow:
        var(--theme-shadow, var(--shadow, 0 1px 4px rgba(10, 30, 55, .08)));

    width: 100%;
    min-height: 100%;
    padding: 22px 26px 32px;
    box-sizing: border-box;
    color: var(--company-explorer-text);
    background: transparent;
}

.company-explorer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.company-explorer__heading {
    min-width: 0;
}

.company-explorer__eyebrow {
    margin: 0 0 7px;
    color: var(--company-explorer-accent-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.company-explorer__title {
    margin: 0;
    color: var(--company-explorer-text);
    font-size: clamp(26px, 2vw, 32px);
    font-weight: 780;
    line-height: 1.16;
    letter-spacing: -.025em;
}

.company-explorer__subtitle {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--company-explorer-muted);
    font-size: 14px;
    line-height: 1.5;
}

.company-explorer__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.company-explorer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--company-explorer-border);
    border-radius: 9px;
    background: var(--company-explorer-surface);
    color: var(--company-explorer-text);
    box-shadow: 0 1px 2px rgba(10, 30, 55, .04);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition:
        border-color .16s ease,
        background-color .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.company-explorer__button:hover {
    border-color: var(--company-explorer-accent-strong);
    background: var(--company-explorer-surface-soft);
    box-shadow: var(--company-explorer-shadow);
    transform: translateY(-1px);
}

.company-explorer__button:active {
    transform: translateY(0);
}

.company-explorer__button:focus-visible,
.company-explorer__search input:focus-visible,
.company-explorer__search-clear:focus-visible,
.company-explorer__row:focus-visible {
    outline: 2px solid var(--company-explorer-accent);
    outline-offset: 2px;
}

.company-explorer__button--primary {
    border-color: var(--company-explorer-accent);
    background: var(--company-explorer-accent);
    color: var(--company-explorer-primary-strong);
    box-shadow: 0 4px 12px rgba(10, 30, 55, .11);
}

.company-explorer__button--primary:hover {
    border-color: var(--company-explorer-accent-strong);
    background: var(--company-explorer-accent-strong);
    color: var(--company-explorer-primary-strong);
}

.company-explorer__toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 13px;
}

.company-explorer__search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 760px);
    min-height: 44px;
    border: 1px solid var(--company-explorer-border);
    border-radius: 11px;
    background: var(--company-explorer-surface);
    box-shadow: var(--company-explorer-shadow);
    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

.company-explorer__search:focus-within {
    border-color: var(--company-explorer-accent-strong);
    box-shadow:
        0 0 0 3px color-mix(
            in srgb,
            var(--company-explorer-accent) 18%,
            transparent
        ),
        var(--company-explorer-shadow);
}

.company-explorer__search-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    color: var(--company-explorer-muted);
    font-size: 20px;
    line-height: 1;
}

.company-explorer__search input {
    min-width: 0;
    width: 100%;
    height: 42px;
    padding: 0 42px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--company-explorer-text);
    font: inherit;
    font-size: 13px;
}

.company-explorer__search input::placeholder {
    color: var(--company-explorer-muted);
    opacity: .78;
}

.company-explorer__search input::-webkit-search-cancel-button {
    display: none;
}

.company-explorer__search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--company-explorer-muted);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.company-explorer__search-clear[hidden] {
    display: none;
}

.company-explorer__search-clear:hover {
    background: var(--company-explorer-surface-hover);
    color: var(--company-explorer-text);
}

.company-explorer__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 32px;
    margin-bottom: 7px;
}

.company-explorer__count {
    color: var(--company-explorer-muted);
    font-size: 12px;
    font-weight: 780;
}

.company-explorer__status {
    color: var(--company-explorer-muted);
    font-size: 12px;
    font-weight: 650;
}

.company-explorer__panel {
    overflow: hidden;
    border: 1px solid var(--company-explorer-border);
    border-radius: 14px;
    background: var(--company-explorer-surface);
    box-shadow: var(--company-explorer-shadow);
}

.company-explorer__table-wrap {
    overflow-x: auto;
}

.company-explorer__table {
    width: 100%;
    min-width: 930px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--company-explorer-text);
    table-layout: fixed;
}

.company-explorer__table th,
.company-explorer__table td {
    padding: 15px 18px;
    text-align: left;
    vertical-align: middle;
}

.company-explorer__table th:nth-child(1) {
    width: 27%;
}

.company-explorer__table th:nth-child(2) {
    width: 13%;
}

.company-explorer__table th:nth-child(3) {
    width: 20%;
}

.company-explorer__table th:nth-child(4) {
    width: 20%;
}

.company-explorer__table th:nth-child(5) {
    width: 13%;
}

.company-explorer__table th:nth-child(6) {
    width: 10%;
}

.company-explorer__table thead {
    background: var(--company-explorer-primary);
    color: #ffffff;
}

.company-explorer__table thead th {
    height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid color-mix(
        in srgb,
        var(--company-explorer-primary) 72%,
        var(--company-explorer-border)
    );
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.company-explorer__table tbody td {
    min-height: 60px;
    border-bottom: 1px solid var(--company-explorer-border);
    color: var(--company-explorer-text);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.company-explorer__table tbody tr:last-child td {
    border-bottom: 0;
}

.company-explorer__row {
    position: relative;
    cursor: pointer;
    transition:
        background-color .14s ease,
        box-shadow .14s ease;
}

.company-explorer__row:hover {
    background: var(--company-explorer-surface-hover);
    box-shadow:
        inset 3px 0 0 var(--company-explorer-accent);
}

.company-explorer__row:focus-visible {
    position: relative;
    z-index: 1;
}

.company-explorer__company-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--company-explorer-text);
    font-weight: 790;
}

.company-explorer__company-mark {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--company-explorer-accent);
    box-shadow: 0 0 0 3px color-mix(
        in srgb,
        var(--company-explorer-accent) 18%,
        transparent
    );
}

.company-explorer__state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    padding: 4px 10px;
    border: 1px solid color-mix(
        in srgb,
        var(--company-explorer-success) 24%,
        var(--company-explorer-border)
    );
    border-radius: 999px;
    background: color-mix(
        in srgb,
        var(--company-explorer-success) 10%,
        var(--company-explorer-surface)
    );
    color: var(--company-explorer-success);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.company-explorer__state i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.company-explorer__empty {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 230px;
    padding: 34px 20px;
    text-align: center;
    color: var(--company-explorer-muted);
}

.company-explorer__empty[hidden] {
    display: none;
}

.company-explorer__empty-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 3px;
    border: 1px solid var(--company-explorer-border);
    border-radius: 13px;
    background: var(--company-explorer-surface-soft);
    color: var(--company-explorer-accent-strong);
    font-size: 24px;
}

.company-explorer__empty strong {
    color: var(--company-explorer-text);
    font-size: 15px;
}

.company-explorer__empty small {
    font-size: 12px;
}

.company-explorer__error {
    margin: 18px;
    padding: 14px 16px;
    border: 1px solid color-mix(
        in srgb,
        var(--red, #dc342e) 36%,
        var(--company-explorer-border)
    );
    border-radius: 10px;
    background: color-mix(
        in srgb,
        var(--red, #dc342e) 8%,
        var(--company-explorer-surface)
    );
    color: var(--red, #dc342e);
    font-size: 13px;
    font-weight: 700;
}

.company-explorer__error[hidden] {
    display: none;
}

html[data-theme="dark"] #company-explorer-enterprise,
[data-theme="dark"] #company-explorer-enterprise {
    color-scheme: dark;
}

html[data-theme="dark"] .company-explorer__table thead,
[data-theme="dark"] .company-explorer__table thead {
    background: var(--company-explorer-primary-strong);
}

html[data-theme="dark"] .company-explorer__panel,
html[data-theme="dark"] .company-explorer__search,
html[data-theme="dark"] .company-explorer__button,
[data-theme="dark"] .company-explorer__panel,
[data-theme="dark"] .company-explorer__search,
[data-theme="dark"] .company-explorer__button {
    border-color: var(--company-explorer-border);
}

@media (max-width: 900px) {
    #company-explorer-enterprise {
        padding: 18px;
    }

    .company-explorer__header {
        flex-direction: column;
    }

    .company-explorer__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .company-explorer__search {
        width: 100%;
    }
}

@media (max-width: 560px) {
    #company-explorer-enterprise {
        padding: 14px;
    }

    .company-explorer__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .company-explorer__button {
        padding-right: 10px;
        padding-left: 10px;
    }

    .company-explorer__summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

/* ==========================================================================
   COMP-ARCH-002B — MOBILE COLUMN
   ========================================================================== */

.company-explorer__table {
    min-width: 1120px;
}

/* ==========================================================================
   GRID-001 — ENTERPRISE GRID FOUNDATION
   Ridimensionamento transitorio delle colonne
   ========================================================================== */

.company-explorer__table thead th[data-column-key] {
    position: relative;
}

.company-explorer__column-resizer {
    position: absolute;
    z-index: 3;
    top: 0;
    right: -4px;
    width: 9px;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
}

.company-explorer__column-resizer::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 4px;
    width: 1px;
    height: 60%;
    background: color-mix(
        in srgb,
        currentColor 38%,
        transparent
    );
    opacity: 0;
    transition:
        opacity .14s ease,
        height .14s ease,
        top .14s ease;
}

.company-explorer__table thead th:hover
.company-explorer__column-resizer::after,
.company-explorer__table thead th.is-resizing
.company-explorer__column-resizer::after {
    top: 10%;
    height: 80%;
    opacity: 1;
}

.company-explorer__table.is-resizing-columns,
.company-explorer__table.is-resizing-columns * {
    cursor: col-resize !important;
    user-select: none !important;
}

.company-explorer__table.is-resizing-columns
.company-explorer__row {
    pointer-events: none;
}

/* ==========================================================================
   GRID-002 — SELETTORE COLONNE VISIBILI
   ========================================================================== */

.company-explorer__toolbar {
    gap: 12px;
}

.company-explorer__columns {
    position: relative;
    flex: 0 0 auto;
}

.company-explorer__columns-button {
    min-height: 44px;
    white-space: nowrap;
}

.company-explorer__columns-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    padding: 8px;
    border: 1px solid var(--company-explorer-border);
    border-radius: 12px;
    background: var(--company-explorer-surface);
    box-shadow:
        0 18px 42px rgba(10, 30, 55, .16),
        var(--company-explorer-shadow);
}

.company-explorer__columns-menu[hidden] {
    display: none;
}

.company-explorer__columns-heading {
    padding: 7px 9px 9px;
    border-bottom: 1px solid var(--company-explorer-border);
    color: var(--company-explorer-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.company-explorer__column-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--company-explorer-text);
    font-size: 13px;
    font-weight: 680;
    cursor: pointer;
}

.company-explorer__column-option:hover {
    background: var(--company-explorer-surface-hover);
}

.company-explorer__column-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--company-explorer-accent-strong);
}

.company-explorer__column-option input:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.company-explorer__column-option:has(input:disabled) {
    cursor: default;
}

.company-explorer__column-option small {
    color: var(--company-explorer-muted);
    font-size: 10px;
    font-weight: 650;
}

.company-explorer__table th[hidden],
.company-explorer__table td[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .company-explorer__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .company-explorer__columns {
        align-self: flex-start;
    }

    .company-explorer__columns-menu {
        right: auto;
        left: 0;
    }
}


/* ==========================================================================
   GRID-004C — COLUMN WIDTH MENU ACTIONS
   ========================================================================== */

#company-explorer-enterprise
.company-explorer__column-width-actions {
    display: grid;
    gap: 4px;

    margin-top: 8px;
    padding-top: 8px;

    border-top: 1px solid var(--company-explorer-border);
}

#company-explorer-enterprise
.company-explorer__column-width-action {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 100%;
    min-height: 34px;
    padding: 7px 9px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: var(--company-explorer-text);

    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-align: left;

    cursor: pointer;
}

#company-explorer-enterprise
.company-explorer__column-width-action:hover {
    background: var(--company-explorer-surface-hover);
}

#company-explorer-enterprise
.company-explorer__column-width-action:focus-visible {
    outline: 2px solid var(--company-explorer-accent-strong);
    outline-offset: 1px;
}

#company-explorer-enterprise
.company-explorer__column-width-action:disabled {
    cursor: wait;
    opacity: 0.55;
}

#company-explorer-enterprise
.company-explorer__column-width-action > span:first-child {
    display: inline-grid;
    place-items: center;

    width: 18px;
    min-width: 18px;

    color: var(--company-explorer-accent-strong);
    font-size: 15px;
    line-height: 1;
}


/* =====================================================================
   UI-COMP-001D — ENTERPRISE GRID SELECTION FOUNDATION
   ===================================================================== */

.company-explorer__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.company-explorer__toolbar > .company-explorer__search {
    width: min(100%, 760px);
}

.company-explorer__toolbar > .enterprise-action-bar {
    width: 100%;
    justify-content: flex-start;
}

.company-explorer__summary-primary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.company-explorer__selection-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border: 1px solid var(--company-explorer-border);
    border-radius: 999px;
    background: var(--company-explorer-surface-soft);
    color: var(--company-explorer-text);
    font-size: 12px;
    font-weight: 750;
}

.company-explorer__selection-count[hidden] {
    display: none;
}

.company-explorer__selection-column,
.company-explorer__selection-cell {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    padding-left: 12px !important;
    padding-right: 8px !important;
    text-align: center;
}

.company-explorer__checkbox {
    width: 17px;
    height: 17px;
    margin: 0;
    vertical-align: middle;
    accent-color: var(--company-explorer-accent-strong);
    cursor: pointer;
}

.company-explorer__checkbox:focus-visible {
    outline: 2px solid var(--company-explorer-accent);
    outline-offset: 2px;
}

.company-explorer__row.is-selected {
    background:
        color-mix(
            in srgb,
            var(--company-explorer-accent) 10%,
            var(--company-explorer-surface)
        );
}

.company-explorer__row.is-selected:hover {
    background:
        color-mix(
            in srgb,
            var(--company-explorer-accent) 15%,
            var(--company-explorer-surface-hover)
        );
}

.company-explorer__row.is-selected
.company-explorer__company-name {
    font-weight: 780;
}

@media (max-width: 720px) {
    .company-explorer__toolbar > .company-explorer__search {
        width: 100%;
    }

    .company-explorer__summary-primary {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* GRID-SELECT-001E: SELECTION COLUMN ISOLATION
 *
 * Riserva una colonna autonoma ai checkbox Enterprise.
 * Impedisce la sovrapposizione con l'indicatore visivo
 * presente nella colonna Azienda.
 */
#company-explorer-enterprise
.company-explorer__table
.company-explorer__selection-column {
    box-sizing: border-box;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
}

#company-explorer-enterprise
.company-explorer__table
thead
.company-explorer__selection-column,
#company-explorer-enterprise
.company-explorer__table
tbody
td:first-child {
    box-sizing: border-box;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    vertical-align: middle;
}

#company-explorer-enterprise
.company-explorer__table
tbody
td:first-child {
    position: relative;
    overflow: hidden;
}

#company-explorer-enterprise
.company-explorer__table
tbody
td:first-child::before,
#company-explorer-enterprise
.company-explorer__table
tbody
td:first-child::after,
#company-explorer-enterprise
.company-explorer__table
.company-explorer__selection-column::before,
#company-explorer-enterprise
.company-explorer__table
.company-explorer__selection-column::after {
    content: none;
    display: none;
}

#company-explorer-enterprise
.company-explorer__checkbox {
    position: static;
    display: block;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0 auto;
    padding: 0;
    transform: none;
    float: none;
    vertical-align: middle;
}

#company-explorer-enterprise
.company-explorer__table
th[data-column-key="company"],
#company-explorer-enterprise
.company-explorer__table
td[data-column-key="company"] {
    padding-left: 14px;
}

/*
 * Protezione per righe generate dinamicamente nelle quali
 * la cella Azienda non espone data-column-key.
 */
#company-explorer-enterprise
.company-explorer__table
tbody
td:first-child + td {
    padding-left: 14px;
}

/* END GRID-SELECT-001E: SELECTION COLUMN ISOLATION */


/* UI-COMP-ROW-001_COMPANY_EXPLORER_ROW_ALIGNMENT
 *
 * Allineamento uniforme delle righe del Company Explorer.
 * L'altezza della riga è determinata dalla cella con il contenuto più alto;
 * tutte le altre celle seguono la stessa altezza.
 */

#company-explorer-enterprise .company-explorer__table {
    border-collapse: collapse;
    border-spacing: 0;
}

#company-explorer-enterprise .company-explorer__table thead tr,
#company-explorer-enterprise .company-explorer__table tbody tr {
    height: auto;
}

#company-explorer-enterprise .company-explorer__table tbody tr {
    min-height: 64px;
}

#company-explorer-enterprise .company-explorer__table th,
#company-explorer-enterprise .company-explorer__table td {
    box-sizing: border-box;
    height: auto;
    min-height: 64px;
    padding-top: 14px;
    padding-bottom: 14px;
    vertical-align: middle;
}

#company-explorer-enterprise .company-explorer__table tbody td {
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

#company-explorer-enterprise .company-explorer__table tbody tr > td {
    border-bottom: 1px solid var(
        --company-explorer-border,
        rgba(148, 163, 184, 0.20)
    );
}

#company-explorer-enterprise .company-explorer__table tbody tr:last-child > td {
    border-bottom: 0;
}

/*
 * I contenitori interni non devono disegnare linee proprie,
 * perché spezzerebbero visivamente il separatore della riga.
 */
#company-explorer-enterprise .company-explorer__table td > div,
#company-explorer-enterprise .company-explorer__table td > span,
#company-explorer-enterprise .company-explorer__table td > a {
    border-top: 0;
    border-bottom: 0;
    box-shadow: none;
}

/*
 * La cella Azienda può andare a capo, ma resta centrata verticalmente
 * rispetto a Settore, Email e alle altre colonne.
 */
#company-explorer-enterprise .company-explorer__table td[data-column-key="name"],
#company-explorer-enterprise .company-explorer__table td[data-column-key="company"],
#company-explorer-enterprise .company-explorer__table .company-explorer__company-cell {
    min-width: 0;
    vertical-align: middle;
}

#company-explorer-enterprise .company-explorer__table .company-explorer__company-name,
#company-explorer-enterprise .company-explorer__table .company-explorer__company-label,
#company-explorer-enterprise .company-explorer__table .company-explorer__company-cell a,
#company-explorer-enterprise .company-explorer__table .company-explorer__company-cell span {
    max-width: 100%;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

/*
 * Checkbox e indicatore aziendale restano centrati anche quando
 * il nome occupa due o più righe.
 */
#company-explorer-enterprise .company-explorer__table td:first-child,
#company-explorer-enterprise .company-explorer__table th:first-child {
    text-align: center;
    vertical-align: middle;
}

#company-explorer-enterprise .company-explorer__table input[type="checkbox"] {
    display: block;
    margin: 0 auto;
}

#company-explorer-enterprise .company-explorer__company-mark {
    flex: 0 0 auto;
    align-self: center;
}

/*
 * Qualsiasi wrapper flessibile interno alla cella mantiene il contenuto
 * centrato verticalmente senza imporre un'altezza indipendente.
 */
#company-explorer-enterprise .company-explorer__table td > [class*="company-explorer__"] {
    min-height: 0;
}

#company-explorer-enterprise .company-explorer__table td > [class*="cell"],
#company-explorer-enterprise .company-explorer__table td > [class*="company"] {
    align-items: center;
}

/* ==========================================================================
   GRID-RESIZE-005D-SINGLE-CSS-AUTHORITY
   MASTER SUITE Enterprise — Company column resize authority

   Una sola authority visuale per le maniglie Aziende.
   La zona interattiva resta interamente dentro la cella header:
   nessun offset negativo e nessuna dipendenza dall'overflow del container.
   ========================================================================== */

#company-explorer-enterprise
.company-explorer__table
thead th[data-column-key] {
    position: relative !important;
}

#company-explorer-enterprise
.company-explorer__column-resizer {
    position: absolute !important;

    top: 4px !important;
    right: 0 !important;
    bottom: 4px !important;

    z-index: 20 !important;

    display: block !important;

    width: 9px !important;
    min-width: 9px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    cursor: col-resize !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;

    opacity: 1 !important;
    visibility: visible !important;

    background: transparent !important;
}

#company-explorer-enterprise
.company-explorer__column-resizer::after {
    content: "" !important;

    position: absolute !important;

    top: 5px !important;
    right: 0 !important;
    bottom: 5px !important;

    display: block !important;

    width: 2px !important;
    min-width: 2px !important;

    border-radius: 2px !important;

    background: rgba(99, 174, 225, .52) !important;

    opacity: 1 !important;
    visibility: visible !important;

    transition:
        width .12s ease,
        background-color .12s ease,
        box-shadow .12s ease !important;
}

#company-explorer-enterprise
.company-explorer__column-resizer:hover::after,
#company-explorer-enterprise
th.is-resizing
.company-explorer__column-resizer::after {
    width: 3px !important;

    background:
        rgba(82, 197, 244, .95) !important;

    box-shadow:
        0 0 7px
        rgba(82, 197, 244, .52) !important;
}

#company-explorer-enterprise
.company-explorer__table.is-resizing-columns,
#company-explorer-enterprise
.company-explorer__table.is-resizing-columns * {
    cursor: col-resize !important;
    user-select: none !important;
}

#company-explorer-enterprise
.company-explorer__table.is-resizing-columns
.company-explorer__row {
    pointer-events: none;
}\n