 
/* INPUT GRANDI MODERNI */
.custom-table input.input-big {
  width: 180px !important;     /* forza la larghezza */
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.custom-table input.input-big:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* TEXTAREA MODERNA */
.custom-table textarea.input-big {
  width: 220px !important;
  min-height: 60px;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
}

/* CHECKBOX MODERNO E PICCOLO */
.custom-table input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  accent-color: #6366f1;
  cursor: pointer;
}

 
  .text-center {
    text-align: center;
  }
  
  
  .search-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
  }

  .search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: end;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background-color: #f8fafc;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
  }

  .form-control:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
  }

  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
  }

  .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
  }

  .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3182ce;
    cursor: pointer;
  }

  .actions-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .btn-search {
      background: linear-gradient(135deg, #42A5F5, #1E88E5);
/*
 rosso background: linear-gradient(135deg, #EF5350, #E53935);
	arancione background: linear-gradient(135deg, #FFB347, #FB8C00);
giallo background: linear-gradient(135deg, #FFE066, #FDD835);
verde background: linear-gradient(135deg, #66BB6A, #43A047);
blu background: linear-gradient(135deg, #42A5F5, #1E88E5);
viola background: linear-gradient(135deg, #BA68C8, #8E24AA);
*/

    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 126, 95, 0.4);
  }

  .btn-search:active {
    transform: translateY(0);
  }
 
 /*css tabella*/
/* --- CONTENITORE PRINCIPALE (Limita la larghezza massima) --- */
.table-wrapper {
  width: 95vw;             /* Occuperà il 95% della larghezza della finestra */
  max-width: 1600px;       /* Evita che su monitor 4K diventi gigantesca */
  margin: 20px auto;       /* La centra perfettamente al mezzo */
  overflow-x: auto;        /* Se lo schermo si stringe troppo, scrolla internamente */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

/* --- TABELLA --- */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #334155;
}

/* Header */
.custom-table thead {
  background-color: #f8fafc;
}

.custom-table th {
  padding: 12px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap; /* Evita che i titoli delle colonne vadano a capo male */
}

/* Righe e Celle */
.custom-table tbody tr {
  transition: background-color 0.2s ease;
}

.custom-table tbody tr:hover {
  background-color: #f1f5f9;
}

.custom-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #f1f5f9;
}

.custom-table td {
  padding: 8px 10px;
  vertical-align: middle;
  font-size: 13px;
}

/* Centratura */
.text-center {
  text-align: center;
}

/* --- INPUTS E TEXTAREA --- */
.custom-table textarea {
  width: 100%;
  min-height: 70px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #f8fafc;
  color: #1e293b;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.custom-table textarea:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.custom-table textarea::placeholder {
  color: #94a3b8;
}

/* Input di testo piccoli (Priority) */
.custom-table input[type="text"] {
  width: 42px;
  padding: 5px 6px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.custom-table input[type="text"]:focus {
  outline: none;
  border-color: #6366f1;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Checkbox stilizzati */
.custom-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6366f1;
  vertical-align: middle;
}

/* Link stilizzati */
.custom-table a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.custom-table a:hover {
  color: #3730a3;
  text-decoration: underline;
}

/* Badge Alert */
.badge-alert-red {
  background-color: #fef2f2;
  color: #ef4444;
  border: 1px solid #fca5a5;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  display: inline-block;
}

.badge-alert-yellow {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  display: inline-block;
}

/* Larghezza minima ottimizzata per la nota */
.col-nota {
  min-width: 280px;
}
  