.small-label {
  font-size: 0.75rem;
}

.small-input {
  font-size: 0.75rem;
  padding: 0.25rem 0.25rem;
}

.medium-label {
  font-size: 0.9rem;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  background: none;
  display: none;
}

.btn-success {
  background-color: #17b169;
  border-color: #17b169;
}

.time {
  font-size: 12px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body {
  background: rgb(63, 94, 251);
  background: -moz-linear-gradient(
    90deg,
    rgba(63, 94, 251, 1) 0%,
    rgba(70, 209, 252, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    rgba(63, 94, 251, 1) 0%,
    rgba(70, 209, 252, 1) 100%
  );
  background: linear-gradient(
    90deg,
    rgba(63, 94, 251, 1) 0%,
    rgba(70, 209, 252, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3f5efb",endColorstr="#46d1fc",GradientType=1);
}

/* Modal Interventi - Sezioni */
.intervento-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
}

.intervento-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #dee2e6;
}

.intervento-section-header i {
  font-size: 1.25rem;
  color: #667eea;
}

.intervento-section-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  margin: 0;
}

.intervento-item {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.2s;
}

.intervento-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.intervento-item-add-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.intervento-item-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.intervento-item-content {
  flex: 1;
}

.intervento-item-text {
  color: #2d3748;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.35;
}

.intervento-badge-ordine {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.intervento-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.intervento-input-group input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.intervento-input-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  outline: none;
}

.intervento-input-group select {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.intervento-input-group select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  outline: none;
}

/* Select2 nel modale materiali */
.intervento-input-group .select2-container {
  width: 100% !important;
}

/* Materiale con quantità su due righe */
.materiale-descrizione {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: #2d3748;
  line-height: 1.35;
}

.materiale-quantita {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
}

/* Select2 nel modale materiali */
.intervento-input-group .select2-container {
  width: 100% !important;
}

/* Materiale con quantità su due righe */
.materiale-descrizione {
  display: block;
  margin-bottom: 0.25rem;
}

.materiale-quantita {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
}

/* Select2 nel modale materiali */
.intervento-input-group .select2-container {
  width: 100% !important;
}

/* Materiale con quantità su due righe */
.materiale-descrizione {
  display: block;
  margin-bottom: 0.25rem;
}

.materiale-quantita {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
}

.select2-container--bootstrap-5 .select2--small.select2-selection {
  font-size: 0.75rem !important;
}

/* Stile moderno per il modale firme */
.signature-container {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.signature-canvas {
  border-radius: 8px;
  background: #f8f9fa;
  cursor: crosshair;
  width: 100% !important;
  height: auto;
}
