/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Hide for stimulus toggle */
.hidden {
  display: none !important;
}

/* People Cards Layout */
.people-cards-container {
  padding-top: 0.5em;
}

.person-card {
  min-width: 400px;
  max-width: 400px;
  flex: 0 0 400px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

@media (max-width: 600px) {
  .person-card {
    min-width: 140px;
    max-width: 95vw;
    flex-basis: 95vw;
  }
}

.hidden {
  display: none !important;
}

.medical-condition-wrapper {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
}

.medical-condition-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.medical-condition-label {
  flex: 1;
  text-align: left;
}

.medical-condition-options {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}

.medical-condition-options .form-check {
  display: flex;
  align-items: center;
  margin: 0;
}

.medical-condition-options .form-check input[type="radio"] {
  margin: 0 0.5rem 0 0;
}

.medical-condition-options .form-check label {
  margin: 0;
  white-space: nowrap;
}

.medical-condition-details {
  margin-top: 0.5rem;
  padding-left: 0;
  width: 100%;
}

.medical-condition-wrapper.striped {
  background-color: #f8f9fa;
}
