/* SG07986_CB_TM10 INI */
/* ============================================================================
 * File:   cluster_ricariche.css
 * ============================================================================ */


/* ----------------------------------------------------------------------------
 * SECTION SHELL + HEADING ROW (item #4, #5)
 * Heading is a 2-col flex: title block on the left, primary CTA on the right.
 * -------------------------------------------------------------------------- */
.gestione-cluster-section {
    padding: 24px 0;
}

.gestione-cluster-section .heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.gestione-cluster-section .heading .text-block {
    flex: 1 1 auto;
    min-width: 0;
}

.gestione-cluster-section .heading-actions {
    flex: 0 0 auto;
    align-self: flex-start;
}

/* "Crea cluster" red CTA. Vodafone red used per mockup.
 * The base `.btn.primary` rule in common.css sets `width: 100%` and a
 * fixed `height: 40px` which would stretch this button to fill the flex
 * container. We override both (scoped under the section for specificity)
 * so the button is auto-sized like the mockup, while keeping the red
 * background + uppercase typography. */
.gestione-cluster-section .btn-crea-cluster {
    width: auto;
    min-width: 220px;
    height: auto;
    flex: 0 0 auto;
    background-color: #e60000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.gestione-cluster-section .btn-crea-cluster:hover,
.gestione-cluster-section .btn-crea-cluster:focus {
    background-color: #b80000;
    outline: none;
}


/* ----------------------------------------------------------------------------
 * SEARCH BAR OVERRIDES (item #6)
 * The base `.search-input-wrapper` styling already comes from common.css;
 * the rules below only adjust spacing for this page.
 *
 * Per mockup the search submit button is ALWAYS red (Vodafone red) with a
 * white magnifying-glass icon. The base common.css `.start-search` rule
 * renders it grey, so we override here scoped under the cluster section.
 * -------------------------------------------------------------------------- */
.gestione-cluster-section .search-input-wrapper {
    margin-bottom: 16px;
}

.gestione-cluster-section .search-input-wrapper .start-search,
.gestione-cluster-section .search-input-wrapper .start-search.active {
    background-color: #e60000;
}

.gestione-cluster-section .search-input-wrapper .start-search:hover:not(:disabled),
.gestione-cluster-section .search-input-wrapper .start-search:focus:not(:disabled) {
    background-color: #b80000;
}

.gestione-cluster-section .search-input-wrapper .start-search:disabled {
    background-color: #f5b3b3;
    cursor: not-allowed;
}

/* Force the magnifying-glass SVG to render white on the red square. */
.gestione-cluster-section .search-input-wrapper .start-search img {
    filter: brightness(0) invert(1);
}

/* jQuery UI autocomplete dropdown -- styled to match the prototype's
 * `vf-wgt-search-box-list` look: full-width white panel with bordered
 * rows and a bold prefix for matched chars. */
.ui-autocomplete.ui-menu {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    background-color: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1080;
    font-family: inherit;
    font-size: inherit;
}

.ui-autocomplete.ui-menu .ui-menu-item {
    padding: 0;
    margin: 0;
}

.ui-autocomplete.ui-menu .ui-menu-item > div,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper {
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
    border-bottom: 1px solid #ececec;
}

.ui-autocomplete.ui-menu .ui-menu-item:last-child > div,
.ui-autocomplete.ui-menu .ui-menu-item:last-child .ui-menu-item-wrapper {
    border-bottom: none;
}

.ui-autocomplete.ui-menu .ui-menu-item > div:hover,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper.ui-state-active {
    background-color: #f4f4f4;
    color: #1a1a1a;
    border: none;
    border-bottom: 1px solid #ececec;
    margin: 0;
}

/* Prefix-match emphasis -- inserted by _renderItem in gestione-cluster.js. */
.ui-autocomplete.ui-menu strong {
    font-weight: 700;
    color: #1a1a1a;
}


/* ----------------------------------------------------------------------------
 * RESULT HEADER (item #7)
 * "I tuoi cluster"  /  "<N> cluster totali"
 * -------------------------------------------------------------------------- */
.cluster-list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 12px;
}

.cluster-list-header .title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.cluster-list-header .cluster-list-total {
    font-size: 14px;
    color: #6b6b6b;
}


