/* ===================================================================
   Automatismi Component – Stili dedicati a divAutomatismi
   Utilizzato da automatismi.js
   =================================================================== */

/* ——— RIGA ORDINATA ——— */
.context-section .row {
  align-items: center;
  /* allineamento verticale */
  margin: 0;
  /* tolgo margini BS su .row se servisse */
}

/* blocchi in fila con respiro */
.context-section .col-auto {
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
  /* spazio tra gruppi */
}

/* ——— CHECKBOX + LABEL ——— */
.context-section input[type="checkbox"] {
  margin: 0 8px 0 0;
  /* spazio tra box e testo */
  vertical-align: middle;
}

.context-section label {
  margin: 0;
  line-height: 1.2;
}

/* ——— INPUT GROUP ——— */
.context-section .input-group {
  margin: 0;
  /* niente margine extra */
  width: auto;
  /* evita che prenda tutta la riga */
}

.context-section .input-group-addon {
  border-color: #ddd;
  color: #666;
  /* testo più soft */
  font-weight: 500;
  margin-left: 5px;
  margin-right: 5px;
  padding: 2px;
  line-height: 30px;
}

/* campi numerici compatti e leggibili */
.context-section .form-control {
  width: 64px !important;
  /* larghezza fissa per numeri */
  text-align: center;
  font-weight: 700;
  padding: 4px 6px;
  height: 30px;
  /* allinea l'altezza con gli addon */
  line-height: 30px;
  border-radius: 5px !important;
}

/* micro-spazio tra parole "unità" (se usi span fuori dall'addon) */
.context-section .unit {
  margin-left: 6px;
  color: #777;
}

/* fallback se il browser non supporta flex gap */
.context-section .row>.col-auto:last-child {
  margin-right: 0;
}

.input.repeat-automatismi {
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  ;
}

/* Normalizza label: font-size 14px e peso 400 (come divMarketing in profile.css) */
#divAutomatismi label {
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Allinea altezza label/input negli input-group (come marketing.css) */
#divAutomatismi .input-group-text,
#divAutomatismi .input-group input,
#divAutomatismi .input-group select {
    padding: .375rem .75rem;
    font-size: 14px;
    line-height: 1.5;
    height: auto;
}

/* Bottoni: nessun cambio background/colore su hover (come marketing.css) */
#divAutomatismi .btn-outline-success:hover {
    background-color: transparent !important;
    color: #28a745 !important;
}
#divAutomatismi .btn-outline-dark:hover {
    background-color: transparent !important;
    color: #343a40 !important;
}
#divAutomatismi .btn-outline-danger:hover {
    background-color: transparent !important;
    color: #dc3545 !important;
}

/* Checkbox – stesse dimensioni dei form-check-input (come marketing.css) */
#divAutomatismi input[type="checkbox"] {
    width: 1em;
    height: 1em;
}

/* Select2 – stile selezione coupon */
#divAutomatismi .select2-selection__choice__remove {
    color: #333 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    border-right: none !important;
}
#divAutomatismi .select2-selection__choice {
    color: #555 !important;
}

.accordion-automatismi {
  margin-left: 0px!important;
  margin-right: 0px!important;
  padding: 0px!important;
}

/* Stelle recensione automatismi */
.stelle-recensione {
    flex-wrap: wrap;
}

.stella-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f8f8f8;
    transition: all 0.2s ease;
    user-select: none;
}

.stella-check input[type="checkbox"] {
    display: none;
}

.stella-check .stella-label {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
}

.stella-check .stella-label .fa-star {
    color: #ccc;
    margin-right: 3px;
}

.stella-check input[type="checkbox"]:checked + .stella-label {
    color: #333;
}

.stella-check input[type="checkbox"]:checked + .stella-label .fa-star {
    color: #f5a623;
}

.stella-check:has(input:checked) {
    border-color: #f5a623;
    background: #fff8e6;
}
