/* -----------------------------------------
   FORMS
   ----------------------------------------- */
.form-control, .form-select { border-radius: var(--radius-md); border: 1px solid #e2e8f0; padding: 0.6rem 1rem; color: var(--color-text-main); }
.form-control:focus, .form-select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(0, 163, 196, 0.15); outline: none; }
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.form-control[readonly] { background: #edf2f7; color: var(--color-text-muted); }

/* dark mode */
body.dark-mode .form-control, body.dark-mode .form-select { background: #1c2b3f; border: 1px solid #334155; color: var(--color-text-main); }
body.dark-mode .form-control:focus, body.dark-mode .form-select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.25); }
body.dark-mode .form-control[readonly] { background: #1f2a44; color: var(--color-text-muted); }
body.dark-mode .form-control::placeholder { color: #94a3b8; }

.chip-multi-select {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.chip-multi-values {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  max-height: 82px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-gutter: stable;
}

.chip-multi-values:empty {
  display: none;
}

.chip-multi-values::-webkit-scrollbar {
  width: 6px;
}

.chip-multi-values::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b9d8e5;
}

.chip-multi-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid #b9e8d1;
  border-radius: 999px;
  background: #e9f8f0;
  color: #006b48;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
}

.chip-multi-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #0bb3c7;
  color: #fff;
  font-size: 0.78rem;
}

.chip-multi-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-multi-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #007a55;
  line-height: 1;
}

.chip-multi-remove:hover,
.chip-multi-remove:focus {
  background: rgba(0, 122, 85, 0.12);
  color: #004b36;
}

body.dark-mode .chip-multi-item {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(20, 83, 67, 0.45);
  color: #b7f7df;
}

body.dark-mode .chip-multi-remove {
  color: #b7f7df;
}

body.dark-mode .chip-multi-values::-webkit-scrollbar-thumb {
  background: #45637c;
}

.filter-chip-row {
  align-items: flex-start !important;
}

.filter-result-summary {
  margin-top: 0.25rem;
  color: #6b7b91;
  font-size: 0.95rem;
  line-height: 1.35;
}

.filter-result-summary strong {
  color: var(--color-primary);
  font-weight: 800;
}

body.dark-mode .filter-result-summary {
  color: rgba(255, 255, 255, 0.72);
}

.anexo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.anexo-actions .btn {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.anexo-actions .btn-anexo {
  flex: 1;
  min-width: 0;
}

.anexo-actions .btn-icon {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.anexo-actions .btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