/* ----------------------------------------------------------------------------
 * CLUSTER LIST + ROW CARD (item #8)
 * Each row is a flex card: avatar | info block | right-aligned actions.
 * -------------------------------------------------------------------------- */
.cluster-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cluster-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.cluster-row-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    border-radius: 50%;
}

.cluster-row-avatar img {
    width: 22px;
    height: 22px;
}

/* Info block: two stacked label/value pairs side by side */
.cluster-row-info {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    min-width: 0;
}

.cluster-row-field {
    display: flex;
    flex-direction: column;
}

.cluster-row-info .cluster-row-field:first-child {
    flex: 0 0 320px; /* SG07986_CB_TM10 */
    overflow: hidden;
}

.cluster-row-info .cluster-row-field:first-child .cluster-row-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cluster-row-info .cluster-row-field:nth-child(2) {
    flex: 0 0 160px;
}

.cluster-row-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a8a8a;
}

.cluster-row-value {
    font-size: 15px;
    color: #1a1a1a;
    margin-top: 2px;
}

.cluster-row-name {
    font-weight: 600;
}

/* Right-aligned action group (Modifica nome / Visualizza dettagli / Elimina) */
.cluster-row-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cluster-row-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007c92;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.cluster-row-action:hover,
.cluster-row-action:focus {
    color: #005a6b;
    text-decoration: underline;
}

.cluster-row-action img {
    width: 12px;
    height: 12px;
}

/* Delete action shares the same teal color as the other two actions per
 * mockup (no destructive-red emphasis on the row itself; the actual red
 * confirmation is only shown inside the delete confirmation modal). */
.cluster-row-action-delete {
    color: #007c92;
}

.cluster-row-action-delete:hover,
.cluster-row-action-delete:focus {
    color: #005a6b;
}


/* ----------------------------------------------------------------------------
 * EMPTY STATE (item #9)
 * Centered placeholder shown when the customer has zero clusters.
 * -------------------------------------------------------------------------- */
.gestione-cluster-section .cluster-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 48px 16px;
    text-align: center;
}

.gestione-cluster-section .cluster-empty-text {
    max-width: 520px;
    margin: 0 auto;
}

.gestione-cluster-section .cluster-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    text-align: center;
}

.gestione-cluster-section .cluster-empty-subtitle {
    font-size: 14px;
    color: #6b6b6b;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
}


/* ----------------------------------------------------------------------------
 * PAGINATION (item #10)
 * -------------------------------------------------------------------------- */
.gestione-cluster-section .pagination {
    margin-top: 24px;
}

.gestione-cluster-section .pagination button {
    border: none;
    background: none;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.gestione-cluster-section .pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gestione-cluster-section .pagination button img {
    width: 20px;
    height: 20px;
    display: block;
}

.gestione-cluster-section .pagination #cluster-prev-btn {
    margin-right: 24px;
}

.gestione-cluster-section .pagination #cluster-next-btn {
    margin-left: 24px;
}

.gestione-cluster-section .pagination .actual-page {
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 12px;
    text-align: center;
    width: 56px;
    font-size: 14px;
}

.gestione-cluster-section .pagination .actual-page:focus {
    outline: none;
    border-color: #007c92;
    box-shadow: 0 0 0 2px rgba(0, 124, 146, 0.15);
}

.gestione-cluster-section .pagination .total-pages {
    margin-left: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.gestione-cluster-section .pagination > span {
    margin: 0 4px;
    color: #6b6b6b;
}


/* ----------------------------------------------------------------------------
 * DETAIL PAGE PAGINATION (serials inside a single cluster)
 * -------------------------------------------------------------------------- */
.dettaglio-cluster-section .pagination {
    margin-top: 24px;
}

.dettaglio-cluster-section .pagination button {
    border: none;
    background: none;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.dettaglio-cluster-section .pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.dettaglio-cluster-section .pagination button img {
    width: 20px;
    height: 20px;
    display: block;
}

.dettaglio-cluster-section .pagination #dettaglio-prev-btn {
    margin-right: 24px;
}

.dettaglio-cluster-section .pagination #dettaglio-next-btn {
    margin-left: 24px;
}

.dettaglio-cluster-section .pagination .actual-page {
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 12px;
    text-align: center;
    width: 56px;
    font-size: 14px;
}

