/* Custom styles for the service report tool */

/* Container styling */
.report-container {
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  margin-bottom: 2rem;
}

/* Section container styling */
.section-container {
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #fff;
  margin-bottom: 1rem;
}

/* Section container header */
.section-container h4 {
  margin-bottom: 1rem;
  color: #495057;
  font-size: 1.2rem;
}

/* Material row styling */
.material-row {
  margin-bottom: 0.5rem;
  padding: 0.25rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

/* Activity row styling */
.activity-row {
  margin-bottom: 0.5rem;
  padding: 0.25rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

/* Fix for row alignment */
.material-row .d-flex.align-items-center,
.activity-row .d-flex.align-items-center {
  margin: 0;
  padding: 0;
}

/* Button styling */
.report-container .btn {
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  height: auto;
}

/* Add material/activity button */
#addMaterialBtn,
#addActivityBtn {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* Remove material/activity button */
.remove-material,
.remove-activity {
  padding: 0.15rem 0.5rem !important;
  font-size: 0.875rem !important;
  height: auto !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Form control styling */
.report-container .form-control-sm {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Adjust spacing between inputs */
.report-container .me-2 {
  margin-right: 0.5rem !important;
}

/* Generate PDF button */
#generatePdfBtn {
  padding: 0.375rem 1rem;
  font-size: 1rem;
}

/* Signature pad styling */
.signature-pad-container {
  width: 100%;
  margin-bottom: 1rem;
}

.signature-pad {
  width: 100%;
  height: 200px;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #f0f0f0;
  touch-action: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .report-container .row > div {
    margin-bottom: 0.75rem;
  }

  .report-container .col-md-6:last-child {
    margin-bottom: 0;
  }
}
