/* Modal (Fase 17) */
.ta-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  box-sizing: border-box;
}

.ta-modal-overlay.ta-modal-open {
  display: flex;
}

.ta-modal {
  background: white;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--shadow-color, #333);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.ta-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--blu);
  color: #fff;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
}

.ta-modal-title {
  margin: 0;
  font-size: 1.2em;
  font-weight: normal;
  color: #fff;
}

.ta-modal-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #000;
  font-size: 1.5rem;
  line-height: 1;
}

.ta-modal-close:hover {
  color: #fff;
}

.ta-modal-body {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  background: #fff;
  border-radius: 0 0 4px 4px;
}

.ta-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--color-header-border, #e2e8f0);
}