.dettaglio-cluster-section .pagination .actual-page:focus {
    outline: none;
    border-color: #007c92;
    box-shadow: 0 0 0 2px rgba(0, 124, 146, 0.15);
}

.dettaglio-cluster-section .pagination .total-pages {
    margin-left: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.dettaglio-cluster-section .pagination > span {
    margin: 0 4px;
    color: #6b6b6b;
}


/* ----------------------------------------------------------------------------
 * CLUSTER DETAIL PAGE  (items #22 - #26)
 * -------------------------------------------------------------------------- */
.dettaglio-cluster-section {
    padding: 24px 0;
}

.dettaglio-cluster-heading {
    margin-bottom: 24px;
}

.dettaglio-cluster-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dettaglio-cluster-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dettaglio-cluster-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007c92;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.dettaglio-cluster-action:hover,
.dettaglio-cluster-action:focus {
    color: #005a6b;
    text-decoration: underline;
}

.dettaglio-cluster-action img {
    width: 12px;
    height: 12px;
}

.cluster-detail-separator {
    border: 0;
    border-top: 1px solid #d0d0d0;
    margin: 24px 0;
    width: 100%;
}


/* ----------------------------------------------------------------------------
 * MODE SELECTION STRIP (items #25, #26)
 * -------------------------------------------------------------------------- */
.dettaglio-cluster-mode {
    margin-bottom: 24px;
}

.dettaglio-cluster-mode .mode-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.dettaglio-cluster-mode .mode-subtitle {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0 0 16px;
}

.mode-radio-group {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mode-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.mode-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #e60000;
    cursor: pointer;
}

.mode-radio-label {
    font-size: 14px;
    color: #1a1a1a;
}


/* ----------------------------------------------------------------------------
 * BODY CONTAINERS
 * -------------------------------------------------------------------------- */
.dettaglio-cluster-body.hidden,
.hidden {
    display: none !important;
}


/* ----------------------------------------------------------------------------
 * MANUAL MODE -- search row + add button (items #27, #29)
 * -------------------------------------------------------------------------- */
.dettaglio-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.dettaglio-search-wrapper {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 0 0 0 12px;
    overflow: hidden;
}

.dettaglio-search-wrapper .form-control {
    flex: 1 1 auto;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 10px 0;
    font-size: 14px;
    background: transparent;
}


.dettaglio-iccid-prefix {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background: #fff;
    padding: 0 10px;
    border-radius: 2px;
}

.dettaglio-iccid-num {
    color: #666;
    background-color: #eeeeee;
    font-family: "Vodafone Rg", Arial, sans-serif;
    font-size: 1rem;
    line-height: normal;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.dettaglio-search-btn {
    flex: 0 0 auto;
    align-self: stretch;
    width: 47px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e60000;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.dettaglio-search-btn:disabled {
    background-color: #f5b3b3;
    cursor: not-allowed;
}

.dettaglio-search-btn img {
    filter: brightness(0) invert(1);
}

.dettaglio-add-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    background-color: #d6d6d6;
    color: #6b6b6b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.dettaglio-add-btn:not(:disabled) {
    background-color: #e60000;
    color: #ffffff;
}

.dettaglio-add-btn:not(:disabled):hover,
.dettaglio-add-btn:not(:disabled):focus {
    background-color: #b80000;
    outline: none;
}

.dettaglio-add-btn:disabled,
.dettaglio-add-btn[disabled] {
    cursor: not-allowed;
    opacity: 1;
    background-color: #d6d6d6;
    color: #6b6b6b;
}


/* ----------------------------------------------------------------------------
 * MANUAL MODE -- empty state (item #30)
 * -------------------------------------------------------------------------- */
.dettaglio-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 32px 16px;
    text-align: center;
}

.dettaglio-empty-text {
    max-width: 480px;
}

.dettaglio-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dettaglio-empty-subtitle {
    font-size: 14px;
    color: #6b6b6b;
    margin: 0;
}


/* ----------------------------------------------------------------------------
 * MANUAL MODE -- populated list header + rows (item #31)
 * -------------------------------------------------------------------------- */
.dettaglio-list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 12px;
}

.dettaglio-list-header .title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.dettaglio-list-total {
    font-size: 14px;
    color: #6b6b6b;
}

