/* ── Minha Casa — selects unificados (painel customizado) ──────────────── */

.mc-select-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  min-width: 0;
  box-sizing: border-box;
}

.mc-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.mc-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.2;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mc-select-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-select-chevron {
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: transform 0.2s, color 0.15s;
}

.mc-select-chevron svg {
  width: 13px;
  height: 13px;
  display: block;
}

.mc-select-wrap.open .mc-select-chevron {
  transform: rotate(180deg);
  color: var(--primary, #f05a00);
}

.mc-select-trigger:hover {
  border-color: #cbd5e1;
}

.mc-select-wrap.open .mc-select-trigger,
.mc-select-trigger:focus-visible {
  outline: none;
  border-color: var(--primary, #f05a00);
  box-shadow: 0 0 0 3px rgba(240, 90, 0, 0.12);
}

.mc-select-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f9fafb;
  color: #9ca3af;
}

/* Painel flutuante (portal no body via JS) */
.mc-select-panel {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
}

.mc-select-option {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.25;
  color: #374151;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.mc-select-option:hover:not(:disabled) {
  background: #fff7ed;
  color: #c2410c;
}

.mc-select-option.is-selected {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 600;
}

.mc-select-option.is-selected:hover:not(:disabled) {
  background: #ffedd5;
  color: #9a3412;
}

.mc-select-option.is-disabled,
.mc-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Compacto — filtros, toolbars, tabelas */
.mc-select-wrap.mc-select-compact .mc-select-trigger {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 8px;
}

.mc-select-wrap.mc-select-compact .mc-select-panel {
  border-radius: 8px;
  padding: 3px;
}

.mc-select-wrap.mc-select-compact .mc-select-option {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 5px;
}

.filtros .mc-select-wrap,
.toolbar .mc-select-wrap,
.filtros .campo .mc-select-wrap {
  min-width: 120px;
}

/* Largura total em formulários */
.form-group .mc-select-wrap,
.fin-modal-box .mc-select-wrap,
.filter-group .mc-select-wrap,
.fin-filtros .mc-select-wrap {
  width: 100%;
}
