// =========================================================
// * Matcha Date Range Styles
// =========================================================

.matcha-date-range-container {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-start;

  // Responsividade
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 12px;
  }

  // Os campos de data dentro do range
  matcha-form-field {
    flex: 1;
    min-width: 0;

    &:first-child {
      flex-shrink: 0;
    }

    &:last-child {
      flex-shrink: 0;
    }
  }

  // Quando há erro de validação no range
  matcha-form-field.ng-invalid.ng-touched {
    matcha-date {
      .matcha-date-input {
        border-color: var(--matcha-color-error, #f44336);
      }
    }
  }
}

// Container wrapper adicional para layouts específicos
.matcha-date-range-wrapper {
  width: 100%;

  .matcha-date-range-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--matcha-text-primary, #333);
  }

  .matcha-date-range-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: var(--matcha-text-secondary, #666);
    font-size: 12px;
    user-select: none;

    @media (max-width: 768px) {
      display: none;
    }
  }
}