.dettaglio-serial-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dettaglio-serial-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #ececec;
    padding: 12px 16px;
}

.dettaglio-serial-row:first-child {
    border-top: 1px solid #ececec;
}

.dettaglio-serial-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dettaglio-serial-icon img {
    width: 18px;
    height: 18px;
}

.dettaglio-serial-value {
    flex: 1 1 auto;
    color: #007c92;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

.serial-prefix {
    color: #aaa;
    font-weight: 400;
    font-size: 0.85em;
    letter-spacing: 0;
}

.serial-body {
    color: #007c92;
}

/* SG07986_CB_TM10 — high-specificity selectors to override .ui-menu-item > div color inheritance */
.ui-autocomplete.ui-menu .ui-menu-item > div .serial-ac-taken,
.ui-autocomplete.ui-menu .ui-menu-item > div .serial-ac-current {
    color: #aaaaaa;
    font-style: italic;
}
/* SG07986_CB_TM10 END */

.dettaglio-serial-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007c92;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.dettaglio-serial-remove:hover,
.dettaglio-serial-remove:focus {
    color: #005a6b;
    text-decoration: underline;
}

.dettaglio-serial-remove img {
    width: 12px;
    height: 12px;
}


/* ----------------------------------------------------------------------------
 * BULK MODE (items #36 - #40)
 * -------------------------------------------------------------------------- */
.dettaglio-bulk-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e60000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 16px;
}

.dettaglio-bulk-download:hover,
.dettaglio-bulk-download:focus {
    color: #b80000;
    text-decoration: underline;
}

.dettaglio-bulk-download img {
    width: 12px;
    height: 12px;
}

.dettaglio-bulk-submit-row {
    margin-top: 16px;
}

.dettaglio-bulk-submit-btn {
    background-color: #e60000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.dettaglio-bulk-submit-btn:hover:not(:disabled),
.dettaglio-bulk-submit-btn:focus:not(:disabled) {
    background-color: #b80000;
}

.dettaglio-bulk-submit-btn:disabled,
.dettaglio-bulk-submit-btn[disabled] {
    background-color: #f5b3b3;
    cursor: not-allowed;
    opacity: 1;
}


/* ----------------------------------------------------------------------------
 * TOP-UPS PAGE: "SELEZIONO CLUSTER" TAB  (items #42 - #45)
 * -------------------------------------------------------------------------- */
.cluster-select-wrapper {
    max-width: 600px;
    margin: 0 0 24px;
}

.cluster-select-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a8a8a;
    margin-bottom: 8px;
}

.cluster-select-label .required-mark {
    color: #e60000;
    margin-left: 2px;
}

.cluster-select {
    width: 100%;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231a1a1a' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.cluster-select:focus {
    border-color: #007c92;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 146, 0.15);
}

.cluster-select:invalid {
    color: #8a8a8a;
}

.cluster-select option {
    color: #1a1a1a;
}

.cluster-select-empty-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #6b6b6b;
}

.cluster-select-empty-hint a {
    color: #007c92;
    font-weight: 700;
    text-decoration: none;
}

.cluster-select-empty-hint a:hover,
.cluster-select-empty-hint a:focus {
    color: #005a6b;
    text-decoration: underline;
}


/* ----------------------------------------------------------------------------
 * IMPORT OUTCOME PAGE
 * -------------------------------------------------------------------------- */
.import-outcome-section {
    padding: 24px 0;
}

.import-outcome-heading {
    margin-bottom: 24px;
}

.import-outcome-heading h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.import-outcome-subtitle {
    font-size: 14px;
    color: #6b6b6b;
    margin: 0;
}

.import-outcome-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.import-outcome-card {
    flex: 1 1 0;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f4f4f4;
    border: 1px solid #e6e6e6;
}

.import-outcome-card-valid {
    background-color: #e8f5ec;
    border-color: #c5e3cf;
}

.import-outcome-card-discarded {
    background-color: #fdecec;
    border-color: #f5c6c6;
}

.import-outcome-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b6b6b;
}

.import-outcome-count {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.import-outcome-table-wrapper {
    margin-bottom: 32px;
}

.import-outcome-table-wrapper .title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

.import-outcome-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.import-outcome-table th,
.import-outcome-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ececec;
}

.import-outcome-table thead th {
    background-color: #f4f4f4;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.import-outcome-actions {
    display: flex;
    justify-content: flex-end;
}


/* ----------------------------------------------------------------------------
 * SHARED CLUSTER MODAL  (items #13 - #21, plus delete-confirm modal)
 * -------------------------------------------------------------------------- */
.modal.cluster-modal .modal-dialog {
    max-width: 880px;
}

.modal.cluster-modal .modal-dialog .modal-content {
    border: none;
    border-radius: 8px;
    padding: 8px 16px 16px;
}

.modal.cluster-modal .modal-dialog .modal-content .modal-header {
    border-bottom: 1px solid #ececec;
    padding: 20px 24px 16px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.modal.cluster-modal .modal-dialog .modal-content .modal-body {
    display: block;
    align-items: stretch;
    flex-direction: row;
    padding: 24px 24px 16px;
    text-align: left;
}

.modal.cluster-modal .modal-dialog .modal-content .modal-body p {
    text-align: left;
}

.modal.cluster-modal .modal-dialog .modal-content .modal-header .btn-close {
    position: absolute;
    top: 18px;
    right: 20px;
    margin: 0;
    padding: 6px;
}

.cluster-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.cluster-modal .modal-body {
    padding: 24px 24px 16px;
}

.cluster-modal-helper {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.cluster-modal-field {
    margin-bottom: 8px;
    width: 100%;
}

.cluster-modal-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a8a8a;
    margin-bottom: 6px;
}

.cluster-modal-field .form-control {
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 15px;
    width: 100%;
    display: block;
    text-align: left;
}

.cluster-modal-field .form-control:focus {
    border-color: #007c92;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 146, 0.15);
}

.cluster-modal-counter {
    text-align: right;
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 4px;
}

.cluster-modal-error {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #fdecec;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    color: #c80000;
    font-size: 13px;
}

.cluster-modal-error.is-visible {
    display: flex;
}

.cluster-modal-error img {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.cluster-modal-footer {
    border-top: none;
    padding: 0 20px 8px;
    gap: 12px;
    display: flex;
    flex-wrap: nowrap;
}

.cluster-modal-btn {
    flex: 1 1 0;
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out,
                color 0.15s ease-in-out;
}

.cluster-modal-btn-cancel {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.cluster-modal-btn-cancel:hover,
.cluster-modal-btn-cancel:focus {
    background-color: #f4f4f4;
    outline: none;
}

.cluster-modal-btn-submit {
    background-color: #e60000;
    color: #ffffff;
    border: none;
}

.cluster-modal-btn-submit:hover,
.cluster-modal-btn-submit:focus {
    background-color: #b80000;
    outline: none;
}

.cluster-modal-btn-submit:disabled,
.cluster-modal-btn-submit[disabled] {
    background-color: #f5b3b3;
    cursor: not-allowed;
    opacity: 1;
}


/* ----------------------------------------------------------------------------
 * RESPONSIVE FALLBACK
 * -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .gestione-cluster-section .heading {
        flex-direction: column;
        align-items: stretch;
    }

    .cluster-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cluster-row-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cluster-row-actions {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 8px;
    }
}
/* ----------------------------------------------------------------------------
 * RICARICA HOME — Entrypoint dashboard 4 card
 * -------------------------------------------------------------------------- */
.ricarica-home-section {
    padding: 24px 0;
}

.entrypoint-card {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-top: 4px solid #e60000;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease-in-out, border-top-color 0.15s ease-in-out;
}

.entrypoint-card:hover,
.entrypoint-card:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-top-color: #b80000;
    text-decoration: none;
}

.entrypoint-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entrypoint-card-icon img {
    width: 32px;
    height: 32px;
}

.entrypoint-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.entrypoint-card-desc {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1 1 auto;
}

.entrypoint-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007c92;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.entrypoint-card-cta img {
    width: 12px;
    height: 12px;
}

.entrypoint-card:hover .entrypoint-card-cta,
.entrypoint-card:focus .entrypoint-card-cta {
    color: #005a6b;
}

@media (max-width: 576px) {
    .entrypoint-card {
        margin-bottom: 16px;
    }
}

/* SG07986_CB_TM10 END */

